frappe-react-sdk 1.0.7 → 1.0.9

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.
@@ -1,4 +1,4 @@
1
- import Jr, { createContext as Hr, useContext as Z, useRef as ge, useCallback as ie, useDebugValue as In, useEffect as Xr, useLayoutEffect as $n, useState as T, useMemo as Bn } from "react";
1
+ import Jr, { createContext as Hr, useContext as ee, useRef as ge, useCallback as P, useDebugValue as In, useEffect as Xr, useLayoutEffect as $n, useState as T, useMemo as Bn } from "react";
2
2
  var x = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, _t = {}, Me = {}, Xe = {}, Ye = { exports: {} }, Gt = { exports: {} }, Yr = function(n, e) {
3
3
  return function() {
4
4
  for (var a = new Array(arguments.length), r = 0; r < a.length; r++)
@@ -90,7 +90,7 @@ function ta(t, n, e) {
90
90
  function ra(t) {
91
91
  return t.charCodeAt(0) === 65279 && (t = t.slice(1)), t;
92
92
  }
93
- var H = {
93
+ var X = {
94
94
  isArray: zt,
95
95
  isArrayBuffer: Gr,
96
96
  isBuffer: Vn,
@@ -113,7 +113,7 @@ var H = {
113
113
  extend: ta,
114
114
  trim: Zn,
115
115
  stripBOM: ra
116
- }, ke = H;
116
+ }, ke = X;
117
117
  function hr(t) {
118
118
  return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
119
119
  }
@@ -138,7 +138,7 @@ var Qr = function(n, e, i) {
138
138
  s !== -1 && (n = n.slice(0, s)), n += (n.indexOf("?") === -1 ? "?" : "&") + a;
139
139
  }
140
140
  return n;
141
- }, na = H;
141
+ }, na = X;
142
142
  function lt() {
143
143
  this.handlers = [];
144
144
  }
@@ -158,7 +158,7 @@ lt.prototype.forEach = function(n) {
158
158
  i !== null && n(i);
159
159
  });
160
160
  };
