frappe-react-sdk 1.2.0 → 1.2.2
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 +540 -566
- package/dist/frappe-react-sdk.umd.js +13 -13
- package/dist/lib/index.d.ts +9 -9
- package/package.json +8 -6
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
var Be = (n, e, t) => (Ws(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import
|
|
4
|
+
import qe, { createContext as Ur, useContext as ee, useEffect as Xe, useLayoutEffect as Hs, useRef as Fe, useMemo as qr, useCallback as M, useDebugValue as Ys, useState as N } from "react";
|
|
5
5
|
var P = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Yt = {}, rt = {}, ft = {}, le = P && P.__assign || function() {
|
|
6
6
|
return le = Object.assign || function(n) {
|
|
7
7
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
@@ -190,7 +190,7 @@ var ht = {}, z = P && P.__assign || function() {
|
|
|
190
190
|
}
|
|
191
191
|
a((r = r.apply(n, e || [])).next());
|
|
192
192
|
});
|
|
193
|
-
},
|
|
193
|
+
}, Ue = P && P.__generator || function(n, e) {
|
|
194
194
|
var t = { label: 0, sent: function() {
|
|
195
195
|
if (i[0] & 1)
|
|
196
196
|
throw i[1];
|
|
@@ -263,7 +263,7 @@ var zs = function() {
|
|
|
263
263
|
}
|
|
264
264
|
return n.prototype.getDoc = function(e, t) {
|
|
265
265
|
return t === void 0 && (t = ""), Ie(this, void 0, void 0, function() {
|
|
266
|
-
return
|
|
266
|
+
return Ue(this, function(r) {
|
|
267
267
|
return [2, this.axios.get("/api/resource/".concat(e, "/").concat(t)).then(function(s) {
|
|
268
268
|
return s.data.data;
|
|
269
269
|
}).catch(function(s) {
|
|
@@ -276,7 +276,7 @@ var zs = function() {
|
|
|
276
276
|
var r, s;
|
|
277
277
|
return Ie(this, void 0, void 0, function() {
|
|
278
278
|
var i, o, c, h, a, f, l, v, p, b, w;
|
|
279
|
-
return
|
|
279
|
+
return Ue(this, function(I) {
|
|
280
280
|
return i = {}, r = t == null ? void 0 : t.fields, t && (o = t.fields, c = t.filters, h = t.orFilters, a = t.orderBy, f = t.limit, l = t.limit_start, v = t.groupBy, p = t.asDict, b = p === void 0 ? !0 : p, w = a ? "".concat(String(a == null ? void 0 : a.field), " ").concat((s = a == null ? void 0 : a.order) !== null && s !== void 0 ? s : "asc") : "", i = {
|
|
281
281
|
fields: o ? JSON.stringify(o) : void 0,
|
|
282
282
|
filters: c ? JSON.stringify(c) : void 0,
|
|
@@ -289,14 +289,14 @@ var zs = function() {
|
|
|
289
289
|
}), [2, this.axios.get("/api/resource/".concat(e), { params: i }).then(function(g) {
|
|
290
290
|
return g.data.data;
|
|
291
291
|
}).catch(function(g) {
|
|
292
|
-
var
|
|
293
|
-
throw z(z({}, g.response.data), { httpStatus: g.response.status, httpStatusText: g.response.statusText, message: "There was an error while fetching the documents.", exception: (x = (
|
|
292
|
+
var T, x;
|
|
293
|
+
throw z(z({}, g.response.data), { httpStatus: g.response.status, httpStatusText: g.response.statusText, message: "There was an error while fetching the documents.", exception: (x = (T = g.response.data.exception) !== null && T !== void 0 ? T : g.response.data.exc_type) !== null && x !== void 0 ? x : "" });
|
|
294
294
|
})];
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
297
|
}, n.prototype.createDoc = function(e, t) {
|
|
298
298
|
return Ie(this, void 0, void 0, function() {
|
|
299
|
-
return
|
|
299
|
+
return Ue(this, function(r) {
|
|
300
300
|
return [2, this.axios.post("/api/resource/".concat(e), z({}, t)).then(function(s) {
|
|
301
301
|
return s.data.data;
|
|
302
302
|
}).catch(function(s) {
|
|
@@ -307,7 +307,7 @@ var zs = function() {
|
|
|
307
307
|
});
|
|
308
308
|
}, n.prototype.updateDoc = function(e, t, r) {
|
|
309
309
|
return Ie(this, void 0, void 0, function() {
|
|
310
|
-
return
|
|
310
|
+
return Ue(this, function(s) {
|
|
311
311
|
return [2, this.axios.put("/api/resource/".concat(e, "/").concat(t), z({}, r)).then(function(i) {
|
|
312
312
|
return i.data.data;
|
|
313
313
|
}).catch(function(i) {
|
|
@@ -318,7 +318,7 @@ var zs = function() {
|
|
|
318
318
|
});
|
|
319
319
|
}, n.prototype.deleteDoc = function(e, t) {
|
|
320
320
|
return Ie(this, void 0, void 0, function() {
|
|
321
|
-
return
|
|
321
|
+
return Ue(this, function(r) {
|
|
322
322
|
return [2, this.axios.delete("/api/resource/".concat(e, "/").concat(t)).then(function(s) {
|
|
323
323
|
return s.data;
|
|
324
324
|
}).catch(function(s) {
|
|
@@ -330,7 +330,7 @@ var zs = function() {
|
|
|
330
330
|
}, n.prototype.getCount = function(e, t, r, s) {
|
|
331
331
|
return r === void 0 && (r = !1), s === void 0 && (s = !1), Ie(this, void 0, void 0, function() {
|
|
332
332
|
var i;
|
|
333
|
-
return
|
|
333
|
+
return Ue(this, function(o) {
|
|
334
334
|
return i = {
|
|
335
335
|
doctype: e,
|
|
336
336
|
filters: []
|
|
@@ -345,7 +345,7 @@ var zs = function() {
|
|
|
345
345
|
}, n.prototype.getLastDoc = function(e, t) {
|
|
346
346
|
return Ie(this, void 0, void 0, function() {
|
|
347
347
|
var r, s;
|
|
348
|
-
return
|
|
348
|
+
return Ue(this, function(i) {
|
|
349
349
|
switch (i.label) {
|
|
350
350
|
case 0:
|
|
351
351
|
return r = {
|
|
@@ -485,14 +485,14 @@ var Xs = function() {
|
|
|
485
485
|
}, n;
|
|
486
486
|
}();
|
|
487
487
|
dt.FrappeFileUpload = Xs;
|
|
488
|
-
var Ge = {},
|
|
488
|
+
var Ge = {}, Vr = { exports: {} }, Ln = { 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 =
|
|
495
|
-
function
|
|
494
|
+
}, Qs = jr, De = Object.prototype.toString;
|
|
495
|
+
function Dn(n) {
|
|
496
496
|
return Array.isArray(n);
|
|
497
497
|
}
|
|
498
498
|
function gn(n) {
|
|
@@ -501,15 +501,15 @@ function gn(n) {
|
|
|
501
501
|
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
|
-
function
|
|
505
|
-
return
|
|
504
|
+
function $r(n) {
|
|
505
|
+
return De.call(n) === "[object ArrayBuffer]";
|
|
506
506
|
}
|
|
507
507
|
function ei(n) {
|
|
508
|
-
return
|
|
508
|
+
return De.call(n) === "[object FormData]";
|
|
509
509
|
}
|
|
510
510
|
function ti(n) {
|
|
511
511
|
var e;
|
|
512
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer &&
|
|
512
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && $r(n.buffer), e;
|
|
513
513
|
}
|
|
514
514
|
function ni(n) {
|
|
515
515
|
return typeof n == "string";
|
|
@@ -517,32 +517,32 @@ function ni(n) {
|
|
|
517
517
|
function ri(n) {
|
|
518
518
|
return typeof n == "number";
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Mr(n) {
|
|
521
521
|
return n !== null && typeof n == "object";
|
|
522
522
|
}
|
|
523
523
|
function At(n) {
|
|
524
|
-
if (
|
|
524
|
+
if (De.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 De.call(n) === "[object Date]";
|
|
531
531
|
}
|
|
532
532
|
function ii(n) {
|
|
533
|
-
return
|
|
533
|
+
return De.call(n) === "[object File]";
|
|
534
534
|
}
|
|
535
535
|
function oi(n) {
|
|
536
|
-
return
|
|
536
|
+
return De.call(n) === "[object Blob]";
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
return
|
|
538
|
+
function Wr(n) {
|
|
539
|
+
return De.call(n) === "[object Function]";
|
|
540
540
|
}
|
|
541
541
|
function ai(n) {
|
|
542
|
-
return
|
|
542
|
+
return Mr(n) && Wr(n.pipe);
|
|
543
543
|
}
|
|
544
544
|
function ui(n) {
|
|
545
|
-
return
|
|
545
|
+
return De.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]), Dn(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) : Dn(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,20 +577,20 @@ function hi(n) {
|
|
|
577
577
|
return n.charCodeAt(0) === 65279 && (n = n.slice(1)), n;
|
|
578
578
|
}
|
|
579
579
|
var oe = {
|
|
580
|
-
isArray:
|
|
581
|
-
isArrayBuffer:
|
|
580
|
+
isArray: Dn,
|
|
581
|
+
isArrayBuffer: $r,
|
|
582
582
|
isBuffer: Zs,
|
|
583
583
|
isFormData: ei,
|
|
584
584
|
isArrayBufferView: ti,
|
|
585
585
|
isString: ni,
|
|
586
586
|
isNumber: ri,
|
|
587
|
-
isObject:
|
|
587
|
+
isObject: Mr,
|
|
588
588
|
isPlainObject: At,
|
|
589
589
|
isUndefined: gn,
|
|
590
590
|
isDate: si,
|
|
591
591
|
isFile: ii,
|
|
592
592
|
isBlob: oi,
|
|
593
|
-
isFunction:
|
|
593
|
+
isFunction: Wr,
|
|
594
594
|
isStream: ai,
|
|
595
595
|
isURLSearchParams: ui,
|
|
596
596
|
isStandardBrowserEnv: li,
|
|
@@ -603,7 +603,7 @@ var oe = {
|
|
|
603
603
|
function Kn(n) {
|
|
604
604
|
return encodeURIComponent(n).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
605
605
|
}
|
|
606
|
-
var
|
|
606
|
+
var Hr = function(e, t, r) {
|
|
607
607
|
if (!t)
|
|
608
608
|
return e;
|
|
609
609
|
var s;
|
|
@@ -648,7 +648,7 @@ var pi = Bt, vi = oe, mi = 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
|
});
|
|
651
|
-
},
|
|
651
|
+
}, Yr = function(e, t, r, s, i) {
|
|
652
652
|
return e.config = t, r && (e.code = r), e.request = s, e.response = i, e.isAxiosError = !0, e.toJSON = function() {
|
|
653
653
|
return {
|
|
654
654
|
message: this.message,
|
|
@@ -664,16 +664,16 @@ var pi = Bt, vi = oe, mi = function(e, t) {
|
|
|
664
664
|
status: this.response && this.response.status ? this.response.status : null
|
|
665
665
|
};
|
|
666
666
|
}, e;
|
|
667
|
-
},
|
|
667
|
+
}, Jr = {
|
|
668
668
|
silentJSONParsing: !0,
|
|
669
669
|
forcedJSONParsing: !0,
|
|
670
670
|
clarifyTimeoutError: !1
|
|
671
671
|
}, Jt, Gn;
|
|
672
|
-
function
|
|
672
|
+
function zr() {
|
|
673
673
|
if (Gn)
|
|
674
674
|
return Jt;
|
|
675
675
|
Gn = 1;
|
|
676
|
-
var n =
|
|
676
|
+
var n = Yr;
|
|
677
677
|
return Jt = function(t, r, s, i, o) {
|
|
678
678
|
var c = new Error(t);
|
|
679
679
|
return n(c, r, s, i, o);
|
|
@@ -684,7 +684,7 @@ function yi() {
|
|
|
684
684
|
if (Xn)
|
|
685
685
|
return zt;
|
|
686
686
|
Xn = 1;
|
|
687
|
-
var n =
|
|
687
|
+
var n = zr();
|
|
688
688
|
return zt = function(t, r, s) {
|
|
689
689
|
var i = s.config.validateStatus;
|
|
690
690
|
!s.status || !i || i(s.status) ? t(s) : r(n(
|
|
@@ -834,28 +834,28 @@ function or() {
|
|
|
834
834
|
if (ir)
|
|
835
835
|
return nn;
|
|
836
836
|
ir = 1;
|
|
837
|
-
var n = oe, e = yi(), t = gi(), r =
|
|
837
|
+
var n = oe, e = yi(), t = gi(), r = Hr, s = wi(), i = Ei(), o = Ri(), c = zr(), h = Jr, a = Ft();
|
|
838
838
|
return nn = function(l) {
|
|
839
839
|
return new Promise(function(p, b) {
|
|
840
|
-
var w = l.data, I = l.headers, g = l.responseType,
|
|
840
|
+
var w = l.data, I = l.headers, g = l.responseType, T;
|
|
841
841
|
function x() {
|
|
842
|
-
l.cancelToken && l.cancelToken.unsubscribe(
|
|
842
|
+
l.cancelToken && l.cancelToken.unsubscribe(T), l.signal && l.signal.removeEventListener("abort", T);
|
|
843
843
|
}
|
|
844
844
|
n.isFormData(w) && delete I["Content-Type"];
|
|
845
845
|
var y = new XMLHttpRequest();
|
|
846
846
|
if (l.auth) {
|
|
847
|
-
var V = l.auth.username || "",
|
|
848
|
-
I.Authorization = "Basic " + btoa(V + ":" +
|
|
847
|
+
var V = l.auth.username || "", U = l.auth.password ? unescape(encodeURIComponent(l.auth.password)) : "";
|
|
848
|
+
I.Authorization = "Basic " + btoa(V + ":" + U);
|
|
849
849
|
}
|
|
850
850
|
var k = s(l.baseURL, l.url);
|
|
851
851
|
y.open(l.method.toUpperCase(), r(k, l.params, l.paramsSerializer), !0), y.timeout = l.timeout;
|
|
852
852
|
function E() {
|
|
853
853
|
if (!!y) {
|
|
854
|
-
var
|
|
854
|
+
var L = "getAllResponseHeaders" in y ? i(y.getAllResponseHeaders()) : null, X = !g || g === "text" || g === "json" ? y.responseText : y.response, ne = {
|
|
855
855
|
data: X,
|
|
856
856
|
status: y.status,
|
|
857
857
|
statusText: y.statusText,
|
|
858
|
-
headers:
|
|
858
|
+
headers: L,
|
|
859
859
|
config: l,
|
|
860
860
|
request: y
|
|
861
861
|
};
|
|
@@ -886,13 +886,13 @@ function or() {
|
|
|
886
886
|
}
|
|
887
887
|
"setRequestHeader" in y && n.forEach(I, function(X, ne) {
|
|
888
888
|
typeof w > "u" && ne.toLowerCase() === "content-type" ? delete I[ne] : y.setRequestHeader(ne, X);
|
|
889
|
-
}), n.isUndefined(l.withCredentials) || (y.withCredentials = !!l.withCredentials), g && g !== "json" && (y.responseType = l.responseType), typeof l.onDownloadProgress == "function" && y.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", l.onUploadProgress), (l.cancelToken || l.signal) && (
|
|
890
|
-
!y || (b(!
|
|
891
|
-
}, l.cancelToken && l.cancelToken.subscribe(
|
|
889
|
+
}), n.isUndefined(l.withCredentials) || (y.withCredentials = !!l.withCredentials), g && g !== "json" && (y.responseType = l.responseType), typeof l.onDownloadProgress == "function" && y.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", l.onUploadProgress), (l.cancelToken || l.signal) && (T = function(L) {
|
|
890
|
+
!y || (b(!L || L && L.type ? new a("canceled") : L), y.abort(), y = null);
|
|
891
|
+
}, l.cancelToken && l.cancelToken.subscribe(T), l.signal && (l.signal.aborted ? T() : l.signal.addEventListener("abort", T))), w || (w = null), y.send(w);
|
|
892
892
|
});
|
|
893
893
|
}, nn;
|
|
894
894
|
}
|
|
895
|
-
var Q = oe, ar = mi, Si =
|
|
895
|
+
var Q = oe, ar = mi, Si = Yr, Ti = Jr, Oi = {
|
|
896
896
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
897
897
|
};
|
|
898
898
|
function ur(n, e) {
|
|
@@ -949,18 +949,18 @@ 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, ki = Pn,
|
|
952
|
+
var Pn = It, Ai = oe, ki = Pn, Li = function(e, t, r) {
|
|
953
953
|
var s = this || ki;
|
|
954
954
|
return Ai.forEach(r, function(o) {
|
|
955
955
|
e = o.call(s, e, t);
|
|
956
956
|
}), e;
|
|
957
957
|
}, rn, cr;
|
|
958
|
-
function
|
|
958
|
+
function Kr() {
|
|
959
959
|
return cr || (cr = 1, rn = function(e) {
|
|
960
960
|
return !!(e && e.__CANCEL__);
|
|
961
961
|
}), rn;
|
|
962
962
|
}
|
|
963
|
-
var lr = oe, sn =
|
|
963
|
+
var lr = oe, sn = Li, Di = Kr(), Ni = Pn, Pi = Ft();
|
|
964
964
|
function on(n) {
|
|
965
965
|
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
|
|
966
966
|
throw new Pi("canceled");
|
|
@@ -990,14 +990,14 @@ var Bi = function(e) {
|
|
|
990
990
|
e.transformResponse
|
|
991
991
|
), s;
|
|
992
992
|
}, function(s) {
|
|
993
|
-
return
|
|
993
|
+
return Di(s) || (on(e), s && s.response && (s.response.data = sn.call(
|
|
994
994
|
e,
|
|
995
995
|
s.response.data,
|
|
996
996
|
s.response.headers,
|
|
997
997
|
e.transformResponse
|
|
998
998
|
))), Promise.reject(s);
|
|
999
999
|
});
|
|
1000
|
-
}, ae = oe,
|
|
1000
|
+
}, ae = oe, Gr = function(e, t) {
|
|
1001
1001
|
t = t || {};
|
|
1002
1002
|
var r = {};
|
|
1003
1003
|
function s(f, l) {
|
|
@@ -1060,12 +1060,12 @@ var Bi = function(e) {
|
|
|
1060
1060
|
ae.isUndefined(p) && v !== h || (r[l] = p);
|
|
1061
1061
|
}), r;
|
|
1062
1062
|
}, an, fr;
|
|
1063
|
-
function
|
|
1063
|
+
function Xr() {
|
|
1064
1064
|
return fr || (fr = 1, an = {
|
|
1065
1065
|
version: "0.26.1"
|
|
1066
1066
|
}), an;
|
|
1067
1067
|
}
|
|
1068
|
-
var Fi =
|
|
1068
|
+
var Fi = Xr().version, Bn = {};
|
|
1069
1069
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(n, e) {
|
|
1070
1070
|
Bn[n] = function(r) {
|
|
1071
1071
|
return typeof r === n || "a" + (e < 1 ? "n " : " ") + n;
|
|
@@ -1102,10 +1102,10 @@ function Ii(n, e, t) {
|
|
|
1102
1102
|
throw Error("Unknown option " + i);
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
|
-
var
|
|
1105
|
+
var Ui = {
|
|
1106
1106
|
assertOptions: Ii,
|
|
1107
1107
|
validators: Bn
|
|
1108
|
-
},
|
|
1108
|
+
}, Qr = oe, qi = Hr, dr = pi, pr = Bi, Ut = Gr, Zr = Ui, Ke = Zr.validators;
|
|
1109
1109
|
function pt(n) {
|
|
1110
1110
|
this.defaults = n, this.interceptors = {
|
|
1111
1111
|
request: new dr(),
|
|
@@ -1113,9 +1113,9 @@ function pt(n) {
|
|
|
1113
1113
|
};
|
|
1114
1114
|
}
|
|
1115
1115
|
pt.prototype.request = function(e, t) {
|
|
1116
|
-
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t =
|
|
1116
|
+
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Ut(this.defaults, t), t.method ? t.method = t.method.toLowerCase() : this.defaults.method ? t.method = this.defaults.method.toLowerCase() : t.method = "get";
|
|
1117
1117
|
var r = t.transitional;
|
|
1118
|
-
r !== void 0 &&
|
|
1118
|
+
r !== void 0 && Zr.assertOptions(r, {
|
|
1119
1119
|
silentJSONParsing: Ke.transitional(Ke.boolean),
|
|
1120
1120
|
forcedJSONParsing: Ke.transitional(Ke.boolean),
|
|
1121
1121
|
clarifyTimeoutError: Ke.transitional(Ke.boolean)
|
|
@@ -1154,20 +1154,20 @@ pt.prototype.request = function(e, t) {
|
|
|
1154
1154
|
return c;
|
|
1155
1155
|
};
|
|
1156
1156
|
pt.prototype.getUri = function(e) {
|
|
1157
|
-
return e =
|
|
1157
|
+
return e = Ut(this.defaults, e), qi(e.url, e.params, e.paramsSerializer).replace(/^\?/, "");
|
|
1158
1158
|
};
|
|
1159
|
-
|
|
1159
|
+
Qr.forEach(["delete", "get", "head", "options"], function(e) {
|
|
1160
1160
|
pt.prototype[e] = function(t, r) {
|
|
1161
|
-
return this.request(
|
|
1161
|
+
return this.request(Ut(r || {}, {
|
|
1162
1162
|
method: e,
|
|
1163
1163
|
url: t,
|
|
1164
1164
|
data: (r || {}).data
|
|
1165
1165
|
}));
|
|
1166
1166
|
};
|
|
1167
1167
|
});
|
|
1168
|
-
|
|
1168
|
+
Qr.forEach(["post", "put", "patch"], function(e) {
|
|
1169
1169
|
pt.prototype[e] = function(t, r, s) {
|
|
1170
|
-
return this.request(
|
|
1170
|
+
return this.request(Ut(s || {}, {
|
|
1171
1171
|
method: e,
|
|
1172
1172
|
url: t,
|
|
1173
1173
|
data: r
|
|
@@ -1248,41 +1248,41 @@ function Mi() {
|
|
|
1248
1248
|
return n.isObject(t) && t.isAxiosError === !0;
|
|
1249
1249
|
}, ln;
|
|
1250
1250
|
}
|
|
1251
|
-
var gr = oe, Wi =
|
|
1252
|
-
function
|
|
1251
|
+
var gr = oe, Wi = jr, kt = Vi, Hi = Gr, Yi = Pn;
|
|
1252
|
+
function es(n) {
|
|
1253
1253
|
var e = new kt(n), t = Wi(kt.prototype.request, e);
|
|
1254
1254
|
return gr.extend(t, kt.prototype, e), gr.extend(t, e), t.create = function(s) {
|
|
1255
|
-
return
|
|
1255
|
+
return es(Hi(n, s));
|
|
1256
1256
|
}, t;
|
|
1257
1257
|
}
|
|
1258
|
-
var
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1258
|
+
var ge = es(Yi);
|
|
1259
|
+
ge.Axios = kt;
|
|
1260
|
+
ge.Cancel = Ft();
|
|
1261
|
+
ge.CancelToken = ji();
|
|
1262
|
+
ge.isCancel = Kr();
|
|
1263
|
+
ge.VERSION = Xr().version;
|
|
1264
|
+
ge.all = function(e) {
|
|
1265
1265
|
return Promise.all(e);
|
|
1266
1266
|
};
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1267
|
+
ge.spread = $i();
|
|
1268
|
+
ge.isAxiosError = Mi();
|
|
1269
|
+
Ln.exports = ge;
|
|
1270
|
+
Ln.exports.default = ge;
|
|
1271
1271
|
(function(n) {
|
|
1272
|
-
n.exports =
|
|
1273
|
-
})(
|
|
1272
|
+
n.exports = Ln.exports;
|
|
1273
|
+
})(Vr);
|
|
1274
1274
|
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
1275
1275
|
Ge.getRequestHeaders = Ge.getAxiosClient = void 0;
|
|
1276
|
-
var Ji =
|
|
1276
|
+
var Ji = Vr.exports;
|
|
1277
1277
|
function zi(n, e, t, r) {
|
|
1278
1278
|
return Ji.default.create({
|
|
1279
1279
|
baseURL: n,
|
|
1280
|
-
headers:
|
|
1280
|
+
headers: ts(e, r, t),
|
|
1281
1281
|
withCredentials: !0
|
|
1282
1282
|
});
|
|
1283
1283
|
}
|
|
1284
1284
|
Ge.getAxiosClient = zi;
|
|
1285
|
-
function
|
|
1285
|
+
function ts(n, e, t) {
|
|
1286
1286
|
n === void 0 && (n = !1);
|
|
1287
1287
|
var r = {
|
|
1288
1288
|
Accept: "application/json",
|
|
@@ -1290,13 +1290,13 @@ function es(n, e, t) {
|
|
|
1290
1290
|
};
|
|
1291
1291
|
return n && e && t && (r.Authorization = "".concat(e, " ").concat(t())), typeof window < "u" && typeof document < "u" && (window.location && (r["X-Frappe-Site-Name"] = window.location.hostname), window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (r["X-Frappe-CSRF-Token"] = window.csrf_token)), r;
|
|
1292
1292
|
}
|
|
1293
|
-
Ge.getRequestHeaders =
|
|
1293
|
+
Ge.getRequestHeaders = ts;
|
|
1294
1294
|
var _r;
|
|
1295
1295
|
function Ki() {
|
|
1296
1296
|
if (_r)
|
|
1297
1297
|
return rt;
|
|
1298
1298
|
_r = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.FrappeApp = void 0;
|
|
1299
|
-
var n =
|
|
1299
|
+
var n = ns(), e = ft, t = ht, r = dt, s = Ge, i = function() {
|
|
1300
1300
|
function o(c, h, a) {
|
|
1301
1301
|
var f, l;
|
|
1302
1302
|
this.url = c, this.name = a != null ? a : "FrappeApp", this.useToken = (f = h == null ? void 0 : h.useToken) !== null && f !== void 0 ? f : !1, this.token = h == null ? void 0 : h.token, this.tokenType = (l = h == null ? void 0 : h.type) !== null && l !== void 0 ? l : "Bearer", this.axios = (0, s.getAxiosClient)(this.url, this.useToken, this.token, this.tokenType);
|
|
@@ -1313,15 +1313,15 @@ function Ki() {
|
|
|
1313
1313
|
}();
|
|
1314
1314
|
return rt.FrappeApp = i, rt;
|
|
1315
1315
|
}
|
|
1316
|
-
var
|
|
1317
|
-
return
|
|
1316
|
+
var qt = {}, ve = P && P.__assign || function() {
|
|
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];
|
|
1320
1320
|
for (var s in e)
|
|
1321
1321
|
Object.prototype.hasOwnProperty.call(e, s) && (n[s] = e[s]);
|
|
1322
1322
|
}
|
|
1323
1323
|
return n;
|
|
1324
|
-
},
|
|
1324
|
+
}, ve.apply(this, arguments);
|
|
1325
1325
|
}, Rt = P && P.__awaiter || function(n, e, t, r) {
|
|
1326
1326
|
function s(i) {
|
|
1327
1327
|
return i instanceof t ? i : new t(function(o) {
|
|
@@ -1413,8 +1413,8 @@ var Ut = {}, me = P && P.__assign || function() {
|
|
|
1413
1413
|
return { value: a[0] ? a[1] : void 0, done: !0 };
|
|
1414
1414
|
}
|
|
1415
1415
|
};
|
|
1416
|
-
Object.defineProperty(
|
|
1417
|
-
|
|
1416
|
+
Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
1417
|
+
qt.FrappeAuth = void 0;
|
|
1418
1418
|
var Gi = function() {
|
|
1419
1419
|
function n(e, t, r, s, i) {
|
|
1420
1420
|
this.appURL = e, this.axios = t, this.useToken = r != null ? r : !1, this.token = s, this.tokenType = i;
|
|
@@ -1431,7 +1431,7 @@ var Gi = function() {
|
|
|
1431
1431
|
return o.data;
|
|
1432
1432
|
}).catch(function(o) {
|
|
1433
1433
|
var c, h;
|
|
1434
|
-
throw
|
|
1434
|
+
throw ve(ve({}, o.response.data), { httpStatus: o.response.status, httpStatusText: o.response.statusText, message: (c = o.response.data.message) !== null && c !== void 0 ? c : "There was an error while logging in", exception: (h = o.response.data.exception) !== null && h !== void 0 ? h : "" });
|
|
1435
1435
|
})];
|
|
1436
1436
|
});
|
|
1437
1437
|
});
|
|
@@ -1442,7 +1442,7 @@ var Gi = function() {
|
|
|
1442
1442
|
return t.data.message;
|
|
1443
1443
|
}).catch(function(t) {
|
|
1444
1444
|
var r;
|
|
1445
|
-
throw
|
|
1445
|
+
throw ve(ve({}, t.response.data), { httpStatus: t.response.status, httpStatusText: t.response.statusText, message: "There was an error while fetching the logged in user", exception: (r = t.response.data.exception) !== null && r !== void 0 ? r : "" });
|
|
1446
1446
|
})];
|
|
1447
1447
|
});
|
|
1448
1448
|
});
|
|
@@ -1452,7 +1452,7 @@ var Gi = function() {
|
|
|
1452
1452
|
return [2, this.axios.post("/api/method/logout", {}).then(function() {
|
|
1453
1453
|
}).catch(function(t) {
|
|
1454
1454
|
var r, s;
|
|
1455
|
-
throw
|
|
1455
|
+
throw ve(ve({}, t.response.data), { httpStatus: t.response.status, httpStatusText: t.response.statusText, message: (r = t.response.data.message) !== null && r !== void 0 ? r : "There was an error while logging out", exception: (s = t.response.data.exception) !== null && s !== void 0 ? s : "" });
|
|
1456
1456
|
})];
|
|
1457
1457
|
});
|
|
1458
1458
|
});
|
|
@@ -1465,15 +1465,15 @@ var Gi = function() {
|
|
|
1465
1465
|
}).then(function() {
|
|
1466
1466
|
}).catch(function(r) {
|
|
1467
1467
|
var s, i;
|
|
1468
|
-
throw
|
|
1468
|
+
throw ve(ve({}, r.response.data), { httpStatus: r.response.status, httpStatusText: r.response.statusText, message: (s = r.response.data.message) !== null && s !== void 0 ? s : "There was an error sending password reset email.", exception: (i = r.response.data.exception) !== null && i !== void 0 ? i : "" });
|
|
1469
1469
|
})];
|
|
1470
1470
|
});
|
|
1471
1471
|
});
|
|
1472
1472
|
}, n;
|
|
1473
1473
|
}();
|
|
1474
|
-
|
|
1474
|
+
qt.FrappeAuth = Gi;
|
|
1475
1475
|
var br;
|
|
1476
|
-
function
|
|
1476
|
+
function ns() {
|
|
1477
1477
|
return br || (br = 1, function(n) {
|
|
1478
1478
|
var e = P && P.__createBinding || (Object.create ? function(r, s, i, o) {
|
|
1479
1479
|
o === void 0 && (o = i);
|
|
@@ -1487,10 +1487,10 @@ function ts() {
|
|
|
1487
1487
|
for (var i in r)
|
|
1488
1488
|
i !== "default" && !Object.prototype.hasOwnProperty.call(s, i) && e(s, r, i);
|
|
1489
1489
|
};
|
|
1490
|
-
Object.defineProperty(n, "__esModule", { value: !0 }), t(Ki(), n), t(
|
|
1490
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), t(Ki(), n), t(qt, n), t(ht, n), t(dt, n), t(ft, n);
|
|
1491
1491
|
}(Yt)), Yt;
|
|
1492
1492
|
}
|
|
1493
|
-
var Xi =
|
|
1493
|
+
var Xi = ns(), rs = { exports: {} }, fn = {};
|
|
1494
1494
|
/**
|
|
1495
1495
|
* @license React
|
|
1496
1496
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -1505,7 +1505,7 @@ function Qi() {
|
|
|
1505
1505
|
if (wr)
|
|
1506
1506
|
return fn;
|
|
1507
1507
|
wr = 1;
|
|
1508
|
-
var n =
|
|
1508
|
+
var n = qe;
|
|
1509
1509
|
function e(l, v) {
|
|
1510
1510
|
return l === v && (l !== 0 || 1 / l === 1 / v) || l !== l && v !== v;
|
|
1511
1511
|
}
|
|
@@ -1550,17 +1550,17 @@ var Er;
|
|
|
1550
1550
|
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
|
-
var n =
|
|
1553
|
+
var n = qe, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1554
1554
|
function t(x) {
|
|
1555
1555
|
{
|
|
1556
|
-
for (var y = arguments.length, V = new Array(y > 1 ? y - 1 : 0),
|
|
1557
|
-
V[
|
|
1556
|
+
for (var y = arguments.length, V = new Array(y > 1 ? y - 1 : 0), U = 1; U < y; U++)
|
|
1557
|
+
V[U - 1] = arguments[U];
|
|
1558
1558
|
r("error", x, V);
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
1561
|
function r(x, y, V) {
|
|
1562
1562
|
{
|
|
1563
|
-
var
|
|
1563
|
+
var U = e.ReactDebugCurrentFrame, k = U.getStackAddendum();
|
|
1564
1564
|
k !== "" && (y += "%s", V = V.concat([k]));
|
|
1565
1565
|
var E = V.map(function(j) {
|
|
1566
1566
|
return String(j);
|
|
@@ -1574,38 +1574,38 @@ function Zi() {
|
|
|
1574
1574
|
var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, c = n.useEffect, h = n.useLayoutEffect, a = n.useDebugValue, f = !1, l = !1;
|
|
1575
1575
|
function v(x, y, V) {
|
|
1576
1576
|
f || n.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."));
|
|
1577
|
-
var
|
|
1577
|
+
var U = y();
|
|
1578
1578
|
if (!l) {
|
|
1579
1579
|
var k = y();
|
|
1580
|
-
i(
|
|
1580
|
+
i(U, k) || (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
|
-
value:
|
|
1584
|
+
value: U,
|
|
1585
1585
|
getSnapshot: y
|
|
1586
1586
|
}
|
|
1587
|
-
}), j = E[0].inst,
|
|
1587
|
+
}), j = E[0].inst, L = E[1];
|
|
1588
1588
|
return h(function() {
|
|
1589
|
-
j.value =
|
|
1589
|
+
j.value = U, j.getSnapshot = y, p(j) && L({
|
|
1590
1590
|
inst: j
|
|
1591
1591
|
});
|
|
1592
|
-
}, [x,
|
|
1593
|
-
p(j) &&
|
|
1592
|
+
}, [x, U, y]), c(function() {
|
|
1593
|
+
p(j) && L({
|
|
1594
1594
|
inst: j
|
|
1595
1595
|
});
|
|
1596
1596
|
var X = function() {
|
|
1597
|
-
p(j) &&
|
|
1597
|
+
p(j) && L({
|
|
1598
1598
|
inst: j
|
|
1599
1599
|
});
|
|
1600
1600
|
};
|
|
1601
1601
|
return x(X);
|
|
1602
|
-
}, [x]), a(
|
|
1602
|
+
}, [x]), a(U), U;
|
|
1603
1603
|
}
|
|
1604
1604
|
function p(x) {
|
|
1605
1605
|
var y = x.getSnapshot, V = x.value;
|
|
1606
1606
|
try {
|
|
1607
|
-
var
|
|
1608
|
-
return !i(V,
|
|
1607
|
+
var U = y();
|
|
1608
|
+
return !i(V, U);
|
|
1609
1609
|
} catch {
|
|
1610
1610
|
return !0;
|
|
1611
1611
|
}
|
|
@@ -1613,18 +1613,18 @@ function Zi() {
|
|
|
1613
1613
|
function b(x, y, V) {
|
|
1614
1614
|
return y();
|
|
1615
1615
|
}
|
|
1616
|
-
var w = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", I = !w, g = I ? b : v,
|
|
1617
|
-
hn.useSyncExternalStore =
|
|
1616
|
+
var w = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", I = !w, g = I ? b : v, T = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : g;
|
|
1617
|
+
hn.useSyncExternalStore = T, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1618
1618
|
}()), hn;
|
|
1619
1619
|
}
|
|
1620
1620
|
(function(n) {
|
|
1621
1621
|
process.env.NODE_ENV === "production" ? n.exports = Qi() : n.exports = Zi();
|
|
1622
|
-
})(
|
|
1623
|
-
const
|
|
1624
|
-
},
|
|
1622
|
+
})(rs);
|
|
1623
|
+
const Ae = () => {
|
|
1624
|
+
}, fe = Ae(), dn = Object, C = (n) => n === fe, xe = (n) => typeof n == "function", Le = (n, e) => ({
|
|
1625
1625
|
...n,
|
|
1626
1626
|
...e
|
|
1627
|
-
}), eo = (n) =>
|
|
1627
|
+
}), eo = (n) => xe(n.then), Tt = /* @__PURE__ */ new WeakMap();
|
|
1628
1628
|
let to = 0;
|
|
1629
1629
|
const ct = (n) => {
|
|
1630
1630
|
const e = typeof n, t = n && n.constructor, r = t == Date;
|
|
@@ -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
|
-
},
|
|
1651
|
-
const t =
|
|
1650
|
+
}, Oe = /* @__PURE__ */ new WeakMap(), pn = {}, Ot = {}, Fn = "undefined", Vt = typeof window != Fn, bn = typeof document != Fn, no = () => Vt && typeof window.requestAnimationFrame != Fn, ss = (n, e) => {
|
|
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, Le(s, r), s || pn);
|
|
1658
1658
|
}
|
|
1659
1659
|
},
|
|
1660
1660
|
t[6],
|
|
@@ -1666,8 +1666,8 @@ const ro = () => wn, [En, Rn] = Vt && window.addEventListener ? [
|
|
|
1666
1666
|
window.addEventListener.bind(window),
|
|
1667
1667
|
window.removeEventListener.bind(window)
|
|
1668
1668
|
] : [
|
|
1669
|
-
|
|
1670
|
-
|
|
1669
|
+
Ae,
|
|
1670
|
+
Ae
|
|
1671
1671
|
], so = () => {
|
|
1672
1672
|
const n = bn && document.visibilityState;
|
|
1673
1673
|
return C(n) || n !== "hidden";
|
|
@@ -1688,11 +1688,11 @@ const ro = () => wn, [En, Rn] = Vt && window.addEventListener ? [
|
|
|
1688
1688
|
}, uo = {
|
|
1689
1689
|
initFocus: io,
|
|
1690
1690
|
initReconnect: oo
|
|
1691
|
-
}, Rr = !
|
|
1691
|
+
}, Rr = !qe.useId, lt = !Vt || "Deno" in window, co = (n) => no() ? window.requestAnimationFrame(n) : setTimeout(n, 1), vn = lt ? Xe : Hs, mn = typeof navigator < "u" && navigator.connection, Sr = !lt && mn && ([
|
|
1692
1692
|
"slow-2g",
|
|
1693
1693
|
"2g"
|
|
1694
1694
|
].includes(mn.effectiveType) || mn.saveData), In = (n) => {
|
|
1695
|
-
if (
|
|
1695
|
+
if (xe(n))
|
|
1696
1696
|
try {
|
|
1697
1697
|
n = n();
|
|
1698
1698
|
} catch {
|
|
@@ -1705,16 +1705,16 @@ const ro = () => wn, [En, Rn] = Vt && window.addEventListener ? [
|
|
|
1705
1705
|
];
|
|
1706
1706
|
};
|
|
1707
1707
|
let lo = 0;
|
|
1708
|
-
const Sn = () => ++lo,
|
|
1708
|
+
const Sn = () => ++lo, is = 0, os = 1, as = 2, fo = 3;
|
|
1709
1709
|
var st = {
|
|
1710
1710
|
__proto__: null,
|
|
1711
1711
|
ERROR_REVALIDATE_EVENT: fo,
|
|
1712
|
-
FOCUS_EVENT:
|
|
1713
|
-
MUTATE_EVENT:
|
|
1714
|
-
RECONNECT_EVENT:
|
|
1712
|
+
FOCUS_EVENT: is,
|
|
1713
|
+
MUTATE_EVENT: as,
|
|
1714
|
+
RECONNECT_EVENT: os
|
|
1715
1715
|
};
|
|
1716
|
-
async function
|
|
1717
|
-
const [e, t, r, s] = n, i =
|
|
1716
|
+
async function us(...n) {
|
|
1717
|
+
const [e, t, r, s] = n, i = Le({
|
|
1718
1718
|
populateCache: !0,
|
|
1719
1719
|
throwOnError: !0
|
|
1720
1720
|
}, typeof s == "boolean" ? {
|
|
@@ -1724,7 +1724,7 @@ async function as(...n) {
|
|
|
1724
1724
|
const c = i.rollbackOnError;
|
|
1725
1725
|
let h = i.optimisticData;
|
|
1726
1726
|
const a = i.revalidate !== !1, f = (p) => typeof c == "function" ? c(p) : c !== !1, l = i.throwOnError;
|
|
1727
|
-
if (
|
|
1727
|
+
if (xe(t)) {
|
|
1728
1728
|
const p = t, b = [], w = e.keys();
|
|
1729
1729
|
for (const I of w)
|
|
1730
1730
|
!/^\$(inf|sub)\$/.test(I) && p(e.get(I)._k) && b.push(I);
|
|
@@ -1735,60 +1735,60 @@ async function as(...n) {
|
|
|
1735
1735
|
const [b] = In(p);
|
|
1736
1736
|
if (!b)
|
|
1737
1737
|
return;
|
|
1738
|
-
const [w, I] =
|
|
1738
|
+
const [w, I] = ss(e, b), [g, T, x, y] = Oe.get(e), V = g[b], U = () => a && (delete x[b], delete y[b], V && V[0]) ? V[0](as).then(() => w().data) : w().data;
|
|
1739
1739
|
if (n.length < 3)
|
|
1740
|
-
return
|
|
1740
|
+
return U();
|
|
1741
1741
|
let k = 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 L = !C(h), X = w(), ne = X.data, Z = X._c, $ = C(Z) ? ne : Z;
|
|
1748
|
+
if (L && (h = xe(h) ? h($, ne) : h, I({
|
|
1749
1749
|
data: h,
|
|
1750
1750
|
_c: $
|
|
1751
|
-
})),
|
|
1751
|
+
})), xe(k))
|
|
1752
1752
|
try {
|
|
1753
1753
|
k = k($);
|
|
1754
|
-
} catch (
|
|
1755
|
-
E =
|
|
1754
|
+
} catch (be) {
|
|
1755
|
+
E = be;
|
|
1756
1756
|
}
|
|
1757
1757
|
if (k && eo(k))
|
|
1758
|
-
if (k = await k.catch((
|
|
1759
|
-
E =
|
|
1760
|
-
}), j !==
|
|
1758
|
+
if (k = await k.catch((be) => {
|
|
1759
|
+
E = be;
|
|
1760
|
+
}), j !== T[b][0]) {
|
|
1761
1761
|
if (E)
|
|
1762
1762
|
throw E;
|
|
1763
1763
|
return k;
|
|
1764
1764
|
} else
|
|
1765
|
-
E &&
|
|
1765
|
+
E && L && f(E) && (o = !0, k = $, I({
|
|
1766
1766
|
data: k,
|
|
1767
|
-
_c:
|
|
1767
|
+
_c: fe
|
|
1768
1768
|
}));
|
|
1769
|
-
o && (E || (
|
|
1769
|
+
o && (E || (xe(o) && (k = o(k, $)), I({
|
|
1770
1770
|
data: k,
|
|
1771
|
-
error:
|
|
1772
|
-
_c:
|
|
1773
|
-
}))),
|
|
1774
|
-
const
|
|
1771
|
+
error: fe,
|
|
1772
|
+
_c: fe
|
|
1773
|
+
}))), T[b][1] = Sn();
|
|
1774
|
+
const _e = await U();
|
|
1775
1775
|
if (I({
|
|
1776
|
-
_c:
|
|
1776
|
+
_c: fe
|
|
1777
1777
|
}), E) {
|
|
1778
1778
|
if (l)
|
|
1779
1779
|
throw E;
|
|
1780
1780
|
return;
|
|
1781
1781
|
}
|
|
1782
|
-
return o ?
|
|
1782
|
+
return o ? _e : k;
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
1785
|
const Tr = (n, e) => {
|
|
1786
1786
|
for (const t in n)
|
|
1787
1787
|
n[t][0] && n[t][0](e);
|
|
1788
1788
|
}, ho = (n, e) => {
|
|
1789
|
-
if (!
|
|
1790
|
-
const t =
|
|
1791
|
-
let i =
|
|
1789
|
+
if (!Oe.has(n)) {
|
|
1790
|
+
const t = Le(uo, e), r = {}, s = us.bind(fe, n);
|
|
1791
|
+
let i = Ae;
|
|
1792
1792
|
const o = {}, c = (f, l) => {
|
|
1793
1793
|
const v = o[f] || [];
|
|
1794
1794
|
return o[f] = v, v.push(l), () => v.splice(v.indexOf(l), 1);
|
|
@@ -1799,7 +1799,7 @@ const Tr = (n, e) => {
|
|
|
1799
1799
|
for (const b of p)
|
|
1800
1800
|
b(l, v);
|
|
1801
1801
|
}, a = () => {
|
|
1802
|
-
if (!
|
|
1802
|
+
if (!Oe.has(n) && (Oe.set(n, [
|
|
1803
1803
|
r,
|
|
1804
1804
|
{},
|
|
1805
1805
|
{},
|
|
@@ -1808,9 +1808,9 @@ const Tr = (n, e) => {
|
|
|
1808
1808
|
h,
|
|
1809
1809
|
c
|
|
1810
1810
|
]), !lt)) {
|
|
1811
|
-
const f = t.initFocus(setTimeout.bind(
|
|
1811
|
+
const f = t.initFocus(setTimeout.bind(fe, Tr.bind(fe, r, is))), l = t.initReconnect(setTimeout.bind(fe, Tr.bind(fe, r, os)));
|
|
1812
1812
|
i = () => {
|
|
1813
|
-
f && f(), l && l(),
|
|
1813
|
+
f && f(), l && l(), Oe.delete(n);
|
|
1814
1814
|
};
|
|
1815
1815
|
}
|
|
1816
1816
|
};
|
|
@@ -1823,18 +1823,18 @@ const Tr = (n, e) => {
|
|
|
1823
1823
|
}
|
|
1824
1824
|
return [
|
|
1825
1825
|
n,
|
|
1826
|
-
|
|
1826
|
+
Oe.get(n)[4]
|
|
1827
1827
|
];
|
|
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), [
|
|
1831
|
+
}, vo = (n, e) => ct(n) == ct(e), [cs, mo] = ho(/* @__PURE__ */ new Map()), yo = Le(
|
|
1832
1832
|
{
|
|
1833
|
-
onLoadingSlow:
|
|
1834
|
-
onSuccess:
|
|
1835
|
-
onError:
|
|
1833
|
+
onLoadingSlow: Ae,
|
|
1834
|
+
onSuccess: Ae,
|
|
1835
|
+
onError: Ae,
|
|
1836
1836
|
onErrorRetry: po,
|
|
1837
|
-
onDiscarded:
|
|
1837
|
+
onDiscarded: Ae,
|
|
1838
1838
|
revalidateOnFocus: !0,
|
|
1839
1839
|
revalidateOnReconnect: !0,
|
|
1840
1840
|
revalidateIfStale: !0,
|
|
@@ -1845,21 +1845,21 @@ const Tr = (n, e) => {
|
|
|
1845
1845
|
loadingTimeout: Sr ? 5e3 : 3e3,
|
|
1846
1846
|
compare: vo,
|
|
1847
1847
|
isPaused: () => !1,
|
|
1848
|
-
cache:
|
|
1848
|
+
cache: cs,
|
|
1849
1849
|
mutate: mo,
|
|
1850
1850
|
fallback: {}
|
|
1851
1851
|
},
|
|
1852
1852
|
ao
|
|
1853
1853
|
), go = (n, e) => {
|
|
1854
|
-
const t =
|
|
1854
|
+
const t = Le(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 = Le(s, o));
|
|
1858
1858
|
}
|
|
1859
1859
|
return t;
|
|
1860
|
-
}, _o =
|
|
1861
|
-
|
|
1862
|
-
}, Eo = (n) =>
|
|
1860
|
+
}, _o = Ur({}), ls = Vt && window.__SWR_DEVTOOLS_USE__, bo = ls ? window.__SWR_DEVTOOLS_USE__ : [], wo = () => {
|
|
1861
|
+
ls && (window.__SWR_DEVTOOLS_REACT__ = qe);
|
|
1862
|
+
}, Eo = (n) => xe(n[1]) ? [
|
|
1863
1863
|
n[0],
|
|
1864
1864
|
n[1],
|
|
1865
1865
|
n[2] || {}
|
|
@@ -1867,8 +1867,8 @@ const Tr = (n, e) => {
|
|
|
1867
1867
|
n[0],
|
|
1868
1868
|
null,
|
|
1869
1869
|
(n[1] === null ? n[2] : n[1]) || {}
|
|
1870
|
-
], Ro = () =>
|
|
1871
|
-
const [o] = In(e), [, , , c] =
|
|
1870
|
+
], Ro = () => Le(yo, ee(_o)), So = (n) => (e, t, r) => n(e, t && ((...i) => {
|
|
1871
|
+
const [o] = In(e), [, , , c] = Oe.get(cs), h = c[o];
|
|
1872
1872
|
return C(h) ? t(...i) : (delete c[o], h);
|
|
1873
1873
|
}), r), To = bo.concat(So), Oo = (n) => function(...t) {
|
|
1874
1874
|
const r = Ro(), [s, i, o] = Eo(t), c = go(r, o);
|
|
@@ -1885,7 +1885,7 @@ const Tr = (n, e) => {
|
|
|
1885
1885
|
};
|
|
1886
1886
|
};
|
|
1887
1887
|
wo();
|
|
1888
|
-
const Or =
|
|
1888
|
+
const Or = qe.use || ((n) => {
|
|
1889
1889
|
if (n.status === "pending")
|
|
1890
1890
|
throw n;
|
|
1891
1891
|
if (n.status === "fulfilled")
|
|
@@ -1898,84 +1898,84 @@ const Or = Ue.use || ((n) => {
|
|
|
1898
1898
|
}), yn = {
|
|
1899
1899
|
dedupe: !0
|
|
1900
1900
|
}, Co = (n, e, t) => {
|
|
1901
|
-
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: h, refreshInterval: a, refreshWhenHidden: f, refreshWhenOffline: l, keepPreviousData: v } = t, [p, b, w, I] =
|
|
1901
|
+
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: h, refreshInterval: a, refreshWhenHidden: f, refreshWhenOffline: l, keepPreviousData: v } = t, [p, b, w, I] = Oe.get(r), [g, T] = In(n), x = Fe(!1), y = Fe(!1), V = Fe(g), U = Fe(e), k = Fe(t), E = () => k.current, j = () => E().isVisible() && E().isOnline(), [L, X, ne, Z] = ss(r, g), $ = Fe({}).current, _e = C(o) ? t.fallback[g] : o, be = (D, B) => {
|
|
1902
1902
|
for (const G in $) {
|
|
1903
|
-
const
|
|
1904
|
-
if (
|
|
1905
|
-
if (!s(
|
|
1903
|
+
const q = G;
|
|
1904
|
+
if (q === "data") {
|
|
1905
|
+
if (!s(D[q], B[q]) && (!C(D[q]) || !s(Ve, B[q])))
|
|
1906
1906
|
return !1;
|
|
1907
|
-
} else if (B[
|
|
1907
|
+
} else if (B[q] !== D[q])
|
|
1908
1908
|
return !1;
|
|
1909
1909
|
}
|
|
1910
1910
|
return !0;
|
|
1911
1911
|
}, Ze = qr(() => {
|
|
1912
|
-
const
|
|
1913
|
-
const
|
|
1914
|
-
return delete
|
|
1912
|
+
const D = (() => !g || !e ? !1 : C(c) ? E().isPaused() || i ? !1 : C(h) ? !0 : h : c)(), B = (Y) => {
|
|
1913
|
+
const he = Le(Y);
|
|
1914
|
+
return delete he._k, D ? {
|
|
1915
1915
|
isValidating: !0,
|
|
1916
1916
|
isLoading: !0,
|
|
1917
|
-
...
|
|
1918
|
-
} :
|
|
1919
|
-
}, G =
|
|
1917
|
+
...he
|
|
1918
|
+
} : he;
|
|
1919
|
+
}, G = L(), q = Z(), re = B(G), Se = G === q ? re : B(q);
|
|
1920
1920
|
let H = re;
|
|
1921
1921
|
return [
|
|
1922
1922
|
() => {
|
|
1923
|
-
const Y = B(
|
|
1924
|
-
return
|
|
1923
|
+
const Y = B(L());
|
|
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
|
|
1927
1927
|
];
|
|
1928
1928
|
}, [
|
|
1929
1929
|
r,
|
|
1930
1930
|
g
|
|
1931
|
-
]),
|
|
1932
|
-
(
|
|
1933
|
-
|
|
1931
|
+
]), we = rs.exports.useSyncExternalStore(M(
|
|
1932
|
+
(D) => ne(g, (B, G) => {
|
|
1933
|
+
be(G, B) || D();
|
|
1934
1934
|
}),
|
|
1935
1935
|
[
|
|
1936
1936
|
r,
|
|
1937
1937
|
g
|
|
1938
1938
|
]
|
|
1939
|
-
), Ze[0], Ze[1]), et = !x.current, mt = p[g] && p[g].length > 0,
|
|
1940
|
-
async (
|
|
1941
|
-
const B =
|
|
1939
|
+
), Ze[0], Ze[1]), et = !x.current, mt = p[g] && p[g].length > 0, Ee = we.data, Re = C(Ee) ? _e : Ee, Ne = we.error, yt = Fe(Re), Ve = v ? C(Ee) ? yt.current : Ee : Re, je = (() => mt && !C(Ne) ? !1 : et && !C(c) ? c : E().isPaused() ? !1 : i ? C(Re) ? !1 : h : C(Re) || h)(), $e = !!(g && e && et && je), Me = C(we.isValidating) ? $e : we.isValidating, tt = C(we.isLoading) ? $e : we.isLoading, pe = M(
|
|
1940
|
+
async (D) => {
|
|
1941
|
+
const B = U.current;
|
|
1942
1942
|
if (!g || !B || y.current || E().isPaused())
|
|
1943
1943
|
return !1;
|
|
1944
|
-
let G,
|
|
1945
|
-
const
|
|
1944
|
+
let G, q, re = !0;
|
|
1945
|
+
const Se = D || {}, H = !w[g] || !Se.dedupe, Y = () => Rr ? !y.current && g === V.current && x.current : g === V.current, he = {
|
|
1946
1946
|
isValidating: !1,
|
|
1947
1947
|
isLoading: !1
|
|
1948
1948
|
}, _t = () => {
|
|
1949
|
-
X(
|
|
1949
|
+
X(he);
|
|
1950
1950
|
}, We = () => {
|
|
1951
1951
|
const ie = w[g];
|
|
1952
|
-
ie && ie[1] ===
|
|
1952
|
+
ie && ie[1] === q && delete w[g];
|
|
1953
1953
|
}, bt = {
|
|
1954
1954
|
isValidating: !0
|
|
1955
1955
|
};
|
|
1956
|
-
C(
|
|
1956
|
+
C(L().data) && (bt.isLoading = !0);
|
|
1957
1957
|
try {
|
|
1958
|
-
if (H && (X(bt), t.loadingTimeout && C(
|
|
1958
|
+
if (H && (X(bt), t.loadingTimeout && C(L().data) && setTimeout(() => {
|
|
1959
1959
|
re && Y() && E().onLoadingSlow(g, t);
|
|
1960
1960
|
}, t.loadingTimeout), w[g] = [
|
|
1961
|
-
B(
|
|
1961
|
+
B(T),
|
|
1962
1962
|
Sn()
|
|
1963
|
-
]), [G,
|
|
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;
|
|
1965
|
-
|
|
1965
|
+
he.error = fe;
|
|
1966
1966
|
const ie = b[g];
|
|
1967
|
-
if (!C(ie) && (
|
|
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 =
|
|
1970
|
-
|
|
1969
|
+
const ue = L().data;
|
|
1970
|
+
he.data = s(ue, G) ? ue : G, H && Y() && E().onSuccess(G, g, t);
|
|
1971
1971
|
} catch (ie) {
|
|
1972
1972
|
We();
|
|
1973
1973
|
const ue = E(), { shouldRetryOnError: He } = ue;
|
|
1974
|
-
ue.isPaused() || (
|
|
1974
|
+
ue.isPaused() || (he.error = ie, H && Y() && (ue.onError(ie, g, ue), (He === !0 || xe(He) && He(ie)) && j() && ue.onErrorRetry(ie, g, ue, (Pe) => {
|
|
1975
1975
|
const nt = p[g];
|
|
1976
1976
|
nt && nt[0] && nt[0](st.ERROR_REVALIDATE_EVENT, Pe);
|
|
1977
1977
|
}, {
|
|
1978
|
-
retryCount: (
|
|
1978
|
+
retryCount: (Se.retryCount || 0) + 1,
|
|
1979
1979
|
dedupe: !0
|
|
1980
1980
|
})));
|
|
1981
1981
|
}
|
|
@@ -1986,64 +1986,64 @@ const Or = Ue.use || ((n) => {
|
|
|
1986
1986
|
r
|
|
1987
1987
|
]
|
|
1988
1988
|
), gt = M(
|
|
1989
|
-
(...
|
|
1989
|
+
(...D) => us(r, V.current, ...D),
|
|
1990
1990
|
[]
|
|
1991
1991
|
);
|
|
1992
1992
|
if (vn(() => {
|
|
1993
|
-
|
|
1993
|
+
U.current = e, k.current = t, C(Ee) || (yt.current = Ee);
|
|
1994
1994
|
}), vn(() => {
|
|
1995
1995
|
if (!g)
|
|
1996
1996
|
return;
|
|
1997
|
-
const
|
|
1997
|
+
const D = pe.bind(fe, yn);
|
|
1998
1998
|
let B = 0;
|
|
1999
|
-
const
|
|
1999
|
+
const q = xo(g, p, (re, Se = {}) => {
|
|
2000
2000
|
if (re == st.FOCUS_EVENT) {
|
|
2001
2001
|
const H = Date.now();
|
|
2002
|
-
E().revalidateOnFocus && H > B && j() && (B = H + E().focusThrottleInterval,
|
|
2002
|
+
E().revalidateOnFocus && H > B && j() && (B = H + E().focusThrottleInterval, D());
|
|
2003
2003
|
} else if (re == st.RECONNECT_EVENT)
|
|
2004
|
-
E().revalidateOnReconnect && j() &&
|
|
2004
|
+
E().revalidateOnReconnect && j() && D();
|
|
2005
2005
|
else {
|
|
2006
2006
|
if (re == st.MUTATE_EVENT)
|
|
2007
|
-
return
|
|
2007
|
+
return pe();
|
|
2008
2008
|
if (re == st.ERROR_REVALIDATE_EVENT)
|
|
2009
|
-
return
|
|
2009
|
+
return pe(Se);
|
|
2010
2010
|
}
|
|
2011
2011
|
});
|
|
2012
2012
|
return y.current = !1, V.current = g, x.current = !0, X({
|
|
2013
|
-
_k:
|
|
2014
|
-
}), je && (C(
|
|
2015
|
-
y.current = !0,
|
|
2013
|
+
_k: T
|
|
2014
|
+
}), je && (C(Re) || lt ? D() : co(D)), () => {
|
|
2015
|
+
y.current = !0, q();
|
|
2016
2016
|
};
|
|
2017
2017
|
}, [
|
|
2018
2018
|
g
|
|
2019
2019
|
]), vn(() => {
|
|
2020
|
-
let
|
|
2020
|
+
let D;
|
|
2021
2021
|
function B() {
|
|
2022
|
-
const
|
|
2023
|
-
|
|
2022
|
+
const q = xe(a) ? a(L().data) : a;
|
|
2023
|
+
q && D !== -1 && (D = setTimeout(G, q));
|
|
2024
2024
|
}
|
|
2025
2025
|
function G() {
|
|
2026
|
-
!
|
|
2026
|
+
!L().error && (f || E().isVisible()) && (l || E().isOnline()) ? pe(yn).then(B) : B();
|
|
2027
2027
|
}
|
|
2028
2028
|
return B(), () => {
|
|
2029
|
-
|
|
2029
|
+
D && (clearTimeout(D), D = -1);
|
|
2030
2030
|
};
|
|
2031
2031
|
}, [
|
|
2032
2032
|
a,
|
|
2033
2033
|
f,
|
|
2034
2034
|
l,
|
|
2035
2035
|
g
|
|
2036
|
-
]), Ys(Ve), i && C(
|
|
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
|
-
|
|
2040
|
-
const
|
|
2041
|
-
if (!C(
|
|
2042
|
-
const B = gt(
|
|
2039
|
+
U.current = e, k.current = t, y.current = !1;
|
|
2040
|
+
const D = I[g];
|
|
2041
|
+
if (!C(D)) {
|
|
2042
|
+
const B = gt(D);
|
|
2043
2043
|
Or(B);
|
|
2044
2044
|
}
|
|
2045
2045
|
if (C(Ne)) {
|
|
2046
|
-
const B =
|
|
2046
|
+
const B = pe(yn);
|
|
2047
2047
|
C(Ve) || (B.status = "fulfilled", B.value = !0), Or(B);
|
|
2048
2048
|
} else
|
|
2049
2049
|
throw Ne;
|
|
@@ -2063,19 +2063,19 @@ const Or = Ue.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), ye = /* @__PURE__ */ Object.create(null);
|
|
2067
|
+
ye.open = "0";
|
|
2068
|
+
ye.close = "1";
|
|
2069
|
+
ye.ping = "2";
|
|
2070
|
+
ye.pong = "3";
|
|
2071
|
+
ye.message = "4";
|
|
2072
|
+
ye.upgrade = "5";
|
|
2073
|
+
ye.noop = "6";
|
|
2074
|
+
const Lt = /* @__PURE__ */ Object.create(null);
|
|
2075
|
+
Object.keys(ye).forEach((n) => {
|
|
2076
|
+
Lt[ye[n]] = n;
|
|
2077
2077
|
});
|
|
2078
|
-
const Ao = { type: "error", data: "parser error" }, ko = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]",
|
|
2078
|
+
const Ao = { type: "error", data: "parser error" }, ko = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Lo = typeof ArrayBuffer == "function", Do = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n && n.buffer instanceof ArrayBuffer, fs = ({ type: n, data: e }, t, r) => ko && e instanceof Blob ? t ? r(e) : xr(e, r) : Lo && (e instanceof ArrayBuffer || Do(e)) ? t ? r(e) : xr(new Blob([e]), r) : r(ye[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];
|
|
@@ -2091,29 +2091,29 @@ const No = (n) => {
|
|
|
2091
2091
|
for (r = 0; r < t; r += 4)
|
|
2092
2092
|
i = ut[n.charCodeAt(r)], o = ut[n.charCodeAt(r + 1)], c = ut[n.charCodeAt(r + 2)], h = ut[n.charCodeAt(r + 3)], f[s++] = i << 2 | o >> 4, f[s++] = (o & 15) << 4 | c >> 2, f[s++] = (c & 3) << 6 | h & 63;
|
|
2093
2093
|
return a;
|
|
2094
|
-
}, Po = typeof ArrayBuffer == "function",
|
|
2094
|
+
}, Po = typeof ArrayBuffer == "function", hs = (n, e) => {
|
|
2095
2095
|
if (typeof n != "string")
|
|
2096
2096
|
return {
|
|
2097
2097
|
type: "message",
|
|
2098
|
-
data:
|
|
2098
|
+
data: ds(n, e)
|
|
2099
2099
|
};
|
|
2100
2100
|
const t = n.charAt(0);
|
|
2101
2101
|
return t === "b" ? {
|
|
2102
2102
|
type: "message",
|
|
2103
2103
|
data: Bo(n.substring(1), e)
|
|
2104
|
-
} :
|
|
2105
|
-
type:
|
|
2104
|
+
} : Lt[t] ? n.length > 1 ? {
|
|
2105
|
+
type: Lt[t],
|
|
2106
2106
|
data: n.substring(1)
|
|
2107
2107
|
} : {
|
|
2108
|
-
type:
|
|
2108
|
+
type: Lt[t]
|
|
2109
2109
|
} : Ao;
|
|
2110
2110
|
}, Bo = (n, e) => {
|
|
2111
2111
|
if (Po) {
|
|
2112
2112
|
const t = No(n);
|
|
2113
|
-
return
|
|
2113
|
+
return ds(t, e);
|
|
2114
2114
|
} else
|
|
2115
2115
|
return { base64: !0, data: n };
|
|
2116
|
-
},
|
|
2116
|
+
}, ds = (n, e) => {
|
|
2117
2117
|
switch (e) {
|
|
2118
2118
|
case "blob":
|
|
2119
2119
|
return n instanceof ArrayBuffer ? new Blob([n]) : n;
|
|
@@ -2121,28 +2121,28 @@ const No = (n) => {
|
|
|
2121
2121
|
default:
|
|
2122
2122
|
return n;
|
|
2123
2123
|
}
|
|
2124
|
-
},
|
|
2124
|
+
}, ps = String.fromCharCode(30), Fo = (n, e) => {
|
|
2125
2125
|
const t = n.length, r = new Array(t);
|
|
2126
2126
|
let s = 0;
|
|
2127
2127
|
n.forEach((i, o) => {
|
|
2128
|
-
|
|
2129
|
-
r[o] = c, ++s === t && e(r.join(
|
|
2128
|
+
fs(i, !1, (c) => {
|
|
2129
|
+
r[o] = c, ++s === t && e(r.join(ps));
|
|
2130
2130
|
});
|
|
2131
2131
|
});
|
|
2132
2132
|
}, Io = (n, e) => {
|
|
2133
|
-
const t = n.split(
|
|
2133
|
+
const t = n.split(ps), r = [];
|
|
2134
2134
|
for (let s = 0; s < t.length; s++) {
|
|
2135
|
-
const i =
|
|
2135
|
+
const i = hs(t[s], e);
|
|
2136
2136
|
if (r.push(i), i.type === "error")
|
|
2137
2137
|
break;
|
|
2138
2138
|
}
|
|
2139
2139
|
return r;
|
|
2140
|
-
},
|
|
2140
|
+
}, vs = 4;
|
|
2141
2141
|
function K(n) {
|
|
2142
2142
|
if (n)
|
|
2143
|
-
return
|
|
2143
|
+
return Uo(n);
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2145
|
+
function Uo(n) {
|
|
2146
2146
|
for (var e in K.prototype)
|
|
2147
2147
|
n[e] = K.prototype[e];
|
|
2148
2148
|
return n;
|
|
@@ -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 ke = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())();
|
|
2193
|
+
function ms(n, ...e) {
|
|
2194
2194
|
return e.reduce((t, r) => (n.hasOwnProperty(r) && (t[r] = n[r]), t), {});
|
|
2195
2195
|
}
|
|
2196
|
-
const
|
|
2196
|
+
const qo = setTimeout, Vo = clearTimeout;
|
|
2197
2197
|
function jt(n, e) {
|
|
2198
|
-
e.useNativeTimers ? (n.setTimeoutFn =
|
|
2198
|
+
e.useNativeTimers ? (n.setTimeoutFn = qo.bind(ke), n.clearTimeoutFn = Vo.bind(ke)) : (n.setTimeoutFn = setTimeout.bind(ke), n.clearTimeoutFn = clearTimeout.bind(ke));
|
|
2199
2199
|
}
|
|
2200
2200
|
const jo = 1.33;
|
|
2201
2201
|
function $o(n) {
|
|
@@ -2212,15 +2212,15 @@ 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 ys extends K {
|
|
2216
2216
|
constructor(e) {
|
|
2217
|
-
super(), this.writable = !1, jt(this, e), this.opts = e, this.query = e.query, this.socket = e.socket;
|
|
2217
|
+
super(), this.writable = !1, jt(this, e), this.opts = e, this.query = e.query, this.readyState = "", this.socket = e.socket;
|
|
2218
2218
|
}
|
|
2219
2219
|
onError(e, t, r) {
|
|
2220
2220
|
return super.emitReserved("error", new Wo(e, t, r)), this;
|
|
2221
2221
|
}
|
|
2222
2222
|
open() {
|
|
2223
|
-
return this.readyState = "opening", this.doOpen(), this;
|
|
2223
|
+
return (this.readyState === "closed" || this.readyState === "") && (this.readyState = "opening", this.doOpen()), this;
|
|
2224
2224
|
}
|
|
2225
2225
|
close() {
|
|
2226
2226
|
return (this.readyState === "opening" || this.readyState === "open") && (this.doClose(), this.onClose()), this;
|
|
@@ -2232,7 +2232,7 @@ class ms extends K {
|
|
|
2232
2232
|
this.readyState = "open", this.writable = !0, super.emitReserved("open");
|
|
2233
2233
|
}
|
|
2234
2234
|
onData(e) {
|
|
2235
|
-
const t =
|
|
2235
|
+
const t = hs(e, this.socket.binaryType);
|
|
2236
2236
|
this.onPacket(t);
|
|
2237
2237
|
}
|
|
2238
2238
|
onPacket(e) {
|
|
@@ -2241,25 +2241,23 @@ class ms extends K {
|
|
|
2241
2241
|
onClose(e) {
|
|
2242
2242
|
this.readyState = "closed", super.emitReserved("close", e);
|
|
2243
2243
|
}
|
|
2244
|
-
pause(e) {
|
|
2245
|
-
}
|
|
2246
2244
|
}
|
|
2247
|
-
const
|
|
2245
|
+
const gs = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Tn = 64, Ho = {};
|
|
2248
2246
|
let Ar = 0, xt = 0, kr;
|
|
2249
|
-
function
|
|
2247
|
+
function Lr(n) {
|
|
2250
2248
|
let e = "";
|
|
2251
2249
|
do
|
|
2252
|
-
e =
|
|
2250
|
+
e = gs[n % Tn] + e, n = Math.floor(n / Tn);
|
|
2253
2251
|
while (n > 0);
|
|
2254
2252
|
return e;
|
|
2255
2253
|
}
|
|
2256
|
-
function
|
|
2257
|
-
const n =
|
|
2258
|
-
return n !== kr ? (Ar = 0, kr = n) : n + "." +
|
|
2254
|
+
function _s() {
|
|
2255
|
+
const n = Lr(+new Date());
|
|
2256
|
+
return n !== kr ? (Ar = 0, kr = n) : n + "." + Lr(Ar++);
|
|
2259
2257
|
}
|
|
2260
2258
|
for (; xt < Tn; xt++)
|
|
2261
|
-
Ho[
|
|
2262
|
-
function
|
|
2259
|
+
Ho[gs[xt]] = xt;
|
|
2260
|
+
function bs(n) {
|
|
2263
2261
|
let e = "";
|
|
2264
2262
|
for (let t in n)
|
|
2265
2263
|
n.hasOwnProperty(t) && (e.length && (e += "&"), e += encodeURIComponent(t) + "=" + encodeURIComponent(n[t]));
|
|
@@ -2273,13 +2271,13 @@ function Yo(n) {
|
|
|
2273
2271
|
}
|
|
2274
2272
|
return e;
|
|
2275
2273
|
}
|
|
2276
|
-
let
|
|
2274
|
+
let ws = !1;
|
|
2277
2275
|
try {
|
|
2278
|
-
|
|
2276
|
+
ws = typeof XMLHttpRequest < "u" && "withCredentials" in new XMLHttpRequest();
|
|
2279
2277
|
} catch {
|
|
2280
2278
|
}
|
|
2281
|
-
const Jo =
|
|
2282
|
-
function
|
|
2279
|
+
const Jo = ws;
|
|
2280
|
+
function Es(n) {
|
|
2283
2281
|
const e = n.xdomain;
|
|
2284
2282
|
try {
|
|
2285
2283
|
if (typeof XMLHttpRequest < "u" && (!e || Jo))
|
|
@@ -2288,18 +2286,18 @@ function ws(n) {
|
|
|
2288
2286
|
}
|
|
2289
2287
|
if (!e)
|
|
2290
2288
|
try {
|
|
2291
|
-
return new
|
|
2289
|
+
return new ke[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");
|
|
2292
2290
|
} catch {
|
|
2293
2291
|
}
|
|
2294
2292
|
}
|
|
2295
2293
|
function zo() {
|
|
2296
2294
|
}
|
|
2297
2295
|
const Ko = function() {
|
|
2298
|
-
return new
|
|
2296
|
+
return new Es({
|
|
2299
2297
|
xdomain: !1
|
|
2300
2298
|
}).responseType != null;
|
|
2301
2299
|
}();
|
|
2302
|
-
class Go extends
|
|
2300
|
+
class Go extends ys {
|
|
2303
2301
|
constructor(e) {
|
|
2304
2302
|
if (super(e), this.polling = !1, typeof location < "u") {
|
|
2305
2303
|
const r = location.protocol === "https:";
|
|
@@ -2358,12 +2356,12 @@ class Go extends ms {
|
|
|
2358
2356
|
let e = this.query || {};
|
|
2359
2357
|
const t = this.opts.secure ? "https" : "http";
|
|
2360
2358
|
let r = "";
|
|
2361
|
-
this.opts.timestampRequests !== !1 && (e[this.opts.timestampParam] =
|
|
2362
|
-
const s =
|
|
2359
|
+
this.opts.timestampRequests !== !1 && (e[this.opts.timestampParam] = _s()), !this.supportsBinary && !e.sid && (e.b64 = 1), this.opts.port && (t === "https" && Number(this.opts.port) !== 443 || t === "http" && Number(this.opts.port) !== 80) && (r = ":" + this.opts.port);
|
|
2360
|
+
const s = bs(e), i = this.opts.hostname.indexOf(":") !== -1;
|
|
2363
2361
|
return t + "://" + (i ? "[" + this.opts.hostname + "]" : this.opts.hostname) + r + this.opts.path + (s.length ? "?" + s : "");
|
|
2364
2362
|
}
|
|
2365
2363
|
request(e = {}) {
|
|
2366
|
-
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 me(this.uri(), e);
|
|
2367
2365
|
}
|
|
2368
2366
|
doWrite(e, t) {
|
|
2369
2367
|
const r = this.request({
|
|
@@ -2381,14 +2379,14 @@ class Go extends ms {
|
|
|
2381
2379
|
}), this.pollXhr = e;
|
|
2382
2380
|
}
|
|
2383
2381
|
}
|
|
2384
|
-
class
|
|
2382
|
+
class me extends K {
|
|
2385
2383
|
constructor(e, t) {
|
|
2386
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();
|
|
2387
2385
|
}
|
|
2388
2386
|
create() {
|
|
2389
|
-
const e =
|
|
2387
|
+
const e = ms(this.opts, "agent", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "autoUnref");
|
|
2390
2388
|
e.xdomain = !!this.opts.xd, e.xscheme = !!this.opts.xs;
|
|
2391
|
-
const t = this.xhr = new
|
|
2389
|
+
const t = this.xhr = new Es(e);
|
|
2392
2390
|
try {
|
|
2393
2391
|
t.open(this.method, this.uri, this.async);
|
|
2394
2392
|
try {
|
|
@@ -2419,7 +2417,7 @@ class ye extends K {
|
|
|
2419
2417
|
}, 0);
|
|
2420
2418
|
return;
|
|
2421
2419
|
}
|
|
2422
|
-
typeof document < "u" && (this.index =
|
|
2420
|
+
typeof document < "u" && (this.index = me.requestsCount++, me.requests[this.index] = this);
|
|
2423
2421
|
}
|
|
2424
2422
|
onError(e) {
|
|
2425
2423
|
this.emitReserved("error", e, this.xhr), this.cleanup(!0);
|
|
@@ -2431,7 +2429,7 @@ class ye extends K {
|
|
|
2431
2429
|
this.xhr.abort();
|
|
2432
2430
|
} catch {
|
|
2433
2431
|
}
|
|
2434
|
-
typeof document < "u" && delete
|
|
2432
|
+
typeof document < "u" && delete me.requests[this.index], this.xhr = null;
|
|
2435
2433
|
}
|
|
2436
2434
|
}
|
|
2437
2435
|
onLoad() {
|
|
@@ -2442,22 +2440,22 @@ class ye extends K {
|
|
|
2442
2440
|
this.cleanup();
|
|
2443
2441
|
}
|
|
2444
2442
|
}
|
|
2445
|
-
|
|
2446
|
-
|
|
2443
|
+
me.requestsCount = 0;
|
|
2444
|
+
me.requests = {};
|
|
2447
2445
|
if (typeof document < "u") {
|
|
2448
2446
|
if (typeof attachEvent == "function")
|
|
2449
|
-
attachEvent("onunload",
|
|
2447
|
+
attachEvent("onunload", Dr);
|
|
2450
2448
|
else if (typeof addEventListener == "function") {
|
|
2451
|
-
const n = "onpagehide" in
|
|
2452
|
-
addEventListener(n,
|
|
2449
|
+
const n = "onpagehide" in ke ? "pagehide" : "unload";
|
|
2450
|
+
addEventListener(n, Dr, !1);
|
|
2453
2451
|
}
|
|
2454
2452
|
}
|
|
2455
|
-
function
|
|
2456
|
-
for (let n in
|
|
2457
|
-
|
|
2453
|
+
function Dr() {
|
|
2454
|
+
for (let n in me.requests)
|
|
2455
|
+
me.requests.hasOwnProperty(n) && me.requests[n].abort();
|
|
2458
2456
|
}
|
|
2459
|
-
const
|
|
2460
|
-
class
|
|
2457
|
+
const Xo = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Ct = ke.WebSocket || ke.MozWebSocket, Nr = !0, Qo = "arraybuffer", Pr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
2458
|
+
class Zo extends ys {
|
|
2461
2459
|
constructor(e) {
|
|
2462
2460
|
super(e), this.supportsBinary = !e.forceBase64;
|
|
2463
2461
|
}
|
|
@@ -2467,14 +2465,14 @@ class Qo extends ms {
|
|
|
2467
2465
|
doOpen() {
|
|
2468
2466
|
if (!this.check())
|
|
2469
2467
|
return;
|
|
2470
|
-
const e = this.uri(), t = this.opts.protocols, r = Pr ? {} :
|
|
2468
|
+
const e = this.uri(), t = this.opts.protocols, r = Pr ? {} : ms(this.opts, "agent", "perMessageDeflate", "pfx", "key", "passphrase", "cert", "ca", "ciphers", "rejectUnauthorized", "localAddress", "protocolVersion", "origin", "maxPayload", "family", "checkServerIdentity");
|
|
2471
2469
|
this.opts.extraHeaders && (r.headers = this.opts.extraHeaders);
|
|
2472
2470
|
try {
|
|
2473
2471
|
this.ws = Nr && !Pr ? t ? new Ct(e, t) : new Ct(e) : new Ct(e, t, r);
|
|
2474
2472
|
} catch (s) {
|
|
2475
2473
|
return this.emitReserved("error", s);
|
|
2476
2474
|
}
|
|
2477
|
-
this.ws.binaryType = this.socket.binaryType ||
|
|
2475
|
+
this.ws.binaryType = this.socket.binaryType || Qo, this.addEventListeners();
|
|
2478
2476
|
}
|
|
2479
2477
|
addEventListeners() {
|
|
2480
2478
|
this.ws.onopen = () => {
|
|
@@ -2488,13 +2486,13 @@ class Qo extends ms {
|
|
|
2488
2486
|
this.writable = !1;
|
|
2489
2487
|
for (let t = 0; t < e.length; t++) {
|
|
2490
2488
|
const r = e[t], s = t === e.length - 1;
|
|
2491
|
-
|
|
2489
|
+
fs(r, this.supportsBinary, (i) => {
|
|
2492
2490
|
const o = {};
|
|
2493
2491
|
try {
|
|
2494
2492
|
Nr && this.ws.send(i);
|
|
2495
2493
|
} catch {
|
|
2496
2494
|
}
|
|
2497
|
-
s &&
|
|
2495
|
+
s && Xo(() => {
|
|
2498
2496
|
this.writable = !0, this.emitReserved("drain");
|
|
2499
2497
|
}, this.setTimeoutFn);
|
|
2500
2498
|
});
|
|
@@ -2507,18 +2505,18 @@ class Qo extends ms {
|
|
|
2507
2505
|
let e = this.query || {};
|
|
2508
2506
|
const t = this.opts.secure ? "wss" : "ws";
|
|
2509
2507
|
let r = "";
|
|
2510
|
-
this.opts.port && (t === "wss" && Number(this.opts.port) !== 443 || t === "ws" && Number(this.opts.port) !== 80) && (r = ":" + this.opts.port), this.opts.timestampRequests && (e[this.opts.timestampParam] =
|
|
2511
|
-
const s =
|
|
2508
|
+
this.opts.port && (t === "wss" && Number(this.opts.port) !== 443 || t === "ws" && Number(this.opts.port) !== 80) && (r = ":" + this.opts.port), this.opts.timestampRequests && (e[this.opts.timestampParam] = _s()), this.supportsBinary || (e.b64 = 1);
|
|
2509
|
+
const s = bs(e), i = this.opts.hostname.indexOf(":") !== -1;
|
|
2512
2510
|
return t + "://" + (i ? "[" + this.opts.hostname + "]" : this.opts.hostname) + r + this.opts.path + (s.length ? "?" + s : "");
|
|
2513
2511
|
}
|
|
2514
2512
|
check() {
|
|
2515
2513
|
return !!Ct;
|
|
2516
2514
|
}
|
|
2517
2515
|
}
|
|
2518
|
-
const
|
|
2519
|
-
websocket:
|
|
2516
|
+
const ea = {
|
|
2517
|
+
websocket: Zo,
|
|
2520
2518
|
polling: Go
|
|
2521
|
-
},
|
|
2519
|
+
}, ta = /^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/, na = [
|
|
2522
2520
|
"source",
|
|
2523
2521
|
"protocol",
|
|
2524
2522
|
"authority",
|
|
@@ -2537,38 +2535,37 @@ const Zo = {
|
|
|
2537
2535
|
function On(n) {
|
|
2538
2536
|
const e = n, t = n.indexOf("["), r = n.indexOf("]");
|
|
2539
2537
|
t != -1 && r != -1 && (n = n.substring(0, t) + n.substring(t, r).replace(/:/g, ";") + n.substring(r, n.length));
|
|
2540
|
-
let s =
|
|
2538
|
+
let s = ta.exec(n || ""), i = {}, o = 14;
|
|
2541
2539
|
for (; o--; )
|
|
2542
|
-
i[
|
|
2543
|
-
return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames =
|
|
2540
|
+
i[na[o]] = s[o] || "";
|
|
2541
|
+
return t != -1 && r != -1 && (i.source = e, i.host = i.host.substring(1, i.host.length - 1).replace(/;/g, ":"), i.authority = i.authority.replace("[", "").replace("]", "").replace(/;/g, ":"), i.ipv6uri = !0), i.pathNames = ra(i, i.path), i.queryKey = sa(i, i.query), i;
|
|
2544
2542
|
}
|
|
2545
|
-
function
|
|
2543
|
+
function ra(n, e) {
|
|
2546
2544
|
const t = /\/{2,9}/g, r = e.replace(t, "/").split("/");
|
|
2547
2545
|
return (e.slice(0, 1) == "/" || e.length === 0) && r.splice(0, 1), e.slice(-1) == "/" && r.splice(r.length - 1, 1), r;
|
|
2548
2546
|
}
|
|
2549
|
-
function
|
|
2547
|
+
function sa(n, e) {
|
|
2550
2548
|
const t = {};
|
|
2551
2549
|
return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g, function(r, s, i) {
|
|
2552
2550
|
s && (t[s] = i);
|
|
2553
2551
|
}), t;
|
|
2554
2552
|
}
|
|
2555
|
-
class
|
|
2553
|
+
class Ce extends K {
|
|
2556
2554
|
constructor(e, t = {}) {
|
|
2557
|
-
super(),
|
|
2555
|
+
super(), e && typeof e == "object" && (t = e, e = null), e ? (e = On(e), t.hostname = e.host, t.secure = e.protocol === "https" || e.protocol === "wss", t.port = e.port, e.query && (t.query = e.query)) : t.host && (t.hostname = On(t.host).host), jt(this, t), this.secure = t.secure != null ? t.secure : typeof location < "u" && location.protocol === "https:", t.hostname && !t.port && (t.port = this.secure ? "443" : "80"), this.hostname = t.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = t.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = t.transports || ["polling", "websocket"], this.readyState = "", this.writeBuffer = [], this.prevBufferLen = 0, this.opts = Object.assign({
|
|
2558
2556
|
path: "/engine.io",
|
|
2559
2557
|
agent: !1,
|
|
2560
2558
|
withCredentials: !1,
|
|
2561
2559
|
upgrade: !0,
|
|
2562
2560
|
timestampParam: "t",
|
|
2563
2561
|
rememberUpgrade: !1,
|
|
2564
|
-
addTrailingSlash: !0,
|
|
2565
2562
|
rejectUnauthorized: !0,
|
|
2566
2563
|
perMessageDeflate: {
|
|
2567
2564
|
threshold: 1024
|
|
2568
2565
|
},
|
|
2569
2566
|
transportOptions: {},
|
|
2570
2567
|
closeOnBeforeunload: !0
|
|
2571
|
-
}, t), this.opts.path = this.opts.path.replace(/\/$/, "") +
|
|
2568
|
+
}, t), this.opts.path = this.opts.path.replace(/\/$/, "") + "/", typeof this.opts.query == "string" && (this.opts.query = Yo(this.opts.query)), this.id = null, this.upgrades = null, this.pingInterval = null, this.pingTimeout = null, this.pingTimeoutTimer = null, typeof addEventListener == "function" && (this.opts.closeOnBeforeunload && (this.beforeunloadEventListener = () => {
|
|
2572
2569
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
2573
2570
|
}, addEventListener("beforeunload", this.beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this.offlineEventListener = () => {
|
|
2574
2571
|
this.onClose("transport close", {
|
|
@@ -2578,7 +2575,7 @@ class Ae extends K {
|
|
|
2578
2575
|
}
|
|
2579
2576
|
createTransport(e) {
|
|
2580
2577
|
const t = Object.assign({}, this.opts.query);
|
|
2581
|
-
t.EIO =
|
|
2578
|
+
t.EIO = vs, t.transport = e, this.id && (t.sid = this.id);
|
|
2582
2579
|
const r = Object.assign({}, this.opts.transportOptions[e], this.opts, {
|
|
2583
2580
|
query: t,
|
|
2584
2581
|
socket: this,
|
|
@@ -2586,11 +2583,11 @@ class Ae extends K {
|
|
|
2586
2583
|
secure: this.secure,
|
|
2587
2584
|
port: this.port
|
|
2588
2585
|
});
|
|
2589
|
-
return new
|
|
2586
|
+
return new ea[e](r);
|
|
2590
2587
|
}
|
|
2591
2588
|
open() {
|
|
2592
2589
|
let e;
|
|
2593
|
-
if (this.opts.rememberUpgrade &&
|
|
2590
|
+
if (this.opts.rememberUpgrade && Ce.priorWebsocketSuccess && this.transports.indexOf("websocket") !== -1)
|
|
2594
2591
|
e = "websocket";
|
|
2595
2592
|
else if (this.transports.length === 0) {
|
|
2596
2593
|
this.setTimeoutFn(() => {
|
|
@@ -2613,14 +2610,14 @@ class Ae extends K {
|
|
|
2613
2610
|
}
|
|
2614
2611
|
probe(e) {
|
|
2615
2612
|
let t = this.createTransport(e), r = !1;
|
|
2616
|
-
|
|
2613
|
+
Ce.priorWebsocketSuccess = !1;
|
|
2617
2614
|
const s = () => {
|
|
2618
2615
|
r || (t.send([{ type: "ping", data: "probe" }]), t.once("packet", (l) => {
|
|
2619
2616
|
if (!r)
|
|
2620
2617
|
if (l.type === "pong" && l.data === "probe") {
|
|
2621
2618
|
if (this.upgrading = !0, this.emitReserved("upgrading", t), !t)
|
|
2622
2619
|
return;
|
|
2623
|
-
|
|
2620
|
+
Ce.priorWebsocketSuccess = t.name === "websocket", this.transport.pause(() => {
|
|
2624
2621
|
r || this.readyState !== "closed" && (f(), this.setTransport(t), t.send([{ type: "upgrade" }]), this.emitReserved("upgrade", t), t = null, this.upgrading = !1, this.flush());
|
|
2625
2622
|
});
|
|
2626
2623
|
} else {
|
|
@@ -2651,7 +2648,7 @@ class Ae extends K {
|
|
|
2651
2648
|
t.once("open", s), t.once("error", o), t.once("close", c), this.once("close", h), this.once("upgrading", a), t.open();
|
|
2652
2649
|
}
|
|
2653
2650
|
onOpen() {
|
|
2654
|
-
if (this.readyState = "open",
|
|
2651
|
+
if (this.readyState = "open", Ce.priorWebsocketSuccess = this.transport.name === "websocket", this.emitReserved("open"), this.flush(), this.readyState === "open" && this.opts.upgrade && this.transport.pause) {
|
|
2655
2652
|
let e = 0;
|
|
2656
2653
|
const t = this.upgrades.length;
|
|
2657
2654
|
for (; e < t; e++)
|
|
@@ -2735,7 +2732,7 @@ class Ae extends K {
|
|
|
2735
2732
|
}) : this.upgrading ? r() : e()), this;
|
|
2736
2733
|
}
|
|
2737
2734
|
onError(e) {
|
|
2738
|
-
|
|
2735
|
+
Ce.priorWebsocketSuccess = !1, this.emitReserved("error", e), this.onClose("transport error", e);
|
|
2739
2736
|
}
|
|
2740
2737
|
onClose(e, t) {
|
|
2741
2738
|
(this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") && (this.clearTimeoutFn(this.pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), typeof removeEventListener == "function" && (removeEventListener("beforeunload", this.beforeunloadEventListener, !1), removeEventListener("offline", this.offlineEventListener, !1)), this.readyState = "closed", this.id = null, this.emitReserved("close", e, t), this.writeBuffer = [], this.prevBufferLen = 0);
|
|
@@ -2749,43 +2746,43 @@ class Ae extends K {
|
|
|
2749
2746
|
return t;
|
|
2750
2747
|
}
|
|
2751
2748
|
}
|
|
2752
|
-
|
|
2753
|
-
function
|
|
2749
|
+
Ce.protocol = vs;
|
|
2750
|
+
function ia(n, e = "", t) {
|
|
2754
2751
|
let r = n;
|
|
2755
2752
|
t = t || typeof location < "u" && location, n == null && (n = t.protocol + "//" + t.host), typeof n == "string" && (n.charAt(0) === "/" && (n.charAt(1) === "/" ? n = t.protocol + n : n = t.host + n), /^(https?|wss?):\/\//.test(n) || (typeof t < "u" ? n = t.protocol + "//" + n : n = "https://" + n), r = On(n)), r.port || (/^(http|ws)$/.test(r.protocol) ? r.port = "80" : /^(http|ws)s$/.test(r.protocol) && (r.port = "443")), r.path = r.path || "/";
|
|
2756
2753
|
const i = r.host.indexOf(":") !== -1 ? "[" + r.host + "]" : r.host;
|
|
2757
2754
|
return r.id = r.protocol + "://" + i + ":" + r.port + e, r.href = r.protocol + "://" + i + (t && t.port === r.port ? "" : ":" + r.port), r;
|
|
2758
2755
|
}
|
|
2759
|
-
const
|
|
2760
|
-
function
|
|
2761
|
-
return
|
|
2756
|
+
const oa = typeof ArrayBuffer == "function", aa = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n.buffer instanceof ArrayBuffer, Rs = Object.prototype.toString, ua = typeof Blob == "function" || typeof Blob < "u" && Rs.call(Blob) === "[object BlobConstructor]", ca = typeof File == "function" || typeof File < "u" && Rs.call(File) === "[object FileConstructor]";
|
|
2757
|
+
function Un(n) {
|
|
2758
|
+
return oa && (n instanceof ArrayBuffer || aa(n)) || ua && n instanceof Blob || ca && n instanceof File;
|
|
2762
2759
|
}
|
|
2763
|
-
function
|
|
2760
|
+
function Dt(n, e) {
|
|
2764
2761
|
if (!n || typeof n != "object")
|
|
2765
2762
|
return !1;
|
|
2766
2763
|
if (Array.isArray(n)) {
|
|
2767
2764
|
for (let t = 0, r = n.length; t < r; t++)
|
|
2768
|
-
if (
|
|
2765
|
+
if (Dt(n[t]))
|
|
2769
2766
|
return !0;
|
|
2770
2767
|
return !1;
|
|
2771
2768
|
}
|
|
2772
|
-
if (
|
|
2769
|
+
if (Un(n))
|
|
2773
2770
|
return !0;
|
|
2774
2771
|
if (n.toJSON && typeof n.toJSON == "function" && arguments.length === 1)
|
|
2775
|
-
return
|
|
2772
|
+
return Dt(n.toJSON(), !0);
|
|
2776
2773
|
for (const t in n)
|
|
2777
|
-
if (Object.prototype.hasOwnProperty.call(n, t) &&
|
|
2774
|
+
if (Object.prototype.hasOwnProperty.call(n, t) && Dt(n[t]))
|
|
2778
2775
|
return !0;
|
|
2779
2776
|
return !1;
|
|
2780
2777
|
}
|
|
2781
|
-
function
|
|
2778
|
+
function la(n) {
|
|
2782
2779
|
const e = [], t = n.data, r = n;
|
|
2783
2780
|
return r.data = xn(t, e), r.attachments = e.length, { packet: r, buffers: e };
|
|
2784
2781
|
}
|
|
2785
2782
|
function xn(n, e) {
|
|
2786
2783
|
if (!n)
|
|
2787
2784
|
return n;
|
|
2788
|
-
if (
|
|
2785
|
+
if (Un(n)) {
|
|
2789
2786
|
const t = { _placeholder: !0, num: e.length };
|
|
2790
2787
|
return e.push(n), t;
|
|
2791
2788
|
} else if (Array.isArray(n)) {
|
|
@@ -2801,7 +2798,7 @@ function xn(n, e) {
|
|
|
2801
2798
|
}
|
|
2802
2799
|
return n;
|
|
2803
2800
|
}
|
|
2804
|
-
function
|
|
2801
|
+
function fa(n, e) {
|
|
2805
2802
|
return n.data = Cn(n.data, e), delete n.attachments, n;
|
|
2806
2803
|
}
|
|
2807
2804
|
function Cn(n, e) {
|
|
@@ -2819,18 +2816,25 @@ function Cn(n, e) {
|
|
|
2819
2816
|
Object.prototype.hasOwnProperty.call(n, t) && (n[t] = Cn(n[t], e));
|
|
2820
2817
|
return n;
|
|
2821
2818
|
}
|
|
2822
|
-
const
|
|
2823
|
-
|
|
2819
|
+
const ha = [
|
|
2820
|
+
"connect",
|
|
2821
|
+
"connect_error",
|
|
2822
|
+
"disconnect",
|
|
2823
|
+
"disconnecting",
|
|
2824
|
+
"newListener",
|
|
2825
|
+
"removeListener"
|
|
2826
|
+
], da = 5;
|
|
2827
|
+
var S;
|
|
2824
2828
|
(function(n) {
|
|
2825
2829
|
n[n.CONNECT = 0] = "CONNECT", n[n.DISCONNECT = 1] = "DISCONNECT", n[n.EVENT = 2] = "EVENT", n[n.ACK = 3] = "ACK", n[n.CONNECT_ERROR = 4] = "CONNECT_ERROR", n[n.BINARY_EVENT = 5] = "BINARY_EVENT", n[n.BINARY_ACK = 6] = "BINARY_ACK";
|
|
2826
|
-
})(
|
|
2827
|
-
class
|
|
2830
|
+
})(S || (S = {}));
|
|
2831
|
+
class pa {
|
|
2828
2832
|
constructor(e) {
|
|
2829
2833
|
this.replacer = e;
|
|
2830
2834
|
}
|
|
2831
2835
|
encode(e) {
|
|
2832
|
-
return (e.type ===
|
|
2833
|
-
type: e.type ===
|
|
2836
|
+
return (e.type === S.EVENT || e.type === S.ACK) && Dt(e) ? this.encodeAsBinary({
|
|
2837
|
+
type: e.type === S.EVENT ? S.BINARY_EVENT : S.BINARY_ACK,
|
|
2834
2838
|
nsp: e.nsp,
|
|
2835
2839
|
data: e.data,
|
|
2836
2840
|
id: e.id
|
|
@@ -2838,14 +2842,17 @@ class ha {
|
|
|
2838
2842
|
}
|
|
2839
2843
|
encodeAsString(e) {
|
|
2840
2844
|
let t = "" + e.type;
|
|
2841
|
-
return (e.type ===
|
|
2845
|
+
return (e.type === S.BINARY_EVENT || e.type === S.BINARY_ACK) && (t += e.attachments + "-"), e.nsp && e.nsp !== "/" && (t += e.nsp + ","), e.id != null && (t += e.id), e.data != null && (t += JSON.stringify(e.data, this.replacer)), t;
|
|
2842
2846
|
}
|
|
2843
2847
|
encodeAsBinary(e) {
|
|
2844
|
-
const t =
|
|
2848
|
+
const t = la(e), r = this.encodeAsString(t.packet), s = t.buffers;
|
|
2845
2849
|
return s.unshift(r), s;
|
|
2846
2850
|
}
|
|
2847
2851
|
}
|
|
2848
|
-
|
|
2852
|
+
function Br(n) {
|
|
2853
|
+
return Object.prototype.toString.call(n) === "[object Object]";
|
|
2854
|
+
}
|
|
2855
|
+
class qn extends K {
|
|
2849
2856
|
constructor(e) {
|
|
2850
2857
|
super(), this.reviver = e;
|
|
2851
2858
|
}
|
|
@@ -2855,9 +2862,9 @@ class Un extends K {
|
|
|
2855
2862
|
if (this.reconstructor)
|
|
2856
2863
|
throw new Error("got plaintext data when reconstructing a packet");
|
|
2857
2864
|
t = this.decodeString(e);
|
|
2858
|
-
const r = t.type ===
|
|
2859
|
-
r || t.type ===
|
|
2860
|
-
} else if (
|
|
2865
|
+
const r = t.type === S.BINARY_EVENT;
|
|
2866
|
+
r || t.type === S.BINARY_ACK ? (t.type = r ? S.EVENT : S.ACK, this.reconstructor = new va(t), t.attachments === 0 && super.emitReserved("decoded", t)) : super.emitReserved("decoded", t);
|
|
2867
|
+
} else if (Un(e) || e.base64)
|
|
2861
2868
|
if (this.reconstructor)
|
|
2862
2869
|
t = this.reconstructor.takeBinaryData(e), t && (this.reconstructor = null, super.emitReserved("decoded", t));
|
|
2863
2870
|
else
|
|
@@ -2870,9 +2877,9 @@ class Un extends K {
|
|
|
2870
2877
|
const r = {
|
|
2871
2878
|
type: Number(e.charAt(0))
|
|
2872
2879
|
};
|
|
2873
|
-
if (
|
|
2880
|
+
if (S[r.type] === void 0)
|
|
2874
2881
|
throw new Error("unknown packet type " + r.type);
|
|
2875
|
-
if (r.type ===
|
|
2882
|
+
if (r.type === S.BINARY_EVENT || r.type === S.BINARY_ACK) {
|
|
2876
2883
|
const i = t + 1;
|
|
2877
2884
|
for (; e.charAt(++t) !== "-" && t != e.length; )
|
|
2878
2885
|
;
|
|
@@ -2904,7 +2911,7 @@ class Un extends K {
|
|
|
2904
2911
|
}
|
|
2905
2912
|
if (e.charAt(++t)) {
|
|
2906
2913
|
const i = this.tryParse(e.substr(t));
|
|
2907
|
-
if (
|
|
2914
|
+
if (qn.isPayloadValid(r.type, i))
|
|
2908
2915
|
r.data = i;
|
|
2909
2916
|
else
|
|
2910
2917
|
throw new Error("invalid payload");
|
|
@@ -2920,17 +2927,17 @@ class Un extends K {
|
|
|
2920
2927
|
}
|
|
2921
2928
|
static isPayloadValid(e, t) {
|
|
2922
2929
|
switch (e) {
|
|
2923
|
-
case
|
|
2924
|
-
return
|
|
2925
|
-
case
|
|
2930
|
+
case S.CONNECT:
|
|
2931
|
+
return Br(t);
|
|
2932
|
+
case S.DISCONNECT:
|
|
2926
2933
|
return t === void 0;
|
|
2927
|
-
case
|
|
2928
|
-
return typeof t == "string" ||
|
|
2929
|
-
case
|
|
2930
|
-
case
|
|
2931
|
-
return Array.isArray(t) && (typeof t[0] == "
|
|
2932
|
-
case
|
|
2933
|
-
case
|
|
2934
|
+
case S.CONNECT_ERROR:
|
|
2935
|
+
return typeof t == "string" || Br(t);
|
|
2936
|
+
case S.EVENT:
|
|
2937
|
+
case S.BINARY_EVENT:
|
|
2938
|
+
return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && ha.indexOf(t[0]) === -1);
|
|
2939
|
+
case S.ACK:
|
|
2940
|
+
case S.BINARY_ACK:
|
|
2934
2941
|
return Array.isArray(t);
|
|
2935
2942
|
}
|
|
2936
2943
|
}
|
|
@@ -2938,13 +2945,13 @@ class Un extends K {
|
|
|
2938
2945
|
this.reconstructor && (this.reconstructor.finishedReconstruction(), this.reconstructor = null);
|
|
2939
2946
|
}
|
|
2940
2947
|
}
|
|
2941
|
-
class
|
|
2948
|
+
class va {
|
|
2942
2949
|
constructor(e) {
|
|
2943
2950
|
this.packet = e, this.buffers = [], this.reconPack = e;
|
|
2944
2951
|
}
|
|
2945
2952
|
takeBinaryData(e) {
|
|
2946
2953
|
if (this.buffers.push(e), this.buffers.length === this.reconPack.attachments) {
|
|
2947
|
-
const t =
|
|
2954
|
+
const t = fa(this.reconPack, this.buffers);
|
|
2948
2955
|
return this.finishedReconstruction(), t;
|
|
2949
2956
|
}
|
|
2950
2957
|
return null;
|
|
@@ -2953,21 +2960,21 @@ class da {
|
|
|
2953
2960
|
this.reconPack = null, this.buffers = [];
|
|
2954
2961
|
}
|
|
2955
2962
|
}
|
|
2956
|
-
const
|
|
2963
|
+
const ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2957
2964
|
__proto__: null,
|
|
2958
|
-
protocol:
|
|
2965
|
+
protocol: da,
|
|
2959
2966
|
get PacketType() {
|
|
2960
|
-
return
|
|
2967
|
+
return S;
|
|
2961
2968
|
},
|
|
2962
|
-
Encoder:
|
|
2963
|
-
Decoder:
|
|
2969
|
+
Encoder: pa,
|
|
2970
|
+
Decoder: qn
|
|
2964
2971
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2965
|
-
function
|
|
2972
|
+
function de(n, e, t) {
|
|
2966
2973
|
return n.on(e, t), function() {
|
|
2967
2974
|
n.off(e, t);
|
|
2968
2975
|
};
|
|
2969
2976
|
}
|
|
2970
|
-
const
|
|
2977
|
+
const ya = Object.freeze({
|
|
2971
2978
|
connect: 1,
|
|
2972
2979
|
connect_error: 1,
|
|
2973
2980
|
disconnect: 1,
|
|
@@ -2977,7 +2984,7 @@ const va = Object.freeze({
|
|
|
2977
2984
|
});
|
|
2978
2985
|
class Ss extends K {
|
|
2979
2986
|
constructor(e, t, r) {
|
|
2980
|
-
super(), this.connected = !1, this.
|
|
2987
|
+
super(), this.connected = !1, this.receiveBuffer = [], this.sendBuffer = [], this.ids = 0, this.acks = {}, this.flags = {}, this.io = e, this.nsp = t, r && r.auth && (this.auth = r.auth), this.io._autoConnect && this.open();
|
|
2981
2988
|
}
|
|
2982
2989
|
get disconnected() {
|
|
2983
2990
|
return !this.connected;
|
|
@@ -2987,10 +2994,10 @@ class Ss extends K {
|
|
|
2987
2994
|
return;
|
|
2988
2995
|
const e = this.io;
|
|
2989
2996
|
this.subs = [
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2997
|
+
de(e, "open", this.onopen.bind(this)),
|
|
2998
|
+
de(e, "packet", this.onpacket.bind(this)),
|
|
2999
|
+
de(e, "error", this.onerror.bind(this)),
|
|
3000
|
+
de(e, "close", this.onclose.bind(this))
|
|
2994
3001
|
];
|
|
2995
3002
|
}
|
|
2996
3003
|
get active() {
|
|
@@ -3006,12 +3013,11 @@ class Ss extends K {
|
|
|
3006
3013
|
return e.unshift("message"), this.emit.apply(this, e), this;
|
|
3007
3014
|
}
|
|
3008
3015
|
emit(e, ...t) {
|
|
3009
|
-
if (
|
|
3010
|
-
throw new Error('"' + e
|
|
3011
|
-
|
|
3012
|
-
return this._addToQueue(t), this;
|
|
3016
|
+
if (ya.hasOwnProperty(e))
|
|
3017
|
+
throw new Error('"' + e + '" is a reserved event name');
|
|
3018
|
+
t.unshift(e);
|
|
3013
3019
|
const r = {
|
|
3014
|
-
type:
|
|
3020
|
+
type: S.EVENT,
|
|
3015
3021
|
data: t
|
|
3016
3022
|
};
|
|
3017
3023
|
if (r.options = {}, r.options.compress = this.flags.compress !== !1, typeof t[t.length - 1] == "function") {
|
|
@@ -3022,59 +3028,28 @@ class Ss extends K {
|
|
|
3022
3028
|
return this.flags.volatile && (!s || !this.connected) || (this.connected ? (this.notifyOutgoingListeners(r), this.packet(r)) : this.sendBuffer.push(r)), this.flags = {}, this;
|
|
3023
3029
|
}
|
|
3024
3030
|
_registerAckCallback(e, t) {
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
if (s === void 0) {
|
|
3031
|
+
const r = this.flags.timeout;
|
|
3032
|
+
if (r === void 0) {
|
|
3028
3033
|
this.acks[e] = t;
|
|
3029
3034
|
return;
|
|
3030
3035
|
}
|
|
3031
|
-
const
|
|
3036
|
+
const s = this.io.setTimeoutFn(() => {
|
|
3032
3037
|
delete this.acks[e];
|
|
3033
|
-
for (let
|
|
3034
|
-
this.sendBuffer[
|
|
3038
|
+
for (let i = 0; i < this.sendBuffer.length; i++)
|
|
3039
|
+
this.sendBuffer[i].id === e && this.sendBuffer.splice(i, 1);
|
|
3035
3040
|
t.call(this, new Error("operation has timed out"));
|
|
3036
|
-
},
|
|
3037
|
-
this.acks[e] = (...
|
|
3038
|
-
this.io.clearTimeoutFn(
|
|
3039
|
-
};
|
|
3040
|
-
}
|
|
3041
|
-
emitWithAck(e, ...t) {
|
|
3042
|
-
const r = this.flags.timeout !== void 0 || this._opts.ackTimeout !== void 0;
|
|
3043
|
-
return new Promise((s, i) => {
|
|
3044
|
-
t.push((o, c) => r ? o ? i(o) : s(c) : s(o)), this.emit(e, ...t);
|
|
3045
|
-
});
|
|
3046
|
-
}
|
|
3047
|
-
_addToQueue(e) {
|
|
3048
|
-
let t;
|
|
3049
|
-
typeof e[e.length - 1] == "function" && (t = e.pop());
|
|
3050
|
-
const r = {
|
|
3051
|
-
id: this._queueSeq++,
|
|
3052
|
-
tryCount: 0,
|
|
3053
|
-
pending: !1,
|
|
3054
|
-
args: e,
|
|
3055
|
-
flags: Object.assign({ fromQueue: !0 }, this.flags)
|
|
3041
|
+
}, r);
|
|
3042
|
+
this.acks[e] = (...i) => {
|
|
3043
|
+
this.io.clearTimeoutFn(s), t.apply(this, [null, ...i]);
|
|
3056
3044
|
};
|
|
3057
|
-
e.push((s, ...i) => r !== this._queue[0] ? void 0 : (s !== null ? r.tryCount > this._opts.retries && (this._queue.shift(), t && t(s)) : (this._queue.shift(), t && t(null, ...i)), r.pending = !1, this._drainQueue())), this._queue.push(r), this._drainQueue();
|
|
3058
|
-
}
|
|
3059
|
-
_drainQueue(e = !1) {
|
|
3060
|
-
if (!this.connected || this._queue.length === 0)
|
|
3061
|
-
return;
|
|
3062
|
-
const t = this._queue[0];
|
|
3063
|
-
t.pending && !e || (t.pending = !0, t.tryCount++, this.flags = t.flags, this.emit.apply(this, t.args));
|
|
3064
3045
|
}
|
|
3065
3046
|
packet(e) {
|
|
3066
3047
|
e.nsp = this.nsp, this.io._packet(e);
|
|
3067
3048
|
}
|
|
3068
3049
|
onopen() {
|
|
3069
3050
|
typeof this.auth == "function" ? this.auth((e) => {
|
|
3070
|
-
this.
|
|
3071
|
-
}) : this.
|
|
3072
|
-
}
|
|
3073
|
-
_sendConnectPacket(e) {
|
|
3074
|
-
this.packet({
|
|
3075
|
-
type: T.CONNECT,
|
|
3076
|
-
data: this._pid ? Object.assign({ pid: this._pid, offset: this._lastOffset }, e) : e
|
|
3077
|
-
});
|
|
3051
|
+
this.packet({ type: S.CONNECT, data: e });
|
|
3052
|
+
}) : this.packet({ type: S.CONNECT, data: this.auth });
|
|
3078
3053
|
}
|
|
3079
3054
|
onerror(e) {
|
|
3080
3055
|
this.connected || this.emitReserved("connect_error", e);
|
|
@@ -3085,21 +3060,25 @@ class Ss extends K {
|
|
|
3085
3060
|
onpacket(e) {
|
|
3086
3061
|
if (e.nsp === this.nsp)
|
|
3087
3062
|
switch (e.type) {
|
|
3088
|
-
case
|
|
3089
|
-
e.data && e.data.sid
|
|
3063
|
+
case S.CONNECT:
|
|
3064
|
+
if (e.data && e.data.sid) {
|
|
3065
|
+
const s = e.data.sid;
|
|
3066
|
+
this.onconnect(s);
|
|
3067
|
+
} else
|
|
3068
|
+
this.emitReserved("connect_error", new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));
|
|
3090
3069
|
break;
|
|
3091
|
-
case
|
|
3092
|
-
case
|
|
3070
|
+
case S.EVENT:
|
|
3071
|
+
case S.BINARY_EVENT:
|
|
3093
3072
|
this.onevent(e);
|
|
3094
3073
|
break;
|
|
3095
|
-
case
|
|
3096
|
-
case
|
|
3074
|
+
case S.ACK:
|
|
3075
|
+
case S.BINARY_ACK:
|
|
3097
3076
|
this.onack(e);
|
|
3098
3077
|
break;
|
|
3099
|
-
case
|
|
3078
|
+
case S.DISCONNECT:
|
|
3100
3079
|
this.ondisconnect();
|
|
3101
3080
|
break;
|
|
3102
|
-
case
|
|
3081
|
+
case S.CONNECT_ERROR:
|
|
3103
3082
|
this.destroy();
|
|
3104
3083
|
const r = new Error(e.data.message);
|
|
3105
3084
|
r.data = e.data.data, this.emitReserved("connect_error", r);
|
|
@@ -3116,14 +3095,14 @@ class Ss extends K {
|
|
|
3116
3095
|
for (const r of t)
|
|
3117
3096
|
r.apply(this, e);
|
|
3118
3097
|
}
|
|
3119
|
-
super.emit.apply(this, e)
|
|
3098
|
+
super.emit.apply(this, e);
|
|
3120
3099
|
}
|
|
3121
3100
|
ack(e) {
|
|
3122
3101
|
const t = this;
|
|
3123
3102
|
let r = !1;
|
|
3124
3103
|
return function(...s) {
|
|
3125
3104
|
r || (r = !0, t.packet({
|
|
3126
|
-
type:
|
|
3105
|
+
type: S.ACK,
|
|
3127
3106
|
id: e,
|
|
3128
3107
|
data: s
|
|
3129
3108
|
}));
|
|
@@ -3133,8 +3112,8 @@ class Ss extends K {
|
|
|
3133
3112
|
const t = this.acks[e.id];
|
|
3134
3113
|
typeof t == "function" && (t.apply(this, e.data), delete this.acks[e.id]);
|
|
3135
3114
|
}
|
|
3136
|
-
onconnect(e
|
|
3137
|
-
this.id = e, this.
|
|
3115
|
+
onconnect(e) {
|
|
3116
|
+
this.id = e, this.connected = !0, this.emitBuffered(), this.emitReserved("connect");
|
|
3138
3117
|
}
|
|
3139
3118
|
emitBuffered() {
|
|
3140
3119
|
this.receiveBuffer.forEach((e) => this.emitEvent(e)), this.receiveBuffer = [], this.sendBuffer.forEach((e) => {
|
|
@@ -3148,7 +3127,7 @@ class Ss extends K {
|
|
|
3148
3127
|
this.subs && (this.subs.forEach((e) => e()), this.subs = void 0), this.io._destroy(this);
|
|
3149
3128
|
}
|
|
3150
3129
|
disconnect() {
|
|
3151
|
-
return this.connected && this.packet({ type:
|
|
3130
|
+
return this.connected && this.packet({ type: S.DISCONNECT }), this.destroy(), this.connected && this.onclose("io client disconnect"), this;
|
|
3152
3131
|
}
|
|
3153
3132
|
close() {
|
|
3154
3133
|
return this.disconnect();
|
|
@@ -3243,7 +3222,7 @@ class An extends K {
|
|
|
3243
3222
|
max: this.reconnectionDelayMax(),
|
|
3244
3223
|
jitter: this.randomizationFactor()
|
|
3245
3224
|
}), this.timeout(t.timeout == null ? 2e4 : t.timeout), this._readyState = "closed", this.uri = e;
|
|
3246
|
-
const s = t.parser ||
|
|
3225
|
+
const s = t.parser || ma;
|
|
3247
3226
|
this.encoder = new s.Encoder(), this.decoder = new s.Decoder(), this._autoConnect = t.autoConnect !== !1, this._autoConnect && this.open();
|
|
3248
3227
|
}
|
|
3249
3228
|
reconnection(e) {
|
|
@@ -3273,12 +3252,12 @@ class An extends K {
|
|
|
3273
3252
|
open(e) {
|
|
3274
3253
|
if (~this._readyState.indexOf("open"))
|
|
3275
3254
|
return this;
|
|
3276
|
-
this.engine = new
|
|
3255
|
+
this.engine = new Ce(this.uri, this.opts);
|
|
3277
3256
|
const t = this.engine, r = this;
|
|
3278
3257
|
this._readyState = "opening", this.skipReconnect = !1;
|
|
3279
|
-
const s =
|
|
3258
|
+
const s = de(t, "open", function() {
|
|
3280
3259
|
r.onopen(), e && e();
|
|
3281
|
-
}), i =
|
|
3260
|
+
}), i = de(t, "error", (o) => {
|
|
3282
3261
|
r.cleanup(), r._readyState = "closed", this.emitReserved("error", o), e ? e(o) : r.maybeReconnectOnOpen();
|
|
3283
3262
|
});
|
|
3284
3263
|
if (this._timeout !== !1) {
|
|
@@ -3299,29 +3278,23 @@ class An extends K {
|
|
|
3299
3278
|
onopen() {
|
|
3300
3279
|
this.cleanup(), this._readyState = "open", this.emitReserved("open");
|
|
3301
3280
|
const e = this.engine;
|
|
3302
|
-
this.subs.push(
|
|
3281
|
+
this.subs.push(de(e, "ping", this.onping.bind(this)), de(e, "data", this.ondata.bind(this)), de(e, "error", this.onerror.bind(this)), de(e, "close", this.onclose.bind(this)), de(this.decoder, "decoded", this.ondecoded.bind(this)));
|
|
3303
3282
|
}
|
|
3304
3283
|
onping() {
|
|
3305
3284
|
this.emitReserved("ping");
|
|
3306
3285
|
}
|
|
3307
3286
|
ondata(e) {
|
|
3308
|
-
|
|
3309
|
-
this.decoder.add(e);
|
|
3310
|
-
} catch (t) {
|
|
3311
|
-
this.onclose("parse error", t);
|
|
3312
|
-
}
|
|
3287
|
+
this.decoder.add(e);
|
|
3313
3288
|
}
|
|
3314
3289
|
ondecoded(e) {
|
|
3315
|
-
|
|
3316
|
-
this.emitReserved("packet", e);
|
|
3317
|
-
}, this.setTimeoutFn);
|
|
3290
|
+
this.emitReserved("packet", e);
|
|
3318
3291
|
}
|
|
3319
3292
|
onerror(e) {
|
|
3320
3293
|
this.emitReserved("error", e);
|
|
3321
3294
|
}
|
|
3322
3295
|
socket(e, t) {
|
|
3323
3296
|
let r = this.nsps[e];
|
|
3324
|
-
return r
|
|
3297
|
+
return r || (r = new Ss(this, e, t), this.nsps[e] = r), r;
|
|
3325
3298
|
}
|
|
3326
3299
|
_destroy(e) {
|
|
3327
3300
|
const t = Object.keys(this.nsps);
|
|
@@ -3374,7 +3347,7 @@ class An extends K {
|
|
|
3374
3347
|
const it = {};
|
|
3375
3348
|
function Nt(n, e) {
|
|
3376
3349
|
typeof n == "object" && (e = n, n = void 0), e = e || {};
|
|
3377
|
-
const t =
|
|
3350
|
+
const t = ia(n, e.path || "/socket.io"), r = t.source, s = t.id, i = t.path, o = it[s] && i in it[s].nsps, c = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
|
|
3378
3351
|
let h;
|
|
3379
3352
|
return c ? h = new An(r, e) : (it[s] || (it[s] = new An(r, e)), h = it[s]), t.query && !e.query && (e.query = t.queryKey), h.socket(t.path, e);
|
|
3380
3353
|
}
|
|
@@ -3384,7 +3357,7 @@ Object.assign(Nt, {
|
|
|
3384
3357
|
io: Nt,
|
|
3385
3358
|
connect: Nt
|
|
3386
3359
|
});
|
|
3387
|
-
class
|
|
3360
|
+
class ga {
|
|
3388
3361
|
constructor(e, t) {
|
|
3389
3362
|
Be(this, "socket_port");
|
|
3390
3363
|
Be(this, "host");
|
|
@@ -3392,7 +3365,8 @@ class ma {
|
|
|
3392
3365
|
Be(this, "protocol");
|
|
3393
3366
|
Be(this, "url");
|
|
3394
3367
|
Be(this, "socket");
|
|
3395
|
-
|
|
3368
|
+
var r, s;
|
|
3369
|
+
this.socket_port = t != null ? t : "9000", this.host = (r = window.location) == null ? void 0 : r.hostname, this.port = (s = window.location) != null && s.port ? `:${this.socket_port}` : "", this.protocol = this.port ? "http" : "https", this.url = e || `${this.protocol}://${this.host}${this.port}`, this.socket = Nt(this.url, { withCredentials: !0 });
|
|
3396
3370
|
}
|
|
3397
3371
|
}
|
|
3398
3372
|
var Ts = { exports: {} }, ot = {};
|
|
@@ -3405,12 +3379,12 @@ var Ts = { exports: {} }, ot = {};
|
|
|
3405
3379
|
* This source code is licensed under the MIT license found in the
|
|
3406
3380
|
* LICENSE file in the root directory of this source tree.
|
|
3407
3381
|
*/
|
|
3408
|
-
var
|
|
3409
|
-
function
|
|
3410
|
-
if (
|
|
3382
|
+
var Fr;
|
|
3383
|
+
function _a() {
|
|
3384
|
+
if (Fr)
|
|
3411
3385
|
return ot;
|
|
3412
|
-
|
|
3413
|
-
var n =
|
|
3386
|
+
Fr = 1;
|
|
3387
|
+
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 };
|
|
3414
3388
|
function o(c, h, a) {
|
|
3415
3389
|
var f, l = {}, v = null, p = null;
|
|
3416
3390
|
a !== void 0 && (v = "" + a), h.key !== void 0 && (v = "" + h.key), h.ref !== void 0 && (p = h.ref);
|
|
@@ -3433,10 +3407,10 @@ var at = {};
|
|
|
3433
3407
|
* This source code is licensed under the MIT license found in the
|
|
3434
3408
|
* LICENSE file in the root directory of this source tree.
|
|
3435
3409
|
*/
|
|
3436
|
-
var
|
|
3437
|
-
function
|
|
3438
|
-
return
|
|
3439
|
-
var n =
|
|
3410
|
+
var Ir;
|
|
3411
|
+
function ba() {
|
|
3412
|
+
return Ir || (Ir = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3413
|
+
var n = qe, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), b = Symbol.iterator, w = "@@iterator";
|
|
3440
3414
|
function I(u) {
|
|
3441
3415
|
if (u === null || typeof u != "object")
|
|
3442
3416
|
return null;
|
|
@@ -3444,7 +3418,7 @@ function ga() {
|
|
|
3444
3418
|
return typeof d == "function" ? d : null;
|
|
3445
3419
|
}
|
|
3446
3420
|
var g = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
3447
|
-
function
|
|
3421
|
+
function T(u) {
|
|
3448
3422
|
{
|
|
3449
3423
|
for (var d = arguments.length, m = new Array(d > 1 ? d - 1 : 0), _ = 1; _ < d; _++)
|
|
3450
3424
|
m[_ - 1] = arguments[_];
|
|
@@ -3461,10 +3435,10 @@ function ga() {
|
|
|
3461
3435
|
F.unshift("Warning: " + d), Function.prototype.apply.call(console[u], console, F);
|
|
3462
3436
|
}
|
|
3463
3437
|
}
|
|
3464
|
-
var y = !1, V = !1,
|
|
3438
|
+
var y = !1, V = !1, U = !1, k = !1, E = !1, j;
|
|
3465
3439
|
j = Symbol.for("react.module.reference");
|
|
3466
|
-
function
|
|
3467
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || E || u === s || u === a || u === f || k || u === p || y || V ||
|
|
3440
|
+
function L(u) {
|
|
3441
|
+
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || E || u === s || u === a || u === f || k || u === p || y || V || U || typeof u == "object" && u !== null && (u.$$typeof === v || u.$$typeof === l || u.$$typeof === o || u.$$typeof === c || u.$$typeof === h || u.$$typeof === j || u.getModuleId !== void 0));
|
|
3468
3442
|
}
|
|
3469
3443
|
function X(u, d, m) {
|
|
3470
3444
|
var _ = u.displayName;
|
|
@@ -3479,7 +3453,7 @@ function ga() {
|
|
|
3479
3453
|
function Z(u) {
|
|
3480
3454
|
if (u == null)
|
|
3481
3455
|
return null;
|
|
3482
|
-
if (typeof u.tag == "number" &&
|
|
3456
|
+
if (typeof u.tag == "number" && T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
3483
3457
|
return u.displayName || u.name || null;
|
|
3484
3458
|
if (typeof u == "string")
|
|
3485
3459
|
return u;
|
|
@@ -3521,14 +3495,14 @@ function ga() {
|
|
|
3521
3495
|
}
|
|
3522
3496
|
return null;
|
|
3523
3497
|
}
|
|
3524
|
-
var $ = Object.assign,
|
|
3498
|
+
var $ = Object.assign, _e = 0, be, Ze, we, et, mt, Ee, Re;
|
|
3525
3499
|
function Ne() {
|
|
3526
3500
|
}
|
|
3527
3501
|
Ne.__reactDisabledLog = !0;
|
|
3528
3502
|
function yt() {
|
|
3529
3503
|
{
|
|
3530
|
-
if (
|
|
3531
|
-
|
|
3504
|
+
if (_e === 0) {
|
|
3505
|
+
be = console.log, Ze = console.info, we = console.warn, et = console.error, mt = console.group, Ee = console.groupCollapsed, Re = console.groupEnd;
|
|
3532
3506
|
var u = {
|
|
3533
3507
|
configurable: !0,
|
|
3534
3508
|
enumerable: !0,
|
|
@@ -3545,12 +3519,12 @@ function ga() {
|
|
|
3545
3519
|
groupEnd: u
|
|
3546
3520
|
});
|
|
3547
3521
|
}
|
|
3548
|
-
|
|
3522
|
+
_e++;
|
|
3549
3523
|
}
|
|
3550
3524
|
}
|
|
3551
3525
|
function Ve() {
|
|
3552
3526
|
{
|
|
3553
|
-
if (
|
|
3527
|
+
if (_e--, _e === 0) {
|
|
3554
3528
|
var u = {
|
|
3555
3529
|
configurable: !0,
|
|
3556
3530
|
enumerable: !0,
|
|
@@ -3558,13 +3532,13 @@ function ga() {
|
|
|
3558
3532
|
};
|
|
3559
3533
|
Object.defineProperties(console, {
|
|
3560
3534
|
log: $({}, u, {
|
|
3561
|
-
value:
|
|
3535
|
+
value: be
|
|
3562
3536
|
}),
|
|
3563
3537
|
info: $({}, u, {
|
|
3564
3538
|
value: Ze
|
|
3565
3539
|
}),
|
|
3566
3540
|
warn: $({}, u, {
|
|
3567
|
-
value:
|
|
3541
|
+
value: we
|
|
3568
3542
|
}),
|
|
3569
3543
|
error: $({}, u, {
|
|
3570
3544
|
value: et
|
|
@@ -3573,14 +3547,14 @@ function ga() {
|
|
|
3573
3547
|
value: mt
|
|
3574
3548
|
}),
|
|
3575
3549
|
groupCollapsed: $({}, u, {
|
|
3576
|
-
value:
|
|
3550
|
+
value: Ee
|
|
3577
3551
|
}),
|
|
3578
3552
|
groupEnd: $({}, u, {
|
|
3579
|
-
value:
|
|
3553
|
+
value: Re
|
|
3580
3554
|
})
|
|
3581
3555
|
});
|
|
3582
3556
|
}
|
|
3583
|
-
|
|
3557
|
+
_e < 0 && T("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
3584
3558
|
}
|
|
3585
3559
|
}
|
|
3586
3560
|
var je = g.ReactCurrentDispatcher, $e;
|
|
@@ -3597,16 +3571,16 @@ function ga() {
|
|
|
3597
3571
|
` + $e + u;
|
|
3598
3572
|
}
|
|
3599
3573
|
}
|
|
3600
|
-
var tt = !1,
|
|
3574
|
+
var tt = !1, pe;
|
|
3601
3575
|
{
|
|
3602
3576
|
var gt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
3603
|
-
|
|
3577
|
+
pe = new gt();
|
|
3604
3578
|
}
|
|
3605
|
-
function
|
|
3579
|
+
function D(u, d) {
|
|
3606
3580
|
if (!u || tt)
|
|
3607
3581
|
return "";
|
|
3608
3582
|
{
|
|
3609
|
-
var m =
|
|
3583
|
+
var m = pe.get(u);
|
|
3610
3584
|
if (m !== void 0)
|
|
3611
3585
|
return m;
|
|
3612
3586
|
}
|
|
@@ -3628,29 +3602,29 @@ function ga() {
|
|
|
3628
3602
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
3629
3603
|
try {
|
|
3630
3604
|
Reflect.construct(O, []);
|
|
3631
|
-
} catch (
|
|
3632
|
-
_ =
|
|
3605
|
+
} catch (Te) {
|
|
3606
|
+
_ = Te;
|
|
3633
3607
|
}
|
|
3634
3608
|
Reflect.construct(u, [], O);
|
|
3635
3609
|
} else {
|
|
3636
3610
|
try {
|
|
3637
3611
|
O.call();
|
|
3638
|
-
} catch (
|
|
3639
|
-
_ =
|
|
3612
|
+
} catch (Te) {
|
|
3613
|
+
_ = Te;
|
|
3640
3614
|
}
|
|
3641
3615
|
u.call(O.prototype);
|
|
3642
3616
|
}
|
|
3643
3617
|
} else {
|
|
3644
3618
|
try {
|
|
3645
3619
|
throw Error();
|
|
3646
|
-
} catch (
|
|
3647
|
-
_ =
|
|
3620
|
+
} catch (Te) {
|
|
3621
|
+
_ = Te;
|
|
3648
3622
|
}
|
|
3649
3623
|
u();
|
|
3650
3624
|
}
|
|
3651
|
-
} catch (
|
|
3652
|
-
if (
|
|
3653
|
-
for (var R =
|
|
3625
|
+
} catch (Te) {
|
|
3626
|
+
if (Te && _ && typeof Te.stack == "string") {
|
|
3627
|
+
for (var R = Te.stack.split(`
|
|
3654
3628
|
`), se = _.stack.split(`
|
|
3655
3629
|
`), W = R.length - 1, J = se.length - 1; W >= 1 && J >= 0 && R[W] !== se[J]; )
|
|
3656
3630
|
J--;
|
|
@@ -3661,7 +3635,7 @@ function ga() {
|
|
|
3661
3635
|
if (W--, J--, J < 0 || R[W] !== se[J]) {
|
|
3662
3636
|
var ce = `
|
|
3663
3637
|
` + R[W].replace(" at new ", " at ");
|
|
3664
|
-
return u.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", u.displayName)), typeof u == "function" &&
|
|
3638
|
+
return u.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", u.displayName)), typeof u == "function" && pe.set(u, ce), ce;
|
|
3665
3639
|
}
|
|
3666
3640
|
while (W >= 1 && J >= 0);
|
|
3667
3641
|
break;
|
|
@@ -3671,20 +3645,20 @@ function ga() {
|
|
|
3671
3645
|
tt = !1, je.current = F, Ve(), Error.prepareStackTrace = A;
|
|
3672
3646
|
}
|
|
3673
3647
|
var Je = u ? u.displayName || u.name : "", zn = Je ? Me(Je) : "";
|
|
3674
|
-
return typeof u == "function" &&
|
|
3648
|
+
return typeof u == "function" && pe.set(u, zn), zn;
|
|
3675
3649
|
}
|
|
3676
3650
|
function B(u, d, m) {
|
|
3677
|
-
return
|
|
3651
|
+
return D(u, !1);
|
|
3678
3652
|
}
|
|
3679
3653
|
function G(u) {
|
|
3680
3654
|
var d = u.prototype;
|
|
3681
3655
|
return !!(d && d.isReactComponent);
|
|
3682
3656
|
}
|
|
3683
|
-
function
|
|
3657
|
+
function q(u, d, m) {
|
|
3684
3658
|
if (u == null)
|
|
3685
3659
|
return "";
|
|
3686
3660
|
if (typeof u == "function")
|
|
3687
|
-
return
|
|
3661
|
+
return D(u, G(u));
|
|
3688
3662
|
if (typeof u == "string")
|
|
3689
3663
|
return Me(u);
|
|
3690
3664
|
switch (u) {
|
|
@@ -3698,26 +3672,26 @@ function ga() {
|
|
|
3698
3672
|
case h:
|
|
3699
3673
|
return B(u.render);
|
|
3700
3674
|
case l:
|
|
3701
|
-
return
|
|
3675
|
+
return q(u.type, d, m);
|
|
3702
3676
|
case v: {
|
|
3703
3677
|
var _ = u, A = _._payload, F = _._init;
|
|
3704
3678
|
try {
|
|
3705
|
-
return
|
|
3679
|
+
return q(F(A), d, m);
|
|
3706
3680
|
} catch {
|
|
3707
3681
|
}
|
|
3708
3682
|
}
|
|
3709
3683
|
}
|
|
3710
3684
|
return "";
|
|
3711
3685
|
}
|
|
3712
|
-
var re = Object.prototype.hasOwnProperty,
|
|
3686
|
+
var re = Object.prototype.hasOwnProperty, Se = {}, H = g.ReactDebugCurrentFrame;
|
|
3713
3687
|
function Y(u) {
|
|
3714
3688
|
if (u) {
|
|
3715
|
-
var d = u._owner, m =
|
|
3689
|
+
var d = u._owner, m = q(u.type, u._source, d ? d.type : null);
|
|
3716
3690
|
H.setExtraStackFrame(m);
|
|
3717
3691
|
} else
|
|
3718
3692
|
H.setExtraStackFrame(null);
|
|
3719
3693
|
}
|
|
3720
|
-
function
|
|
3694
|
+
function he(u, d, m, _, A) {
|
|
3721
3695
|
{
|
|
3722
3696
|
var F = Function.call.bind(re);
|
|
3723
3697
|
for (var O in u)
|
|
@@ -3732,7 +3706,7 @@ function ga() {
|
|
|
3732
3706
|
} catch (W) {
|
|
3733
3707
|
R = W;
|
|
3734
3708
|
}
|
|
3735
|
-
R && !(R instanceof Error) && (Y(A),
|
|
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", m, O, typeof R), Y(null)), R instanceof Error && !(R.message in Se) && (Se[R.message] = !0, Y(A), T("Failed %s type: %s", m, R.message), Y(null));
|
|
3736
3710
|
}
|
|
3737
3711
|
}
|
|
3738
3712
|
}
|
|
@@ -3758,7 +3732,7 @@ function ga() {
|
|
|
3758
3732
|
}
|
|
3759
3733
|
function He(u) {
|
|
3760
3734
|
if (ie(u))
|
|
3761
|
-
return
|
|
3735
|
+
return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(u)), ue(u);
|
|
3762
3736
|
}
|
|
3763
3737
|
var Pe = g.ReactCurrentOwner, nt = {
|
|
3764
3738
|
key: !0,
|
|
@@ -3786,13 +3760,13 @@ function ga() {
|
|
|
3786
3760
|
function ks(u, d) {
|
|
3787
3761
|
if (typeof u.ref == "string" && Pe.current && d && Pe.current.stateNode !== d) {
|
|
3788
3762
|
var m = Z(Pe.current.type);
|
|
3789
|
-
$t[m] || (
|
|
3763
|
+
$t[m] || (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[m] = !0);
|
|
3790
3764
|
}
|
|
3791
3765
|
}
|
|
3792
|
-
function
|
|
3766
|
+
function Ls(u, d) {
|
|
3793
3767
|
{
|
|
3794
3768
|
var m = function() {
|
|
3795
|
-
Vn || (Vn = !0,
|
|
3769
|
+
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));
|
|
3796
3770
|
};
|
|
3797
3771
|
m.isReactWarning = !0, Object.defineProperty(u, "key", {
|
|
3798
3772
|
get: m,
|
|
@@ -3800,10 +3774,10 @@ function ga() {
|
|
|
3800
3774
|
});
|
|
3801
3775
|
}
|
|
3802
3776
|
}
|
|
3803
|
-
function
|
|
3777
|
+
function Ds(u, d) {
|
|
3804
3778
|
{
|
|
3805
3779
|
var m = function() {
|
|
3806
|
-
jn || (jn = !0,
|
|
3780
|
+
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));
|
|
3807
3781
|
};
|
|
3808
3782
|
m.isReactWarning = !0, Object.defineProperty(u, "ref", {
|
|
3809
3783
|
get: m,
|
|
@@ -3850,7 +3824,7 @@ function ga() {
|
|
|
3850
3824
|
}
|
|
3851
3825
|
if (R || se) {
|
|
3852
3826
|
var J = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
3853
|
-
R &&
|
|
3827
|
+
R && Ls(O, J), se && Ds(O, J);
|
|
3854
3828
|
}
|
|
3855
3829
|
return Ns(u, R, se, A, _, Pe.current, O);
|
|
3856
3830
|
}
|
|
@@ -3858,7 +3832,7 @@ function ga() {
|
|
|
3858
3832
|
var Mt = g.ReactCurrentOwner, $n = g.ReactDebugCurrentFrame;
|
|
3859
3833
|
function Ye(u) {
|
|
3860
3834
|
if (u) {
|
|
3861
|
-
var d = u._owner, m =
|
|
3835
|
+
var d = u._owner, m = q(u.type, u._source, d ? d.type : null);
|
|
3862
3836
|
$n.setExtraStackFrame(m);
|
|
3863
3837
|
} else
|
|
3864
3838
|
$n.setExtraStackFrame(null);
|
|
@@ -3914,7 +3888,7 @@ Check the top-level render call using <` + m + ">.");
|
|
|
3914
3888
|
return;
|
|
3915
3889
|
Wn[m] = !0;
|
|
3916
3890
|
var _ = "";
|
|
3917
|
-
u && u._owner && u._owner !== Mt.current && (_ = " It was passed a child from " + Z(u._owner.type) + "."), Ye(u),
|
|
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.', m, _), Ye(null);
|
|
3918
3892
|
}
|
|
3919
3893
|
}
|
|
3920
3894
|
function Yn(u, d) {
|
|
@@ -3950,37 +3924,37 @@ Check the top-level render call using <` + m + ">.");
|
|
|
3950
3924
|
return;
|
|
3951
3925
|
if (m) {
|
|
3952
3926
|
var _ = Z(d);
|
|
3953
|
-
|
|
3927
|
+
he(m, u.props, "prop", _, u);
|
|
3954
3928
|
} else if (d.PropTypes !== void 0 && !Wt) {
|
|
3955
3929
|
Wt = !0;
|
|
3956
3930
|
var A = Z(d);
|
|
3957
|
-
|
|
3931
|
+
T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", A || "Unknown");
|
|
3958
3932
|
}
|
|
3959
|
-
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved &&
|
|
3933
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
3960
3934
|
}
|
|
3961
3935
|
}
|
|
3962
|
-
function
|
|
3936
|
+
function Us(u) {
|
|
3963
3937
|
{
|
|
3964
3938
|
for (var d = Object.keys(u.props), m = 0; m < d.length; m++) {
|
|
3965
3939
|
var _ = d[m];
|
|
3966
3940
|
if (_ !== "children" && _ !== "key") {
|
|
3967
|
-
Ye(u),
|
|
3941
|
+
Ye(u), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Ye(null);
|
|
3968
3942
|
break;
|
|
3969
3943
|
}
|
|
3970
3944
|
}
|
|
3971
|
-
u.ref !== null && (Ye(u),
|
|
3945
|
+
u.ref !== null && (Ye(u), T("Invalid attribute `ref` supplied to `React.Fragment`."), Ye(null));
|
|
3972
3946
|
}
|
|
3973
3947
|
}
|
|
3974
3948
|
function Jn(u, d, m, _, A, F) {
|
|
3975
3949
|
{
|
|
3976
|
-
var O =
|
|
3950
|
+
var O = L(u);
|
|
3977
3951
|
if (!O) {
|
|
3978
3952
|
var R = "";
|
|
3979
3953
|
(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.");
|
|
3980
3954
|
var se = Bs(A);
|
|
3981
3955
|
se ? R += se : R += Mn();
|
|
3982
3956
|
var W;
|
|
3983
|
-
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,
|
|
3957
|
+
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);
|
|
3984
3958
|
}
|
|
3985
3959
|
var J = Ps(u, d, m, A, F);
|
|
3986
3960
|
if (J == null)
|
|
@@ -3994,27 +3968,27 @@ Check the top-level render call using <` + m + ">.");
|
|
|
3994
3968
|
Yn(ce[Je], u);
|
|
3995
3969
|
Object.freeze && Object.freeze(ce);
|
|
3996
3970
|
} else
|
|
3997
|
-
|
|
3971
|
+
T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
3998
3972
|
else
|
|
3999
3973
|
Yn(ce, u);
|
|
4000
3974
|
}
|
|
4001
|
-
return u === r ?
|
|
3975
|
+
return u === r ? Us(J) : Is(J), J;
|
|
4002
3976
|
}
|
|
4003
3977
|
}
|
|
4004
|
-
function
|
|
3978
|
+
function qs(u, d, m) {
|
|
4005
3979
|
return Jn(u, d, m, !0);
|
|
4006
3980
|
}
|
|
4007
3981
|
function Vs(u, d, m) {
|
|
4008
3982
|
return Jn(u, d, m, !1);
|
|
4009
3983
|
}
|
|
4010
|
-
var js = Vs, $s =
|
|
3984
|
+
var js = Vs, $s = qs;
|
|
4011
3985
|
at.Fragment = r, at.jsx = js, at.jsxs = $s;
|
|
4012
3986
|
}()), at;
|
|
4013
3987
|
}
|
|
4014
3988
|
(function(n) {
|
|
4015
|
-
process.env.NODE_ENV === "production" ? n.exports =
|
|
3989
|
+
process.env.NODE_ENV === "production" ? n.exports = _a() : n.exports = ba();
|
|
4016
3990
|
})(Ts);
|
|
4017
|
-
const
|
|
3991
|
+
const wa = Ts.exports.jsx, te = Ur(null), xa = ({
|
|
4018
3992
|
url: n = "",
|
|
4019
3993
|
tokenParams: e,
|
|
4020
3994
|
socketPort: t,
|
|
@@ -4030,14 +4004,14 @@ const _a = Ts.exports.jsx, te = Ir(null), Ta = ({
|
|
|
4030
4004
|
db: i.db(),
|
|
4031
4005
|
call: i.call(),
|
|
4032
4006
|
file: i.file(),
|
|
4033
|
-
socket: new
|
|
4007
|
+
socket: new ga(n, t).socket
|
|
4034
4008
|
};
|
|
4035
4009
|
}, [n, e, t]);
|
|
4036
|
-
return /* @__PURE__ */
|
|
4010
|
+
return /* @__PURE__ */ wa(te.Provider, {
|
|
4037
4011
|
value: s,
|
|
4038
4012
|
children: r
|
|
4039
4013
|
});
|
|
4040
|
-
},
|
|
4014
|
+
}, Ca = (n) => {
|
|
4041
4015
|
const {
|
|
4042
4016
|
url: e,
|
|
4043
4017
|
auth: t,
|
|
@@ -4085,7 +4059,7 @@ const _a = Ts.exports.jsx, te = Ir(null), Ta = ({
|
|
|
4085
4059
|
}, Os = (n, e, t) => {
|
|
4086
4060
|
let r = `${e}/api/resource/`;
|
|
4087
4061
|
return t ? r += `${n}/${t}` : r += `${n}`, r;
|
|
4088
|
-
},
|
|
4062
|
+
}, Aa = (n, e, t, r) => {
|
|
4089
4063
|
const {
|
|
4090
4064
|
url: s,
|
|
4091
4065
|
db: i
|
|
@@ -4093,7 +4067,7 @@ const _a = Ts.exports.jsx, te = Ir(null), Ta = ({
|
|
|
4093
4067
|
return {
|
|
4094
4068
|
...vt(t === void 0 ? Os(n, s, e) : t, () => i.getDoc(n, e), r)
|
|
4095
4069
|
};
|
|
4096
|
-
},
|
|
4070
|
+
}, Ea = (n) => {
|
|
4097
4071
|
var t, r, s;
|
|
4098
4072
|
let e = "";
|
|
4099
4073
|
if (n != null && n.fields && (e += "fields=" + JSON.stringify(n == null ? void 0 : n.fields) + "&"), n != null && n.filters && (e += "filters=" + JSON.stringify(n == null ? void 0 : n.filters) + "&"), n != null && n.orFilters && (e += "or_filters=" + JSON.stringify(n == null ? void 0 : n.orFilters) + "&"), n != null && n.limit_start && (e += "limit_start=" + JSON.stringify(n == null ? void 0 : n.limit_start) + "&"), n != null && n.limit && (e += "limit=" + JSON.stringify(n == null ? void 0 : n.limit) + "&"), n != null && n.groupBy && (e += "group_by=" + String(n.groupBy) + "&"), n != null && n.orderBy) {
|
|
@@ -4101,15 +4075,15 @@ const _a = Ts.exports.jsx, te = Ir(null), Ta = ({
|
|
|
4101
4075
|
e += "order_by=" + i + "&";
|
|
4102
4076
|
}
|
|
4103
4077
|
return n != null && n.asDict && (e += "as_dict=" + n.asDict), e;
|
|
4104
|
-
},
|
|
4078
|
+
}, ka = (n, e, t, r) => {
|
|
4105
4079
|
const {
|
|
4106
4080
|
url: s,
|
|
4107
4081
|
db: i
|
|
4108
4082
|
} = ee(te);
|
|
4109
4083
|
return {
|
|
4110
|
-
...vt(t === void 0 ? `${Os(n, s)}?${
|
|
4084
|
+
...vt(t === void 0 ? `${Os(n, s)}?${Ea(e)}` : t, () => i.getDocList(n, e), r)
|
|
4111
4085
|
};
|
|
4112
|
-
},
|
|
4086
|
+
}, La = () => {
|
|
4113
4087
|
const {
|
|
4114
4088
|
db: n
|
|
4115
4089
|
} = ee(te), [e, t] = N(!1), [r, s] = N(null), [i, o] = N(!1), c = M(() => {
|
|
@@ -4124,7 +4098,7 @@ const _a = Ts.exports.jsx, te = Ir(null), Ta = ({
|
|
|
4124
4098
|
isCompleted: i,
|
|
4125
4099
|
reset: c
|
|
4126
4100
|
};
|
|
4127
|
-
},
|
|
4101
|
+
}, Da = () => {
|
|
4128
4102
|
const {
|
|
4129
4103
|
db: n
|
|
4130
4104
|
} = ee(te), [e, t] = N(!1), [r, s] = N(null), [i, o] = N(!1), c = M(() => {
|
|
@@ -4139,7 +4113,7 @@ const _a = Ts.exports.jsx, te = Ir(null), Ta = ({
|
|
|
4139
4113
|
reset: c,
|
|
4140
4114
|
isCompleted: i
|
|
4141
4115
|
};
|
|
4142
|
-
},
|
|
4116
|
+
}, Na = () => {
|
|
4143
4117
|
const {
|
|
4144
4118
|
db: n
|
|
4145
4119
|
} = ee(te), [e, t] = N(!1), [r, s] = N(null), [i, o] = N(!1), c = M(() => {
|
|
@@ -4161,7 +4135,7 @@ function xs(n) {
|
|
|
4161
4135
|
e.push(encodeURIComponent(t) + "=" + encodeURIComponent(n[t]));
|
|
4162
4136
|
return e.join("&");
|
|
4163
4137
|
}
|
|
4164
|
-
const
|
|
4138
|
+
const Pa = (n, e, t = !1, r = !1, s, i) => {
|
|
4165
4139
|
const {
|
|
4166
4140
|
url: o,
|
|
4167
4141
|
db: c
|
|
@@ -4181,14 +4155,14 @@ const La = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4181
4155
|
return `${o}/api/method/frappe.client.get_count?${f}`;
|
|
4182
4156
|
})() : s, () => c.getCount(n, e, t, r), i)
|
|
4183
4157
|
};
|
|
4184
|
-
},
|
|
4158
|
+
}, Ra = (n, e, t, r) => {
|
|
4185
4159
|
const {
|
|
4186
4160
|
call: s
|
|
4187
4161
|
} = ee(te), i = xs(e != null ? e : {}), o = `${n}?${i}`;
|
|
4188
4162
|
return {
|
|
4189
4163
|
...vt(t === void 0 ? o : t, () => s.get(n, e), r)
|
|
4190
4164
|
};
|
|
4191
|
-
},
|
|
4165
|
+
}, Ba = (n) => {
|
|
4192
4166
|
const {
|
|
4193
4167
|
call: e
|
|
4194
4168
|
} = ee(te), [t, r] = N(null), [s, i] = N(!1), [o, c] = N(null), [h, a] = N(!1), f = M(() => {
|
|
@@ -4204,7 +4178,7 @@ const La = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4204
4178
|
reset: f,
|
|
4205
4179
|
isCompleted: h
|
|
4206
4180
|
};
|
|
4207
|
-
},
|
|
4181
|
+
}, Fa = (n) => {
|
|
4208
4182
|
const {
|
|
4209
4183
|
call: e
|
|
4210
4184
|
} = ee(te), [t, r] = N(null), [s, i] = N(!1), [o, c] = N(null), [h, a] = N(!1), f = M(() => {
|
|
@@ -4220,7 +4194,7 @@ const La = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4220
4194
|
reset: f,
|
|
4221
4195
|
isCompleted: h
|
|
4222
4196
|
};
|
|
4223
|
-
},
|
|
4197
|
+
}, Ia = (n) => {
|
|
4224
4198
|
const {
|
|
4225
4199
|
call: e
|
|
4226
4200
|
} = ee(te), [t, r] = N(null), [s, i] = N(!1), [o, c] = N(null), [h, a] = N(!1), f = M(() => {
|
|
@@ -4236,7 +4210,7 @@ const La = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4236
4210
|
reset: f,
|
|
4237
4211
|
isCompleted: h
|
|
4238
4212
|
};
|
|
4239
|
-
},
|
|
4213
|
+
}, Ua = () => {
|
|
4240
4214
|
const {
|
|
4241
4215
|
file: n
|
|
4242
4216
|
} = ee(te), [e, t] = N(0), [r, s] = N(!1), [i, o] = N(null), [c, h] = N(!1), a = M(async (l, v) => (f(), s(!0), n.uploadFile(l, v, (p, b) => t(Math.round(p / b * 100))).then((p) => (h(!0), t(100), s(!1), p.data.message)).catch((p) => {
|
|
@@ -4252,15 +4226,15 @@ const La = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4252
4226
|
error: i,
|
|
4253
4227
|
reset: f
|
|
4254
4228
|
};
|
|
4255
|
-
},
|
|
4256
|
-
const i =
|
|
4257
|
-
return
|
|
4229
|
+
}, qa = (n, e, t = [], r = 20, s = 250) => {
|
|
4230
|
+
const i = Sa(e, s);
|
|
4231
|
+
return Ra("frappe.desk.search.search_link", {
|
|
4258
4232
|
doctype: n,
|
|
4259
4233
|
page_length: r,
|
|
4260
4234
|
txt: i,
|
|
4261
4235
|
filters: JSON.stringify(t != null ? t : [])
|
|
4262
4236
|
});
|
|
4263
|
-
},
|
|
4237
|
+
}, Sa = (n, e) => {
|
|
4264
4238
|
const [t, r] = N(n);
|
|
4265
4239
|
return Xe(() => {
|
|
4266
4240
|
const s = setTimeout(() => {
|
|
@@ -4280,7 +4254,7 @@ const La = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4280
4254
|
r.off(n);
|
|
4281
4255
|
};
|
|
4282
4256
|
}, [n, e]);
|
|
4283
|
-
},
|
|
4257
|
+
}, Va = (n, e, t = !0, r) => {
|
|
4284
4258
|
const {
|
|
4285
4259
|
socket: s
|
|
4286
4260
|
} = ee(te), [i, o] = N([]);
|
|
@@ -4299,7 +4273,7 @@ const La = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4299
4273
|
emitDocOpen: c,
|
|
4300
4274
|
emitDocClose: h
|
|
4301
4275
|
};
|
|
4302
|
-
},
|
|
4276
|
+
}, ja = (n, e) => {
|
|
4303
4277
|
const {
|
|
4304
4278
|
socket: t
|
|
4305
4279
|
} = ee(te);
|
|
@@ -4309,23 +4283,23 @@ const La = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4309
4283
|
};
|
|
4310
4284
|
export {
|
|
4311
4285
|
te as FrappeContext,
|
|
4312
|
-
|
|
4313
|
-
|
|
4286
|
+
xa as FrappeProvider,
|
|
4287
|
+
Ea as getDocListQueryString,
|
|
4314
4288
|
Os as getRequestURL,
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4289
|
+
Ca as useFrappeAuth,
|
|
4290
|
+
La as useFrappeCreateDoc,
|
|
4291
|
+
Ia as useFrappeDeleteCall,
|
|
4292
|
+
Na as useFrappeDeleteDoc,
|
|
4293
|
+
ja as useFrappeDocTypeEventListener,
|
|
4294
|
+
Va as useFrappeDocumentEventListener,
|
|
4321
4295
|
kn as useFrappeEventListener,
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4296
|
+
Ua as useFrappeFileUpload,
|
|
4297
|
+
Ra as useFrappeGetCall,
|
|
4298
|
+
Aa as useFrappeGetDoc,
|
|
4299
|
+
Pa as useFrappeGetDocCount,
|
|
4300
|
+
ka as useFrappeGetDocList,
|
|
4301
|
+
Ba as useFrappePostCall,
|
|
4302
|
+
Fa as useFrappePutCall,
|
|
4303
|
+
Da as useFrappeUpdateDoc,
|
|
4304
|
+
qa as useSearch
|
|
4331
4305
|
};
|