frappe-react-sdk 1.3.2 → 1.3.3

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.
@@ -18,7 +18,7 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
18
18
  });
19
19
  }
20
20
  return new (t || (t = Promise))(function(i, o) {
21
- function c(h) {
21
+ function u(h) {
22
22
  try {
23
23
  a(r.next(h));
24
24
  } catch (f) {
@@ -33,7 +33,7 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
33
33
  }
34
34
  }
35
35
  function a(h) {
36
- h.done ? i(h.value) : s(h.value).then(c, l);
36
+ h.done ? i(h.value) : s(h.value).then(u, l);
37
37
  }
38
38
  a((r = r.apply(n, e || [])).next());
39
39
  });
@@ -43,10 +43,10 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
43
43
  throw i[1];
44
44
  return i[1];
45
45
  }, trys: [], ops: [] }, r, s, i, o;
46
- return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
46
+ return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
47
47
  return this;
48
48
  }), o;
49
- function c(a) {
49
+ function u(a) {
50
50
  return function(h) {
51
51
  return l([a, h]);
52
52
  };
@@ -171,7 +171,7 @@ var ht = {}, z = B && B.__assign || function() {
171
171
  });
172
172
  }
173
173
  return new (t || (t = Promise))(function(i, o) {
174
- function c(h) {
174
+ function u(h) {
175
175
  try {
176
176
  a(r.next(h));
177
177
  } catch (f) {
@@ -186,7 +186,7 @@ var ht = {}, z = B && B.__assign || function() {
186
186
  }
187
187
  }
188
188
  function a(h) {
189
- h.done ? i(h.value) : s(h.value).then(c, l);
189
+ h.done ? i(h.value) : s(h.value).then(u, l);
190
190
  }
191
191
  a((r = r.apply(n, e || [])).next());
192
192
  });
@@ -196,10 +196,10 @@ var ht = {}, z = B && B.__assign || function() {
196
196
  throw i[1];
197
197
  return i[1];
198
198
  }, trys: [], ops: [] }, r, s, i, o;
199
- return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
199
+ return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
200
200
  return this;
201
201
  }), o;
202
- function c(a) {
202
+ function u(a) {
203
203
  return function(h) {
204
204
  return l([a, h]);
205
205
  };
@@ -275,12 +275,12 @@ var ri = function() {
275
275
  }, n.prototype.getDocList = function(e, t) {
276
276
  var r;
277
277
  return Ue(this, void 0, void 0, function() {
278
- var s, i, o, c, l, a, h, f, p, v, b;
278
+ var s, i, o, u, l, a, h, f, p, v, b;
279
279
  return qe(this, function(w) {
280
- return s = {}, t && (i = t.fields, o = t.filters, c = t.orFilters, l = t.orderBy, a = t.limit, h = t.limit_start, f = t.groupBy, p = t.asDict, v = p === void 0 ? !0 : p, b = l ? "".concat(String(l == null ? void 0 : l.field), " ").concat((r = l == null ? void 0 : l.order) !== null && r !== void 0 ? r : "asc") : "", s = {
280
+ return s = {}, t && (i = t.fields, o = t.filters, u = t.orFilters, l = t.orderBy, a = t.limit, h = t.limit_start, f = t.groupBy, p = t.asDict, v = p === void 0 ? !0 : p, b = l ? "".concat(String(l == null ? void 0 : l.field), " ").concat((r = l == null ? void 0 : l.order) !== null && r !== void 0 ? r : "asc") : "", s = {
281
281
  fields: i ? JSON.stringify(i) : void 0,
282
282
  filters: o ? JSON.stringify(o) : void 0,
283
- or_filters: c ? JSON.stringify(c) : void 0,
283
+ or_filters: u ? JSON.stringify(u) : void 0,
284
284
  order_by: b,
285
285
  group_by: f,
286
286
  limit: a,
@@ -300,8 +300,8 @@ var ri = function() {
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) {
303
- var i, o, c;
304
- throw z(z({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error while creating the document.", exception: (c = (o = s.response.data.exception) !== null && o !== void 0 ? o : s.response.data.exc_type) !== null && c !== void 0 ? c : "" });
303
+ var i, o, u;
304
+ throw z(z({}, s.response.data), { httpStatus: s.response.status, httpStatusText: s.response.statusText, message: (i = s.response.data.message) !== null && i !== void 0 ? i : "There was an error while creating the document.", exception: (u = (o = s.response.data.exception) !== null && o !== void 0 ? o : s.response.data.exc_type) !== null && u !== void 0 ? u : "" });
305
305
  })];
306
306
  });
307
307
  });
@@ -311,8 +311,8 @@ var ri = function() {
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) {
314
- var o, c, l;
315
- throw z(z({}, i.response.data), { httpStatus: i.response.status, httpStatusText: i.response.statusText, message: (o = i.response.data.message) !== null && o !== void 0 ? o : "There was an error while updating the document.", exception: (l = (c = i.response.data.exception) !== null && c !== void 0 ? c : i.response.data.exc_type) !== null && l !== void 0 ? l : "" });
314
+ var o, u, l;
315
+ throw z(z({}, i.response.data), { httpStatus: i.response.status, httpStatusText: i.response.statusText, message: (o = i.response.data.message) !== null && o !== void 0 ? o : "There was an error while updating the document.", exception: (l = (u = i.response.data.exception) !== null && u !== void 0 ? u : i.response.data.exc_type) !== null && l !== void 0 ? l : "" });
316
316
  })];
317
317
  });
318
318
  });
@@ -334,11 +334,11 @@ var ri = function() {
334
334
  return i = {
335
335
  doctype: e,
336
336
  filters: []
337
- }, r && (i.cache = r), s && (i.debug = s), t && (i.filters = t ? JSON.stringify(t) : void 0), [2, this.axios.get("/api/method/frappe.client.get_count", { params: i }).then(function(c) {
338
- return c.data.message;
339
- }).catch(function(c) {
337
+ }, r && (i.cache = r), s && (i.debug = s), t && (i.filters = t ? JSON.stringify(t) : void 0), [2, this.axios.get("/api/method/frappe.client.get_count", { params: i }).then(function(u) {
338
+ return u.data.message;
339
+ }).catch(function(u) {
340
340
  var l, a;
341
- throw z(z({}, c.response.data), { httpStatus: c.response.status, httpStatusText: c.response.statusText, message: "There was an error while getting the count.", exception: (a = (l = c.response.data.exception) !== null && l !== void 0 ? l : c.response.data.exc_type) !== null && a !== void 0 ? a : "" });
341
+ throw z(z({}, u.response.data), { httpStatus: u.response.status, httpStatusText: u.response.statusText, message: "There was an error while getting the count.", exception: (a = (l = u.response.data.exception) !== null && l !== void 0 ? l : u.response.data.exc_type) !== null && a !== void 0 ? a : "" });
342
342
  })];
343
343
  });
344
344
  });
@@ -378,7 +378,7 @@ var dt = {}, Ft = B && B.__assign || function() {
378
378
  });
379
379
  }
380
380
  return new (t || (t = Promise))(function(i, o) {
381
- function c(h) {
381
+ function u(h) {
382
382
  try {
383
383
  a(r.next(h));
384
384
  } catch (f) {
@@ -393,7 +393,7 @@ var dt = {}, Ft = B && B.__assign || function() {
393
393
  }
394
394
  }
395
395
  function a(h) {
396
- h.done ? i(h.value) : s(h.value).then(c, l);
396
+ h.done ? i(h.value) : s(h.value).then(u, l);
397
397
  }
398
398
  a((r = r.apply(n, e || [])).next());
399
399
  });
@@ -403,10 +403,10 @@ var dt = {}, Ft = B && B.__assign || function() {
403
403
  throw i[1];
404
404
  return i[1];
405
405
  }, trys: [], ops: [] }, r, s, i, o;
406
- return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
406
+ return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
407
407
  return this;
408
408
  }), o;