161
- var aa = lt, ia = H, oa = function(n, e) {
161
+ var aa = lt, ia = X, oa = function(n, e) {
162
162
  ia.forEach(n, function(a, r) {
163
163
  r !== e && r.toUpperCase() === e.toUpperCase() && (n[e] = a, delete n[r]);
164
164
  });
@@ -215,7 +215,7 @@ function ua() {
215
215
  if (wr)
216
216
  return Et;
217
217
  wr = 1;
218
- var t = H;
218
+ var t = X;
219
219
  return Et = t.isStandardBrowserEnv() ? function() {
220
220
  return {
221
221
  write: function(i, a, r, s, c, d) {
@@ -269,7 +269,7 @@ function da() {
269
269
  if (Rr)
270
270
  return xt;
271
271
  Rr = 1;
272
- var t = H, n = [
272
+ var t = X, n = [
273
273
  "age",
274
274
  "authorization",
275
275
  "content-length",
@@ -305,7 +305,7 @@ function pa() {
305
305
  if (gr)
306
306
  return Ot;
307
307
  gr = 1;
308
- var t = H;
308
+ var t = X;
309
309
  return Ot = t.isStandardBrowserEnv() ? function() {
310
310
  var e = /(msie|trident)/i.test(navigator.userAgent), i = document.createElement("a"), a;
311
311
  function r(s) {
@@ -348,78 +348,78 @@ function Cr() {
348
348
  if (Sr)
349
349
  return Dt;
350
350
  Sr = 1;
351
- var t = H, n = sa(), e = ua(), i = Qr, a = fa(), r = da(), s = pa(), c = tn(), d = en, o = ft();
351
+ var t = X, n = sa(), e = ua(), i = Qr, a = fa(), r = da(), s = pa(), c = tn(), d = en, o = ft();
352
352
  return Dt = function(f) {
353
353
  return new Promise(function(m, O) {
354
354
  var D = f.data, R = f.headers, w = f.responseType, E;
355
- function te() {
355
+ function re() {
356
356
  f.cancelToken && f.cancelToken.unsubscribe(E), f.signal && f.signal.removeEventListener("abort", E);
357
357
  }
358
358
  t.isFormData(D) && delete R["Content-Type"];
359
359
  var y = new XMLHttpRequest();
360
360
  if (f.auth) {
361
- var W = f.auth.username || "", oe = f.auth.password ? unescape(encodeURIComponent(f.auth.password)) : "";
362
- R.Authorization = "Basic " + btoa(W + ":" + oe);
361
+ var J = f.auth.username || "", oe = f.auth.password ? unescape(encodeURIComponent(f.auth.password)) : "";
362
+ R.Authorization = "Basic " + btoa(J + ":" + oe);
363
363
  }
364
- var X = a(f.baseURL, f.url);
365
- y.open(f.method.toUpperCase(), i(X, f.params, f.paramsSerializer), !0), y.timeout = f.timeout;
366
- function re() {
364
+ var Y = a(f.baseURL, f.url);
365
+ y.open(f.method.toUpperCase(), i(Y, f.params, f.paramsSerializer), !0), y.timeout = f.timeout;
366
+ function ne() {
367
367
  if (!!y) {
368
- var P = "getAllResponseHeaders" in y ? r(y.getAllResponseHeaders()) : null, Y = !w || w === "text" || w === "json" ? y.responseText : y.response, G = {
369
- data: Y,
368
+ var U = "getAllResponseHeaders" in y ? r(y.getAllResponseHeaders()) : null, G = !w || w === "text" || w === "json" ? y.responseText : y.response, z = {
369
+ data: G,
370
370
  status: y.status,
371
371
  statusText: y.statusText,
372
- headers: P,
372
+ headers: U,
373
373
  config: f,
374
374
  request: y
375
375
  };
376
376
  n(function(A) {
377
- m(A), te();
377
+ m(A), re();
378
378
  }, function(A) {
379
- O(A), te();
380
- }, G), y = null;
379
+ O(A), re();
380
+ }, z), y = null;
381
381
  }
382
382
  }
383
- if ("onloadend" in y ? y.onloadend = re : y.onreadystatechange = function() {
384
- !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(re);
383
+ if ("onloadend" in y ? y.onloadend = ne : y.onreadystatechange = function() {
384
+ !y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(ne);
385
385
  }, y.onabort = function() {
386
386
  !y || (O(c("Request aborted", f, "ECONNABORTED", y)), y = null);
387
387
  }, y.onerror = function() {
388
388
  O(c("Network Error", f, null, y)), y = null;
389
389
  }, y.ontimeout = function() {
390
- var Y = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded", G = f.transitional || d;
391
- f.timeoutErrorMessage && (Y = f.timeoutErrorMessage), O(c(
392
- Y,
390
+ var G = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded", z = f.transitional || d;
391
+ f.timeoutErrorMessage && (G = f.timeoutErrorMessage), O(c(
392
+ G,
393
393
  f,
394
- G.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
394
+ z.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
395
395
  y
396
396
  )), y = null;
397
397
  }, t.isStandardBrowserEnv()) {
398
- var F = (f.withCredentials || s(X)) && f.xsrfCookieName ? e.read(f.xsrfCookieName) : void 0;
398
+ var F = (f.withCredentials || s(Y)) && f.xsrfCookieName ? e.read(f.xsrfCookieName) : void 0;
399
399
  F && (R[f.xsrfHeaderName] = F);
400
400
  }
401
- "setRequestHeader" in y && t.forEach(R, function(Y, G) {
402
- typeof D > "u" && G.toLowerCase() === "content-type" ? delete R[G] : y.setRequestHeader(G, Y);
403
- }), t.isUndefined(f.withCredentials) || (y.withCredentials = !!f.withCredentials), w && w !== "json" && (y.responseType = f.responseType), typeof f.onDownloadProgress == "function" && y.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (E = function(P) {
404
- !y || (O(!P || P && P.type ? new o("canceled") : P), y.abort(), y = null);
401
+ "setRequestHeader" in y && t.forEach(R, function(G, z) {
402
+ typeof D > "u" && z.toLowerCase() === "content-type" ? delete R[z] : y.setRequestHeader(z, G);
403
+ }), t.isUndefined(f.withCredentials) || (y.withCredentials = !!f.withCredentials), w && w !== "json" && (y.responseType = f.responseType), typeof f.onDownloadProgress == "function" && y.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (E = function(U) {
404
+ !y || (O(!U || U && U.type ? new o("canceled") : U), y.abort(), y = null);
405
405
  }, f.cancelToken && f.cancelToken.subscribe(E), f.signal && (f.signal.aborted ? E() : f.signal.addEventListener("abort", E))), D || (D = null), y.send(D);
406
406
  });
407
407
  }, Dt;
408
408
  }
409
- var N = H, Tr = oa, ha = Zr, va = en, ma = {
409
+ var q = X, Tr = oa, ha = Zr, va = en, ma = {
410
410
  "Content-Type": "application/x-www-form-urlencoded"
411
411
  };
412
412
  function xr(t, n) {
413
- !N.isUndefined(t) && N.isUndefined(t["Content-Type"]) && (t["Content-Type"] = n);
413
+ !q.isUndefined(t) && q.isUndefined(t["Content-Type"]) && (t["Content-Type"] = n);
414
414
  }
415
415
  function wa() {
416
416
  var t;
417
417
  return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (t = Cr()), t;
418
418
  }
419
419
  function ya(t, n, e) {
420
- if (N.isString(t))
420
+ if (q.isString(t))
421
421
  try {
422
- return (n || JSON.parse)(t), N.trim(t);
422
+ return (n || JSON.parse)(t), q.trim(t);
423
423
  } catch (i) {
424
424
  if (i.name !== "SyntaxError")
425
425
  throw i;
@@ -430,11 +430,11 @@ var dt = {
430
430
  transitional: va,
431
431
  adapter: wa(),
432
432
  transformRequest: [function(n, e) {
433
- return Tr(e, "Accept"), Tr(e, "Content-Type"), N.isFormData(n) || N.isArrayBuffer(n) || N.isBuffer(n) || N.isStream(n) || N.isFile(n) || N.isBlob(n) ? n : N.isArrayBufferView(n) ? n.buffer : N.isURLSearchParams(n) ? (xr(e, "application/x-www-form-urlencoded;charset=utf-8"), n.toString()) : N.isObject(n) || e && e["Content-Type"] === "application/json" ? (xr(e, "application/json"), ya(n)) : n;
433
+ return Tr(e, "Accept"), Tr(e, "Content-Type"), q.isFormData(n) || q.isArrayBuffer(n) || q.isBuffer(n) || q.isStream(n) || q.isFile(n) || q.isBlob(n) ? n : q.isArrayBufferView(n) ? n.buffer : q.isURLSearchParams(n) ? (xr(e, "application/x-www-form-urlencoded;charset=utf-8"), n.toString()) : q.isObject(n) || e && e["Content-Type"] === "application/json" ? (xr(e, "application/json"), ya(n)) : n;
434
434
  }],
435
435
  transformResponse: [function(n) {
436
436
  var e = this.transitional || dt.transitional, i = e && e.silentJSONParsing, a = e && e.forcedJSONParsing, r = !i && this.responseType === "json";
437
- if (r || a && N.isString(n) && n.length)
437
+ if (r || a && q.isString(n) && n.length)
438
438
  try {
439
439
  return JSON.parse(n);
440
440
  } catch (s) {
@@ -457,13 +457,13 @@ var dt = {
457
457
  }
458
458
  }
459
459
  };
460
- N.forEach(["delete", "get", "head"], function(n) {
460
+ q.forEach(["delete", "get", "head"], function(n) {
461
461
  dt.headers[n] = {};
462
462
  });
463
- N.forEach(["post", "put", "patch"], function(n) {
464
- dt.headers[n] = N.merge(ma);
463
+ q.forEach(["post", "put", "patch"], function(n) {
464
+ dt.headers[n] = q.merge(ma);
465
465
  });
466
- var Qt = dt, ba = H, _a = Qt, Ra = function(n, e, i) {
466
+ var Qt = dt, ba = X, _a = Qt, Ra = function(n, e, i) {
467
467
  var a = this || _a;
468
468
  return ba.forEach(i, function(s) {
469
469
  n = s.call(a, n, e);
@@ -474,7 +474,7 @@ function rn() {
474
474
  return !!(n && n.__CANCEL__);
475
475
  }), At;
476
476
  }
477
- var Fr = H, kt = Ra, ga = rn(), Ea = Qt, Sa = ft();
477
+ var Fr = X, kt = Ra, ga = rn(), Ea = Qt, Sa = ft();
478
478
  function jt(t) {
479
479
  if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
480
480
  throw new Sa("canceled");
@@ -511,26 +511,26 @@ var Ca = function(n) {
511
511
  n.transformResponse
512
512
  ))), Promise.reject(a);
513
513
  });
514
- }, Q = H, nn = function(n, e) {
514
+ }, Z = X, nn = function(n, e) {
515
515
  e = e || {};
516
516
  var i = {};
517
517
  function a(l, f) {
518
- return Q.isPlainObject(l) && Q.isPlainObject(f) ? Q.merge(l, f) : Q.isPlainObject(f) ? Q.merge({}, f) : Q.isArray(f) ? f.slice() : f;
518
+ return Z.isPlainObject(l) && Z.isPlainObject(f) ? Z.merge(l, f) : Z.isPlainObject(f) ? Z.merge({}, f) : Z.isArray(f) ? f.slice() : f;
519
519
  }
520
520
  function r(l) {
521
- if (Q.isUndefined(e[l])) {
522
- if (!Q.isUndefined(n[l]))
521
+ if (Z.isUndefined(e[l])) {
522
+ if (!Z.isUndefined(n[l]))
523
523
  return a(void 0, n[l]);
524
524
  } else
525
525
  return a(n[l], e[l]);
526
526
  }
527
527
  function s(l) {
528
- if (!Q.isUndefined(e[l]))
528
+ if (!Z.isUndefined(e[l]))
529
529
  return a(void 0, e[l]);
530
530
  }
531
531
  function c(l) {
532
- if (Q.isUndefined(e[l])) {
533
- if (!Q.isUndefined(n[l]))
532
+ if (Z.isUndefined(e[l])) {
533
+ if (!Z.isUndefined(n[l]))
534
534
  return a(void 0, n[l]);
535
535
  } else
536
536
  return a(void 0, e[l]);
@@ -569,9 +569,9 @@ var Ca = function(n) {
569
569
  responseEncoding: c,
570
570
  validateStatus: d
571
571
  };
572
- return Q.forEach(Object.keys(n).concat(Object.keys(e)), function(f) {
572
+ return Z.forEach(Object.keys(n).concat(Object.keys(e)), function(f) {
573
573
  var v = o[f] || r, m = v(f);
574
- Q.isUndefined(m) && v !== d || (i[f] = m);
574
+ Z.isUndefined(m) && v !== d || (i[f] = m);
575
575
  }), i;
576
576
  }, Pt, Dr;
577
577
  function an() {
@@ -619,7 +619,7 @@ function xa(t, n, e) {
619
619
  var Oa = {
620
620
  assertOptions: xa,
621
621
  validators: Zt
622
- }, on = H, Fa = Qr, kr = aa, jr = Ca, pt = nn, sn = Oa, je = sn.validators;
622
+ }, on = X, Fa = Qr, kr = aa, jr = Ca, pt = nn, sn = Oa, je = sn.validators;
623
623
  function Ge(t) {
624
624
  this.defaults = t, this.interceptors = {
625
625
  request: new kr(),
@@ -757,12 +757,12 @@ function ja() {
757
757
  if (Lr)
758
758
  return Nt;
759
759
  Lr = 1;
760
- var t = H;
760
+ var t = X;
761
761
  return Nt = function(e) {
762
762
  return t.isObject(e) && e.isAxiosError === !0;
763
763
  }, Nt;
764
764
  }
765
- var Nr = H, Pa = Yr, it = Da, Ua = nn, La = Qt;
765
+ var Nr = X, Pa = Yr, it = Da, Ua = nn, La = Qt;
766
766
  function un(t) {
767
767
  var n = new it(t), e = Pa(it.prototype.request, n);
768
768
  return Nr.extend(e, it.prototype, n), Nr.extend(e, n), e.create = function(a) {
@@ -1704,8 +1704,8 @@ function fn(t, n) {
1704
1704
  }
1705
1705
  }
1706
1706
  var ue = function() {
1707
- }, J = ue(), ot = Object, V = function(t) {
1708
- return t === J;
1707
+ }, H = ue(), ot = Object, W = function(t) {
1708
+ return t === H;
1709
1709
  }, we = function(t) {
1710
1710
  return typeof t == "function";
1711
1711
  }, ye = function(t, n) {
@@ -1728,8 +1728,8 @@ var ue = function() {
1728
1728
  }
1729
1729
  if (e == ot) {
1730
1730
  a = "#";
1731
- for (var s = ot.keys(t).sort(); !V(r = s.pop()); )
1732
- V(t[r]) || (a += r + ":" + He(t[r]) + ",");
1731
+ for (var s = ot.keys(t).sort(); !W(r = s.pop()); )
1732
+ W(t[r]) || (a += r + ":" + He(t[r]) + ",");
1733
1733
  nt.set(t, a);
1734
1734
  }
1735
1735
  } else
@@ -1739,7 +1739,7 @@ var ue = function() {
1739
1739
  return Jt;
1740
1740
  }, dn = tr(), rr = Ha(), Ht = dn && window.addEventListener ? window.addEventListener.bind(window) : ue, za = rr ? document.addEventListener.bind(document) : ue, Xt = dn && window.removeEventListener ? window.removeEventListener.bind(window) : ue, Ka = rr ? document.removeEventListener.bind(document) : ue, Qa = function() {
1741
1741
  var t = rr && document.visibilityState;
1742
- return V(t) || t !== "hidden";
1742
+ return W(t) || t !== "hidden";
1743
1743
  }, Za = function(t) {
1744
1744
  return za("visibilitychange", t), Ht("focus", t), function() {
1745
1745
  Ka("visibilitychange", t), Xt("focus", t);
@@ -1787,41 +1787,41 @@ var ue = function() {
1787
1787
  for (var t = [], n = 0; n < arguments.length; n++)
1788
1788
  t[n] = arguments[n];
1789
1789
  return ln(void 0, void 0, void 0, function() {
1790
- var e, i, a, r, s, c, d, o, l, f, v, m, O, D, R, w, E, te, y, W, oe;
1791
- return fn(this, function(X) {
1792
- switch (X.label) {
1790
+ var e, i, a, r, s, c, d, o, l, f, v, m, O, D, R, w, E, re, y, J, oe;
1791
+ return fn(this, function(Y) {
1792
+ switch (Y.label) {
1793
1793
  case 0:
1794
- if (e = t[0], i = t[1], a = t[2], r = t[3], s = typeof r == "boolean" ? { revalidate: r } : r || {}, c = V(s.populateCache) ? !0 : s.populateCache, d = s.revalidate !== !1, o = s.rollbackOnError !== !1, l = s.optimisticData, f = pn(i), v = f[0], m = f[2], !v)
1794
+ if (e = t[0], i = t[1], a = t[2], r = t[3], s = typeof r == "boolean" ? { revalidate: r } : r || {}, c = W(s.populateCache) ? !0 : s.populateCache, d = s.revalidate !== !1, o = s.rollbackOnError !== !1, l = s.optimisticData, f = pn(i), v = f[0], m = f[2], !v)
1795
1795
  return [2];
1796
1796
  if (O = Ee.get(e), D = O[2], t.length < 3)
1797
- return [2, Je(e, v, e.get(v), J, J, d, !0)];
1798
- if (R = a, E = Yt(), D[v] = [E, 0], te = !V(l), y = e.get(v), te && (W = we(l) ? l(y) : l, e.set(v, W), Je(e, v, W)), we(R))
1797
+ return [2, Je(e, v, e.get(v), H, H, d, !0)];
1798
+ if (R = a, E = Yt(), D[v] = [E, 0], re = !W(l), y = e.get(v), re && (J = we(l) ? l(y) : l, e.set(v, J), Je(e, v, J)), we(R))
1799
1799
  try {
1800
1800
  R = R(e.get(v));
1801
- } catch (re) {
1802
- w = re;
1801
+ } catch (ne) {
1802
+ w = ne;
1803
1803
  }
1804
1804
  return R && we(R.then) ? [
1805
1805
  4,
1806
- R.catch(function(re) {
1807
- w = re;
1806
+ R.catch(function(ne) {
1807
+ w = ne;
1808
1808
  })
1809
1809
  ] : [3, 2];
1810
1810
  case 1:
1811
- if (R = X.sent(), E !== D[v][0]) {
1811
+ if (R = Y.sent(), E !== D[v][0]) {
1812
1812
  if (w)
1813
1813
  throw w;
1814
1814
  return [2, R];
1815
1815
  } else
1816
- w && te && o && (c = !0, R = y, e.set(v, y));
1817
- X.label = 2;
1816
+ w && re && o && (c = !0, R = y, e.set(v, y));
1817
+ Y.label = 2;
1818
1818
  case 2:
1819
1819
  return c && (w || (we(c) && (R = c(R, y)), e.set(v, R)), e.set(m, ye(e.get(m), { error: w }))), D[v][1] = Yt(), [
1820
1820
  4,
1821
- Je(e, v, R, w, J, d, !!c)
1821
+ Je(e, v, R, w, H, d, !!c)
1822
1822
  ];
1823
1823
  case 3:
1824
- if (oe = X.sent(), w)
1824
+ if (oe = Y.sent(), w)
1825
1825
  throw w;
1826
1826
  return [2, c ? oe : R];
1827
1827
  }
@@ -1832,9 +1832,9 @@ var ue = function() {
1832
1832
  t[e][0] && t[e][0](n);
1833
1833
  }, ii = function(t, n) {
1834
1834
  if (!Ee.has(t)) {
1835
- var e = ye(ri, n), i = {}, a = wn.bind(J, t), r = ue;
1835
+ var e = ye(ri, n), i = {}, a = wn.bind(H, t), r = ue;
1836
1836
  if (Ee.set(t, [i, {}, {}, {}, a]), !vt) {
1837
- var s = e.initFocus(setTimeout.bind(J, Br.bind(J, i, hn))), c = e.initReconnect(setTimeout.bind(J, Br.bind(J, i, vn)));
1837
+ var s = e.initFocus(setTimeout.bind(H, Br.bind(H, i, hn))), c = e.initReconnect(setTimeout.bind(H, Br.bind(H, i, vn)));
1838
1838
  r = function() {
1839
1839
  s && s(), c && c(), Ee.delete(t);
1840
1840
  };
@@ -1844,7 +1844,7 @@ var ue = function() {
1844
1844
  return [t, Ee.get(t)[4]];
1845
1845
  }, oi = function(t, n, e, i, a) {
1846
1846
  var r = e.errorRetryCount, s = a.retryCount, c = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * e.errorRetryInterval;
1847
- !V(r) && s > r || setTimeout(i, c, a);
1847
+ !W(r) && s > r || setTimeout(i, c, a);
1848
1848
  }, yn = ii(/* @__PURE__ */ new Map()), si = yn[0], ui = yn[1], ci = ye(
1849
1849
  {
1850
1850
  onLoadingSlow: ue,
@@ -1883,7 +1883,7 @@ var ue = function() {
1883
1883
  data: !1,
1884
1884
  error: !1,
1885
1885
  isValidating: !1
1886
- }), r = ie(
1886
+ }), r = P(
1887
1887
  function(s) {
1888
1888
  var c = !1, d = i.current;
1889
1889
  for (var o in s) {
@@ -1900,7 +1900,7 @@ var ue = function() {
1900
1900
  }, pi = function(t) {
1901
1901
  return we(t[1]) ? [t[0], t[1], t[2] || {}] : [t[0], null, (t[1] === null ? t[2] : t[1]) || {}];
1902
1902
  }, hi = function() {
1903
- return ye(ci, Z(fi));
1903
+ return ye(ci, ee(fi));
1904
1904
  }, vi = function(t) {
1905
1905
  return function() {
1906
1906
  for (var e = [], i = 0; i < arguments.length; i++)
@@ -1918,110 +1918,110 @@ var ue = function() {
1918
1918
  a >= 0 && (i[a] = i[i.length - 1], i.pop());
1919
1919
  };
1920
1920
  }, Mt = { dedupe: !0 }, mi = function(t, n, e) {
1921
- var i = e.cache, a = e.compare, r = e.fallbackData, s = e.suspense, c = e.revalidateOnMount, d = e.refreshInterval, o = e.refreshWhenHidden, l = e.refreshWhenOffline, f = Ee.get(i), v = f[0], m = f[1], O = f[2], D = f[3], R = pn(t), w = R[0], E = R[1], te = R[2], y = ge(!1), W = ge(!1), oe = ge(w), X = ge(n), re = ge(e), F = function() {
1922
- return re.current;
1923
- }, P = function() {
1921
+ var i = e.cache, a = e.compare, r = e.fallbackData, s = e.suspense, c = e.revalidateOnMount, d = e.refreshInterval, o = e.refreshWhenHidden, l = e.refreshWhenOffline, f = Ee.get(i), v = f[0], m = f[1], O = f[2], D = f[3], R = pn(t), w = R[0], E = R[1], re = R[2], y = ge(!1), J = ge(!1), oe = ge(w), Y = ge(n), ne = ge(e), F = function() {
1922
+ return ne.current;
1923
+ }, U = function() {
1924
1924
  return F().isVisible() && F().isOnline();
1925
- }, Y = function($) {
1926
- return i.set(te, ye(i.get(te), $));
1927
- }, G = i.get(w), z = V(r) ? e.fallback[w] : r, A = V(G) ? z : G, pe = i.get(te) || {}, he = pe.error, Ne = !y.current, qe = function() {
1928
- return Ne && !V(c) ? c : F().isPaused() ? !1 : s ? V(A) ? !1 : e.revalidateIfStale : V(A) || e.revalidateIfStale;
1925
+ }, G = function(B) {
1926
+ return i.set(re, ye(i.get(re), B));
1927
+ }, z = i.get(w), K = W(r) ? e.fallback[w] : r, A = W(z) ? K : z, pe = i.get(re) || {}, he = pe.error, Ne = !y.current, qe = function() {
1928
+ return Ne && !W(c) ? c : F().isPaused() ? !1 : s ? W(A) ? !1 : e.revalidateIfStale : W(A) || e.revalidateIfStale;
1929
1929
  }, Ze = function() {
1930
1930
  return !w || !n ? !1 : pe.isValidating ? !0 : Ne && qe();
1931
1931
  }, Se = Ze(), Ce = di({
1932
1932
  data: A,
1933
1933
  error: he,
1934
1934
  isValidating: Se
1935
- }, W), le = Ce[0], Te = Ce[1], xe = Ce[2], fe = ie(
1936
- function($) {
1935
+ }, J), le = Ce[0], Te = Ce[1], xe = Ce[2], fe = P(
1936
+ function(B) {
1937
1937
  return ln(void 0, void 0, void 0, function() {
1938
- var U, q, I, _e, ve, ne, L, K, B, Oe, me, se, $e;
1938
+ var L, I, $, _e, ve, ae, N, Q, M, Oe, me, se, $e;
1939
1939
  return fn(this, function(Re) {
1940
1940
  switch (Re.label) {
1941
1941
  case 0:
1942
- if (U = X.current, !w || !U || W.current || F().isPaused())
1942
+ if (L = Y.current, !w || !L || J.current || F().isPaused())
1943
1943
  return [2, !1];
1944
- _e = !0, ve = $ || {}, ne = !D[w] || !ve.dedupe, L = function() {
1945
- return !W.current && w === oe.current && y.current;
1946
- }, K = function() {
1944
+ _e = !0, ve = B || {}, ae = !D[w] || !ve.dedupe, N = function() {
1945
+ return !J.current && w === oe.current && y.current;
1946
+ }, Q = function() {
1947
1947
  var Fe = D[w];
1948
- Fe && Fe[1] === I && delete D[w];
1949
- }, B = { isValidating: !1 }, Oe = function() {
1950
- Y({ isValidating: !1 }), L() && xe(B);
1951
- }, Y({
1948
+ Fe && Fe[1] === $ && delete D[w];
1949
+ }, M = { isValidating: !1 }, Oe = function() {
1950
+ G({ isValidating: !1 }), N() && xe(M);
1951
+ }, G({
1952
1952
  isValidating: !0
1953
1953
  }), xe({ isValidating: !0 }), Re.label = 1;
1954
1954
  case 1:
1955
- return Re.trys.push([1, 3, , 4]), ne && (Je(i, w, le.current.data, le.current.error, !0), e.loadingTimeout && !i.get(w) && setTimeout(function() {
1956
- _e && L() && F().onLoadingSlow(w, e);
1957
- }, e.loadingTimeout), D[w] = [U.apply(void 0, E), Yt()]), $e = D[w], q = $e[0], I = $e[1], [4, q];
1955
+ return Re.trys.push([1, 3, , 4]), ae && (Je(i, w, le.current.data, le.current.error, !0), e.loadingTimeout && !i.get(w) && setTimeout(function() {
1956
+ _e && N() && F().onLoadingSlow(w, e);
1957
+ }, e.loadingTimeout), D[w] = [L.apply(void 0, E), Yt()]), $e = D[w], I = $e[0], $ = $e[1], [4, I];
1958
1958
  case 2:
1959
- return q = Re.sent(), ne && setTimeout(K, e.dedupingInterval), !D[w] || D[w][1] !== I ? (ne && L() && F().onDiscarded(w), [2, !1]) : (Y({
1960
- error: J
1961
- }), B.error = J, me = O[w], !V(me) && (I <= me[0] || I <= me[1] || me[1] === 0) ? (Oe(), ne && L() && F().onDiscarded(w), [2, !1]) : (a(le.current.data, q) ? B.data = le.current.data : B.data = q, a(i.get(w), q) || i.set(w, q), ne && L() && F().onSuccess(q, w, e), [3, 4]));
1959
+ return I = Re.sent(), ae && setTimeout(Q, e.dedupingInterval), !D[w] || D[w][1] !== $ ? (ae && N() && F().onDiscarded(w), [2, !1]) : (G({
1960
+ error: H
1961
+ }), M.error = H, me = O[w], !W(me) && ($ <= me[0] || $ <= me[1] || me[1] === 0) ? (Oe(), ae && N() && F().onDiscarded(w), [2, !1]) : (a(le.current.data, I) ? M.data = le.current.data : M.data = I, a(i.get(w), I) || i.set(w, I), ae && N() && F().onSuccess(I, w, e), [3, 4]));
1962
1962
  case 3:
1963
- return se = Re.sent(), K(), F().isPaused() || (Y({ error: se }), B.error = se, ne && L() && (F().onError(se, w, e), (typeof e.shouldRetryOnError == "boolean" && e.shouldRetryOnError || we(e.shouldRetryOnError) && e.shouldRetryOnError(se)) && P() && F().onErrorRetry(se, w, e, fe, {
1963
+ return se = Re.sent(), Q(), F().isPaused() || (G({ error: se }), M.error = se, ae && N() && (F().onError(se, w, e), (typeof e.shouldRetryOnError == "boolean" && e.shouldRetryOnError || we(e.shouldRetryOnError) && e.shouldRetryOnError(se)) && U() && F().onErrorRetry(se, w, e, fe, {
1964
1964
  retryCount: (ve.retryCount || 0) + 1,
1965
1965
  dedupe: !0
1966
1966
  }))), [3, 4];
1967
1967
  case 4:
1968
- return _e = !1, Oe(), L() && ne && Je(i, w, B.data, B.error, !1), [2, !0];
1968
+ return _e = !1, Oe(), N() && ae && Je(i, w, M.data, M.error, !1), [2, !0];
1969
1969
  }
1970
1970
  });
1971
1971
  });
1972
1972
  },
1973
1973
  [w]
1974
- ), Ie = ie(
1975
- wn.bind(J, i, function() {
1974
+ ), Ie = P(
1975
+ wn.bind(H, i, function() {
1976
1976
  return oe.current;
1977
1977
  }),
1978
1978
  []
1979
1979
  );
1980
1980
  if (st(function() {
1981
- X.current = n, re.current = e;
1981
+ Y.current = n, ne.current = e;
1982
1982
  }), st(function() {
1983
1983
  if (!!w) {
1984
- var $ = w !== oe.current, U = fe.bind(J, Mt), q = function(L, K, B) {
1984
+ var B = w !== oe.current, L = fe.bind(H, Mt), I = function(N, Q, M) {
1985
1985
  xe(ye(
1986
1986
  {
1987
- error: K,
1988
- isValidating: B
1987
+ error: Q,
1988
+ isValidating: M
1989
1989
  },
1990
- a(le.current.data, L) ? J : {
1991
- data: L
1990
+ a(le.current.data, N) ? H : {
1991
+ data: N
1992
1992
  }
1993
1993
  ));
1994
- }, I = 0, _e = function(L) {
1995
- if (L == hn) {
1996
- var K = Date.now();
1997
- F().revalidateOnFocus && K > I && P() && (I = K + F().focusThrottleInterval, U());
1998
- } else if (L == vn)
1999
- F().revalidateOnReconnect && P() && U();
2000
- else if (L == mn)
1994
+ }, $ = 0, _e = function(N) {
1995
+ if (N == hn) {
1996
+ var Q = Date.now();
1997
+ F().revalidateOnFocus && Q > $ && U() && ($ = Q + F().focusThrottleInterval, L());
1998
+ } else if (N == vn)
1999
+ F().revalidateOnReconnect && U() && L();
2000
+ else if (N == mn)
2001
2001
  return fe();
2002
- }, ve = Mr(w, m, q), ne = Mr(w, v, _e);
2003
- return W.current = !1, oe.current = w, y.current = !0, $ && xe({
2002
+ }, ve = Mr(w, m, I), ae = Mr(w, v, _e);
2003
+ return J.current = !1, oe.current = w, y.current = !0, B && xe({
2004
2004
  data: A,
2005
2005
  error: he,
2006
2006
  isValidating: Se
2007
- }), qe() && (V(A) || vt ? U() : ni(U)), function() {
2008
- W.current = !0, ve(), ne();
2007
+ }), qe() && (W(A) || vt ? L() : ni(L)), function() {
2008
+ J.current = !0, ve(), ae();
2009
2009
  };
2010
2010
  }
2011
2011
  }, [w, fe]), st(function() {
2012
- var $;
2013
- function U() {
2014
- var I = we(d) ? d(A) : d;
2015
- I && $ !== -1 && ($ = setTimeout(q, I));
2012
+ var B;
2013
+ function L() {
2014
+ var $ = we(d) ? d(A) : d;
2015
+ $ && B !== -1 && (B = setTimeout(I, $));
2016
2016
  }
2017
- function q() {
2018
- !le.current.error && (o || F().isVisible()) && (l || F().isOnline()) ? fe(Mt).then(U) : U();
2017
+ function I() {
2018
+ !le.current.error && (o || F().isVisible()) && (l || F().isOnline()) ? fe(Mt).then(L) : L();
2019
2019
  }
2020
- return U(), function() {
2021
- $ && (clearTimeout($), $ = -1);
2020
+ return L(), function() {
2021
+ B && (clearTimeout(B), B = -1);
2022
2022
  };
2023
- }, [d, o, l, fe]), In(A), s && V(A) && w)
2024
- throw X.current = n, re.current = e, W.current = !1, V(he) ? fe(Mt) : he;
2023
+ }, [d, o, l, fe]), In(A), s && W(A) && w)
2024
+ throw Y.current = n, ne.current = e, J.current = !1, W(he) ? fe(Mt) : he;
2025
2025
  return {
2026
2026
  mutate: Ie,
2027
2027
  get data() {
@@ -2087,10 +2087,10 @@ function yi() {
2087
2087
  {
2088
2088
  for (var p = arguments.length, h = new Array(p > 1 ? p - 1 : 0), b = 1; b < p; b++)
2089
2089
  h[b - 1] = arguments[b];
2090
- te("error", u, h);
2090
+ re("error", u, h);
2091
2091
  }
2092
2092
  }
2093
- function te(u, p, h) {
2093
+ function re(u, p, h) {
2094
2094
  {
2095
2095
  var b = w.ReactDebugCurrentFrame, S = b.getStackAddendum();
2096
2096
  S !== "" && (p += "%s", h = h.concat([S]));
@@ -2100,22 +2100,22 @@ function yi() {
2100
2100
  C.unshift("Warning: " + p), Function.prototype.apply.call(console[u], console, C);
2101
2101
  }
2102
2102
  }
2103
- var y = !1, W = !1, oe = !1, X = !1, re = !1, F;
2103
+ var y = !1, J = !1, oe = !1, Y = !1, ne = !1, F;
2104
2104
  F = Symbol.for("react.module.reference");
2105
- function P(u) {
2106
- return !!(typeof u == "string" || typeof u == "function" || u === i || u === r || re || u === a || u === o || u === l || X || u === m || y || W || oe || typeof u == "object" && u !== null && (u.$$typeof === v || u.$$typeof === f || u.$$typeof === s || u.$$typeof === c || u.$$typeof === d || u.$$typeof === F || u.getModuleId !== void 0));
2105
+ function U(u) {
2106
+ return !!(typeof u == "string" || typeof u == "function" || u === i || u === r || ne || u === a || u === o || u === l || Y || u === m || y || J || oe || typeof u == "object" && u !== null && (u.$$typeof === v || u.$$typeof === f || u.$$typeof === s || u.$$typeof === c || u.$$typeof === d || u.$$typeof === F || u.getModuleId !== void 0));
2107
2107
  }
2108
- function Y(u, p, h) {
2108
+ function G(u, p, h) {
2109
2109
  var b = u.displayName;
2110
2110
  if (b)
2111
2111
  return b;
2112
2112
  var S = p.displayName || p.name || "";
2113
2113
  return S !== "" ? h + "(" + S + ")" : h;
2114
2114
  }
2115
- function G(u) {
2115
+ function z(u) {
2116
2116
  return u.displayName || "Context";
2117
2117
  }
2118
- function z(u) {
2118
+ function K(u) {
2119
2119
  if (u == null)
2120
2120
  return null;
2121
2121
  if (typeof u.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
@@ -2140,19 +2140,19 @@ function yi() {
2140
2140
  switch (u.$$typeof) {
2141
2141
  case c:
2142
2142
  var p = u;
2143
- return G(p) + ".Consumer";
2143
+ return z(p) + ".Consumer";
2144
2144
  case s:
2145
2145
  var h = u;
2146
- return G(h._context) + ".Provider";
2146
+ return z(h._context) + ".Provider";
2147
2147
  case d:
2148
- return Y(u, u.render, "ForwardRef");
2148
+ return G(u, u.render, "ForwardRef");
2149
2149
  case f:
2150
2150
  var b = u.displayName || null;
2151
- return b !== null ? b : z(u.type) || "Memo";
2151
+ return b !== null ? b : K(u.type) || "Memo";
2152
2152
  case v: {
2153
2153
  var S = u, C = S._payload, g = S._init;
2154
2154
  try {
2155
- return z(g(C));
2155
+ return K(g(C));
2156
2156
  } catch {
2157
2157
  return null;
2158
2158
  }
@@ -2222,35 +2222,35 @@ function yi() {
2222
2222
  pe < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2223
2223
  }
2224
2224
  }
2225
- var Ie = w.ReactCurrentDispatcher, $;
2226
- function U(u, p, h) {
2225
+ var Ie = w.ReactCurrentDispatcher, B;
2226
+ function L(u, p, h) {
2227
2227
  {
2228
- if ($ === void 0)
2228
+ if (B === void 0)
2229
2229
  try {
2230
2230
  throw Error();
2231
2231
  } catch (S) {
2232
2232
  var b = S.stack.trim().match(/\n( *(at )?)/);
2233
- $ = b && b[1] || "";
2233
+ B = b && b[1] || "";
2234
2234
  }
2235
2235
  return `
2236
- ` + $ + u;
2236
+ ` + B + u;
2237
2237
  }
2238
2238
  }
2239
- var q = !1, I;
2239
+ var I = !1, $;
2240
2240
  {
2241
2241
  var _e = typeof WeakMap == "function" ? WeakMap : Map;
2242
- I = new _e();
2242
+ $ = new _e();
2243
2243
  }
2244
2244
  function ve(u, p) {
2245
- if (!u || q)
2245
+ if (!u || I)
2246
2246
  return "";
2247
2247
  {
2248
- var h = I.get(u);
2248
+ var h = $.get(u);
2249
2249
  if (h !== void 0)
2250
2250
  return h;
2251
2251
  }
2252
2252
  var b;
2253
- q = !0;
2253
+ I = !0;
2254
2254
  var S = Error.prepareStackTrace;
2255
2255
  Error.prepareStackTrace = void 0;
2256
2256
  var C;
@@ -2290,82 +2290,82 @@ function yi() {
2290
2290
  } catch (de) {
2291
2291
  if (de && b && typeof de.stack == "string") {
2292
2292
  for (var _ = de.stack.split(`
2293
- `), M = b.stack.split(`
2294
- `), k = _.length - 1, j = M.length - 1; k >= 1 && j >= 0 && _[k] !== M[j]; )
2293
+ `), V = b.stack.split(`
2294
+ `), k = _.length - 1, j = V.length - 1; k >= 1 && j >= 0 && _[k] !== V[j]; )
2295
2295
  j--;
2296
2296
  for (; k >= 1 && j >= 0; k--, j--)
2297
- if (_[k] !== M[j]) {
2297
+ if (_[k] !== V[j]) {
2298
2298
  if (k !== 1 || j !== 1)
2299
2299
  do
2300
- if (k--, j--, j < 0 || _[k] !== M[j]) {
2301
- var ae = `
2300
+ if (k--, j--, j < 0 || _[k] !== V[j]) {
2301
+ var ie = `
2302
2302
  ` + _[k].replace(" at new ", " at ");
2303
- return u.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", u.displayName)), typeof u == "function" && I.set(u, ae), ae;
2303
+ return u.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", u.displayName)), typeof u == "function" && $.set(u, ie), ie;
2304
2304
  }
2305
2305
  while (k >= 1 && j >= 0);
2306
2306
  break;
2307
2307
  }
2308
2308
  }
2309
2309
  } finally {
2310
- q = !1, Ie.current = C, fe(), Error.prepareStackTrace = S;
2310
+ I = !1, Ie.current = C, fe(), Error.prepareStackTrace = S;
2311
2311
  }
2312
- var Ae = u ? u.displayName || u.name : "", pr = Ae ? U(Ae) : "";
2313
- return typeof u == "function" && I.set(u, pr), pr;
2312
+ var Ae = u ? u.displayName || u.name : "", pr = Ae ? L(Ae) : "";
2313
+ return typeof u == "function" && $.set(u, pr), pr;
2314
2314
  }
2315
- function ne(u, p, h) {
2315
+ function ae(u, p, h) {
2316
2316
  return ve(u, !1);
2317
2317
  }
2318
- function L(u) {
2318
+ function N(u) {
2319
2319
  var p = u.prototype;
2320
2320
  return !!(p && p.isReactComponent);
2321
2321
  }
2322
- function K(u, p, h) {
2322
+ function Q(u, p, h) {
2323
2323
  if (u == null)
2324
2324
  return "";
2325
2325
  if (typeof u == "function")
2326
- return ve(u, L(u));
2326
+ return ve(u, N(u));
2327
2327
  if (typeof u == "string")
2328
- return U(u);
2328
+ return L(u);
2329
2329
  switch (u) {
2330
2330
  case o:
2331
- return U("Suspense");
2331
+ return L("Suspense");
2332
2332
  case l:
2333
- return U("SuspenseList");
2333
+ return L("SuspenseList");
2334
2334
  }
2335
2335
  if (typeof u == "object")
2336
2336
  switch (u.$$typeof) {
2337
2337
  case d:
2338
- return ne(u.render);
2338
+ return ae(u.render);
2339
2339
  case f:
2340
- return K(u.type, p, h);
2340
+ return Q(u.type, p, h);
2341
2341
  case v: {
2342
2342
  var b = u, S = b._payload, C = b._init;
2343
2343
  try {
2344
- return K(C(S), p, h);
2344
+ return Q(C(S), p, h);
2345
2345
  } catch {
2346
2346
  }
2347
2347
  }
2348
2348
  }
2349
2349
  return "";
2350
2350
  }
2351
- var B = Object.prototype.hasOwnProperty, Oe = {}, me = w.ReactDebugCurrentFrame;
2351
+ var M = Object.prototype.hasOwnProperty, Oe = {}, me = w.ReactDebugCurrentFrame;
2352
2352
  function se(u) {
2353
2353
  if (u) {
2354
- var p = u._owner, h = K(u.type, u._source, p ? p.type : null);
2354
+ var p = u._owner, h = Q(u.type, u._source, p ? p.type : null);
2355
2355
  me.setExtraStackFrame(h);
2356
2356
  } else
2357
2357
  me.setExtraStackFrame(null);
2358
2358
  }
2359
2359
  function $e(u, p, h, b, S) {
2360
2360
  {
2361
- var C = Function.call.bind(B);
2361
+ var C = Function.call.bind(M);
2362
2362
  for (var g in u)
2363
2363
  if (C(u, g)) {
2364
2364
  var _ = void 0;
2365
2365
  try {
2366
2366
  if (typeof u[g] != "function") {
2367
- var M = Error((b || "React class") + ": " + h + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2368
- throw M.name = "Invariant Violation", M;
2367
+ var V = Error((b || "React class") + ": " + h + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2368
+ throw V.name = "Invariant Violation", V;
2369
2369
  }
2370
2370
  _ = u[g](p, g, b, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2371
2371
  } catch (k) {
@@ -2407,7 +2407,7 @@ function yi() {
2407
2407
  }, ir, or, mt;
2408
2408
  mt = {};
2409
2409
  function Sn(u) {
2410
- if (B.call(u, "ref")) {
2410
+ if (M.call(u, "ref")) {
2411
2411
  var p = Object.getOwnPropertyDescriptor(u, "ref").get;
2412
2412
  if (p && p.isReactWarning)
2413
2413
  return !1;
@@ -2415,7 +2415,7 @@ function yi() {
2415
2415
  return u.ref !== void 0;
2416
2416
  }
2417
2417
  function Cn(u) {
2418
- if (B.call(u, "key")) {
2418
+ if (M.call(u, "key")) {
2419
2419
  var p = Object.getOwnPropertyDescriptor(u, "key").get;
2420
2420
  if (p && p.isReactWarning)
2421
2421
  return !1;
@@ -2424,8 +2424,8 @@ function yi() {
2424
2424
  }
2425
2425
  function Tn(u, p) {
2426
2426
  if (typeof u.ref == "string" && Be.current && p && Be.current.stateNode !== p) {
2427
- var h = z(Be.current.type);
2428
- mt[h] || (E('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(Be.current.type), u.ref), mt[h] = !0);
2427
+ var h = K(Be.current.type);
2428
+ mt[h] || (E('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', K(Be.current.type), u.ref), mt[h] = !0);
2429
2429
  }
2430
2430
  }
2431
2431
  function xn(u, p) {
@@ -2478,26 +2478,26 @@ function yi() {
2478
2478
  };
2479
2479
  function Dn(u, p, h, b, S) {
2480
2480
  {
2481
- var C, g = {}, _ = null, M = null;
2482
- h !== void 0 && (ar(h), _ = "" + h), Cn(p) && (ar(p.key), _ = "" + p.key), Sn(p) && (M = p.ref, Tn(p, S));
2481
+ var C, g = {}, _ = null, V = null;
2482
+ h !== void 0 && (ar(h), _ = "" + h), Cn(p) && (ar(p.key), _ = "" + p.key), Sn(p) && (V = p.ref, Tn(p, S));
2483
2483
  for (C in p)
2484
- B.call(p, C) && !En.hasOwnProperty(C) && (g[C] = p[C]);
2484
+ M.call(p, C) && !En.hasOwnProperty(C) && (g[C] = p[C]);
2485
2485
  if (u && u.defaultProps) {
2486
2486
  var k = u.defaultProps;
2487
2487
  for (C in k)
2488
2488
  g[C] === void 0 && (g[C] = k[C]);
2489
2489
  }
2490
- if (_ || M) {
2490
+ if (_ || V) {
2491
2491
  var j = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
2492
- _ && xn(g, j), M && On(g, j);
2492
+ _ && xn(g, j), V && On(g, j);
2493
2493
  }
2494
- return Fn(u, _, M, S, b, Be.current, g);
2494
+ return Fn(u, _, V, S, b, Be.current, g);
2495
2495
  }
2496
2496
  }
2497
2497
  var wt = w.ReactCurrentOwner, sr = w.ReactDebugCurrentFrame;
2498
2498
  function De(u) {
2499
2499
  if (u) {
2500
- var p = u._owner, h = K(u.type, u._source, p ? p.type : null);
2500
+ var p = u._owner, h = Q(u.type, u._source, p ? p.type : null);
2501
2501
  sr.setExtraStackFrame(h);
2502
2502
  } else
2503
2503
  sr.setExtraStackFrame(null);
@@ -2510,7 +2510,7 @@ function yi() {
2510
2510
  function ur() {
2511
2511
  {
2512
2512
  if (wt.current) {
2513
- var u = z(wt.current.type);
2513
+ var u = K(wt.current.type);
2514
2514
  if (u)
2515
2515
  return `
2516
2516
 
@@ -2553,7 +2553,7 @@ Check the top-level render call using <` + h + ">.");
2553
2553
  return;
2554
2554
  cr[h] = !0;
2555
2555
  var b = "";
2556
- u && u._owner && u._owner !== wt.current && (b = " It was passed a child from " + z(u._owner.type) + "."), De(u), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), De(null);
2556
+ u && u._owner && u._owner !== wt.current && (b = " It was passed a child from " + K(u._owner.type) + "."), De(u), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), De(null);
2557
2557
  }
2558
2558
  }
2559
2559
  function fr(u, p) {
@@ -2588,11 +2588,11 @@ Check the top-level render call using <` + h + ">.");
2588
2588
  else
2589
2589
  return;
2590
2590
  if (h) {
2591
- var b = z(p);
2591
+ var b = K(p);
2592
2592
  $e(h, u.props, "prop", b, u);
2593
2593
  } else if (p.PropTypes !== void 0 && !yt) {
2594
2594
  yt = !0;
2595
- var S = z(p);
2595
+ var S = K(p);
2596
2596
  E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
2597
2597
  }
2598
2598
  typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -2612,30 +2612,30 @@ Check the top-level render call using <` + h + ">.");
2612
2612
  }
2613
2613
  function dr(u, p, h, b, S, C) {
2614
2614
  {
2615
- var g = P(u);
2615
+ var g = U(u);
2616
2616
  if (!g) {
2617
2617
  var _ = "";
2618
2618
  (u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2619
- var M = An(S);
2620
- M ? _ += M : _ += ur();
2619
+ var V = An(S);
2620
+ V ? _ += V : _ += ur();
2621
2621
  var k;
2622
- u === null ? k = "null" : Fe(u) ? k = "array" : u !== void 0 && u.$$typeof === n ? (k = "<" + (z(u.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : k = typeof u, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, _);
2622
+ u === null ? k = "null" : Fe(u) ? k = "array" : u !== void 0 && u.$$typeof === n ? (k = "<" + (K(u.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : k = typeof u, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, _);
2623
2623
  }
2624
2624
  var j = Dn(u, p, h, S, C);
2625
2625
  if (j == null)
2626
2626
  return j;
2627
2627
  if (g) {
2628
- var ae = p.children;
2629
- if (ae !== void 0)
2628
+ var ie = p.children;
2629
+ if (ie !== void 0)
2630
2630
  if (b)
2631
- if (Fe(ae)) {
2632
- for (var Ae = 0; Ae < ae.length; Ae++)
2633
- fr(ae[Ae], u);
2634
- Object.freeze && Object.freeze(ae);
2631
+ if (Fe(ie)) {
2632
+ for (var Ae = 0; Ae < ie.length; Ae++)
2633
+ fr(ie[Ae], u);
2634
+ Object.freeze && Object.freeze(ie);
2635
2635
  } else
2636
2636
  E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2637
2637
  else
2638
- fr(ae, u);
2638
+ fr(ie, u);
2639
2639
  }
2640
2640
  return u === i ? Pn(j) : jn(j), j;
2641
2641
  }
@@ -2653,7 +2653,7 @@ Check the top-level render call using <` + h + ">.");
2653
2653
  (function(t) {
2654
2654
  process.env.NODE_ENV === "production" ? t.exports = wi() : t.exports = yi();
2655
2655
  })(bn);
2656
- const bi = bn.exports.jsx, ee = Hr(null), Si = ({
2656
+ const bi = bn.exports.jsx, te = Hr(null), Si = ({
2657
2657
  url: t = "",
2658
2658
  children: n
2659
2659
  }) => {
@@ -2668,7 +2668,7 @@ const bi = bn.exports.jsx, ee = Hr(null), Si = ({
2668
2668
  file: i.file()
2669
2669
  };
2670
2670
  }, [t]);
2671
- return /* @__PURE__ */ bi(ee.Provider, {
2671
+ return /* @__PURE__ */ bi(te.Provider, {
2672
2672
  value: e,
2673
2673
  children: n
2674
2674
  });
@@ -2676,17 +2676,17 @@ const bi = bn.exports.jsx, ee = Hr(null), Si = ({
2676
2676
  const {
2677
2677
  url: n,
2678
2678
  auth: e
2679
- } = Z(ee), {
2679
+ } = ee(te), {
2680
2680
  data: i,
2681
2681
  error: a,
2682
2682
  isValidating: r,
2683
2683
  mutate: s
2684
- } = Qe(`${n}/api/method/frappe.auth.get_logged_user`, () => e.getLoggedInUser(), t), c = ie(async (o, l) => e.loginWithUsernamePassword({
2684
+ } = Qe(`${n}/api/method/frappe.auth.get_logged_user`, () => e.getLoggedInUser(), t), c = P(async (o, l) => e.loginWithUsernamePassword({
2685
2685
  username: o,
2686
2686
  password: l
2687
2687
  }).then((f) => {
2688
2688
  console.log(f), s();
2689
- }), []), d = ie(async () => e.logout().then(() => s(null)), []);
2689
+ }), []), d = P(async () => e.logout().then(() => s(null)), []);
2690
2690
  return {
2691
2691
  currentUser: i,
2692
2692
  isValidating: r,
@@ -2698,7 +2698,7 @@ const bi = bn.exports.jsx, ee = Hr(null), Si = ({
2698
2698
  }, Ti = (t, n, e) => {
2699
2699
  const {
2700
2700
  db: i
2701
- } = Z(ee);
2701
+ } = ee(te);
2702
2702
  return {
2703
2703
  ...Qe(i.getRequestURL(t, n), () => i.getDoc(t, n), e)
2704
2704
  };
@@ -2713,20 +2713,20 @@ const bi = bn.exports.jsx, ee = Hr(null), Si = ({
2713
2713
  }, xi = (t, n, e) => {
2714
2714
  const {
2715
2715
  db: i
2716
- } = Z(ee);
2716
+ } = ee(te);
2717
2717
  return {
2718
2718
  ...Qe(`${i.getRequestURL(t)}?${_i(n)}`, () => i.getDocList(t, n), e)
2719
2719
  };
2720
2720
  }, Oi = () => {
2721
2721
  const {
2722
2722
  db: t
2723
- } = Z(ee), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1), c = ie(() => {
2723
+ } = ee(te), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1), c = P(() => {
2724
2724
  e(!1), a(null), s(!1);
2725
2725
  }, []);
2726
2726
  return {
2727
- createDoc: async (o, l) => (c(), t.createDoc(o, l).then((f) => (e(!1), s(!0), f)).catch((f) => {
2727
+ createDoc: P(async (o, l) => (c(), t.createDoc(o, l).then((f) => (e(!1), s(!0), f)).catch((f) => {
2728
2728
  throw e(!1), s(!1), a(f), f;
2729
- })),
2729
+ })), []),
2730
2730
  loading: n,
2731
2731
  error: i,
2732
2732
  isCompleted: r,
@@ -2735,13 +2735,13 @@ const bi = bn.exports.jsx, ee = Hr(null), Si = ({
2735
2735
  }, Fi = () => {
2736
2736
  const {
2737
2737
  db: t
2738
- } = Z(ee), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1), c = ie(() => {
2738
+ } = ee(te), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1), c = P(() => {
2739
2739
  e(!1), a(null), s(!1);
2740
2740
  }, []);
2741
2741
  return {
2742
- updateDoc: async (o, l, f) => (c(), t.updateDoc(o, l, f).then((v) => (e(!1), s(!0), v)).catch((v) => {
2742
+ updateDoc: P(async (o, l, f) => (c(), t.updateDoc(o, l, f).then((v) => (e(!1), s(!0), v)).catch((v) => {
2743
2743
  throw e(!1), s(!1), a(v), v;
2744
- })),
2744
+ })), []),
2745
2745
  loading: n,
2746
2746
  error: i,
2747
2747
  reset: c,
@@ -2750,13 +2750,13 @@ const bi = bn.exports.jsx, ee = Hr(null), Si = ({
2750
2750
  }, Di = () => {
2751
2751
  const {
2752
2752
  db: t
2753
- } = Z(ee), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1), c = ie(() => {
2753
+ } = ee(te), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1), c = P(() => {
2754
2754
  e(!1), a(null), s(!1);
2755
2755
  }, []);
2756
2756
  return {
2757
- deleteDoc: async (o, l) => (c(), t.deleteDoc(o, l).then((f) => (e(!1), s(!0), f)).catch((f) => {
2757
+ deleteDoc: P(async (o, l) => (c(), t.deleteDoc(o, l).then((f) => (e(!1), s(!0), f)).catch((f) => {
2758
2758
  throw e(!1), s(!1), a(f), f;
2759
- })),
2759
+ })), []),
2760
2760
  loading: n,
2761
2761
  error: i,
2762
2762
  reset: c,
@@ -2773,7 +2773,7 @@ const Ai = (t, n, e = !1, i = !1, a) => {
2773
2773
  const {
2774
2774
  url: r,
2775
2775
  db: s
2776
- } = Z(ee);
2776
+ } = ee(te);
2777
2777
  return {
2778
2778
  ...Qe((() => {
2779
2779
  const o = _n({
@@ -2787,20 +2787,20 @@ const Ai = (t, n, e = !1, i = !1, a) => {
2787
2787
  }, Ri = (t, n, e, i) => {
2788
2788
  const {
2789
2789
  call: a
2790
- } = Z(ee), r = _n(n != null ? n : {}), s = `${t}?${r}`;
2790
+ } = ee(te), r = _n(n != null ? n : {}), s = `${t}?${r}`;
2791
2791
  return console.log(s), {
2792
2792
  ...Qe(e != null ? e : s, () => a.get(t, n), i)
2793
2793
  };
2794
2794
  }, ki = (t) => {
2795
2795
  const {
2796
2796
  call: n
2797
- } = Z(ee), [e, i] = T(null), [a, r] = T(!1), [s, c] = T(null), [d, o] = T(!1), l = ie(() => {
2797
+ } = ee(te), [e, i] = T(null), [a, r] = T(!1), [s, c] = T(null), [d, o] = T(!1), l = P(() => {
2798
2798
  i(null), r(!1), c(null), o(!1);
2799
2799
  }, []);
2800
2800
  return {
2801
- call: async (v) => (l(), n.post(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
2801
+ call: P(async (v) => (l(), n.post(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
2802
2802
  throw r(!1), o(!1), c(m), m;
2803
- })),
2803
+ })), []),
2804
2804
  result: e,
2805
2805
  loading: a,
2806
2806
  error: s,
@@ -2810,13 +2810,13 @@ const Ai = (t, n, e = !1, i = !1, a) => {
2810
2810
  }, ji = (t) => {
2811
2811
  const {
2812
2812
  call: n
2813
- } = Z(ee), [e, i] = T(null), [a, r] = T(!1), [s, c] = T(null), [d, o] = T(!1), l = ie(() => {
2813
+ } = ee(te), [e, i] = T(null), [a, r] = T(!1), [s, c] = T(null), [d, o] = T(!1), l = P(() => {
2814
2814
  i(null), r(!1), c(null), o(!1);
2815
2815
  }, []);
2816
2816
  return {
2817
- call: async (v) => (l(), n.put(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
2817
+ call: P(async (v) => (l(), n.put(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
2818
2818
  throw r(!1), o(!1), c(m), m;
2819
- })),
2819
+ })), []),
2820
2820
  result: e,
2821
2821
  loading: a,
2822
2822
  error: s,
@@ -2826,13 +2826,13 @@ const Ai = (t, n, e = !1, i = !1, a) => {
2826
2826
  }, Pi = (t) => {
2827
2827
  const {
2828
2828
  call: n
2829
- } = Z(ee), [e, i] = T(null), [a, r] = T(!1), [s, c] = T(null), [d, o] = T(!1), l = ie(() => {
2829
+ } = ee(te), [e, i] = T(null), [a, r] = T(!1), [s, c] = T(null), [d, o] = T(!1), l = P(() => {
2830
2830
  i(null), r(!1), c(null), o(!1);
2831
2831
  }, []);
2832
2832
  return {
2833
- call: async (v) => (l(), n.delete(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
2833
+ call: P(async (v) => (l(), n.delete(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
2834
2834
  throw r(!1), o(!1), c(m), m;
2835
- })),
2835
+ })), []),
2836
2836
  result: e,
2837
2837
  loading: a,
2838
2838
  error: s,
@@ -2842,9 +2842,9 @@ const Ai = (t, n, e = !1, i = !1, a) => {
2842
2842
  }, Ui = () => {
2843
2843
  const {
2844
2844
  file: t
2845
- } = Z(ee), [n, e] = T(0), [i, a] = T(!1), [r, s] = T(null), [c, d] = T(!1), o = async (f, v) => (l(), a(!0), t.uploadFile(f, v, (m, O) => e(Math.round(m / O * 100))).then((m) => (d(!0), e(100), a(!1), m.data.message)).catch((m) => {
2845
+ } = ee(te), [n, e] = T(0), [i, a] = T(!1), [r, s] = T(null), [c, d] = T(!1), o = P(async (f, v) => (l(), a(!0), t.uploadFile(f, v, (m, O) => e(Math.round(m / O * 100))).then((m) => (d(!0), e(100), a(!1), m.data.message)).catch((m) => {
2846
2846
  throw console.error(m), s(m), a(!1), m;
2847
- })), l = ie(() => {
2847
+ })), []), l = P(() => {
2848
2848
  e(0), a(!1), s(null), d(!1);
2849
2849
  }, []);
2850
2850
  return {
@@ -2875,7 +2875,7 @@ const Ai = (t, n, e = !1, i = !1, a) => {
2875
2875
  }, [t, n]), e;
2876
2876
  };
2877
2877
  export {
2878
- ee as FrappeContext,
2878
+ te as FrappeContext,
2879
2879
  Si as FrappeProvider,
2880
2880
  _i as getDocListQueryString,
2881
2881
  Ci as useFrappeAuth,