@espresso-lab/mantine-data-table 1.9.8 → 1.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -924,10 +924,10 @@ React keys must be passed directly to JSX without using spread:
924
924
  return f();
925
925
  }
926
926
  };
927
- var E, S = {}, p = M.react_stack_bottom_frame.bind(
927
+ var E, S = {}, d = M.react_stack_bottom_frame.bind(
928
928
  M,
929
929
  g
930
- )(), d = k(s(g)), b = {};
930
+ )(), p = k(s(g)), b = {};
931
931
  ki.Fragment = $, ki.jsx = function(f, v, D, Y, H) {
932
932
  var ie = 1e4 > ne.recentlyCreatedOwnerStacks++;
933
933
  return R(
@@ -937,8 +937,8 @@ React keys must be passed directly to JSX without using spread:
937
937
  !1,
938
938
  Y,
939
939
  H,
940
- ie ? Error("react-stack-top-frame") : p,
941
- ie ? k(s(f)) : d
940
+ ie ? Error("react-stack-top-frame") : d,
941
+ ie ? k(s(f)) : p
942
942
  );
943
943
  }, ki.jsxs = function(f, v, D, Y, H) {
944
944
  var ie = 1e4 > ne.recentlyCreatedOwnerStacks++;
@@ -949,8 +949,8 @@ React keys must be passed directly to JSX without using spread:
949
949
  !0,
950
950
  Y,
951
951
  H,
952
- ie ? Error("react-stack-top-frame") : p,
953
- ie ? k(s(f)) : d
952
+ ie ? Error("react-stack-top-frame") : d,
953
+ ie ? k(s(f)) : p
954
954
  );
955
955
  };
956
956
  }()), ki;
@@ -1351,10 +1351,10 @@ React keys must be passed directly to JSX without using spread:
1351
1351
  return f();
1352
1352
  }
1353
1353
  };
1354
- var E, S = {}, p = M.react_stack_bottom_frame.bind(
1354
+ var E, S = {}, d = M.react_stack_bottom_frame.bind(
1355
1355
  M,
1356
1356
  g
1357
- )(), d = k(s(g)), b = {};
1357
+ )(), p = k(s(g)), b = {};
1358
1358
  qo.Fragment = $, qo.jsx = function(f, v, D, Y, H) {
1359
1359
  var ie = 1e4 > ne.recentlyCreatedOwnerStacks++;
1360
1360
  return R(
@@ -1364,8 +1364,8 @@ React keys must be passed directly to JSX without using spread:
1364
1364
  !1,
1365
1365
  Y,
1366
1366
  H,
1367
- ie ? Error("react-stack-top-frame") : p,
1368
- ie ? k(s(f)) : d
1367
+ ie ? Error("react-stack-top-frame") : d,
1368
+ ie ? k(s(f)) : p
1369
1369
  );
1370
1370
  }, qo.jsxs = function(f, v, D, Y, H) {
1371
1371
  var ie = 1e4 > ne.recentlyCreatedOwnerStacks++;
@@ -1376,8 +1376,8 @@ React keys must be passed directly to JSX without using spread:
1376
1376
  !0,
1377
1377
  Y,
1378
1378
  H,
1379
- ie ? Error("react-stack-top-frame") : p,
1380
- ie ? k(s(f)) : d
1379
+ ie ? Error("react-stack-top-frame") : d,
1380
+ ie ? k(s(f)) : p
1381
1381
  );
1382
1382
  };
1383
1383
  }()), qo;
@@ -1740,10 +1740,10 @@ function o_() {
1740
1740
  case "utf-8":
1741
1741
  return k(this, c, _);
1742
1742
  case "ascii":
1743
- return p(this, c, _);
1743
+ return d(this, c, _);
1744
1744
  case "latin1":
1745
1745
  case "binary":
1746
- return d(this, c, _);
1746
+ return p(this, c, _);
1747
1747
  case "base64":
1748
1748
  return De(this, c, _);
1749
1749
  case "ucs2":
@@ -1972,14 +1972,14 @@ function o_() {
1972
1972
  );
1973
1973
  return _;
1974
1974
  }
