hplx-feature-library 1.0.308 → 1.0.310

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.
Files changed (49) hide show
  1. package/dist/{APIAction-BPjQvoDr.cjs → APIAction-BC572SUh.cjs} +1 -1
  2. package/dist/{APIAction-Cn6CnUPj.js → APIAction-Dh1jeN3Q.js} +2 -2
  3. package/dist/AllInvestigations/index.js +1 -1
  4. package/dist/{AllInvestigationsTable-o7sUrypz.js → AllInvestigationsTable-6WZYLxgn.js} +121 -121
  5. package/dist/AllInvestigationsTable-IN3Gv1wb.cjs +80 -0
  6. package/dist/Attachments/index.js +1 -1
  7. package/dist/Attachments-C5eZR_b9.cjs +186 -0
  8. package/dist/{Attachments-Bl0Bb93j.js → Attachments-Ddu-Ak3N.js} +36 -36
  9. package/dist/NineDots/index.js +1 -1
  10. package/dist/{NineDots-BenIdNn6.cjs → NineDots-CEKYCz_l.cjs} +1 -1
  11. package/dist/{NineDots-BovmR9lR.js → NineDots-CZxm95h0.js} +1 -1
  12. package/dist/PatientAddEdit/index.js +1 -1
  13. package/dist/{PatientAddEdit-BsvMkDPi.js → PatientAddEdit-Bsa6mPrj.js} +5 -5
  14. package/dist/{PatientAddEdit-CiUyGlRS.cjs → PatientAddEdit-CtM4xbMa.cjs} +1 -1
  15. package/dist/PatientPopup/index.js +1 -1
  16. package/dist/PatientPopupContainer-DOJniw5Q.cjs +36 -0
  17. package/dist/{PatientPopupContainer-BjejzoZp.js → PatientPopupContainer-VaUWBPAN.js} +512 -512
  18. package/dist/PediatricsCalculator/index.js +1 -1
  19. package/dist/{PediatricsCalculatorTable-CoHNZcKB.js → PediatricsCalculatorTable-Bsotwgba.js} +2 -2
  20. package/dist/{PediatricsCalculatorTable-Bfnfpscv.cjs → PediatricsCalculatorTable-C59lNMNS.cjs} +1 -1
  21. package/dist/{PrintModal-BYaI_gvN.cjs → PrintModal-D8CPsVQ6.cjs} +46 -46
  22. package/dist/{PrintModal-Dnu4I6Bq.js → PrintModal-DAhX2jNv.js} +587 -587
  23. package/dist/SearchPatients/index.js +1 -1
  24. package/dist/{SearchPatients-BURn-eU9.cjs → SearchPatients-1FVfZoeQ.cjs} +1 -1
  25. package/dist/{SearchPatients-BTmBvIpk.js → SearchPatients-tEIv_TBu.js} +3 -3
  26. package/dist/UserProfile/index.js +1 -1
  27. package/dist/{UserProfile-D9u7TGPM.js → UserProfile-CXotmcbO.js} +4 -4
  28. package/dist/{UserProfile-BcdsuEnn.cjs → UserProfile-DeVg1Gym.cjs} +1 -1
  29. package/dist/{common-utils-BmJs-CNu.cjs → common-utils-D1ID7-VY.cjs} +1 -1
  30. package/dist/{common-utils-fQX0KRKT.js → common-utils-P_6EPLut.js} +1 -1
  31. package/dist/{dayjs.min-Dx50Uhvr.js → dayjs.min-CI-igRZR.js} +15 -15
  32. package/dist/dayjs.min-Dq_-qqjW.cjs +1 -0
  33. package/dist/hplx-feature-library.css +1 -1
  34. package/dist/index-C8nmTIgQ.cjs +102 -0
  35. package/dist/{index-DPIXOYYJ.js → index-CJFGOBPb.js} +2 -2
  36. package/dist/{index-Cuk4eOa2.js → index-D9tHKxGo.js} +19 -19
  37. package/dist/index-DfcUmlge.cjs +17 -0
  38. package/dist/{index-D-5bovl6.js → index-Ku_Lrm51.js} +565 -565
  39. package/dist/index-fA2CtGkU.cjs +32 -0
  40. package/dist/index.js +9 -9
  41. package/dist/print-pdf/index.js +1 -1
  42. package/package.json +2 -2
  43. package/dist/AllInvestigationsTable-DKMxC37E.cjs +0 -80
  44. package/dist/Attachments-DP1L4bRq.cjs +0 -186
  45. package/dist/PatientPopupContainer-CNb0MKZc.cjs +0 -36
  46. package/dist/dayjs.min-QUFnA3Sz.cjs +0 -1
  47. package/dist/index-83gl7aAu.cjs +0 -32
  48. package/dist/index-D-bucTJp.cjs +0 -102
  49. package/dist/index-Dsi-BJd2.cjs +0 -17
@@ -1,10 +1,10 @@
1
- import { j as e, b as N, g as vn, e as kn, K as Le, h as Vn, P as Et, Z as Or, k as ll, a as Va, t as hr, A as ur, c as _n, N as yn, O as $l, E as bn, q as On } from "./index-D-5bovl6.js";
1
+ import { j as e, b as N, g as vn, e as kn, K as Le, h as Vn, P as Et, Z as Or, k as ll, a as Va, t as hr, A as ur, c as _n, N as yn, O as $l, E as bn, q as On } from "./index-Ku_Lrm51.js";
2
2
  import ol, { createContext as Wn, useContext as Lt, useState as U, forwardRef as zn, useRef as Mr, useEffect as Ye, useCallback as $t, useMemo as Kt, useReducer as Oa } from "react";
3
3
  import { a as Ta } from "./CommonTypes-BzMrYraH.js";
4
- import { G as Yn, a as qn, b as $n, c as wn, U as Wa, d as Un, e as Cn, f as Zn, g as Kn, h as Xn, i as Jn, j as Qn, k as ei, l as ti, m as Rn, n as ri, o as jn, D as li, p as ai, q as ni, V as ii, r as Pn, s as si, t as oi, u as ci, v as di, w as ui, L as fi, x as hi, y as pi, z as mi, A as gi, F as At, B as xi, C as vi, E as _i, T as It, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-Dnu4I6Bq.js";
5
- import { R as bt, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-fQX0KRKT.js";
6
- import { d as Te } from "./dayjs.min-Dx50Uhvr.js";
7
- import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-Cn6CnUPj.js";
4
+ import { G as Yn, a as qn, b as $n, c as wn, U as Wa, d as Un, e as Cn, f as Zn, g as Kn, h as Xn, i as Jn, j as Qn, k as ei, l as ti, m as Rn, n as ri, o as jn, D as li, p as ai, q as ni, V as ii, r as Pn, s as si, t as oi, u as ci, v as di, w as ui, L as fi, x as hi, y as pi, z as mi, A as gi, F as At, B as xi, C as vi, E as _i, T as It, W as yi, H as Sn, I as bi, P as Nn } from "./PrintModal-DAhX2jNv.js";
5
+ import { R as bt, h as za, f as wi, v as an, n as nn, q as Ci, i as Ri } from "./common-utils-P_6EPLut.js";
6
+ import { d as Te } from "./dayjs.min-CI-igRZR.js";
7
+ import { G as ji, U as Pi, A as Si, f as Ni, i as Di, j as sn, k as Ai } from "./APIAction-Dh1jeN3Q.js";
8
8
  import { a as on, H as Ii, D as Pa, M as Sa, b as Ol, S as Ti, C as Na, O as Da } from "./CommonConstant-BMwbE0IZ.js";
9
9
  import { c as Ba } from "./index.esm-Bn1Rklqj.js";
10
10
  /* empty css */
@@ -909,10 +909,10 @@ const rl = {
909
909
  };
910
910
  var Yl = { exports: {} }, ms = Yl.exports, un;
911
911
  function gs() {
912
- return un || (un = 1, (function(n, u) {
912
+ return un || (un = 1, function(n, u) {
913
913
  (function(d, i) {
914
914
  n.exports = i();
915
- })(ms, (function() {
915
+ })(ms, function() {
916
916
  var d = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, v = /\d/, C = /\d\d/, a = /\d\d?/, A = /\d*[^-_:/,()\s\d]+/, S = {}, h = function(D) {
917
917
  return (D = +D) + (D > 68 ? 1900 : 2e3);
918
918
  }, k = function(D) {
@@ -920,11 +920,11 @@ function gs() {
920
920
  this[D] = +P;
921
921
  };
922
922
  }, g = [/[+-]\d\d:?(\d\d)?|Z/, function(D) {
923
- (this.zone || (this.zone = {})).offset = (function(P) {
923
+ (this.zone || (this.zone = {})).offset = function(P) {
924
924
  if (!P || P === "Z") return 0;
925
925
  var T = P.match(/([+-]|\d\d)/g), b = 60 * T[1] + (+T[2] || 0);
926
926
  return b === 0 ? 0 : T[0] === "+" ? -b : b;
927
- })(D);
927
+ }(D);
928
928
  }], L = function(D) {
929
929
  var P = S[D];
930
930
  return P && (P.indexOf ? P : P.s.concat(P.f));
@@ -953,9 +953,9 @@ function gs() {
953
953
  var P = S.ordinal, T = D.match(/\d+/);
954
954
  if (this.day = T[0], P) for (var b = 1; b <= 31; b += 1) P(b).replace(/\[|\]/g, "") === D && (this.day = b);
955
955
  }], w: [a, k("week")], ww: [C, k("week")], M: [a, k("month")], MM: [C, k("month")], MMM: [A, function(D) {
956
- var P = L("months"), T = (L("monthsShort") || P.map((function(b) {
956
+ var P = L("months"), T = (L("monthsShort") || P.map(function(b) {
957
957
  return b.slice(0, 3);
958
- }))).indexOf(D) + 1;
958
+ })).indexOf(D) + 1;
959
959
  if (T < 1) throw new Error();
960
960
  this.month = T % 12 || T;
961
961
  }], MMMM: [A, function(D) {
@@ -968,12 +968,12 @@ function gs() {
968
968
  function I(D) {
969
969
  var P, T;
970
970
  P = D, T = S && S.formats;
971
- for (var b = (D = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(ne, W, me) {
971
+ for (var b = (D = P.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ne, W, me) {
972
972
  var we = me && me.toUpperCase();
973
- return W || T[me] || d[me] || T[we].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(_e, tt, he) {
973
+ return W || T[me] || d[me] || T[we].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(_e, tt, he) {
974
974
  return tt || he.slice(1);
975
- }));
976
- }))).match(i), ee = b.length, B = 0; B < ee; B += 1) {
975
+ });
976
+ })).match(i), ee = b.length, B = 0; B < ee; B += 1) {
977
977
  var H = b[B], z = O[H], Q = z && z[0], Y = z && z[1];
978
978
  b[B] = Y ? { regex: Q, parser: Y } : H.replace(/^\[|\]$/g, "");
979
979
  }
@@ -986,13 +986,13 @@ function gs() {
986
986
  he.call(W, ce), ne = ne.replace(ce, "");
987
987
  }
988
988
  }
989
- return (function(M) {
989
+ return function(M) {
990
990
  var Ae = M.afternoon;
991
991
  if (Ae !== void 0) {
992
992
  var Fe = M.hours;
993
993
  Ae ? Fe < 12 && (M.hours += 12) : Fe === 12 && (M.hours = 0), delete M.afternoon;
994
994
  }
995
- })(W), W;
995
+ }(W), W;
996
996
  };
997
997
  }
998
998
  return function(D, P, T) {
@@ -1004,7 +1004,7 @@ function gs() {
1004
1004
  var Y = Q[1];
1005
1005
  if (typeof Y == "string") {
1006
1006
  var ne = Q[2] === !0, W = Q[3] === !0, me = ne || W, we = Q[2];
1007
- W && (we = Q[2]), S = this.$locale(), !ne && we && (S = T.Ls[we]), this.$d = (function(X, ce, M, Ae) {
1007
+ W && (we = Q[2]), S = this.$locale(), !ne && we && (S = T.Ls[we]), this.$d = function(X, ce, M, Ae) {
1008
1008
  try {
1009
1009
  if (["x", "X"].indexOf(ce) > -1) return new Date((ce === "X" ? 1e3 : 1) * X);
1010
1010
  var Fe = I(ce)(X), He = Fe.year, gt = Fe.month, pt = Fe.day, it = Fe.hours, We = Fe.minutes, st = Fe.seconds, Dt = Fe.milliseconds, xt = Fe.zone, Bt = Fe.week, kt = /* @__PURE__ */ new Date(), G = pt || (He || gt ? 1 : kt.getDate()), Ie = He || kt.getFullYear(), Ue = 0;
@@ -1014,7 +1014,7 @@ function gs() {
1014
1014
  } catch {
1015
1015
  return /* @__PURE__ */ new Date("");
1016
1016
  }
1017
- })(H, Y, z, T), this.init(), we && we !== !0 && (this.$L = this.locale(we).$L), me && H != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), S = {};
1017
+ }(H, Y, z, T), this.init(), we && we !== !0 && (this.$L = this.locale(we).$L), me && H != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), S = {};
1018
1018
  } else if (Y instanceof Array) for (var _e = Y.length, tt = 1; tt <= _e; tt += 1) {
1019
1019
  Q[1] = Y[tt - 1];
1020
1020
  var he = T.apply(this, Q);
@@ -1027,8 +1027,8 @@ function gs() {
1027
1027
  else ee.call(this, B);
1028
1028
  };
1029
1029
  };
1030
- }));
1031
- })(Yl)), Yl.exports;
1030
+ });
1031
+ }(Yl)), Yl.exports;
1032
1032
  }
1033
1033
  var xs = gs();
1034
1034
  const vs = /* @__PURE__ */ vn(xs);
@@ -3018,10 +3018,10 @@ const Tn = (...n) => {
3018
3018
  };
3019
3019
  var zl = { exports: {} }, il = { exports: {} }, Ns = il.exports, hn;