409
- function c(a) {
409
+ function u(a) {
410
410
  return function(h) {
411
411
  return l([a, h]);
412
412
  };
@@ -470,9 +470,9 @@ var oi = function() {
470
470
  }
471
471
  return n.prototype.uploadFile = function(e, t, r) {
472
472
  return si(this, void 0, void 0, function() {
473
- var s, i, o, c, l, a, h;
473
+ var s, i, o, u, l, a, h;
474
474
  return ii(this, function(f) {
475
- return s = new FormData(), e && s.append("file", e, e.name), i = t.isPrivate, o = t.folder, c = t.file_url, l = t.doctype, a = t.docname, h = t.fieldname, i && s.append("is_private", "1"), o && s.append("folder", o), c && s.append("file_url", c), l && a && (s.append("doctype", l), s.append("docname", a), h && s.append("fieldname", h)), [2, this.axios.post("/api/method/upload_file", s, {
475
+ return s = new FormData(), e && s.append("file", e, e.name), i = t.isPrivate, o = t.folder, u = t.file_url, l = t.doctype, a = t.docname, h = t.fieldname, i && s.append("is_private", "1"), o && s.append("folder", o), u && s.append("file_url", u), l && a && (s.append("doctype", l), s.append("docname", a), h && s.append("fieldname", h)), [2, this.axios.post("/api/method/upload_file", s, {
476
476
  onUploadProgress: function(p) {
477
477
  r && r(p.loaded, p.total);
478
478
  }
@@ -675,8 +675,8 @@ function ss() {
675
675
  ir = 1;
676
676
  var n = ns;
677
677
  return Kt = function(t, r, s, i, o) {
678
- var c = new Error(t);
679
- return n(c, r, s, i, o);
678
+ var u = new Error(t);
679
+ return n(u, r, s, i, o);
680
680
  }, Kt;
681
681
  }
682
682
  var Gt, or;
@@ -704,9 +704,9 @@ function xi() {
704
704
  var n = oe;
705
705
  return Xt = n.isStandardBrowserEnv() ? function() {
706
706
  return {
707
- write: function(r, s, i, o, c, l) {
707
+ write: function(r, s, i, o, u, l) {
708
708
  var a = [];
709
- a.push(r + "=" + encodeURIComponent(s)), n.isNumber(i) && a.push("expires=" + new Date(i).toGMTString()), n.isString(o) && a.push("path=" + o), n.isString(c) && a.push("domain=" + c), l === !0 && a.push("secure"), document.cookie = a.join("; ");
709
+ a.push(r + "=" + encodeURIComponent(s)), n.isNumber(i) && a.push("expires=" + new Date(i).toGMTString()), n.isString(o) && a.push("path=" + o), n.isString(u) && a.push("domain=" + u), l === !0 && a.push("secure"), document.cookie = a.join("; ");
710
710
  },
711
711
  read: function(r) {
712
712
  var s = document.cookie.match(new RegExp("(^|;\\s*)(" + r + ")=([^;]*)"));
@@ -775,10 +775,10 @@ function Di() {
775
775
  "user-agent"
776
776
  ];
777
777
  return tn = function(r) {
778
- var s = {}, i, o, c;
778
+ var s = {}, i, o, u;
779
779
  return r && n.forEach(r.split(`
780
780
  `), function(a) {
781
- if (c = a.indexOf(":"), i = n.trim(a.substr(0, c)).toLowerCase(), o = n.trim(a.substr(c + 1)), i) {
781
+ if (u = a.indexOf(":"), i = n.trim(a.substr(0, u)).toLowerCase(), o = n.trim(a.substr(u + 1)), i) {
782
782
  if (s[i] && e.indexOf(i) >= 0)
783
783
  return;
784
784
  i === "set-cookie" ? s[i] = (s[i] ? s[i] : []).concat([o]) : s[i] = s[i] ? s[i] + ", " + o : o;
@@ -795,8 +795,8 @@ function Li() {
795
795
  return nn = n.isStandardBrowserEnv() ? function() {
796
796
  var t = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a"), s;
797
797
  function i(o) {
798
- var c = o;
799
- return t && (r.setAttribute("href", c), c = r.href), r.setAttribute("href", c), {
798
+ var u = o;
799
+ return t && (r.setAttribute("href", u), u = r.href), r.setAttribute("href", u), {
800
800
  href: r.href,
801
801
  protocol: r.protocol ? r.protocol.replace(/:$/, "") : "",
802
802
  host: r.host,
@@ -807,8 +807,8 @@ function Li() {
807
807
  pathname: r.pathname.charAt(0) === "/" ? r.pathname : "/" + r.pathname
808
808
  };
809
809
  }
810
- return s = i(window.location.href), function(c) {
811
- var l = n.isString(c) ? i(c) : c;
810
+ return s = i(window.location.href), function(u) {
811
+ var l = n.isString(u) ? i(u) : u;
812
812
  return l.protocol === s.protocol && l.host === s.host;
813
813
  };
814
814
  }() : function() {
@@ -834,7 +834,7 @@ function vr() {
834
834
  if (pr)
835
835
  return sn;
836
836
  pr = 1;
837
- var n = oe, e = Oi(), t = xi(), r = ts, s = ki(), i = Di(), o = Li(), c = ss(), l = rs, a = qt();
837
+ var n = oe, e = Oi(), t = xi(), r = ts, s = ki(), i = Di(), o = Li(), u = ss(), l = rs, a = qt();
838
838
  return sn = function(f) {
839
839
  return new Promise(function(v, b) {
840
840
  var w = f.data, x = f.headers, g = f.responseType, S;
@@ -869,12 +869,12 @@ function vr() {
869
869
  if ("onloadend" in m ? m.onloadend = E : m.onreadystatechange = function() {
870
870
  !m || m.readyState !== 4 || m.status === 0 && !(m.responseURL && m.responseURL.indexOf("file:") === 0) || setTimeout(E);
871
871
  }, m.onabort = function() {
872
- !m || (b(c("Request aborted", f, "ECONNABORTED", m)), m = null);
872
+ !m || (b(u("Request aborted", f, "ECONNABORTED", m)), m = null);
873
873
  }, m.onerror = function() {
874
- b(c("Network Error", f, null, m)), m = null;
874
+ b(u("Network Error", f, null, m)), m = null;
875
875
  }, m.ontimeout = function() {
876
876
  var X = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded", ne = f.transitional || l;
877
- f.timeoutErrorMessage && (X = f.timeoutErrorMessage), b(c(
877
+ f.timeoutErrorMessage && (X = f.timeoutErrorMessage), b(u(
878
878
  X,
879
879
  f,
880
880
  ne.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
@@ -1014,7 +1014,7 @@ var Wi = function(e) {
1014
1014
  if (!ae.isUndefined(t[h]))
1015
1015
  return s(void 0, t[h]);
1016
1016
  }
1017
- function c(h) {
1017
+ function u(h) {
1018
1018
  if (ae.isUndefined(t[h])) {
1019
1019
  if (!ae.isUndefined(e[h]))
1020
1020
  return s(void 0, e[h]);
@@ -1031,28 +1031,28 @@ var Wi = function(e) {
1031
1031
  url: o,
1032
1032
  method: o,
1033
1033
  data: o,
1034
- baseURL: c,
1035
- transformRequest: c,
1036
- transformResponse: c,
1037
- paramsSerializer: c,
1038
- timeout: c,
1039
- timeoutMessage: c,
1040
- withCredentials: c,
1041
- adapter: c,
1042
- responseType: c,
1043
- xsrfCookieName: c,
1044
- xsrfHeaderName: c,
1045
- onUploadProgress: c,
1046
- onDownloadProgress: c,
1047
- decompress: c,
1048
- maxContentLength: c,
1049
- maxBodyLength: c,
1050
- transport: c,
1051
- httpAgent: c,
1052
- httpsAgent: c,
1053
- cancelToken: c,
1054
- socketPath: c,
1055
- responseEncoding: c,
1034
+ baseURL: u,
1035
+ transformRequest: u,
1036
+ transformResponse: u,
1037
+ paramsSerializer: u,
1038
+ timeout: u,
1039
+ timeoutMessage: u,
1040
+ withCredentials: u,
1041
+ adapter: u,
1042
+ responseType: u,
1043
+ xsrfCookieName: u,
1044
+ xsrfHeaderName: u,
1045
+ onUploadProgress: u,
1046
+ onDownloadProgress: u,
1047
+ decompress: u,
1048
+ maxContentLength: u,
1049
+ maxBodyLength: u,
1050
+ transport: u,
1051
+ httpAgent: u,
1052
+ httpsAgent: u,
1053
+ cancelToken: u,
1054
+ socketPath: u,
1055
+ responseEncoding: u,
1056
1056
  validateStatus: l
1057
1057
  };
1058
1058
  return ae.forEach(Object.keys(e).concat(Object.keys(t)), function(f) {
@@ -1076,7 +1076,7 @@ Vn.transitional = function(e, t, r) {
1076
1076
  function s(i, o) {
1077
1077
  return "[Axios v" + Hi + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
1078
1078
  }
1079
- return function(i, o, c) {
1079
+ return function(i, o, u) {
1080
1080
  if (e === !1)
1081
1081
  throw new Error(s(o, " has been removed" + (t ? " in " + t : "")));
1082
1082
  return t && !wr[o] && (wr[o] = !0, console.warn(
@@ -1084,7 +1084,7 @@ Vn.transitional = function(e, t, r) {
1084
1084
  o,
1085
1085
  " has been deprecated since v" + t + " and will be removed in the near future"
1086
1086
  )
1087
- )), e ? e(i, o, c) : !0;
1087
+ )), e ? e(i, o, u) : !0;
1088
1088
  };
1089
1089
  };
1090
1090
  function Ji(n, e, t) {
@@ -1093,7 +1093,7 @@ function Ji(n, e, t) {
1093
1093
  for (var r = Object.keys(n), s = r.length; s-- > 0; ) {
1094
1094
  var i = r[s], o = e[i];
1095
1095
  if (o) {
1096
- var c = n[i], l = c === void 0 || o(c, i, n);
1096
+ var u = n[i], l = u === void 0 || o(u, i, n);
1097
1097
  if (l !== !0)
1098
1098
  throw new TypeError("option " + i + " must be " + l);
1099
1099
  continue;
@@ -1128,12 +1128,12 @@ pt.prototype.request = function(e, t) {
1128
1128
  this.interceptors.response.forEach(function(v) {
1129
1129
  o.push(v.fulfilled, v.rejected);
1130
1130
  });
1131
- var c;
1131
+ var u;
1132
1132
  if (!i) {
1133
1133
  var l = [Rr, void 0];
1134
- for (Array.prototype.unshift.apply(l, s), l = l.concat(o), c = Promise.resolve(t); l.length; )
1135
- c = c.then(l.shift(), l.shift());
1136
- return c;
1134
+ for (Array.prototype.unshift.apply(l, s), l = l.concat(o), u = Promise.resolve(t); l.length; )
1135
+ u = u.then(l.shift(), l.shift());
1136
+ return u;
1137
1137
  }
1138
1138
  for (var a = t; s.length; ) {
1139
1139
  var h = s.shift(), f = s.shift();
@@ -1145,13 +1145,13 @@ pt.prototype.request = function(e, t) {
1145
1145
  }
1146
1146
  }
1147
1147
  try {
1148
- c = Rr(a);
1148
+ u = Rr(a);
1149
1149
  } catch (p) {
1150
1150
  return Promise.reject(p);
1151
1151
  }
1152
1152
  for (; o.length; )
1153
- c = c.then(o.shift(), o.shift());
1154
- return c;
1153
+ u = u.then(o.shift(), o.shift());
1154
+ return u;
1155
1155
  };
1156
1156
  pt.prototype.getUri = function(e) {
1157
1157
  return e = Vt(this.defaults, e), zi(e.url, e.params, e.paramsSerializer).replace(/^\?/, "");
@@ -1190,18 +1190,18 @@ function Gi() {
1190
1190
  var s = this;
1191
1191
  this.promise.then(function(i) {
1192
1192
  if (!!s._listeners) {
1193
- var o, c = s._listeners.length;
1194
- for (o = 0; o < c; o++)
1193
+ var o, u = s._listeners.length;
1194
+ for (o = 0; o < u; o++)
1195
1195
  s._listeners[o](i);
1196
1196
  s._listeners = null;
1197
1197
  }
1198
1198
  }), this.promise.then = function(i) {
1199
- var o, c = new Promise(function(l) {
1199
+ var o, u = new Promise(function(l) {
1200
1200
  s.subscribe(l), o = l;
1201
1201
  }).then(i);
1202
- return c.cancel = function() {
1202
+ return u.cancel = function() {
1203
1203
  s.unsubscribe(o);
1204
- }, c;
1204
+ }, u;
1205
1205
  }, t(function(o) {
1206
1206
  s.reason || (s.reason = new n(o), r(s.reason));
1207
1207
  });
@@ -1297,9 +1297,9 @@ function so() {
1297
1297
  return rt;
1298
1298
  Cr = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.FrappeApp = void 0;
1299
1299
  var n = hs(), e = ft, t = ht, r = dt, s = Ge, i = function() {
1300
- function o(c, l, a) {
1300
+ function o(u, l, a) {
1301
1301
  var h, f;
1302
- this.url = c, this.name = a != null ? a : "FrappeApp", this.useToken = (h = l == null ? void 0 : l.useToken) !== null && h !== void 0 ? h : !1, this.token = l == null ? void 0 : l.token, this.tokenType = (f = l == null ? void 0 : l.type) !== null && f !== void 0 ? f : "Bearer", this.axios = (0, s.getAxiosClient)(this.url, this.useToken, this.token, this.tokenType);
1302
+ this.url = u, this.name = a != null ? a : "FrappeApp", this.useToken = (h = l == null ? void 0 : l.useToken) !== null && h !== void 0 ? h : !1, this.token = l == null ? void 0 : l.token, this.tokenType = (f = l == null ? void 0 : l.type) !== null && f !== void 0 ? f : "Bearer", this.axios = (0, s.getAxiosClient)(this.url, this.useToken, this.token, this.tokenType);
1303
1303
  }
1304
1304
  return o.prototype.auth = function() {
1305
1305
  return new n.FrappeAuth(this.url, this.axios, this.useToken, this.token, this.tokenType);
@@ -1329,7 +1329,7 @@ var jt = {}, ye = B && B.__assign || function() {
1329
1329
  });
1330
1330
  }
1331
1331
  return new (t || (t = Promise))(function(i, o) {
1332
- function c(h) {
1332
+ function u(h) {
1333
1333
  try {
1334
1334
  a(r.next(h));
1335
1335
  } catch (f) {
@@ -1344,7 +1344,7 @@ var jt = {}, ye = B && B.__assign || function() {
1344
1344
  }
1345
1345
  }
1346
1346
  function a(h) {
1347
- h.done ? i(h.value) : s(h.value).then(c, l);
1347
+ h.done ? i(h.value) : s(h.value).then(u, l);
1348
1348
  }
1349
1349
  a((r = r.apply(n, e || [])).next());
1350
1350
  });
@@ -1354,10 +1354,10 @@ var jt = {}, ye = B && B.__assign || function() {
1354
1354
  throw i[1];
1355
1355
  return i[1];
1356
1356
  }, trys: [], ops: [] }, r, s, i, o;
1357
- return o = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
1357
+ return o = { next: u(0), throw: u(1), return: u(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
1358
1358
  return this;
1359
1359
  }), o;
1360
- function c(a) {
1360
+ function u(a) {
1361
1361
  return function(h) {
1362
1362
  return l([a, h]);
1363
1363
  };
@@ -1430,8 +1430,8 @@ var io = function() {
1430
1430
  }).then(function(o) {
1431
1431
  return o.data;
1432
1432
  }).catch(function(o) {
1433
- var c, l;
1434
- throw ye(ye({}, 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: (l = o.response.data.exception) !== null && l !== void 0 ? l : "" });
1433
+ var u, l;
1434
+ throw ye(ye({}, o.response.data), { httpStatus: o.response.status, httpStatusText: o.response.statusText, message: (u = o.response.data.message) !== null && u !== void 0 ? u : "There was an error while logging in", exception: (l = o.response.data.exception) !== null && l !== void 0 ? l : "" });
1435
1435
  })];
1436
1436
  });
1437
1437
  });
@@ -1477,10 +1477,10 @@ function hs() {
1477
1477
  return Ar || (Ar = 1, function(n) {
1478
1478
  var e = B && B.__createBinding || (Object.create ? function(r, s, i, o) {
1479
1479
  o === void 0 && (o = i);
1480
- var c = Object.getOwnPropertyDescriptor(s, i);
1481
- (!c || ("get" in c ? !s.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() {
1480
+ var u = Object.getOwnPropertyDescriptor(s, i);
1481
+ (!u || ("get" in u ? !s.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
1482
1482
  return s[i];
1483
- } }), Object.defineProperty(r, o, c);
1483
+ } }), Object.defineProperty(r, o, u);
1484
1484
  } : function(r, s, i, o) {
1485
1485
  o === void 0 && (o = i), r[o] = s[i];
1486
1486
  }), t = B && B.__exportStar || function(r, s) {
@@ -1510,7 +1510,7 @@ function ao() {
1510
1510
  return f === p && (f !== 0 || 1 / f === 1 / p) || f !== f && p !== p;
1511
1511
  }
1512
1512
  var t = typeof Object.is == "function" ? Object.is : e, r = n.useState, s = n.useEffect, i = n.useLayoutEffect, o = n.useDebugValue;
1513
- function c(f, p) {
1513
+ function u(f, p) {
1514
1514
  var v = p(), b = r({ inst: { value: v, getSnapshot: p } }), w = b[0].inst, x = b[1];
1515
1515
  return i(function() {
1516
1516
  w.value = v, w.getSnapshot = p, l(w) && x({ inst: w });
@@ -1533,7 +1533,7 @@ function ao() {
1533
1533
  function a(f, p) {
1534
1534
  return p();
1535
1535
  }
1536
- var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : c;
1536
+ var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : u;
1537
1537
  return dn.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : h, dn;
1538
1538
  }
1539
1539
  var pn = {};
@@ -1571,7 +1571,7 @@ function uo() {
1571
1571
  function s(D, m) {
1572
1572
  return D === m && (D !== 0 || 1 / D === 1 / m) || D !== D && m !== m;
1573
1573
  }
1574
- var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, c = n.useEffect, l = n.useLayoutEffect, a = n.useDebugValue, h = !1, f = !1;
1574
+ var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, u = n.useEffect, l = n.useLayoutEffect, a = n.useDebugValue, h = !1, f = !1;
1575
1575
  function p(D, m, V) {
1576
1576
  h || n.startTransition !== void 0 && (h = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
1577
1577
  var q = m();
@@ -1589,7 +1589,7 @@ function uo() {
1589
1589
  j.value = q, j.getSnapshot = m, v(j) && L({
1590
1590
  inst: j
1591
1591
  });
1592
- }, [D, q, m]), c(function() {
1592
+ }, [D, q, m]), u(function() {
1593
1593
  v(j) && L({
1594
1594
  inst: j
1595
1595
  });
@@ -1721,9 +1721,9 @@ async function gs(...n) {
1721
1721
  revalidate: s
1722
1722
  } : s || {});
1723
1723
  let o = i.populateCache;
1724
- const c = i.rollbackOnError;
1724
+ const u = i.rollbackOnError;
1725
1725
  let l = i.optimisticData;
1726
- const a = i.revalidate !== !1, h = (v) => typeof c == "function" ? c(v) : c !== !1, f = i.throwOnError;
1726
+ const a = i.revalidate !== !1, h = (v) => typeof u == "function" ? u(v) : u !== !1, f = i.throwOnError;
1727
1727
  if (Ce(t)) {
1728
1728
  const v = t, b = [], w = e.keys();
1729
1729
  for (const x of w)
@@ -1789,7 +1789,7 @@ const Pr = (n, e) => {
1789
1789
  if (!xe.has(n)) {
1790
1790
  const t = Le(go, e), r = {}, s = gs.bind(he, n);
1791
1791
  let i = De;
1792
- const o = {}, c = (h, f) => {
1792
+ const o = {}, u = (h, f) => {
1793
1793
  const p = o[h] || [];
1794
1794
  return o[h] = p, p.push(f), () => p.splice(p.indexOf(f), 1);
1795
1795
  }, l = (h, f, p) => {
@@ -1806,7 +1806,7 @@ const Pr = (n, e) => {
1806
1806
  {},
1807
1807
  s,
1808
1808
  l,
1809
- c
1809
+ u
1810
1810
  ]), !lt)) {
1811
1811
  const h = t.initFocus(setTimeout.bind(he, Pr.bind(he, r, vs))), f = t.initReconnect(setTimeout.bind(he, Pr.bind(he, r, ys)));
1812
1812
  i = () => {
@@ -1826,8 +1826,8 @@ const Pr = (n, e) => {
1826
1826
  xe.get(n)[4]
1827
1827
  ];
1828
1828
  }, Ro = (n, e, t, r, s) => {
1829
- const i = t.errorRetryCount, o = s.retryCount, c = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * t.errorRetryInterval;
1830
- !C(i) && o > i || setTimeout(r, c, s);
1829
+ const i = t.errorRetryCount, o = s.retryCount, u = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * t.errorRetryInterval;
1830
+ !C(i) && o > i || setTimeout(r, u, s);
1831
1831
  }, So = (n, e) => ct(n) == ct(e), [_s, To] = Eo(/* @__PURE__ */ new Map()), Oo = Le(
1832
1832
  {
1833
1833
  onLoadingSlow: De,
@@ -1868,15 +1868,15 @@ const Pr = (n, e) => {
1868
1868
  null,
1869
1869
  (n[1] === null ? n[2] : n[1]) || {}
1870
1870
  ], Lo = () => Le(Oo, ee(Co)), No = (n) => (e, t, r) => n(e, t && ((...i) => {
1871
- const [o] = $n(e), [, , , c] = xe.get(_s), l = c[o];
1872
- return C(l) ? t(...i) : (delete c[o], l);
1871
+ const [o] = $n(e), [, , , u] = xe.get(_s), l = u[o];
1872
+ return C(l) ? t(...i) : (delete u[o], l);
1873
1873
  }), r), Po = Ao.concat(No), Bo = (n) => function(...t) {
1874
- const r = Lo(), [s, i, o] = Do(t), c = xo(r, o);
1874
+ const r = Lo(), [s, i, o] = Do(t), u = xo(r, o);
1875
1875
  let l = n;
1876
- const { use: a } = c, h = (a || []).concat(Po);
1876
+ const { use: a } = u, h = (a || []).concat(Po);
1877
1877
  for (let f = h.length; f--; )
1878
1878
  l = h[f](l);
1879
- return l(s, i || c.fetcher || null, c);
1879
+ return l(s, i || u.fetcher || null, u);
1880
1880
  }, Fo = (n, e, t) => {
1881
1881
  const r = e[n] || (e[n] = []);
1882
1882
  return r.push(t), () => {
@@ -1898,7 +1898,7 @@ const Br = Ie.use || ((n) => {
1898
1898
  }), _n = {
1899
1899
  dedupe: !0
1900
1900
  }, Uo = (n, e, t) => {
1901
- const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: p } = t, [v, b, w, x] = xe.get(r), [g, S] = $n(n), D = Fe(!1), m = Fe(!1), V = Fe(g), q = Fe(e), k = Fe(t), E = () => k.current, j = () => E().isVisible() && E().isOnline(), [L, X, ne, Z] = ps(r, g), $ = Fe({}).current, be = C(o) ? t.fallback[g] : o, we = (N, F) => {
1901
+ const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: u, revalidateIfStale: l, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: f, keepPreviousData: p } = t, [v, b, w, x] = xe.get(r), [g, S] = $n(n), D = Fe(!1), m = Fe(!1), V = Fe(g), q = Fe(e), k = Fe(t), E = () => k.current, j = () => E().isVisible() && E().isOnline(), [L, X, ne, Z] = ps(r, g), $ = Fe({}).current, be = C(o) ? t.fallback[g] : o, we = (N, F) => {
1902
1902
  for (const G in $) {
1903
1903
  const I = G;
1904
1904
  if (I === "data") {
@@ -1909,7 +1909,7 @@ const Br = Ie.use || ((n) => {
1909
1909
  }
1910
1910
  return !0;
1911
1911
  }, Ze = Kr(() => {
1912
- const N = (() => !g || !e ? !1 : C(c) ? E().isPaused() || i ? !1 : C(l) ? !0 : l : c)(), F = (J) => {
1912
+ const N = (() => !g || !e ? !1 : C(u) ? E().isPaused() || i ? !1 : C(l) ? !0 : l : u)(), F = (J) => {
1913
1913
  const de = Le(J);
1914
1914
  return delete de._k, N ? {
1915
1915
  isValidating: !0,
@@ -1936,7 +1936,7 @@ const Br = Ie.use || ((n) => {
1936
1936
  r,
1937
1937
  g
1938
1938
  ]
1939
- ), Ze[0], Ze[1]), et = !D.current, yt = v[g] && v[g].length > 0, Re = Ee.data, Se = C(Re) ? be : Re, Pe = Ee.error, mt = Fe(Se), Ve = p ? C(Re) ? mt.current : Re : Se, je = (() => yt && !C(Pe) ? !1 : et && !C(c) ? c : E().isPaused() ? !1 : i ? C(Se) ? !1 : l : C(Se) || l)(), $e = !!(g && e && et && je), Me = C(Ee.isValidating) ? $e : Ee.isValidating, tt = C(Ee.isLoading) ? $e : Ee.isLoading, ve = M(
1939
+ ), Ze[0], Ze[1]), et = !D.current, yt = v[g] && v[g].length > 0, Re = Ee.data, Se = C(Re) ? be : Re, Pe = Ee.error, mt = Fe(Se), Ve = p ? C(Re) ? mt.current : Re : Se, je = (() => yt && !C(Pe) ? !1 : et && !C(u) ? u : E().isPaused() ? !1 : i ? C(Se) ? !1 : l : C(Se) || l)(), $e = !!(g && e && et && je), Me = C(Ee.isValidating) ? $e : Ee.isValidating, tt = C(Ee.isLoading) ? $e : Ee.isLoading, ve = M(
1940
1940
  async (N) => {
1941
1941
  const F = q.current;
1942
1942
  if (!g || !F || m.current || E().isPaused())
@@ -2099,11 +2099,11 @@ const qr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u
2099
2099
  for (let n = 0; n < qr.length; n++)
2100
2100
  ut[qr.charCodeAt(n)] = n;
2101
2101
  const Io = (n) => {
2102
- let e = n.length * 0.75, t = n.length, r, s = 0, i, o, c, l;
2102
+ let e = n.length * 0.75, t = n.length, r, s = 0, i, o, u, l;
2103
2103
  n[n.length - 1] === "=" && (e--, n[n.length - 2] === "=" && e--);
2104
2104
  const a = new ArrayBuffer(e), h = new Uint8Array(a);
2105
2105
  for (r = 0; r < t; r += 4)
2106
- i = ut[n.charCodeAt(r)], o = ut[n.charCodeAt(r + 1)], c = ut[n.charCodeAt(r + 2)], l = ut[n.charCodeAt(r + 3)], h[s++] = i << 2 | o >> 4, h[s++] = (o & 15) << 4 | c >> 2, h[s++] = (c & 3) << 6 | l & 63;
2106
+ i = ut[n.charCodeAt(r)], o = ut[n.charCodeAt(r + 1)], u = ut[n.charCodeAt(r + 2)], l = ut[n.charCodeAt(r + 3)], h[s++] = i << 2 | o >> 4, h[s++] = (o & 15) << 4 | u >> 2, h[s++] = (u & 3) << 6 | l & 63;
2107
2107
  return a;
2108
2108
  }, Vo = typeof ArrayBuffer == "function", Wn = (n, e) => {
2109
2109
  if (typeof n != "string")
@@ -2139,8 +2139,8 @@ const Io = (n) => {
2139
2139
  const t = n.length, r = new Array(t);
2140
2140
  let s = 0;
2141
2141
  n.forEach((i, o) => {
2142
- Mn(i, !1, (c) => {
2143
- r[o] = c, ++s === t && e(r.join(Ts));
2142
+ Mn(i, !1, (u) => {
2143
+ r[o] = u, ++s === t && e(r.join(Ts));
2144
2144
  });
2145
2145
  });
2146
2146
  }, Mo = (n, e) => {
@@ -2192,7 +2192,7 @@ function Ho(n, e) {
2192
2192
  const t = [];
2193
2193
  let r = 0, s = -1, i = !1;
2194
2194
  return new TransformStream({
2195
- transform(o, c) {
2195
+ transform(o, u) {
2196
2196
  for (t.push(o); ; ) {
2197
2197
  if (r === 0) {
2198
2198
  if (xt(t) < 1)
@@ -2209,7 +2209,7 @@ function Ho(n, e) {
2209
2209
  break;
2210
2210
  const l = Ct(t, 8), a = new DataView(l.buffer, l.byteOffset, l.length), h = a.getUint32(0);
2211
2211
  if (h > Math.pow(2, 53 - 32) - 1) {
2212
- c.enqueue(An);
2212
+ u.enqueue(An);
2213
2213
  break;
2214
2214
  }
2215
2215
  s = h * Math.pow(2, 32) + a.getUint32(4), r = 3;
@@ -2217,10 +2217,10 @@ function Ho(n, e) {
2217
2217
  if (xt(t) < s)
2218
2218
  break;
2219
2219
  const l = Ct(t, s);
2220
- c.enqueue(Wn(i ? l : wn.decode(l), e)), r = 0;
2220
+ u.enqueue(Wn(i ? l : wn.decode(l), e)), r = 0;
2221
2221
  }
2222
2222
  if (s === 0 || s > n) {
2223
- c.enqueue(An);
2223
+ u.enqueue(An);
2224
2224
  break;
2225
2225
  }
2226
2226
  }
@@ -2627,9 +2627,9 @@ class ua extends Hn {
2627
2627
  const t = Ho(Number.MAX_SAFE_INTEGER, this.socket.binaryType), r = e.readable.pipeThrough(t).getReader(), s = Wo();
2628
2628
  s.readable.pipeTo(e.writable), this.writer = s.writable.getWriter();
2629
2629
  const i = () => {
2630
- r.read().then(({ done: c, value: l }) => {
2631
- c || (this.onPacket(l), i());
2632
- }).catch((c) => {
2630
+ r.read().then(({ done: u, value: l }) => {
2631
+ u || (this.onPacket(l), i());
2632
+ }).catch((u) => {
2633
2633
  });
2634
2634
  };
2635
2635
  i();
@@ -2780,7 +2780,7 @@ class ke extends K {
2780
2780
  const p = new Error("probe error: " + f);
2781
2781
  p.transport = t.name, i(), this.emitReserved("upgradeError", p);
2782
2782
  };
2783
- function c() {
2783
+ function u() {
2784
2784
  o("transport closed");
2785
2785
  }
2786
2786
  function l() {
@@ -2790,9 +2790,9 @@ class ke extends K {
2790
2790
  t && f.name !== t.name && i();
2791
2791
  }
2792
2792
  const h = () => {
2793
- t.removeListener("open", s), t.removeListener("error", o), t.removeListener("close", c), this.off("close", l), this.off("upgrading", a);
2793
+ t.removeListener("open", s), t.removeListener("error", o), t.removeListener("close", u), this.off("close", l), this.off("upgrading", a);
2794
2794
  };
2795
- t.once("open", s), t.once("error", o), t.once("close", c), this.once("close", l), this.once("upgrading", a), this.upgrades.indexOf("webtransport") !== -1 && e !== "webtransport" ? this.setTimeoutFn(() => {
2795
+ t.once("open", s), t.once("error", o), t.once("close", u), this.once("close", l), this.once("upgrading", a), this.upgrades.indexOf("webtransport") !== -1 && e !== "webtransport" ? this.setTimeoutFn(() => {
2796
2796
  r || t.open();
2797
2797
  }, 200) : t.open();
2798
2798
  }
@@ -3171,8 +3171,8 @@ class Ns extends K {
3171
3171
  data: t
3172
3172
  };
3173
3173
  if (r.options = {}, r.options.compress = this.flags.compress !== !1, typeof t[t.length - 1] == "function") {
3174
- const o = this.ids++, c = t.pop();
3175
- this._registerAckCallback(o, c), r.id = o;
3174
+ const o = this.ids++, u = t.pop();
3175
+ this._registerAckCallback(o, u), r.id = o;
3176
3176
  }
3177
3177
  const s = this.io.engine && this.io.engine.transport && this.io.engine.transport.writable;
3178
3178
  return this.flags.volatile && (!s || !this.connected) || (this.connected ? (this.notifyOutgoingListeners(r), this.packet(r)) : this.sendBuffer.push(r)), this.flags = {}, this;
@@ -3197,7 +3197,7 @@ class Ns extends K {
3197
3197
  emitWithAck(e, ...t) {
3198
3198
  const r = this.flags.timeout !== void 0 || this._opts.ackTimeout !== void 0;
3199
3199
  return new Promise((s, i) => {
3200
- t.push((o, c) => r ? o ? i(o) : s(c) : s(o)), this.emit(e, ...t);
3200
+ t.push((o, u) => r ? o ? i(o) : s(u) : s(o)), this.emit(e, ...t);
3201
3201
  });
3202
3202
  }
3203
3203
  _addToQueue(e) {
@@ -3434,13 +3434,13 @@ class Pn extends K {
3434
3434
  this._readyState = "opening", this.skipReconnect = !1;
3435
3435
  const s = pe(t, "open", function() {
3436
3436
  r.onopen(), e && e();
3437
- }), i = (c) => {
3438
- this.cleanup(), this._readyState = "closed", this.emitReserved("error", c), e ? e(c) : this.maybeReconnectOnOpen();
3437
+ }), i = (u) => {
3438
+ this.cleanup(), this._readyState = "closed", this.emitReserved("error", u), e ? e(u) : this.maybeReconnectOnOpen();
3439
3439
  }, o = pe(t, "error", i);
3440
3440
  if (this._timeout !== !1) {
3441
- const c = this._timeout, l = this.setTimeoutFn(() => {
3441
+ const u = this._timeout, l = this.setTimeoutFn(() => {
3442
3442
  s(), i(new Error("timeout")), t.close();
3443
- }, c);
3443
+ }, u);
3444
3444
  this.opts.autoUnref && l.unref(), this.subs.push(() => {
3445
3445
  this.clearTimeoutFn(l);
3446
3446
  });
@@ -3528,9 +3528,9 @@ class Pn extends K {
3528
3528
  const it = {};
3529
3529
  function Bt(n, e) {
3530
3530
  typeof n == "object" && (e = n, n = void 0), e = e || {};
3531
- const t = pa(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;
3531
+ const t = pa(n, e.path || "/socket.io"), r = t.source, s = t.id, i = t.path, o = it[s] && i in it[s].nsps, u = e.forceNew || e["force new connection"] || e.multiplex === !1 || o;
3532
3532
  let l;
3533
- return c ? l = new Pn(r, e) : (it[s] || (it[s] = new Pn(r, e)), l = it[s]), t.query && !e.query && (e.query = t.queryKey), l.socket(t.path, e);
3533
+ return u ? l = new Pn(r, e) : (it[s] || (it[s] = new Pn(r, e)), l = it[s]), t.query && !e.query && (e.query = t.queryKey), l.socket(t.path, e);
3534
3534
  }
3535
3535
  Object.assign(Bt, {
3536
3536
  Manager: Pn,
@@ -3547,8 +3547,8 @@ class xa {
3547
3547
  Ae(this, "url");
3548
3548
  Ae(this, "site_name");
3549
3549
  Ae(this, "socket");
3550
- var i, o;
3551
- this.socket_port = r != null ? r : "9000", this.host = (i = window.location) == null ? void 0 : i.hostname, this.port = (o = window.location) != null && o.port ? `:${this.socket_port}` : "", this.protocol = this.port ? "http" : "https", this.url = e || `${this.protocol}://${this.host}${this.port}`, this.site_name = t != null ? t : frappe == null ? void 0 : frappe.boot.sitename, this.socket = Bt(`${this.url}/${this.site_name}`, {
3550
+ var i, o, u, l;
3551
+ this.socket_port = r != null ? r : "9000", this.host = (i = window.location) == null ? void 0 : i.hostname, this.port = (o = window.location) != null && o.port ? `:${this.socket_port}` : "", this.protocol = this.port ? "http" : "https", this.url = e || `${this.protocol}://${this.host}${this.port}`, !t && ((u = frappe == null ? void 0 : frappe.boot) == null ? void 0 : u.sitename) && (t = (l = frappe == null ? void 0 : frappe.boot) == null ? void 0 : l.sitename), this.site_name = t, this.socket = Bt(`${this.url}/${this.site_name}`, {
3552
3552
  withCredentials: !0,
3553
3553
  secure: this.protocol === "https",
3554
3554
  extraHeaders: s && s.useToken === !0 ? {
@@ -3573,15 +3573,15 @@ function Ca() {
3573
3573
  return ot;
3574
3574
  Jr = 1;
3575
3575
  var n = Ie, 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 };
3576
- function o(c, l, a) {
3576
+ function o(u, l, a) {
3577
3577
  var h, f = {}, p = null, v = null;
3578
3578
  a !== void 0 && (p = "" + a), l.key !== void 0 && (p = "" + l.key), l.ref !== void 0 && (v = l.ref);
3579
3579
  for (h in l)
3580
3580
  r.call(l, h) && !i.hasOwnProperty(h) && (f[h] = l[h]);
3581
- if (c && c.defaultProps)
3582
- for (h in l = c.defaultProps, l)
3581
+ if (u && u.defaultProps)
3582
+ for (h in l = u.defaultProps, l)
3583
3583
  f[h] === void 0 && (f[h] = l[h]);
3584
- return { $$typeof: e, type: c, key: p, ref: v, props: f, _owner: s.current };
3584
+ return { $$typeof: e, type: u, key: p, ref: v, props: f, _owner: s.current };
3585
3585
  }
3586
3586
  return ot.Fragment = t, ot.jsx = o, ot.jsxs = o, ot;
3587
3587
  }
@@ -3598,54 +3598,54 @@ var at = {};
3598
3598
  var Yr;
3599
3599
  function Aa() {
3600
3600
  return Yr || (Yr = 1, process.env.NODE_ENV !== "production" && function() {
3601
- var n = Ie, 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"), l = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, w = "@@iterator";
3602
- function x(u) {
3603
- if (u === null || typeof u != "object")
3601
+ var n = Ie, 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"), u = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), a = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, w = "@@iterator";
3602
+ function x(c) {
3603
+ if (c === null || typeof c != "object")
3604
3604
  return null;
3605
- var d = b && u[b] || u[w];
3605
+ var d = b && c[b] || c[w];
3606
3606
  return typeof d == "function" ? d : null;
3607
3607
  }
3608
3608
  var g = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3609
- function S(u) {
3609
+ function S(c) {
3610
3610
  {
3611
3611
  for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), _ = 1; _ < d; _++)
3612
3612
  y[_ - 1] = arguments[_];
3613
- D("error", u, y);
3613
+ D("error", c, y);
3614
3614
  }
3615
3615
  }
3616
- function D(u, d, y) {
3616
+ function D(c, d, y) {
3617
3617
  {
3618
3618
  var _ = g.ReactDebugCurrentFrame, A = _.getStackAddendum();
3619
3619
  A !== "" && (d += "%s", y = y.concat([A]));
3620
3620
  var U = y.map(function(O) {
3621
3621
  return String(O);
3622
3622
  });
3623
- U.unshift("Warning: " + d), Function.prototype.apply.call(console[u], console, U);
3623
+ U.unshift("Warning: " + d), Function.prototype.apply.call(console[c], console, U);
3624
3624
  }
3625
3625
  }
3626
3626
  var m = !1, V = !1, q = !1, k = !1, E = !1, j;
3627
3627
  j = Symbol.for("react.module.reference");
3628
- function L(u) {
3629
- return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || E || u === s || u === a || u === h || k || u === v || m || V || q || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === f || u.$$typeof === o || u.$$typeof === c || u.$$typeof === l || u.$$typeof === j || u.getModuleId !== void 0));
3628
+ function L(c) {
3629
+ return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || E || c === s || c === a || c === h || k || c === v || m || V || q || typeof c == "object" && c !== null && (c.$$typeof === p || c.$$typeof === f || c.$$typeof === o || c.$$typeof === u || c.$$typeof === l || c.$$typeof === j || c.getModuleId !== void 0));
3630
3630
  }
3631
- function X(u, d, y) {
3632
- var _ = u.displayName;
3631
+ function X(c, d, y) {
3632
+ var _ = c.displayName;
3633
3633
  if (_)
3634
3634
  return _;
3635
3635
  var A = d.displayName || d.name || "";
3636
3636
  return A !== "" ? y + "(" + A + ")" : y;
3637
3637
  }
3638
- function ne(u) {
3639
- return u.displayName || "Context";
3638
+ function ne(c) {
3639
+ return c.displayName || "Context";
3640
3640
  }
3641
- function Z(u) {
3642
- if (u == null)
3641
+ function Z(c) {
3642
+ if (c == null)
3643
3643
  return null;
3644
- if (typeof u.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
3645
- return u.displayName || u.name || null;
3646
- if (typeof u == "string")
3647
- return u;
3648
- switch (u) {
3644
+ if (typeof c.tag == "number" && S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
3645
+ return c.displayName || c.name || null;
3646
+ if (typeof c == "string")
3647
+ return c;
3648
+ switch (c) {
3649
3649
  case r:
3650
3650
  return "Fragment";
3651
3651
  case t:
@@ -3659,21 +3659,21 @@ function Aa() {
3659
3659
  case h:
3660
3660
  return "SuspenseList";
3661
3661
  }
3662
- if (typeof u == "object")
3663
- switch (u.$$typeof) {
3664
- case c:
3665
- var d = u;
3662
+ if (typeof c == "object")
3663
+ switch (c.$$typeof) {
3664
+ case u:
3665
+ var d = c;
3666
3666
  return ne(d) + ".Consumer";
3667
3667
  case o:
3668
- var y = u;
3668
+ var y = c;
3669
3669
  return ne(y._context) + ".Provider";
3670
3670
  case l:
3671
- return X(u, u.render, "ForwardRef");
3671
+ return X(c, c.render, "ForwardRef");
3672
3672
  case f:
3673
- var _ = u.displayName || null;
3674
- return _ !== null ? _ : Z(u.type) || "Memo";
3673
+ var _ = c.displayName || null;
3674
+ return _ !== null ? _ : Z(c.type) || "Memo";
3675
3675
  case p: {
3676
- var A = u, U = A._payload, O = A._init;
3676
+ var A = c, U = A._payload, O = A._init;
3677
3677
  try {
3678
3678
  return Z(O(U));
3679
3679
  } catch {
@@ -3691,20 +3691,20 @@ function Aa() {
3691
3691
  {
3692
3692
  if (be === 0) {
3693
3693
  we = console.log, Ze = console.info, Ee = console.warn, et = console.error, yt = console.group, Re = console.groupCollapsed, Se = console.groupEnd;
3694
- var u = {
3694
+ var c = {
3695
3695
  configurable: !0,
3696
3696
  enumerable: !0,
3697
3697
  value: Pe,
3698
3698
  writable: !0
3699
3699
  };
3700
3700
  Object.defineProperties(console, {
3701
- info: u,
3702
- log: u,
3703
- warn: u,
3704
- error: u,
3705
- group: u,
3706
- groupCollapsed: u,
3707
- groupEnd: u
3701
+ info: c,
3702
+ log: c,
3703
+ warn: c,
3704
+ error: c,
3705
+ group: c,
3706
+ groupCollapsed: c,
3707
+ groupEnd: c
3708
3708
  });
3709
3709
  }
3710
3710
  be++;
@@ -3713,31 +3713,31 @@ function Aa() {
3713
3713
  function Ve() {
3714
3714
  {
3715
3715
  if (be--, be === 0) {
3716
- var u = {
3716
+ var c = {
3717
3717
  configurable: !0,
3718
3718
  enumerable: !0,
3719
3719
  writable: !0
3720
3720
  };
3721
3721
  Object.defineProperties(console, {
3722
- log: $({}, u, {
3722
+ log: $({}, c, {
3723
3723
  value: we
3724
3724
  }),
3725
- info: $({}, u, {
3725
+ info: $({}, c, {
3726
3726
  value: Ze
3727
3727
  }),
3728
- warn: $({}, u, {
3728
+ warn: $({}, c, {
3729
3729
  value: Ee
3730
3730
  }),
3731
- error: $({}, u, {
3731
+ error: $({}, c, {
3732
3732
  value: et
3733
3733
  }),
3734
- group: $({}, u, {
3734
+ group: $({}, c, {
3735
3735
  value: yt
3736
3736
  }),
3737
- groupCollapsed: $({}, u, {
3737
+ groupCollapsed: $({}, c, {
3738
3738
  value: Re
3739
3739
  }),
3740
- groupEnd: $({}, u, {
3740
+ groupEnd: $({}, c, {
3741
3741
  value: Se
3742
3742
  })
3743
3743
  });
@@ -3746,7 +3746,7 @@ function Aa() {
3746
3746
  }
3747
3747
  }
3748
3748
  var je = g.ReactCurrentDispatcher, $e;
3749
- function Me(u, d, y) {
3749
+ function Me(c, d, y) {
3750
3750
  {
3751
3751
  if ($e === void 0)
3752
3752
  try {
@@ -3756,7 +3756,7 @@ function Aa() {
3756
3756
  $e = _ && _[1] || "";
3757
3757
  }
3758
3758
  return `
3759
- ` + $e + u;
3759
+ ` + $e + c;
3760
3760
  }
3761
3761
  }
3762
3762
  var tt = !1, ve;
@@ -3764,11 +3764,11 @@ function Aa() {
3764
3764
  var gt = typeof WeakMap == "function" ? WeakMap : Map;
3765
3765
  ve = new gt();
3766
3766
  }
3767
- function N(u, d) {
3768
- if (!u || tt)
3767
+ function N(c, d) {
3768
+ if (!c || tt)
3769
3769
  return "";
3770
3770
  {
3771
- var y = ve.get(u);
3771
+ var y = ve.get(c);
3772
3772
  if (y !== void 0)
3773
3773
  return y;
3774
3774
  }
@@ -3793,14 +3793,14 @@ function Aa() {
3793
3793
  } catch (Oe) {
3794
3794
  _ = Oe;
3795
3795
  }
3796
- Reflect.construct(u, [], O);
3796
+ Reflect.construct(c, [], O);
3797
3797
  } else {
3798
3798
  try {
3799
3799
  O.call();
3800
3800
  } catch (Oe) {
3801
3801
  _ = Oe;
3802
3802
  }
3803
- u.call(O.prototype);
3803
+ c.call(O.prototype);
3804
3804
  }
3805
3805
  } else {
3806
3806
  try {
@@ -3808,7 +3808,7 @@ function Aa() {
3808
3808
  } catch (Oe) {
3809
3809
  _ = Oe;
3810
3810
  }
3811
- u();
3811
+ c();
3812
3812
  }
3813
3813
  } catch (Oe) {
3814
3814
  if (Oe && _ && typeof Oe.stack == "string") {
@@ -3823,7 +3823,7 @@ function Aa() {
3823
3823
  if (W--, Y--, Y < 0 || R[W] !== se[Y]) {
3824
3824
  var ce = `
3825
3825
  ` + R[W].replace(" at new ", " at ");
3826
- return u.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", u.displayName)), typeof u == "function" && ve.set(u, ce), ce;
3826
+ return c.displayName && ce.includes("<anonymous>") && (ce = ce.replace("<anonymous>", c.displayName)), typeof c == "function" && ve.set(c, ce), ce;
3827
3827
  }
3828
3828
  while (W >= 1 && Y >= 0);
3829
3829
  break;
@@ -3832,37 +3832,37 @@ function Aa() {
3832
3832
  } finally {
3833
3833
  tt = !1, je.current = U, Ve(), Error.prepareStackTrace = A;
3834
3834
  }
3835
- var Ye = u ? u.displayName || u.name : "", rr = Ye ? Me(Ye) : "";
3836
- return typeof u == "function" && ve.set(u, rr), rr;
3835
+ var Ye = c ? c.displayName || c.name : "", rr = Ye ? Me(Ye) : "";
3836
+ return typeof c == "function" && ve.set(c, rr), rr;
3837
3837
  }
3838
- function F(u, d, y) {
3839
- return N(u, !1);
3838
+ function F(c, d, y) {
3839
+ return N(c, !1);
3840
3840
  }
3841
- function G(u) {
3842
- var d = u.prototype;
3841
+ function G(c) {
3842
+ var d = c.prototype;
3843
3843
  return !!(d && d.isReactComponent);
3844
3844
  }
3845
- function I(u, d, y) {
3846
- if (u == null)
3845
+ function I(c, d, y) {
3846
+ if (c == null)
3847
3847
  return "";
3848
- if (typeof u == "function")
3849
- return N(u, G(u));
3850
- if (typeof u == "string")
3851
- return Me(u);
3852
- switch (u) {
3848
+ if (typeof c == "function")
3849
+ return N(c, G(c));
3850
+ if (typeof c == "string")
3851
+ return Me(c);
3852
+ switch (c) {
3853
3853
  case a:
3854
3854
  return Me("Suspense");
3855
3855
  case h:
3856
3856
  return Me("SuspenseList");
3857
3857
  }
3858
- if (typeof u == "object")
3859
- switch (u.$$typeof) {
3858
+ if (typeof c == "object")
3859
+ switch (c.$$typeof) {
3860
3860
  case l:
3861
- return F(u.render);
3861
+ return F(c.render);
3862
3862
  case f:
3863
- return I(u.type, d, y);
3863
+ return I(c.type, d, y);
3864
3864
  case p: {
3865
- var _ = u, A = _._payload, U = _._init;
3865
+ var _ = c, A = _._payload, U = _._init;
3866
3866
  try {
3867
3867
  return I(U(A), d, y);
3868
3868
  } catch {
@@ -3872,25 +3872,25 @@ function Aa() {
3872
3872
  return "";
3873
3873
  }
3874
3874
  var re = Object.prototype.hasOwnProperty, Te = {}, H = g.ReactDebugCurrentFrame;
3875
- function J(u) {
3876
- if (u) {
3877
- var d = u._owner, y = I(u.type, u._source, d ? d.type : null);
3875
+ function J(c) {
3876
+ if (c) {
3877
+ var d = c._owner, y = I(c.type, c._source, d ? d.type : null);
3878
3878
  H.setExtraStackFrame(y);
3879
3879
  } else
3880
3880
  H.setExtraStackFrame(null);
3881
3881
  }
3882
- function de(u, d, y, _, A) {
3882
+ function de(c, d, y, _, A) {
3883
3883
  {
3884
3884
  var U = Function.call.bind(re);
3885
- for (var O in u)
3886
- if (U(u, O)) {
3885
+ for (var O in c)
3886
+ if (U(c, O)) {
3887
3887
  var R = void 0;
3888
3888
  try {
3889
- if (typeof u[O] != "function") {
3890
- var se = Error((_ || "React class") + ": " + y + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
3889
+ if (typeof c[O] != "function") {
3890
+ var se = Error((_ || "React class") + ": " + y + " type `" + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof c[O] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
3891
3891
  throw se.name = "Invariant Violation", se;
3892
3892
  }
3893
- R = u[O](d, O, _, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
3893
+ R = c[O](d, O, _, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
3894
3894
  } catch (W) {
3895
3895
  R = W;
3896
3896
  }
@@ -3899,28 +3899,28 @@ function Aa() {
3899
3899
  }
3900
3900
  }
3901
3901
  var _t = Array.isArray;
3902
- function We(u) {
3903
- return _t(u);
3902
+ function We(c) {
3903
+ return _t(c);
3904
3904
  }
3905
- function bt(u) {
3905
+ function bt(c) {
3906
3906
  {
3907
- var d = typeof Symbol == "function" && Symbol.toStringTag, y = d && u[Symbol.toStringTag] || u.constructor.name || "Object";
3907
+ var d = typeof Symbol == "function" && Symbol.toStringTag, y = d && c[Symbol.toStringTag] || c.constructor.name || "Object";
3908
3908
  return y;
3909
3909
  }
3910
3910
  }
3911
- function ie(u) {
3911
+ function ie(c) {
3912
3912
  try {
3913
- return ue(u), !1;
3913
+ return ue(c), !1;
3914
3914
  } catch {
3915
3915
  return !0;
3916
3916
  }
3917
3917
  }
3918
- function ue(u) {
3919
- return "" + u;
3918
+ function ue(c) {
3919
+ return "" + c;
3920
3920
  }
3921
- function He(u) {
3922
- if (ie(u))
3923
- return S("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);
3921
+ function He(c) {
3922
+ if (ie(c))
3923
+ return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", bt(c)), ue(c);
3924
3924
  }
3925
3925
  var Be = g.ReactCurrentOwner, nt = {
3926
3926
  key: !0,
@@ -3929,54 +3929,54 @@ function Aa() {
3929
3929
  __source: !0
3930
3930
  }, Kn, Gn, Wt;
3931
3931
  Wt = {};
3932
- function Us(u) {
3933
- if (re.call(u, "ref")) {
3934
- var d = Object.getOwnPropertyDescriptor(u, "ref").get;
3932
+ function Us(c) {
3933
+ if (re.call(c, "ref")) {
3934
+ var d = Object.getOwnPropertyDescriptor(c, "ref").get;
3935
3935
  if (d && d.isReactWarning)
3936
3936
  return !1;
3937
3937
  }
3938
- return u.ref !== void 0;
3938
+ return c.ref !== void 0;
3939
3939
  }
3940
- function qs(u) {
3941
- if (re.call(u, "key")) {
3942
- var d = Object.getOwnPropertyDescriptor(u, "key").get;
3940
+ function qs(c) {
3941
+ if (re.call(c, "key")) {
3942
+ var d = Object.getOwnPropertyDescriptor(c, "key").get;
3943
3943
  if (d && d.isReactWarning)
3944
3944
  return !1;
3945
3945
  }
3946
- return u.key !== void 0;
3946
+ return c.key !== void 0;
3947
3947
  }
3948
- function Is(u, d) {
3949
- if (typeof u.ref == "string" && Be.current && d && Be.current.stateNode !== d) {
3948
+ function Is(c, d) {
3949
+ if (typeof c.ref == "string" && Be.current && d && Be.current.stateNode !== d) {
3950
3950
  var y = Z(Be.current.type);
3951
- Wt[y] || (S('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), Wt[y] = !0);
3951
+ Wt[y] || (S('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), c.ref), Wt[y] = !0);
3952
3952
  }
3953
3953
  }
3954
- function Vs(u, d) {
3954
+ function Vs(c, d) {
3955
3955
  {
3956
3956
  var y = function() {
3957
3957
  Kn || (Kn = !0, S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
3958
3958
  };
3959
- y.isReactWarning = !0, Object.defineProperty(u, "key", {
3959
+ y.isReactWarning = !0, Object.defineProperty(c, "key", {
3960
3960
  get: y,
3961
3961
  configurable: !0
3962
3962
  });
3963
3963
  }
3964
3964
  }
3965
- function js(u, d) {
3965
+ function js(c, d) {
3966
3966
  {
3967
3967
  var y = function() {
3968
3968
  Gn || (Gn = !0, S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
3969
3969
  };
3970
- y.isReactWarning = !0, Object.defineProperty(u, "ref", {
3970
+ y.isReactWarning = !0, Object.defineProperty(c, "ref", {
3971
3971
  get: y,
3972
3972
  configurable: !0
3973
3973
  });
3974
3974
  }
3975
3975
  }
3976
- var $s = function(u, d, y, _, A, U, O) {
3976
+ var $s = function(c, d, y, _, A, U, O) {
3977
3977
  var R = {
3978
3978
  $$typeof: e,
3979
- type: u,
3979
+ type: c,
3980
3980
  key: d,
3981
3981
  ref: y,
3982
3982
  props: O,
@@ -3999,53 +3999,53 @@ function Aa() {
3999
3999
  value: A
4000
4000
  }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
4001
4001
  };
4002
- function Ms(u, d, y, _, A) {
4002
+ function Ms(c, d, y, _, A) {
4003
4003
  {
4004
4004
  var U, O = {}, R = null, se = null;
4005
4005
  y !== void 0 && (He(y), R = "" + y), qs(d) && (He(d.key), R = "" + d.key), Us(d) && (se = d.ref, Is(d, A));
4006
4006
  for (U in d)
4007
4007
  re.call(d, U) && !nt.hasOwnProperty(U) && (O[U] = d[U]);
4008
- if (u && u.defaultProps) {
4009
- var W = u.defaultProps;
4008
+ if (c && c.defaultProps) {
4009
+ var W = c.defaultProps;
4010
4010
  for (U in W)
4011
4011
  O[U] === void 0 && (O[U] = W[U]);
4012
4012
  }
4013
4013
  if (R || se) {
4014
- var Y = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
4014
+ var Y = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
4015
4015
  R && Vs(O, Y), se && js(O, Y);
4016
4016
  }
4017
- return $s(u, R, se, A, _, Be.current, O);
4017
+ return $s(c, R, se, A, _, Be.current, O);
4018
4018
  }
4019
4019
  }
4020
4020
  var Ht = g.ReactCurrentOwner, Xn = g.ReactDebugCurrentFrame;
4021
- function Je(u) {
4022
- if (u) {
4023
- var d = u._owner, y = I(u.type, u._source, d ? d.type : null);
4021
+ function Je(c) {
4022
+ if (c) {
4023
+ var d = c._owner, y = I(c.type, c._source, d ? d.type : null);
4024
4024
  Xn.setExtraStackFrame(y);
4025
4025
  } else
4026
4026
  Xn.setExtraStackFrame(null);
4027
4027
  }
4028
4028
  var Jt;
4029
4029
  Jt = !1;
4030
- function Yt(u) {
4031
- return typeof u == "object" && u !== null && u.$$typeof === e;
4030
+ function Yt(c) {
4031
+ return typeof c == "object" && c !== null && c.$$typeof === e;
4032
4032
  }
4033
4033
  function Qn() {
4034
4034
  {
4035
4035
  if (Ht.current) {
4036
- var u = Z(Ht.current.type);
4037
- if (u)
4036
+ var c = Z(Ht.current.type);
4037
+ if (c)
4038
4038
  return `
4039
4039
 
4040
- Check the render method of \`` + u + "`.";
4040
+ Check the render method of \`` + c + "`.";
4041
4041
  }
4042
4042
  return "";
4043
4043
  }
4044
4044
  }
4045
- function Ws(u) {
4045
+ function Ws(c) {
4046
4046
  {
4047
- if (u !== void 0) {
4048
- var d = u.fileName.replace(/^.*[\\\/]/, ""), y = u.lineNumber;
4047
+ if (c !== void 0) {
4048
+ var d = c.fileName.replace(/^.*[\\\/]/, ""), y = c.lineNumber;
4049
4049
  return `
4050
4050
 
4051
4051
  Check your code at ` + d + ":" + y + ".";
@@ -4054,11 +4054,11 @@ Check your code at ` + d + ":" + y + ".";
4054
4054
  }
4055
4055
  }
4056
4056
  var Zn = {};
4057
- function Hs(u) {
4057
+ function Hs(c) {
4058
4058
  {
4059
4059
  var d = Qn();
4060
4060
  if (!d) {
4061
- var y = typeof u == "string" ? u : u.displayName || u.name;
4061
+ var y = typeof c == "string" ? c : c.displayName || c.name;
4062
4062
  y && (d = `
4063
4063
 
4064
4064
  Check the top-level render call using <` + y + ">.");
@@ -4066,41 +4066,41 @@ Check the top-level render call using <` + y + ">.");
4066
4066
  return d;
4067
4067
  }
4068
4068
  }
4069
- function er(u, d) {
4069
+ function er(c, d) {
4070
4070
  {
4071
- if (!u._store || u._store.validated || u.key != null)
4071
+ if (!c._store || c._store.validated || c.key != null)
4072
4072
  return;
4073
- u._store.validated = !0;
4073
+ c._store.validated = !0;
4074
4074
  var y = Hs(d);
4075
4075
  if (Zn[y])
4076
4076
  return;
4077
4077
  Zn[y] = !0;
4078
4078
  var _ = "";
4079
- u && u._owner && u._owner !== Ht.current && (_ = " It was passed a child from " + Z(u._owner.type) + "."), Je(u), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, _), Je(null);
4079
+ c && c._owner && c._owner !== Ht.current && (_ = " It was passed a child from " + Z(c._owner.type) + "."), Je(c), S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, _), Je(null);
4080
4080
  }
4081
4081
  }
4082
- function tr(u, d) {
4082
+ function tr(c, d) {
4083
4083
  {
4084
- if (typeof u != "object")
4084
+ if (typeof c != "object")
4085
4085
  return;
4086
- if (We(u))
4087
- for (var y = 0; y < u.length; y++) {
4088
- var _ = u[y];
4086
+ if (We(c))
4087
+ for (var y = 0; y < c.length; y++) {
4088
+ var _ = c[y];
4089
4089
  Yt(_) && er(_, d);
4090
4090
  }
4091
- else if (Yt(u))
4092
- u._store && (u._store.validated = !0);
4093
- else if (u) {
4094
- var A = x(u);
4095
- if (typeof A == "function" && A !== u.entries)
4096
- for (var U = A.call(u), O; !(O = U.next()).done; )
4091
+ else if (Yt(c))
4092
+ c._store && (c._store.validated = !0);
4093
+ else if (c) {
4094
+ var A = x(c);
4095
+ if (typeof A == "function" && A !== c.entries)
4096
+ for (var U = A.call(c), O; !(O = U.next()).done; )
4097
4097
  Yt(O.value) && er(O.value, d);
4098
4098
  }
4099
4099
  }
4100
4100
  }
4101
- function Js(u) {
4101
+ function Js(c) {
4102
4102
  {
4103
- var d = u.type;
4103
+ var d = c.type;
4104
4104
  if (d == null || typeof d == "string")
4105
4105
  return;
4106
4106
  var y;
@@ -4112,7 +4112,7 @@ Check the top-level render call using <` + y + ">.");
4112
4112
  return;
4113
4113
  if (y) {
4114
4114
  var _ = Z(d);
4115
- de(y, u.props, "prop", _, u);
4115
+ de(y, c.props, "prop", _, c);
4116
4116
  } else if (d.PropTypes !== void 0 && !Jt) {
4117
4117
  Jt = !0;
4118
4118
  var A = Z(d);
@@ -4121,30 +4121,30 @@ Check the top-level render call using <` + y + ">.");
4121
4121
  typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
4122
4122
  }
4123
4123
  }
4124
- function Ys(u) {
4124
+ function Ys(c) {
4125
4125
  {
4126
- for (var d = Object.keys(u.props), y = 0; y < d.length; y++) {
4126
+ for (var d = Object.keys(c.props), y = 0; y < d.length; y++) {
4127
4127
  var _ = d[y];
4128
4128
  if (_ !== "children" && _ !== "key") {
4129
- Je(u), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Je(null);
4129
+ Je(c), S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Je(null);
4130
4130
  break;
4131
4131
  }
4132
4132
  }
4133
- u.ref !== null && (Je(u), S("Invalid attribute `ref` supplied to `React.Fragment`."), Je(null));
4133
+ c.ref !== null && (Je(c), S("Invalid attribute `ref` supplied to `React.Fragment`."), Je(null));
4134
4134
  }
4135
4135
  }
4136
- function nr(u, d, y, _, A, U) {
4136
+ function nr(c, d, y, _, A, U) {
4137
4137
  {
4138
- var O = L(u);
4138
+ var O = L(c);
4139
4139
  if (!O) {
4140
4140
  var R = "";
4141
- (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.");
4141
+ (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).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.");
4142
4142
  var se = Ws(A);
4143
4143
  se ? R += se : R += Qn();
4144
4144
  var W;
4145
- 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, S("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);
4145
+ c === null ? W = "null" : We(c) ? W = "array" : c !== void 0 && c.$$typeof === e ? (W = "<" + (Z(c.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : W = typeof c, S("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);
4146
4146
  }
4147
- var Y = Ms(u, d, y, A, U);
4147
+ var Y = Ms(c, d, y, A, U);
4148
4148
  if (Y == null)
4149
4149
  return Y;
4150
4150
  if (O) {
@@ -4153,21 +4153,21 @@ Check the top-level render call using <` + y + ">.");
4153
4153
  if (_)
4154
4154
  if (We(ce)) {
4155
4155
  for (var Ye = 0; Ye < ce.length; Ye++)
4156
- tr(ce[Ye], u);
4156
+ tr(ce[Ye], c);
4157
4157
  Object.freeze && Object.freeze(ce);
4158
4158
  } else
4159
4159
  S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
4160
4160
  else
4161
- tr(ce, u);
4161
+ tr(ce, c);
4162
4162
  }
4163
- return u === r ? Ys(Y) : Js(Y), Y;
4163
+ return c === r ? Ys(Y) : Js(Y), Y;
4164
4164
  }
4165
4165
  }
4166
- function zs(u, d, y) {
4167
- return nr(u, d, y, !0);
4166
+ function zs(c, d, y) {
4167
+ return nr(c, d, y, !0);
4168
4168
  }
4169
- function Ks(u, d, y) {
4170
- return nr(u, d, y, !1);
4169
+ function Ks(c, d, y) {
4170
+ return nr(c, d, y, !1);
4171
4171
  }
4172
4172
  var Gs = Ks, Xs = zs;
4173
4173
  at.Fragment = r, at.jsx = Gs, at.jsxs = Xs;
@@ -4185,15 +4185,15 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4185
4185
  children: i
4186
4186
  }) => {
4187
4187
  const o = Kr(() => {
4188
- const c = new oo.FrappeApp(n, e);
4188
+ const u = new oo.FrappeApp(n, e);
4189
4189
  return {
4190
4190
  url: n,
4191
4191
  tokenParams: e,
4192
- app: c,
4193
- auth: c.auth(),
4194
- db: c.db(),
4195
- call: c.call(),
4196
- file: c.file(),
4192
+ app: u,
4193
+ auth: u.auth(),
4194
+ db: u.db(),
4195
+ call: u.call(),
4196
+ file: u.file(),
4197
4197
  socket: s ? new xa(n, r, t, e).socket : void 0,
4198
4198
  enableSocket: s,
4199
4199
  socketPort: t
@@ -4220,7 +4220,7 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4220
4220
  r && r.useToken ? i(null) : o();
4221
4221
  }, []);
4222
4222
  const {
4223
- data: c,
4223
+ data: u,
4224
4224
  error: l,
4225
4225
  isLoading: a,
4226
4226
  isValidating: h,
@@ -4240,7 +4240,7 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4240
4240
  }), []), v = M(async () => t.logout().then(() => f(null)).then(() => i(null)), []);
4241
4241
  return {
4242
4242
  isLoading: s === void 0 || a,
4243
- currentUser: c,
4243
+ currentUser: u,
4244
4244
  isValidating: h,
4245
4245
  error: l,
4246
4246
  login: p,
@@ -4278,7 +4278,7 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4278
4278
  }, Va = () => {
4279
4279
  const {
4280
4280
  db: n
4281
- } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
4281
+ } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), u = M(() => {
4282
4282
  t(!1), s(null), o(!1);
4283
4283
  }, []);
4284
4284
  return {
@@ -4288,12 +4288,12 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4288
4288
  loading: e,
4289
4289
  error: r,
4290
4290
  isCompleted: i,
4291
- reset: c
4291
+ reset: u
4292
4292
  };
4293
4293
  }, ja = () => {
4294
4294
  const {
4295
4295
  db: n
4296
- } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
4296
+ } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), u = M(() => {
4297
4297
  t(!1), s(null), o(!1);
4298
4298
  }, []);
4299
4299
  return {
@@ -4302,13 +4302,13 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4302
4302
  })), []),
4303
4303
  loading: e,
4304
4304
  error: r,
4305
- reset: c,
4305
+ reset: u,
4306
4306
  isCompleted: i
4307
4307
  };
4308
4308
  }, $a = () => {
4309
4309
  const {
4310
4310
  db: n
4311
- } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
4311
+ } = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), u = M(() => {
4312
4312
  t(!1), s(null), o(!1);
4313
4313
  }, []);
4314
4314
  return {
@@ -4317,7 +4317,7 @@ const ka = Ps.exports.jsx, te = zr(null), Fa = ({
4317
4317
  })), []),
4318
4318
  loading: e,
4319
4319
  error: r,
4320
- reset: c,
4320
+ reset: u,
4321
4321
  isCompleted: i
4322
4322
  };
4323
4323
  };
@@ -4330,7 +4330,7 @@ function Fs(n) {
4330
4330
  const Ma = (n, e, t = !1, r = !1, s, i) => {
4331
4331
  const {
4332
4332
  url: o,
4333
- db: c
4333
+ db: u
4334
4334
  } = ee(te);
4335
4335
  return {
4336
4336
  ...vt(s === void 0 ? (() => {
@@ -4345,7 +4345,7 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4345
4345
  debug: r
4346
4346
  });
4347
4347
  return `${o}/api/method/frappe.client.get_count?${h}`;
4348
- })() : s, () => c.getCount(n, e, t, r), i)
4348
+ })() : s, () => u.getCount(n, e, t, r), i)
4349
4349
  };
4350
4350
  }, La = (n, e, t, r) => {
4351
4351
  const {
@@ -4357,12 +4357,12 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4357
4357
  }, Wa = (n) => {
4358
4358
  const {
4359
4359
  call: e
4360
- } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [l, a] = P(!1), h = M(() => {
4361
- r(null), i(!1), c(null), a(!1);
4360
+ } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, u] = P(null), [l, a] = P(!1), h = M(() => {
4361
+ r(null), i(!1), u(null), a(!1);
4362
4362
  }, []);
4363
4363
  return {
4364
- call: M(async (p) => (c(null), a(!1), i(!0), r(null), e.post(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4365
- throw i(!1), a(!1), c(v), v;
4364
+ call: M(async (p) => (u(null), a(!1), i(!0), r(null), e.post(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4365
+ throw i(!1), a(!1), u(v), v;
4366
4366
  })), []),
4367
4367
  result: t,
4368
4368
  loading: s,
@@ -4373,12 +4373,12 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4373
4373
  }, Ha = (n) => {
4374
4374
  const {
4375
4375
  call: e
4376
- } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [l, a] = P(!1), h = M(() => {
4377
- r(null), i(!1), c(null), a(!1);
4376
+ } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, u] = P(null), [l, a] = P(!1), h = M(() => {
4377
+ r(null), i(!1), u(null), a(!1);
4378
4378
  }, []);
4379
4379
  return {
4380
- call: M(async (p) => (c(null), a(!1), i(!0), r(null), e.put(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4381
- throw i(!1), a(!1), c(v), v;
4380
+ call: M(async (p) => (u(null), a(!1), i(!0), r(null), e.put(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4381
+ throw i(!1), a(!1), u(v), v;
4382
4382
  })), []),
4383
4383
  result: t,
4384
4384
  loading: s,
@@ -4389,12 +4389,12 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4389
4389
  }, Ja = (n) => {
4390
4390
  const {
4391
4391
  call: e
4392
- } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [l, a] = P(!1), h = M(() => {
4393
- r(null), i(!1), c(null), a(!1);
4392
+ } = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, u] = P(null), [l, a] = P(!1), h = M(() => {
4393
+ r(null), i(!1), u(null), a(!1);
4394
4394
  }, []);
4395
4395
  return {
4396
- call: M(async (p) => (c(null), a(!1), i(!0), r(null), e.delete(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4397
- throw i(!1), a(!1), c(v), v;
4396
+ call: M(async (p) => (u(null), a(!1), i(!0), r(null), e.delete(n, p).then((v) => (r(v), i(!1), a(!0), v)).catch((v) => {
4397
+ throw i(!1), a(!1), u(v), v;
4398
4398
  })), []),
4399
4399
  result: t,
4400
4400
  loading: s,
@@ -4405,7 +4405,7 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4405
4405
  }, Ya = () => {
4406
4406
  const {
4407
4407
  file: n
4408
- } = ee(te), [e, t] = P(0), [r, s] = P(!1), [i, o] = P(null), [c, l] = P(!1), a = M(async (f, p) => (h(), s(!0), n.uploadFile(f, p, (v, b) => t(Math.round(v / b * 100))).then((v) => (l(!0), t(100), s(!1), v.data.message)).catch((v) => {
4408
+ } = ee(te), [e, t] = P(0), [r, s] = P(!1), [i, o] = P(null), [u, l] = P(!1), a = M(async (f, p) => (h(), s(!0), n.uploadFile(f, p, (v, b) => t(Math.round(v / b * 100))).then((v) => (l(!0), t(100), s(!1), v.data.message)).catch((v) => {
4409
4409
  throw console.error(v), o(v), s(!1), v;
4410
4410
  })), []), h = M(() => {
4411
4411
  t(0), s(!1), o(null), l(!1);
@@ -4414,7 +4414,7 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4414
4414
  upload: a,
4415
4415
  progress: e,
4416
4416
  loading: r,
4417
- isCompleted: c,
4417
+ isCompleted: u,
4418
4418
  error: i,
4419
4419
  reset: h
4420
4420
  };
@@ -4454,7 +4454,7 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4454
4454
  Xe(() => (s === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), s == null || s.emit("doc_subscribe", n, e), r && (s == null || s.emit("doc_open", n, e)), () => {
4455
4455
  s == null || s.emit("doc_unsubscribe", n, e), r && (s == null || s.emit("doc_close", n, e));
4456
4456
  }), [n, e, r]), Bn("doc_update", t);
4457
- const c = M(() => {
4457
+ const u = M(() => {
4458
4458
  s == null || s.emit("doc_open", n, e);
4459
4459
  }, [n, e]), l = M(() => {
4460
4460
  s == null || s.emit("doc_close", n, e);
@@ -4463,7 +4463,7 @@ const Ma = (n, e, t = !1, r = !1, s, i) => {
4463
4463
  }, [n, e]);
4464
4464
  return Bn("doc_viewers", a), {
4465
4465
  viewers: i,
4466
- emitDocOpen: c,
4466
+ emitDocOpen: u,
4467
4467
  emitDocClose: l
4468
4468
  };
4469
4469
  }, Ga = (n, e) => {