1975
- function p(l, c, _) {
1975
+ function d(l, c, _) {
1976
1976
  var T = "";
1977
1977
  _ = Math.min(l.length, _);
1978
1978
  for (var F = c; F < _; ++F)
1979
1979
  T += String.fromCharCode(l[F] & 127);
1980
1980
  return T;
1981
1981
  }
1982
- function d(l, c, _) {
1982
+ function p(l, c, _) {
1983
1983
  var T = "";
1984
1984
  _ = Math.min(l.length, _);
1985
1985
  for (var F = c; F < _; ++F)
@@ -3467,42 +3467,42 @@ function U2() {
3467
3467
  var r = { 873: (m, h) => {
3468
3468
  var C, A, R = function() {
3469
3469
  var N = function(k, E) {
3470
- var S = k, p = oe[E], d = null, b = 0, f = null, v = [], D = {}, Y = function(j, K) {
3471
- d = function(W) {
3470
+ var S = k, d = oe[E], p = null, b = 0, f = null, v = [], D = {}, Y = function(j, K) {
3471
+ p = function(W) {
3472
3472
  for (var V = new Array(W), X = 0; X < W; X += 1) {
3473
3473
  V[X] = new Array(W);
3474
3474
  for (var xe = 0; xe < W; xe += 1) V[X][xe] = null;
3475
3475
  }
3476
3476
  return V;
3477
- }(b = 4 * S + 17), H(0, 0), H(b - 7, 0), H(0, b - 7), le(), ie(), J(j, K), S >= 7 && ye(j), f == null && (f = me(S, p, v)), _e(f, K);
3477
+ }(b = 4 * S + 17), H(0, 0), H(b - 7, 0), H(0, b - 7), le(), ie(), J(j, K), S >= 7 && ye(j), f == null && (f = me(S, d, v)), _e(f, K);
3478
3478
  }, H = function(j, K) {
3479
- for (var W = -1; W <= 7; W += 1) if (!(j + W <= -1 || b <= j + W)) for (var V = -1; V <= 7; V += 1) K + V <= -1 || b <= K + V || (d[j + W][K + V] = 0 <= W && W <= 6 && (V == 0 || V == 6) || 0 <= V && V <= 6 && (W == 0 || W == 6) || 2 <= W && W <= 4 && 2 <= V && V <= 4);
3479
+ for (var W = -1; W <= 7; W += 1) if (!(j + W <= -1 || b <= j + W)) for (var V = -1; V <= 7; V += 1) K + V <= -1 || b <= K + V || (p[j + W][K + V] = 0 <= W && W <= 6 && (V == 0 || V == 6) || 0 <= V && V <= 6 && (W == 0 || W == 6) || 2 <= W && W <= 4 && 2 <= V && V <= 4);
3480
3480
  }, ie = function() {
3481
- for (var j = 8; j < b - 8; j += 1) d[j][6] == null && (d[j][6] = j % 2 == 0);
3482
- for (var K = 8; K < b - 8; K += 1) d[6][K] == null && (d[6][K] = K % 2 == 0);
3481
+ for (var j = 8; j < b - 8; j += 1) p[j][6] == null && (p[j][6] = j % 2 == 0);
3482
+ for (var K = 8; K < b - 8; K += 1) p[6][K] == null && (p[6][K] = K % 2 == 0);
3483
3483
  }, le = function() {
3484
3484
  for (var j = ae.getPatternPosition(S), K = 0; K < j.length; K += 1) for (var W = 0; W < j.length; W += 1) {
3485
3485
  var V = j[K], X = j[W];
3486
- if (d[V][X] == null) for (var xe = -2; xe <= 2; xe += 1) for (var l = -2; l <= 2; l += 1) d[V + xe][X + l] = xe == -2 || xe == 2 || l == -2 || l == 2 || xe == 0 && l == 0;
3486
+ if (p[V][X] == null) for (var xe = -2; xe <= 2; xe += 1) for (var l = -2; l <= 2; l += 1) p[V + xe][X + l] = xe == -2 || xe == 2 || l == -2 || l == 2 || xe == 0 && l == 0;
3487
3487
  }
3488
3488
  }, ye = function(j) {
3489
3489
  for (var K = ae.getBCHTypeNumber(S), W = 0; W < 18; W += 1) {
3490
3490
  var V = !j && (K >> W & 1) == 1;
3491
- d[Math.floor(W / 3)][W % 3 + b - 8 - 3] = V;
3491
+ p[Math.floor(W / 3)][W % 3 + b - 8 - 3] = V;
3492
3492
  }
3493
- for (W = 0; W < 18; W += 1) V = !j && (K >> W & 1) == 1, d[W % 3 + b - 8 - 3][Math.floor(W / 3)] = V;
3493
+ for (W = 0; W < 18; W += 1) V = !j && (K >> W & 1) == 1, p[W % 3 + b - 8 - 3][Math.floor(W / 3)] = V;
3494
3494
  }, J = function(j, K) {
3495
- for (var W = p << 3 | K, V = ae.getBCHTypeInfo(W), X = 0; X < 15; X += 1) {
3495
+ for (var W = d << 3 | K, V = ae.getBCHTypeInfo(W), X = 0; X < 15; X += 1) {
3496
3496
  var xe = !j && (V >> X & 1) == 1;
3497
- X < 6 ? d[X][8] = xe : X < 8 ? d[X + 1][8] = xe : d[b - 15 + X][8] = xe;
3497
+ X < 6 ? p[X][8] = xe : X < 8 ? p[X + 1][8] = xe : p[b - 15 + X][8] = xe;
3498
3498
  }
3499
- for (X = 0; X < 15; X += 1) xe = !j && (V >> X & 1) == 1, X < 8 ? d[8][b - X - 1] = xe : X < 9 ? d[8][15 - X - 1 + 1] = xe : d[8][15 - X - 1] = xe;
3500
- d[b - 8][8] = !j;
3499
+ for (X = 0; X < 15; X += 1) xe = !j && (V >> X & 1) == 1, X < 8 ? p[8][b - X - 1] = xe : X < 9 ? p[8][15 - X - 1 + 1] = xe : p[8][15 - X - 1] = xe;
3500
+ p[b - 8][8] = !j;
3501
3501
  }, _e = function(j, K) {
3502
3502
  for (var W = -1, V = b - 1, X = 7, xe = 0, l = ae.getMaskFunction(K), c = b - 1; c > 0; c -= 2) for (c == 6 && (c -= 1); ; ) {
3503
- for (var _ = 0; _ < 2; _ += 1) if (d[V][c - _] == null) {
3503
+ for (var _ = 0; _ < 2; _ += 1) if (p[V][c - _] == null) {
3504
3504
  var T = !1;
3505
- xe < j.length && (T = (j[xe] >>> X & 1) == 1), l(V, c - _) && (T = !T), d[V][c - _] = T, (X -= 1) == -1 && (xe += 1, X = 7);
3505
+ xe < j.length && (T = (j[xe] >>> X & 1) == 1), l(V, c - _) && (T = !T), p[V][c - _] = T, (X -= 1) == -1 && (xe += 1, X = 7);
3506
3506
  }
3507
3507
  if ((V += W) < 0 || b <= V) {
3508
3508
  V -= W, W = -W;
@@ -3560,13 +3560,13 @@ function U2() {
3560
3560
  v.push(W), f = null;
3561
3561
  }, D.isDark = function(j, K) {
3562
3562
  if (j < 0 || b <= j || K < 0 || b <= K) throw j + "," + K;
3563
- return d[j][K];
3563
+ return p[j][K];
3564
3564
  }, D.getModuleCount = function() {
3565
3565
  return b;
3566
3566
  }, D.make = function() {
3567
3567
  if (S < 1) {
3568
3568
  for (var j = 1; j < 40; j++) {
3569
- for (var K = Z.getRSBlocks(j, p), W = te(), V = 0; V < v.length; V++) {
3569
+ for (var K = Z.getRSBlocks(j, d), W = te(), V = 0; V < v.length; V++) {
3570
3570
  var X = v[V];
3571
3571
  W.put(X.getMode(), 4), W.put(X.getLength(), ae.getLengthInBits(X.getMode(), j)), X.write(W);
3572
3572
  }
@@ -3663,32 +3663,32 @@ function U2() {
3663
3663
  };
3664
3664
  N.stringToBytes = (N.stringToBytesFuncs = { default: function(k) {
3665
3665
  for (var E = [], S = 0; S < k.length; S += 1) {
3666
- var p = k.charCodeAt(S);
3667
- E.push(255 & p);
3666
+ var d = k.charCodeAt(S);
3667
+ E.push(255 & d);
3668
3668
  }
3669
3669
  return E;
3670
3670
  } }).default, N.createStringToBytes = function(k, E) {
3671
3671
  var S = function() {
3672
- for (var d = Se(k), b = function() {
3673
- var ie = d.read();
3672
+ for (var p = Se(k), b = function() {
3673
+ var ie = p.read();
3674
3674
  if (ie == -1) throw "eof";
3675
3675
  return ie;
3676
3676
  }, f = 0, v = {}; ; ) {
3677
- var D = d.read();
3677
+ var D = p.read();
3678
3678
  if (D == -1) break;
3679
3679
  var Y = b(), H = b() << 8 | b();
3680
3680
  v[String.fromCharCode(D << 8 | Y)] = H, f += 1;
3681
3681
  }
3682
3682
  if (f != E) throw f + " != " + E;
3683
3683
  return v;
3684
- }(), p = 63;
3685
- return function(d) {
3686
- for (var b = [], f = 0; f < d.length; f += 1) {
3687
- var v = d.charCodeAt(f);
3684
+ }(), d = 63;
3685
+ return function(p) {
3686
+ for (var b = [], f = 0; f < p.length; f += 1) {
3687
+ var v = p.charCodeAt(f);
3688
3688
  if (v < 128) b.push(v);
3689
3689
  else {
3690
- var D = S[d.charAt(f)];
3691
- typeof D == "number" ? (255 & D) == D ? b.push(D) : (b.push(D >>> 8), b.push(255 & D)) : b.push(p);
3690
+ var D = S[p.charAt(f)];
3691
+ typeof D == "number" ? (255 & D) == D ? b.push(D) : (b.push(D >>> 8), b.push(255 & D)) : b.push(d);
3692
3692
  }
3693
3693
  }
3694
3694
  return b;
@@ -3785,58 +3785,58 @@ function U2() {
3785
3785
  }
3786
3786
  }
3787
3787
  }, $.getLostPoint = function(k) {
3788
- for (var E = k.getModuleCount(), S = 0, p = 0; p < E; p += 1) for (var d = 0; d < E; d += 1) {
3789
- for (var b = 0, f = k.isDark(p, d), v = -1; v <= 1; v += 1) if (!(p + v < 0 || E <= p + v)) for (var D = -1; D <= 1; D += 1) d + D < 0 || E <= d + D || v == 0 && D == 0 || f == k.isDark(p + v, d + D) && (b += 1);
3788
+ for (var E = k.getModuleCount(), S = 0, d = 0; d < E; d += 1) for (var p = 0; p < E; p += 1) {
3789
+ for (var b = 0, f = k.isDark(d, p), v = -1; v <= 1; v += 1) if (!(d + v < 0 || E <= d + v)) for (var D = -1; D <= 1; D += 1) p + D < 0 || E <= p + D || v == 0 && D == 0 || f == k.isDark(d + v, p + D) && (b += 1);
3790
3790
  b > 5 && (S += 3 + b - 5);
3791
3791
  }
3792
- for (p = 0; p < E - 1; p += 1) for (d = 0; d < E - 1; d += 1) {
3792
+ for (d = 0; d < E - 1; d += 1) for (p = 0; p < E - 1; p += 1) {
3793
3793
  var Y = 0;
3794
- k.isDark(p, d) && (Y += 1), k.isDark(p + 1, d) && (Y += 1), k.isDark(p, d + 1) && (Y += 1), k.isDark(p + 1, d + 1) && (Y += 1), Y != 0 && Y != 4 || (S += 3);
3794
+ k.isDark(d, p) && (Y += 1), k.isDark(d + 1, p) && (Y += 1), k.isDark(d, p + 1) && (Y += 1), k.isDark(d + 1, p + 1) && (Y += 1), Y != 0 && Y != 4 || (S += 3);
3795
3795
  }
3796
- for (p = 0; p < E; p += 1) for (d = 0; d < E - 6; d += 1) k.isDark(p, d) && !k.isDark(p, d + 1) && k.isDark(p, d + 2) && k.isDark(p, d + 3) && k.isDark(p, d + 4) && !k.isDark(p, d + 5) && k.isDark(p, d + 6) && (S += 40);
3797
- for (d = 0; d < E; d += 1) for (p = 0; p < E - 6; p += 1) k.isDark(p, d) && !k.isDark(p + 1, d) && k.isDark(p + 2, d) && k.isDark(p + 3, d) && k.isDark(p + 4, d) && !k.isDark(p + 5, d) && k.isDark(p + 6, d) && (S += 40);
3796
+ for (d = 0; d < E; d += 1) for (p = 0; p < E - 6; p += 1) k.isDark(d, p) && !k.isDark(d, p + 1) && k.isDark(d, p + 2) && k.isDark(d, p + 3) && k.isDark(d, p + 4) && !k.isDark(d, p + 5) && k.isDark(d, p + 6) && (S += 40);
3797
+ for (p = 0; p < E; p += 1) for (d = 0; d < E - 6; d += 1) k.isDark(d, p) && !k.isDark(d + 1, p) && k.isDark(d + 2, p) && k.isDark(d + 3, p) && k.isDark(d + 4, p) && !k.isDark(d + 5, p) && k.isDark(d + 6, p) && (S += 40);
3798
3798
  var H = 0;
3799
- for (d = 0; d < E; d += 1) for (p = 0; p < E; p += 1) k.isDark(p, d) && (H += 1);
3799
+ for (p = 0; p < E; p += 1) for (d = 0; d < E; d += 1) k.isDark(d, p) && (H += 1);
3800
3800
  return S + Math.abs(100 * H / E / E - 50) / 5 * 10;
3801
3801
  }, $), se = function() {
3802
3802
  for (var k = new Array(256), E = new Array(256), S = 0; S < 8; S += 1) k[S] = 1 << S;
3803
3803
  for (S = 8; S < 256; S += 1) k[S] = k[S - 4] ^ k[S - 5] ^ k[S - 6] ^ k[S - 8];
3804
3804
  for (S = 0; S < 255; S += 1) E[k[S]] = S;
3805
- return { glog: function(p) {
3806
- if (p < 1) throw "glog(" + p + ")";
3807
- return E[p];
3808
- }, gexp: function(p) {
3809
- for (; p < 0; ) p += 255;
3810
- for (; p >= 256; ) p -= 255;
3811
- return k[p];
3805
+ return { glog: function(d) {
3806
+ if (d < 1) throw "glog(" + d + ")";
3807
+ return E[d];
3808
+ }, gexp: function(d) {
3809
+ for (; d < 0; ) d += 255;
3810
+ for (; d >= 256; ) d -= 255;
3811
+ return k[d];
3812
3812
  } };
3813
3813
  }();
3814
3814
  function ue(k, E) {
3815
3815
  if (k.length === void 0) throw k.length + "/" + E;
3816
3816
  var S = function() {
3817
- for (var d = 0; d < k.length && k[d] == 0; ) d += 1;
3818
- for (var b = new Array(k.length - d + E), f = 0; f < k.length - d; f += 1) b[f] = k[f + d];
3817
+ for (var p = 0; p < k.length && k[p] == 0; ) p += 1;
3818
+ for (var b = new Array(k.length - p + E), f = 0; f < k.length - p; f += 1) b[f] = k[f + p];
3819
3819
  return b;
3820
- }(), p = { getAt: function(d) {
3821
- return S[d];
3820
+ }(), d = { getAt: function(p) {
3821
+ return S[p];
3822
3822
  }, getLength: function() {
3823
3823
  return S.length;
3824
- }, multiply: function(d) {
3825
- for (var b = new Array(p.getLength() + d.getLength() - 1), f = 0; f < p.getLength(); f += 1) for (var v = 0; v < d.getLength(); v += 1) b[f + v] ^= se.gexp(se.glog(p.getAt(f)) + se.glog(d.getAt(v)));
3824
+ }, multiply: function(p) {
3825
+ for (var b = new Array(d.getLength() + p.getLength() - 1), f = 0; f < d.getLength(); f += 1) for (var v = 0; v < p.getLength(); v += 1) b[f + v] ^= se.gexp(se.glog(d.getAt(f)) + se.glog(p.getAt(v)));
3826
3826
  return ue(b, 0);
3827
- }, mod: function(d) {
3828
- if (p.getLength() - d.getLength() < 0) return p;
3829
- for (var b = se.glog(p.getAt(0)) - se.glog(d.getAt(0)), f = new Array(p.getLength()), v = 0; v < p.getLength(); v += 1) f[v] = p.getAt(v);
3830
- for (v = 0; v < d.getLength(); v += 1) f[v] ^= se.gexp(se.glog(d.getAt(v)) + b);
3831
- return ue(f, 0).mod(d);
3827
+ }, mod: function(p) {
3828
+ if (d.getLength() - p.getLength() < 0) return d;
3829
+ for (var b = se.glog(d.getAt(0)) - se.glog(p.getAt(0)), f = new Array(d.getLength()), v = 0; v < d.getLength(); v += 1) f[v] = d.getAt(v);
3830
+ for (v = 0; v < p.getLength(); v += 1) f[v] ^= se.gexp(se.glog(p.getAt(v)) + b);
3831
+ return ue(f, 0).mod(p);
3832
3832
  } };
3833
- return p;
3833
+ return d;
3834
3834
  }
3835
3835
  var Z = /* @__PURE__ */ function() {
3836
- var k = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], E = function(p, d) {
3836
+ var k = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], E = function(d, p) {
3837
3837
  var b = {};
3838
- return b.totalCount = p, b.dataCount = d, b;
3839
- }, S = { getRSBlocks: function(p, d) {
3838
+ return b.totalCount = d, b.dataCount = p, b;
3839
+ }, S = { getRSBlocks: function(d, p) {
3840
3840
  var b = function(ye, J) {
3841
3841
  switch (J) {
3842
3842
  case oe.L:
@@ -3850,8 +3850,8 @@ function U2() {
3850
3850
  default:
3851
3851
  return;
3852
3852
  }
3853
- }(p, d);
3854
- if (b === void 0) throw "bad rs block @ typeNumber:" + p + "/errorCorrectionLevel:" + d;
3853
+ }(d, p);
3854
+ if (b === void 0) throw "bad rs block @ typeNumber:" + d + "/errorCorrectionLevel:" + p;
3855
3855
  for (var f = b.length / 3, v = [], D = 0; D < f; D += 1) for (var Y = b[3 * D + 0], H = b[3 * D + 1], ie = b[3 * D + 2], le = 0; le < Y; le += 1) v.push(E(H, ie));
3856
3856
  return v;
3857
3857
  } };
@@ -3859,16 +3859,16 @@ function U2() {
3859
3859
  }(), te = function() {
3860
3860
  var k = [], E = 0, S = { getBuffer: function() {
3861
3861
  return k;
3862
- }, getAt: function(p) {
3863
- var d = Math.floor(p / 8);
3864
- return (k[d] >>> 7 - p % 8 & 1) == 1;
3865
- }, put: function(p, d) {
3866
- for (var b = 0; b < d; b += 1) S.putBit((p >>> d - b - 1 & 1) == 1);
3862
+ }, getAt: function(d) {
3863
+ var p = Math.floor(d / 8);
3864
+ return (k[p] >>> 7 - d % 8 & 1) == 1;
3865
+ }, put: function(d, p) {
3866
+ for (var b = 0; b < p; b += 1) S.putBit((d >>> p - b - 1 & 1) == 1);
3867
3867
  }, getLengthInBits: function() {
3868
3868
  return E;
3869
- }, putBit: function(p) {
3870
- var d = Math.floor(E / 8);
3871
- k.length <= d && k.push(0), p && (k[d] |= 128 >>> E % 8), E += 1;
3869
+ }, putBit: function(d) {
3870
+ var p = Math.floor(E / 8);
3871
+ k.length <= p && k.push(0), d && (k[p] |= 128 >>> E % 8), E += 1;
3872
3872
  } };
3873
3873
  return S;
3874
3874
  }, Q = function(k) {
@@ -3877,12 +3877,12 @@ function U2() {
3877
3877
  }, getLength: function(b) {
3878
3878
  return E.length;
3879
3879
  }, write: function(b) {
3880
- for (var f = E, v = 0; v + 2 < f.length; ) b.put(p(f.substring(v, v + 3)), 10), v += 3;
3881
- v < f.length && (f.length - v == 1 ? b.put(p(f.substring(v, v + 1)), 4) : f.length - v == 2 && b.put(p(f.substring(v, v + 2)), 7));
3882
- } }, p = function(b) {
3883
- for (var f = 0, v = 0; v < b.length; v += 1) f = 10 * f + d(b.charAt(v));
3880
+ for (var f = E, v = 0; v + 2 < f.length; ) b.put(d(f.substring(v, v + 3)), 10), v += 3;
3881
+ v < f.length && (f.length - v == 1 ? b.put(d(f.substring(v, v + 1)), 4) : f.length - v == 2 && b.put(d(f.substring(v, v + 2)), 7));
3882
+ } }, d = function(b) {
3883
+ for (var f = 0, v = 0; v < b.length; v += 1) f = 10 * f + p(b.charAt(v));
3884
3884
  return f;
3885
- }, d = function(b) {
3885
+ }, p = function(b) {
3886
3886
  if ("0" <= b && b <= "9") return b.charCodeAt(0) - 48;
3887
3887
  throw "illegal char :" + b;
3888
3888
  };
@@ -3890,15 +3890,15 @@ function U2() {
3890
3890
  }, G = function(k) {
3891
3891
  var E = k, S = { getMode: function() {
3892
3892
  return 2;
3893
- }, getLength: function(d) {
3893
+ }, getLength: function(p) {
3894
3894
  return E.length;
3895
- }, write: function(d) {
3896
- for (var b = E, f = 0; f + 1 < b.length; ) d.put(45 * p(b.charAt(f)) + p(b.charAt(f + 1)), 11), f += 2;
3897
- f < b.length && d.put(p(b.charAt(f)), 6);
3898
- } }, p = function(d) {
3899
- if ("0" <= d && d <= "9") return d.charCodeAt(0) - 48;
3900
- if ("A" <= d && d <= "Z") return d.charCodeAt(0) - 65 + 10;
3901
- switch (d) {
3895
+ }, write: function(p) {
3896
+ for (var b = E, f = 0; f + 1 < b.length; ) p.put(45 * d(b.charAt(f)) + d(b.charAt(f + 1)), 11), f += 2;
3897
+ f < b.length && p.put(d(b.charAt(f)), 6);
3898
+ } }, d = function(p) {
3899
+ if ("0" <= p && p <= "9") return p.charCodeAt(0) - 48;
3900
+ if ("A" <= p && p <= "Z") return p.charCodeAt(0) - 65 + 10;
3901
+ switch (p) {
3902
3902
  case " ":
3903
3903
  return 36;
3904
3904
  case "$":
@@ -3918,7 +3918,7 @@ function U2() {
3918
3918
  case ":":
3919
3919
  return 44;
3920
3920
  default:
3921
- throw "illegal char :" + d;
3921
+ throw "illegal char :" + p;
3922
3922
  }
3923
3923
  };
3924
3924
  return S;
@@ -3929,20 +3929,20 @@ function U2() {
3929
3929
  }, getLength: function(S) {
3930
3930
  return E.length;
3931
3931
  }, write: function(S) {
3932
- for (var p = 0; p < E.length; p += 1) S.put(E[p], 8);
3932
+ for (var d = 0; d < E.length; d += 1) S.put(E[d], 8);
3933
3933
  } };
3934
3934
  }, fe = function(k) {
3935
3935
  var E = N.stringToBytesFuncs.SJIS;
3936
3936
  if (!E) throw "sjis not supported.";
3937
3937
  (function() {
3938
- var d = E("友");
3939
- if (d.length != 2 || (d[0] << 8 | d[1]) != 38726) throw "sjis not supported.";
3938
+ var p = E("友");
3939
+ if (p.length != 2 || (p[0] << 8 | p[1]) != 38726) throw "sjis not supported.";
3940
3940
  })();
3941
- var S = E(k), p = { getMode: function() {
3941
+ var S = E(k), d = { getMode: function() {
3942
3942
  return 8;
3943
- }, getLength: function(d) {
3943
+ }, getLength: function(p) {
3944
3944
  return ~~(S.length / 2);
3945
- }, write: function(d) {
3945
+ }, write: function(p) {
3946
3946
  for (var b = S, f = 0; f + 1 < b.length; ) {
3947
3947
  var v = (255 & b[f]) << 8 | 255 & b[f + 1];
3948
3948
  if (33088 <= v && v <= 40956) v -= 33088;
@@ -3950,43 +3950,43 @@ function U2() {
3950
3950
  if (!(57408 <= v && v <= 60351)) throw "illegal char at " + (f + 1) + "/" + v;
3951
3951
  v -= 49472;
3952
3952
  }
3953
- v = 192 * (v >>> 8 & 255) + (255 & v), d.put(v, 13), f += 2;
3953
+ v = 192 * (v >>> 8 & 255) + (255 & v), p.put(v, 13), f += 2;
3954
3954
  }
3955
3955
  if (f < b.length) throw "illegal char at " + (f + 1);
3956
3956
  } };
3957
- return p;
3957
+ return d;
3958
3958
  }, ne = function() {
3959
3959
  var k = [], E = { writeByte: function(S) {
3960
3960
  k.push(255 & S);
3961
3961
  }, writeShort: function(S) {
3962
3962
  E.writeByte(S), E.writeByte(S >>> 8);
3963
- }, writeBytes: function(S, p, d) {
3964
- p = p || 0, d = d || S.length;
3965
- for (var b = 0; b < d; b += 1) E.writeByte(S[b + p]);
3963
+ }, writeBytes: function(S, d, p) {
3964
+ d = d || 0, p = p || S.length;
3965
+ for (var b = 0; b < p; b += 1) E.writeByte(S[b + d]);
3966
3966
  }, writeString: function(S) {
3967
- for (var p = 0; p < S.length; p += 1) E.writeByte(S.charCodeAt(p));
3967
+ for (var d = 0; d < S.length; d += 1) E.writeByte(S.charCodeAt(d));
3968
3968
  }, toByteArray: function() {
3969
3969
  return k;
3970
3970
  }, toString: function() {
3971
3971
  var S = "";
3972
3972
  S += "[";
3973
- for (var p = 0; p < k.length; p += 1) p > 0 && (S += ","), S += k[p];
3973
+ for (var d = 0; d < k.length; d += 1) d > 0 && (S += ","), S += k[d];
3974
3974
  return S + "]";
3975
3975
  } };
3976
3976
  return E;
3977
3977
  }, Se = function(k) {
3978
- var E = k, S = 0, p = 0, d = 0, b = { read: function() {
3979
- for (; d < 8; ) {
3978
+ var E = k, S = 0, d = 0, p = 0, b = { read: function() {
3979
+ for (; p < 8; ) {
3980
3980
  if (S >= E.length) {
3981
- if (d == 0) return -1;
3982
- throw "unexpected end of file./" + d;
3981
+ if (p == 0) return -1;
3982
+ throw "unexpected end of file./" + p;
3983
3983
  }
3984
3984
  var v = E.charAt(S);
3985
- if (S += 1, v == "=") return d = 0, -1;
3986
- v.match(/^\s$/) || (p = p << 6 | f(v.charCodeAt(0)), d += 6);
3985
+ if (S += 1, v == "=") return p = 0, -1;
3986
+ v.match(/^\s$/) || (d = d << 6 | f(v.charCodeAt(0)), p += 6);
3987
3987
  }
3988
- var D = p >>> d - 8 & 255;
3989
- return d -= 8, D;
3988
+ var D = d >>> p - 8 & 255;
3989
+ return p -= 8, D;
3990
3990
  } }, f = function(v) {
3991
3991
  if (65 <= v && v <= 90) return v - 65;
3992
3992
  if (97 <= v && v <= 122) return v - 97 + 26;
@@ -3997,7 +3997,7 @@ function U2() {
3997
3997
  };
3998
3998
  return b;
3999
3999
  }, De = function(k, E, S) {
4000
- for (var p = function(H, ie) {
4000
+ for (var d = function(H, ie) {
4001
4001
  var le = H, ye = ie, J = new Array(H * ie), _e = { setPixel: function(j, K, W) {
4002
4002
  J[K * le + j] = W;
4003
4003
  }, write: function(j) {
@@ -4037,9 +4037,9 @@ function U2() {
4037
4037
  return W;
4038
4038
  };
4039
4039
  return _e;
4040
- }(k, E), d = 0; d < E; d += 1) for (var b = 0; b < k; b += 1) p.setPixel(b, d, S(b, d));
4040
+ }(k, E), p = 0; p < E; p += 1) for (var b = 0; b < k; b += 1) d.setPixel(b, p, S(b, p));
4041
4041
  var f = ne();
4042
- p.write(f);
4042
+ d.write(f);
4043
4043
  for (var v = function() {
4044
4044
  var H = 0, ie = 0, le = 0, ye = "", J = {}, _e = function(ge) {
4045
4045
  ye += String.fromCharCode(me(63 & ge));
@@ -4093,24 +4093,24 @@ function U2() {
4093
4093
  return (() => {
4094
4094
  u.d(g, { default: () => E });
4095
4095
  const m = (S) => !!S && typeof S == "object" && !Array.isArray(S);
4096
- function h(S, ...p) {
4097
- if (!p.length) return S;
4098
- const d = p.shift();
4099
- return d !== void 0 && m(S) && m(d) ? (S = Object.assign({}, S), Object.keys(d).forEach((b) => {
4100
- const f = S[b], v = d[b];
4096
+ function h(S, ...d) {
4097
+ if (!d.length) return S;
4098
+ const p = d.shift();
4099
+ return p !== void 0 && m(S) && m(p) ? (S = Object.assign({}, S), Object.keys(p).forEach((b) => {
4100
+ const f = S[b], v = p[b];
4101
4101
  Array.isArray(f) && Array.isArray(v) ? S[b] = v : m(f) && m(v) ? S[b] = h(Object.assign({}, f), v) : S[b] = v;
4102
- }), h(S, ...p)) : S;
4102
+ }), h(S, ...d)) : S;
4103
4103
  }
4104
- function C(S, p) {
4105
- const d = document.createElement("a");
4106
- d.download = p, d.href = S, document.body.appendChild(d), d.click(), document.body.removeChild(d);
4104
+ function C(S, d) {
4105
+ const p = document.createElement("a");
4106
+ p.download = d, p.href = S, document.body.appendChild(p), p.click(), document.body.removeChild(p);
4107
4107
  }
4108
4108
  const A = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 };
4109
4109
  class R {
4110
- constructor({ svg: p, type: d, window: b }) {
4111
- this._svg = p, this._type = d, this._window = b;
4110
+ constructor({ svg: d, type: p, window: b }) {
4111
+ this._svg = d, this._type = p, this._window = b;
4112
4112
  }
4113
- draw(p, d, b, f) {
4113
+ draw(d, p, b, f) {
4114
4114
  let v;
4115
4115
  switch (this._type) {
4116
4116
  case "dots":
@@ -4131,100 +4131,100 @@ function U2() {
4131
4131
  default:
4132
4132
  v = this._drawSquare;
4133
4133
  }
4134
- v.call(this, { x: p, y: d, size: b, getNeighbor: f });
4134
+ v.call(this, { x: d, y: p, size: b, getNeighbor: f });
4135
4135
  }
4136
- _rotateFigure({ x: p, y: d, size: b, rotation: f = 0, draw: v }) {
4136
+ _rotateFigure({ x: d, y: p, size: b, rotation: f = 0, draw: v }) {
4137
4137
  var D;
4138
- const Y = p + b / 2, H = d + b / 2;
4138
+ const Y = d + b / 2, H = p + b / 2;
4139
4139
  v(), (D = this._element) === null || D === void 0 || D.setAttribute("transform", `rotate(${180 * f / Math.PI},${Y},${H})`);
4140
4140
  }
4141
- _basicDot(p) {
4142
- const { size: d, x: b, y: f } = p;
4143
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4144
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(b + d / 2)), this._element.setAttribute("cy", String(f + d / 2)), this._element.setAttribute("r", String(d / 2));
4141
+ _basicDot(d) {
4142
+ const { size: p, x: b, y: f } = d;
4143
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4144
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(b + p / 2)), this._element.setAttribute("cy", String(f + p / 2)), this._element.setAttribute("r", String(p / 2));
4145
4145
  } }));
4146
4146
  }
4147
- _basicSquare(p) {
4148
- const { size: d, x: b, y: f } = p;
4149
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4150
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(b)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(d)), this._element.setAttribute("height", String(d));
4147
+ _basicSquare(d) {
4148
+ const { size: p, x: b, y: f } = d;
4149
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4150
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(b)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(p)), this._element.setAttribute("height", String(p));
4151
4151
  } }));
4152
4152
  }
4153
- _basicSideRounded(p) {
4154
- const { size: d, x: b, y: f } = p;
4155
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4156
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${d}h ` + d / 2 + `a ${d / 2} ${d / 2}, 0, 0, 0, 0 ${-d}`);
4153
+ _basicSideRounded(d) {
4154
+ const { size: p, x: b, y: f } = d;
4155
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4156
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${p}h ` + p / 2 + `a ${p / 2} ${p / 2}, 0, 0, 0, 0 ${-p}`);
4157
4157
  } }));
4158
4158
  }
4159
- _basicCornerRounded(p) {
4160
- const { size: d, x: b, y: f } = p;
4161
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4162
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${d}h ${d}v ` + -d / 2 + `a ${d / 2} ${d / 2}, 0, 0, 0, ${-d / 2} ${-d / 2}`);
4159
+ _basicCornerRounded(d) {
4160
+ const { size: p, x: b, y: f } = d;
4161
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4162
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${p}h ${p}v ` + -p / 2 + `a ${p / 2} ${p / 2}, 0, 0, 0, ${-p / 2} ${-p / 2}`);
4163
4163
  } }));
4164
4164
  }
4165
- _basicCornerExtraRounded(p) {
4166
- const { size: d, x: b, y: f } = p;
4167
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4168
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${d}h ${d}a ${d} ${d}, 0, 0, 0, ${-d} ${-d}`);
4165
+ _basicCornerExtraRounded(d) {
4166
+ const { size: p, x: b, y: f } = d;
4167
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4168
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ${p}h ${p}a ${p} ${p}, 0, 0, 0, ${-p} ${-p}`);
4169
4169
  } }));
4170
4170
  }
4171
- _basicCornersRounded(p) {
4172
- const { size: d, x: b, y: f } = p;
4173
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4174
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ` + d / 2 + `a ${d / 2} ${d / 2}, 0, 0, 0, ${d / 2} ${d / 2}h ` + d / 2 + "v " + -d / 2 + `a ${d / 2} ${d / 2}, 0, 0, 0, ${-d / 2} ${-d / 2}`);
4171
+ _basicCornersRounded(d) {
4172
+ const { size: p, x: b, y: f } = d;
4173
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4174
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${b} ${f}v ` + p / 2 + `a ${p / 2} ${p / 2}, 0, 0, 0, ${p / 2} ${p / 2}h ` + p / 2 + "v " + -p / 2 + `a ${p / 2} ${p / 2}, 0, 0, 0, ${-p / 2} ${-p / 2}`);
4175
4175
  } }));
4176
4176
  }
4177
- _drawDot({ x: p, y: d, size: b }) {
4178
- this._basicDot({ x: p, y: d, size: b, rotation: 0 });
4177
+ _drawDot({ x: d, y: p, size: b }) {
4178
+ this._basicDot({ x: d, y: p, size: b, rotation: 0 });
4179
4179
  }
4180
- _drawSquare({ x: p, y: d, size: b }) {
4181
- this._basicSquare({ x: p, y: d, size: b, rotation: 0 });
4180
+ _drawSquare({ x: d, y: p, size: b }) {
4181
+ this._basicSquare({ x: d, y: p, size: b, rotation: 0 });
4182
4182
  }
4183
- _drawRounded({ x: p, y: d, size: b, getNeighbor: f }) {
4183
+ _drawRounded({ x: d, y: p, size: b, getNeighbor: f }) {
4184
4184
  const v = f ? +f(-1, 0) : 0, D = f ? +f(1, 0) : 0, Y = f ? +f(0, -1) : 0, H = f ? +f(0, 1) : 0, ie = v + D + Y + H;
4185
- if (ie !== 0) if (ie > 2 || v && D || Y && H) this._basicSquare({ x: p, y: d, size: b, rotation: 0 });
4185
+ if (ie !== 0) if (ie > 2 || v && D || Y && H) this._basicSquare({ x: d, y: p, size: b, rotation: 0 });
4186
4186
  else {
4187
4187
  if (ie === 2) {
4188
4188
  let le = 0;
4189
- return v && Y ? le = Math.PI / 2 : Y && D ? le = Math.PI : D && H && (le = -Math.PI / 2), void this._basicCornerRounded({ x: p, y: d, size: b, rotation: le });
4189
+ return v && Y ? le = Math.PI / 2 : Y && D ? le = Math.PI : D && H && (le = -Math.PI / 2), void this._basicCornerRounded({ x: d, y: p, size: b, rotation: le });
4190
4190
  }
4191
4191
  if (ie === 1) {
4192
4192
  let le = 0;
4193
- return Y ? le = Math.PI / 2 : D ? le = Math.PI : H && (le = -Math.PI / 2), void this._basicSideRounded({ x: p, y: d, size: b, rotation: le });
4193
+ return Y ? le = Math.PI / 2 : D ? le = Math.PI : H && (le = -Math.PI / 2), void this._basicSideRounded({ x: d, y: p, size: b, rotation: le });
4194
4194
  }
4195
4195
  }
4196
- else this._basicDot({ x: p, y: d, size: b, rotation: 0 });
4196
+ else this._basicDot({ x: d, y: p, size: b, rotation: 0 });
4197
4197
  }
4198
- _drawExtraRounded({ x: p, y: d, size: b, getNeighbor: f }) {
4198
+ _drawExtraRounded({ x: d, y: p, size: b, getNeighbor: f }) {
4199
4199
  const v = f ? +f(-1, 0) : 0, D = f ? +f(1, 0) : 0, Y = f ? +f(0, -1) : 0, H = f ? +f(0, 1) : 0, ie = v + D + Y + H;
4200
- if (ie !== 0) if (ie > 2 || v && D || Y && H) this._basicSquare({ x: p, y: d, size: b, rotation: 0 });
4200
+ if (ie !== 0) if (ie > 2 || v && D || Y && H) this._basicSquare({ x: d, y: p, size: b, rotation: 0 });
4201
4201
  else {
4202
4202
  if (ie === 2) {
4203
4203
  let le = 0;
4204
- return v && Y ? le = Math.PI / 2 : Y && D ? le = Math.PI : D && H && (le = -Math.PI / 2), void this._basicCornerExtraRounded({ x: p, y: d, size: b, rotation: le });
4204
+ return v && Y ? le = Math.PI / 2 : Y && D ? le = Math.PI : D && H && (le = -Math.PI / 2), void this._basicCornerExtraRounded({ x: d, y: p, size: b, rotation: le });
4205
4205
  }
4206
4206
  if (ie === 1) {
4207
4207
  let le = 0;
4208
- return Y ? le = Math.PI / 2 : D ? le = Math.PI : H && (le = -Math.PI / 2), void this._basicSideRounded({ x: p, y: d, size: b, rotation: le });
4208
+ return Y ? le = Math.PI / 2 : D ? le = Math.PI : H && (le = -Math.PI / 2), void this._basicSideRounded({ x: d, y: p, size: b, rotation: le });
4209
4209
  }
4210
4210
  }
4211
- else this._basicDot({ x: p, y: d, size: b, rotation: 0 });
4211
+ else this._basicDot({ x: d, y: p, size: b, rotation: 0 });
4212
4212
  }
4213
- _drawClassy({ x: p, y: d, size: b, getNeighbor: f }) {
4213
+ _drawClassy({ x: d, y: p, size: b, getNeighbor: f }) {
4214
4214
  const v = f ? +f(-1, 0) : 0, D = f ? +f(1, 0) : 0, Y = f ? +f(0, -1) : 0, H = f ? +f(0, 1) : 0;
4215
- v + D + Y + H !== 0 ? v || Y ? D || H ? this._basicSquare({ x: p, y: d, size: b, rotation: 0 }) : this._basicCornerRounded({ x: p, y: d, size: b, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: p, y: d, size: b, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: p, y: d, size: b, rotation: Math.PI / 2 });
4215
+ v + D + Y + H !== 0 ? v || Y ? D || H ? this._basicSquare({ x: d, y: p, size: b, rotation: 0 }) : this._basicCornerRounded({ x: d, y: p, size: b, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: d, y: p, size: b, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: d, y: p, size: b, rotation: Math.PI / 2 });
4216
4216
  }
4217
- _drawClassyRounded({ x: p, y: d, size: b, getNeighbor: f }) {
4217
+ _drawClassyRounded({ x: d, y: p, size: b, getNeighbor: f }) {
4218
4218
  const v = f ? +f(-1, 0) : 0, D = f ? +f(1, 0) : 0, Y = f ? +f(0, -1) : 0, H = f ? +f(0, 1) : 0;
4219
- v + D + Y + H !== 0 ? v || Y ? D || H ? this._basicSquare({ x: p, y: d, size: b, rotation: 0 }) : this._basicCornerExtraRounded({ x: p, y: d, size: b, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: p, y: d, size: b, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: p, y: d, size: b, rotation: Math.PI / 2 });
4219
+ v + D + Y + H !== 0 ? v || Y ? D || H ? this._basicSquare({ x: d, y: p, size: b, rotation: 0 }) : this._basicCornerExtraRounded({ x: d, y: p, size: b, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: d, y: p, size: b, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: d, y: p, size: b, rotation: Math.PI / 2 });
4220
4220
  }
4221
4221
  }
4222
4222
  const N = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, M = Object.values(N);
4223
4223
  class L {
4224
- constructor({ svg: p, type: d, window: b }) {
4225
- this._svg = p, this._type = d, this._window = b;
4224
+ constructor({ svg: d, type: p, window: b }) {
4225
+ this._svg = d, this._type = p, this._window = b;
4226
4226
  }
4227
- draw(p, d, b, f) {
4227
+ draw(d, p, b, f) {
4228
4228
  let v;
4229
4229
  switch (this._type) {
4230
4230
  case N.square:
@@ -4236,78 +4236,78 @@ function U2() {
4236
4236
  default:
4237
4237
  v = this._drawDot;
4238
4238
  }
4239
- v.call(this, { x: p, y: d, size: b, rotation: f });
4239
+ v.call(this, { x: d, y: p, size: b, rotation: f });
4240
4240
  }
4241
- _rotateFigure({ x: p, y: d, size: b, rotation: f = 0, draw: v }) {
4241
+ _rotateFigure({ x: d, y: p, size: b, rotation: f = 0, draw: v }) {
4242
4242
  var D;
4243
- const Y = p + b / 2, H = d + b / 2;
4243
+ const Y = d + b / 2, H = p + b / 2;
4244
4244
  v(), (D = this._element) === null || D === void 0 || D.setAttribute("transform", `rotate(${180 * f / Math.PI},${Y},${H})`);
4245
4245
  }
4246
- _basicDot(p) {
4247
- const { size: d, x: b, y: f } = p, v = d / 7;
4248
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4249
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b + d / 2} ${f}a ${d / 2} ${d / 2} 0 1 0 0.1 0zm 0 ${v}a ${d / 2 - v} ${d / 2 - v} 0 1 1 -0.1 0Z`);
4246
+ _basicDot(d) {
4247
+ const { size: p, x: b, y: f } = d, v = p / 7;
4248
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4249
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b + p / 2} ${f}a ${p / 2} ${p / 2} 0 1 0 0.1 0zm 0 ${v}a ${p / 2 - v} ${p / 2 - v} 0 1 1 -0.1 0Z`);
4250
4250
  } }));
4251
4251
  }
4252
- _basicSquare(p) {
4253
- const { size: d, x: b, y: f } = p, v = d / 7;
4254
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4255
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b} ${f}v ${d}h ${d}v ` + -d + `zM ${b + v} ${f + v}h ` + (d - 2 * v) + "v " + (d - 2 * v) + "h " + (2 * v - d) + "z");
4252
+ _basicSquare(d) {
4253
+ const { size: p, x: b, y: f } = d, v = p / 7;
4254
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4255
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b} ${f}v ${p}h ${p}v ` + -p + `zM ${b + v} ${f + v}h ` + (p - 2 * v) + "v " + (p - 2 * v) + "h " + (2 * v - p) + "z");
4256
4256
  } }));
4257
4257
  }
4258
- _basicExtraRounded(p) {
4259
- const { size: d, x: b, y: f } = p, v = d / 7;
4260
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4258
+ _basicExtraRounded(d) {
4259
+ const { size: p, x: b, y: f } = d, v = p / 7;
4260
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4261
4261
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${b} ${f + 2.5 * v}v ` + 2 * v + `a ${2.5 * v} ${2.5 * v}, 0, 0, 0, ${2.5 * v} ${2.5 * v}h ` + 2 * v + `a ${2.5 * v} ${2.5 * v}, 0, 0, 0, ${2.5 * v} ${2.5 * -v}v ` + -2 * v + `a ${2.5 * v} ${2.5 * v}, 0, 0, 0, ${2.5 * -v} ${2.5 * -v}h ` + -2 * v + `a ${2.5 * v} ${2.5 * v}, 0, 0, 0, ${2.5 * -v} ${2.5 * v}M ${b + 2.5 * v} ${f + v}h ` + 2 * v + `a ${1.5 * v} ${1.5 * v}, 0, 0, 1, ${1.5 * v} ${1.5 * v}v ` + 2 * v + `a ${1.5 * v} ${1.5 * v}, 0, 0, 1, ${1.5 * -v} ${1.5 * v}h ` + -2 * v + `a ${1.5 * v} ${1.5 * v}, 0, 0, 1, ${1.5 * -v} ${1.5 * -v}v ` + -2 * v + `a ${1.5 * v} ${1.5 * v}, 0, 0, 1, ${1.5 * v} ${1.5 * -v}`);
4262
4262
  } }));
4263
4263
  }
4264
- _drawDot({ x: p, y: d, size: b, rotation: f }) {
4265
- this._basicDot({ x: p, y: d, size: b, rotation: f });
4264
+ _drawDot({ x: d, y: p, size: b, rotation: f }) {
4265
+ this._basicDot({ x: d, y: p, size: b, rotation: f });
4266
4266
  }
4267
- _drawSquare({ x: p, y: d, size: b, rotation: f }) {
4268
- this._basicSquare({ x: p, y: d, size: b, rotation: f });
4267
+ _drawSquare({ x: d, y: p, size: b, rotation: f }) {
4268
+ this._basicSquare({ x: d, y: p, size: b, rotation: f });
4269
4269
  }
4270
- _drawExtraRounded({ x: p, y: d, size: b, rotation: f }) {
4271
- this._basicExtraRounded({ x: p, y: d, size: b, rotation: f });
4270
+ _drawExtraRounded({ x: d, y: p, size: b, rotation: f }) {
4271
+ this._basicExtraRounded({ x: d, y: p, size: b, rotation: f });
4272
4272
  }
4273
4273
  }
4274
4274
  const I = { dot: "dot", square: "square" }, $ = Object.values(I);
4275
4275
  class q {
4276
- constructor({ svg: p, type: d, window: b }) {
4277
- this._svg = p, this._type = d, this._window = b;
4276
+ constructor({ svg: d, type: p, window: b }) {
4277
+ this._svg = d, this._type = p, this._window = b;
4278
4278
  }
4279
- draw(p, d, b, f) {
4279
+ draw(d, p, b, f) {
4280
4280
  let v;
4281
- v = this._type === I.square ? this._drawSquare : this._drawDot, v.call(this, { x: p, y: d, size: b, rotation: f });
4281
+ v = this._type === I.square ? this._drawSquare : this._drawDot, v.call(this, { x: d, y: p, size: b, rotation: f });
4282
4282
  }
4283
- _rotateFigure({ x: p, y: d, size: b, rotation: f = 0, draw: v }) {
4283
+ _rotateFigure({ x: d, y: p, size: b, rotation: f = 0, draw: v }) {
4284
4284
  var D;
4285
- const Y = p + b / 2, H = d + b / 2;
4285
+ const Y = d + b / 2, H = p + b / 2;
4286
4286
  v(), (D = this._element) === null || D === void 0 || D.setAttribute("transform", `rotate(${180 * f / Math.PI},${Y},${H})`);
4287
4287
  }
4288
- _basicDot(p) {
4289
- const { size: d, x: b, y: f } = p;
4290
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4291
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(b + d / 2)), this._element.setAttribute("cy", String(f + d / 2)), this._element.setAttribute("r", String(d / 2));
4288
+ _basicDot(d) {
4289
+ const { size: p, x: b, y: f } = d;
4290
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4291
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(b + p / 2)), this._element.setAttribute("cy", String(f + p / 2)), this._element.setAttribute("r", String(p / 2));
4292
4292
  } }));
4293
4293
  }
4294
- _basicSquare(p) {
4295
- const { size: d, x: b, y: f } = p;
4296
- this._rotateFigure(Object.assign(Object.assign({}, p), { draw: () => {
4297
- this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(b)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(d)), this._element.setAttribute("height", String(d));
4294
+ _basicSquare(d) {
4295
+ const { size: p, x: b, y: f } = d;
4296
+ this._rotateFigure(Object.assign(Object.assign({}, d), { draw: () => {
4297
+ this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(b)), this._element.setAttribute("y", String(f)), this._element.setAttribute("width", String(p)), this._element.setAttribute("height", String(p));
4298
4298
  } }));
4299
4299
  }
4300
- _drawDot({ x: p, y: d, size: b, rotation: f }) {
4301
- this._basicDot({ x: p, y: d, size: b, rotation: f });
4300
+ _drawDot({ x: d, y: p, size: b, rotation: f }) {
4301
+ this._basicDot({ x: d, y: p, size: b, rotation: f });
4302
4302
  }
4303
- _drawSquare({ x: p, y: d, size: b, rotation: f }) {
4304
- this._basicSquare({ x: p, y: d, size: b, rotation: f });
4303
+ _drawSquare({ x: d, y: p, size: b, rotation: f }) {
4304
+ this._basicSquare({ x: d, y: p, size: b, rotation: f });
4305
4305
  }
4306
4306
  }
4307
4307
  const oe = "circle", ae = [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]], se = [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
4308
4308
  class ue {
4309
- constructor(p, d) {
4310
- this._roundSize = (b) => this._options.dotsOptions.roundSize ? Math.floor(b) : b, this._window = d, this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(p.width)), this._element.setAttribute("height", String(p.height)), this._element.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), p.dotsOptions.roundSize || this._element.setAttribute("shape-rendering", "crispEdges"), this._element.setAttribute("viewBox", `0 0 ${p.width} ${p.height}`), this._defs = this._window.document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._imageUri = p.image, this._instanceId = ue.instanceCount++, this._options = p;
4309
+ constructor(d, p) {
4310
+ this._roundSize = (b) => this._options.dotsOptions.roundSize ? Math.floor(b) : b, this._window = p, this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(d.width)), this._element.setAttribute("height", String(d.height)), this._element.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), d.dotsOptions.roundSize || this._element.setAttribute("shape-rendering", "crispEdges"), this._element.setAttribute("viewBox", `0 0 ${d.width} ${d.height}`), this._defs = this._window.document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._imageUri = d.image, this._instanceId = ue.instanceCount++, this._options = d;
4311
4311
  }
4312
4312
  get width() {
4313
4313
  return this._options.width;
@@ -4318,29 +4318,29 @@ function U2() {
4318
4318
  getElement() {
4319
4319
  return this._element;
4320
4320
  }
4321
- async drawQR(p) {
4322
- const d = p.getModuleCount(), b = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, f = this._options.shape === oe ? b / Math.sqrt(2) : b, v = this._roundSize(f / d);
4321
+ async drawQR(d) {
4322
+ const p = d.getModuleCount(), b = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, f = this._options.shape === oe ? b / Math.sqrt(2) : b, v = this._roundSize(f / p);
4323
4323
  let D = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
4324
- if (this._qr = p, this._options.image) {
4324
+ if (this._qr = d, this._options.image) {
4325
4325
  if (await this.loadImage(), !this._image) return;
4326
- const { imageOptions: Y, qrOptions: H } = this._options, ie = Y.imageSize * A[H.errorCorrectionLevel], le = Math.floor(ie * d * d);
4326
+ const { imageOptions: Y, qrOptions: H } = this._options, ie = Y.imageSize * A[H.errorCorrectionLevel], le = Math.floor(ie * p * p);
4327
4327
  D = function({ originalHeight: ye, originalWidth: J, maxHiddenDots: _e, maxHiddenAxisDots: me, dotSize: ge }) {
4328
4328
  const j = { x: 0, y: 0 }, K = { x: 0, y: 0 };
4329
4329
  if (ye <= 0 || J <= 0 || _e <= 0 || ge <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
4330
4330
  const W = ye / J;
4331
4331
  return j.x = Math.floor(Math.sqrt(_e / W)), j.x <= 0 && (j.x = 1), me && me < j.x && (j.x = me), j.x % 2 == 0 && j.x--, K.x = j.x * ge, j.y = 1 + 2 * Math.ceil((j.x * W - 1) / 2), K.y = Math.round(K.x * W), (j.y * j.x > _e || me && me < j.y) && (me && me < j.y ? (j.y = me, j.y % 2 == 0 && j.x--) : j.y -= 2, K.y = j.y * ge, j.x = 1 + 2 * Math.ceil((j.y / W - 1) / 2), K.x = Math.round(K.y / W)), { height: K.y, width: K.x, hideYDots: j.y, hideXDots: j.x };
4332
- }({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: le, maxHiddenAxisDots: d - 14, dotSize: v });
4332
+ }({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: le, maxHiddenAxisDots: p - 14, dotSize: v });
4333
4333
  }
4334
4334
  this.drawBackground(), this.drawDots((Y, H) => {
4335
4335
  var ie, le, ye, J, _e, me;
4336
- return !(this._options.imageOptions.hideBackgroundDots && Y >= (d - D.hideYDots) / 2 && Y < (d + D.hideYDots) / 2 && H >= (d - D.hideXDots) / 2 && H < (d + D.hideXDots) / 2 || !((ie = ae[Y]) === null || ie === void 0) && ie[H] || !((le = ae[Y - d + 7]) === null || le === void 0) && le[H] || !((ye = ae[Y]) === null || ye === void 0) && ye[H - d + 7] || !((J = se[Y]) === null || J === void 0) && J[H] || !((_e = se[Y - d + 7]) === null || _e === void 0) && _e[H] || !((me = se[Y]) === null || me === void 0) && me[H - d + 7]);
4337
- }), this.drawCorners(), this._options.image && await this.drawImage({ width: D.width, height: D.height, count: d, dotSize: v });
4336
+ return !(this._options.imageOptions.hideBackgroundDots && Y >= (p - D.hideYDots) / 2 && Y < (p + D.hideYDots) / 2 && H >= (p - D.hideXDots) / 2 && H < (p + D.hideXDots) / 2 || !((ie = ae[Y]) === null || ie === void 0) && ie[H] || !((le = ae[Y - p + 7]) === null || le === void 0) && le[H] || !((ye = ae[Y]) === null || ye === void 0) && ye[H - p + 7] || !((J = se[Y]) === null || J === void 0) && J[H] || !((_e = se[Y - p + 7]) === null || _e === void 0) && _e[H] || !((me = se[Y]) === null || me === void 0) && me[H - p + 7]);
4337
+ }), this.drawCorners(), this._options.image && await this.drawImage({ width: D.width, height: D.height, count: p, dotSize: v });
4338
4338
  }
4339
4339
  drawBackground() {
4340
- var p, d, b;
4340
+ var d, p, b;
4341
4341
  const f = this._element, v = this._options;
4342
4342
  if (f) {
4343
- const D = (p = v.backgroundOptions) === null || p === void 0 ? void 0 : p.gradient, Y = (d = v.backgroundOptions) === null || d === void 0 ? void 0 : d.color;
4343
+ const D = (d = v.backgroundOptions) === null || d === void 0 ? void 0 : d.gradient, Y = (p = v.backgroundOptions) === null || p === void 0 ? void 0 : p.color;
4344
4344
  let H = v.height, ie = v.width;
4345
4345
  if (D || Y) {
4346
4346
  const le = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
@@ -4348,14 +4348,14 @@ function U2() {
4348
4348
  }
4349
4349
  }
4350
4350
  }
4351
- drawDots(p) {
4352
- var d, b;
4351
+ drawDots(d) {
4352
+ var p, b;
4353
4353
  if (!this._qr) throw "QR code is not defined";
4354
4354
  const f = this._options, v = this._qr.getModuleCount();
4355
4355
  if (v > f.width || v > f.height) throw "The canvas is too small.";
4356
4356
  const D = Math.min(f.width, f.height) - 2 * f.margin, Y = f.shape === oe ? D / Math.sqrt(2) : D, H = this._roundSize(Y / v), ie = this._roundSize((f.width - v * H) / 2), le = this._roundSize((f.height - v * H) / 2), ye = new R({ svg: this._element, type: f.dotsOptions.type, window: this._window });
4357
- this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (d = f.dotsOptions) === null || d === void 0 ? void 0 : d.gradient, color: f.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: f.height, width: f.width, name: `dot-color-${this._instanceId}` });
4358
- for (let J = 0; J < v; J++) for (let _e = 0; _e < v; _e++) p && !p(J, _e) || !((b = this._qr) === null || b === void 0) && b.isDark(J, _e) && (ye.draw(ie + _e * H, le + J * H, H, (me, ge) => !(_e + me < 0 || J + ge < 0 || _e + me >= v || J + ge >= v) && !(p && !p(J + ge, _e + me)) && !!this._qr && this._qr.isDark(J + ge, _e + me)), ye._element && this._dotsClipPath && this._dotsClipPath.appendChild(ye._element));
4357
+ this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: (p = f.dotsOptions) === null || p === void 0 ? void 0 : p.gradient, color: f.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: f.height, width: f.width, name: `dot-color-${this._instanceId}` });
4358
+ for (let J = 0; J < v; J++) for (let _e = 0; _e < v; _e++) d && !d(J, _e) || !((b = this._qr) === null || b === void 0) && b.isDark(J, _e) && (ye.draw(ie + _e * H, le + J * H, H, (me, ge) => !(_e + me < 0 || J + ge < 0 || _e + me >= v || J + ge >= v) && !(d && !d(J + ge, _e + me)) && !!this._qr && this._qr.isDark(J + ge, _e + me)), ye._element && this._dotsClipPath && this._dotsClipPath.appendChild(ye._element));
4359
4359
  if (f.shape === oe) {
4360
4360
  const J = this._roundSize((D / H - v) / 2), _e = v + 2 * J, me = ie - J * H, ge = le - J * H, j = [], K = this._roundSize(_e / 2);
4361
4361
  for (let W = 0; W < _e; W++) {
@@ -4370,28 +4370,28 @@ function U2() {
4370
4370
  }
4371
4371
  drawCorners() {
4372
4372
  if (!this._qr) throw "QR code is not defined";
4373
- const p = this._element, d = this._options;
4374
- if (!p) throw "Element code is not defined";
4375
- const b = this._qr.getModuleCount(), f = Math.min(d.width, d.height) - 2 * d.margin, v = d.shape === oe ? f / Math.sqrt(2) : f, D = this._roundSize(v / b), Y = 7 * D, H = 3 * D, ie = this._roundSize((d.width - b * D) / 2), le = this._roundSize((d.height - b * D) / 2);
4373
+ const d = this._element, p = this._options;
4374
+ if (!d) throw "Element code is not defined";
4375
+ const b = this._qr.getModuleCount(), f = Math.min(p.width, p.height) - 2 * p.margin, v = p.shape === oe ? f / Math.sqrt(2) : f, D = this._roundSize(v / b), Y = 7 * D, H = 3 * D, ie = this._roundSize((p.width - b * D) / 2), le = this._roundSize((p.height - b * D) / 2);
4376
4376
  [[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach(([ye, J, _e]) => {
4377
4377
  var me, ge, j, K, W, V, X, xe, l, c, _, T, F, ee;
4378
4378
  const Ce = ie + ye * D * (b - 7), be = le + J * D * (b - 7);
4379
4379
  let Re = this._dotsClipPath, ve = this._dotsClipPath;
4380
- if ((!((me = d.cornersSquareOptions) === null || me === void 0) && me.gradient || !((ge = d.cornersSquareOptions) === null || ge === void 0) && ge.color) && (Re = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), Re.setAttribute("id", `clip-path-corners-square-color-${ye}-${J}-${this._instanceId}`), this._defs.appendChild(Re), this._cornersSquareClipPath = this._cornersDotClipPath = ve = Re, this._createColor({ options: (j = d.cornersSquareOptions) === null || j === void 0 ? void 0 : j.gradient, color: (K = d.cornersSquareOptions) === null || K === void 0 ? void 0 : K.color, additionalRotation: _e, x: Ce, y: be, height: Y, width: Y, name: `corners-square-color-${ye}-${J}-${this._instanceId}` })), ((W = d.cornersSquareOptions) === null || W === void 0 ? void 0 : W.type) && M.includes(d.cornersSquareOptions.type)) {
4381
- const Pe = new L({ svg: this._element, type: d.cornersSquareOptions.type, window: this._window });
4380
+ if ((!((me = p.cornersSquareOptions) === null || me === void 0) && me.gradient || !((ge = p.cornersSquareOptions) === null || ge === void 0) && ge.color) && (Re = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), Re.setAttribute("id", `clip-path-corners-square-color-${ye}-${J}-${this._instanceId}`), this._defs.appendChild(Re), this._cornersSquareClipPath = this._cornersDotClipPath = ve = Re, this._createColor({ options: (j = p.cornersSquareOptions) === null || j === void 0 ? void 0 : j.gradient, color: (K = p.cornersSquareOptions) === null || K === void 0 ? void 0 : K.color, additionalRotation: _e, x: Ce, y: be, height: Y, width: Y, name: `corners-square-color-${ye}-${J}-${this._instanceId}` })), ((W = p.cornersSquareOptions) === null || W === void 0 ? void 0 : W.type) && M.includes(p.cornersSquareOptions.type)) {
4381
+ const Pe = new L({ svg: this._element, type: p.cornersSquareOptions.type, window: this._window });
4382
4382
  Pe.draw(Ce, be, Y, _e), Pe._element && Re && Re.appendChild(Pe._element);
4383
4383
  } else {
4384
- const Pe = new R({ svg: this._element, type: ((V = d.cornersSquareOptions) === null || V === void 0 ? void 0 : V.type) || d.dotsOptions.type, window: this._window });
4384
+ const Pe = new R({ svg: this._element, type: ((V = p.cornersSquareOptions) === null || V === void 0 ? void 0 : V.type) || p.dotsOptions.type, window: this._window });
4385
4385
  for (let Le = 0; Le < ae.length; Le++) for (let Te = 0; Te < ae[Le].length; Te++) !((X = ae[Le]) === null || X === void 0) && X[Te] && (Pe.draw(Ce + Te * D, be + Le * D, D, (Qe, Ke) => {
4386
4386
  var tt;
4387
4387
  return !!(!((tt = ae[Le + Ke]) === null || tt === void 0) && tt[Te + Qe]);
4388
4388
  }), Pe._element && Re && Re.appendChild(Pe._element));
4389
4389
  }
4390
- if ((!((xe = d.cornersDotOptions) === null || xe === void 0) && xe.gradient || !((l = d.cornersDotOptions) === null || l === void 0) && l.color) && (ve = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), ve.setAttribute("id", `clip-path-corners-dot-color-${ye}-${J}-${this._instanceId}`), this._defs.appendChild(ve), this._cornersDotClipPath = ve, this._createColor({ options: (c = d.cornersDotOptions) === null || c === void 0 ? void 0 : c.gradient, color: (_ = d.cornersDotOptions) === null || _ === void 0 ? void 0 : _.color, additionalRotation: _e, x: Ce + 2 * D, y: be + 2 * D, height: H, width: H, name: `corners-dot-color-${ye}-${J}-${this._instanceId}` })), ((T = d.cornersDotOptions) === null || T === void 0 ? void 0 : T.type) && $.includes(d.cornersDotOptions.type)) {
4391
- const Pe = new q({ svg: this._element, type: d.cornersDotOptions.type, window: this._window });
4390
+ if ((!((xe = p.cornersDotOptions) === null || xe === void 0) && xe.gradient || !((l = p.cornersDotOptions) === null || l === void 0) && l.color) && (ve = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), ve.setAttribute("id", `clip-path-corners-dot-color-${ye}-${J}-${this._instanceId}`), this._defs.appendChild(ve), this._cornersDotClipPath = ve, this._createColor({ options: (c = p.cornersDotOptions) === null || c === void 0 ? void 0 : c.gradient, color: (_ = p.cornersDotOptions) === null || _ === void 0 ? void 0 : _.color, additionalRotation: _e, x: Ce + 2 * D, y: be + 2 * D, height: H, width: H, name: `corners-dot-color-${ye}-${J}-${this._instanceId}` })), ((T = p.cornersDotOptions) === null || T === void 0 ? void 0 : T.type) && $.includes(p.cornersDotOptions.type)) {
4391
+ const Pe = new q({ svg: this._element, type: p.cornersDotOptions.type, window: this._window });
4392
4392
  Pe.draw(Ce + 2 * D, be + 2 * D, H, _e), Pe._element && ve && ve.appendChild(Pe._element);
4393
4393
  } else {
4394
- const Pe = new R({ svg: this._element, type: ((F = d.cornersDotOptions) === null || F === void 0 ? void 0 : F.type) || d.dotsOptions.type, window: this._window });
4394
+ const Pe = new R({ svg: this._element, type: ((F = p.cornersDotOptions) === null || F === void 0 ? void 0 : F.type) || p.dotsOptions.type, window: this._window });
4395
4395
  for (let Le = 0; Le < se.length; Le++) for (let Te = 0; Te < se[Le].length; Te++) !((ee = se[Le]) === null || ee === void 0) && ee[Te] && (Pe.draw(Ce + Te * D, be + Le * D, D, (Qe, Ke) => {
4396
4396
  var tt;
4397
4397
  return !!(!((tt = se[Le + Ke]) === null || tt === void 0) && tt[Te + Qe]);
@@ -4400,18 +4400,18 @@ function U2() {
4400
4400
  });
4401
4401
  }
4402
4402
  loadImage() {
4403
- return new Promise((p, d) => {
4403
+ return new Promise((d, p) => {
4404
4404
  var b;
4405
4405
  const f = this._options;
4406
- if (!f.image) return d("Image is not defined");
4406
+ if (!f.image) return p("Image is not defined");
4407
4407
  if (!((b = f.nodeCanvas) === null || b === void 0) && b.loadImage) f.nodeCanvas.loadImage(f.image).then((v) => {
4408
4408
  var D, Y;
4409
4409
  if (this._image = v, this._options.imageOptions.saveAsBlob) {
4410
4410
  const H = (D = f.nodeCanvas) === null || D === void 0 ? void 0 : D.createCanvas(this._image.width, this._image.height);
4411
4411
  (Y = H?.getContext("2d")) === null || Y === void 0 || Y.drawImage(v, 0, 0), this._imageUri = H?.toDataURL();
4412
4412
  }
4413
- p();
4414
- }).catch(d);
4413
+ d();
4414
+ }).catch(p);
4415
4415
  else {
4416
4416
  const v = new this._window.Image();
4417
4417
  typeof f.imageOptions.crossOrigin == "string" && (v.crossOrigin = f.imageOptions.crossOrigin), this._image = v, v.onload = async () => {
@@ -4425,30 +4425,30 @@ function U2() {
4425
4425
  }, le.readAsDataURL(ie.response);
4426
4426
  }, ie.open("GET", D), ie.responseType = "blob", ie.send();
4427
4427
  });
4428
- }(f.image || "", this._window)), p();
4428
+ }(f.image || "", this._window)), d();
4429
4429
  }, v.src = f.image;
4430
4430
  }
4431
4431
  });
4432
4432
  }
4433
- async drawImage({ width: p, height: d, count: b, dotSize: f }) {
4434
- const v = this._options, D = this._roundSize((v.width - b * f) / 2), Y = this._roundSize((v.height - b * f) / 2), H = D + this._roundSize(v.imageOptions.margin + (b * f - p) / 2), ie = Y + this._roundSize(v.imageOptions.margin + (b * f - d) / 2), le = p - 2 * v.imageOptions.margin, ye = d - 2 * v.imageOptions.margin, J = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
4433
+ async drawImage({ width: d, height: p, count: b, dotSize: f }) {
4434
+ const v = this._options, D = this._roundSize((v.width - b * f) / 2), Y = this._roundSize((v.height - b * f) / 2), H = D + this._roundSize(v.imageOptions.margin + (b * f - d) / 2), ie = Y + this._roundSize(v.imageOptions.margin + (b * f - p) / 2), le = d - 2 * v.imageOptions.margin, ye = p - 2 * v.imageOptions.margin, J = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
4435
4435
  J.setAttribute("href", this._imageUri || ""), J.setAttribute("xlink:href", this._imageUri || ""), J.setAttribute("x", String(H)), J.setAttribute("y", String(ie)), J.setAttribute("width", `${le}px`), J.setAttribute("height", `${ye}px`), this._element.appendChild(J);
4436
4436
  }
4437
- _createColor({ options: p, color: d, additionalRotation: b, x: f, y: v, height: D, width: Y, name: H }) {
4437
+ _createColor({ options: d, color: p, additionalRotation: b, x: f, y: v, height: D, width: Y, name: H }) {
4438
4438
  const ie = Y > D ? Y : D, le = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
4439
- if (le.setAttribute("x", String(f)), le.setAttribute("y", String(v)), le.setAttribute("height", String(D)), le.setAttribute("width", String(Y)), le.setAttribute("clip-path", `url('#clip-path-${H}')`), p) {
4439
+ if (le.setAttribute("x", String(f)), le.setAttribute("y", String(v)), le.setAttribute("height", String(D)), le.setAttribute("width", String(Y)), le.setAttribute("clip-path", `url('#clip-path-${H}')`), d) {
4440
4440
  let ye;
4441
- if (p.type === "radial") ye = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ye.setAttribute("id", H), ye.setAttribute("gradientUnits", "userSpaceOnUse"), ye.setAttribute("fx", String(f + Y / 2)), ye.setAttribute("fy", String(v + D / 2)), ye.setAttribute("cx", String(f + Y / 2)), ye.setAttribute("cy", String(v + D / 2)), ye.setAttribute("r", String(ie / 2));
4441
+ if (d.type === "radial") ye = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), ye.setAttribute("id", H), ye.setAttribute("gradientUnits", "userSpaceOnUse"), ye.setAttribute("fx", String(f + Y / 2)), ye.setAttribute("fy", String(v + D / 2)), ye.setAttribute("cx", String(f + Y / 2)), ye.setAttribute("cy", String(v + D / 2)), ye.setAttribute("r", String(ie / 2));
4442
4442
  else {
4443
- const J = ((p.rotation || 0) + b) % (2 * Math.PI), _e = (J + 2 * Math.PI) % (2 * Math.PI);
4443
+ const J = ((d.rotation || 0) + b) % (2 * Math.PI), _e = (J + 2 * Math.PI) % (2 * Math.PI);
4444
4444
  let me = f + Y / 2, ge = v + D / 2, j = f + Y / 2, K = v + D / 2;
4445
4445
  _e >= 0 && _e <= 0.25 * Math.PI || _e > 1.75 * Math.PI && _e <= 2 * Math.PI ? (me -= Y / 2, ge -= D / 2 * Math.tan(J), j += Y / 2, K += D / 2 * Math.tan(J)) : _e > 0.25 * Math.PI && _e <= 0.75 * Math.PI ? (ge -= D / 2, me -= Y / 2 / Math.tan(J), K += D / 2, j += Y / 2 / Math.tan(J)) : _e > 0.75 * Math.PI && _e <= 1.25 * Math.PI ? (me += Y / 2, ge += D / 2 * Math.tan(J), j -= Y / 2, K -= D / 2 * Math.tan(J)) : _e > 1.25 * Math.PI && _e <= 1.75 * Math.PI && (ge += D / 2, me += Y / 2 / Math.tan(J), K -= D / 2, j -= Y / 2 / Math.tan(J)), ye = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), ye.setAttribute("id", H), ye.setAttribute("gradientUnits", "userSpaceOnUse"), ye.setAttribute("x1", String(Math.round(me))), ye.setAttribute("y1", String(Math.round(ge))), ye.setAttribute("x2", String(Math.round(j))), ye.setAttribute("y2", String(Math.round(K)));
4446
4446
  }
4447
- p.colorStops.forEach(({ offset: J, color: _e }) => {
4447
+ d.colorStops.forEach(({ offset: J, color: _e }) => {
4448
4448
  const me = this._window.document.createElementNS("http://www.w3.org/2000/svg", "stop");
4449
4449
  me.setAttribute("offset", 100 * J + "%"), me.setAttribute("stop-color", _e), ye.appendChild(me);
4450
4450
  }), le.setAttribute("fill", `url('#${H}')`), this._defs.appendChild(ye);
4451
- } else d && le.setAttribute("fill", d);
4451
+ } else p && le.setAttribute("fill", p);
4452
4452
  this._element.appendChild(le);
4453
4453
  }
4454
4454
  }
@@ -4457,40 +4457,40 @@ function U2() {
4457
4457
  for (let S = 0; S <= 40; S++) Q[S] = S;
4458
4458
  const G = { type: te, shape: "square", width: 300, height: 300, data: "", margin: 0, qrOptions: { typeNumber: Q[0], mode: void 0, errorCorrectionLevel: "Q" }, imageOptions: { saveAsBlob: !0, hideBackgroundDots: !0, imageSize: 0.4, crossOrigin: void 0, margin: 0 }, dotsOptions: { type: "square", color: "#000", roundSize: !0 }, backgroundOptions: { round: 0, color: "#fff" } };
4459
4459
  function he(S) {
4460
- const p = Object.assign({}, S);
4461
- if (!p.colorStops || !p.colorStops.length) throw "Field 'colorStops' is required in gradient";
4462
- return p.rotation ? p.rotation = Number(p.rotation) : p.rotation = 0, p.colorStops = p.colorStops.map((d) => Object.assign(Object.assign({}, d), { offset: Number(d.offset) })), p;
4460
+ const d = Object.assign({}, S);
4461
+ if (!d.colorStops || !d.colorStops.length) throw "Field 'colorStops' is required in gradient";
4462
+ return d.rotation ? d.rotation = Number(d.rotation) : d.rotation = 0, d.colorStops = d.colorStops.map((p) => Object.assign(Object.assign({}, p), { offset: Number(p.offset) })), d;
4463
4463
  }
4464
4464
  function fe(S) {
4465
- const p = Object.assign({}, S);
4466
- return p.width = Number(p.width), p.height = Number(p.height), p.margin = Number(p.margin), p.imageOptions = Object.assign(Object.assign({}, p.imageOptions), { hideBackgroundDots: !!p.imageOptions.hideBackgroundDots, imageSize: Number(p.imageOptions.imageSize), margin: Number(p.imageOptions.margin) }), p.margin > Math.min(p.width, p.height) && (p.margin = Math.min(p.width, p.height)), p.dotsOptions = Object.assign({}, p.dotsOptions), p.dotsOptions.gradient && (p.dotsOptions.gradient = he(p.dotsOptions.gradient)), p.cornersSquareOptions && (p.cornersSquareOptions = Object.assign({}, p.cornersSquareOptions), p.cornersSquareOptions.gradient && (p.cornersSquareOptions.gradient = he(p.cornersSquareOptions.gradient))), p.cornersDotOptions && (p.cornersDotOptions = Object.assign({}, p.cornersDotOptions), p.cornersDotOptions.gradient && (p.cornersDotOptions.gradient = he(p.cornersDotOptions.gradient))), p.backgroundOptions && (p.backgroundOptions = Object.assign({}, p.backgroundOptions), p.backgroundOptions.gradient && (p.backgroundOptions.gradient = he(p.backgroundOptions.gradient))), p;
4465
+ const d = Object.assign({}, S);
4466
+ return d.width = Number(d.width), d.height = Number(d.height), d.margin = Number(d.margin), d.imageOptions = Object.assign(Object.assign({}, d.imageOptions), { hideBackgroundDots: !!d.imageOptions.hideBackgroundDots, imageSize: Number(d.imageOptions.imageSize), margin: Number(d.imageOptions.margin) }), d.margin > Math.min(d.width, d.height) && (d.margin = Math.min(d.width, d.height)), d.dotsOptions = Object.assign({}, d.dotsOptions), d.dotsOptions.gradient && (d.dotsOptions.gradient = he(d.dotsOptions.gradient)), d.cornersSquareOptions && (d.cornersSquareOptions = Object.assign({}, d.cornersSquareOptions), d.cornersSquareOptions.gradient && (d.cornersSquareOptions.gradient = he(d.cornersSquareOptions.gradient))), d.cornersDotOptions && (d.cornersDotOptions = Object.assign({}, d.cornersDotOptions), d.cornersDotOptions.gradient && (d.cornersDotOptions.gradient = he(d.cornersDotOptions.gradient))), d.backgroundOptions && (d.backgroundOptions = Object.assign({}, d.backgroundOptions), d.backgroundOptions.gradient && (d.backgroundOptions.gradient = he(d.backgroundOptions.gradient))), d;
4467
4467
  }
4468
4468
  var ne = u(873), Se = u.n(ne);
4469
4469
  function De(S) {
4470
4470
  if (!S) throw new Error("Extension must be defined");
4471
4471
  S[0] === "." && (S = S.substring(1));
4472
- const p = { bmp: "image/bmp", gif: "image/gif", ico: "image/vnd.microsoft.icon", jpeg: "image/jpeg", jpg: "image/jpeg", png: "image/png", svg: "image/svg+xml", tif: "image/tiff", tiff: "image/tiff", webp: "image/webp", pdf: "application/pdf" }[S.toLowerCase()];
4473
- if (!p) throw new Error(`Extension "${S}" is not supported`);
4474
- return p;
4472
+ const d = { bmp: "image/bmp", gif: "image/gif", ico: "image/vnd.microsoft.icon", jpeg: "image/jpeg", jpg: "image/jpeg", png: "image/png", svg: "image/svg+xml", tif: "image/tiff", tiff: "image/tiff", webp: "image/webp", pdf: "application/pdf" }[S.toLowerCase()];
4473
+ if (!d) throw new Error(`Extension "${S}" is not supported`);
4474
+ return d;
4475
4475
  }
4476
4476
  class k {
4477
- constructor(p) {
4478
- p != null && p.jsdom ? this._window = new p.jsdom("", { resources: "usable" }).window : this._window = window, this._options = p ? fe(h(G, p)) : G, this.update();
4477
+ constructor(d) {
4478
+ d != null && d.jsdom ? this._window = new d.jsdom("", { resources: "usable" }).window : this._window = window, this._options = d ? fe(h(G, d)) : G, this.update();
4479
4479
  }
4480
- static _clearContainer(p) {
4481
- p && (p.innerHTML = "");
4480
+ static _clearContainer(d) {
4481
+ d && (d.innerHTML = "");
4482
4482
  }
4483
4483
  _setupSvg() {
4484
4484
  if (!this._qr) return;
4485
- const p = new Z(this._options, this._window);
4486
- this._svg = p.getElement(), this._svgDrawingPromise = p.drawQR(this._qr).then(() => {
4487
- var d;
4488
- this._svg && ((d = this._extension) === null || d === void 0 || d.call(this, p.getElement(), this._options));
4485
+ const d = new Z(this._options, this._window);
4486
+ this._svg = d.getElement(), this._svgDrawingPromise = d.drawQR(this._qr).then(() => {
4487
+ var p;
4488
+ this._svg && ((p = this._extension) === null || p === void 0 || p.call(this, d.getElement(), this._options));
4489
4489
  });
4490
4490
  }
4491
4491
  _setupCanvas() {
4492
- var p, d;
4493
- this._qr && (!((p = this._options.nodeCanvas) === null || p === void 0) && p.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (d = this._svgDrawingPromise) === null || d === void 0 ? void 0 : d.then(() => {
4492
+ var d, p;
4493
+ this._qr && (!((d = this._options.nodeCanvas) === null || d === void 0) && d.createCanvas ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = (p = this._svgDrawingPromise) === null || p === void 0 ? void 0 : p.then(() => {
4494
4494
  var b;
4495
4495
  if (!this._svg) return;
4496
4496
  const f = this._svg, v = new this._window.XMLSerializer().serializeToString(f), D = btoa(v), Y = `data:${De("svg")};base64,${D}`;
@@ -4509,46 +4509,46 @@ function U2() {
4509
4509
  }
4510
4510
  }));
4511
4511
  }
4512
- async _getElement(p = "png") {
4512
+ async _getElement(d = "png") {
4513
4513
  if (!this._qr) throw "QR code is empty";
4514
- return p.toLowerCase() === "svg" ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas);
4514
+ return d.toLowerCase() === "svg" ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas);
4515
4515
  }
4516
- update(p) {
4517
- k._clearContainer(this._container), this._options = p ? fe(h(this._options, p)) : this._options, this._options.data && (this._qr = Se()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || function(d) {
4516
+ update(d) {
4517
+ k._clearContainer(this._container), this._options = d ? fe(h(this._options, d)) : this._options, this._options.data && (this._qr = Se()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || function(p) {
4518
4518
  switch (!0) {
4519
- case /^[0-9]*$/.test(d):
4519
+ case /^[0-9]*$/.test(p):
4520
4520
  return "Numeric";
4521
- case /^[0-9A-Z $%*+\-./:]*$/.test(d):
4521
+ case /^[0-9A-Z $%*+\-./:]*$/.test(p):
4522
4522
  return "Alphanumeric";
4523
4523
  default:
4524
4524
  return "Byte";
4525
4525
  }
4526
4526
  }(this._options.data)), this._qr.make(), this._options.type === te ? this._setupCanvas() : this._setupSvg(), this.append(this._container));
4527
4527
  }
4528
- append(p) {
4529
- if (p) {
4530
- if (typeof p.appendChild != "function") throw "Container should be a single DOM node";
4531
- this._options.type === te ? this._domCanvas && p.appendChild(this._domCanvas) : this._svg && p.appendChild(this._svg), this._container = p;
4528
+ append(d) {
4529
+ if (d) {
4530
+ if (typeof d.appendChild != "function") throw "Container should be a single DOM node";
4531
+ this._options.type === te ? this._domCanvas && d.appendChild(this._domCanvas) : this._svg && d.appendChild(this._svg), this._container = d;
4532
4532
  }
4533
4533
  }
4534
- applyExtension(p) {
4535
- if (!p) throw "Extension function should be defined.";
4536
- this._extension = p, this.update();
4534
+ applyExtension(d) {
4535
+ if (!d) throw "Extension function should be defined.";
4536
+ this._extension = d, this.update();
4537
4537
  }
4538
4538
  deleteExtension() {
4539
4539
  this._extension = void 0, this.update();
4540
4540
  }
4541
- async getRawData(p = "png") {
4541
+ async getRawData(d = "png") {
4542
4542
  if (!this._qr) throw "QR code is empty";
4543
- const d = await this._getElement(p), b = De(p);
4544
- if (!d) return null;
4545
- if (p.toLowerCase() === "svg") {
4543
+ const p = await this._getElement(d), b = De(d);
4544
+ if (!p) return null;
4545
+ if (d.toLowerCase() === "svg") {
4546
4546
  const f = `<?xml version="1.0" standalone="no"?>\r
4547
- ${new this._window.XMLSerializer().serializeToString(d)}`;
4547
+ ${new this._window.XMLSerializer().serializeToString(p)}`;
4548
4548
  return typeof Blob > "u" || this._options.jsdom ? Buffer.from(f) : new Blob([f], { type: b });
4549
4549
  }
4550
4550
  return new Promise((f) => {
4551
- const v = d;
4551
+ const v = p;
4552
4552
  if ("toBuffer" in v) if (b === "image/png") f(v.toBuffer(b));
4553
4553
  else if (b === "image/jpeg") f(v.toBuffer(b));
4554
4554
  else {
@@ -4558,17 +4558,17 @@ ${new this._window.XMLSerializer().serializeToString(d)}`;
4558
4558
  else "toBlob" in v && v.toBlob(f, b, 1);
4559
4559
  });
4560
4560
  }
4561
- async download(p) {
4561
+ async download(d) {
4562
4562
  if (!this._qr) throw "QR code is empty";
4563
4563
  if (typeof Blob > "u") throw "Cannot download in Node.js, call getRawData instead.";
4564
- let d = "png", b = "qr";
4565
- typeof p == "string" ? (d = p, console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")) : typeof p == "object" && p !== null && (p.name && (b = p.name), p.extension && (d = p.extension));
4566
- const f = await this._getElement(d);
4567
- if (f) if (d.toLowerCase() === "svg") {
4564
+ let p = "png", b = "qr";
4565
+ typeof d == "string" ? (p = d, console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")) : typeof d == "object" && d !== null && (d.name && (b = d.name), d.extension && (p = d.extension));
4566
+ const f = await this._getElement(p);
4567
+ if (f) if (p.toLowerCase() === "svg") {
4568
4568
  let v = new XMLSerializer().serializeToString(f);
4569
4569
  v = `<?xml version="1.0" standalone="no"?>\r
4570
- ` + v, C(`data:${De(d)};charset=utf-8,${encodeURIComponent(v)}`, `${b}.svg`);
4571
- } else C(f.toDataURL(De(d)), `${b}.${d}`);
4570
+ ` + v, C(`data:${De(p)};charset=utf-8,${encodeURIComponent(v)}`, `${b}.svg`);
4571
+ } else C(f.toDataURL(De(p)), `${b}.${p}`);
4572
4572
  }
4573
4573
  }
4574
4574
  const E = k;
@@ -4578,7 +4578,7 @@ ${new this._window.XMLSerializer().serializeToString(d)}`;
4578
4578
  }
4579
4579
  U2();
4580
4580
  const Oh = hl(void 0);
4581
- function Cx(i) {
4581
+ function bx(i) {
4582
4582
  const n = kn.c(9), {
4583
4583
  children: r,
4584
4584
  baseUrl: s,
@@ -4654,7 +4654,7 @@ async function V2(i, n) {
4654
4654
  return r;
4655
4655
  }).then((r) => r.status == 204 ? n : r.json()).then((r) => r);
4656
4656
  }
4657
- async function Sx(i, n, r) {
4657
+ async function xx(i, n, r) {
4658
4658
  return fetch(n, {
4659
4659
  method: i,
4660
4660
  headers: await hi(),
@@ -4807,15 +4807,15 @@ function uw() {
4807
4807
  var E = ["th", "st", "nd", "rd"], S = k % 100;
4808
4808
  return "[" + k + (E[(S - 20) % 10] || E[S] || E[0]) + "]";
4809
4809
  } }, se = function(k, E, S) {
4810
- var p = String(k);
4811
- return !p || p.length >= E ? k : "" + Array(E + 1 - p.length).join(S) + k;
4810
+ var d = String(k);
4811
+ return !d || d.length >= E ? k : "" + Array(E + 1 - d.length).join(S) + k;
4812
4812
  }, ue = { s: se, z: function(k) {
4813
- var E = -k.utcOffset(), S = Math.abs(E), p = Math.floor(S / 60), d = S % 60;
4814
- return (E <= 0 ? "+" : "-") + se(p, 2, "0") + ":" + se(d, 2, "0");
4813
+ var E = -k.utcOffset(), S = Math.abs(E), d = Math.floor(S / 60), p = S % 60;
4814
+ return (E <= 0 ? "+" : "-") + se(d, 2, "0") + ":" + se(p, 2, "0");
4815
4815
  }, m: function k(E, S) {
4816
4816
  if (E.date() < S.date()) return -k(S, E);
4817
- var p = 12 * (S.year() - E.year()) + (S.month() - E.month()), d = E.clone().add(p, N), b = S - d < 0, f = E.clone().add(p + (b ? -1 : 1), N);
4818
- return +(-(p + (S - d) / (b ? d - f : f - d)) || 0);
4817
+ var d = 12 * (S.year() - E.year()) + (S.month() - E.month()), p = E.clone().add(d, N), b = S - p < 0, f = E.clone().add(d + (b ? -1 : 1), N);
4818
+ return +(-(d + (S - p) / (b ? p - f : f - p)) || 0);
4819
4819
  }, a: function(k) {
4820
4820
  return k < 0 ? Math.ceil(k) || 0 : Math.floor(k);
4821
4821
  }, p: function(k) {
@@ -4826,19 +4826,19 @@ function uw() {
4826
4826
  te[Z] = ae;
4827
4827
  var Q = "$isDayjsObject", G = function(k) {
4828
4828
  return k instanceof Se || !(!k || !k[Q]);
4829
- }, he = function k(E, S, p) {
4830
- var d;
4829
+ }, he = function k(E, S, d) {
4830
+ var p;
4831
4831
  if (!E) return Z;
4832
4832
  if (typeof E == "string") {
4833
4833
  var b = E.toLowerCase();
4834
- te[b] && (d = b), S && (te[b] = S, d = b);
4834
+ te[b] && (p = b), S && (te[b] = S, p = b);
4835
4835
  var f = E.split("-");
4836
- if (!d && f.length > 1) return k(f[0]);
4836
+ if (!p && f.length > 1) return k(f[0]);
4837
4837
  } else {
4838
4838
  var v = E.name;
4839
- te[v] = E, d = v;
4839
+ te[v] = E, p = v;
4840
4840
  }
4841
- return !p && d && (Z = d), d || !p && Z;
4841
+ return !d && p && (Z = p), p || !d && Z;
4842
4842
  }, fe = function(k, E) {
4843
4843
  if (G(k)) return k.clone();
4844
4844
  var S = typeof E == "object" ? E : {};
@@ -4853,19 +4853,19 @@ function uw() {
4853
4853
  }
4854
4854
  var E = k.prototype;
4855
4855
  return E.parse = function(S) {
4856
- this.$d = function(p) {
4857
- var d = p.date, b = p.utc;
4858
- if (d === null) return /* @__PURE__ */ new Date(NaN);
4859
- if (ne.u(d)) return /* @__PURE__ */ new Date();
4860
- if (d instanceof Date) return new Date(d);
4861
- if (typeof d == "string" && !/Z$/i.test(d)) {
4862
- var f = d.match(q);
4856
+ this.$d = function(d) {
4857
+ var p = d.date, b = d.utc;
4858
+ if (p === null) return /* @__PURE__ */ new Date(NaN);
4859
+ if (ne.u(p)) return /* @__PURE__ */ new Date();
4860
+ if (p instanceof Date) return new Date(p);
4861
+ if (typeof p == "string" && !/Z$/i.test(p)) {
4862
+ var f = p.match(q);
4863
4863
  if (f) {
4864
4864
  var v = f[2] - 1 || 0, D = (f[7] || "0").substring(0, 3);
4865
4865
  return b ? new Date(Date.UTC(f[1], v, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, D)) : new Date(f[1], v, f[3] || 1, f[4] || 0, f[5] || 0, f[6] || 0, D);
4866
4866
  }
4867
4867
  }
4868
- return new Date(d);
4868
+ return new Date(p);
4869
4869
  }(S), this.init();
4870
4870
  }, E.init = function() {
4871
4871
  var S = this.$d;
@@ -4874,25 +4874,25 @@ function uw() {
4874
4874
  return ne;
4875
4875
  }, E.isValid = function() {
4876
4876
  return this.$d.toString() !== $;
4877
- }, E.isSame = function(S, p) {
4878
- var d = fe(S);
4879
- return this.startOf(p) <= d && d <= this.endOf(p);
4880
- }, E.isAfter = function(S, p) {
4881
- return fe(S) < this.startOf(p);
4882
- }, E.isBefore = function(S, p) {
4883
- return this.endOf(p) < fe(S);
4884
- }, E.$g = function(S, p, d) {
4885
- return ne.u(S) ? this[p] : this.set(d, S);
4877
+ }, E.isSame = function(S, d) {
4878
+ var p = fe(S);
4879
+ return this.startOf(d) <= p && p <= this.endOf(d);
4880
+ }, E.isAfter = function(S, d) {
4881
+ return fe(S) < this.startOf(d);
4882
+ }, E.isBefore = function(S, d) {
4883
+ return this.endOf(d) < fe(S);
4884
+ }, E.$g = function(S, d, p) {
4885
+ return ne.u(S) ? this[d] : this.set(p, S);
4886
4886
  }, E.unix = function() {
4887
4887
  return Math.floor(this.valueOf() / 1e3);
4888
4888
  }, E.valueOf = function() {
4889
4889
  return this.$d.getTime();
4890
- }, E.startOf = function(S, p) {
4891
- var d = this, b = !!ne.u(p) || p, f = ne.p(S), v = function(_e, me) {
4892
- var ge = ne.w(d.$u ? Date.UTC(d.$y, me, _e) : new Date(d.$y, me, _e), d);
4890
+ }, E.startOf = function(S, d) {
4891
+ var p = this, b = !!ne.u(d) || d, f = ne.p(S), v = function(_e, me) {
4892
+ var ge = ne.w(p.$u ? Date.UTC(p.$y, me, _e) : new Date(p.$y, me, _e), p);
4893
4893
  return b ? ge : ge.endOf(A);
4894
4894
  }, D = function(_e, me) {
4895
- return ne.w(d.toDate()[_e].apply(d.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), d);
4895
+ return ne.w(p.toDate()[_e].apply(p.toDate("s"), (b ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(me)), p);
4896
4896
  }, Y = this.$W, H = this.$M, ie = this.$D, le = "set" + (this.$u ? "UTC" : "");
4897
4897
  switch (f) {
4898
4898
  case L:
@@ -4916,21 +4916,21 @@ function uw() {
4916
4916
  }
4917
4917
  }, E.endOf = function(S) {
4918
4918
  return this.startOf(S, !1);
4919
- }, E.$set = function(S, p) {
4920
- var d, b = ne.p(S), f = "set" + (this.$u ? "UTC" : ""), v = (d = {}, d[A] = f + "Date", d[I] = f + "Date", d[N] = f + "Month", d[L] = f + "FullYear", d[C] = f + "Hours", d[h] = f + "Minutes", d[m] = f + "Seconds", d[g] = f + "Milliseconds", d)[b], D = b === A ? this.$D + (p - this.$W) : p;
4919
+ }, E.$set = function(S, d) {
4920
+ var p, b = ne.p(S), f = "set" + (this.$u ? "UTC" : ""), v = (p = {}, p[A] = f + "Date", p[I] = f + "Date", p[N] = f + "Month", p[L] = f + "FullYear", p[C] = f + "Hours", p[h] = f + "Minutes", p[m] = f + "Seconds", p[g] = f + "Milliseconds", p)[b], D = b === A ? this.$D + (d - this.$W) : d;
4921
4921
  if (b === N || b === L) {
4922
4922
  var Y = this.clone().set(I, 1);
4923
4923
  Y.$d[v](D), Y.init(), this.$d = Y.set(I, Math.min(this.$D, Y.daysInMonth())).$d;
4924
4924
  } else v && this.$d[v](D);
4925
4925
  return this.init(), this;
4926
- }, E.set = function(S, p) {
4927
- return this.clone().$set(S, p);
4926
+ }, E.set = function(S, d) {
4927
+ return this.clone().$set(S, d);
4928
4928
  }, E.get = function(S) {
4929
4929
  return this[ne.p(S)]();
4930
- }, E.add = function(S, p) {
4931
- var d, b = this;
4930
+ }, E.add = function(S, d) {
4931
+ var p, b = this;
4932
4932
  S = Number(S);
4933
- var f = ne.p(p), v = function(H) {
4933
+ var f = ne.p(d), v = function(H) {
4934
4934
  var ie = fe(b);
4935
4935
  return ne.w(ie.date(ie.date() + Math.round(H * S)), b);
4936
4936
  };
@@ -4938,15 +4938,15 @@ function uw() {
4938
4938
  if (f === L) return this.set(L, this.$y + S);
4939
4939
  if (f === A) return v(1);
4940
4940
  if (f === R) return v(7);
4941
- var D = (d = {}, d[h] = s, d[C] = u, d[m] = r, d)[f] || 1, Y = this.$d.getTime() + S * D;
4941
+ var D = (p = {}, p[h] = s, p[C] = u, p[m] = r, p)[f] || 1, Y = this.$d.getTime() + S * D;
4942
4942
  return ne.w(Y, this);
4943
- }, E.subtract = function(S, p) {
4944
- return this.add(-1 * S, p);
4943
+ }, E.subtract = function(S, d) {
4944
+ return this.add(-1 * S, d);
4945
4945
  }, E.format = function(S) {
4946
- var p = this, d = this.$locale();
4947
- if (!this.isValid()) return d.invalidDate || $;
4948
- var b = S || "YYYY-MM-DDTHH:mm:ssZ", f = ne.z(this), v = this.$H, D = this.$m, Y = this.$M, H = d.weekdays, ie = d.months, le = d.meridiem, ye = function(me, ge, j, K) {
4949
- return me && (me[ge] || me(p, b)) || j[ge].slice(0, K);
4946
+ var d = this, p = this.$locale();
4947
+ if (!this.isValid()) return p.invalidDate || $;
4948
+ var b = S || "YYYY-MM-DDTHH:mm:ssZ", f = ne.z(this), v = this.$H, D = this.$m, Y = this.$M, H = p.weekdays, ie = p.months, le = p.meridiem, ye = function(me, ge, j, K) {
4949
+ return me && (me[ge] || me(d, b)) || j[ge].slice(0, K);
4950
4950
  }, J = function(me) {
4951
4951
  return ne.s(v % 12 || 12, me, "0");
4952
4952
  }, _e = le || function(me, ge, j) {
@@ -4957,29 +4957,29 @@ function uw() {
4957
4957
  return ge || function(j) {
4958
4958
  switch (j) {
4959
4959
  case "YY":
4960
- return String(p.$y).slice(-2);
4960
+ return String(d.$y).slice(-2);
4961
4961
  case "YYYY":
4962
- return ne.s(p.$y, 4, "0");
4962
+ return ne.s(d.$y, 4, "0");
4963
4963
  case "M":
4964
4964
  return Y + 1;
4965
4965
  case "MM":
4966
4966
  return ne.s(Y + 1, 2, "0");
4967
4967
  case "MMM":
4968
- return ye(d.monthsShort, Y, ie, 3);
4968
+ return ye(p.monthsShort, Y, ie, 3);
4969
4969
  case "MMMM":
4970
4970
  return ye(ie, Y);
4971
4971
  case "D":
4972
- return p.$D;
4972
+ return d.$D;
4973
4973
  case "DD":
4974
- return ne.s(p.$D, 2, "0");
4974
+ return ne.s(d.$D, 2, "0");
4975
4975
  case "d":
4976
- return String(p.$W);
4976
+ return String(d.$W);
4977
4977
  case "dd":
4978
- return ye(d.weekdaysMin, p.$W, H, 2);
4978
+ return ye(p.weekdaysMin, d.$W, H, 2);
4979
4979
  case "ddd":
4980
- return ye(d.weekdaysShort, p.$W, H, 3);
4980
+ return ye(p.weekdaysShort, d.$W, H, 3);
4981
4981
  case "dddd":
4982
- return H[p.$W];
4982
+ return H[d.$W];
4983
4983
  case "H":
4984
4984
  return String(v);
4985
4985
  case "HH":
@@ -4997,11 +4997,11 @@ function uw() {
4997
4997
  case "mm":
4998
4998
  return ne.s(D, 2, "0");
4999
4999
  case "s":
5000
- return String(p.$s);
5000
+ return String(d.$s);
5001
5001
  case "ss":
5002
- return ne.s(p.$s, 2, "0");
5002
+ return ne.s(d.$s, 2, "0");
5003
5003
  case "SSS":
5004
- return ne.s(p.$ms, 3, "0");
5004
+ return ne.s(d.$ms, 3, "0");
5005
5005
  case "Z":
5006
5006
  return f;
5007
5007
  }
@@ -5010,8 +5010,8 @@ function uw() {
5010
5010
  });
5011
5011
  }, E.utcOffset = function() {
5012
5012
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
5013
- }, E.diff = function(S, p, d) {
5014
- var b, f = this, v = ne.p(p), D = fe(S), Y = (D.utcOffset() - this.utcOffset()) * s, H = this - D, ie = function() {
5013
+ }, E.diff = function(S, d, p) {
5014
+ var b, f = this, v = ne.p(d), D = fe(S), Y = (D.utcOffset() - this.utcOffset()) * s, H = this - D, ie = function() {
5015
5015
  return ne.m(f, D);
5016
5016
  };
5017
5017
  switch (v) {
@@ -5042,15 +5042,15 @@ function uw() {
5042
5042
  default:
5043
5043
  b = H;
5044
5044
  }
5045
- return d ? b : ne.a(b);
5045
+ return p ? b : ne.a(b);
5046
5046
  }, E.daysInMonth = function() {
5047
5047
  return this.endOf(N).$D;
5048
5048
  }, E.$locale = function() {
5049
5049
  return te[this.$L];
5050
- }, E.locale = function(S, p) {
5050
+ }, E.locale = function(S, d) {
5051
5051
  if (!S) return this.$L;
5052
- var d = this.clone(), b = he(S, p, !0);
5053
- return b && (d.$L = b), d;
5052
+ var p = this.clone(), b = he(S, d, !0);
5053
+ return b && (p.$L = b), p;
5054
5054
  }, E.clone = function() {
5055
5055
  return ne.w(this.$d, this);
5056
5056
  }, E.toDate = function() {
@@ -5522,8 +5522,8 @@ const Ew = {
5522
5522
  withCellSpacing: k,
5523
5523
  size: E,
5524
5524
  highlightToday: S,
5525
- withWeekNumbers: p,
5526
- attributes: d,
5525
+ withWeekNumbers: d,
5526
+ attributes: p,
5527
5527
  ...b
5528
5528
  } = r, f = mr({
5529
5529
  name: A || "Month",
@@ -5534,7 +5534,7 @@ const Ew = {
5534
5534
  classNames: s,
5535
5535
  styles: m,
5536
5536
  unstyled: h,
5537
- attributes: d,
5537
+ attributes: p,
5538
5538
  vars: C,
5539
5539
  varsResolver: Pw,
5540
5540
  rootSelector: "month"
@@ -5604,7 +5604,7 @@ const Ew = {
5604
5604
  );
5605
5605
  });
5606
5606
  return /* @__PURE__ */ O.jsxs("tr", { ...f("monthRow"), children: [
5607
- p && /* @__PURE__ */ O.jsx("td", { ...f("weekNumber"), children: Rw(ye) }),
5607
+ d && /* @__PURE__ */ O.jsx("td", { ...f("weekNumber"), children: Rw(ye) }),
5608
5608
  _e
5609
5609
  ] }, J);
5610
5610
  });
@@ -5620,7 +5620,7 @@ const Ew = {
5620
5620
  classNames: H,
5621
5621
  styles: ie,
5622
5622
  unstyled: h,
5623
- withWeekNumbers: p
5623
+ withWeekNumbers: d
5624
5624
  }
5625
5625
  ) }),
5626
5626
  /* @__PURE__ */ O.jsx("tbody", { ...f("monthTbody"), children: le })
@@ -5758,8 +5758,8 @@ const kw = {
5758
5758
  maxDate: L,
5759
5759
  getYearControlProps: I
5760
5760
  }), k = Se.map((E, S) => {
5761
- const p = E.map((d, b) => {
5762
- const f = I?.(d), v = Oe(d).isSame(De, "year");
5761
+ const d = E.map((p, b) => {
5762
+ const f = I?.(p), v = Oe(p).isSame(De, "year");
5763
5763
  return /* @__PURE__ */ O.jsx(
5764
5764
  "td",
5765
5765
  {
@@ -5772,32 +5772,32 @@ const kw = {
5772
5772
  size: Q,
5773
5773
  unstyled: h,
5774
5774
  "data-mantine-stop-propagation": Z || void 0,
5775
- disabled: Bh({ year: d, minDate: M, maxDate: L }),
5775
+ disabled: Bh({ year: p, minDate: M, maxDate: L }),
5776
5776
  ref: (D) => {
5777
5777
  D && q?.(S, b, D);
5778
5778
  },
5779
5779
  ...f,
5780
5780
  onKeyDown: (D) => {
5781
- f?.onKeyDown?.(D), oe?.(D, { rowIndex: S, cellIndex: b, date: d });
5781
+ f?.onKeyDown?.(D), oe?.(D, { rowIndex: S, cellIndex: b, date: p });
5782
5782
  },
5783
5783
  onClick: (D) => {
5784
- f?.onClick?.(D), ae?.(D, d);
5784
+ f?.onClick?.(D), ae?.(D, p);
5785
5785
  },
5786
5786
  onMouseEnter: (D) => {
5787
- f?.onMouseEnter?.(D), se?.(D, d);
5787
+ f?.onMouseEnter?.(D), se?.(D, p);
5788
5788
  },
5789
5789
  onMouseDown: (D) => {
5790
5790
  f?.onMouseDown?.(D), ue && D.preventDefault();
5791
5791
  },
5792
5792
  tabIndex: ue || !v ? -1 : 0,
5793
- children: Oe(d).locale(ne.getLocale(N)).format(R)
5793
+ children: Oe(p).locale(ne.getLocale(N)).format(R)
5794
5794
  }
5795
5795
  )
5796
5796
  },
5797
5797
  b
5798
5798
  );
5799
5799
  });
5800
- return /* @__PURE__ */ O.jsx("tr", { ...fe("yearsListRow"), children: p }, S);
5800
+ return /* @__PURE__ */ O.jsx("tr", { ...fe("yearsListRow"), children: d }, S);
5801
5801
  });
5802
5802
  return /* @__PURE__ */ O.jsx(Bt, { component: "table", ref: n, size: Q, ...fe("yearsList"), ...he, children: /* @__PURE__ */ O.jsx("tbody", { children: k }) });
5803
5803
  });
@@ -5875,8 +5875,8 @@ const Iw = {
5875
5875
  maxDate: xn(I),
5876
5876
  getMonthControlProps: $
5877
5877
  }), k = Se.map((E, S) => {
5878
- const p = E.map((d, b) => {
5879
- const f = $?.(d), v = Oe(d).isSame(De, "month");
5878
+ const d = E.map((p, b) => {
5879
+ const f = $?.(p), v = Oe(p).isSame(De, "month");
5880
5880
  return /* @__PURE__ */ O.jsx(
5881
5881
  "td",
5882
5882
  {
@@ -5891,7 +5891,7 @@ const Iw = {
5891
5891
  __staticSelector: A || "MonthsList",
5892
5892
  "data-mantine-stop-propagation": Z || void 0,
5893
5893
  disabled: Fh({
5894
- month: d,
5894
+ month: p,
5895
5895
  minDate: xn(L),
5896
5896
  maxDate: xn(I)
5897
5897
  }),
@@ -5900,26 +5900,26 @@ const Iw = {
5900
5900
  },
5901
5901
  ...f,
5902
5902
  onKeyDown: (D) => {
5903
- f?.onKeyDown?.(D), oe?.(D, { rowIndex: S, cellIndex: b, date: d });
5903
+ f?.onKeyDown?.(D), oe?.(D, { rowIndex: S, cellIndex: b, date: p });
5904
5904
  },
5905
5905
  onClick: (D) => {
5906
- f?.onClick?.(D), ae?.(D, d);
5906
+ f?.onClick?.(D), ae?.(D, p);
5907
5907
  },
5908
5908
  onMouseEnter: (D) => {
5909
- f?.onMouseEnter?.(D), se?.(D, d);
5909
+ f?.onMouseEnter?.(D), se?.(D, p);
5910
5910
  },
5911
5911
  onMouseDown: (D) => {
5912
5912
  f?.onMouseDown?.(D), ue && D.preventDefault();
5913
5913
  },
5914
5914
  tabIndex: ue || !v ? -1 : 0,
5915
- children: Oe(d).locale(ne.getLocale(M)).format(N)
5915
+ children: Oe(p).locale(ne.getLocale(M)).format(N)
5916
5916
  }
5917
5917
  )
5918
5918
  },
5919
5919
  b
5920
5920
  );
5921
5921
  });
5922
- return /* @__PURE__ */ O.jsx("tr", { ...fe("monthsListRow"), children: p }, S);
5922
+ return /* @__PURE__ */ O.jsx("tr", { ...fe("monthsListRow"), children: d }, S);
5923
5923
  });
5924
5924
  return /* @__PURE__ */ O.jsx(Bt, { component: "table", ref: n, size: Q, ...fe("monthsList"), ...he, children: /* @__PURE__ */ O.jsx("tbody", { children: k }) });
5925
5925
  });
@@ -6016,7 +6016,7 @@ const $w = {
6016
6016
  "data-mantine-stop-propagation": fe || void 0
6017
6017
  },
6018
6018
  q
6019
- ), p = Z && /* @__PURE__ */ Ko(
6019
+ ), d = Z && /* @__PURE__ */ Ko(
6020
6020
  zi,
6021
6021
  {
6022
6022
  ...De("calendarHeaderControl"),
@@ -6039,8 +6039,8 @@ const $w = {
6039
6039
  size: "45%"
6040
6040
  }
6041
6041
  )
6042
- ), d = Q.map((b) => b === "previous" ? E : b === "level" ? S : b === "next" ? p : null);
6043
- return /* @__PURE__ */ O.jsx(Bt, { ...De("calendarHeader"), ref: n, ...Se, children: d });
6042
+ ), p = Q.map((b) => b === "previous" ? E : b === "level" ? S : b === "next" ? d : null);
6043
+ return /* @__PURE__ */ O.jsx(Bt, { ...De("calendarHeader"), ref: n, ...Se, children: p });
6044
6044
  });
6045
6045
  _r.classes = zh;
6046
6046
  _r.displayName = "@mantine/dates/CalendarHeader";
@@ -6085,18 +6085,18 @@ const Yw = {
6085
6085
  unstyled: k,
6086
6086
  __staticSelector: E,
6087
6087
  __stopPropagation: S,
6088
- size: p,
6089
- attributes: d,
6088
+ size: d,
6089
+ attributes: p,
6090
6090
  ...b
6091
6091
  } = r, f = yr(), [v, D] = Bw(s), Y = {
6092
6092
  __staticSelector: E || "DecadeLevel",
6093
6093
  classNames: Se,
6094
6094
  styles: De,
6095
6095
  unstyled: k,
6096
- size: p,
6097
- attributes: d
6096
+ size: d,
6097
+ attributes: p
6098
6098
  }, H = typeof Z == "boolean" ? Z : m ? !Oe(D).endOf("year").isBefore(m) : !1, ie = typeof te == "boolean" ? te : g ? !Oe(v).startOf("year").isAfter(g) : !1, le = (ye, J) => Oe(ye).locale(u || f.locale).format(J);
6099
- return /* @__PURE__ */ O.jsxs(Bt, { "data-decade-level": !0, size: p, ref: n, ...b, children: [
6099
+ return /* @__PURE__ */ O.jsxs(Bt, { "data-decade-level": !0, size: d, ref: n, ...b, children: [
6100
6100
  /* @__PURE__ */ O.jsx(
6101
6101
  _r,
6102
6102
  {
@@ -6182,15 +6182,15 @@ const Ww = {
6182
6182
  __staticSelector: k,
6183
6183
  __stopPropagation: E,
6184
6184
  size: S,
6185
- classNames: p,
6186
- styles: d,
6185
+ classNames: d,
6186
+ styles: p,
6187
6187
  unstyled: b,
6188
6188
  attributes: f,
6189
6189
  ...v
6190
6190
  } = r, D = yr(), Y = {
6191
6191
  __staticSelector: k || "YearLevel",
6192
- classNames: p,
6193
- styles: d,
6192
+ classNames: d,
6193
+ styles: p,
6194
6194
  unstyled: b,
6195
6195
  size: S,
6196
6196
  attributes: f
@@ -6278,8 +6278,8 @@ const Fw = {
6278
6278
  onPrevious: k,
6279
6279
  onLevelClick: E,
6280
6280
  nextDisabled: S,
6281
- previousDisabled: p,
6282
- hasNextLevel: d,
6281
+ previousDisabled: d,
6282
+ hasNextLevel: p,
6283
6283
  levelControlAriaLabel: b,
6284
6284
  withNext: f,
6285
6285
  withPrevious: v,
@@ -6301,7 +6301,7 @@ const Fw = {
6301
6301
  unstyled: le,
6302
6302
  size: J,
6303
6303
  attributes: me
6304
- }, W = typeof S == "boolean" ? S : N ? !Oe(s).endOf("month").isBefore(N) : !1, V = typeof p == "boolean" ? p : R ? !Oe(s).startOf("month").isAfter(R) : !1;
6304
+ }, W = typeof S == "boolean" ? S : N ? !Oe(s).endOf("month").isBefore(N) : !1, V = typeof d == "boolean" ? d : R ? !Oe(s).startOf("month").isAfter(R) : !1;
6305
6305
  return /* @__PURE__ */ O.jsxs(Bt, { "data-month-level": !0, size: J, ref: n, ...ge, children: [
6306
6306
  /* @__PURE__ */ O.jsx(
6307
6307
  _r,
@@ -6318,7 +6318,7 @@ const Fw = {
6318
6318
  onLevelClick: E,
6319
6319
  nextDisabled: W,
6320
6320
  previousDisabled: V,
6321
- hasNextLevel: d,
6321
+ hasNextLevel: p,
6322
6322
  levelControlAriaLabel: b,
6323
6323
  withNext: f,
6324
6324
  withPrevious: v,
@@ -6425,8 +6425,8 @@ const Uw = {
6425
6425
  size: k,
6426
6426
  vars: E,
6427
6427
  attributes: S,
6428
- ...p
6429
- } = r, d = yt([]), b = Array(ne).fill(0).map((f, v) => {
6428
+ ...d
6429
+ } = r, p = yt([]), b = Array(ne).fill(0).map((f, v) => {
6430
6430
  const D = Oe(s).add(v * 10, "years").format("YYYY-MM-DD");
6431
6431
  return /* @__PURE__ */ O.jsx(
6432
6432
  ps,
@@ -6444,10 +6444,10 @@ const Uw = {
6444
6444
  rowIndex: H.rowIndex,
6445
6445
  cellIndex: H.cellIndex,
6446
6446
  event: Y,
6447
- controlsRef: d
6447
+ controlsRef: p
6448
6448
  }),
6449
6449
  __getControlRef: (Y, H, ie) => {
6450
- Array.isArray(d.current[v]) || (d.current[v] = []), Array.isArray(d.current[v][Y]) || (d.current[v][Y] = []), d.current[v][Y][H] = ie;
6450
+ Array.isArray(p.current[v]) || (p.current[v] = []), Array.isArray(p.current[v][Y]) || (p.current[v][Y] = []), p.current[v][Y][H] = ie;
6451
6451
  },
6452
6452
  levelControlAriaLabel: typeof Se == "function" ? Se(D) : Se,
6453
6453
  locale: u,
@@ -6485,7 +6485,7 @@ const Uw = {
6485
6485
  size: k,
6486
6486
  unstyled: G,
6487
6487
  attributes: S,
6488
- ...p,
6488
+ ...d,
6489
6489
  children: b
6490
6490
  }
6491
6491
  );
@@ -6529,8 +6529,8 @@ const zw = {
6529
6529
  levelControlAriaLabel: k,
6530
6530
  yearLabelFormat: E,
6531
6531
  size: S,
6532
- vars: p,
6533
- attributes: d,
6532
+ vars: d,
6533
+ attributes: p,
6534
6534
  ...b
6535
6535
  } = r, f = yt([]), v = Array(De).fill(0).map((D, Y) => {
6536
6536
  const H = Oe(s).add(Y, "years").format("YYYY-MM-DD");
@@ -6578,7 +6578,7 @@ const zw = {
6578
6578
  __staticSelector: ne || "YearLevelGroup",
6579
6579
  withCellSpacing: N,
6580
6580
  headerControlsOrder: Q,
6581
- attributes: d
6581
+ attributes: p
6582
6582
  },
6583
6583
  Y
6584
6584
  );
@@ -6592,7 +6592,7 @@ const zw = {
6592
6592
  ref: n,
6593
6593
  size: S,
6594
6594
  unstyled: fe,
6595
- attributes: d,
6595
+ attributes: p,
6596
6596
  ...b,
6597
6597
  children: v
6598
6598
  }
@@ -6637,8 +6637,8 @@ const qw = {
6637
6637
  hasNextLevel: E,
6638
6638
  headerControlsOrder: S,
6639
6639
  // Other settings
6640
- classNames: p,
6641
- styles: d,
6640
+ classNames: d,
6641
+ styles: p,
6642
6642
  unstyled: b,
6643
6643
  numberOfColumns: f,
6644
6644
  levelControlAriaLabel: v,
@@ -6696,8 +6696,8 @@ const qw = {
6696
6696
  nextDisabled: De,
6697
6697
  previousDisabled: k,
6698
6698
  hasNextLevel: E,
6699
- classNames: p,
6700
- styles: d,
6699
+ classNames: d,
6700
+ styles: p,
6701
6701
  unstyled: b,
6702
6702
  __staticSelector: Y || "MonthLevelGroup",
6703
6703
  size: ie,
@@ -6714,8 +6714,8 @@ const qw = {
6714
6714
  return /* @__PURE__ */ O.jsx(
6715
6715
  wr,
6716
6716
  {
6717
- classNames: p,
6718
- styles: d,
6717
+ classNames: d,
6718
+ styles: p,
6719
6719
  __staticSelector: Y || "MonthLevelGroup",
6720
6720
  ref: n,
6721
6721
  size: ie,
@@ -6802,8 +6802,8 @@ const Gw = {
6802
6802
  excludeDate: k,
6803
6803
  renderDay: E,
6804
6804
  hideOutsideDates: S,
6805
- hideWeekdays: p,
6806
- getDayAriaLabel: d,
6805
+ hideWeekdays: d,
6806
+ getDayAriaLabel: p,
6807
6807
  monthLabelFormat: b,
6808
6808
  nextIcon: f,
6809
6809
  previousIcon: v,
@@ -6936,8 +6936,8 @@ const Gw = {
6936
6936
  excludeDate: k,
6937
6937
  renderDay: E,
6938
6938
  hideOutsideDates: S,
6939
- hideWeekdays: p,
6940
- getDayAriaLabel: d,
6939
+ hideWeekdays: d,
6940
+ getDayAriaLabel: p,
6941
6941
  onNext: sn,
6942
6942
  onPrevious: an,
6943
6943
  hasNextLevel: u !== "month",
@@ -7063,9 +7063,9 @@ function Vw(i) {
7063
7063
  __setDateRef: k,
7064
7064
  __setLevelRef: E,
7065
7065
  withWeekNumbers: S,
7066
- headerControlsOrder: p,
7066
+ headerControlsOrder: d,
7067
7067
  // MonthLevelGroup props
7068
- firstDayOfWeek: d,
7068
+ firstDayOfWeek: p,
7069
7069
  weekdayFormat: b,
7070
7070
  weekendDays: f,
7071
7071
  getDayProps: v,
@@ -7125,9 +7125,9 @@ function Vw(i) {
7125
7125
  __updateDateOnMonthSelect: De,
7126
7126
  __setDateRef: k,
7127
7127
  withWeekNumbers: S,
7128
- headerControlsOrder: p,
7128
+ headerControlsOrder: d,
7129
7129
  // MonthLevelGroup props
7130
- firstDayOfWeek: d,
7130
+ firstDayOfWeek: p,
7131
7131
  weekdayFormat: b,
7132
7132
  weekendDays: f,
7133
7133
  getDayProps: v,
@@ -7200,8 +7200,8 @@ const Qw = {
7200
7200
  date: k,
7201
7201
  defaultDate: E,
7202
7202
  onDateChange: S,
7203
- getMonthControlProps: p,
7204
- getYearControlProps: d,
7203
+ getMonthControlProps: d,
7204
+ getYearControlProps: p,
7205
7205
  ...b
7206
7206
  } = r, f = yt(null), v = yt(null), [D, Y] = Xe(!1), { calendarProps: H, others: ie } = Vw(b), le = yr(), J = I || ((be) => {
7207
7207
  const Re = Oe(be, L, le.getLocale(M)).toDate();
@@ -7323,11 +7323,11 @@ const Qw = {
7323
7323
  onDateChange: V,
7324
7324
  getMonthControlProps: (be) => ({
7325
7325
  selected: typeof ge == "string" ? Sl(be, ge) : !1,
7326
- ...p?.(be)
7326
+ ...d?.(be)
7327
7327
  }),
7328
7328
  getYearControlProps: (be) => ({
7329
7329
  selected: typeof ge == "string" ? Oe(be).isSame(ge, "year") : !1,
7330
- ...d?.(be)
7330
+ ...p?.(be)
7331
7331
  }),
7332
7332
  attributes: u.attributes
7333
7333
  }
@@ -7360,14 +7360,14 @@ function Jw(i) {
7360
7360
  isPending: se
7361
7361
  } = Rh(g, u), ue = oe || se;
7362
7362
  let Z;
7363
- n[0] !== r ? (Z = new Set(r.filter(ib).map(rb)), n[0] = r, n[1] = Z) : Z = n[1];
7363
+ n[0] !== r ? (Z = new Set(r.filter(rb).map(nb)), n[0] = r, n[1] = Z) : Z = n[1];
7364
7364
  let te;
7365
7365
  n[2] !== Z ? (te = [...Z], n[2] = Z, n[3] = te) : te = n[3];
7366
7366
  const Q = te;
7367
7367
  let G;
7368
- n[4] !== r ? (G = r.reduce(nb, {}), n[4] = r, n[5] = G) : G = n[5];
7368
+ n[4] !== r ? (G = r.reduce(tb, {}), n[4] = r, n[5] = G) : G = n[5];
7369
7369
  let he;
7370
- n[6] !== r ? (he = r.filter(tb).reduce(Xw, {}), n[6] = r, n[7] = he) : he = n[7];
7370
+ n[6] !== r ? (he = r.filter(eb).reduce(Xw, {}), n[6] = r, n[7] = he) : he = n[7];
7371
7371
  let fe;
7372
7372
  n[8] !== G || n[9] !== he ? (fe = {
7373
7373
  mode: "uncontrolled",
@@ -7379,13 +7379,13 @@ function Jw(i) {
7379
7379
  n[11] !== ne || n[12] !== M ? (Se = function(v) {
7380
7380
  const D = ne.getValues();
7381
7381
  return v.conditional && !v.conditional(D) ? null : /* @__PURE__ */ O.jsxs(sh, { children: [
7382
- (v.type === void 0 || v.type == "text") && /* @__PURE__ */ O.jsx(lh, { label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), type: v.id.includes("email") ? "email" : void 0 }, ne.key(v.id)),
7383
- v.type === "number" && /* @__PURE__ */ O.jsx(uh, { decimalSeparator: ",", label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id) }, ne.key(v.id)),
7384
- v.type === "date" && /* @__PURE__ */ O.jsx(bs, { label: v.column.title, placeholder: v.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...ne.getInputProps(v.id) }, ne.key(v.id)),
7382
+ (v.type === void 0 || v.type == "text") && /* @__PURE__ */ O.jsx(lh, { label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), type: v.id.includes("email") ? "email" : void 0, required: v.required }, ne.key(v.id)),
7383
+ v.type === "number" && /* @__PURE__ */ O.jsx(uh, { decimalSeparator: ",", label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), required: v.required }, ne.key(v.id)),
7384
+ v.type === "date" && /* @__PURE__ */ O.jsx(bs, { label: v.column.title, placeholder: v.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...ne.getInputProps(v.id), required: v.required }, ne.key(v.id)),
7385
7385
  v.type === "boolean" && /* @__PURE__ */ O.jsx(Qi, { mt: "md", label: v.column.title, ...ne.getInputProps(v.id, {
7386
7386
  type: "checkbox"
7387
- }) }, ne.key(v.id)),
7388
- v.type === "textarea" && /* @__PURE__ */ O.jsx(ch, { label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), minRows: 3, autosize: !0 }, ne.key(v.id)),
7387
+ }), required: v.required }, ne.key(v.id)),
7388
+ v.type === "textarea" && /* @__PURE__ */ O.jsx(ch, { label: v.column.title, placeholder: v.placeholder ?? "", ...ne.getInputProps(v.id), minRows: 3, autosize: !0, required: v.required }, ne.key(v.id)),
7389
7389
  v.type === "custom" && v.render && v.render({
7390
7390
  ...ne.getValues(),
7391
7391
  ...M && {
@@ -7417,43 +7417,40 @@ function Jw(i) {
7417
7417
  n[28] !== C || n[29] !== r || n[30] !== De || n[31] !== m || n[32] !== Q ? (S = Q.length ? /* @__PURE__ */ O.jsx(Jo, { active: C, size: "sm", children: Q.map((f) => /* @__PURE__ */ O.jsx(Jo.Step, { ...m && m[f - 1] ? {
7418
7418
  label: m[f - 1].label
7419
7419
  } : {}, children: r.filter((v) => v.step === f).map((v) => De(v)) }, f)) }) : r.map((f) => De(f)), n[28] = C, n[29] = r, n[30] = De, n[31] = m, n[32] = Q, n[33] = S) : S = n[33];
7420
- let p;
7421
- n[34] !== C || n[35] !== R || n[36] !== ue || n[37] !== s || n[38] !== Q.length ? (p = !R && /* @__PURE__ */ O.jsxs(nr, { mt: "md", justify: "end", children: [
7420
+ let d;
7421
+ n[34] !== C || n[35] !== R || n[36] !== ue || n[37] !== s || n[38] !== Q.length ? (d = !R && /* @__PURE__ */ O.jsxs(nr, { mt: "md", justify: "end", children: [
7422
7422
  /* @__PURE__ */ O.jsx(rr, { onClick: () => Q.length ? C === 0 ? s() : A(C - 1) : s(), variant: "outline", children: Q.length ? C === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
7423
7423
  /* @__PURE__ */ O.jsx(rr, { type: "submit", loading: ue, children: Q.length ? C === Q.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
7424
- ] }), n[34] = C, n[35] = R, n[36] = ue, n[37] = s, n[38] = Q.length, n[39] = p) : p = n[39];
7425
- let d;
7426
- n[40] !== p || n[41] !== E || n[42] !== S ? (d = /* @__PURE__ */ O.jsxs("form", { onSubmit: E, children: [
7424
+ ] }), n[34] = C, n[35] = R, n[36] = ue, n[37] = s, n[38] = Q.length, n[39] = d) : d = n[39];
7425
+ let p;
7426
+ n[40] !== d || n[41] !== E || n[42] !== S ? (p = /* @__PURE__ */ O.jsxs("form", { onSubmit: E, children: [
7427
7427
  S,
7428
- p
7429
- ] }), n[40] = p, n[41] = E, n[42] = S, n[43] = d) : d = n[43];
7428
+ d
7429
+ ] }), n[40] = d, n[41] = E, n[42] = S, n[43] = p) : p = n[43];
7430
7430
  let b;
7431
- return n[44] !== d || n[45] !== k ? (b = /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
7431
+ return n[44] !== p || n[45] !== k ? (b = /* @__PURE__ */ O.jsxs(O.Fragment, { children: [
7432
7432
  k,
7433
- d
7434
- ] }), n[44] = d, n[45] = k, n[46] = b) : b = n[46], b;
7433
+ p
7434
+ ] }), n[44] = p, n[45] = k, n[46] = b) : b = n[46], b;
7435
7435
  }
7436
7436
  function Xw(i, n) {
7437
- return i[n.id] = eb, i;
7437
+ return i[n.id] = (r, s) => n.conditional && !n.conditional(s) || r ? null : "Pflichtfeld", i;
7438
7438
  }
7439
7439
  function eb(i) {
7440
- return i ? null : "Pflichtfeld";
7441
- }
7442
- function tb(i) {
7443
7440
  return i.required;
7444
7441
  }
7445
- function nb(i, n) {
7442
+ function tb(i, n) {
7446
7443
  return i[n.id] = n.type === "boolean" ? !1 : n.defaultValue ?? "", i;
7447
7444
  }
7448
- function rb(i) {
7445
+ function nb(i) {
7449
7446
  return i.step;
7450
7447
  }
7451
- function ib(i) {
7448
+ function rb(i) {
7452
7449
  return typeof i.step == "number";
7453
7450
  }
7454
- var [ob, Dl] = Zm("useDataTableColumnsContext must be used within DataTableColumnProvider"), Vf = (i) => {
7451
+ var [ib, Dl] = Zm("useDataTableColumnsContext must be used within DataTableColumnProvider"), Vf = (i) => {
7455
7452
  let { children: n, columnsOrder: r, setColumnsOrder: s, columnsToggle: u, setColumnsToggle: g, resetColumnsOrder: m, resetColumnsToggle: h, setColumnWidth: C, setMultipleColumnWidths: A, resetColumnsWidth: R } = i, [N, M] = Xe(""), [L, I] = Xe("");
7456
- return O.jsx(ob, { value: { sourceColumn: N, setSourceColumn: M, targetColumn: L, setTargetColumn: I, columnsToggle: u, setColumnsToggle: g, swapColumns: () => {
7453
+ return O.jsx(ib, { value: { sourceColumn: N, setSourceColumn: M, targetColumn: L, setTargetColumn: I, columnsToggle: u, setColumnsToggle: g, swapColumns: () => {
7457
7454
  if (!r || !s || !N || !L) return;
7458
7455
  let $ = r.indexOf(N), q = r.indexOf(L);
7459
7456
  if ($ !== -1 && q !== -1) {
@@ -7462,16 +7459,16 @@ var [ob, Dl] = Zm("useDataTableColumnsContext must be used within DataTableColum
7462
7459
  }
7463
7460
  }, resetColumnsOrder: m, resetColumnsToggle: h, setColumnWidth: C, setMultipleColumnWidths: A, resetColumnsWidth: R }, children: n });
7464
7461
  };
7465
- function sb() {
7462
+ function ob() {
7466
7463
  return O.jsx("tr", { className: "mantine-datatable-empty-row", children: O.jsx("td", {}) });
7467
7464
  }
7468
- function ab() {
7465
+ function sb() {
7469
7466
  return O.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M12.983 8.978c3.955 -.182 7.017 -1.446 7.017 -2.978c0 -1.657 -3.582 -3 -8 -3c-1.661 0 -3.204 .19 -4.483 .515m-2.783 1.228c-.471 .382 -.734 .808 -.734 1.257c0 1.22 1.944 2.271 4.734 2.74" }), O.jsx("path", { d: "M4 6v6c0 1.657 3.582 3 8 3c.986 0 1.93 -.067 2.802 -.19m3.187 -.82c1.251 -.53 2.011 -1.228 2.011 -1.99v-6" }), O.jsx("path", { d: "M4 12v6c0 1.657 3.582 3 8 3c3.217 0 5.991 -.712 7.261 -1.74m.739 -3.26v-4" }), O.jsx("path", { d: "M3 3l18 18" })] });
7470
7467
  }
7471
- function lb({ icon: i, text: n, active: r, children: s }) {
7472
- return O.jsx(oi, { className: "mantine-datatable-empty-state", "data-active": r || void 0, children: s || O.jsxs(O.Fragment, { children: [i || O.jsx("div", { className: "mantine-datatable-empty-state-icon", children: O.jsx(ab, {}) }), O.jsx(Gi, { component: "div", size: "sm", c: "dimmed", children: n })] }) });
7468
+ function ab({ icon: i, text: n, active: r, children: s }) {
7469
+ return O.jsx(oi, { className: "mantine-datatable-empty-state", "data-active": r || void 0, children: s || O.jsxs(O.Fragment, { children: [i || O.jsx("div", { className: "mantine-datatable-empty-state-icon", children: O.jsx(sb, {}) }), O.jsx(Gi, { component: "div", size: "sm", c: "dimmed", children: n })] }) });
7473
7470
  }
7474
- var ub = ({ key: i, columns: n = [], getInitialValueInEffect: r = !0 }) => {
7471
+ var lb = ({ key: i, columns: n = [], getInitialValueInEffect: r = !0 }) => {
7475
7472
  function s(Z, te) {
7476
7473
  let Q = [];
7477
7474
  return Z.forEach((G) => {
@@ -7565,7 +7562,7 @@ function Ka(i, n, r) {
7565
7562
  };
7566
7563
  }
7567
7564
  }
7568
- function cb({ scrollCallbacks: i, withRowBorders: n }) {
7565
+ function ub({ scrollCallbacks: i, withRowBorders: n }) {
7569
7566
  let r = { root: yt(null), table: yt(null), scrollViewport: yt(null), header: yt(null), footer: yt(null), selectionColumnHeader: yt(null) }, { root: s, table: u, scrollViewport: g, header: m, footer: h, selectionColumnHeader: C } = r, A = Zf({ withRowBorders: n }), R = Zf(i), N = yt(() => {
7570
7567
  }), M = yt(() => {
7571
7568
  }), L = Fn((I) => {
@@ -7619,13 +7616,13 @@ function cb({ scrollCallbacks: i, withRowBorders: n }) {
7619
7616
  M.current();
7620
7617
  }, [n]), { refs: r, onScroll: L };
7621
7618
  }
7622
- function fb(i) {
7619
+ function cb(i) {
7623
7620
  let [n, r] = Xe(null), s = i?.join(":") || "";
7624
7621
  return xt(() => {
7625
7622
  r(null);
7626
7623
  }, [s]), { lastSelectionChangeIndex: n, setLastSelectionChangeIndex: r };
7627
7624
  }
7628
- function hb(i, n) {
7625
+ function fb(i, n) {
7629
7626
  let r = () => {
7630
7627
  n(i.map((u) => u.matches));
7631
7628
  }, s = i.map((u) => {
@@ -7639,20 +7636,20 @@ function hb(i, n) {
7639
7636
  s.forEach((u) => u());
7640
7637
  };
7641
7638
  }
7642
- function db(i, n) {
7639
+ function hb(i, n) {
7643
7640
  return n || (typeof window < "u" && "matchMedia" in window ? i.map((r) => window.matchMedia(r).matches) : i.map(() => !1));
7644
7641
  }
7645
- function pb(i, n, { getInitialValueInEffect: r } = { getInitialValueInEffect: !0 }) {
7646
- let [s, u] = Xe(r ? n : db(i, n)), g = yt(null);
7642
+ function db(i, n, { getInitialValueInEffect: r } = { getInitialValueInEffect: !0 }) {
7643
+ let [s, u] = Xe(r ? n : hb(i, n)), g = yt(null);
7647
7644
  return xt(() => {
7648
- if ("matchMedia" in window) return g.current = i.map((m) => window.matchMedia(m)), u(g.current.map((m) => m.matches)), hb(g.current, (m) => {
7645
+ if ("matchMedia" in window) return g.current = i.map((m) => window.matchMedia(m)), u(g.current.map((m) => m.matches)), fb(g.current, (m) => {
7649
7646
  u(m);
7650
7647
  });
7651
7648
  }, [i]), s;
7652
7649
  }
7653
- function gb(i) {
7650
+ function pb(i) {
7654
7651
  let n = dh(), r = Lr(() => i.map((u) => (typeof u == "function" ? u(n) : u) ?? ""), [i, n]), s = Lr(() => i.map(() => !0), [i]);
7655
- return pb(r, s);
7652
+ return db(r, s);
7656
7653
  }
7657
7654
  function xs(i) {
7658
7655
  let n = dh(), r = typeof i == "function" ? i(n) : i;
@@ -7662,7 +7659,7 @@ function Al(i) {
7662
7659
  let n = i.replace(/([a-z\d])([A-Z]+)/g, "$1 $2").replace(/\W|_/g, " ").trim().toLowerCase();
7663
7660
  return `${n.charAt(0).toUpperCase()}${n.slice(1)}`;
7664
7661
  }
7665
- function vb(i, n, r) {
7662
+ function gb(i, n, r) {
7666
7663
  return i.filter((s) => !n.map(r).includes(r(s)));
7667
7664
  }
7668
7665
  function Za(i, n) {
@@ -7674,7 +7671,7 @@ function Hh(i, n) {
7674
7671
  function $t(i, n) {
7675
7672
  return typeof n == "string" ? Hh(i, n) : n(i);
7676
7673
  }
7677
- function mb({ rowExpansion: i, records: n, idAccessor: r }) {
7674
+ function vb({ rowExpansion: i, records: n, idAccessor: r }) {
7678
7675
  let s = [];
7679
7676
  if (i && n) {
7680
7677
  let { trigger: h, allowMultiple: C, initiallyExpanded: A } = i;
@@ -7691,43 +7688,43 @@ function mb({ rowExpansion: i, records: n, idAccessor: r }) {
7691
7688
  }, collapseRow: M, collapseProps: R, content: ({ record: L, index: I }) => () => N({ record: L, index: I, collapse: () => M(L) }) };
7692
7689
  }
7693
7690
  }
7694
- function yb(i, n) {
7691
+ function mb(i, n) {
7695
7692
  let [r, s] = Xe(i), [u, g] = Xe(i), m = Hc(() => s(!0), 0), h = Hc(() => g(!1), n || 200);
7696
7693
  return xt(() => {
7697
7694
  i ? (h.clear(), g(!0), m.start()) : (m.clear(), s(!1), h.start());
7698
7695
  }, [m, h, i]), { expanded: r, visible: u };
7699
7696
  }
7700
- var Ol = "mantine-datatable-nowrap", Rl = "mantine-datatable-ellipsis", li = "mantine-datatable-pointer-cursor", Gh = "mantine-datatable-context-menu-cursor", _b = "mantine-datatable-text-selection-disabled", Cs = "mantine-datatable-text-align-left", Ss = "mantine-datatable-text-align-center", Ds = "mantine-datatable-text-align-right";
7701
- function wb({ className: i, style: n, visibleMediaQuery: r, title: s, noWrap: u, ellipsis: g, textAlign: m, width: h }) {
7697
+ var Ol = "mantine-datatable-nowrap", Rl = "mantine-datatable-ellipsis", li = "mantine-datatable-pointer-cursor", Gh = "mantine-datatable-context-menu-cursor", yb = "mantine-datatable-text-selection-disabled", Cs = "mantine-datatable-text-align-left", Ss = "mantine-datatable-text-align-center", Ds = "mantine-datatable-text-align-right";
7698
+ function _b({ className: i, style: n, visibleMediaQuery: r, title: s, noWrap: u, ellipsis: g, textAlign: m, width: h }) {
7702
7699
  return xs(r) ? O.jsx(Ji, { className: ft({ [Ol]: u || g, [Rl]: g, [Cs]: m === "left", [Ss]: m === "center", [Ds]: m === "right" }, i), style: [{ width: h, minWidth: h, maxWidth: h }, n], children: s }) : null;
7703
7700
  }
7704
- function bb({ shadowVisible: i }) {
7701
+ function wb({ shadowVisible: i }) {
7705
7702
  return O.jsx(Ji, { className: "mantine-datatable-footer-selector-placeholder-cell", "data-shadow-visible": i || void 0 });
7706
7703
  }
7707
- function xb({ className: i, style: n, columns: r, defaultColumnProps: s, selectionVisible: u, selectorCellShadowVisible: g, ref: m }) {
7708
- return O.jsx(ey, { ref: m, className: ft("mantine-datatable-footer", i), style: n, children: O.jsxs(ai, { children: [u && O.jsx(bb, { shadowVisible: g }), r.map(({ hidden: h, ...C }) => {
7704
+ function bb({ className: i, style: n, columns: r, defaultColumnProps: s, selectionVisible: u, selectorCellShadowVisible: g, ref: m }) {
7705
+ return O.jsx(ey, { ref: m, className: ft("mantine-datatable-footer", i), style: n, children: O.jsxs(ai, { children: [u && O.jsx(wb, { shadowVisible: g }), r.map(({ hidden: h, ...C }) => {
7709
7706
  if (h) return null;
7710
7707
  let { accessor: A, visibleMediaQuery: R, textAlign: N, width: M, footer: L, footerClassName: I, footerStyle: $, noWrap: q, ellipsis: oe } = { ...s, ...C };
7711
- return O.jsx(wb, { className: I, style: $, visibleMediaQuery: R, textAlign: N, width: M, title: L, noWrap: q, ellipsis: oe }, A);
7708
+ return O.jsx(_b, { className: I, style: $, visibleMediaQuery: R, textAlign: N, width: M, title: L, noWrap: q, ellipsis: oe }, A);
7712
7709
  })] }) });
7713
7710
  }
7714
- function Cb({ group: { id: i, columns: n, title: r, textAlign: s, className: u, style: g } }) {
7715
- let m = Lr(() => n.map(({ visibleMediaQuery: A }) => A), [n]), h = gb(m), C = Lr(() => n.filter(({ hidden: A }, R) => !A && h?.[R]).length, [n, h]);
7711
+ function xb({ group: { id: i, columns: n, title: r, textAlign: s, className: u, style: g } }) {
7712
+ let m = Lr(() => n.map(({ visibleMediaQuery: A }) => A), [n]), h = pb(m), C = Lr(() => n.filter(({ hidden: A }, R) => !A && h?.[R]).length, [n, h]);
7716
7713
  return C > 0 ? O.jsx(Ji, { colSpan: C, className: ft("mantine-datatable-column-group-header-cell", { [Cs]: s === "left", [Ss]: s === "center", [Ds]: s === "right" }, u), style: g, children: r ?? Al(i) }) : null;
7717
7714
  }
7718
- function Sb() {
7715
+ function Cb() {
7719
7716
  return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227z" })] });
7720
7717
  }
7721
- function Db() {
7718
+ function Sb() {
7722
7719
  return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M20 3h-16a1 1 0 0 0 -1 1v2.227l.008 .223a3 3 0 0 0 .772 1.795l4.22 4.641v8.114a1 1 0 0 0 1.316 .949l6 -2l.108 -.043a1 1 0 0 0 .576 -.906v-6.586l4.121 -4.12a3 3 0 0 0 .879 -2.123v-2.171a1 1 0 0 0 -1 -1z", strokeWidth: "0", fill: "currentColor" })] });
7723
7720
  }
7724
- function Ab({ children: i, isActive: n, filterPopoverProps: r, filterPopoverDisableClickOutside: s }) {
7725
- let [u, { close: g, toggle: m }] = yy(!1), h = n ? Db : Sb, C = vh(g);
7721
+ function Db({ children: i, isActive: n, filterPopoverProps: r, filterPopoverDisableClickOutside: s }) {
7722
+ let [u, { close: g, toggle: m }] = yy(!1), h = n ? Sb : Cb, C = vh(g);
7726
7723
  return s && (C = void 0), O.jsxs(qi, { withArrow: !0, shadow: "md", opened: u, onClose: g, trapFocus: !0, ...r, children: [O.jsx(fh, { children: O.jsx(Xo, { className: "mantine-datatable-header-cell-filter-action-icon", "data-active": n || void 0, size: "sm", variant: "default", onClick: (A) => {
7727
7724
  A.preventDefault(), m();
7728
7725
  }, onKeyDown: (A) => A.stopPropagation(), children: O.jsx(h, {}) }) }), O.jsx(hh, { ref: C, onClick: (A) => A.stopPropagation(), onKeyDown: (A) => A.stopPropagation(), children: typeof i == "function" ? i({ close: g }) : i })] });
7729
7726
  }
7730
- var Ob = (i) => {
7727
+ var Ab = (i) => {
7731
7728
  let { accessor: n, columnRef: r } = i, [s, u] = Xe(!1), g = yt(0), m = yt({ current: 0, next: 0 }), { setMultipleColumnWidths: h } = Dl(), C = Fn((R) => {
7732
7729
  if (R.preventDefault(), R.stopPropagation(), !r.current) return;
7733
7730
  let N = r.current, M = N.nextElementSibling;
@@ -7779,19 +7776,19 @@ var Ob = (i) => {
7779
7776
  }, [n, h]);
7780
7777
  return O.jsx("div", { className: "mantine-datatable-header-resizable-handle", style: { cursor: s ? "col-resize" : void 0 }, onMouseDown: C, onDoubleClick: A, onClick: (R) => R.stopPropagation(), title: "Drag to resize column, double-click to reset" });
7781
7778
  };
7782
- function Rb() {
7779
+ function Ob() {
7783
7780
  return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M12 5l0 14" }), O.jsx("path", { d: "M16 9l-4 -4" }), O.jsx("path", { d: "M8 9l4 -4" })] });
7784
7781
  }
7785
- function Eb() {
7782
+ function Rb() {
7786
7783
  return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M8 7l4 -4l4 4" }), O.jsx("path", { d: "M8 17l4 4l4 -4" }), O.jsx("path", { d: "M12 3l0 18" })] });
7787
7784
  }
7788
- function Pb() {
7785
+ function Eb() {
7789
7786
  return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M9 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M9 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M9 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M15 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M15 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" }), O.jsx("path", { d: "M15 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0" })] });
7790
7787
  }
7791
- function Tb() {
7788
+ function Pb() {
7792
7789
  return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M18 6l-12 12" }), O.jsx("path", { d: "M6 6l12 12" })] });
7793
7790
  }
7794
- function Mb({ className: i, style: n, accessor: r, visibleMediaQuery: s, title: u, sortable: g, draggable: m, toggleable: h, resizable: C, sortIcons: A, textAlign: R, width: N, sortStatus: M, onSortStatusChange: L, filter: I, filterPopoverProps: $, filterPopoverDisableClickOutside: q, filtering: oe, sortKey: ae }) {
7791
+ function Tb({ className: i, style: n, accessor: r, visibleMediaQuery: s, title: u, sortable: g, draggable: m, toggleable: h, resizable: C, sortIcons: A, textAlign: R, width: N, sortStatus: M, onSortStatusChange: L, filter: I, filterPopoverProps: $, filterPopoverDisableClickOutside: q, filtering: oe, sortKey: ae }) {
7795
7792
  let { setSourceColumn: se, setTargetColumn: ue, swapColumns: Z, setColumnsToggle: te } = Dl(), [Q, G] = Xe(!1), he = yt(null);
7796
7793
  if (!xs(s)) return null;
7797
7794
  let fe = u ?? Al(r), ne = typeof fe == "string" ? fe : void 0, Se = g && L ? (b) => {
@@ -7804,87 +7801,87 @@ function Mb({ className: i, style: n, accessor: r, visibleMediaQuery: s, title:
7804
7801
  ue(r), G(!1), Z();
7805
7802
  }, S = () => {
7806
7803
  G(!0);
7807
- }, p = () => {
7804
+ }, d = () => {
7808
7805
  G(!1);
7809
- }, d = (b) => {
7806
+ }, p = (b) => {
7810
7807
  b.stopPropagation(), te((f) => f.map((v) => v.accessor === r ? { ...v, toggled: !1 } : v));
7811
7808
  };
7812
- return O.jsxs(Ji, { "data-accessor": r, className: ft({ "mantine-datatable-header-cell-sortable": g, "mantine-datatable-header-cell-toggleable": h, "mantine-datatable-header-cell-resizable": C }, i), style: [{ width: N, ...C ? { minWidth: "1px" } : { minWidth: N, maxWidth: N } }, n], role: g ? "button" : void 0, tabIndex: g ? 0 : void 0, onClick: Se, onKeyDown: (b) => b.key === "Enter" && Se?.(), ref: he, children: [O.jsxs(nr, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [O.jsxs(iy, { align: "center", w: "100%", className: ft({ "mantine-datatable-header-cell-draggable": m, "mantine-datatable-header-cell-drag-over": Q }), draggable: m, onDragStart: m ? De : void 0, onDragEnter: m ? S : void 0, onDragOver: m ? k : void 0, onDrop: m ? E : void 0, onDragLeave: m ? p : void 0, children: [m ? O.jsx(oi, { role: "img", "aria-label": "Drag column", children: O.jsx(Xo, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (b) => {
7809
+ return O.jsxs(Ji, { "data-accessor": r, className: ft({ "mantine-datatable-header-cell-sortable": g, "mantine-datatable-header-cell-toggleable": h, "mantine-datatable-header-cell-resizable": C }, i), style: [{ width: N, ...C ? { minWidth: "1px" } : { minWidth: N, maxWidth: N } }, n], role: g ? "button" : void 0, tabIndex: g ? 0 : void 0, onClick: Se, onKeyDown: (b) => b.key === "Enter" && Se?.(), ref: he, children: [O.jsxs(nr, { className: "mantine-datatable-header-cell-sortable-group", justify: "space-between", wrap: "nowrap", children: [O.jsxs(iy, { align: "center", w: "100%", className: ft({ "mantine-datatable-header-cell-draggable": m, "mantine-datatable-header-cell-drag-over": Q }), draggable: m, onDragStart: m ? De : void 0, onDragEnter: m ? S : void 0, onDragOver: m ? k : void 0, onDrop: m ? E : void 0, onDragLeave: m ? d : void 0, children: [m ? O.jsx(oi, { role: "img", "aria-label": "Drag column", children: O.jsx(Xo, { className: "mantine-datatable-header-cell-draggable-action-icon", variant: "subtle", size: "xs", onClick: (b) => {
7813
7810
  b.stopPropagation();
7814
- }, children: O.jsx(Pb, {}) }) }) : null, O.jsx(Bt, { className: ft("mantine-datatable-header-cell-sortable-text", { [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, Ol, Rl), title: ne, children: fe })] }), h ? O.jsx(oi, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: O.jsx(Xo, { size: "xs", variant: "light", onClick: d, children: O.jsx(Tb, {}) }) }) : null, g || M?.columnAccessor === r ? O.jsx(O.Fragment, { children: M?.columnAccessor === r ? O.jsx(oi, { className: ft("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": M.direction === "desc" }), role: "img", "aria-label": `Sorted ${M.direction === "desc" ? "descending" : "ascending"}`, children: A?.sorted || O.jsx(Rb, {}) }) : O.jsx(oi, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: A?.unsorted || O.jsx(Eb, {}) }) }) : null, I ? O.jsx(Ab, { filterPopoverProps: $, isActive: !!oe, filterPopoverDisableClickOutside: q, children: I }) : null] }), C && r !== "__selection__" ? O.jsx(Ob, { accessor: r, columnRef: he }) : null] });
7811
+ }, children: O.jsx(Eb, {}) }) }) : null, O.jsx(Bt, { className: ft("mantine-datatable-header-cell-sortable-text", { [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, Ol, Rl), title: ne, children: fe })] }), h ? O.jsx(oi, { className: "mantine-datatable-header-cell-toggleable-icon", role: "img", "aria-label": "Toggle column", children: O.jsx(Xo, { size: "xs", variant: "light", onClick: p, children: O.jsx(Pb, {}) }) }) : null, g || M?.columnAccessor === r ? O.jsx(O.Fragment, { children: M?.columnAccessor === r ? O.jsx(oi, { className: ft("mantine-datatable-header-cell-sortable-icon", { "mantine-datatable-header-cell-sortable-icon-reversed": M.direction === "desc" }), role: "img", "aria-label": `Sorted ${M.direction === "desc" ? "descending" : "ascending"}`, children: A?.sorted || O.jsx(Ob, {}) }) : O.jsx(oi, { className: "mantine-datatable-header-cell-sortable-unsorted-icon", role: "img", "aria-label": "Not sorted", children: A?.unsorted || O.jsx(Rb, {}) }) }) : null, I ? O.jsx(Db, { filterPopoverProps: $, isActive: !!oe, filterPopoverDisableClickOutside: q, children: I }) : null] }), C && r !== "__selection__" ? O.jsx(Ab, { accessor: r, columnRef: he }) : null] });
7815
7812
  }
7816
- function kb({ className: i, style: n, trigger: r, shadowVisible: s, checked: u, indeterminate: g, checkboxProps: m, onChange: h, rowSpan: C, ref: A }) {
7813
+ function Mb({ className: i, style: n, trigger: r, shadowVisible: s, checked: u, indeterminate: g, checkboxProps: m, onChange: h, rowSpan: C, ref: A }) {
7817
7814
  let R = !m.disabled;
7818
7815
  return O.jsx(Ji, { ref: A, className: ft("mantine-datatable-header-selector-cell", { [li]: r === "cell" && R }, i), style: n, rowSpan: C, "data-shadow-visible": s || void 0, "data-accessor": "__selection__", onClick: r === "cell" && R ? h : void 0, children: O.jsx(Qi, { classNames: R ? { input: li } : void 0, checked: u, indeterminate: g, onChange: h, ...m, disabled: !(h || m.onChange) || m.disabled }) });
7819
7816
  }
7820
- function Lb({ selectionColumnHeaderRef: i, className: n, style: r, sortStatus: s, sortIcons: u, onSortStatusChange: g, columns: m, defaultColumnProps: h, groups: C, selectionTrigger: A, selectionVisible: R, selectionChecked: N, selectionIndeterminate: M, onSelectionChange: L, selectionCheckboxProps: I, selectorCellShadowVisible: $, selectionColumnClassName: q, selectionColumnStyle: oe, ref: ae }) {
7821
- let se = R ? O.jsx(kb, { ref: i, className: q, style: oe, trigger: A, shadowVisible: $, checked: N, indeterminate: M, checkboxProps: I, onChange: L, rowSpan: C ? 2 : void 0 }) : null, { columnsToggle: ue, setColumnsToggle: Z } = Dl(), [te, Q] = Xe(!1), G = m.some((ne) => ne.toggleable), he = G ? Object.fromEntries(m.map(({ accessor: ne, title: Se }) => [ne, Se ?? Al(String(ne))])) : void 0, fe = O.jsxs(Xm, { className: ft("mantine-datatable-header", n), style: r, ref: ae, onContextMenu: G ? (ne) => {
7817
+ function kb({ selectionColumnHeaderRef: i, className: n, style: r, sortStatus: s, sortIcons: u, onSortStatusChange: g, columns: m, defaultColumnProps: h, groups: C, selectionTrigger: A, selectionVisible: R, selectionChecked: N, selectionIndeterminate: M, onSelectionChange: L, selectionCheckboxProps: I, selectorCellShadowVisible: $, selectionColumnClassName: q, selectionColumnStyle: oe, ref: ae }) {
7818
+ let se = R ? O.jsx(Mb, { ref: i, className: q, style: oe, trigger: A, shadowVisible: $, checked: N, indeterminate: M, checkboxProps: I, onChange: L, rowSpan: C ? 2 : void 0 }) : null, { columnsToggle: ue, setColumnsToggle: Z } = Dl(), [te, Q] = Xe(!1), G = m.some((ne) => ne.toggleable), he = G ? Object.fromEntries(m.map(({ accessor: ne, title: Se }) => [ne, Se ?? Al(String(ne))])) : void 0, fe = O.jsxs(Xm, { className: ft("mantine-datatable-header", n), style: r, ref: ae, onContextMenu: G ? (ne) => {
7822
7819
  ne.preventDefault(), Q((Se) => !Se);
7823
- } : void 0, children: [C && O.jsxs(ai, { children: [se, C.map((ne) => O.jsx(Cb, { group: ne }, ne.id))] }), O.jsxs(ai, { children: [!C && se, m.map(({ hidden: ne, ...Se }, De) => {
7820
+ } : void 0, children: [C && O.jsxs(ai, { children: [se, C.map((ne) => O.jsx(xb, { group: ne }, ne.id))] }), O.jsxs(ai, { children: [!C && se, m.map(({ hidden: ne, ...Se }, De) => {
7824
7821
  if (ne) return null;
7825
- let { accessor: k, visibleMediaQuery: E, textAlign: S, width: p, title: d, sortable: b, draggable: f, toggleable: v, resizable: D, titleClassName: Y, titleStyle: H, filter: ie, filterPopoverProps: le, filterPopoverDisableClickOutside: ye, filtering: J, sortKey: _e } = { ...h, ...Se };
7826
- return O.jsx(Mb, { accessor: k, className: Y, style: H, visibleMediaQuery: E, textAlign: S, width: p, title: d, sortable: b, draggable: f, toggleable: v, resizable: D && De < m.length - 1, sortStatus: s, sortIcons: u, sortKey: _e, onSortStatusChange: g, filter: ie, filterPopoverProps: le, filterPopoverDisableClickOutside: ye, filtering: J }, k);
7822
+ let { accessor: k, visibleMediaQuery: E, textAlign: S, width: d, title: p, sortable: b, draggable: f, toggleable: v, resizable: D, titleClassName: Y, titleStyle: H, filter: ie, filterPopoverProps: le, filterPopoverDisableClickOutside: ye, filtering: J, sortKey: _e } = { ...h, ...Se };
7823
+ return O.jsx(Tb, { accessor: k, className: Y, style: H, visibleMediaQuery: E, textAlign: S, width: d, title: p, sortable: b, draggable: f, toggleable: v, resizable: D && De < m.length - 1, sortStatus: s, sortIcons: u, sortKey: _e, onSortStatusChange: g, filter: ie, filterPopoverProps: le, filterPopoverDisableClickOutside: ye, filtering: J }, k);
7827
7824
  })] })] });
7828
7825
  return G ? O.jsxs(qi, { position: "bottom", withArrow: !0, shadow: "md", opened: te, onChange: Q, children: [O.jsx(fh, { children: fe }), O.jsx(hh, { children: O.jsx(dl, { children: ue.filter((ne) => ne.toggleable).map((ne) => O.jsx(nr, { children: O.jsx(Qi, { classNames: { label: "mantine-datatable-header-column-toggle-checkbox-label" }, size: "xs", label: he[ne.accessor], checked: ne.toggled, onChange: (Se) => {
7829
7826
  Z(ue.map((De) => De.accessor === ne.accessor ? { ...De, toggled: Se.currentTarget.checked } : De));
7830
7827
  } }) }, ne.accessor)) }) })] }) : fe;
7831
7828
  }
7832
- function Nb({ fetching: i, customContent: n, backgroundBlur: r, size: s, type: u, color: g }) {
7829
+ function Lb({ fetching: i, customContent: n, backgroundBlur: r, size: s, type: u, color: g }) {
7833
7830
  return O.jsx(oi, { className: ft("mantine-datatable-loader", { "mantine-datatable-loader-fetching": i }), style: [{ backdropFilter: r ? `blur(${r}px)` : void 0 }], children: i && (n || O.jsx(ny, { size: s, type: u, color: g })) });
7834
7831
  }
7835
7832
  function mt(i, n, r) {
7836
7833
  return i ? ry({ color: typeof i == "object" ? i[r] : i, theme: n }).value : void 0;
7837
7834
  }
7838
- function Ib({ theme: i, c: n, backgroundColor: r, borderColor: s, rowBorderColor: u, stripedColor: g, highlightOnHoverColor: m }) {
7835
+ function Nb({ theme: i, c: n, backgroundColor: r, borderColor: s, rowBorderColor: u, stripedColor: g, highlightOnHoverColor: m }) {
7839
7836
  return { "--mantine-datatable-color-light": mt(n, i, "light"), "--mantine-datatable-color-dark": mt(n, i, "dark"), "--mantine-datatable-background-color-light": mt(r, i, "light"), "--mantine-datatable-background-color-dark": mt(r, i, "dark"), "--mantine-datatable-border-color-light": mt(s, i, "light"), "--mantine-datatable-border-color-dark": mt(s, i, "dark"), "--mantine-datatable-row-border-color-light": mt(u, i, "light"), "--mantine-datatable-row-border-color-dark": mt(u, i, "dark"), "--mantine-datatable-striped-color-light": mt(g, i, "light"), "--mantine-datatable-striped-color-dark": mt(g, i, "dark"), "--mantine-datatable-highlight-on-hover-color-light": mt(m, i, "light"), "--mantine-datatable-highlight-on-hover-color-dark": mt(m, i, "dark") };
7840
7837
  }
7841
7838
  function Vh({ theme: i, paginationActiveTextColor: n, paginationActiveBackgroundColor: r }) {
7842
7839
  return { "--mantine-datatable-pagination-active-text-color-light": mt(n, i, "light"), "--mantine-datatable-pagination-active-text-color-dark": mt(n, i, "dark"), "--mantine-datatable-pagination-active-background-color-light": mt(r, i, "light"), "--mantine-datatable-pagination-active-background-color-dark": mt(r, i, "dark") };
7843
7840
  }
7844
- function $b({ theme: i, color: n, backgroundColor: r }) {
7841
+ function Ib({ theme: i, color: n, backgroundColor: r }) {
7845
7842
  return { "--mantine-datatable-row-color-light": mt(n, i, "light"), "--mantine-datatable-row-color-dark": mt(n, i, "dark"), "--mantine-datatable-row-background-color-light": mt(r, i, "light"), "--mantine-datatable-row-background-color-dark": mt(r, i, "dark") };
7846
7843
  }
7847
- function jb() {
7844
+ function $b() {
7848
7845
  return O.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [O.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), O.jsx("path", { d: "M8 9l4 -4l4 4" }), O.jsx("path", { d: "M16 15l-4 4l-4 -4" })] });
7849
7846
  }
7850
7847
  var th = { xs: kr(22), sm: kr(26), md: kr(32), lg: kr(38), xl: kr(44) };
7851
- function Bb({ size: i, label: n, values: r, value: s, activeTextColor: u, activeBackgroundColor: g, onChange: m }) {
7852
- return O.jsxs(nr, { gap: "xs", children: [O.jsx(Gi, { component: "div", size: i, children: n }), O.jsxs(Mr, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [O.jsx(sy, { children: O.jsx(rr, { size: i, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: O.jsx(jb, {}), style: [{ fontWeight: "normal" }, (h) => ({ height: th[i], paddingLeft: h.spacing[i], paddingRight: h.spacing[i] })], children: s }) }), O.jsx(ay, { children: r.map((h) => {
7848
+ function jb({ size: i, label: n, values: r, value: s, activeTextColor: u, activeBackgroundColor: g, onChange: m }) {
7849
+ return O.jsxs(nr, { gap: "xs", children: [O.jsx(Gi, { component: "div", size: i, children: n }), O.jsxs(Mr, { withinPortal: !0, withArrow: !0, offset: 2, classNames: { arrow: "mantine-datatable-page-size-selector-menu-arrow" }, children: [O.jsx(sy, { children: O.jsx(rr, { size: i, variant: "default", classNames: { section: "mantine-datatable-page-size-selector-button-icon" }, rightSection: O.jsx($b, {}), style: [{ fontWeight: "normal" }, (h) => ({ height: th[i], paddingLeft: h.spacing[i], paddingRight: h.spacing[i] })], children: s }) }), O.jsx(ay, { children: r.map((h) => {
7853
7850
  let C = h === s;
7854
7851
  return O.jsx(ly, { className: ft({ "mantine-datatable-page-size-selector-active": C }), style: [{ height: th[i] }, C && (u || g) ? (A) => Vh({ theme: A, paginationActiveTextColor: u, paginationActiveBackgroundColor: g }) : void 0], disabled: C, onClick: () => m(h), children: O.jsx(Gi, { component: "div", size: i, children: h }) }, h);
7855
7852
  }) })] })] });
7856
7853
  }
7857
- function Yb({ className: i, style: n, fetching: r, page: s, onPageChange: u, paginationWithEdges: g, paginationWithControls: m, paginationActiveTextColor: h, paginationActiveBackgroundColor: C, paginationSize: A, loadingText: R, noRecordsText: N, paginationText: M, totalRecords: L, recordsPerPage: I, onRecordsPerPageChange: $, recordsPerPageLabel: q, recordsPerPageOptions: oe, recordsLength: ae, horizontalSpacing: se, paginationWrapBreakpoint: ue, getPaginationControlProps: Z }) {
7854
+ function Bb({ className: i, style: n, fetching: r, page: s, onPageChange: u, paginationWithEdges: g, paginationWithControls: m, paginationActiveTextColor: h, paginationActiveBackgroundColor: C, paginationSize: A, loadingText: R, noRecordsText: N, paginationText: M, totalRecords: L, recordsPerPage: I, onRecordsPerPageChange: $, recordsPerPageLabel: q, recordsPerPageOptions: oe, recordsLength: ae, horizontalSpacing: se, paginationWrapBreakpoint: ue, getPaginationControlProps: Z }) {
7858
7855
  let te;
7859
7856
  if (L) {
7860
7857
  let G = (s - 1) * I + 1, he = G + (ae || 0) - 1;
7861
7858
  te = M({ from: G, to: he, totalRecords: L });
7862
7859
  } else te = r ? R : N;
7863
7860
  let Q = xs(({ breakpoints: G }) => `(min-width: ${typeof ue == "number" ? `${kr(ue)}rem` : G[ue] || ue})`);
7864
- return O.jsxs(Bt, { px: se ?? "xs", py: "xs", className: ft("mantine-datatable-pagination", i), style: [{ flexDirection: Q ? "row" : "column" }, n], children: [O.jsx(Gi, { component: "div", className: "mantine-datatable-pagination-text", size: A, children: te }), oe && O.jsx(Bb, { activeTextColor: h, activeBackgroundColor: C, size: A, label: q, values: oe, value: I, onChange: $ }), O.jsx(ty, { classNames: { root: ft("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !ae }), control: "mantine-datatable-pagination-pages-control" }, style: h || C ? (G) => Vh({ theme: G, paginationActiveTextColor: h, paginationActiveBackgroundColor: C }) : void 0, withEdges: g, withControls: m, value: s, onChange: u, size: A, total: Math.ceil(L / I), getControlProps: Z })] });
7861
+ return O.jsxs(Bt, { px: se ?? "xs", py: "xs", className: ft("mantine-datatable-pagination", i), style: [{ flexDirection: Q ? "row" : "column" }, n], children: [O.jsx(Gi, { component: "div", className: "mantine-datatable-pagination-text", size: A, children: te }), oe && O.jsx(jb, { activeTextColor: h, activeBackgroundColor: C, size: A, label: q, values: oe, value: I, onChange: $ }), O.jsx(ty, { classNames: { root: ft("mantine-datatable-pagination-pages", { "mantine-datatable-pagination-pages-fetching": r || !ae }), control: "mantine-datatable-pagination-pages-control" }, style: h || C ? (G) => Vh({ theme: G, paginationActiveTextColor: h, paginationActiveBackgroundColor: C }) : void 0, withEdges: g, withControls: m, value: s, onChange: u, size: A, total: Math.ceil(L / I), getControlProps: Z })] });
7865
7862
  }
7866
- function Wb({ className: i, style: n, visibleMediaQuery: r, record: s, index: u, onClick: g, onDoubleClick: m, onContextMenu: h, noWrap: C, ellipsis: A, textAlign: R, width: N, accessor: M, render: L, defaultRender: I, customCellAttributes: $ }) {
7863
+ function Yb({ className: i, style: n, visibleMediaQuery: r, record: s, index: u, onClick: g, onDoubleClick: m, onContextMenu: h, noWrap: C, ellipsis: A, textAlign: R, width: N, accessor: M, render: L, defaultRender: I, customCellAttributes: $ }) {
7867
7864
  return xs(r) ? O.jsx(pl, { className: ft({ [Ol]: C || A, [Rl]: A, [li]: g || m, [Gh]: h, [Cs]: R === "left", [Ss]: R === "center", [Ds]: R === "right" }, i), style: [{ width: N, minWidth: N, maxWidth: N }, n], onClick: g, onDoubleClick: m, onContextMenu: h, ...$?.(s, u), children: L ? L(s, u) : I ? I(s, u, M) : Hh(s, M) }) : null;
7868
7865
  }
7869
- function Fb({ open: i, colSpan: n, content: r, collapseProps: s }) {
7870
- let { expanded: u, visible: g } = yb(i, s?.transitionDuration);
7866
+ function Wb({ open: i, colSpan: n, content: r, collapseProps: s }) {
7867
+ let { expanded: u, visible: g } = mb(i, s?.transitionDuration);
7871
7868
  return g ? O.jsxs(O.Fragment, { children: [O.jsx(ai, {}), O.jsx(ai, { children: O.jsx(pl, { className: "mantine-datatable-row-expansion-cell", colSpan: n, children: O.jsx(oy, { in: u, ...s, children: O.jsx("div", { className: "mantine-datatable-row-expansion-cell-content", children: r() }) }) }) })] }) : null;
7872
7869
  }
7873
- function Ub({ className: i, style: n, record: r, index: s, trigger: u, onChange: g, withRightShadow: m, checkboxProps: h, getCheckboxProps: C, ...A }) {
7870
+ function Fb({ className: i, style: n, record: r, index: s, trigger: u, onChange: g, withRightShadow: m, checkboxProps: h, getCheckboxProps: C, ...A }) {
7874
7871
  let R = { ...h, ...C(r, s) }, N = !A.disabled && !R.disabled, M = (L) => {
7875
7872
  L.stopPropagation(), u === "cell" && N && g?.(L);
7876
7873
  };
7877
7874
  return O.jsx(pl, { className: ft("mantine-datatable-row-selector-cell", { [li]: u === "cell" && N }, i), style: n, "data-shadow-visible": m || void 0, onClick: M, children: O.jsx(Qi, { classNames: N ? { input: li } : void 0, onChange: g, ...A, ...R }) });
7878
7875
  }
7879
- function zb({ record: i, index: n, columns: r, defaultColumnProps: s, defaultColumnRender: u, selectionTrigger: g, selectionVisible: m, selectionChecked: h, onSelectionChange: C, isRecordSelectable: A, selectionCheckboxProps: R, getSelectionCheckboxProps: N, onClick: M, onDoubleClick: L, onContextMenu: I, onCellClick: $, onCellDoubleClick: q, onCellContextMenu: oe, expansion: ae, customAttributes: se, color: ue, backgroundColor: Z, className: te, style: Q, selectorCellShadowVisible: G, selectionColumnClassName: he, selectionColumnStyle: fe, rowFactory: ne }) {
7880
- let Se = O.jsxs(O.Fragment, { children: [m && O.jsx(Ub, { className: he, style: fe, record: i, index: n, trigger: g, withRightShadow: G, checked: h, disabled: !C || (A ? !A(i, n) : !1), onChange: C, checkboxProps: R, getCheckboxProps: N }), r.map(({ hidden: E, hiddenContent: S, ...p }, d) => {
7876
+ function Ub({ record: i, index: n, columns: r, defaultColumnProps: s, defaultColumnRender: u, selectionTrigger: g, selectionVisible: m, selectionChecked: h, onSelectionChange: C, isRecordSelectable: A, selectionCheckboxProps: R, getSelectionCheckboxProps: N, onClick: M, onDoubleClick: L, onContextMenu: I, onCellClick: $, onCellDoubleClick: q, onCellContextMenu: oe, expansion: ae, customAttributes: se, color: ue, backgroundColor: Z, className: te, style: Q, selectorCellShadowVisible: G, selectionColumnClassName: he, selectionColumnStyle: fe, rowFactory: ne }) {
7877
+ let Se = O.jsxs(O.Fragment, { children: [m && O.jsx(Fb, { className: he, style: fe, record: i, index: n, trigger: g, withRightShadow: G, checked: h, disabled: !C || (A ? !A(i, n) : !1), onChange: C, checkboxProps: R, getCheckboxProps: N }), r.map(({ hidden: E, hiddenContent: S, ...d }, p) => {
7881
7878
  if (E || S) return null;
7882
- let { accessor: b, visibleMediaQuery: f, textAlign: v, noWrap: D, ellipsis: Y, width: H, render: ie, cellsClassName: le, cellsStyle: ye, customCellAttributes: J } = { ...s, ...p };
7883
- return O.jsx(Wb, { className: typeof le == "function" ? le(i, n) : le, style: ye?.(i, n), visibleMediaQuery: f, record: i, index: n, onClick: $ ? (_e) => $({ event: _e, record: i, index: n, column: p, columnIndex: d }) : void 0, onDoubleClick: q ? (_e) => q({ event: _e, record: i, index: n, column: p, columnIndex: d }) : void 0, onContextMenu: oe ? (_e) => oe({ event: _e, record: i, index: n, column: p, columnIndex: d }) : void 0, accessor: b, textAlign: v, noWrap: D, ellipsis: Y, width: H, render: ie, defaultRender: u, customCellAttributes: J }, b);
7884
- })] }), De = ae && O.jsx(Fb, { colSpan: r.filter(({ hidden: E }) => !E).length + (m ? 1 : 0), open: ae.isRowExpanded(i), content: ae.content({ record: i, index: n }), collapseProps: ae.collapseProps }), k = qb({ record: i, index: n, selectionChecked: h, onClick: M, onDoubleClick: L, onContextMenu: I, expansion: ae, customAttributes: se, color: ue, backgroundColor: Z, className: te, style: Q });
7879
+ let { accessor: b, visibleMediaQuery: f, textAlign: v, noWrap: D, ellipsis: Y, width: H, render: ie, cellsClassName: le, cellsStyle: ye, customCellAttributes: J } = { ...s, ...d };
7880
+ return O.jsx(Yb, { className: typeof le == "function" ? le(i, n) : le, style: ye?.(i, n), visibleMediaQuery: f, record: i, index: n, onClick: $ ? (_e) => $({ event: _e, record: i, index: n, column: d, columnIndex: p }) : void 0, onDoubleClick: q ? (_e) => q({ event: _e, record: i, index: n, column: d, columnIndex: p }) : void 0, onContextMenu: oe ? (_e) => oe({ event: _e, record: i, index: n, column: d, columnIndex: p }) : void 0, accessor: b, textAlign: v, noWrap: D, ellipsis: Y, width: H, render: ie, defaultRender: u, customCellAttributes: J }, b);
7881
+ })] }), De = ae && O.jsx(Wb, { colSpan: r.filter(({ hidden: E }) => !E).length + (m ? 1 : 0), open: ae.isRowExpanded(i), content: ae.content({ record: i, index: n }), collapseProps: ae.collapseProps }), k = zb({ record: i, index: n, selectionChecked: h, onClick: M, onDoubleClick: L, onContextMenu: I, expansion: ae, customAttributes: se, color: ue, backgroundColor: Z, className: te, style: Q });
7885
7882
  return ne ? ne({ record: i, index: n, rowProps: k, children: Se, expandedElement: De }) : O.jsxs(O.Fragment, { children: [O.jsx(ai, { ...k, children: Se }), De] });
7886
7883
  }
7887
- function qb({ record: i, index: n, selectionChecked: r, onClick: s, onDoubleClick: u, onContextMenu: g, expansion: m, customAttributes: h, color: C, backgroundColor: A, className: R, style: N }) {
7884
+ function zb({ record: i, index: n, selectionChecked: r, onClick: s, onDoubleClick: u, onContextMenu: g, expansion: m, customAttributes: h, color: C, backgroundColor: A, className: R, style: N }) {
7888
7885
  return { className: ft("mantine-datatable-row", { [li]: s || u || m?.isExpandable({ record: i, index: n }) && m?.expandOnClick }, { [Gh]: g }, typeof R == "function" ? R(i, n) : R), "data-selected": r || void 0, onClick: (M) => {
7889
7886
  if (m) {
7890
7887
  let { isExpandable: L, isRowExpanded: I, expandOnClick: $, expandRow: q, collapseRow: oe } = m;
@@ -7893,28 +7890,28 @@ function qb({ record: i, index: n, selectionChecked: r, onClick: s, onDoubleClic
7893
7890
  s?.({ event: M, record: i, index: n });
7894
7891
  }, onDoubleClick: u ? (M) => u({ event: M, record: i, index: n }) : void 0, onContextMenu: g ? (M) => g({ event: M, record: i, index: n }) : void 0, style: [C || A ? (M) => {
7895
7892
  let L = C?.(i, n), I = A?.(i, n);
7896
- return $b({ theme: M, color: L, backgroundColor: I });
7893
+ return Ib({ theme: M, color: L, backgroundColor: I });
7897
7894
  } : void 0, N?.(i, n)], ...h?.(i, n) ?? {} };
7898
7895
  }
7899
- function Hb({ leftShadowBehind: i, rightShadowBehind: n, onScrollPositionChange: r, children: s, viewportRef: u, scrollAreaProps: g }) {
7896
+ function qb({ leftShadowBehind: i, rightShadowBehind: n, onScrollPositionChange: r, children: s, viewportRef: u, scrollAreaProps: g }) {
7900
7897
  return O.jsxs(Jm, { ...g, viewportRef: u, classNames: { root: "mantine-datatable-scroll-area", scrollbar: "mantine-datatable-scroll-area-scrollbar", thumb: "mantine-datatable-scroll-area-thumb", corner: "mantine-datatable-scroll-area-corner" }, onScrollPositionChange: r, children: [s, O.jsx(Bt, { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-top-shadow") }), O.jsx("div", { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-left-shadow", { "mantine-datatable-scroll-area-shadow-behind": i }) }), O.jsx("div", { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-right-shadow", { "mantine-datatable-scroll-area-shadow-behind": n }) }), O.jsx(Bt, { className: ft("mantine-datatable-scroll-area-shadow", "mantine-datatable-scroll-area-bottom-shadow") })] });
7901
7898
  }
7902
- function Gb({ withTableBorder: i, borderRadius: n, textSelectionDisabled: r, height: s = "100%", minHeight: u, maxHeight: g, shadow: m, verticalAlign: h = "center", fetching: C, columns: A, storeColumnsKey: R, groups: N, pinFirstColumn: M, pinLastColumn: L, defaultColumnProps: I, defaultColumnRender: $, idAccessor: q = "id", records: oe, selectionTrigger: ae = "checkbox", selectedRecords: se, onSelectedRecordsChange: ue, selectionColumnClassName: Z, selectionColumnStyle: te, isRecordSelectable: Q, selectionCheckboxProps: G, allRecordsSelectionCheckboxProps: he = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: fe = (vt, Ve) => ({ "aria-label": `Select record ${Ve + 1}` }), sortStatus: ne, sortIcons: Se, onSortStatusChange: De, horizontalSpacing: k, page: E, onPageChange: S, totalRecords: p, recordsPerPage: d, onRecordsPerPageChange: b, recordsPerPageOptions: f, recordsPerPageLabel: v = "Records per page", paginationWithEdges: D, paginationWithControls: Y, paginationActiveTextColor: H, paginationActiveBackgroundColor: ie, paginationSize: le = "sm", paginationText: ye = ({ from: vt, to: Ve, totalRecords: lt }) => `${vt} - ${Ve} / ${lt}`, paginationWrapBreakpoint: J = "sm", getPaginationControlProps: _e = (vt) => vt === "previous" ? { "aria-label": "Previous page" } : vt === "next" ? { "aria-label": "Next page" } : {}, loaderBackgroundBlur: me, customLoader: ge, loaderSize: j, loaderType: K, loaderColor: W, loadingText: V = "...", emptyState: X, noRecordsText: xe = "No records", noRecordsIcon: l, highlightOnHover: c, striped: _, noHeader: T, onRowClick: F, onRowDoubleClick: ee, onRowContextMenu: Ce, onCellClick: be, onCellDoubleClick: Re, onCellContextMenu: ve, onScroll: Pe, onScrollToTop: Le, onScrollToBottom: Te, onScrollToLeft: Qe, onScrollToRight: Ke, c: tt, backgroundColor: Rt, borderColor: ht, rowBorderColor: nt, stripedColor: Cn, highlightOnHoverColor: Ct, rowColor: Sn, rowBackgroundColor: St, rowExpansion: Wt, rowClassName: Dn, rowStyle: gt, customRowAttributes: sn, scrollViewportRef: an, scrollAreaProps: Ft, tableRef: Mt, bodyRef: Ut, m: zt, my: Qt, mx: qt, mt: Fe, mb: ot, ml: kt, mr: Jt, className: Ln, classNames: ln, style: br, styles: un, rowFactory: Nn, tableWrapper: cn, ...fn }) {
7903
- let vt = Lr(() => N?.flatMap((He) => He.columns) ?? A, [A, N]), Ve = Lr(() => vt.some((He) => He.resizable), [vt]), lt = ub({ key: R, columns: vt }), { refs: Ht, onScroll: Un } = cb({ scrollCallbacks: { onScroll: Pe, onScrollToTop: Le, onScrollToBottom: Te, onScrollToLeft: Qe, onScrollToRight: Ke }, withRowBorders: fn.withRowBorders }), $r = qc(Ht.table, Mt), zn = qc(Ht.scrollViewport, an), jr = mb({ rowExpansion: Wt, records: oe, idAccessor: q }), qn = Fn((He) => {
7899
+ function Hb({ withTableBorder: i, borderRadius: n, textSelectionDisabled: r, height: s = "100%", minHeight: u, maxHeight: g, shadow: m, verticalAlign: h = "center", fetching: C, columns: A, storeColumnsKey: R, groups: N, pinFirstColumn: M, pinLastColumn: L, defaultColumnProps: I, defaultColumnRender: $, idAccessor: q = "id", records: oe, selectionTrigger: ae = "checkbox", selectedRecords: se, onSelectedRecordsChange: ue, selectionColumnClassName: Z, selectionColumnStyle: te, isRecordSelectable: Q, selectionCheckboxProps: G, allRecordsSelectionCheckboxProps: he = { "aria-label": "Select all records" }, getRecordSelectionCheckboxProps: fe = (vt, Ve) => ({ "aria-label": `Select record ${Ve + 1}` }), sortStatus: ne, sortIcons: Se, onSortStatusChange: De, horizontalSpacing: k, page: E, onPageChange: S, totalRecords: d, recordsPerPage: p, onRecordsPerPageChange: b, recordsPerPageOptions: f, recordsPerPageLabel: v = "Records per page", paginationWithEdges: D, paginationWithControls: Y, paginationActiveTextColor: H, paginationActiveBackgroundColor: ie, paginationSize: le = "sm", paginationText: ye = ({ from: vt, to: Ve, totalRecords: lt }) => `${vt} - ${Ve} / ${lt}`, paginationWrapBreakpoint: J = "sm", getPaginationControlProps: _e = (vt) => vt === "previous" ? { "aria-label": "Previous page" } : vt === "next" ? { "aria-label": "Next page" } : {}, loaderBackgroundBlur: me, customLoader: ge, loaderSize: j, loaderType: K, loaderColor: W, loadingText: V = "...", emptyState: X, noRecordsText: xe = "No records", noRecordsIcon: l, highlightOnHover: c, striped: _, noHeader: T, onRowClick: F, onRowDoubleClick: ee, onRowContextMenu: Ce, onCellClick: be, onCellDoubleClick: Re, onCellContextMenu: ve, onScroll: Pe, onScrollToTop: Le, onScrollToBottom: Te, onScrollToLeft: Qe, onScrollToRight: Ke, c: tt, backgroundColor: Rt, borderColor: ht, rowBorderColor: nt, stripedColor: Cn, highlightOnHoverColor: Ct, rowColor: Sn, rowBackgroundColor: St, rowExpansion: Wt, rowClassName: Dn, rowStyle: gt, customRowAttributes: sn, scrollViewportRef: an, scrollAreaProps: Ft, tableRef: Mt, bodyRef: Ut, m: zt, my: Qt, mx: qt, mt: Fe, mb: ot, ml: kt, mr: Jt, className: Ln, classNames: ln, style: br, styles: un, rowFactory: Nn, tableWrapper: cn, ...fn }) {
7900
+ let vt = Lr(() => N?.flatMap((He) => He.columns) ?? A, [A, N]), Ve = Lr(() => vt.some((He) => He.resizable), [vt]), lt = lb({ key: R, columns: vt }), { refs: Ht, onScroll: Un } = ub({ scrollCallbacks: { onScroll: Pe, onScrollToTop: Le, onScrollToBottom: Te, onScrollToLeft: Qe, onScrollToRight: Ke }, withRowBorders: fn.withRowBorders }), $r = qc(Ht.table, Mt), zn = qc(Ht.scrollViewport, an), jr = vb({ rowExpansion: Wt, records: oe, idAccessor: q }), qn = Fn((He) => {
7904
7901
  Ht.scrollViewport.current?.scrollTo({ top: 0, left: 0 }), S(He);
7905
7902
  }, [S, Ht.scrollViewport]), Br = oe?.length, Xi = oe?.map((He) => $t(He, q)), ir = !!se, or = se?.map((He) => $t(He, q)), di = Xi !== void 0 && or !== void 0 && or.length > 0, Yr = Q ? oe?.filter(Q) : oe, Wr = Yr?.map((He) => $t(He, q)), Fr = di && Wr.every((He) => or.includes(He)), As = di && Wr.some((He) => or.includes(He)), Os = Fn(() => {
7906
7903
  se && ue && ue(Fr ? se.filter((He) => !Wr.includes($t(He, q))) : Za([...se, ...Yr], (He) => $t(He, q)));
7907
- }, [Fr, q, ue, Wr, Yr, se]), { lastSelectionChangeIndex: xr, setLastSelectionChangeIndex: eo } = fb(Xi), Ur = ir && !M, pi = { m: zt, my: Qt, mx: qt, mt: Fe, mb: ot, ml: kt, mr: Jt }, Rs = Fn(({ children: He }) => cn ? cn({ children: He }) : He, [cn]);
7908
- return O.jsx(Vf, { ...lt, children: O.jsxs(Bt, { ref: Ht.root, ...pi, className: ft("mantine-datatable", { "mantine-datatable-with-border": i }, Ln, ln?.root), style: [(He) => ({ ...Ib({ theme: He, c: tt, backgroundColor: Rt, borderColor: ht, rowBorderColor: nt, stripedColor: Cn, highlightOnHoverColor: Ct }), borderRadius: He.radius[n] || n, boxShadow: He.shadows[m] || m, height: s, minHeight: u, maxHeight: g }), br, un?.root, { position: "relative" }], children: [O.jsx(Hb, { viewportRef: zn, leftShadowBehind: ir || !!M, rightShadowBehind: L, onScrollPositionChange: Un, scrollAreaProps: Ft, children: O.jsx(Rs, { children: O.jsxs(Qm, { ref: $r, horizontalSpacing: k, className: ft("mantine-datatable-table", { [_b]: r, "mantine-datatable-vertical-align-top": h === "top", "mantine-datatable-vertical-align-bottom": h === "bottom", "mantine-datatable-pin-last-column": L, "mantine-datatable-selection-column-visible": ir, "mantine-datatable-pin-first-column": M, "mantine-datatable-resizable-columns": Ve }, ln?.table), style: { ...un?.table }, "data-striped": Br && _ || void 0, "data-highlight-on-hover": c || void 0, ...fn, children: [T ? null : O.jsx(Vf, { ...lt, children: O.jsx(Lb, { ref: Ht.header, selectionColumnHeaderRef: Ht.selectionColumnHeader, className: ln?.header, style: un?.header, columns: vt, defaultColumnProps: I, groups: N, sortStatus: ne, sortIcons: Se, onSortStatusChange: De, selectionTrigger: ae, selectionVisible: ir, selectionChecked: Fr, selectionIndeterminate: As && !Fr, onSelectionChange: Os, selectionCheckboxProps: { ...G, ...he }, selectorCellShadowVisible: Ur, selectionColumnClassName: Z, selectionColumnStyle: te }) }), O.jsx("tbody", { ref: Ut, children: Br ? oe.map((He, In) => {
7904
+ }, [Fr, q, ue, Wr, Yr, se]), { lastSelectionChangeIndex: xr, setLastSelectionChangeIndex: eo } = cb(Xi), Ur = ir && !M, pi = { m: zt, my: Qt, mx: qt, mt: Fe, mb: ot, ml: kt, mr: Jt }, Rs = Fn(({ children: He }) => cn ? cn({ children: He }) : He, [cn]);
7905
+ return O.jsx(Vf, { ...lt, children: O.jsxs(Bt, { ref: Ht.root, ...pi, className: ft("mantine-datatable", { "mantine-datatable-with-border": i }, Ln, ln?.root), style: [(He) => ({ ...Nb({ theme: He, c: tt, backgroundColor: Rt, borderColor: ht, rowBorderColor: nt, stripedColor: Cn, highlightOnHoverColor: Ct }), borderRadius: He.radius[n] || n, boxShadow: He.shadows[m] || m, height: s, minHeight: u, maxHeight: g }), br, un?.root, { position: "relative" }], children: [O.jsx(qb, { viewportRef: zn, leftShadowBehind: ir || !!M, rightShadowBehind: L, onScrollPositionChange: Un, scrollAreaProps: Ft, children: O.jsx(Rs, { children: O.jsxs(Qm, { ref: $r, horizontalSpacing: k, className: ft("mantine-datatable-table", { [yb]: r, "mantine-datatable-vertical-align-top": h === "top", "mantine-datatable-vertical-align-bottom": h === "bottom", "mantine-datatable-pin-last-column": L, "mantine-datatable-selection-column-visible": ir, "mantine-datatable-pin-first-column": M, "mantine-datatable-resizable-columns": Ve }, ln?.table), style: { ...un?.table }, "data-striped": Br && _ || void 0, "data-highlight-on-hover": c || void 0, ...fn, children: [T ? null : O.jsx(Vf, { ...lt, children: O.jsx(kb, { ref: Ht.header, selectionColumnHeaderRef: Ht.selectionColumnHeader, className: ln?.header, style: un?.header, columns: vt, defaultColumnProps: I, groups: N, sortStatus: ne, sortIcons: Se, onSortStatusChange: De, selectionTrigger: ae, selectionVisible: ir, selectionChecked: Fr, selectionIndeterminate: As && !Fr, onSelectionChange: Os, selectionCheckboxProps: { ...G, ...he }, selectorCellShadowVisible: Ur, selectionColumnClassName: Z, selectionColumnStyle: te }) }), O.jsx("tbody", { ref: Ut, children: Br ? oe.map((He, In) => {
7909
7906
  let zr = $t(He, q), gi = or?.includes(zr) || !1, vi;
7910
7907
  return ue && se && (vi = (to) => {
7911
7908
  if (to.nativeEvent.shiftKey && xr !== null) {
7912
7909
  let $n = oe.filter(In > xr ? (Hn, jn) => jn >= xr && jn <= In && (Q ? Q(Hn, jn) : !0) : (Hn, jn) => jn >= In && jn <= xr && (Q ? Q(Hn, jn) : !0));
7913
- ue(gi ? vb(se, $n, (Hn) => $t(Hn, q)) : Za([...se, ...$n], (Hn) => $t(Hn, q)));
7910
+ ue(gi ? gb(se, $n, (Hn) => $t(Hn, q)) : Za([...se, ...$n], (Hn) => $t(Hn, q)));
7914
7911
  } else ue(gi ? se.filter(($n) => $t($n, q) !== zr) : Za([...se, He], ($n) => $t($n, q)));
7915
7912
  eo(In);
7916
- }), O.jsx(zb, { record: He, index: In, columns: vt, defaultColumnProps: I, defaultColumnRender: $, selectionTrigger: ae, selectionVisible: ir, selectionChecked: gi, onSelectionChange: vi, isRecordSelectable: Q, selectionCheckboxProps: G, getSelectionCheckboxProps: fe, onClick: F, onDoubleClick: ee, onCellClick: be, onCellDoubleClick: Re, onContextMenu: Ce, onCellContextMenu: ve, expansion: jr, color: Sn, backgroundColor: St, className: Dn, style: gt, customAttributes: sn, selectorCellShadowVisible: Ur, selectionColumnClassName: Z, selectionColumnStyle: te, idAccessor: q, rowFactory: Nn }, zr);
7917
- }) : O.jsx(sb, {}) }), vt.some(({ footer: He }) => He) && O.jsx(xb, { ref: Ht.footer, className: ln?.footer, style: un?.footer, columns: vt, defaultColumnProps: I, selectionVisible: ir, selectorCellShadowVisible: Ur })] }) }) }), E && O.jsx(Yb, { className: ln?.pagination, style: un?.pagination, horizontalSpacing: k, fetching: C, page: E, onPageChange: qn, totalRecords: p, recordsPerPage: d, onRecordsPerPageChange: b, recordsPerPageOptions: f, recordsPerPageLabel: v, paginationWithEdges: D, paginationWithControls: Y, paginationActiveTextColor: H, paginationActiveBackgroundColor: ie, paginationSize: le, paginationText: ye, paginationWrapBreakpoint: J, getPaginationControlProps: _e, noRecordsText: xe, loadingText: V, recordsLength: Br }), O.jsx(Nb, { fetching: C, backgroundBlur: me, customContent: ge, size: j, type: K, color: W }), O.jsx(lb, { icon: l, text: xe, active: !C && !Br, children: X })] }) });
7913
+ }), O.jsx(Ub, { record: He, index: In, columns: vt, defaultColumnProps: I, defaultColumnRender: $, selectionTrigger: ae, selectionVisible: ir, selectionChecked: gi, onSelectionChange: vi, isRecordSelectable: Q, selectionCheckboxProps: G, getSelectionCheckboxProps: fe, onClick: F, onDoubleClick: ee, onCellClick: be, onCellDoubleClick: Re, onContextMenu: Ce, onCellContextMenu: ve, expansion: jr, color: Sn, backgroundColor: St, className: Dn, style: gt, customAttributes: sn, selectorCellShadowVisible: Ur, selectionColumnClassName: Z, selectionColumnStyle: te, idAccessor: q, rowFactory: Nn }, zr);
7914
+ }) : O.jsx(ob, {}) }), vt.some(({ footer: He }) => He) && O.jsx(bb, { ref: Ht.footer, className: ln?.footer, style: un?.footer, columns: vt, defaultColumnProps: I, selectionVisible: ir, selectorCellShadowVisible: Ur })] }) }) }), E && O.jsx(Bb, { className: ln?.pagination, style: un?.pagination, horizontalSpacing: k, fetching: C, page: E, onPageChange: qn, totalRecords: d, recordsPerPage: p, onRecordsPerPageChange: b, recordsPerPageOptions: f, recordsPerPageLabel: v, paginationWithEdges: D, paginationWithControls: Y, paginationActiveTextColor: H, paginationActiveBackgroundColor: ie, paginationSize: le, paginationText: ye, paginationWrapBreakpoint: J, getPaginationControlProps: _e, noRecordsText: xe, loadingText: V, recordsLength: Br }), O.jsx(Lb, { fetching: C, backgroundBlur: me, customContent: ge, size: j, type: K, color: W }), O.jsx(ab, { icon: l, text: xe, active: !C && !Br, children: X })] }) });
7918
7915
  }
7919
7916
  var Ui = { exports: {} };
7920
7917
  /**
@@ -7925,11 +7922,11 @@ var Ui = { exports: {} };
7925
7922
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7926
7923
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
7927
7924
  */
7928
- var Vb = Ui.exports, nh;
7929
- function Kb() {
7925
+ var Gb = Ui.exports, nh;
7926
+ function Vb() {
7930
7927
  return nh || (nh = 1, function(i, n) {
7931
7928
  (function() {
7932
- var r, s = "4.17.21", u = 200, g = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", h = "Invalid `variable` option passed into `_.template`", C = "__lodash_hash_undefined__", A = 500, R = "__lodash_placeholder__", N = 1, M = 2, L = 4, I = 1, $ = 2, q = 1, oe = 2, ae = 4, se = 8, ue = 16, Z = 32, te = 64, Q = 128, G = 256, he = 512, fe = 30, ne = "...", Se = 800, De = 16, k = 1, E = 2, S = 3, p = 1 / 0, d = 9007199254740991, b = 17976931348623157e292, f = NaN, v = 4294967295, D = v - 1, Y = v >>> 1, H = [
7929
+ var r, s = "4.17.21", u = 200, g = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", h = "Invalid `variable` option passed into `_.template`", C = "__lodash_hash_undefined__", A = 500, R = "__lodash_placeholder__", N = 1, M = 2, L = 4, I = 1, $ = 2, q = 1, oe = 2, ae = 4, se = 8, ue = 16, Z = 32, te = 64, Q = 128, G = 256, he = 512, fe = 30, ne = "...", Se = 800, De = 16, k = 1, E = 2, S = 3, d = 1 / 0, p = 9007199254740991, b = 17976931348623157e292, f = NaN, v = 4294967295, D = v - 1, Y = v >>> 1, H = [
7933
7930
  ["ary", Q],
7934
7931
  ["bind", q],
7935
7932
  ["bindKey", oe],
@@ -9170,7 +9167,7 @@ function Kb() {
9170
9167
  }
9171
9168
  function ia(e, t) {
9172
9169
  var o = "";
9173
- if (!e || t < 1 || t > d)
9170
+ if (!e || t < 1 || t > p)
9174
9171
  return o;
9175
9172
  do
9176
9173
  t % 2 && (o += e), t = vo(t / 2), t && (e += e);
@@ -9275,7 +9272,7 @@ function Kb() {
9275
9272
  if (nn(e))
9276
9273
  return au ? au.call(e) : "";
9277
9274
  var t = e + "";
9278
- return t == "0" && 1 / e == -p ? "-0" : t;
9275
+ return t == "0" && 1 / e == -d ? "-0" : t;
9279
9276
  }
9280
9277
  function fr(e, t, o) {
9281
9278
  var a = -1, y = no, x = e.length, P = !0, B = [], z = B;
@@ -9691,7 +9688,7 @@ function Kb() {
9691
9688
  return t(o);
9692
9689
  };
9693
9690
  }
9694
- var pg = Qr && 1 / io(new Qr([, -0]))[1] == p ? function(e) {
9691
+ var pg = Qr && 1 / io(new Qr([, -0]))[1] == d ? function(e) {
9695
9692
  return new Qr(e);
9696
9693
  } : La;
9697
9694
  function Gu(e) {
@@ -10002,7 +9999,7 @@ function Kb() {
10002
9999
  }
10003
10000
  function Jn(e, t) {
10004
10001
  var o = typeof e;
10005
- return t = t ?? d, !!t && (o == "number" || o != "symbol" && Un.test(e)) && e > -1 && e % 1 == 0 && e < t;
10002
+ return t = t ?? p, !!t && (o == "number" || o != "symbol" && Un.test(e)) && e > -1 && e % 1 == 0 && e < t;
10006
10003
  }
10007
10004
  function Nt(e, t, o) {
10008
10005
  if (!ut(o))
@@ -10134,7 +10131,7 @@ function Kb() {
10134
10131
  if (typeof e == "string" || nn(e))
10135
10132
  return e;
10136
10133
  var t = e + "";
10137
- return t == "0" && 1 / e == -p ? "-0" : t;
10134
+ return t == "0" && 1 / e == -d ? "-0" : t;
10138
10135
  }
10139
10136
  function Pr(e) {
10140
10137
  if (e != null) {
@@ -10232,7 +10229,7 @@ function Kb() {
10232
10229
  }
10233
10230
  function qg(e) {
10234
10231
  var t = e == null ? 0 : e.length;
10235
- return t ? At(e, p) : [];
10232
+ return t ? At(e, d) : [];
10236
10233
  }
10237
10234
  function Hg(e, t) {
10238
10235
  var o = e == null ? 0 : e.length;
@@ -10507,7 +10504,7 @@ function Kb() {
10507
10504
  return At(No(e, t), 1);
10508
10505
  }
10509
10506
  function Z1(e, t) {
10510
- return At(No(e, t), p);
10507
+ return At(No(e, t), d);
10511
10508
  }
10512
10509
  function Q1(e, t, o) {
10513
10510
  return o = o === r ? 1 : Ye(o), At(No(e, t), o);
@@ -10858,7 +10855,7 @@ function Kb() {
10858
10855
  return typeof e == "number" && e == Ye(e);
10859
10856
  }
10860
10857
  function Bo(e) {
10861
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= d;
10858
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= p;
10862
10859
  }
10863
10860
  function ut(e) {
10864
10861
  var t = typeof e;
@@ -10902,7 +10899,7 @@ function Kb() {
10902
10899
  }
10903
10900
  var Oa = Wl ? en(Wl) : qp;
10904
10901
  function G0(e) {
10905
- return Dc(e) && e >= -d && e <= d;
10902
+ return Dc(e) && e >= -p && e <= p;
10906
10903
  }
10907
10904
  var Rc = Fl ? en(Fl) : Hp;
10908
10905
  function Yo(e) {
@@ -10937,7 +10934,7 @@ function Kb() {
10937
10934
  function er(e) {
10938
10935
  if (!e)
10939
10936
  return e === 0 ? e : 0;
10940
- if (e = _n(e), e === p || e === -p) {
10937
+ if (e = _n(e), e === d || e === -d) {
10941
10938
  var t = e < 0 ? -1 : 1;
10942
10939
  return t * b;
10943
10940
  }
@@ -10969,7 +10966,7 @@ function Kb() {
10969
10966
  return Yn(e, Kt(e));
10970
10967
  }
10971
10968
  function X0(e) {
10972
- return e ? Or(Ye(e), -d, d) : e === 0 ? e : 0;
10969
+ return e ? Or(Ye(e), -p, p) : e === 0 ? e : 0;
10973
10970
  }
10974
10971
  function Je(e) {
10975
10972
  return e == null ? "" : tn(e);
@@ -11440,7 +11437,7 @@ function print() { __p += __j.call(arguments, '') }
11440
11437
  return !0;
11441
11438
  }
11442
11439
  function Rm(e, t) {
11443
- if (e = Ye(e), e < 1 || e > d)
11440
+ if (e = Ye(e), e < 1 || e > p)
11444
11441
  return [];
11445
11442
  var o = v, a = Et(e, v);
11446
11443
  t = ke(t), e -= v;
@@ -11586,11 +11583,11 @@ function print() { __p += __j.call(arguments, '') }
11586
11583
  }], qe.prototype.clone = op, qe.prototype.reverse = sp, qe.prototype.value = ap, w.prototype.at = I1, w.prototype.chain = $1, w.prototype.commit = j1, w.prototype.next = B1, w.prototype.plant = W1, w.prototype.reverse = F1, w.prototype.toJSON = w.prototype.valueOf = w.prototype.value = U1, w.prototype.first = w.prototype.head, yi && (w.prototype[yi] = Y1), w;
11587
11584
  }, Kr = jd();
11588
11585
  Cr ? ((Cr.exports = Kr)._ = Kr, Ms._ = Kr) : Dt._ = Kr;
11589
- }).call(Vb);
11586
+ }).call(Gb);
11590
11587
  }(Ui, Ui.exports)), Ui.exports;
11591
11588
  }
11592
- var rh = Kb();
11593
- function Zb(i) {
11589
+ var rh = Vb();
11590
+ function Kb(i) {
11594
11591
  const n = kn.c(41), {
11595
11592
  fields: r,
11596
11593
  onClose: s,
@@ -11608,14 +11605,14 @@ function Zb(i) {
11608
11605
  isPending: oe
11609
11606
  } = Rh(g, u);
11610
11607
  let ae;
11611
- n[0] !== r ? (ae = new Set(r.filter(rx).map(nx)), n[0] = r, n[1] = ae) : ae = n[1];
11608
+ n[0] !== r ? (ae = new Set(r.filter(tx).map(ex)), n[0] = r, n[1] = ae) : ae = n[1];
11612
11609
  let se;
11613
11610
  n[2] !== ae ? (se = [...ae], n[2] = ae, n[3] = se) : se = n[3];
11614
11611
  const ue = se;
11615
11612
  let Z;
11616
- n[4] !== r ? (Z = r.reduce(tx, {}), n[4] = r, n[5] = Z) : Z = n[5];
11613
+ n[4] !== r ? (Z = r.reduce(Xb, {}), n[4] = r, n[5] = Z) : Z = n[5];
11617
11614
  let te;
11618
- n[6] !== r ? (te = r.filter(ex).reduce(Jb, {}), n[6] = r, n[7] = te) : te = n[7];
11615
+ n[6] !== r ? (te = r.filter(Jb).reduce(Qb, {}), n[6] = r, n[7] = te) : te = n[7];
11619
11616
  let Q;
11620
11617
  n[8] !== Z || n[9] !== te ? (Q = {
11621
11618
  mode: "uncontrolled",
@@ -11629,33 +11626,33 @@ function Zb(i) {
11629
11626
  const S = {
11630
11627
  ...M
11631
11628
  };
11632
- r.forEach((p) => {
11633
- const d = p.id;
11634
- p.type === "boolean" && S[d] === null ? S[d] = !1 : p.type === "date" && S[d] ? S[d] = new Date(S[d]) : S[d] === null && (S[d] = "");
11629
+ r.forEach((d) => {
11630
+ const p = d.id;
11631
+ d.type === "boolean" && S[p] === null ? S[p] = !1 : d.type === "date" && S[p] ? S[p] = new Date(S[p]) : S[p] === null && (S[p] = "");
11635
11632
  }), G.initialize(S), G.setValues(S);
11636
11633
  }
11637
11634
  }, n[11] = M, n[12] = r, n[13] = G, n[14] = he) : he = n[14];
11638
11635
  let fe;
11639
11636
  n[15] !== M ? (fe = [M], n[15] = M, n[16] = fe) : fe = n[16], xt(he, fe);
11640
11637
  let ne;
11641
- n[17] !== G || n[18] !== m ? (ne = function(p) {
11642
- const d = G.getValues();
11643
- return p.conditional && !p.conditional(d) ? null : /* @__PURE__ */ O.jsxs(sh, { children: [
11644
- (p.type === void 0 || p.type == "text") && /* @__PURE__ */ O.jsx(lh, { label: p.column.title, placeholder: p.placeholder ?? "", ...G.getInputProps(p.id), type: p.id.includes("email") ? "email" : void 0 }, G.key(p.id)),
11645
- p.type === "number" && /* @__PURE__ */ O.jsx(uh, { decimalSeparator: ",", label: p.column.title, placeholder: p.placeholder ?? "", ...G.getInputProps(p.id) }, G.key(p.id)),
11646
- p.type === "date" && /* @__PURE__ */ O.jsx(bs, { label: p.column.title, placeholder: p.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...G.getInputProps(p.id) }, G.key(p.id)),
11647
- p.type === "boolean" && /* @__PURE__ */ O.jsx(Qi, { mt: "md", label: p.column.title, ...G.getInputProps(p.id, {
11638
+ n[17] !== G || n[18] !== m ? (ne = function(d) {
11639
+ const p = G.getValues();
11640
+ return d.conditional && !d.conditional(p) ? null : /* @__PURE__ */ O.jsxs(sh, { children: [
11641
+ (d.type === void 0 || d.type == "text") && /* @__PURE__ */ O.jsx(lh, { label: d.column.title, placeholder: d.placeholder ?? "", ...G.getInputProps(d.id), type: d.id.includes("email") ? "email" : void 0, required: d.required }, G.key(d.id)),
11642
+ d.type === "number" && /* @__PURE__ */ O.jsx(uh, { decimalSeparator: ",", label: d.column.title, placeholder: d.placeholder ?? "", ...G.getInputProps(d.id), required: d.required }, G.key(d.id)),
11643
+ d.type === "date" && /* @__PURE__ */ O.jsx(bs, { label: d.column.title, placeholder: d.placeholder ?? "", valueFormat: "DD.MM.YYYY", clearable: !0, ...G.getInputProps(d.id), required: d.required }, G.key(d.id)),
11644
+ d.type === "boolean" && /* @__PURE__ */ O.jsx(Qi, { mt: "md", label: d.column.title, ...G.getInputProps(d.id, {
11648
11645
  type: "checkbox"
11649
- }) }, G.key(p.id)),
11650
- p.type === "textarea" && /* @__PURE__ */ O.jsx(ch, { label: p.column.title, placeholder: p.placeholder ?? "", ...G.getInputProps(p.id), minRows: 3, autosize: !0 }, G.key(p.id)),
11651
- p.type === "custom" && p.render && p.render({
11646
+ }), required: d.required }, G.key(d.id)),
11647
+ d.type === "textarea" && /* @__PURE__ */ O.jsx(ch, { label: d.column.title, placeholder: d.placeholder ?? "", ...G.getInputProps(d.id), minRows: 3, autosize: !0, required: d.required }, G.key(d.id)),
11648
+ d.type === "custom" && d.render && d.render({
11652
11649
  ...G.getValues(),
11653
11650
  id: m
11654
11651
  }, G.setValues, N, {
11655
- error: G.getInputProps(p.id).error,
11656
- required: p.required
11652
+ error: G.getInputProps(d.id).error,
11653
+ required: d.required
11657
11654
  })
11658
- ] }, p.id);
11655
+ ] }, d.id);
11659
11656
  }, n[17] = G, n[18] = m, n[19] = ne) : ne = n[19];
11660
11657
  const Se = ne;
11661
11658
  let De;
@@ -11663,7 +11660,7 @@ function Zb(i) {
11663
11660
  let k;
11664
11661
  n[24] !== C || n[25] !== r || n[26] !== G || n[27] !== R || n[28] !== m || n[29] !== L || n[30] !== oe || n[31] !== $ || n[32] !== s || n[33] !== Se || n[34] !== h || n[35] !== ue || n[36] !== I ? (k = L ? /* @__PURE__ */ O.jsxs(dl, { gap: "md", children: [
11665
11662
  /* @__PURE__ */ O.jsx(si, { height: 40 }),
11666
- Array(r.length).fill(0).map(Qb),
11663
+ Array(r.length).fill(0).map(Zb),
11667
11664
  /* @__PURE__ */ O.jsxs(nr, { mt: "md", justify: "end", children: [
11668
11665
  /* @__PURE__ */ O.jsx(si, { width: 100, height: 36 }),
11669
11666
  /* @__PURE__ */ O.jsx(si, { width: 100, height: 36 })
@@ -11676,7 +11673,7 @@ function Zb(i) {
11676
11673
  }), children: [
11677
11674
  ue.length ? /* @__PURE__ */ O.jsx(Jo, { active: C, size: "sm", children: ue.map((S) => /* @__PURE__ */ O.jsx(Jo.Step, { ...h && h[S - 1] ? {
11678
11675
  label: h[S - 1].label
11679
- } : {}, children: r.filter((p) => p.step === S).map((p) => Se(p)) }, S)) }) : r.map((S) => Se(S)),
11676
+ } : {}, children: r.filter((d) => d.step === S).map((d) => Se(d)) }, S)) }) : r.map((S) => Se(S)),
11680
11677
  !R && /* @__PURE__ */ O.jsxs(nr, { mt: "md", justify: "end", children: [
11681
11678
  /* @__PURE__ */ O.jsx(rr, { onClick: () => ue.length ? C === 0 ? s() : A(C - 1) : s(), variant: "outline", children: ue.length ? C === 0 ? "Abbrechen" : "Zurück" : "Abbrechen" }),
11682
11679
  /* @__PURE__ */ O.jsx(rr, { type: "submit", loading: oe, children: ue.length ? C === ue.length - 1 ? "Speichern" : "Weiter" : "Speichern" })
@@ -11688,28 +11685,25 @@ function Zb(i) {
11688
11685
  k
11689
11686
  ] }), n[38] = k, n[39] = De, n[40] = E) : E = n[40], E;
11690
11687
  }
11691
- function Qb(i, n) {
11688
+ function Zb(i, n) {
11692
11689
  return /* @__PURE__ */ O.jsx(si, { height: 35 }, `skeleton-field-${n}`);
11693
11690
  }
11694
- function Jb(i, n) {
11695
- return i[n.id] = Xb, i;
11696
- }
11697
- function Xb(i) {
11698
- return i ? null : "Pflichtfeld";
11691
+ function Qb(i, n) {
11692
+ return i[n.id] = (r, s) => n.conditional && !n.conditional(s) || r ? null : "Pflichtfeld", i;
11699
11693
  }
11700
- function ex(i) {
11694
+ function Jb(i) {
11701
11695
  return i.required;
11702
11696
  }
11703
- function tx(i, n) {
11697
+ function Xb(i, n) {
11704
11698
  return i[n.id] = n.type === "boolean" ? n.defaultValue ?? !1 : n.defaultValue ?? "", i;
11705
11699
  }
11706
- function nx(i) {
11700
+ function ex(i) {
11707
11701
  return i.step;
11708
11702
  }
11709
- function rx(i) {
11703
+ function tx(i) {
11710
11704
  return typeof i.step == "number";
11711
11705
  }
11712
- function ix({
11706
+ function nx({
11713
11707
  queryKey: i,
11714
11708
  apiPath: n,
11715
11709
  onClose: r,
@@ -11739,7 +11733,7 @@ function ix({
11739
11733
  ] })
11740
11734
  ] }) : /* @__PURE__ */ O.jsx(O.Fragment, {});
11741
11735
  }
11742
- function ox(i, n) {
11736
+ function rx(i, n) {
11743
11737
  const r = kn.c(8);
11744
11738
  let s;
11745
11739
  r[0] !== i || r[1] !== n ? (s = () => {
@@ -11756,7 +11750,7 @@ function ox(i, n) {
11756
11750
  return r[5] !== h || r[6] !== u ? (C = [u, h], r[5] = h, r[6] = u, r[7] = C) : C = r[7], C;
11757
11751
  }
11758
11752
  const ih = [10, 15, 20, 50, 100, 500];
11759
- function sx(i) {
11753
+ function ix(i) {
11760
11754
  const n = kn.c(147), {
11761
11755
  title: r,
11762
11756
  queryKey: s,
@@ -11788,7 +11782,7 @@ function sx(i) {
11788
11782
  he = {
11789
11783
  ...$,
11790
11784
  ...Ve
11791
- }, fe = he ? "?" + Object.entries(he).filter(mx).map(vx).join("&") : "", n[3] = te, n[4] = $, n[5] = q, n[6] = he, n[7] = fe;
11785
+ }, fe = he ? "?" + Object.entries(he).filter(gx).map(px).join("&") : "", n[3] = te, n[4] = $, n[5] = q, n[6] = he, n[7] = fe;
11792
11786
  } else
11793
11787
  he = n[6], fe = n[7];
11794
11788
  const ne = fe;
@@ -11798,8 +11792,8 @@ function sx(i) {
11798
11792
  data: k,
11799
11793
  isLoading: E,
11800
11794
  isError: S,
11801
- isRefetching: p,
11802
- refetch: d
11795
+ isRefetching: d,
11796
+ refetch: p
11803
11797
  } = J2(g + ne, De);
11804
11798
  let b;
11805
11799
  n[11] === Symbol.for("react.memo_cache_sentinel") ? (b = [], n[11] = b) : b = n[11];
@@ -11860,7 +11854,7 @@ function sx(i) {
11860
11854
  }, n[29] = f, n[30] = J.columnAccessor, n[31] = J.direction, n[32] = K) : K = n[32];
11861
11855
  let W;
11862
11856
  n[33] !== f || n[34] !== J ? (W = [J, f], n[33] = f, n[34] = J, n[35] = W) : W = n[35], xt(K, W);
11863
- const [V, X] = ox(ih[1], "mantine-table-page-size"), [xe, l] = Xe(1);
11857
+ const [V, X] = rx(ih[1], "mantine-table-page-size"), [xe, l] = Xe(1);
11864
11858
  let c;
11865
11859
  n[36] !== V || n[37] !== A || n[38] !== ge ? (c = A ? ge.slice(0, V) : ge, n[36] = V, n[37] = A, n[38] = ge, n[39] = c) : c = n[39];
11866
11860
  const [_, T] = Xe(c);
@@ -11897,24 +11891,24 @@ function sx(i) {
11897
11891
  let St;
11898
11892
  n[59] !== r ? (St = r && (typeof r == "string" ? /* @__PURE__ */ O.jsx(uy, { order: 4, children: r }) : r), n[59] = r, n[60] = St) : St = n[60];
11899
11893
  let Wt;
11900
- n[61] !== d ? (Wt = () => d(), n[61] = d, n[62] = Wt) : Wt = n[62];
11894
+ n[61] !== p ? (Wt = () => p(), n[61] = p, n[62] = Wt) : Wt = n[62];
11901
11895
  let Dn;
11902
11896
  n[63] === Symbol.for("react.memo_cache_sentinel") ? (Dn = /* @__PURE__ */ O.jsx(dy, {}), n[63] = Dn) : Dn = n[63];
11903
11897
  let gt;
11904
11898
  n[64] !== Wt ? (gt = /* @__PURE__ */ O.jsx(Xo, { variant: "subtle", onClick: Wt, "aria-label": "Neuladen", children: Dn }), n[64] = Wt, n[65] = gt) : gt = n[65];
11905
11899
  let sn;
11906
- n[66] !== N || n[67] !== h || n[68] !== ve || n[69] !== C ? (sn = (h.some(gx) || C) && /* @__PURE__ */ O.jsxs(Mr, { shadow: "md", children: [
11900
+ n[66] !== N || n[67] !== h || n[68] !== ve || n[69] !== C ? (sn = (h.some(dx) || C) && /* @__PURE__ */ O.jsxs(Mr, { shadow: "md", children: [
11907
11901
  /* @__PURE__ */ O.jsx(Mr.Target, { children: /* @__PURE__ */ O.jsx(rr, { variant: "outline", rightSection: /* @__PURE__ */ O.jsx(cy, { size: 14 }), disabled: !ve.length, children: "Aktionen" }) }),
11908
11902
  /* @__PURE__ */ O.jsxs(Mr.Dropdown, { children: [
11909
- h.find(px) && /* @__PURE__ */ O.jsx(Mr.Item, { leftSection: /* @__PURE__ */ O.jsx(fy, { size: 14 }), onClick: () => nt(!0), disabled: ve.length !== 1, children: "Bearbeiten" }),
11903
+ h.find(hx) && /* @__PURE__ */ O.jsx(Mr.Item, { leftSection: /* @__PURE__ */ O.jsx(fy, { size: 14 }), onClick: () => nt(!0), disabled: ve.length !== 1, children: "Bearbeiten" }),
11910
11904
  (N ?? []).map((Ve, lt) => /* @__PURE__ */ Ko(Mr.Item, { ...Ve.icon && {
11911
11905
  leftSection: Ve.icon
11912
11906
  }, key: `custom_action_${lt}`, onClick: () => Ve.onClick(ve) }, Ve.label)),
11913
- h.find(dx) && /* @__PURE__ */ O.jsx(Mr.Item, { leftSection: /* @__PURE__ */ O.jsx(hy, { size: 14 }), onClick: () => Ct(!0), color: "red", children: "Löschen" })
11907
+ h.find(fx) && /* @__PURE__ */ O.jsx(Mr.Item, { leftSection: /* @__PURE__ */ O.jsx(hy, { size: 14 }), onClick: () => Ct(!0), color: "red", children: "Löschen" })
11914
11908
  ] })
11915
11909
  ] }), n[66] = N, n[67] = h, n[68] = ve, n[69] = C, n[70] = sn) : sn = n[70];
11916
11910
  let an;
11917
- n[71] !== I || n[72] !== h || n[73] !== E ? (an = h.find(hx) && /* @__PURE__ */ O.jsx(rr, { onClick: () => Rt(!0), disabled: E, children: I ?? "Erstellen" }), n[71] = I, n[72] = h, n[73] = E, n[74] = an) : an = n[74];
11911
+ n[71] !== I || n[72] !== h || n[73] !== E ? (an = h.find(cx) && /* @__PURE__ */ O.jsx(rr, { onClick: () => Rt(!0), disabled: E, children: I ?? "Erstellen" }), n[71] = I, n[72] = h, n[73] = E, n[74] = an) : an = n[74];
11918
11912
  let Ft;
11919
11913
  n[75] !== m || n[76] !== gt || n[77] !== sn || n[78] !== an ? (Ft = /* @__PURE__ */ O.jsxs(nr, { align: "center", gap: "xs", children: [
11920
11914
  gt,
@@ -11928,16 +11922,16 @@ function sx(i) {
11928
11922
  Ft
11929
11923
  ] }), n[80] = Sn, n[81] = St, n[82] = Ft, n[83] = Mt) : Mt = n[83];
11930
11924
  let Ut;
11931
- n[84] !== te || n[85] !== G || n[86] !== q ? (Ut = q && q.length > 0 && /* @__PURE__ */ O.jsx(Ja, { value: te, onChange: G, mt: "md", children: /* @__PURE__ */ O.jsx(Ja.List, { children: q.map(fx) }) }), n[84] = te, n[85] = G, n[86] = q, n[87] = Ut) : Ut = n[87];
11925
+ n[84] !== te || n[85] !== G || n[86] !== q ? (Ut = q && q.length > 0 && /* @__PURE__ */ O.jsx(Ja, { value: te, onChange: G, mt: "md", children: /* @__PURE__ */ O.jsx(Ja.List, { children: q.map(ux) }) }), n[84] = te, n[85] = G, n[86] = q, n[87] = Ut) : Ut = n[87];
11932
11926
  let zt;
11933
11927
  n[88] !== S ? (zt = S && /* @__PURE__ */ O.jsx(os, { mt: "md", variant: "light", color: "red", title: "Es ist ein Fehler aufgetreten.", icon: /* @__PURE__ */ O.jsx(py, {}), children: "Bitte versuche es später erneut oder sende eine Nachricht an unseren Support." }), n[88] = S, n[89] = zt) : zt = n[89];
11934
11928
  let Qt;
11935
- n[90] !== E || n[91] !== p ? (Qt = (E || p) && /* @__PURE__ */ O.jsxs(dl, { my: "md", children: [
11929
+ n[90] !== E || n[91] !== d ? (Qt = (E || d) && /* @__PURE__ */ O.jsxs(dl, { my: "md", children: [
11936
11930
  /* @__PURE__ */ O.jsx(si, { height: 40 }),
11937
- Array(5).fill(0).map(cx)
11938
- ] }), n[90] = E, n[91] = p, n[92] = Qt) : Qt = n[92];
11931
+ Array(5).fill(0).map(lx)
11932
+ ] }), n[90] = E, n[91] = d, n[92] = Qt) : Qt = n[92];
11939
11933
  let qt;
11940
- n[93] !== h || n[94] !== S || n[95] !== E || n[96] !== p || n[97] !== xe || n[98] !== V || n[99] !== A || n[100] !== _ || n[101] !== ve || n[102] !== C || n[103] !== X || n[104] !== J || n[105] !== ge ? (qt = !E && !p && /* @__PURE__ */ O.jsx(Gb, { my: "md", striped: !0, minHeight: 150, fetching: S, records: _, sortStatus: J, onSortStatusChange: _e, ...C && {
11934
+ n[93] !== h || n[94] !== S || n[95] !== E || n[96] !== d || n[97] !== xe || n[98] !== V || n[99] !== A || n[100] !== _ || n[101] !== ve || n[102] !== C || n[103] !== X || n[104] !== J || n[105] !== ge ? (qt = !E && !d && /* @__PURE__ */ O.jsx(Hb, { my: "md", striped: !0, minHeight: 150, fetching: S, records: _, sortStatus: J, onSortStatusChange: _e, ...C && {
11941
11935
  selectedRecords: ve,
11942
11936
  onSelectedRecordsChange: Pe
11943
11937
  }, ...A && _.length && {
@@ -11948,14 +11942,14 @@ function sx(i) {
11948
11942
  recordsPerPageOptions: ih,
11949
11943
  onRecordsPerPageChange: X,
11950
11944
  recordsPerPageLabel: "Einträge pro Seite"
11951
- }, columns: h.map(ux), noRecordsText: "Keine Einträge gefunden" }), n[93] = h, n[94] = S, n[95] = E, n[96] = p, n[97] = xe, n[98] = V, n[99] = A, n[100] = _, n[101] = ve, n[102] = C, n[103] = X, n[104] = J, n[105] = ge, n[106] = qt) : qt = n[106];
11945
+ }, columns: h.map(ax), noRecordsText: "Keine Einträge gefunden" }), n[93] = h, n[94] = S, n[95] = E, n[96] = d, n[97] = xe, n[98] = V, n[99] = A, n[100] = _, n[101] = ve, n[102] = C, n[103] = X, n[104] = J, n[105] = ge, n[106] = qt) : qt = n[106];
11952
11946
  let Fe;
11953
11947
  n[107] === Symbol.for("react.memo_cache_sentinel") ? (Fe = () => {
11954
11948
  nt(!1), Pe([]);
11955
11949
  }, n[107] = Fe) : Fe = n[107];
11956
11950
  const ot = r ?? "Bearbeiten";
11957
11951
  let kt;
11958
- n[108] !== g || n[109] !== h || n[110] !== s || n[111] !== ve[0] || n[112] !== ve.length || n[113] !== M ? (kt = ve.length > 0 && /* @__PURE__ */ O.jsx(Zb, { fields: h.filter(lx), queryKey: s, apiPath: g, id: ve[0].id, onClose: () => {
11952
+ n[108] !== g || n[109] !== h || n[110] !== s || n[111] !== ve[0] || n[112] !== ve.length || n[113] !== M ? (kt = ve.length > 0 && /* @__PURE__ */ O.jsx(Kb, { fields: h.filter(sx), queryKey: s, apiPath: g, id: ve[0].id, onClose: () => {
11959
11953
  nt(!1), Pe([]);
11960
11954
  }, steps: M }), n[108] = g, n[109] = h, n[110] = s, n[111] = ve[0], n[112] = ve.length, n[113] = M, n[114] = kt) : kt = n[114];
11961
11955
  let Jt;
@@ -11963,7 +11957,7 @@ function sx(i) {
11963
11957
  let Ln;
11964
11958
  n[119] !== g || n[120] !== Cn || n[121] !== s || n[122] !== ve || n[123] !== r ? (Ln = ve.length > 0 && /* @__PURE__ */ O.jsx($a, { opened: Cn, onClose: () => {
11965
11959
  Ct(!1), Pe([]);
11966
- }, title: r ?? "Löschen", children: /* @__PURE__ */ O.jsx(ix, { onClose: () => {
11960
+ }, title: r ?? "Löschen", children: /* @__PURE__ */ O.jsx(nx, { onClose: () => {
11967
11961
  Ct(!1), Pe([]);
11968
11962
  }, queryKey: s, apiPath: g, selectedRecords: ve }) }), n[119] = g, n[120] = Cn, n[121] = s, n[122] = ve, n[123] = r, n[124] = Ln) : Ln = n[124];
11969
11963
  let ln;
@@ -11976,7 +11970,7 @@ function sx(i) {
11976
11970
  Rt(!1);
11977
11971
  }, n[126] = un) : un = n[126];
11978
11972
  let Nn;
11979
- n[127] !== h ? (Nn = h.filter(ax), n[127] = h, n[128] = Nn) : Nn = n[128];
11973
+ n[127] !== h ? (Nn = h.filter(ox), n[127] = h, n[128] = Nn) : Nn = n[128];
11980
11974
  let cn;
11981
11975
  n[129] !== g || n[130] !== s || n[131] !== M || n[132] !== Nn ? (cn = /* @__PURE__ */ O.jsx(Jw, { queryKey: s, apiPath: g, onClose: un, fields: Nn, steps: M }), n[129] = g, n[130] = s, n[131] = M, n[132] = Nn, n[133] = cn) : cn = n[133];
11982
11976
  let fn;
@@ -11993,54 +11987,54 @@ function sx(i) {
11993
11987
  fn
11994
11988
  ] }), n[138] = Mt, n[139] = Ut, n[140] = zt, n[141] = Qt, n[142] = qt, n[143] = Jt, n[144] = Ln, n[145] = fn, n[146] = vt) : vt = n[146], vt;
11995
11989
  }
11996
- function ax(i) {
11990
+ function ox(i) {
11997
11991
  return i.create;
11998
11992
  }
11999
- function lx(i) {
11993
+ function sx(i) {
12000
11994
  return i.update;
12001
11995
  }
12002
- function ux(i) {
11996
+ function ax(i) {
12003
11997
  return i.column;
12004
11998
  }
12005
- function cx(i, n) {
11999
+ function lx(i, n) {
12006
12000
  return /* @__PURE__ */ O.jsx(si, { height: 35 }, `skeleton-${n}`);
12007
12001
  }
12008
- function fx(i) {
12002
+ function ux(i) {
12009
12003
  return /* @__PURE__ */ O.jsx(Ja.Tab, { value: i.value, leftSection: i.icon, children: i.label }, i.value);
12010
12004
  }
12011
- function hx(i) {
12005
+ function cx(i) {
12012
12006
  return i.create;
12013
12007
  }
12014
- function dx(i) {
12008
+ function fx(i) {
12015
12009
  return i.delete;
12016
12010
  }
12017
- function px(i) {
12011
+ function hx(i) {
12018
12012
  return i.update;
12019
12013
  }
12020
- function gx(i) {
12014
+ function dx(i) {
12021
12015
  return i.update;
12022
12016
  }
12023
- function vx(i) {
12017
+ function px(i) {
12024
12018
  const [n, r] = i;
12025
12019
  return `${n}=${encodeURIComponent(r ?? "")}`;
12026
12020
  }
12027
- function mx(i) {
12021
+ function gx(i) {
12028
12022
  const [, n] = i;
12029
12023
  return n != null;
12030
12024
  }
12031
- function Dx(i) {
12025
+ function Cx(i) {
12032
12026
  const n = kn.c(5), {
12033
12027
  queryClient: r
12034
12028
  } = Ir();
12035
12029
  let s;
12036
- n[0] !== i ? (s = /* @__PURE__ */ O.jsx(sx, { ...i }), n[0] = i, n[1] = s) : s = n[1];
12030
+ n[0] !== i ? (s = /* @__PURE__ */ O.jsx(ix, { ...i }), n[0] = i, n[1] = s) : s = n[1];
12037
12031
  let u;
12038
12032
  return n[2] !== r || n[3] !== s ? (u = /* @__PURE__ */ O.jsx(bh, { client: r, children: s }), n[2] = r, n[3] = s, n[4] = u) : u = n[4], u;
12039
12033
  }
12040
12034
  export {
12041
- Dx as DataTable,
12042
- Cx as DataTableProvider,
12043
- Sx as api,
12035
+ Cx as DataTable,
12036
+ bx as DataTableProvider,
12037
+ xx as api,
12044
12038
  V2 as createOne,
12045
12039
  G2 as deleteOne,
12046
12040
  q2 as getAll,
@@ -12052,7 +12046,7 @@ export {
12052
12046
  ow as useDeleteOne,
12053
12047
  J2 as useGetAll,
12054
12048
  Z2 as useGetOne,
12055
- ox as usePersistentState,
12049
+ rx as usePersistentState,
12056
12050
  Rh as useUpdateOne
12057
12051
  };
12058
12052
  //# sourceMappingURL=index.es.js.map