3020
3020
  function Ds() {
3021
- return hn || (hn = 1, (function(n, u) {
3021
+ return hn || (hn = 1, function(n, u) {
3022
3022
  (function(d, i) {
3023
3023
  i(u, ol);
3024
- })(Ns, (function(d, i) {
3024
+ })(Ns, function(d, i) {
3025
3025
  function v(t, o, f, p, w, _, R) {
3026
3026
  try {
3027
3027
  var q = t[_](R), K = q.value;
@@ -3033,7 +3033,7 @@ function Ds() {
3033
3033
  function C(t) {
3034
3034
  return function() {
3035
3035
  var o = this, f = arguments;
3036
- return new Promise((function(p, w) {
3036
+ return new Promise(function(p, w) {
3037
3037
  var _ = t.apply(o, f);
3038
3038
  function R(K) {
3039
3039
  v(_, p, w, R, q, "next", K);
@@ -3042,7 +3042,7 @@ function Ds() {
3042
3042
  v(_, p, w, R, q, "throw", K);
3043
3043
  }
3044
3044
  R(void 0);
3045
- }));
3045
+ });
3046
3046
  };
3047
3047
  }
3048
3048
  function a() {
@@ -3061,7 +3061,7 @@ function Ds() {
3061
3061
  return w;
3062
3062
  }
3063
3063
  function S(t) {
3064
- var o = (function(f, p) {
3064
+ var o = function(f, p) {
3065
3065
  if (typeof f != "object" || f === null) return f;
3066
3066
  var w = f[Symbol.toPrimitive];
3067
3067
  if (w !== void 0) {
@@ -3070,7 +3070,7 @@ function Ds() {
3070
3070
  throw new TypeError("@@toPrimitive must return a primitive value.");
3071
3071
  }
3072
3072
  return String(f);
3073
- })(t, "string");
3073
+ }(t, "string");
3074
3074
  return typeof o == "symbol" ? o : String(o);
3075
3075
  }
3076
3076
  i = i && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
@@ -3082,52 +3082,52 @@ function Ds() {
3082
3082
  }, L = { Cell: k, width: 150, minWidth: 0, maxWidth: Number.MAX_SAFE_INTEGER };
3083
3083
  function V() {
3084
3084
  for (var t = arguments.length, o = new Array(t), f = 0; f < t; f++) o[f] = arguments[f];
3085
- return o.reduce((function(p, w) {
3085
+ return o.reduce(function(p, w) {
3086
3086
  var _ = w.style, R = w.className;
3087
3087
  return p = a({}, p, {}, A(w, ["style", "className"])), _ && (p.style = p.style ? a({}, p.style || {}, {}, _ || {}) : _), R && (p.className = p.className ? p.className + " " + R : R), p.className === "" && delete p.className, p;
3088
- }), {});
3088
+ }, {});
3089
3089
  }
3090
3090
  var O = function(t, o) {
3091
3091
  return o === void 0 && (o = {}), function(f) {
3092
- return f === void 0 && (f = {}), [].concat(t, [f]).reduce((function(p, w) {
3093
- return (function _(R, q, K) {
3092
+ return f === void 0 && (f = {}), [].concat(t, [f]).reduce(function(p, w) {
3093
+ return function _(R, q, K) {
3094
3094
  return typeof q == "function" ? _({}, q(R, K)) : Array.isArray(q) ? V.apply(void 0, [R].concat(q)) : V(R, q);
3095
- })(p, w, a({}, o, { userProps: f }));
3096
- }), {});
3095
+ }(p, w, a({}, o, { userProps: f }));
3096
+ }, {});
3097
3097
  };
3098
3098
  }, I = function(t, o, f, p) {
3099
- return f === void 0 && (f = {}), t.reduce((function(w, _) {
3099
+ return f === void 0 && (f = {}), t.reduce(function(w, _) {
3100
3100
  return _(w, f);
3101
- }), o);
3101
+ }, o);
3102
3102
  }, D = function(t, o, f) {
3103
- return f === void 0 && (f = {}), t.forEach((function(p) {
3103
+ return f === void 0 && (f = {}), t.forEach(function(p) {
3104
3104
  p(o, f);
3105
- }));
3105
+ });
3106
3106
  };
3107
3107
  function P(t, o, f, p) {
3108
- t.findIndex((function(w) {
3108
+ t.findIndex(function(w) {
3109
3109
  return w.pluginName === f;
3110
- })), o.forEach((function(w) {
3111
- t.findIndex((function(_) {
3110
+ }), o.forEach(function(w) {
3111
+ t.findIndex(function(_) {
3112
3112
  return _.pluginName === w;
3113
- }));
3114
- }));
3113
+ });
3114
+ });
3115
3115
  }
3116
3116
  function T(t, o) {
3117
3117
  return typeof t == "function" ? t(o) : t;
3118
3118
  }
3119
3119
  function b(t) {
3120
3120
  var o = i.useRef();
3121
- return o.current = t, i.useCallback((function() {
3121
+ return o.current = t, i.useCallback(function() {
3122
3122
  return o.current;
3123
- }), []);
3123
+ }, []);
3124
3124
  }
3125
3125
  var ee = typeof document < "u" ? i.useLayoutEffect : i.useEffect;
3126
3126
  function B(t, o) {
3127
3127
  var f = i.useRef(!1);
3128
- ee((function() {
3128
+ ee(function() {
3129
3129
  f.current && t(), f.current = !0;
3130
- }), o);
3130
+ }, o);
3131
3131
  }
3132
3132
  function H(t, o, f) {
3133
3133
  return f === void 0 && (f = {}), function(p, w) {
@@ -3138,18 +3138,18 @@ function Ds() {
3138
3138
  };
3139
3139
  }
3140
3140
  function z(t, o) {
3141
- return (function(p) {
3141
+ return function(p) {
3142
3142
  return typeof p == "function" && (w = Object.getPrototypeOf(p)).prototype && w.prototype.isReactComponent;
3143
3143
  var w;
3144
- })(f = t) || typeof f == "function" || (function(p) {
3144
+ }(f = t) || typeof f == "function" || function(p) {
3145
3145
  return typeof p == "object" && typeof p.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(p.$$typeof.description);
3146
- })(f) ? i.createElement(t, o) : t;
3146
+ }(f) ? i.createElement(t, o) : t;
3147
3147
  var f;
3148
3148
  }
3149
3149
  function Q(t, o, f) {
3150
- return f === void 0 && (f = 0), t.map((function(p) {
3150
+ return f === void 0 && (f = 0), t.map(function(p) {
3151
3151
  return ne(p = a({}, p, { parent: o, depth: f })), p.columns && (p.columns = Q(p.columns, p, f + 1)), p;
3152
- }));
3152
+ });
3153
3153
  }
3154
3154
  function Y(t) {
3155
3155
  return he(t, "columns");
@@ -3160,28 +3160,28 @@ function Ds() {
3160
3160
  o = o || f;
3161
3161
  var w = f.split(".");
3162
3162
  f = function(_) {
3163
- return (function(R, q, K) {
3163
+ return function(R, q, K) {
3164
3164
  if (!q) return R;
3165
- var te, ge = typeof q == "function" ? q : JSON.stringify(q), ue = we.get(ge) || (function() {
3166
- var fe = (function(ae) {
3167
- return (function de(Ce, Se) {
3165
+ var te, ge = typeof q == "function" ? q : JSON.stringify(q), ue = we.get(ge) || function() {
3166
+ var fe = function(ae) {
3167
+ return function de(Ce, Se) {
3168
3168
  if (Se === void 0 && (Se = []), Array.isArray(Ce)) for (var ke = 0; ke < Ce.length; ke += 1) de(Ce[ke], Se);
3169
3169
  else Se.push(Ce);
3170
3170
  return Se;
3171
- })(ae).map((function(de) {
3171
+ }(ae).map(function(de) {
3172
3172
  return String(de).replace(".", "_");
3173
- })).join(".").replace(He, ".").replace(gt, "").split(".");
3174
- })(q);
3173
+ }).join(".").replace(He, ".").replace(gt, "").split(".");
3174
+ }(q);
3175
3175
  return we.set(ge, fe), fe;
3176
- })();
3176
+ }();
3177
3177
  try {
3178
- te = ue.reduce((function(fe, ae) {
3178
+ te = ue.reduce(function(fe, ae) {
3179
3179
  return fe[ae];
3180
- }), R);
3180
+ }, R);
3181
3181
  } catch {
3182
3182
  }
3183
3183
  return te !== void 0 ? te : K;
3184
- })(_, w);
3184
+ }(_, w);
3185
3185
  };
3186
3186
  }
3187
3187
  if (!o && typeof p == "string" && p && (o = p), !o && t.columns) throw console.error(t), new Error('A column ID (or unique "Header" value) is required!');
@@ -3199,13 +3199,13 @@ function Ds() {
3199
3199
  for (var p = [], w = t, _ = 0, R = function() {
3200
3200
  return _++;
3201
3201
  }, q = function() {
3202
- var K = { headers: [] }, te = [], ge = w.some((function(ue) {
3202
+ var K = { headers: [] }, te = [], ge = w.some(function(ue) {
3203
3203
  return ue.parent;
3204
- }));
3205
- w.forEach((function(ue) {
3204
+ });
3205
+ w.forEach(function(ue) {
3206
3206
  var fe, ae = [].concat(te).reverse()[0];
3207
3207
  ge && (ue.parent ? fe = a({}, ue.parent, { originalId: ue.parent.id, id: ue.parent.id + "_" + R(), headers: [ue] }, f(ue)) : fe = W(a({ originalId: ue.id + "_placeholder", id: ue.id + "_placeholder_" + R(), placeholderOf: ue, headers: [ue] }, f(ue)), o), ae && ae.originalId === fe.originalId ? ae.headers.push(ue) : te.push(fe)), K.headers.push(ue);
3208
- })), p.push(K), w = te;
3208
+ }), p.push(K), w = te;
3209
3209
  }; w.length; ) q();
3210
3210
  return p.reverse();
3211
3211
  }
@@ -3219,21 +3219,21 @@ function Ds() {
3219
3219
  }
3220
3220
  function he(t, o) {
3221
3221
  var f = [];
3222
- return (function p(w) {
3223
- w.forEach((function(_) {
3222
+ return function p(w) {
3223
+ w.forEach(function(_) {
3224
3224
  _[o] ? p(_[o]) : f.push(_);
3225
- }));
3226
- })(t), f;
3225
+ });
3226
+ }(t), f;
3227
3227
  }
3228
3228
  function X(t, o) {
3229
3229
  var f = o.manualExpandedKey, p = o.expanded, w = o.expandSubRows, _ = w === void 0 || w, R = [];
3230
- return t.forEach((function(q) {
3231
- return (function K(te, ge) {
3232
- ge === void 0 && (ge = !0), te.isExpanded = te.original && te.original[f] || p[te.id], te.canExpand = te.subRows && !!te.subRows.length, ge && R.push(te), te.subRows && te.subRows.length && te.isExpanded && te.subRows.forEach((function(ue) {
3230
+ return t.forEach(function(q) {
3231
+ return function K(te, ge) {
3232
+ ge === void 0 && (ge = !0), te.isExpanded = te.original && te.original[f] || p[te.id], te.canExpand = te.subRows && !!te.subRows.length, ge && R.push(te), te.subRows && te.subRows.length && te.isExpanded && te.subRows.forEach(function(ue) {
3233
3233
  return K(ue, _);
3234
- }));
3235
- })(q);
3236
- })), R;
3234
+ });
3235
+ }(q);
3236
+ }), R;
3237
3237
  }
3238
3238
  function ce(t, o, f) {
3239
3239
  return tt(t) || o[t] || f[t] || f.text;
@@ -3269,10 +3269,10 @@ function Ds() {
3269
3269
  }
3270
3270
  h.resetHiddenColumns = "resetHiddenColumns", h.toggleHideColumn = "toggleHideColumn", h.setHiddenColumns = "setHiddenColumns", h.toggleHideAllColumns = "toggleHideAllColumns";
3271
3271
  var Ie = function(t) {
3272
- t.getToggleHiddenProps = [Ue], t.getToggleHideAllColumnsProps = [le], t.stateReducers.push(J), t.useInstanceBeforeDimensions.push(Z), t.headerGroupsDeps.push((function(o, f) {
3272
+ t.getToggleHiddenProps = [Ue], t.getToggleHideAllColumnsProps = [le], t.stateReducers.push(J), t.useInstanceBeforeDimensions.push(Z), t.headerGroupsDeps.push(function(o, f) {
3273
3273
  var p = f.instance;
3274
3274
  return [].concat(o, [p.state.hiddenColumns]);
3275
- })), t.useInstance.push(se);
3275
+ }), t.useInstance.push(se);
3276
3276
  };
3277
3277
  Ie.pluginName = "useColumnVisibility";
3278
3278
  var Ue = function(t, o) {
@@ -3290,46 +3290,46 @@ function Ds() {
3290
3290
  if (o.type === h.init) return a({ hiddenColumns: [] }, t);
3291
3291
  if (o.type === h.resetHiddenColumns) return a({}, t, { hiddenColumns: p.initialState.hiddenColumns || [] });
3292
3292
  if (o.type === h.toggleHideColumn) {
3293
- var w = (o.value !== void 0 ? o.value : !t.hiddenColumns.includes(o.columnId)) ? [].concat(t.hiddenColumns, [o.columnId]) : t.hiddenColumns.filter((function(_) {
3293
+ var w = (o.value !== void 0 ? o.value : !t.hiddenColumns.includes(o.columnId)) ? [].concat(t.hiddenColumns, [o.columnId]) : t.hiddenColumns.filter(function(_) {
3294
3294
  return _ !== o.columnId;
3295
- }));
3295
+ });
3296
3296
  return a({}, t, { hiddenColumns: w });
3297
3297
  }
3298
- return o.type === h.setHiddenColumns ? a({}, t, { hiddenColumns: T(o.value, t.hiddenColumns) }) : o.type === h.toggleHideAllColumns ? a({}, t, { hiddenColumns: (o.value !== void 0 ? o.value : !t.hiddenColumns.length) ? p.allColumns.map((function(_) {
3298
+ return o.type === h.setHiddenColumns ? a({}, t, { hiddenColumns: T(o.value, t.hiddenColumns) }) : o.type === h.toggleHideAllColumns ? a({}, t, { hiddenColumns: (o.value !== void 0 ? o.value : !t.hiddenColumns.length) ? p.allColumns.map(function(_) {
3299
3299
  return _.id;
3300
- })) : [] }) : void 0;
3300
+ }) : [] }) : void 0;
3301
3301
  }
3302
3302
  function Z(t) {
3303
3303
  var o = t.headers, f = t.state.hiddenColumns;
3304
3304
  i.useRef(!1).current;
3305
3305
  var p = 0;
3306
- o.forEach((function(w) {
3307
- return p += (function _(R, q) {
3306
+ o.forEach(function(w) {
3307
+ return p += function _(R, q) {
3308
3308
  R.isVisible = q && !f.includes(R.id);
3309
3309
  var K = 0;
3310
- return R.headers && R.headers.length ? R.headers.forEach((function(te) {
3310
+ return R.headers && R.headers.length ? R.headers.forEach(function(te) {
3311
3311
  return K += _(te, R.isVisible);
3312
- })) : K = R.isVisible ? 1 : 0, R.totalVisibleHeaderCount = K, K;
3313
- })(w, !0);
3314
- }));
3312
+ }) : K = R.isVisible ? 1 : 0, R.totalVisibleHeaderCount = K, K;
3313
+ }(w, !0);
3314
+ });
3315
3315
  }
3316
3316
  function se(t) {
3317
- var o = t.columns, f = t.flatHeaders, p = t.dispatch, w = t.allColumns, _ = t.getHooks, R = t.state.hiddenColumns, q = t.autoResetHiddenColumns, K = q === void 0 || q, te = b(t), ge = w.length === R.length, ue = i.useCallback((function(Se, ke) {
3317
+ var o = t.columns, f = t.flatHeaders, p = t.dispatch, w = t.allColumns, _ = t.getHooks, R = t.state.hiddenColumns, q = t.autoResetHiddenColumns, K = q === void 0 || q, te = b(t), ge = w.length === R.length, ue = i.useCallback(function(Se, ke) {
3318
3318
  return p({ type: h.toggleHideColumn, columnId: Se, value: ke });
3319
- }), [p]), fe = i.useCallback((function(Se) {
3319
+ }, [p]), fe = i.useCallback(function(Se) {
3320
3320
  return p({ type: h.setHiddenColumns, value: Se });
3321
- }), [p]), ae = i.useCallback((function(Se) {
3321
+ }, [p]), ae = i.useCallback(function(Se) {
3322
3322
  return p({ type: h.toggleHideAllColumns, value: Se });
3323
- }), [p]), de = O(_().getToggleHideAllColumnsProps, { instance: te() });
3324
- f.forEach((function(Se) {
3323
+ }, [p]), de = O(_().getToggleHideAllColumnsProps, { instance: te() });
3324
+ f.forEach(function(Se) {
3325
3325
  Se.toggleHidden = function(ke) {
3326
3326
  p({ type: h.toggleHideColumn, columnId: Se.id, value: ke });
3327
3327
  }, Se.getToggleHiddenProps = O(_().getToggleHiddenProps, { instance: te(), column: Se });
3328
- }));
3328
+ });
3329
3329
  var Ce = b(K);
3330
- B((function() {
3330
+ B(function() {
3331
3331
  Ce() && p({ type: h.resetHiddenColumns });
3332
- }), [p, o]), Object.assign(t, { allColumnsHidden: ge, toggleHideColumn: ue, setHiddenColumns: fe, toggleHideAllColumns: ae, getToggleHideAllColumnsProps: de });
3332
+ }, [p, o]), Object.assign(t, { allColumnsHidden: ge, toggleHideColumn: ue, setHiddenColumns: fe, toggleHideAllColumns: ae, getToggleHideAllColumnsProps: de });
3333
3333
  }
3334
3334
  var Be = {}, Pe = {}, mt = function(t, o, f) {
3335
3335
  return t;
@@ -3347,33 +3347,33 @@ function Ds() {
3347
3347
  function sr(t, o) {
3348
3348
  o === void 0 && (o = 0);
3349
3349
  var f = 0, p = 0, w = 0, _ = 0;
3350
- return t.forEach((function(R) {
3350
+ return t.forEach(function(R) {
3351
3351
  var q = R.headers;
3352
3352
  if (R.totalLeft = o, q && q.length) {
3353
3353
  var K = sr(q, o), te = K[0], ge = K[1], ue = K[2], fe = K[3];
3354
3354
  R.totalMinWidth = te, R.totalWidth = ge, R.totalMaxWidth = ue, R.totalFlexWidth = fe;
3355
3355
  } else R.totalMinWidth = R.minWidth, R.totalWidth = Math.min(Math.max(R.minWidth, R.width), R.maxWidth), R.totalMaxWidth = R.maxWidth, R.totalFlexWidth = R.canResize ? R.totalWidth : 0;
3356
3356
  R.isVisible && (o += R.totalWidth, f += R.totalMinWidth, p += R.totalWidth, w += R.totalMaxWidth, _ += R.totalFlexWidth);
3357
- })), [f, p, w, _];
3357
+ }), [f, p, w, _];
3358
3358
  }
3359
3359
  function or(t) {
3360
3360
  var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.column, R = t.getRowId, q = t.getSubRows, K = t.accessValueHooks, te = t.getInstance;
3361
- o.forEach((function(ge, ue) {
3362
- return (function fe(ae, de, Ce, Se, ke) {
3361
+ o.forEach(function(ge, ue) {
3362
+ return function fe(ae, de, Ce, Se, ke) {
3363
3363
  Ce === void 0 && (Ce = 0);
3364
3364
  var at = ae, Ve = R(ae, de, Se), xe = w[Ve];
3365
- if (xe) xe.subRows && xe.originalSubRows.forEach((function(Ee, Je) {
3365
+ if (xe) xe.subRows && xe.originalSubRows.forEach(function(Ee, Je) {
3366
3366
  return fe(Ee, Je, Ce + 1, xe);
3367
- }));
3367
+ });
3368
3368
  else if ((xe = { id: Ve, original: at, index: de, depth: Ce, cells: [{}] }).cells.map = Ae, xe.cells.filter = Ae, xe.cells.forEach = Ae, xe.cells[0].getCellProps = Ae, xe.values = {}, ke.push(xe), p.push(xe), w[Ve] = xe, xe.originalSubRows = q(ae, de), xe.originalSubRows) {
3369
3369
  var rt = [];
3370
- xe.originalSubRows.forEach((function(Ee, Je) {
3370
+ xe.originalSubRows.forEach(function(Ee, Je) {
3371
3371
  return fe(Ee, Je, Ce + 1, xe, rt);
3372
- })), xe.subRows = rt;
3372
+ }), xe.subRows = rt;
3373
3373
  }
3374
3374
  _.accessor && (xe.values[_.id] = _.accessor(ae, de, xe, ke, o)), xe.values[_.id] = I(K, xe.values[_.id], { row: xe, column: _, instance: te() });
3375
- })(ge, ue, 0, void 0, f);
3376
- }));
3375
+ }(ge, ue, 0, void 0, f);
3376
+ });
3377
3377
  }
3378
3378
  h.resetExpanded = "resetExpanded", h.toggleRowExpanded = "toggleRowExpanded", h.toggleAllRowsExpanded = "toggleAllRowsExpanded";
3379
3379
  var fr = function(t) {
@@ -3398,9 +3398,9 @@ function Ds() {
3398
3398
  var w = o.value, _ = p.rowsById, R = Object.keys(_).length === Object.keys(t.expanded).length;
3399
3399
  if (w !== void 0 ? w : !R) {
3400
3400
  var q = {};
3401
- return Object.keys(_).forEach((function(de) {
3401
+ return Object.keys(_).forEach(function(de) {
3402
3402
  q[de] = !0;
3403
- })), a({}, t, { expanded: q });
3403
+ }), a({}, t, { expanded: q });
3404
3404
  }
3405
3405
  return a({}, t, { expanded: {} });
3406
3406
  }
@@ -3418,26 +3418,26 @@ function Ds() {
3418
3418
  var o = t.data, f = t.rows, p = t.rowsById, w = t.manualExpandedKey, _ = w === void 0 ? "expanded" : w, R = t.paginateExpandedRows, q = R === void 0 || R, K = t.expandSubRows, te = K === void 0 || K, ge = t.autoResetExpanded, ue = ge === void 0 || ge, fe = t.getHooks, ae = t.plugins, de = t.state.expanded, Ce = t.dispatch;
3419
3419
  P(ae, ["useSortBy", "useGroupBy", "usePivotColumns", "useGlobalFilter"], "useExpanded");
3420
3420
  var Se = b(ue), ke = !!(Object.keys(p).length && Object.keys(de).length);
3421
- ke && Object.keys(p).some((function(vt) {
3421
+ ke && Object.keys(p).some(function(vt) {
3422
3422
  return !de[vt];
3423
- })) && (ke = !1), B((function() {
3423
+ }) && (ke = !1), B(function() {
3424
3424
  Se() && Ce({ type: h.resetExpanded });
3425
- }), [Ce, o]);
3426
- var at = i.useCallback((function(vt, qe) {
3425
+ }, [Ce, o]);
3426
+ var at = i.useCallback(function(vt, qe) {
3427
3427
  Ce({ type: h.toggleRowExpanded, id: vt, value: qe });
3428
- }), [Ce]), Ve = i.useCallback((function(vt) {
3428
+ }, [Ce]), Ve = i.useCallback(function(vt) {
3429
3429
  return Ce({ type: h.toggleAllRowsExpanded, value: vt });
3430
- }), [Ce]), xe = i.useMemo((function() {
3430
+ }, [Ce]), xe = i.useMemo(function() {
3431
3431
  return q ? X(f, { manualExpandedKey: _, expanded: de, expandSubRows: te }) : f;
3432
- }), [q, f, _, de, te]), rt = i.useMemo((function() {
3433
- return (function(vt) {
3432
+ }, [q, f, _, de, te]), rt = i.useMemo(function() {
3433
+ return function(vt) {
3434
3434
  var qe = 0;
3435
- return Object.keys(vt).forEach((function(Ke) {
3435
+ return Object.keys(vt).forEach(function(Ke) {
3436
3436
  var Pt = Ke.split(".");
3437
3437
  qe = Math.max(qe, Pt.length);
3438
- })), qe;
3439
- })(de);
3440
- }), [de]), Ee = b(t), Je = O(fe().getToggleAllRowsExpandedProps, { instance: Ee() });
3438
+ }), qe;
3439
+ }(de);
3440
+ }, [de]), Ee = b(t), Je = O(fe().getToggleAllRowsExpandedProps, { instance: Ee() });
3441
3441
  Object.assign(t, { preExpandedRows: f, expandedRows: xe, rows: xe, expandedDepth: rt, isAllRowsExpanded: ke, toggleRowExpanded: at, toggleAllRowsExpanded: Ve, getToggleAllRowsExpandedProps: Je });
3442
3442
  }
3443
3443
  function cr(t, o) {
@@ -3447,101 +3447,101 @@ function Ds() {
3447
3447
  }, t.getToggleRowExpandedProps = O(f().getToggleRowExpandedProps, { instance: p, row: t });
3448
3448
  }
3449
3449
  var yr = function(t, o, f) {
3450
- return t = t.filter((function(p) {
3451
- return o.some((function(w) {
3450
+ return t = t.filter(function(p) {
3451
+ return o.some(function(w) {
3452
3452
  var _ = p.values[w];
3453
3453
  return String(_).toLowerCase().includes(String(f).toLowerCase());
3454
- }));
3455
- }));
3454
+ });
3455
+ });
3456
3456
  };
3457
3457
  yr.autoRemove = function(t) {
3458
3458
  return !t;
3459
3459
  };
3460
3460
  var Rr = function(t, o, f) {
3461
- return t.filter((function(p) {
3462
- return o.some((function(w) {
3461
+ return t.filter(function(p) {
3462
+ return o.some(function(w) {
3463
3463
  var _ = p.values[w];
3464
3464
  return _ === void 0 || String(_).toLowerCase() === String(f).toLowerCase();
3465
- }));
3466
- }));
3465
+ });
3466
+ });
3467
3467
  };
3468
3468
  Rr.autoRemove = function(t) {
3469
3469
  return !t;
3470
3470
  };
3471
3471
  var gr = function(t, o, f) {
3472
- return t.filter((function(p) {
3473
- return o.some((function(w) {
3472
+ return t.filter(function(p) {
3473
+ return o.some(function(w) {
3474
3474
  var _ = p.values[w];
3475
3475
  return _ === void 0 || String(_) === String(f);
3476
- }));
3477
- }));
3476
+ });
3477
+ });
3478
3478
  };
3479
3479
  gr.autoRemove = function(t) {
3480
3480
  return !t;
3481
3481
  };
3482
3482
  var jr = function(t, o, f) {
3483
- return t.filter((function(p) {
3484
- return o.some((function(w) {
3483
+ return t.filter(function(p) {
3484
+ return o.some(function(w) {
3485
3485
  return p.values[w].includes(f);
3486
- }));
3487
- }));
3486
+ });
3487
+ });
3488
3488
  };
3489
3489
  jr.autoRemove = function(t) {
3490
3490
  return !t || !t.length;
3491
3491
  };
3492
3492
  var dt = function(t, o, f) {
3493
- return t.filter((function(p) {
3494
- return o.some((function(w) {
3493
+ return t.filter(function(p) {
3494
+ return o.some(function(w) {
3495
3495
  var _ = p.values[w];
3496
- return _ && _.length && f.every((function(R) {
3496
+ return _ && _.length && f.every(function(R) {
3497
3497
  return _.includes(R);
3498
- }));
3499
- }));
3500
- }));
3498
+ });
3499
+ });
3500
+ });
3501
3501
  };
3502
3502
  dt.autoRemove = function(t) {
3503
3503
  return !t || !t.length;
3504
3504
  };
3505
3505
  var wt = function(t, o, f) {
3506
- return t.filter((function(p) {
3507
- return o.some((function(w) {
3506
+ return t.filter(function(p) {
3507
+ return o.some(function(w) {
3508
3508
  var _ = p.values[w];
3509
- return _ && _.length && f.some((function(R) {
3509
+ return _ && _.length && f.some(function(R) {
3510
3510
  return _.includes(R);
3511
- }));
3512
- }));
3513
- }));
3511
+ });
3512
+ });
3513
+ });
3514
3514
  };
3515
3515
  wt.autoRemove = function(t) {
3516
3516
  return !t || !t.length;
3517
3517
  };
3518
3518
  var ut = function(t, o, f) {
3519
- return t.filter((function(p) {
3520
- return o.some((function(w) {
3519
+ return t.filter(function(p) {
3520
+ return o.some(function(w) {
3521
3521
  var _ = p.values[w];
3522
3522
  return f.includes(_);
3523
- }));
3524
- }));
3523
+ });
3524
+ });
3525
3525
  };
3526
3526
  ut.autoRemove = function(t) {
3527
3527
  return !t || !t.length;
3528
3528
  };
3529
3529
  var St = function(t, o, f) {
3530
- return t.filter((function(p) {
3531
- return o.some((function(w) {
3530
+ return t.filter(function(p) {
3531
+ return o.some(function(w) {
3532
3532
  return p.values[w] === f;
3533
- }));
3534
- }));
3533
+ });
3534
+ });
3535
3535
  };
3536
3536
  St.autoRemove = function(t) {
3537
3537
  return t === void 0;
3538
3538
  };
3539
3539
  var zt = function(t, o, f) {
3540
- return t.filter((function(p) {
3541
- return o.some((function(w) {
3540
+ return t.filter(function(p) {
3541
+ return o.some(function(w) {
3542
3542
  return p.values[w] == f;
3543
- }));
3544
- }));
3543
+ });
3544
+ });
3545
3545
  };
3546
3546
  zt.autoRemove = function(t) {
3547
3547
  return t == null;
@@ -3552,12 +3552,12 @@ function Ds() {
3552
3552
  var R = w;
3553
3553
  w = _, _ = R;
3554
3554
  }
3555
- return t.filter((function(q) {
3556
- return o.some((function(K) {
3555
+ return t.filter(function(q) {
3556
+ return o.some(function(K) {
3557
3557
  var te = q.values[K];
3558
3558
  return te >= w && te <= _;
3559
- }));
3560
- }));
3559
+ });
3560
+ });
3561
3561
  };
3562
3562
  Ot.autoRemove = function(t) {
3563
3563
  return !t || typeof t[0] != "number" && typeof t[1] != "number";
@@ -3571,77 +3571,77 @@ function Ds() {
3571
3571
  if (o.type === h.init) return a({ filters: [] }, t);
3572
3572
  if (o.type === h.resetFilters) return a({}, t, { filters: p.initialState.filters || [] });
3573
3573
  if (o.type === h.setFilter) {
3574
- var w = o.columnId, _ = o.filterValue, R = p.allColumns, q = p.filterTypes, K = R.find((function(Ce) {
3574
+ var w = o.columnId, _ = o.filterValue, R = p.allColumns, q = p.filterTypes, K = R.find(function(Ce) {
3575
3575
  return Ce.id === w;
3576
- }));
3576
+ });
3577
3577
  if (!K) throw new Error("React-Table: Could not find a column with id: " + w);
3578
- var te = ce(K.filter, q || {}, Yt), ge = t.filters.find((function(Ce) {
3578
+ var te = ce(K.filter, q || {}, Yt), ge = t.filters.find(function(Ce) {
3579
3579
  return Ce.id === w;
3580
- })), ue = T(_, ge && ge.value);
3581
- return M(te.autoRemove, ue, K) ? a({}, t, { filters: t.filters.filter((function(Ce) {
3580
+ }), ue = T(_, ge && ge.value);
3581
+ return M(te.autoRemove, ue, K) ? a({}, t, { filters: t.filters.filter(function(Ce) {
3582
3582
  return Ce.id !== w;
3583
- })) }) : a({}, t, ge ? { filters: t.filters.map((function(Ce) {
3583
+ }) }) : a({}, t, ge ? { filters: t.filters.map(function(Ce) {
3584
3584
  return Ce.id === w ? { id: w, value: ue } : Ce;
3585
- })) } : { filters: [].concat(t.filters, [{ id: w, value: ue }]) });
3585
+ }) } : { filters: [].concat(t.filters, [{ id: w, value: ue }]) });
3586
3586
  }
3587
3587
  if (o.type === h.setAllFilters) {
3588
3588
  var fe = o.filters, ae = p.allColumns, de = p.filterTypes;
3589
- return a({}, t, { filters: T(fe, t.filters).filter((function(Ce) {
3590
- var Se = ae.find((function(ke) {
3589
+ return a({}, t, { filters: T(fe, t.filters).filter(function(Ce) {
3590
+ var Se = ae.find(function(ke) {
3591
3591
  return ke.id === Ce.id;
3592
- }));
3592
+ });
3593
3593
  return !M(ce(Se.filter, de || {}, Yt).autoRemove, Ce.value, Se);
3594
- })) });
3594
+ }) });
3595
3595
  }
3596
3596
  }
3597
3597
  function E(t) {
3598
- var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.manualFilters, K = t.defaultCanFilter, te = K !== void 0 && K, ge = t.disableFilters, ue = t.state.filters, fe = t.dispatch, ae = t.autoResetFilters, de = ae === void 0 || ae, Ce = i.useCallback((function(Ee, Je) {
3598
+ var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.manualFilters, K = t.defaultCanFilter, te = K !== void 0 && K, ge = t.disableFilters, ue = t.state.filters, fe = t.dispatch, ae = t.autoResetFilters, de = ae === void 0 || ae, Ce = i.useCallback(function(Ee, Je) {
3599
3599
  fe({ type: h.setFilter, columnId: Ee, filterValue: Je });
3600
- }), [fe]), Se = i.useCallback((function(Ee) {
3600
+ }, [fe]), Se = i.useCallback(function(Ee) {
3601
3601
  fe({ type: h.setAllFilters, filters: Ee });
3602
- }), [fe]);
3603
- _.forEach((function(Ee) {
3602
+ }, [fe]);
3603
+ _.forEach(function(Ee) {
3604
3604
  var Je = Ee.id, vt = Ee.accessor, qe = Ee.defaultCanFilter, Ke = Ee.disableFilters;
3605
3605
  Ee.canFilter = vt ? _e(Ke !== !0 && void 0, ge !== !0 && void 0, !0) : _e(qe, te, !1), Ee.setFilter = function(et) {
3606
3606
  return Ce(Ee.id, et);
3607
3607
  };
3608
- var Pt = ue.find((function(et) {
3608
+ var Pt = ue.find(function(et) {
3609
3609
  return et.id === Je;
3610
- }));
3610
+ });
3611
3611
  Ee.filterValue = Pt && Pt.value;
3612
- }));
3613
- var ke = i.useMemo((function() {
3612
+ });
3613
+ var ke = i.useMemo(function() {
3614
3614
  if (q || !ue.length) return [f, p, w];
3615
3615
  var Ee = [], Je = {};
3616
- return [(function vt(qe, Ke) {
3616
+ return [function vt(qe, Ke) {
3617
3617
  Ke === void 0 && (Ke = 0);
3618
3618
  var Pt = qe;
3619
- return (Pt = ue.reduce((function(et, Ct) {
3620
- var r = Ct.id, l = Ct.value, c = _.find((function(x) {
3619
+ return (Pt = ue.reduce(function(et, Ct) {
3620
+ var r = Ct.id, l = Ct.value, c = _.find(function(x) {
3621
3621
  return x.id === r;
3622
- }));
3622
+ });
3623
3623
  if (!c) return et;
3624
3624
  Ke === 0 && (c.preFilteredRows = et);
3625
3625
  var s = ce(c.filter, R || {}, Yt);
3626
3626
  return s ? (c.filteredRows = s(et, [r], l), c.filteredRows) : (console.warn("Could not find a valid 'column.filter' for column with the ID: " + c.id + "."), et);
3627
- }), qe)).forEach((function(et) {
3627
+ }, qe)).forEach(function(et) {
3628
3628
  Ee.push(et), Je[et.id] = et, et.subRows && (et.subRows = et.subRows && et.subRows.length > 0 ? vt(et.subRows, Ke + 1) : et.subRows);
3629
- })), Pt;
3630
- })(f), Ee, Je];
3631
- }), [q, ue, f, p, w, _, R]), at = ke[0], Ve = ke[1], xe = ke[2];
3632
- i.useMemo((function() {
3633
- _.filter((function(Ee) {
3634
- return !ue.find((function(Je) {
3629
+ }), Pt;
3630
+ }(f), Ee, Je];
3631
+ }, [q, ue, f, p, w, _, R]), at = ke[0], Ve = ke[1], xe = ke[2];
3632
+ i.useMemo(function() {
3633
+ _.filter(function(Ee) {
3634
+ return !ue.find(function(Je) {
3635
3635
  return Je.id === Ee.id;
3636
- }));
3637
- })).forEach((function(Ee) {
3636
+ });
3637
+ }).forEach(function(Ee) {
3638
3638
  Ee.preFilteredRows = at, Ee.filteredRows = at;
3639
- }));
3640
- }), [at, ue, _]);
3639
+ });
3640
+ }, [at, ue, _]);
3641
3641
  var rt = b(de);
3642
- B((function() {
3642
+ B(function() {
3643
3643
  rt() && fe({ type: h.resetFilters });
3644
- }), [fe, q ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById: w, filteredRows: at, filteredFlatRows: Ve, filteredRowsById: xe, rows: at, flatRows: Ve, rowsById: xe, setFilter: Ce, setAllFilters: Se });
3644
+ }, [fe, q ? null : o]), Object.assign(t, { preFilteredRows: f, preFilteredFlatRows: p, preFilteredRowsById: w, filteredRows: at, filteredFlatRows: Ve, filteredRowsById: xe, rows: at, flatRows: Ve, rowsById: xe, setFilter: Ce, setAllFilters: Se });
3645
3645
  }
3646
3646
  Ut.pluginName = "useFilters", h.resetGlobalFilter = "resetGlobalFilter", h.setGlobalFilter = "setGlobalFilter";
3647
3647
  var ve = function(t) {
@@ -3655,59 +3655,59 @@ function Ds() {
3655
3655
  }
3656
3656
  }
3657
3657
  function qt(t) {
3658
- var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.globalFilter, K = t.manualGlobalFilter, te = t.state.globalFilter, ge = t.dispatch, ue = t.autoResetGlobalFilter, fe = ue === void 0 || ue, ae = t.disableGlobalFilter, de = i.useCallback((function(xe) {
3658
+ var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.filterTypes, q = t.globalFilter, K = t.manualGlobalFilter, te = t.state.globalFilter, ge = t.dispatch, ue = t.autoResetGlobalFilter, fe = ue === void 0 || ue, ae = t.disableGlobalFilter, de = i.useCallback(function(xe) {
3659
3659
  ge({ type: h.setGlobalFilter, filterValue: xe });
3660
- }), [ge]), Ce = i.useMemo((function() {
3660
+ }, [ge]), Ce = i.useMemo(function() {
3661
3661
  if (K || te === void 0) return [f, p, w];
3662
3662
  var xe = [], rt = {}, Ee = ce(q, R || {}, Yt);
3663
3663
  if (!Ee) return console.warn("Could not find a valid 'globalFilter' option."), f;
3664
- _.forEach((function(vt) {
3664
+ _.forEach(function(vt) {
3665
3665
  var qe = vt.disableGlobalFilter;
3666
3666
  vt.canFilter = _e(qe !== !0 && void 0, ae !== !0 && void 0, !0);
3667
- }));
3668
- var Je = _.filter((function(vt) {
3667
+ });
3668
+ var Je = _.filter(function(vt) {
3669
3669
  return vt.canFilter === !0;
3670
- }));
3671
- return [(function vt(qe) {
3672
- return (qe = Ee(qe, Je.map((function(Ke) {
3670
+ });
3671
+ return [function vt(qe) {
3672
+ return (qe = Ee(qe, Je.map(function(Ke) {
3673
3673
  return Ke.id;
3674
- })), te)).forEach((function(Ke) {
3674
+ }), te)).forEach(function(Ke) {
3675
3675
  xe.push(Ke), rt[Ke.id] = Ke, Ke.subRows = Ke.subRows && Ke.subRows.length ? vt(Ke.subRows) : Ke.subRows;
3676
- })), qe;
3677
- })(f), xe, rt];
3678
- }), [K, te, q, R, _, f, p, w, ae]), Se = Ce[0], ke = Ce[1], at = Ce[2], Ve = b(fe);
3679
- B((function() {
3676
+ }), qe;
3677
+ }(f), xe, rt];
3678
+ }, [K, te, q, R, _, f, p, w, ae]), Se = Ce[0], ke = Ce[1], at = Ce[2], Ve = b(fe);
3679
+ B(function() {
3680
3680
  Ve() && ge({ type: h.resetGlobalFilter });
3681
- }), [ge, K ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById: w, globalFilteredRows: Se, globalFilteredFlatRows: ke, globalFilteredRowsById: at, rows: Se, flatRows: ke, rowsById: at, setGlobalFilter: de, disableGlobalFilter: ae });
3681
+ }, [ge, K ? null : o]), Object.assign(t, { preGlobalFilteredRows: f, preGlobalFilteredFlatRows: p, preGlobalFilteredRowsById: w, globalFilteredRows: Se, globalFilteredFlatRows: ke, globalFilteredRowsById: at, rows: Se, flatRows: ke, rowsById: at, setGlobalFilter: de, disableGlobalFilter: ae });
3682
3682
  }
3683
3683
  function tr(t, o) {
3684
- return o.reduce((function(f, p) {
3684
+ return o.reduce(function(f, p) {
3685
3685
  return f + (typeof p == "number" ? p : 0);
3686
- }), 0);
3686
+ }, 0);
3687
3687
  }
3688
3688
  ve.pluginName = "useGlobalFilter";
3689
3689
  var lr = Object.freeze({ __proto__: null, sum: tr, min: function(t) {
3690
3690
  var o = t[0] || 0;
3691
- return t.forEach((function(f) {
3691
+ return t.forEach(function(f) {
3692
3692
  typeof f == "number" && (o = Math.min(o, f));
3693
- })), o;
3693
+ }), o;
3694
3694
  }, max: function(t) {
3695
3695
  var o = t[0] || 0;
3696
- return t.forEach((function(f) {
3696
+ return t.forEach(function(f) {
3697
3697
  typeof f == "number" && (o = Math.max(o, f));
3698
- })), o;
3698
+ }), o;
3699
3699
  }, minMax: function(t) {
3700
3700
  var o = t[0] || 0, f = t[0] || 0;
3701
- return t.forEach((function(p) {
3701
+ return t.forEach(function(p) {
3702
3702
  typeof p == "number" && (o = Math.min(o, p), f = Math.max(f, p));
3703
- })), o + ".." + f;
3703
+ }), o + ".." + f;
3704
3704
  }, average: function(t) {
3705
3705
  return tr(0, t) / t.length;
3706
3706
  }, median: function(t) {
3707
3707
  if (!t.length) return null;
3708
- var o = Math.floor(t.length / 2), f = [].concat(t).sort((function(p, w) {
3708
+ var o = Math.floor(t.length / 2), f = [].concat(t).sort(function(p, w) {
3709
3709
  return p - w;
3710
- }));
3710
+ });
3711
3711
  return t.length % 2 != 0 ? f[o] : (f[o - 1] + f[o]) / 2;
3712
3712
  }, unique: function(t) {
3713
3713
  return Array.from(new Set(t).values());
@@ -3718,10 +3718,10 @@ function Ds() {
3718
3718
  } }), dr = [], Hr = {};
3719
3719
  h.resetGroupBy = "resetGroupBy", h.setGroupBy = "setGroupBy", h.toggleGroupBy = "toggleGroupBy";
3720
3720
  var zr = function(t) {
3721
- t.getGroupByToggleProps = [fl], t.stateReducers.push(Tr), t.visibleColumnsDeps.push((function(o, f) {
3721
+ t.getGroupByToggleProps = [fl], t.stateReducers.push(Tr), t.visibleColumnsDeps.push(function(o, f) {
3722
3722
  var p = f.instance;
3723
3723
  return [].concat(o, [p.state.groupBy]);
3724
- })), t.visibleColumns.push(hl), t.useInstance.push(Kl), t.prepareRow.push(pl);
3724
+ }), t.visibleColumns.push(hl), t.useInstance.push(Kl), t.prepareRow.push(pl);
3725
3725
  };
3726
3726
  zr.pluginName = "useGroupBy";
3727
3727
  var fl = function(t, o) {
@@ -3736,64 +3736,64 @@ function Ds() {
3736
3736
  if (o.type === h.setGroupBy) return a({}, t, { groupBy: o.value });
3737
3737
  if (o.type === h.toggleGroupBy) {
3738
3738
  var w = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.groupBy.includes(w);
3739
- return a({}, t, R ? { groupBy: [].concat(t.groupBy, [w]) } : { groupBy: t.groupBy.filter((function(q) {
3739
+ return a({}, t, R ? { groupBy: [].concat(t.groupBy, [w]) } : { groupBy: t.groupBy.filter(function(q) {
3740
3740
  return q !== w;
3741
- })) });
3741
+ }) });
3742
3742
  }
3743
3743
  }
3744
3744
  function hl(t, o) {
3745
- var f = o.instance.state.groupBy, p = f.map((function(_) {
3746
- return t.find((function(R) {
3745
+ var f = o.instance.state.groupBy, p = f.map(function(_) {
3746
+ return t.find(function(R) {
3747
3747
  return R.id === _;
3748
- }));
3749
- })).filter(Boolean), w = t.filter((function(_) {
3748
+ });
3749
+ }).filter(Boolean), w = t.filter(function(_) {
3750
3750
  return !f.includes(_.id);
3751
- }));
3752
- return (t = [].concat(p, w)).forEach((function(_) {
3751
+ });
3752
+ return (t = [].concat(p, w)).forEach(function(_) {
3753
3753
  _.isGrouped = f.includes(_.id), _.groupedIndex = f.indexOf(_.id);
3754
- })), t;
3754
+ }), t;
3755
3755
  }
3756
3756
  var Zl = {};
3757
3757
  function Kl(t) {
3758
3758
  var o = t.data, f = t.rows, p = t.flatRows, w = t.rowsById, _ = t.allColumns, R = t.flatHeaders, q = t.groupByFn, K = q === void 0 ? ml : q, te = t.manualGroupBy, ge = t.aggregations, ue = ge === void 0 ? Zl : ge, fe = t.plugins, ae = t.state.groupBy, de = t.dispatch, Ce = t.autoResetGroupBy, Se = Ce === void 0 || Ce, ke = t.disableGroupBy, at = t.defaultCanGroupBy, Ve = t.getHooks;
3759
3759
  P(fe, ["useColumnOrder", "useFilters"], "useGroupBy");
3760
3760
  var xe = b(t);
3761
- _.forEach((function(c) {
3761
+ _.forEach(function(c) {
3762
3762
  var s = c.accessor, x = c.defaultGroupBy, y = c.disableGroupBy;
3763
3763
  c.canGroupBy = s ? _e(c.canGroupBy, y !== !0 && void 0, ke !== !0 && void 0, !0) : _e(c.canGroupBy, x, at, !1), c.canGroupBy && (c.toggleGroupBy = function() {
3764
3764
  return t.toggleGroupBy(c.id);
3765
3765
  }), c.Aggregated = c.Aggregated || c.Cell;
3766
- }));
3767
- var rt = i.useCallback((function(c, s) {
3766
+ });
3767
+ var rt = i.useCallback(function(c, s) {
3768
3768
  de({ type: h.toggleGroupBy, columnId: c, value: s });
3769
- }), [de]), Ee = i.useCallback((function(c) {
3769
+ }, [de]), Ee = i.useCallback(function(c) {
3770
3770
  de({ type: h.setGroupBy, value: c });
3771
- }), [de]);
3772
- R.forEach((function(c) {
3771
+ }, [de]);
3772
+ R.forEach(function(c) {
3773
3773
  c.getGroupByToggleProps = O(Ve().getGroupByToggleProps, { instance: xe(), header: c });
3774
- }));
3775
- var Je = i.useMemo((function() {
3774
+ });
3775
+ var Je = i.useMemo(function() {
3776
3776
  if (te || !ae.length) return [f, p, w, dr, Hr, p, w];
3777
- var c = ae.filter((function(re) {
3778
- return _.find((function(ye) {
3777
+ var c = ae.filter(function(re) {
3778
+ return _.find(function(ye) {
3779
3779
  return ye.id === re;
3780
- }));
3781
- })), s = [], x = {}, y = [], m = {}, j = [], F = {}, $ = (function re(ye, oe, pe) {
3782
- if (oe === void 0 && (oe = 0), oe === c.length) return ye.map((function(Ge) {
3780
+ });
3781
+ }), s = [], x = {}, y = [], m = {}, j = [], F = {}, $ = function re(ye, oe, pe) {
3782
+ if (oe === void 0 && (oe = 0), oe === c.length) return ye.map(function(Ge) {
3783
3783
  return a({}, Ge, { depth: oe });
3784
- }));
3784
+ });
3785
3785
  var be = c[oe], ie = K(ye, be);
3786
- return Object.entries(ie).map((function(Ge, ze) {
3787
- var Ze = Ge[0], je = Ge[1], lt = be + ":" + Ze, ft = re(je, oe + 1, lt = pe ? pe + ">" + lt : lt), Ne = oe ? he(je, "leafRows") : je, Re = (function(Oe, nt, ot) {
3786
+ return Object.entries(ie).map(function(Ge, ze) {
3787
+ var Ze = Ge[0], je = Ge[1], lt = be + ":" + Ze, ft = re(je, oe + 1, lt = pe ? pe + ">" + lt : lt), Ne = oe ? he(je, "leafRows") : je, Re = function(Oe, nt, ot) {
3788
3788
  var Tt = {};
3789
- return _.forEach((function(Me) {
3789
+ return _.forEach(function(Me) {
3790
3790
  if (c.includes(Me.id)) Tt[Me.id] = nt[0] ? nt[0].values[Me.id] : null;
3791
3791
  else {
3792
3792
  var Jt = typeof Me.aggregate == "function" ? Me.aggregate : ue[Me.aggregate] || lr[Me.aggregate];
3793
3793
  if (Jt) {
3794
- var ct = nt.map((function(Qe) {
3794
+ var ct = nt.map(function(Qe) {
3795
3795
  return Qe.values[Me.id];
3796
- })), Xe = Oe.map((function(Qe) {
3796
+ }), Xe = Oe.map(function(Qe) {
3797
3797
  var Gt = Qe.values[Me.id];
3798
3798
  if (!ot && Me.aggregateValue) {
3799
3799
  var er = typeof Me.aggregateValue == "function" ? Me.aggregateValue : ue[Me.aggregateValue] || lr[Me.aggregateValue];
@@ -3801,39 +3801,39 @@ function Ds() {
3801
3801
  Gt = er(Gt, Qe, Me);
3802
3802
  }
3803
3803
  return Gt;
3804
- }));
3804
+ });
3805
3805
  Tt[Me.id] = Jt(Xe, ct);
3806
3806
  } else {
3807
3807
  if (Me.aggregate) throw console.info({ column: Me }), new Error("React Table: Invalid column.aggregate option for column listed above");
3808
3808
  Tt[Me.id] = null;
3809
3809
  }
3810
3810
  }
3811
- })), Tt;
3812
- })(Ne, je, oe), De = { id: lt, isGrouped: !0, groupByID: be, groupByVal: Ze, values: Re, subRows: ft, leafRows: Ne, depth: oe, index: ze };
3813
- return ft.forEach((function(Oe) {
3811
+ }), Tt;
3812
+ }(Ne, je, oe), De = { id: lt, isGrouped: !0, groupByID: be, groupByVal: Ze, values: Re, subRows: ft, leafRows: Ne, depth: oe, index: ze };
3813
+ return ft.forEach(function(Oe) {
3814
3814
  s.push(Oe), x[Oe.id] = Oe, Oe.isGrouped ? (y.push(Oe), m[Oe.id] = Oe) : (j.push(Oe), F[Oe.id] = Oe);
3815
- })), De;
3816
- }));
3817
- })(f);
3818
- return $.forEach((function(re) {
3815
+ }), De;
3816
+ });
3817
+ }(f);
3818
+ return $.forEach(function(re) {
3819
3819
  s.push(re), x[re.id] = re, re.isGrouped ? (y.push(re), m[re.id] = re) : (j.push(re), F[re.id] = re);
3820
- })), [$, s, x, y, m, j, F];
3821
- }), [te, ae, f, p, w, _, ue, K]), vt = Je[0], qe = Je[1], Ke = Je[2], Pt = Je[3], et = Je[4], Ct = Je[5], r = Je[6], l = b(Se);
3822
- B((function() {
3820
+ }), [$, s, x, y, m, j, F];
3821
+ }, [te, ae, f, p, w, _, ue, K]), vt = Je[0], qe = Je[1], Ke = Je[2], Pt = Je[3], et = Je[4], Ct = Je[5], r = Je[6], l = b(Se);
3822
+ B(function() {
3823
3823
  l() && de({ type: h.resetGroupBy });
3824
- }), [de, te ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById: w, groupedRows: vt, groupedFlatRows: qe, groupedRowsById: Ke, onlyGroupedFlatRows: Pt, onlyGroupedRowsById: et, nonGroupedFlatRows: Ct, nonGroupedRowsById: r, rows: vt, flatRows: qe, rowsById: Ke, toggleGroupBy: rt, setGroupBy: Ee });
3824
+ }, [de, te ? null : o]), Object.assign(t, { preGroupedRows: f, preGroupedFlatRow: p, preGroupedRowsById: w, groupedRows: vt, groupedFlatRows: qe, groupedRowsById: Ke, onlyGroupedFlatRows: Pt, onlyGroupedRowsById: et, nonGroupedFlatRows: Ct, nonGroupedRowsById: r, rows: vt, flatRows: qe, rowsById: Ke, toggleGroupBy: rt, setGroupBy: Ee });
3825
3825
  }
3826
3826
  function pl(t) {
3827
- t.allCells.forEach((function(o) {
3827
+ t.allCells.forEach(function(o) {
3828
3828
  var f;
3829
3829
  o.isGrouped = o.column.isGrouped && o.column.id === t.groupByID, o.isPlaceholder = !o.isGrouped && o.column.isGrouped, o.isAggregated = !o.isGrouped && !o.isPlaceholder && ((f = t.subRows) == null ? void 0 : f.length);
3830
- }));
3830
+ });
3831
3831
  }
3832
3832
  function ml(t, o) {
3833
- return t.reduce((function(f, p, w) {
3833
+ return t.reduce(function(f, p, w) {
3834
3834
  var _ = "" + p.values[o];
3835
3835
  return f[_] = Array.isArray(f[_]) ? f[_] : [], f[_].push(p), f;
3836
- }), {});
3836
+ }, {});
3837
3837
  }
3838
3838
  var gl = /([0-9]+)/gm;
3839
3839
  function Lr(t, o) {
@@ -3895,88 +3895,88 @@ function Ds() {
3895
3895
  function Ql(t, o, f, p) {
3896
3896
  if (o.type === h.init) return a({ sortBy: [] }, t);
3897
3897
  if (o.type === h.resetSortBy) return a({}, t, { sortBy: p.initialState.sortBy || [] });
3898
- if (o.type === h.clearSortBy) return a({}, t, { sortBy: t.sortBy.filter((function(xe) {
3898
+ if (o.type === h.clearSortBy) return a({}, t, { sortBy: t.sortBy.filter(function(xe) {
3899
3899
  return xe.id !== o.columnId;
3900
- })) });
3900
+ }) });
3901
3901
  if (o.type === h.setSortBy) return a({}, t, { sortBy: o.sortBy });
3902
3902
  if (o.type === h.toggleSortBy) {
3903
- var w, _ = o.columnId, R = o.desc, q = o.multi, K = p.allColumns, te = p.disableMultiSort, ge = p.disableSortRemove, ue = p.disableMultiRemove, fe = p.maxMultiSortColCount, ae = fe === void 0 ? Number.MAX_SAFE_INTEGER : fe, de = t.sortBy, Ce = K.find((function(xe) {
3903
+ var w, _ = o.columnId, R = o.desc, q = o.multi, K = p.allColumns, te = p.disableMultiSort, ge = p.disableSortRemove, ue = p.disableMultiRemove, fe = p.maxMultiSortColCount, ae = fe === void 0 ? Number.MAX_SAFE_INTEGER : fe, de = t.sortBy, Ce = K.find(function(xe) {
3904
3904
  return xe.id === _;
3905
- })).sortDescFirst, Se = de.find((function(xe) {
3905
+ }).sortDescFirst, Se = de.find(function(xe) {
3906
3906
  return xe.id === _;
3907
- })), ke = de.findIndex((function(xe) {
3907
+ }), ke = de.findIndex(function(xe) {
3908
3908
  return xe.id === _;
3909
- })), at = R != null, Ve = [];
3910
- return (w = !te && q ? Se ? "toggle" : "add" : ke !== de.length - 1 || de.length !== 1 ? "replace" : Se ? "toggle" : "replace") != "toggle" || ge || at || q && ue || !(Se && Se.desc && !Ce || !Se.desc && Ce) || (w = "remove"), w === "replace" ? Ve = [{ id: _, desc: at ? R : Ce }] : w === "add" ? (Ve = [].concat(de, [{ id: _, desc: at ? R : Ce }])).splice(0, Ve.length - ae) : w === "toggle" ? Ve = de.map((function(xe) {
3909
+ }), at = R != null, Ve = [];
3910
+ return (w = !te && q ? Se ? "toggle" : "add" : ke !== de.length - 1 || de.length !== 1 ? "replace" : Se ? "toggle" : "replace") != "toggle" || ge || at || q && ue || !(Se && Se.desc && !Ce || !Se.desc && Ce) || (w = "remove"), w === "replace" ? Ve = [{ id: _, desc: at ? R : Ce }] : w === "add" ? (Ve = [].concat(de, [{ id: _, desc: at ? R : Ce }])).splice(0, Ve.length - ae) : w === "toggle" ? Ve = de.map(function(xe) {
3911
3911
  return xe.id === _ ? a({}, xe, { desc: at ? R : !Se.desc }) : xe;
3912
- })) : w === "remove" && (Ve = de.filter((function(xe) {
3912
+ }) : w === "remove" && (Ve = de.filter(function(xe) {
3913
3913
  return xe.id !== _;
3914
- }))), a({}, t, { sortBy: Ve });
3914
+ })), a({}, t, { sortBy: Ve });
3915
3915
  }
3916
3916
  }
3917
3917
  function ea(t) {
3918
3918
  var o = t.data, f = t.rows, p = t.flatRows, w = t.allColumns, _ = t.orderByFn, R = _ === void 0 ? _l : _, q = t.sortTypes, K = t.manualSortBy, te = t.defaultCanSort, ge = t.disableSortBy, ue = t.flatHeaders, fe = t.state.sortBy, ae = t.dispatch, de = t.plugins, Ce = t.getHooks, Se = t.autoResetSortBy, ke = Se === void 0 || Se;
3919
3919
  P(de, ["useFilters", "useGlobalFilter", "useGroupBy", "usePivotColumns"], "useSortBy");
3920
- var at = i.useCallback((function(qe) {
3920
+ var at = i.useCallback(function(qe) {
3921
3921
  ae({ type: h.setSortBy, sortBy: qe });
3922
- }), [ae]), Ve = i.useCallback((function(qe, Ke, Pt) {
3922
+ }, [ae]), Ve = i.useCallback(function(qe, Ke, Pt) {
3923
3923
  ae({ type: h.toggleSortBy, columnId: qe, desc: Ke, multi: Pt });
3924
- }), [ae]), xe = b(t);
3925
- ue.forEach((function(qe) {
3924
+ }, [ae]), xe = b(t);
3925
+ ue.forEach(function(qe) {
3926
3926
  var Ke = qe.accessor, Pt = qe.canSort, et = qe.disableSortBy, Ct = qe.id, r = Ke ? _e(et !== !0 && void 0, ge !== !0 && void 0, !0) : _e(te, Pt, !1);
3927
3927
  qe.canSort = r, qe.canSort && (qe.toggleSortBy = function(c, s) {
3928
3928
  return Ve(qe.id, c, s);
3929
3929
  }, qe.clearSortBy = function() {
3930
3930
  ae({ type: h.clearSortBy, columnId: qe.id });
3931
3931
  }), qe.getSortByToggleProps = O(Ce().getSortByToggleProps, { instance: xe(), column: qe });
3932
- var l = fe.find((function(c) {
3932
+ var l = fe.find(function(c) {
3933
3933
  return c.id === Ct;
3934
- }));
3935
- qe.isSorted = !!l, qe.sortedIndex = fe.findIndex((function(c) {
3934
+ });
3935
+ qe.isSorted = !!l, qe.sortedIndex = fe.findIndex(function(c) {
3936
3936
  return c.id === Ct;
3937
- })), qe.isSortedDesc = qe.isSorted ? l.desc : void 0;
3938
- }));
3939
- var rt = i.useMemo((function() {
3937
+ }), qe.isSortedDesc = qe.isSorted ? l.desc : void 0;
3938
+ });
3939
+ var rt = i.useMemo(function() {
3940
3940
  if (K || !fe.length) return [f, p];
3941
- var qe = [], Ke = fe.filter((function(Pt) {
3942
- return w.find((function(et) {
3941
+ var qe = [], Ke = fe.filter(function(Pt) {
3942
+ return w.find(function(et) {
3943
3943
  return et.id === Pt.id;
3944
- }));
3945
- }));
3946
- return [(function Pt(et) {
3947
- var Ct = R(et, Ke.map((function(r) {
3948
- var l = w.find((function(x) {
3944
+ });
3945
+ });
3946
+ return [function Pt(et) {
3947
+ var Ct = R(et, Ke.map(function(r) {
3948
+ var l = w.find(function(x) {
3949
3949
  return x.id === r.id;
3950
- }));
3950
+ });
3951
3951
  if (!l) throw new Error("React-Table: Could not find a column with id: " + r.id + " while sorting");
3952
3952
  var c = l.sortType, s = tt(c) || (q || {})[c] || Xl[c];
3953
3953
  if (!s) throw new Error("React-Table: Could not find a valid sortType of '" + c + "' for column '" + r.id + "'.");
3954
3954
  return function(x, y) {
3955
3955
  return s(x, y, r.id, r.desc);
3956
3956
  };
3957
- })), Ke.map((function(r) {
3958
- var l = w.find((function(c) {
3957
+ }), Ke.map(function(r) {
3958
+ var l = w.find(function(c) {
3959
3959
  return c.id === r.id;
3960
- }));
3960
+ });
3961
3961
  return l && l.sortInverted ? r.desc : !r.desc;
3962
- })));
3963
- return Ct.forEach((function(r) {
3962
+ }));
3963
+ return Ct.forEach(function(r) {
3964
3964
  qe.push(r), r.subRows && r.subRows.length !== 0 && (r.subRows = Pt(r.subRows));
3965
- })), Ct;
3966
- })(f), qe];
3967
- }), [K, fe, f, p, w, R, q]), Ee = rt[0], Je = rt[1], vt = b(ke);
3968
- B((function() {
3965
+ }), Ct;
3966
+ }(f), qe];
3967
+ }, [K, fe, f, p, w, R, q]), Ee = rt[0], Je = rt[1], vt = b(ke);
3968
+ B(function() {
3969
3969
  vt() && ae({ type: h.resetSortBy });
3970
- }), [K ? null : o]), Object.assign(t, { preSortedRows: f, preSortedFlatRows: p, sortedRows: Ee, sortedFlatRows: Je, rows: Ee, flatRows: Je, setSortBy: at, toggleSortBy: Ve });
3970
+ }, [K ? null : o]), Object.assign(t, { preSortedRows: f, preSortedFlatRows: p, sortedRows: Ee, sortedFlatRows: Je, rows: Ee, flatRows: Je, setSortBy: at, toggleSortBy: Ve });
3971
3971
  }
3972
3972
  function _l(t, o, f) {
3973
- return [].concat(t).sort((function(p, w) {
3973
+ return [].concat(t).sort(function(p, w) {
3974
3974
  for (var _ = 0; _ < o.length; _ += 1) {
3975
3975
  var R = o[_], q = f[_] === !1 || f[_] === "desc", K = R(p, w);
3976
3976
  if (K !== 0) return q ? -K : K;
3977
3977
  }
3978
3978
  return f[0] ? p.index - w.index : w.index - p.index;
3979
- }));
3979
+ });
3980
3980
  }
3981
3981
  h.resetPage = "resetPage", h.gotoPage = "gotoPage", h.setPageSize = "setPageSize";
3982
3982
  var Yr = function(t) {
@@ -3998,14 +3998,14 @@ function Ds() {
3998
3998
  var o = t.rows, f = t.autoResetPage, p = f === void 0 || f, w = t.manualExpandedKey, _ = w === void 0 ? "expanded" : w, R = t.plugins, q = t.pageCount, K = t.paginateExpandedRows, te = K === void 0 || K, ge = t.expandSubRows, ue = ge === void 0 || ge, fe = t.state, ae = fe.pageSize, de = fe.pageIndex, Ce = fe.expanded, Se = fe.globalFilter, ke = fe.filters, at = fe.groupBy, Ve = fe.sortBy, xe = t.dispatch, rt = t.data, Ee = t.manualPagination;
3999
3999
  P(R, ["useGlobalFilter", "useFilters", "useGroupBy", "useSortBy", "useExpanded"], "usePagination");
4000
4000
  var Je = b(p);
4001
- B((function() {
4001
+ B(function() {
4002
4002
  Je() && xe({ type: h.resetPage });
4003
- }), [xe, Ee ? null : rt, Se, ke, at, Ve]);
4004
- var vt = Ee ? q : Math.ceil(o.length / ae), qe = i.useMemo((function() {
4005
- return vt > 0 ? [].concat(new Array(vt)).fill(null).map((function(s, x) {
4003
+ }, [xe, Ee ? null : rt, Se, ke, at, Ve]);
4004
+ var vt = Ee ? q : Math.ceil(o.length / ae), qe = i.useMemo(function() {
4005
+ return vt > 0 ? [].concat(new Array(vt)).fill(null).map(function(s, x) {
4006
4006
  return x;
4007
- })) : [];
4008
- }), [vt]), Ke = i.useMemo((function() {
4007
+ }) : [];
4008
+ }, [vt]), Ke = i.useMemo(function() {
4009
4009
  var s;
4010
4010
  if (Ee) s = o;
4011
4011
  else {
@@ -4013,19 +4013,19 @@ function Ds() {
4013
4013
  s = o.slice(x, y);
4014
4014
  }
4015
4015
  return te ? s : X(s, { manualExpandedKey: _, expanded: Ce, expandSubRows: ue });
4016
- }), [ue, Ce, _, Ee, de, ae, te, o]), Pt = de > 0, et = vt === -1 ? Ke.length >= ae : de < vt - 1, Ct = i.useCallback((function(s) {
4016
+ }, [ue, Ce, _, Ee, de, ae, te, o]), Pt = de > 0, et = vt === -1 ? Ke.length >= ae : de < vt - 1, Ct = i.useCallback(function(s) {
4017
4017
  xe({ type: h.gotoPage, pageIndex: s });
4018
- }), [xe]), r = i.useCallback((function() {
4019
- return Ct((function(s) {
4018
+ }, [xe]), r = i.useCallback(function() {
4019
+ return Ct(function(s) {
4020
4020
  return s - 1;
4021
- }));
4022
- }), [Ct]), l = i.useCallback((function() {
4023
- return Ct((function(s) {
4021
+ });
4022
+ }, [Ct]), l = i.useCallback(function() {
4023
+ return Ct(function(s) {
4024
4024
  return s + 1;
4025
- }));
4026
- }), [Ct]), c = i.useCallback((function(s) {
4025
+ });
4026
+ }, [Ct]), c = i.useCallback(function(s) {
4027
4027
  xe({ type: h.setPageSize, pageSize: s });
4028
- }), [xe]);
4028
+ }, [xe]);
4029
4029
  Object.assign(t, { pageOptions: qe, pageCount: vt, page: Ke, canPreviousPage: Pt, canNextPage: et, gotoPage: Ct, previousPage: r, nextPage: l, setPageSize: c });
4030
4030
  }
4031
4031
  Yr.pluginName = "usePagination", h.resetPivot = "resetPivot", h.togglePivot = "togglePivot";
@@ -4044,21 +4044,21 @@ function Ds() {
4044
4044
  if (o.type === h.resetPivot) return a({}, t, { pivotColumns: p.initialState.pivotColumns || yl });
4045
4045
  if (o.type === h.togglePivot) {
4046
4046
  var w = o.columnId, _ = o.value, R = _ !== void 0 ? _ : !t.pivotColumns.includes(w);
4047
- return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [w]) } : { pivotColumns: t.pivotColumns.filter((function(q) {
4047
+ return a({}, t, R ? { pivotColumns: [].concat(t.pivotColumns, [w]) } : { pivotColumns: t.pivotColumns.filter(function(q) {
4048
4048
  return q !== w;
4049
- })) });
4049
+ }) });
4050
4050
  }
4051
4051
  }
4052
4052
  function na(t) {
4053
- t.allColumns.forEach((function(o) {
4053
+ t.allColumns.forEach(function(o) {
4054
4054
  o.isPivotSource = t.state.pivotColumns.includes(o.id);
4055
- }));
4055
+ });
4056
4056
  }
4057
4057
  function ia(t, o) {
4058
4058
  var f = o.instance;
4059
- return t.forEach((function(p) {
4059
+ return t.forEach(function(p) {
4060
4060
  p.isPivotSource = f.state.pivotColumns.includes(p.id), p.uniqueValues = /* @__PURE__ */ new Set();
4061
- })), t;
4061
+ }), t;
4062
4062
  }
4063
4063
  function sa(t, o) {
4064
4064
  var f = o.column;
@@ -4067,28 +4067,28 @@ function Ds() {
4067
4067
  function bl(t, o) {
4068
4068
  var f = o.instance, p = f.allColumns, w = f.state;
4069
4069
  if (!w.pivotColumns.length || !w.groupBy || !w.groupBy.length) return t;
4070
- var _ = w.pivotColumns.map((function(K) {
4071
- return p.find((function(te) {
4070
+ var _ = w.pivotColumns.map(function(K) {
4071
+ return p.find(function(te) {
4072
4072
  return te.id === K;
4073
- }));
4074
- })).filter(Boolean), R = p.filter((function(K) {
4073
+ });
4074
+ }).filter(Boolean), R = p.filter(function(K) {
4075
4075
  return !K.isPivotSource && !w.groupBy.includes(K.id) && !w.pivotColumns.includes(K.id);
4076
- })), q = Y((function K(te, ge, ue) {
4076
+ }), q = Y(function K(te, ge, ue) {
4077
4077
  te === void 0 && (te = 0), ue === void 0 && (ue = []);
4078
4078
  var fe = _[te];
4079
- return fe ? Array.from(fe.uniqueValues).sort().map((function(ae) {
4079
+ return fe ? Array.from(fe.uniqueValues).sort().map(function(ae) {
4080
4080
  var de = a({}, fe, { Header: fe.PivotHeader || typeof fe.header == "string" ? fe.Header + ": " + ae : ae, isPivotGroup: !0, parent: ge, depth: te, id: ge ? ge.id + "." + fe.id + "." + ae : fe.id + "." + ae, pivotValue: ae });
4081
4081
  return de.columns = K(te + 1, de, [].concat(ue, [function(Ce) {
4082
4082
  return Ce.values[fe.id] === ae;
4083
4083
  }])), de;
4084
- })) : R.map((function(ae) {
4084
+ }) : R.map(function(ae) {
4085
4085
  return a({}, ae, { canPivot: !1, isPivoted: !0, parent: ge, depth: te, id: "" + (ge ? ge.id + "." + ae.id : ae.id), accessor: function(de, Ce, Se) {
4086
- if (ue.every((function(ke) {
4086
+ if (ue.every(function(ke) {
4087
4087
  return ke(Se);
4088
- }))) return Se.values[ae.id];
4088
+ })) return Se.values[ae.id];
4089
4089
  } });
4090
- }));
4091
- })());
4090
+ });
4091
+ }());
4092
4092
  return [].concat(t, q);
4093
4093
  }
4094
4094
  function wl(t, o) {
@@ -4097,11 +4097,11 @@ function Ds() {
4097
4097
  }
4098
4098
  function oa(t, o) {
4099
4099
  var f = o.instance.state;
4100
- return t = t.filter((function(p) {
4100
+ return t = t.filter(function(p) {
4101
4101
  return !p.isPivotSource;
4102
- })), f.pivotColumns.length && f.groupBy && f.groupBy.length && (t = t.filter((function(p) {
4102
+ }), f.pivotColumns.length && f.groupBy && f.groupBy.length && (t = t.filter(function(p) {
4103
4103
  return p.isGrouped || p.isPivoted;
4104
- }))), t;
4104
+ })), t;
4105
4105
  }
4106
4106
  function ca(t, o) {
4107
4107
  var f = o.instance;
@@ -4111,25 +4111,25 @@ function Ds() {
4111
4111
  var o = t.columns, f = t.allColumns, p = t.flatHeaders, w = t.getHooks, _ = t.plugins, R = t.dispatch, q = t.autoResetPivot, K = q === void 0 || q, te = t.manaulPivot, ge = t.disablePivot, ue = t.defaultCanPivot;
4112
4112
  P(_, ["useGroupBy"], "usePivotColumns");
4113
4113
  var fe = b(t);
4114
- f.forEach((function(de) {
4114
+ f.forEach(function(de) {
4115
4115
  var Ce = de.accessor, Se = de.defaultPivot, ke = de.disablePivot;
4116
4116
  de.canPivot = Ce ? _e(de.canPivot, ke !== !0 && void 0, ge !== !0 && void 0, !0) : _e(de.canPivot, Se, ue, !1), de.canPivot && (de.togglePivot = function() {
4117
4117
  return t.togglePivot(de.id);
4118
4118
  }), de.Aggregated = de.Aggregated || de.Cell;
4119
- })), p.forEach((function(de) {
4119
+ }), p.forEach(function(de) {
4120
4120
  de.getPivotToggleProps = O(w().getPivotToggleProps, { instance: fe(), header: de });
4121
- }));
4121
+ });
4122
4122
  var ae = b(K);
4123
- B((function() {
4123
+ B(function() {
4124
4124
  ae() && R({ type: h.resetPivot });
4125
- }), [R, te ? null : o]), Object.assign(t, { togglePivot: function(de, Ce) {
4125
+ }, [R, te ? null : o]), Object.assign(t, { togglePivot: function(de, Ce) {
4126
4126
  R({ type: h.togglePivot, columnId: de, value: Ce });
4127
4127
  } });
4128
4128
  }
4129
4129
  function ua(t) {
4130
- t.allCells.forEach((function(o) {
4130
+ t.allCells.forEach(function(o) {
4131
4131
  o.isPivoted = o.column.isPivoted;
4132
- }));
4132
+ });
4133
4133
  }
4134
4134
  h.resetSelectedRows = "resetSelectedRows", h.toggleAllRowsSelected = "toggleAllRowsSelected", h.toggleRowSelected = "toggleRowSelected", h.toggleAllPageRowsSelected = "toggleAllPageRowsSelected";
4135
4135
  var Cl = function(t) {
@@ -4150,83 +4150,83 @@ function Ds() {
4150
4150
  var f = o.instance;
4151
4151
  return [t, { onChange: function(p) {
4152
4152
  f.toggleAllPageRowsSelected(p.target.checked);
4153
- }, style: { cursor: "pointer" }, checked: f.isAllPageRowsSelected, title: "Toggle All Current Page Rows Selected", indeterminate: !!(!f.isAllPageRowsSelected && f.page.some((function(p) {
4153
+ }, style: { cursor: "pointer" }, checked: f.isAllPageRowsSelected, title: "Toggle All Current Page Rows Selected", indeterminate: !!(!f.isAllPageRowsSelected && f.page.some(function(p) {
4154
4154
  var w = p.id;
4155
4155
  return f.state.selectedRowIds[w];
4156
- }))) }];
4156
+ })) }];
4157
4157
  };
4158
4158
  function fa(t, o, f, p) {
4159
4159
  if (o.type === h.init) return a({ selectedRowIds: {} }, t);
4160
4160
  if (o.type === h.resetSelectedRows) return a({}, t, { selectedRowIds: p.initialState.selectedRowIds || {} });
4161
4161
  if (o.type === h.toggleAllRowsSelected) {
4162
4162
  var w = o.value, _ = p.isAllRowsSelected, R = p.rowsById, q = p.nonGroupedRowsById, K = q === void 0 ? R : q, te = w !== void 0 ? w : !_, ge = Object.assign({}, t.selectedRowIds);
4163
- return te ? Object.keys(K).forEach((function(Ct) {
4163
+ return te ? Object.keys(K).forEach(function(Ct) {
4164
4164
  ge[Ct] = !0;
4165
- })) : Object.keys(K).forEach((function(Ct) {
4165
+ }) : Object.keys(K).forEach(function(Ct) {
4166
4166
  delete ge[Ct];
4167
- })), a({}, t, { selectedRowIds: ge });
4167
+ }), a({}, t, { selectedRowIds: ge });
4168
4168
  }
4169
4169
  if (o.type === h.toggleRowSelected) {
4170
4170
  var ue = o.id, fe = o.value, ae = p.rowsById, de = p.selectSubRows, Ce = de === void 0 || de, Se = p.getSubRows, ke = t.selectedRowIds[ue], at = fe !== void 0 ? fe : !ke;
4171
4171
  if (ke === at) return t;
4172
4172
  var Ve = a({}, t.selectedRowIds);
4173
- return (function Ct(r) {
4173
+ return function Ct(r) {
4174
4174
  var l = ae[r];
4175
- if (l && (l.isGrouped || (at ? Ve[r] = !0 : delete Ve[r]), Ce && Se(l))) return Se(l).forEach((function(c) {
4175
+ if (l && (l.isGrouped || (at ? Ve[r] = !0 : delete Ve[r]), Ce && Se(l))) return Se(l).forEach(function(c) {
4176
4176
  return Ct(c.id);
4177
- }));
4178
- })(ue), a({}, t, { selectedRowIds: Ve });
4177
+ });
4178
+ }(ue), a({}, t, { selectedRowIds: Ve });
4179
4179
  }
4180
4180
  if (o.type === h.toggleAllPageRowsSelected) {
4181
4181
  var xe = o.value, rt = p.page, Ee = p.rowsById, Je = p.selectSubRows, vt = Je === void 0 || Je, qe = p.isAllPageRowsSelected, Ke = p.getSubRows, Pt = xe !== void 0 ? xe : !qe, et = a({}, t.selectedRowIds);
4182
- return rt.forEach((function(Ct) {
4183
- return (function r(l) {
4182
+ return rt.forEach(function(Ct) {
4183
+ return function r(l) {
4184
4184
  var c = Ee[l];
4185
- if (c.isGrouped || (Pt ? et[l] = !0 : delete et[l]), vt && Ke(c)) return Ke(c).forEach((function(s) {
4185
+ if (c.isGrouped || (Pt ? et[l] = !0 : delete et[l]), vt && Ke(c)) return Ke(c).forEach(function(s) {
4186
4186
  return r(s.id);
4187
- }));
4188
- })(Ct.id);
4189
- })), a({}, t, { selectedRowIds: et });
4187
+ });
4188
+ }(Ct.id);
4189
+ }), a({}, t, { selectedRowIds: et });
4190
4190
  }
4191
4191
  return t;
4192
4192
  }
4193
4193
  function jl(t) {
4194
4194
  var o = t.data, f = t.rows, p = t.getHooks, w = t.plugins, _ = t.rowsById, R = t.nonGroupedRowsById, q = R === void 0 ? _ : R, K = t.autoResetSelectedRows, te = K === void 0 || K, ge = t.state.selectedRowIds, ue = t.selectSubRows, fe = ue === void 0 || ue, ae = t.dispatch, de = t.page, Ce = t.getSubRows;
4195
4195
  P(w, ["useFilters", "useGroupBy", "useSortBy", "useExpanded", "usePagination"], "useRowSelect");
4196
- var Se = i.useMemo((function() {
4196
+ var Se = i.useMemo(function() {
4197
4197
  var Ke = [];
4198
- return f.forEach((function(Pt) {
4199
- var et = fe ? (function Ct(r, l, c) {
4198
+ return f.forEach(function(Pt) {
4199
+ var et = fe ? function Ct(r, l, c) {
4200
4200
  if (l[r.id]) return !0;
4201
4201
  var s = c(r);
4202
4202
  if (s && s.length) {
4203
4203
  var x = !0, y = !1;
4204
- return s.forEach((function(m) {
4204
+ return s.forEach(function(m) {
4205
4205
  y && !x || (Ct(m, l, c) ? y = !0 : x = !1);
4206
- })), !!x || !!y && null;
4206
+ }), !!x || !!y && null;
4207
4207
  }
4208
4208
  return !1;
4209
- })(Pt, ge, Ce) : !!ge[Pt.id];
4209
+ }(Pt, ge, Ce) : !!ge[Pt.id];
4210
4210
  Pt.isSelected = !!et, Pt.isSomeSelected = et === null, et && Ke.push(Pt);
4211
- })), Ke;
4212
- }), [f, fe, ge, Ce]), ke = !!(Object.keys(q).length && Object.keys(ge).length), at = ke;
4213
- ke && Object.keys(q).some((function(Ke) {
4211
+ }), Ke;
4212
+ }, [f, fe, ge, Ce]), ke = !!(Object.keys(q).length && Object.keys(ge).length), at = ke;
4213
+ ke && Object.keys(q).some(function(Ke) {
4214
4214
  return !ge[Ke];
4215
- })) && (ke = !1), ke || de && de.length && de.some((function(Ke) {
4215
+ }) && (ke = !1), ke || de && de.length && de.some(function(Ke) {
4216
4216
  var Pt = Ke.id;
4217
4217
  return !ge[Pt];
4218
- })) && (at = !1);
4218
+ }) && (at = !1);
4219
4219
  var Ve = b(te);
4220
- B((function() {
4220
+ B(function() {
4221
4221
  Ve() && ae({ type: h.resetSelectedRows });
4222
- }), [ae, o]);
4223
- var xe = i.useCallback((function(Ke) {
4222
+ }, [ae, o]);
4223
+ var xe = i.useCallback(function(Ke) {
4224
4224
  return ae({ type: h.toggleAllRowsSelected, value: Ke });
4225
- }), [ae]), rt = i.useCallback((function(Ke) {
4225
+ }, [ae]), rt = i.useCallback(function(Ke) {
4226
4226
  return ae({ type: h.toggleAllPageRowsSelected, value: Ke });
4227
- }), [ae]), Ee = i.useCallback((function(Ke, Pt) {
4227
+ }, [ae]), Ee = i.useCallback(function(Ke, Pt) {
4228
4228
  return ae({ type: h.toggleRowSelected, id: Ke, value: Pt });
4229
- }), [ae]), Je = b(t), vt = O(p().getToggleAllRowsSelectedProps, { instance: Je() }), qe = O(p().getToggleAllPageRowsSelectedProps, { instance: Je() });
4229
+ }, [ae]), Je = b(t), vt = O(p().getToggleAllRowsSelectedProps, { instance: Je() }), qe = O(p().getToggleAllPageRowsSelectedProps, { instance: Je() });
4230
4230
  Object.assign(t, { selectedFlatRows: Se, isAllRowsSelected: ke, isAllPageRowsSelected: at, toggleRowSelected: Ee, toggleAllRowsSelected: xe, getToggleAllRowsSelectedProps: vt, getToggleAllPageRowsSelectedProps: qe, toggleAllPageRowsSelected: rt });
4231
4231
  }
4232
4232
  function ha(t, o) {
@@ -4253,38 +4253,38 @@ function Ds() {
4253
4253
  return a({}, t, { rowState: a({}, t.rowState, (te = {}, te[ge] = T(ue, fe), te)) });
4254
4254
  }
4255
4255
  if (o.type === h.setCellState) {
4256
- var ae, de, Ce, Se, ke, at = o.rowId, Ve = o.columnId, xe = o.value, rt = t.rowState[at] !== void 0 ? t.rowState[at] : _(K[at]), Ee = (rt == null || (ae = rt.cellState) == null ? void 0 : ae[Ve]) !== void 0 ? rt.cellState[Ve] : q((de = K[at]) == null || (Ce = de.cells) == null ? void 0 : Ce.find((function(Je) {
4256
+ var ae, de, Ce, Se, ke, at = o.rowId, Ve = o.columnId, xe = o.value, rt = t.rowState[at] !== void 0 ? t.rowState[at] : _(K[at]), Ee = (rt == null || (ae = rt.cellState) == null ? void 0 : ae[Ve]) !== void 0 ? rt.cellState[Ve] : q((de = K[at]) == null || (Ce = de.cells) == null ? void 0 : Ce.find(function(Je) {
4257
4257
  return Je.column.id === Ve;
4258
- })));
4258
+ }));
4259
4259
  return a({}, t, { rowState: a({}, t.rowState, (ke = {}, ke[at] = a({}, rt, { cellState: a({}, rt.cellState || {}, (Se = {}, Se[Ve] = T(xe, Ee), Se)) }), ke)) });
4260
4260
  }
4261
4261
  }
4262
4262
  function Nl(t) {
4263
- var o = t.autoResetRowState, f = o === void 0 || o, p = t.data, w = t.dispatch, _ = i.useCallback((function(K, te) {
4263
+ var o = t.autoResetRowState, f = o === void 0 || o, p = t.data, w = t.dispatch, _ = i.useCallback(function(K, te) {
4264
4264
  return w({ type: h.setRowState, rowId: K, value: te });
4265
- }), [w]), R = i.useCallback((function(K, te, ge) {
4265
+ }, [w]), R = i.useCallback(function(K, te, ge) {
4266
4266
  return w({ type: h.setCellState, rowId: K, columnId: te, value: ge });
4267
- }), [w]), q = b(f);
4268
- B((function() {
4267
+ }, [w]), q = b(f);
4268
+ B(function() {
4269
4269
  q() && w({ type: h.resetRowState });
4270
- }), [p]), Object.assign(t, { setRowState: _, setCellState: R });
4270
+ }, [p]), Object.assign(t, { setRowState: _, setCellState: R });
4271
4271
  }
4272
4272
  function ma(t, o) {
4273
4273
  var f = o.instance, p = f.initialRowStateAccessor, w = p === void 0 ? Pl : p, _ = f.initialCellStateAccessor, R = _ === void 0 ? Sl : _, q = f.state.rowState;
4274
4274
  t && (t.state = q[t.id] !== void 0 ? q[t.id] : w(t), t.setState = function(K) {
4275
4275
  return f.setRowState(t.id, K);
4276
- }, t.cells.forEach((function(K) {
4276
+ }, t.cells.forEach(function(K) {
4277
4277
  t.state.cellState || (t.state.cellState = {}), K.state = t.state.cellState[K.column.id] !== void 0 ? t.state.cellState[K.column.id] : R(K), K.setState = function(te) {
4278
4278
  return f.setCellState(t.id, K.column.id, te);
4279
4279
  };
4280
- })));
4280
+ }));
4281
4281
  }
4282
4282
  Ur.pluginName = "useRowState", h.resetColumnOrder = "resetColumnOrder", h.setColumnOrder = "setColumnOrder";
4283
4283
  var Dl = function(t) {
4284
- t.stateReducers.push(Al), t.visibleColumnsDeps.push((function(o, f) {
4284
+ t.stateReducers.push(Al), t.visibleColumnsDeps.push(function(o, f) {
4285
4285
  var p = f.instance;
4286
4286
  return [].concat(o, [p.state.columnOrder]);
4287
- })), t.visibleColumns.push(Il), t.useInstance.push(ga);
4287
+ }), t.visibleColumns.push(Il), t.useInstance.push(ga);
4288
4288
  };
4289
4289
  function Al(t, o, f, p) {
4290
4290
  return o.type === h.init ? a({ columnOrder: [] }, t) : o.type === h.resetColumnOrder ? a({}, t, { columnOrder: p.initialState.columnOrder || [] }) : o.type === h.setColumnOrder ? a({}, t, { columnOrder: T(o.columnOrder, t.columnOrder) }) : void 0;
@@ -4293,18 +4293,18 @@ function Ds() {
4293
4293
  var f = o.instance.state.columnOrder;
4294
4294
  if (!f || !f.length) return t;
4295
4295
  for (var p = [].concat(f), w = [].concat(t), _ = [], R = function() {
4296
- var q = p.shift(), K = w.findIndex((function(te) {
4296
+ var q = p.shift(), K = w.findIndex(function(te) {
4297
4297
  return te.id === q;
4298
- }));
4298
+ });
4299
4299
  K > -1 && _.push(w.splice(K, 1)[0]);
4300
4300
  }; w.length && p.length; ) R();
4301
4301
  return [].concat(_, w);
4302
4302
  }
4303
4303
  function ga(t) {
4304
4304
  var o = t.dispatch;
4305
- t.setColumnOrder = i.useCallback((function(f) {
4305
+ t.setColumnOrder = i.useCallback(function(f) {
4306
4306
  return o({ type: h.setColumnOrder, columnOrder: f });
4307
- }), [o]);
4307
+ }, [o]);
4308
4308
  }
4309
4309
  Dl.pluginName = "useColumnOrder", L.canResize = !0, h.columnStartResizing = "columnStartResizing", h.columnResizing = "columnResizing", h.columnDoneResizing = "columnDoneResizing", h.resetResize = "resetResize";
4310
4310
  var Tl = function(t) {
@@ -4316,14 +4316,14 @@ function Ds() {
4316
4316
  if (R.touches && R.touches.length > 1) return;
4317
4317
  K = !0;
4318
4318
  }
4319
- var te, ge, ue = (function(Ve) {
4319
+ var te, ge, ue = function(Ve) {
4320
4320
  var xe = [];
4321
- return (function rt(Ee) {
4321
+ return function rt(Ee) {
4322
4322
  Ee.columns && Ee.columns.length && Ee.columns.map(rt), xe.push(Ee);
4323
- })(Ve), xe;
4324
- })(q).map((function(Ve) {
4323
+ }(Ve), xe;
4324
+ }(q).map(function(Ve) {
4325
4325
  return [Ve.id, Ve.totalWidth];
4326
- })), fe = K ? Math.round(R.touches[0].clientX) : R.clientX, ae = function() {
4326
+ }), fe = K ? Math.round(R.touches[0].clientX) : R.clientX, ae = function() {
4327
4327
  window.cancelAnimationFrame(te), te = null, w({ type: h.columnDoneResizing });
4328
4328
  }, de = function() {
4329
4329
  window.cancelAnimationFrame(te), te = null, w({ type: h.columnResizing, clientX: ge });
@@ -4337,7 +4337,7 @@ function Ds() {
4337
4337
  return Ve.cancelable && (Ve.preventDefault(), Ve.stopPropagation()), Ce(Ve.touches[0].clientX), !1;
4338
4338
  }, upEvent: "touchend", upHandler: function(Ve) {
4339
4339
  document.removeEventListener(Se.touch.moveEvent, Se.touch.moveHandler), document.removeEventListener(Se.touch.upEvent, Se.touch.moveHandler), ae();
4340
- } } }, ke = K ? Se.touch : Se.mouse, at = !!(function() {
4340
+ } } }, ke = K ? Se.touch : Se.mouse, at = !!function() {
4341
4341
  if (typeof Fe == "boolean") return Fe;
4342
4342
  var Ve = !1;
4343
4343
  try {
@@ -4349,7 +4349,7 @@ function Ds() {
4349
4349
  Ve = !1;
4350
4350
  }
4351
4351
  return Fe = Ve;
4352
- })() && { passive: !1 };
4352
+ }() && { passive: !1 };
4353
4353
  document.addEventListener(ke.moveEvent, ke.moveHandler, at), document.addEventListener(ke.upEvent, ke.upHandler, at), w({ type: h.columnStartResizing, columnId: q.id, columnWidth: q.totalWidth, headerIdWidths: ue, clientX: fe });
4354
4354
  };
4355
4355
  return [t, { onMouseDown: function(R) {
@@ -4367,44 +4367,44 @@ function Ds() {
4367
4367
  }
4368
4368
  if (o.type === h.columnResizing) {
4369
4369
  var R = o.clientX, q = t.columnResizing, K = q.startX, te = q.columnWidth, ge = q.headerIdWidths, ue = (R - K) / te, fe = {};
4370
- return (ge === void 0 ? [] : ge).forEach((function(ae) {
4370
+ return (ge === void 0 ? [] : ge).forEach(function(ae) {
4371
4371
  var de = ae[0], Ce = ae[1];
4372
4372
  fe[de] = Math.max(Ce + Ce * ue, 0);
4373
- })), a({}, t, { columnResizing: a({}, t.columnResizing, { columnWidths: a({}, t.columnResizing.columnWidths, {}, fe) }) });
4373
+ }), a({}, t, { columnResizing: a({}, t.columnResizing, { columnWidths: a({}, t.columnResizing.columnWidths, {}, fe) }) });
4374
4374
  }
4375
4375
  return o.type === h.columnDoneResizing ? a({}, t, { columnResizing: a({}, t.columnResizing, { startX: null, isResizingColumn: null }) }) : void 0;
4376
4376
  }
4377
4377
  Tl.pluginName = "useResizeColumns";
4378
4378
  var _a = function(t) {
4379
4379
  var o = t.flatHeaders, f = t.disableResizing, p = t.getHooks, w = t.state.columnResizing, _ = b(t);
4380
- o.forEach((function(R) {
4380
+ o.forEach(function(R) {
4381
4381
  var q = _e(R.disableResizing !== !0 && void 0, f !== !0 && void 0, !0);
4382
4382
  R.canResize = q, R.width = w.columnWidths[R.id] || R.originalWidth || R.width, R.isResizing = w.isResizingColumn === R.id, q && (R.getResizerProps = O(p().getResizerProps, { instance: _(), header: R }));
4383
- }));
4383
+ });
4384
4384
  };
4385
4385
  function ya(t) {
4386
4386
  var o = t.plugins, f = t.dispatch, p = t.autoResetResize, w = p === void 0 || p, _ = t.columns;
4387
4387
  P(o, ["useAbsoluteLayout"], "useResizeColumns");
4388
4388
  var R = b(w);
4389
- B((function() {
4389
+ B(function() {
4390
4390
  R() && f({ type: h.resetResize });
4391
- }), [_]);
4392
- var q = i.useCallback((function() {
4391
+ }, [_]);
4392
+ var q = i.useCallback(function() {
4393
4393
  return f({ type: h.resetResize });
4394
- }), [f]);
4394
+ }, [f]);
4395
4395
  Object.assign(t, { resetResizing: q });
4396
4396
  }
4397
4397
  var Zr = { position: "absolute", top: 0 }, Bl = function(t) {
4398
- t.getTableBodyProps.push(kr), t.getRowProps.push(kr), t.getHeaderGroupProps.push(kr), t.getFooterGroupProps.push(kr), t.getHeaderProps.push((function(o, f) {
4398
+ t.getTableBodyProps.push(kr), t.getRowProps.push(kr), t.getHeaderGroupProps.push(kr), t.getFooterGroupProps.push(kr), t.getHeaderProps.push(function(o, f) {
4399
4399
  var p = f.column;
4400
4400
  return [o, { style: a({}, Zr, { left: p.totalLeft + "px", width: p.totalWidth + "px" }) }];
4401
- })), t.getCellProps.push((function(o, f) {
4401
+ }), t.getCellProps.push(function(o, f) {
4402
4402
  var p = f.cell;
4403
4403
  return [o, { style: a({}, Zr, { left: p.column.totalLeft + "px", width: p.column.totalWidth + "px" }) }];
4404
- })), t.getFooterProps.push((function(o, f) {
4404
+ }), t.getFooterProps.push(function(o, f) {
4405
4405
  var p = f.column;
4406
4406
  return [o, { style: a({}, Zr, { left: p.totalLeft + "px", width: p.totalWidth + "px" }) }];
4407
- }));
4407
+ });
4408
4408
  };
4409
4409
  Bl.pluginName = "useAbsoluteLayout";
4410
4410
  var kr = function(t, o) {
@@ -4412,16 +4412,16 @@ function Ds() {
4412
4412
  }, Kr = { display: "inline-block", boxSizing: "border-box" }, Xr = function(t, o) {
4413
4413
  return [t, { style: { display: "flex", width: o.instance.totalColumnsWidth + "px" } }];
4414
4414
  }, Gl = function(t) {
4415
- t.getRowProps.push(Xr), t.getHeaderGroupProps.push(Xr), t.getFooterGroupProps.push(Xr), t.getHeaderProps.push((function(o, f) {
4415
+ t.getRowProps.push(Xr), t.getHeaderGroupProps.push(Xr), t.getFooterGroupProps.push(Xr), t.getHeaderProps.push(function(o, f) {
4416
4416
  var p = f.column;
4417
4417
  return [o, { style: a({}, Kr, { width: p.totalWidth + "px" }) }];
4418
- })), t.getCellProps.push((function(o, f) {
4418
+ }), t.getCellProps.push(function(o, f) {
4419
4419
  var p = f.cell;
4420
4420
  return [o, { style: a({}, Kr, { width: p.column.totalWidth + "px" }) }];
4421
- })), t.getFooterProps.push((function(o, f) {
4421
+ }), t.getFooterProps.push(function(o, f) {
4422
4422
  var p = f.column;
4423
4423
  return [o, { style: a({}, Kr, { width: p.totalWidth + "px" }) }];
4424
- }));
4424
+ });
4425
4425
  };
4426
4426
  function Jr(t) {
4427
4427
  t.getTableProps.push(ba), t.getRowProps.push(Qr), t.getHeaderGroupProps.push(Qr), t.getFooterGroupProps.push(Qr), t.getHeaderProps.push(wa), t.getCellProps.push(Ca), t.getFooterProps.push(Ra);
@@ -4447,10 +4447,10 @@ function Ds() {
4447
4447
  h.columnStartResizing = "columnStartResizing", h.columnResizing = "columnResizing", h.columnDoneResizing = "columnDoneResizing", h.resetResize = "resetResize", El.pluginName = "useGridLayout";
4448
4448
  var Fl = function(t, o) {
4449
4449
  var f = o.instance;
4450
- return [t, { style: { display: "grid", gridTemplateColumns: f.visibleColumns.map((function(p) {
4450
+ return [t, { style: { display: "grid", gridTemplateColumns: f.visibleColumns.map(function(p) {
4451
4451
  var w;
4452
4452
  return f.state.gridLayout.columnWidths[p.id] ? f.state.gridLayout.columnWidths[p.id] + "px" : (w = f.state.columnResizing) != null && w.isResizingColumn ? f.state.gridLayout.startWidths[p.id] + "px" : typeof p.width == "number" ? p.width + "px" : p.width;
4453
- })).join(" ") } }];
4453
+ }).join(" ") } }];
4454
4454
  }, Ml = function(t, o) {
4455
4455
  var f = o.column;
4456
4456
  return [t, { id: "header-cell-" + f.id, style: { position: "sticky", gridColumn: "span " + f.totalVisibleHeaderCount } }];
@@ -4464,29 +4464,29 @@ function Ds() {
4464
4464
  if (o.type === h.columnStartResizing) {
4465
4465
  var w = o.columnId, _ = o.headerIdWidths, R = el(w);
4466
4466
  if (R !== void 0) {
4467
- var q = p.visibleColumns.reduce((function(xe, rt) {
4467
+ var q = p.visibleColumns.reduce(function(xe, rt) {
4468
4468
  var Ee;
4469
4469
  return a({}, xe, ((Ee = {})[rt.id] = el(rt.id), Ee));
4470
- }), {}), K = p.visibleColumns.reduce((function(xe, rt) {
4470
+ }, {}), K = p.visibleColumns.reduce(function(xe, rt) {
4471
4471
  var Ee;
4472
4472
  return a({}, xe, ((Ee = {})[rt.id] = rt.minWidth, Ee));
4473
- }), {}), te = p.visibleColumns.reduce((function(xe, rt) {
4473
+ }, {}), te = p.visibleColumns.reduce(function(xe, rt) {
4474
4474
  var Ee;
4475
4475
  return a({}, xe, ((Ee = {})[rt.id] = rt.maxWidth, Ee));
4476
- }), {}), ge = _.map((function(xe) {
4476
+ }, {}), ge = _.map(function(xe) {
4477
4477
  var rt = xe[0];
4478
4478
  return [rt, el(rt)];
4479
- }));
4479
+ });
4480
4480
  return a({}, t, { gridLayout: a({}, t.gridLayout, { startWidths: q, minWidths: K, maxWidths: te, headerIdGridWidths: ge, columnWidth: R }) });
4481
4481
  }
4482
4482
  return t;
4483
4483
  }
4484
4484
  if (o.type === h.columnResizing) {
4485
4485
  var ue = o.clientX, fe = t.columnResizing.startX, ae = t.gridLayout, de = ae.columnWidth, Ce = ae.minWidths, Se = ae.maxWidths, ke = ae.headerIdGridWidths, at = (ue - fe) / de, Ve = {};
4486
- return (ke === void 0 ? [] : ke).forEach((function(xe) {
4486
+ return (ke === void 0 ? [] : ke).forEach(function(xe) {
4487
4487
  var rt = xe[0], Ee = xe[1];
4488
4488
  Ve[rt] = Math.min(Math.max(Ce[rt], Ee + Ee * at), Se[rt]);
4489
- })), a({}, t, { gridLayout: a({}, t.gridLayout, { columnWidths: a({}, t.gridLayout.columnWidths, {}, Ve) }) });
4489
+ }), a({}, t, { gridLayout: a({}, t.gridLayout, { columnWidths: a({}, t.gridLayout.columnWidths, {}, Ve) }) });
4490
4490
  }
4491
4491
  return o.type === h.columnDoneResizing ? a({}, t, { gridLayout: a({}, t.gridLayout, { startWidths: {}, minWidths: {}, maxWidths: {} }) }) : void 0;
4492
4492
  }
@@ -4497,17 +4497,17 @@ function Ds() {
4497
4497
  d._UNSTABLE_usePivotColumns = qr, d.actions = h, d.defaultColumn = L, d.defaultGroupByFn = ml, d.defaultOrderByFn = _l, d.defaultRenderer = k, d.emptyRenderer = g, d.ensurePluginOrder = P, d.flexRender = z, d.functionalUpdate = T, d.loopHooks = D, d.makePropGetter = O, d.makeRenderer = H, d.reduceHooks = I, d.safeUseLayoutEffect = ee, d.useAbsoluteLayout = Bl, d.useAsyncDebounce = function(t, o) {
4498
4498
  o === void 0 && (o = 0);
4499
4499
  var f = i.useRef({}), p = b(t), w = b(o);
4500
- return i.useCallback((function() {
4501
- var _ = C(regeneratorRuntime.mark((function R() {
4500
+ return i.useCallback(function() {
4501
+ var _ = C(regeneratorRuntime.mark(function R() {
4502
4502
  var q, K, te, ge = arguments;
4503
- return regeneratorRuntime.wrap((function(ue) {
4503
+ return regeneratorRuntime.wrap(function(ue) {
4504
4504
  for (; ; ) switch (ue.prev = ue.next) {
4505
4505
  case 0:
4506
4506
  for (q = ge.length, K = new Array(q), te = 0; te < q; te++) K[te] = ge[te];
4507
- return f.current.promise || (f.current.promise = new Promise((function(fe, ae) {
4507
+ return f.current.promise || (f.current.promise = new Promise(function(fe, ae) {
4508
4508
  f.current.resolve = fe, f.current.reject = ae;
4509
- }))), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(C(regeneratorRuntime.mark((function fe() {
4510
- return regeneratorRuntime.wrap((function(ae) {
4509
+ })), f.current.timeout && clearTimeout(f.current.timeout), f.current.timeout = setTimeout(C(regeneratorRuntime.mark(function fe() {
4510
+ return regeneratorRuntime.wrap(function(ae) {
4511
4511
  for (; ; ) switch (ae.prev = ae.next) {
4512
4512
  case 0:
4513
4513
  return delete f.current.timeout, ae.prev = 1, ae.t0 = f.current, ae.next = 5, p().apply(void 0, K);
@@ -4522,118 +4522,118 @@ function Ds() {
4522
4522
  case "end":
4523
4523
  return ae.stop();
4524
4524
  }
4525
- }), fe, null, [[1, 9, 12, 15]]);
4526
- }))), w()), ue.abrupt("return", f.current.promise);
4525
+ }, fe, null, [[1, 9, 12, 15]]);
4526
+ })), w()), ue.abrupt("return", f.current.promise);
4527
4527
  case 5:
4528
4528
  case "end":
4529
4529
  return ue.stop();
4530
4530
  }
4531
- }), R);
4532
- })));
4531
+ }, R);
4532
+ }));
4533
4533
  return function() {
4534
4534
  return _.apply(this, arguments);
4535
4535
  };
4536
- })(), [p, w]);
4536
+ }(), [p, w]);
4537
4537
  }, d.useBlockLayout = Gl, d.useColumnOrder = Dl, d.useExpanded = fr, d.useFilters = Ut, d.useFlexLayout = Jr, d.useGetLatest = b, d.useGlobalFilter = ve, d.useGridLayout = El, d.useGroupBy = zr, d.useMountedLayoutEffect = B, d.usePagination = Yr, d.useResizeColumns = Tl, d.useRowSelect = Cl, d.useRowState = Ur, d.useSortBy = vl, d.useTable = function(t) {
4538
4538
  for (var o = arguments.length, f = new Array(o > 1 ? o - 1 : 0), p = 1; p < o; p++) f[p - 1] = arguments[p];
4539
4539
  t = Vt(t), f = [Ie].concat(f);
4540
4540
  var w = i.useRef({}), _ = b(w.current);
4541
- Object.assign(_(), a({}, t, { plugins: f, hooks: G() })), f.filter(Boolean).forEach((function(m) {
4541
+ Object.assign(_(), a({}, t, { plugins: f, hooks: G() })), f.filter(Boolean).forEach(function(m) {
4542
4542
  m(_().hooks);
4543
- }));
4543
+ });
4544
4544
  var R = b(_().hooks);
4545
4545
  _().getHooks = R, delete _().hooks, Object.assign(_(), I(R().useOptions, Vt(t)));
4546
- var q = _(), K = q.data, te = q.columns, ge = q.initialState, ue = q.defaultColumn, fe = q.getSubRows, ae = q.getRowId, de = q.stateReducer, Ce = q.useControlledState, Se = b(de), ke = i.useCallback((function(m, j) {
4546
+ var q = _(), K = q.data, te = q.columns, ge = q.initialState, ue = q.defaultColumn, fe = q.getSubRows, ae = q.getRowId, de = q.stateReducer, Ce = q.useControlledState, Se = b(de), ke = i.useCallback(function(m, j) {
4547
4547
  if (!j.type) throw console.info({ action: j }), new Error("Unknown Action 👆");
4548
- return [].concat(R().stateReducers, Array.isArray(Se()) ? Se() : [Se()]).reduce((function(F, $) {
4548
+ return [].concat(R().stateReducers, Array.isArray(Se()) ? Se() : [Se()]).reduce(function(F, $) {
4549
4549
  return $(F, j, m, _()) || F;
4550
- }), m);
4551
- }), [R, Se, _]), at = i.useReducer(ke, void 0, (function() {
4550
+ }, m);
4551
+ }, [R, Se, _]), at = i.useReducer(ke, void 0, function() {
4552
4552
  return ke(ge, { type: h.init });
4553
- })), Ve = at[0], xe = at[1], rt = I([].concat(R().useControlledState, [Ce]), Ve, { instance: _() });
4553
+ }), Ve = at[0], xe = at[1], rt = I([].concat(R().useControlledState, [Ce]), Ve, { instance: _() });
4554
4554
  Object.assign(_(), { state: rt, dispatch: xe });
4555
- var Ee = i.useMemo((function() {
4555
+ var Ee = i.useMemo(function() {
4556
4556
  return Q(I(R().columns, te, { instance: _() }));
4557
- }), [R, _, te].concat(I(R().columnsDeps, [], { instance: _() })));
4557
+ }, [R, _, te].concat(I(R().columnsDeps, [], { instance: _() })));
4558
4558
  _().columns = Ee;
4559
- var Je = i.useMemo((function() {
4559
+ var Je = i.useMemo(function() {
4560
4560
  return I(R().allColumns, Y(Ee), { instance: _() }).map(ne);
4561
- }), [Ee, R, _].concat(I(R().allColumnsDeps, [], { instance: _() })));
4561
+ }, [Ee, R, _].concat(I(R().allColumnsDeps, [], { instance: _() })));
4562
4562
  _().allColumns = Je;
4563
- var vt = i.useMemo((function() {
4563
+ var vt = i.useMemo(function() {
4564
4564
  for (var m = [], j = [], F = {}, $ = [].concat(Je); $.length; ) {
4565
4565
  var re = $.shift();
4566
4566
  or({ data: K, rows: m, flatRows: j, rowsById: F, column: re, getRowId: ae, getSubRows: fe, accessValueHooks: R().accessValue, getInstance: _ });
4567
4567
  }
4568
4568
  return [m, j, F];
4569
- }), [Je, K, ae, fe, R, _]), qe = vt[0], Ke = vt[1], Pt = vt[2];
4569
+ }, [Je, K, ae, fe, R, _]), qe = vt[0], Ke = vt[1], Pt = vt[2];
4570
4570
  Object.assign(_(), { rows: qe, initialRows: [].concat(qe), flatRows: Ke, rowsById: Pt }), D(R().useInstanceAfterData, _());
4571
- var et = i.useMemo((function() {
4572
- return I(R().visibleColumns, Je, { instance: _() }).map((function(m) {
4571
+ var et = i.useMemo(function() {
4572
+ return I(R().visibleColumns, Je, { instance: _() }).map(function(m) {
4573
4573
  return W(m, ue);
4574
- }));
4575
- }), [R, Je, _, ue].concat(I(R().visibleColumnsDeps, [], { instance: _() })));
4576
- Je = i.useMemo((function() {
4574
+ });
4575
+ }, [R, Je, _, ue].concat(I(R().visibleColumnsDeps, [], { instance: _() })));
4576
+ Je = i.useMemo(function() {
4577
4577
  var m = [].concat(et);
4578
- return Je.forEach((function(j) {
4579
- m.find((function(F) {
4578
+ return Je.forEach(function(j) {
4579
+ m.find(function(F) {
4580
4580
  return F.id === j.id;
4581
- })) || m.push(j);
4582
- })), m;
4583
- }), [Je, et]), _().allColumns = Je;
4584
- var Ct = i.useMemo((function() {
4581
+ }) || m.push(j);
4582
+ }), m;
4583
+ }, [Je, et]), _().allColumns = Je;
4584
+ var Ct = i.useMemo(function() {
4585
4585
  return I(R().headerGroups, me(et, ue), _());
4586
- }), [R, et, ue, _].concat(I(R().headerGroupsDeps, [], { instance: _() })));
4586
+ }, [R, et, ue, _].concat(I(R().headerGroupsDeps, [], { instance: _() })));
4587
4587
  _().headerGroups = Ct;
4588
- var r = i.useMemo((function() {
4588
+ var r = i.useMemo(function() {
4589
4589
  return Ct.length ? Ct[0].headers : [];
4590
- }), [Ct]);
4591
- _().headers = r, _().flatHeaders = Ct.reduce((function(m, j) {
4590
+ }, [Ct]);
4591
+ _().headers = r, _().flatHeaders = Ct.reduce(function(m, j) {
4592
4592
  return [].concat(m, j.headers);
4593
- }), []), D(R().useInstanceBeforeDimensions, _());
4594
- var l = et.filter((function(m) {
4593
+ }, []), D(R().useInstanceBeforeDimensions, _());
4594
+ var l = et.filter(function(m) {
4595
4595
  return m.isVisible;
4596
- })).map((function(m) {
4596
+ }).map(function(m) {
4597
4597
  return m.id;
4598
- })).sort().join("_");
4599
- et = i.useMemo((function() {
4600
- return et.filter((function(m) {
4598
+ }).sort().join("_");
4599
+ et = i.useMemo(function() {
4600
+ return et.filter(function(m) {
4601
4601
  return m.isVisible;
4602
- }));
4603
- }), [et, l]), _().visibleColumns = et;
4602
+ });
4603
+ }, [et, l]), _().visibleColumns = et;
4604
4604
  var c = sr(r), s = c[0], x = c[1], y = c[2];
4605
- return _().totalColumnsMinWidth = s, _().totalColumnsWidth = x, _().totalColumnsMaxWidth = y, D(R().useInstance, _()), [].concat(_().flatHeaders, _().allColumns).forEach((function(m) {
4605
+ return _().totalColumnsMinWidth = s, _().totalColumnsWidth = x, _().totalColumnsMaxWidth = y, D(R().useInstance, _()), [].concat(_().flatHeaders, _().allColumns).forEach(function(m) {
4606
4606
  m.render = H(_(), m), m.getHeaderProps = O(R().getHeaderProps, { instance: _(), column: m }), m.getFooterProps = O(R().getFooterProps, { instance: _(), column: m });
4607
- })), _().headerGroups = i.useMemo((function() {
4608
- return Ct.filter((function(m, j) {
4609
- return m.headers = m.headers.filter((function(F) {
4610
- return F.headers ? (function $(re) {
4611
- return re.filter((function(ye) {
4607
+ }), _().headerGroups = i.useMemo(function() {
4608
+ return Ct.filter(function(m, j) {
4609
+ return m.headers = m.headers.filter(function(F) {
4610
+ return F.headers ? function $(re) {
4611
+ return re.filter(function(ye) {
4612
4612
  return ye.headers ? $(ye.headers) : ye.isVisible;
4613
- })).length;
4614
- })(F.headers) : F.isVisible;
4615
- })), !!m.headers.length && (m.getHeaderGroupProps = O(R().getHeaderGroupProps, { instance: _(), headerGroup: m, index: j }), m.getFooterGroupProps = O(R().getFooterGroupProps, { instance: _(), headerGroup: m, index: j }), !0);
4616
- }));
4617
- }), [Ct, _, R]), _().footerGroups = [].concat(_().headerGroups).reverse(), _().prepareRow = i.useCallback((function(m) {
4618
- m.getRowProps = O(R().getRowProps, { instance: _(), row: m }), m.allCells = Je.map((function(j) {
4613
+ }).length;
4614
+ }(F.headers) : F.isVisible;
4615
+ }), !!m.headers.length && (m.getHeaderGroupProps = O(R().getHeaderGroupProps, { instance: _(), headerGroup: m, index: j }), m.getFooterGroupProps = O(R().getFooterGroupProps, { instance: _(), headerGroup: m, index: j }), !0);
4616
+ });
4617
+ }, [Ct, _, R]), _().footerGroups = [].concat(_().headerGroups).reverse(), _().prepareRow = i.useCallback(function(m) {
4618
+ m.getRowProps = O(R().getRowProps, { instance: _(), row: m }), m.allCells = Je.map(function(j) {
4619
4619
  var F = m.values[j.id], $ = { column: j, row: m, value: F };
4620
4620
  return $.getCellProps = O(R().getCellProps, { instance: _(), cell: $ }), $.render = H(_(), j, { row: m, cell: $, value: F }), $;
4621
- })), m.cells = et.map((function(j) {
4622
- return m.allCells.find((function(F) {
4621
+ }), m.cells = et.map(function(j) {
4622
+ return m.allCells.find(function(F) {
4623
4623
  return F.column.id === j.id;
4624
- }));
4625
- })), D(R().prepareRow, m, { instance: _() });
4626
- }), [R, _, Je, et]), _().getTableProps = O(R().getTableProps, { instance: _() }), _().getTableBodyProps = O(R().getTableBodyProps, { instance: _() }), D(R().useFinalInstance, _()), _();
4624
+ });
4625
+ }), D(R().prepareRow, m, { instance: _() });
4626
+ }, [R, _, Je, et]), _().getTableProps = O(R().getTableProps, { instance: _() }), _().getTableBodyProps = O(R().getTableBodyProps, { instance: _() }), D(R().useFinalInstance, _()), _();
4627
4627
  }, Object.defineProperty(d, "__esModule", { value: !0 });
4628
- }));
4629
- })(il, il.exports)), il.exports;
4628
+ });
4629
+ }(il, il.exports)), il.exports;
4630
4630
  }
4631
4631
  var sl = { exports: {} }, As = sl.exports, pn;
4632
4632
  function Is() {
4633
- return pn || (pn = 1, (function(n, u) {
4633
+ return pn || (pn = 1, function(n, u) {
4634
4634
  (function(d, i) {
4635
4635
  i(u, ol);
4636
- })(As, (function(d, i) {
4636
+ })(As, function(d, i) {
4637
4637
  i = i && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
4638
4638
  function v(r, l, c, s, x, y, m) {
4639
4639
  try {
@@ -4776,7 +4776,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4776
4776
  l === void 0 && (l = 0);
4777
4777
  var c = i.useRef({}), s = H(r), x = H(l);
4778
4778
  return i.useCallback(
4779
- /* @__PURE__ */ (function() {
4779
+ /* @__PURE__ */ function() {
4780
4780
  var y = C(
4781
4781
  /* @__PURE__ */ regeneratorRuntime.mark(function m() {
4782
4782
  var j, F, $, re = arguments;
@@ -4822,7 +4822,7 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4822
4822
  return function() {
4823
4823
  return y.apply(this, arguments);
4824
4824
  };
4825
- })(),
4825
+ }(),
4826
4826
  [s, x]
4827
4827
  );
4828
4828
  }
@@ -4844,10 +4844,10 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4844
4844
  return we(r) || typeof r == "function" || _e(r);
4845
4845
  }
4846
4846
  function we(r) {
4847
- return typeof r == "function" && (function() {
4847
+ return typeof r == "function" && function() {
4848
4848
  var l = Object.getPrototypeOf(r);
4849
4849
  return l.prototype && l.prototype.isReactComponent;
4850
- })();
4850
+ }();
4851
4851
  }
4852
4852
  function _e(r) {
4853
4853
  return typeof r == "object" && typeof r.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(r.$$typeof.description);
@@ -4934,10 +4934,10 @@ This usually means you need to need to name your plugin hook by setting the 'plu
4934
4934
  function Fe(r, l, c) {
4935
4935
  if (!l)
4936
4936
  return r;
4937
- var s = typeof l == "function" ? l : JSON.stringify(l), x = Ae.get(s) || (function() {
4937
+ var s = typeof l == "function" ? l : JSON.stringify(l), x = Ae.get(s) || function() {
4938
4938
  var m = Ie(l);
4939
4939
  return Ae.set(s, m), m;
4940
- })(), y;
4940
+ }(), y;
4941
4941
  try {
4942
4942
  y = x.reduce(function(m, j) {
4943
4943
  return m[j];
@@ -7303,8 +7303,8 @@ This usually means you need to need to name your plugin hook by setting the 'plu
7303
7303
  return c;
7304
7304
  }
7305
7305
  d._UNSTABLE_usePivotColumns = Al, d.actions = g, d.defaultColumn = O, d.defaultGroupByFn = bl, d.defaultOrderByFn = Ur, d.defaultRenderer = L, d.emptyRenderer = V, d.ensurePluginOrder = ee, d.flexRender = W, d.functionalUpdate = B, d.loopHooks = b, d.makePropGetter = P, d.makeRenderer = ne, d.reduceHooks = T, d.safeUseLayoutEffect = z, d.useAbsoluteLayout = ae, d.useAsyncDebounce = Y, d.useBlockLayout = ke, d.useColumnOrder = f, d.useExpanded = ut, d.useFilters = hl, d.useFlexLayout = at, d.useGetLatest = H, d.useGlobalFilter = pl, d.useGridLayout = vt, d.useGroupBy = qr, d.useMountedLayoutEffect = Q, d.usePagination = Nl, d.useResizeColumns = R, d.useRowSelect = Jr, d.useRowState = Ll, d.useSortBy = jl, d.useTable = jr, Object.defineProperty(d, "__esModule", { value: !0 });
7306
- }));
7307
- })(sl, sl.exports)), sl.exports;
7306
+ });
7307
+ }(sl, sl.exports)), sl.exports;
7308
7308
  }
7309
7309
  var mn;
7310
7310
  function Ts() {
@@ -9692,10 +9692,10 @@ const Bs = ({
9692
9692
  };
9693
9693
  var ql = { exports: {} }, Vs = ql.exports, xn;
9694
9694
  function Os() {
9695
- return xn || (xn = 1, (function(n, u) {
9695
+ return xn || (xn = 1, function(n, u) {
9696
9696
  (function(d, i) {
9697
9697
  n.exports = i();
9698
- })(Vs, (function() {
9698
+ })(Vs, function() {
9699
9699
  var d = "minute", i = /[+-]\d\d(?::?\d\d)?/g, v = /([+-]|\d\d)/g;
9700
9700
  return function(C, a, A) {
9701
9701
  var S = a.prototype;
@@ -9723,13 +9723,13 @@ function Os() {
9723
9723
  S.utcOffset = function(I, D) {
9724
9724
  var P = this.$utils().u;
9725
9725
  if (P(I)) return this.$u ? 0 : P(this.$offset) ? g.call(this) : this.$offset;
9726
- if (typeof I == "string" && (I = (function(B) {
9726
+ if (typeof I == "string" && (I = function(B) {
9727
9727
  B === void 0 && (B = "");
9728
9728
  var H = B.match(i);
9729
9729
  if (!H) return null;
9730
9730
  var z = ("" + H[0]).match(v) || ["-", 0, 0], Q = z[0], Y = 60 * +z[1] + +z[2];
9731
9731
  return Y === 0 ? 0 : Q === "+" ? Y : -Y;
9732
- })(I), I === null)) return this;
9732
+ }(I), I === null)) return this;
9733
9733
  var T = Math.abs(I) <= 16 ? 60 * I : I;
9734
9734
  if (T === 0) return this.utc(D);
9735
9735
  var b = this.clone();
@@ -9762,8 +9762,8 @@ function Os() {
9762
9762
  return O.call(T, b, D, P);
9763
9763
  };
9764
9764
  };
9765
- }));
9766
- })(ql)), ql.exports;
9765
+ });
9766
+ }(ql)), ql.exports;
9767
9767
  }
9768
9768
  var Ws = Os();
9769
9769
  const Ja = /* @__PURE__ */ vn(Ws), Qa = (n) => {