radar-ui 1.1.39 → 1.1.40

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.js CHANGED
@@ -5,11 +5,11 @@
5
5
  document.head.appendChild(style);
6
6
  })();
7
7
  import * as Je from "react";
8
- import qe, { useState as we, useRef as Ee, useCallback as ue, startTransition as Ft, useEffect as ze, createContext as $t, useContext as Dt, useMemo as Ye, useLayoutEffect as vt } from "react";
9
- import { useSensors as It, useSensor as it, PointerSensor as Lt, KeyboardSensor as Mt, pointerWithin as zt, rectIntersection as Wt, DndContext as Pt, DragOverlay as Nt, useDraggable as At, useDroppable as Bt } from "@dnd-kit/core";
8
+ import qe, { useState as we, useRef as Ee, useCallback as ue, startTransition as Ft, useEffect as Ie, createContext as $t, useContext as Dt, useMemo as Ye, useLayoutEffect as Xe } from "react";
9
+ import { useSensors as It, useSensor as ot, PointerSensor as Lt, KeyboardSensor as Mt, pointerWithin as Wt, rectIntersection as Pt, DndContext as Nt, DragOverlay as At, useDraggable as zt, useDroppable as Bt } from "@dnd-kit/core";
10
10
  import { sortableKeyboardCoordinates as Vt } from "@dnd-kit/sortable";
11
11
  import { flushSync as Kt } from "react-dom";
12
- var Xe = { exports: {} }, Ve = {};
12
+ var Qe = { exports: {} }, Ve = {};
13
13
  /**
14
14
  * @license React
15
15
  * react-jsx-runtime.production.min.js
@@ -19,17 +19,17 @@ var Xe = { exports: {} }, Ve = {};
19
19
  * This source code is licensed under the MIT license found in the
20
20
  * LICENSE file in the root directory of this source tree.
21
21
  */
22
- var ot;
22
+ var at;
23
23
  function qt() {
24
- if (ot) return Ve;
25
- ot = 1;
24
+ if (at) return Ve;
25
+ at = 1;
26
26
  var t = qe, i = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
27
27
  function a(c, f, w) {
28
- var h, E = {}, q = null, z = null;
29
- w !== void 0 && (q = "" + w), f.key !== void 0 && (q = "" + f.key), f.ref !== void 0 && (z = f.ref);
28
+ var h, E = {}, q = null, P = null;
29
+ w !== void 0 && (q = "" + w), f.key !== void 0 && (q = "" + f.key), f.ref !== void 0 && (P = f.ref);
30
30
  for (h in f) n.call(f, h) && !o.hasOwnProperty(h) && (E[h] = f[h]);
31
31
  if (c && c.defaultProps) for (h in f = c.defaultProps, f) E[h] === void 0 && (E[h] = f[h]);
32
- return { $$typeof: i, type: c, key: q, ref: z, props: E, _owner: s.current };
32
+ return { $$typeof: i, type: c, key: q, ref: P, props: E, _owner: s.current };
33
33
  }
34
34
  return Ve.Fragment = r, Ve.jsx = a, Ve.jsxs = a, Ve;
35
35
  }
@@ -43,54 +43,54 @@ var Ke = {};
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
45
  */
46
- var at;
46
+ var lt;
47
47
  function Ht() {
48
- return at || (at = 1, process.env.NODE_ENV !== "production" && function() {
49
- var t = qe, i = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), z = Symbol.for("react.offscreen"), P = Symbol.iterator, Z = "@@iterator";
48
+ return lt || (lt = 1, process.env.NODE_ENV !== "production" && function() {
49
+ var t = qe, i = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), N = Symbol.iterator, Z = "@@iterator";
50
50
  function re(e) {
51
51
  if (e === null || typeof e != "object")
52
52
  return null;
53
- var d = P && e[P] || e[Z];
54
- return typeof d == "function" ? d : null;
53
+ var u = N && e[N] || e[Z];
54
+ return typeof u == "function" ? u : null;
55
55
  }
56
56
  var Y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
57
57
  function g(e) {
58
58
  {
59
- for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), B = 1; B < d; B++)
60
- y[B - 1] = arguments[B];
61
- Q("error", e, y);
59
+ for (var u = arguments.length, v = new Array(u > 1 ? u - 1 : 0), B = 1; B < u; B++)
60
+ v[B - 1] = arguments[B];
61
+ ee("error", e, v);
62
62
  }
63
63
  }
64
- function Q(e, d, y) {
64
+ function ee(e, u, v) {
65
65
  {
66
66
  var B = Y.ReactDebugCurrentFrame, he = B.getStackAddendum();
67
- he !== "" && (d += "%s", y = y.concat([he]));
68
- var me = y.map(function(oe) {
67
+ he !== "" && (u += "%s", v = v.concat([he]));
68
+ var me = v.map(function(oe) {
69
69
  return String(oe);
70
70
  });
71
- me.unshift("Warning: " + d), Function.prototype.apply.call(console[e], console, me);
71
+ me.unshift("Warning: " + u), Function.prototype.apply.call(console[e], console, me);
72
72
  }
73
73
  }
74
- var S = !1, M = !1, ae = !1, m = !1, _ = !1, x;
75
- x = Symbol.for("react.module.reference");
76
- function v(e) {
77
- return !!(typeof e == "string" || typeof e == "function" || e === n || e === o || _ || e === s || e === w || e === h || m || e === z || S || M || ae || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === E || e.$$typeof === a || e.$$typeof === c || e.$$typeof === f || // This needs to include all possible module reference object
74
+ var S = !1, W = !1, ae = !1, p = !1, _ = !1, y;
75
+ y = Symbol.for("react.module.reference");
76
+ function b(e) {
77
+ return !!(typeof e == "string" || typeof e == "function" || e === n || e === o || _ || e === s || e === w || e === h || p || e === P || S || W || ae || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === E || e.$$typeof === a || e.$$typeof === c || e.$$typeof === f || // This needs to include all possible module reference object
78
78
  // types supported by any Flight configuration anywhere since
79
79
  // we don't know which Flight build this will end up being used
80
80
  // with.
81
- e.$$typeof === x || e.getModuleId !== void 0));
81
+ e.$$typeof === y || e.getModuleId !== void 0));
82
82
  }
83
- function p(e, d, y) {
83
+ function m(e, u, v) {
84
84
  var B = e.displayName;
85
85
  if (B)
86
86
  return B;
87
- var he = d.displayName || d.name || "";
88
- return he !== "" ? y + "(" + he + ")" : y;
87
+ var he = u.displayName || u.name || "";
88
+ return he !== "" ? v + "(" + he + ")" : v;
89
89
  }
90
90
  function j(e) {
91
91
  return e.displayName || "Context";
92
92
  }
93
- function T(e) {
93
+ function R(e) {
94
94
  if (e == null)
95
95
  return null;
96
96
  if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
@@ -114,20 +114,20 @@ function Ht() {
114
114
  if (typeof e == "object")
115
115
  switch (e.$$typeof) {
116
116
  case c:
117
- var d = e;
118
- return j(d) + ".Consumer";
117
+ var u = e;
118
+ return j(u) + ".Consumer";
119
119
  case a:
120
- var y = e;
121
- return j(y._context) + ".Provider";
120
+ var v = e;
121
+ return j(v._context) + ".Provider";
122
122
  case f:
123
- return p(e, e.render, "ForwardRef");
123
+ return m(e, e.render, "ForwardRef");
124
124
  case E:
125
125
  var B = e.displayName || null;
126
- return B !== null ? B : T(e.type) || "Memo";
126
+ return B !== null ? B : R(e.type) || "Memo";
127
127
  case q: {
128
128
  var he = e, me = he._payload, oe = he._init;
129
129
  try {
130
- return T(oe(me));
130
+ return R(oe(me));
131
131
  } catch {
132
132
  return null;
133
133
  }
@@ -135,14 +135,14 @@ function Ht() {
135
135
  }
136
136
  return null;
137
137
  }
138
- var L = Object.assign, G = 0, R, H, ee, I, A, V, F;
138
+ var M = Object.assign, G = 0, F, H, te, I, z, V, $;
139
139
  function le() {
140
140
  }
141
141
  le.__reactDisabledLog = !0;
142
- function N() {
142
+ function A() {
143
143
  {
144
144
  if (G === 0) {
145
- R = console.log, H = console.info, ee = console.warn, I = console.error, A = console.group, V = console.groupCollapsed, F = console.groupEnd;
145
+ F = console.log, H = console.info, te = console.warn, I = console.error, z = console.group, V = console.groupCollapsed, $ = console.groupEnd;
146
146
  var e = {
147
147
  configurable: !0,
148
148
  enumerable: !0,
@@ -171,26 +171,26 @@ function Ht() {
171
171
  writable: !0
172
172
  };
173
173
  Object.defineProperties(console, {
174
- log: L({}, e, {
175
- value: R
174
+ log: M({}, e, {
175
+ value: F
176
176
  }),
177
- info: L({}, e, {
177
+ info: M({}, e, {
178
178
  value: H
179
179
  }),
180
- warn: L({}, e, {
181
- value: ee
180
+ warn: M({}, e, {
181
+ value: te
182
182
  }),
183
- error: L({}, e, {
183
+ error: M({}, e, {
184
184
  value: I
185
185
  }),
186
- group: L({}, e, {
187
- value: A
186
+ group: M({}, e, {
187
+ value: z
188
188
  }),
189
- groupCollapsed: L({}, e, {
189
+ groupCollapsed: M({}, e, {
190
190
  value: V
191
191
  }),
192
- groupEnd: L({}, e, {
193
- value: F
192
+ groupEnd: M({}, e, {
193
+ value: $
194
194
  })
195
195
  });
196
196
  }
@@ -198,7 +198,7 @@ function Ht() {
198
198
  }
199
199
  }
200
200
  var k = Y.ReactCurrentDispatcher, C;
201
- function X(e, d, y) {
201
+ function X(e, u, v) {
202
202
  {
203
203
  if (C === void 0)
204
204
  try {
@@ -211,27 +211,27 @@ function Ht() {
211
211
  ` + C + e;
212
212
  }
213
213
  }
214
- var $ = !1, te;
214
+ var D = !1, Q;
215
215
  {
216
216
  var fe = typeof WeakMap == "function" ? WeakMap : Map;
217
- te = new fe();
217
+ Q = new fe();
218
218
  }
219
- function ie(e, d) {
220
- if (!e || $)
219
+ function ie(e, u) {
220
+ if (!e || D)
221
221
  return "";
222
222
  {
223
- var y = te.get(e);
224
- if (y !== void 0)
225
- return y;
223
+ var v = Q.get(e);
224
+ if (v !== void 0)
225
+ return v;
226
226
  }
227
227
  var B;
228
- $ = !0;
228
+ D = !0;
229
229
  var he = Error.prepareStackTrace;
230
230
  Error.prepareStackTrace = void 0;
231
231
  var me;
232
- me = k.current, k.current = null, N();
232
+ me = k.current, k.current = null, A();
233
233
  try {
234
- if (d) {
234
+ if (u) {
235
235
  var oe = function() {
236
236
  throw Error();
237
237
  };
@@ -266,35 +266,35 @@ function Ht() {
266
266
  if (je && B && typeof je.stack == "string") {
267
267
  for (var se = je.stack.split(`
268
268
  `), Se = B.stack.split(`
269
- `), be = se.length - 1, _e = Se.length - 1; be >= 1 && _e >= 0 && se[be] !== Se[_e]; )
269
+ `), xe = se.length - 1, _e = Se.length - 1; xe >= 1 && _e >= 0 && se[xe] !== Se[_e]; )
270
270
  _e--;
271
- for (; be >= 1 && _e >= 0; be--, _e--)
272
- if (se[be] !== Se[_e]) {
273
- if (be !== 1 || _e !== 1)
271
+ for (; xe >= 1 && _e >= 0; xe--, _e--)
272
+ if (se[xe] !== Se[_e]) {
273
+ if (xe !== 1 || _e !== 1)
274
274
  do
275
- if (be--, _e--, _e < 0 || se[be] !== Se[_e]) {
275
+ if (xe--, _e--, _e < 0 || se[xe] !== Se[_e]) {
276
276
  var Te = `
277
- ` + se[be].replace(" at new ", " at ");
278
- return e.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", e.displayName)), typeof e == "function" && te.set(e, Te), Te;
277
+ ` + se[xe].replace(" at new ", " at ");
278
+ return e.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", e.displayName)), typeof e == "function" && Q.set(e, Te), Te;
279
279
  }
280
- while (be >= 1 && _e >= 0);
280
+ while (xe >= 1 && _e >= 0);
281
281
  break;
282
282
  }
283
283
  }
284
284
  } finally {
285
- $ = !1, k.current = me, O(), Error.prepareStackTrace = he;
285
+ D = !1, k.current = me, O(), Error.prepareStackTrace = he;
286
286
  }
287
- var Pe = e ? e.displayName || e.name : "", Me = Pe ? X(Pe) : "";
288
- return typeof e == "function" && te.set(e, Me), Me;
287
+ var Ne = e ? e.displayName || e.name : "", We = Ne ? X(Ne) : "";
288
+ return typeof e == "function" && Q.set(e, We), We;
289
289
  }
290
- function K(e, d, y) {
290
+ function K(e, u, v) {
291
291
  return ie(e, !1);
292
292
  }
293
293
  function ne(e) {
294
- var d = e.prototype;
295
- return !!(d && d.isReactComponent);
294
+ var u = e.prototype;
295
+ return !!(u && u.isReactComponent);
296
296
  }
297
- function W(e, d, y) {
297
+ function L(e, u, v) {
298
298
  if (e == null)
299
299
  return "";
300
300
  if (typeof e == "function")
@@ -312,11 +312,11 @@ function Ht() {
312
312
  case f:
313
313
  return K(e.render);
314
314
  case E:
315
- return W(e.type, d, y);
315
+ return L(e.type, u, v);
316
316
  case q: {
317
317
  var B = e, he = B._payload, me = B._init;
318
318
  try {
319
- return W(me(he), d, y);
319
+ return L(me(he), u, v);
320
320
  } catch {
321
321
  }
322
322
  }
@@ -326,12 +326,12 @@ function Ht() {
326
326
  var ce = Object.prototype.hasOwnProperty, ye = {}, pe = Y.ReactDebugCurrentFrame;
327
327
  function ve(e) {
328
328
  if (e) {
329
- var d = e._owner, y = W(e.type, e._source, d ? d.type : null);
330
- pe.setExtraStackFrame(y);
329
+ var u = e._owner, v = L(e.type, e._source, u ? u.type : null);
330
+ pe.setExtraStackFrame(v);
331
331
  } else
332
332
  pe.setExtraStackFrame(null);
333
333
  }
334
- function Re(e, d, y, B, he) {
334
+ function Re(e, u, v, B, he) {
335
335
  {
336
336
  var me = Function.call.bind(ce);
337
337
  for (var oe in e)
@@ -339,28 +339,28 @@ function Ht() {
339
339
  var se = void 0;
340
340
  try {
341
341
  if (typeof e[oe] != "function") {
342
- var Se = Error((B || "React class") + ": " + y + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
342
+ var Se = Error((B || "React class") + ": " + v + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
343
343
  throw Se.name = "Invariant Violation", Se;
344
344
  }
345
- se = e[oe](d, oe, B, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
- } catch (be) {
347
- se = be;
345
+ se = e[oe](u, oe, B, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
346
+ } catch (xe) {
347
+ se = xe;
348
348
  }
349
- se && !(se instanceof Error) && (ve(he), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", y, oe, typeof se), ve(null)), se instanceof Error && !(se.message in ye) && (ye[se.message] = !0, ve(he), g("Failed %s type: %s", y, se.message), ve(null));
349
+ se && !(se instanceof Error) && (ve(he), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", B || "React class", v, oe, typeof se), ve(null)), se instanceof Error && !(se.message in ye) && (ye[se.message] = !0, ve(he), g("Failed %s type: %s", v, se.message), ve(null));
350
350
  }
351
351
  }
352
352
  }
353
- var u = Array.isArray;
354
- function D(e) {
355
- return u(e);
353
+ var d = Array.isArray;
354
+ function T(e) {
355
+ return d(e);
356
356
  }
357
357
  function U(e) {
358
358
  {
359
- var d = typeof Symbol == "function" && Symbol.toStringTag, y = d && e[Symbol.toStringTag] || e.constructor.name || "Object";
360
- return y;
359
+ var u = typeof Symbol == "function" && Symbol.toStringTag, v = u && e[Symbol.toStringTag] || e.constructor.name || "Object";
360
+ return v;
361
361
  }
362
362
  }
363
- function b(e) {
363
+ function x(e) {
364
364
  try {
365
365
  return J(e), !1;
366
366
  } catch {
@@ -371,7 +371,7 @@ function Ht() {
371
371
  return "" + e;
372
372
  }
373
373
  function ge(e) {
374
- if (b(e))
374
+ if (x(e))
375
375
  return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", U(e)), J(e);
376
376
  }
377
377
  var de = Y.ReactCurrentOwner, ke = {
@@ -379,56 +379,56 @@ function Ht() {
379
379
  ref: !0,
380
380
  __self: !0,
381
381
  __source: !0
382
- }, xe, Ce;
382
+ }, be, Ce;
383
383
  function Oe(e) {
384
384
  if (ce.call(e, "ref")) {
385
- var d = Object.getOwnPropertyDescriptor(e, "ref").get;
386
- if (d && d.isReactWarning)
385
+ var u = Object.getOwnPropertyDescriptor(e, "ref").get;
386
+ if (u && u.isReactWarning)
387
387
  return !1;
388
388
  }
389
389
  return e.ref !== void 0;
390
390
  }
391
391
  function Fe(e) {
392
392
  if (ce.call(e, "key")) {
393
- var d = Object.getOwnPropertyDescriptor(e, "key").get;
394
- if (d && d.isReactWarning)
393
+ var u = Object.getOwnPropertyDescriptor(e, "key").get;
394
+ if (u && u.isReactWarning)
395
395
  return !1;
396
396
  }
397
397
  return e.key !== void 0;
398
398
  }
399
- function Ie(e, d) {
399
+ function Le(e, u) {
400
400
  typeof e.ref == "string" && de.current;
401
401
  }
402
- function Ae(e, d) {
402
+ function ze(e, u) {
403
403
  {
404
- var y = function() {
405
- xe || (xe = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
404
+ var v = function() {
405
+ be || (be = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
406
406
  };
407
- y.isReactWarning = !0, Object.defineProperty(e, "key", {
408
- get: y,
407
+ v.isReactWarning = !0, Object.defineProperty(e, "key", {
408
+ get: v,
409
409
  configurable: !0
410
410
  });
411
411
  }
412
412
  }
413
- function Le(e, d) {
413
+ function Me(e, u) {
414
414
  {
415
- var y = function() {
416
- Ce || (Ce = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
415
+ var v = function() {
416
+ Ce || (Ce = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
417
417
  };
418
- y.isReactWarning = !0, Object.defineProperty(e, "ref", {
419
- get: y,
418
+ v.isReactWarning = !0, Object.defineProperty(e, "ref", {
419
+ get: v,
420
420
  configurable: !0
421
421
  });
422
422
  }
423
423
  }
424
- var He = function(e, d, y, B, he, me, oe) {
424
+ var He = function(e, u, v, B, he, me, oe) {
425
425
  var se = {
426
426
  // This tag allows us to uniquely identify this as a React Element
427
427
  $$typeof: i,
428
428
  // Built-in properties that belong on the element
429
429
  type: e,
430
- key: d,
431
- ref: y,
430
+ key: u,
431
+ ref: v,
432
432
  props: oe,
433
433
  // Record the component responsible for creating this element.
434
434
  _owner: me
@@ -450,29 +450,29 @@ function Ht() {
450
450
  value: he
451
451
  }), Object.freeze && (Object.freeze(se.props), Object.freeze(se)), se;
452
452
  };
453
- function Ue(e, d, y, B, he) {
453
+ function Ue(e, u, v, B, he) {
454
454
  {
455
455
  var me, oe = {}, se = null, Se = null;
456
- y !== void 0 && (ge(y), se = "" + y), Fe(d) && (ge(d.key), se = "" + d.key), Oe(d) && (Se = d.ref, Ie(d, he));
457
- for (me in d)
458
- ce.call(d, me) && !ke.hasOwnProperty(me) && (oe[me] = d[me]);
456
+ v !== void 0 && (ge(v), se = "" + v), Fe(u) && (ge(u.key), se = "" + u.key), Oe(u) && (Se = u.ref, Le(u, he));
457
+ for (me in u)
458
+ ce.call(u, me) && !ke.hasOwnProperty(me) && (oe[me] = u[me]);
459
459
  if (e && e.defaultProps) {
460
- var be = e.defaultProps;
461
- for (me in be)
462
- oe[me] === void 0 && (oe[me] = be[me]);
460
+ var xe = e.defaultProps;
461
+ for (me in xe)
462
+ oe[me] === void 0 && (oe[me] = xe[me]);
463
463
  }
464
464
  if (se || Se) {
465
465
  var _e = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
466
- se && Ae(oe, _e), Se && Le(oe, _e);
466
+ se && ze(oe, _e), Se && Me(oe, _e);
467
467
  }
468
468
  return He(e, se, Se, he, B, de.current, oe);
469
469
  }
470
470
  }
471
- var We = Y.ReactCurrentOwner, $e = Y.ReactDebugCurrentFrame;
471
+ var Pe = Y.ReactCurrentOwner, $e = Y.ReactDebugCurrentFrame;
472
472
  function De(e) {
473
473
  if (e) {
474
- var d = e._owner, y = W(e.type, e._source, d ? d.type : null);
475
- $e.setExtraStackFrame(y);
474
+ var u = e._owner, v = L(e.type, e._source, u ? u.type : null);
475
+ $e.setExtraStackFrame(v);
476
476
  } else
477
477
  $e.setExtraStackFrame(null);
478
478
  }
@@ -481,10 +481,10 @@ function Ht() {
481
481
  function Ze(e) {
482
482
  return typeof e == "object" && e !== null && e.$$typeof === i;
483
483
  }
484
- function Qe() {
484
+ function et() {
485
485
  {
486
- if (We.current) {
487
- var e = T(We.current.type);
486
+ if (Pe.current) {
487
+ var e = R(Pe.current.type);
488
488
  if (e)
489
489
  return `
490
490
 
@@ -496,40 +496,40 @@ Check the render method of \`` + e + "`.";
496
496
  function _t(e) {
497
497
  return "";
498
498
  }
499
- var et = {};
499
+ var tt = {};
500
500
  function wt(e) {
501
501
  {
502
- var d = Qe();
503
- if (!d) {
504
- var y = typeof e == "string" ? e : e.displayName || e.name;
505
- y && (d = `
502
+ var u = et();
503
+ if (!u) {
504
+ var v = typeof e == "string" ? e : e.displayName || e.name;
505
+ v && (u = `
506
506
 
507
- Check the top-level render call using <` + y + ">.");
507
+ Check the top-level render call using <` + v + ">.");
508
508
  }
509
- return d;
509
+ return u;
510
510
  }
511
511
  }
512
- function tt(e, d) {
512
+ function rt(e, u) {
513
513
  {
514
514
  if (!e._store || e._store.validated || e.key != null)
515
515
  return;
516
516
  e._store.validated = !0;
517
- var y = wt(d);
518
- if (et[y])
517
+ var v = wt(u);
518
+ if (tt[v])
519
519
  return;
520
- et[y] = !0;
520
+ tt[v] = !0;
521
521
  var B = "";
522
- e && e._owner && e._owner !== We.current && (B = " It was passed a child from " + T(e._owner.type) + "."), De(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, B), De(null);
522
+ e && e._owner && e._owner !== Pe.current && (B = " It was passed a child from " + R(e._owner.type) + "."), De(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, B), De(null);
523
523
  }
524
524
  }
525
- function rt(e, d) {
525
+ function nt(e, u) {
526
526
  {
527
527
  if (typeof e != "object")
528
528
  return;
529
- if (D(e))
530
- for (var y = 0; y < e.length; y++) {
531
- var B = e[y];
532
- Ze(B) && tt(B, d);
529
+ if (T(e))
530
+ for (var v = 0; v < e.length; v++) {
531
+ var B = e[v];
532
+ Ze(B) && rt(B, u);
533
533
  }
534
534
  else if (Ze(e))
535
535
  e._store && (e._store.validated = !0);
@@ -537,39 +537,39 @@ Check the top-level render call using <` + y + ">.");
537
537
  var he = re(e);
538
538
  if (typeof he == "function" && he !== e.entries)
539
539
  for (var me = he.call(e), oe; !(oe = me.next()).done; )
540
- Ze(oe.value) && tt(oe.value, d);
540
+ Ze(oe.value) && rt(oe.value, u);
541
541
  }
542
542
  }
543
543
  }
544
544
  function Ct(e) {
545
545
  {
546
- var d = e.type;
547
- if (d == null || typeof d == "string")
546
+ var u = e.type;
547
+ if (u == null || typeof u == "string")
548
548
  return;
549
- var y;
550
- if (typeof d == "function")
551
- y = d.propTypes;
552
- else if (typeof d == "object" && (d.$$typeof === f || // Note: Memo only checks outer props here.
549
+ var v;
550
+ if (typeof u == "function")
551
+ v = u.propTypes;
552
+ else if (typeof u == "object" && (u.$$typeof === f || // Note: Memo only checks outer props here.
553
553
  // Inner props are checked in the reconciler.
554
- d.$$typeof === E))
555
- y = d.propTypes;
554
+ u.$$typeof === E))
555
+ v = u.propTypes;
556
556
  else
557
557
  return;
558
- if (y) {
559
- var B = T(d);
560
- Re(y, e.props, "prop", B, e);
561
- } else if (d.PropTypes !== void 0 && !Be) {
558
+ if (v) {
559
+ var B = R(u);
560
+ Re(v, e.props, "prop", B, e);
561
+ } else if (u.PropTypes !== void 0 && !Be) {
562
562
  Be = !0;
563
- var he = T(d);
563
+ var he = R(u);
564
564
  g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", he || "Unknown");
565
565
  }
566
- typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
566
+ typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
567
567
  }
568
568
  }
569
569
  function Et(e) {
570
570
  {
571
- for (var d = Object.keys(e.props), y = 0; y < d.length; y++) {
572
- var B = d[y];
571
+ for (var u = Object.keys(e.props), v = 0; v < u.length; v++) {
572
+ var B = u[v];
573
573
  if (B !== "children" && B !== "key") {
574
574
  De(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", B), De(null);
575
575
  break;
@@ -578,63 +578,63 @@ Check the top-level render call using <` + y + ">.");
578
578
  e.ref !== null && (De(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
579
579
  }
580
580
  }
581
- var nt = {};
582
- function st(e, d, y, B, he, me) {
581
+ var st = {};
582
+ function it(e, u, v, B, he, me) {
583
583
  {
584
- var oe = v(e);
584
+ var oe = b(e);
585
585
  if (!oe) {
586
586
  var se = "";
587
587
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
588
588
  var Se = _t();
589
- Se ? se += Se : se += Qe();
590
- var be;
591
- e === null ? be = "null" : D(e) ? be = "array" : e !== void 0 && e.$$typeof === i ? (be = "<" + (T(e.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : be = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", be, se);
589
+ Se ? se += Se : se += et();
590
+ var xe;
591
+ e === null ? xe = "null" : T(e) ? xe = "array" : e !== void 0 && e.$$typeof === i ? (xe = "<" + (R(e.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : xe = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", xe, se);
592
592
  }
593
- var _e = Ue(e, d, y, he, me);
593
+ var _e = Ue(e, u, v, he, me);
594
594
  if (_e == null)
595
595
  return _e;
596
596
  if (oe) {
597
- var Te = d.children;
597
+ var Te = u.children;
598
598
  if (Te !== void 0)
599
599
  if (B)
600
- if (D(Te)) {
601
- for (var Pe = 0; Pe < Te.length; Pe++)
602
- rt(Te[Pe], e);
600
+ if (T(Te)) {
601
+ for (var Ne = 0; Ne < Te.length; Ne++)
602
+ nt(Te[Ne], e);
603
603
  Object.freeze && Object.freeze(Te);
604
604
  } else
605
605
  g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
606
606
  else
607
- rt(Te, e);
607
+ nt(Te, e);
608
608
  }
609
- if (ce.call(d, "key")) {
610
- var Me = T(e), je = Object.keys(d).filter(function(Rt) {
609
+ if (ce.call(u, "key")) {
610
+ var We = R(e), je = Object.keys(u).filter(function(Rt) {
611
611
  return Rt !== "key";
612
612
  }), Ge = je.length > 0 ? "{key: someKey, " + je.join(": ..., ") + ": ...}" : "{key: someKey}";
613
- if (!nt[Me + Ge]) {
613
+ if (!st[We + Ge]) {
614
614
  var Tt = je.length > 0 ? "{" + je.join(": ..., ") + ": ...}" : "{}";
615
615
  g(`A props object containing a "key" prop is being spread into JSX:
616
616
  let props = %s;
617
617
  <%s {...props} />
618
618
  React keys must be passed directly to JSX without using spread:
619
619
  let props = %s;
620
- <%s key={someKey} {...props} />`, Ge, Me, Tt, Me), nt[Me + Ge] = !0;
620
+ <%s key={someKey} {...props} />`, Ge, We, Tt, We), st[We + Ge] = !0;
621
621
  }
622
622
  }
623
623
  return e === n ? Et(_e) : Ct(_e), _e;
624
624
  }
625
625
  }
626
- function St(e, d, y) {
627
- return st(e, d, y, !0);
626
+ function St(e, u, v) {
627
+ return it(e, u, v, !0);
628
628
  }
629
- function kt(e, d, y) {
630
- return st(e, d, y, !1);
629
+ function kt(e, u, v) {
630
+ return it(e, u, v, !1);
631
631
  }
632
632
  var jt = kt, Ot = St;
633
633
  Ke.Fragment = n, Ke.jsx = jt, Ke.jsxs = Ot;
634
634
  }()), Ke;
635
635
  }
636
- process.env.NODE_ENV === "production" ? Xe.exports = qt() : Xe.exports = Ht();
637
- var l = Xe.exports;
636
+ process.env.NODE_ENV === "production" ? Qe.exports = qt() : Qe.exports = Ht();
637
+ var l = Qe.exports;
638
638
  const Ut = ({
639
639
  column: t,
640
640
  currWidth: i,
@@ -645,80 +645,80 @@ const Ut = ({
645
645
  onResizeFrame: a,
646
646
  onResizeEnd: c
647
647
  }) => {
648
- const [f, w] = we(!1), [h, E] = we(null), [q, z] = we(0), [P, Z] = we(0), [re, Y] = we(null), g = Ee(null);
648
+ const [f, w] = we(!1), [h, E] = we(null), [q, P] = we(0), [N, Z] = we(0), [re, Y] = we(null), g = Ee(null);
649
649
  Ee(0);
650
- const Q = Ee(!1), S = Ee(null), M = Ee(0), ae = Ee(0), m = Ee(null), _ = Ee(null), x = Ee(!1), v = Ee(null), p = ue((L) => {
651
- !f || !h || !t || (v.current = L, !x.current && (x.current = !0, _.current = requestAnimationFrame((G) => {
650
+ const ee = Ee(!1), S = Ee(null), W = Ee(0), ae = Ee(0), p = Ee(null), _ = Ee(null), y = Ee(!1), b = Ee(null), m = ue((M) => {
651
+ !f || !h || !t || (b.current = M, !y.current && (y.current = !0, _.current = requestAnimationFrame((G) => {
652
652
  var k;
653
- x.current = !1, a == null || a(G);
654
- const R = v.current;
655
- if (!R) return;
656
- const H = R.clientX - q, ee = t.minWidth || 50;
657
- let I = P + H;
658
- I < ee && (I = ee), t.maxWidth && I > t.maxWidth && (I = t.maxWidth), M.current = I;
659
- const A = I - P;
660
- m.current && (m.current.style.transform = `translateX(${A}px)`);
653
+ y.current = !1, a == null || a(G);
654
+ const F = b.current;
655
+ if (!F) return;
656
+ const H = F.clientX - q, te = t.minWidth || 50;
657
+ let I = N + H;
658
+ I < te && (I = te), t.maxWidth && I > t.maxWidth && (I = t.maxWidth), W.current = I;
659
+ const z = I - N;
660
+ p.current && (p.current.style.transform = `translateX(${z}px)`);
661
661
  const V = (C) => {
662
662
  var X;
663
663
  return typeof window < "u" && ((X = window.CSS) != null && X.escape) ? window.CSS.escape(C) : C.replace(/([#.;?\[\]\s])/g, "\\$1");
664
- }, F = V(t.key), le = (k = S.current) == null ? void 0 : k.closest("table");
664
+ }, $ = V(t.key), le = (k = S.current) == null ? void 0 : k.closest("table");
665
665
  if (!le) return;
666
- const N = le.querySelector(`th[data-column-key="${F}"]`);
667
- if (N && (N.style.width = `${I}px`, N.style.minWidth = `${I}px`), le.querySelectorAll(`td[data-column-key="${F}"]`).forEach((C) => {
666
+ const A = le.querySelector(`th[data-column-key="${$}"]`);
667
+ if (A && (A.style.width = `${I}px`, A.style.minWidth = `${I}px`), le.querySelectorAll(`td[data-column-key="${$}"]`).forEach((C) => {
668
668
  const X = C;
669
669
  X.style.width = `${I}px`, X.style.minWidth = `${I}px`;
670
670
  }), t.fixed) {
671
- const C = (ie) => window.getComputedStyle(ie).position === "sticky", $ = Array.from(
671
+ const C = (ie) => window.getComputedStyle(ie).position === "sticky", D = Array.from(
672
672
  le.querySelectorAll("th.radar-table__header-cell.leaf-header")
673
- ).filter((ie) => C(ie)), te = N, fe = te ? $.indexOf(te) : -1;
673
+ ).filter((ie) => C(ie)), Q = A, fe = Q ? D.indexOf(Q) : -1;
674
674
  if (fe !== -1) {
675
- let ie = parseFloat($[fe].style.left || "0") || 0, K = $[fe].getBoundingClientRect().width;
676
- for (let ne = fe + 1; ne < $.length; ne++) {
677
- ie += Math.floor(K), $[ne].style.left = `${ie}px`;
678
- const W = $[ne].getAttribute("data-column-key");
679
- if (W) {
680
- const ce = V(W);
675
+ let ie = parseFloat(D[fe].style.left || "0") || 0, K = D[fe].getBoundingClientRect().width;
676
+ for (let ne = fe + 1; ne < D.length; ne++) {
677
+ ie += Math.floor(K), D[ne].style.left = `${ie}px`;
678
+ const L = D[ne].getAttribute("data-column-key");
679
+ if (L) {
680
+ const ce = V(L);
681
681
  le.querySelectorAll(`td[data-column-key="${ce}"]`).forEach((pe) => {
682
682
  const ve = pe;
683
683
  window.getComputedStyle(ve).position === "sticky" && (ve.style.left = `${ie}px`);
684
684
  });
685
685
  }
686
- K = $[ne].getBoundingClientRect().width;
686
+ K = D[ne].getBoundingClientRect().width;
687
687
  }
688
688
  }
689
689
  }
690
690
  })));
691
- }, [f, q, P, h, s, t, a]), j = ue(() => {
692
- var N;
691
+ }, [f, q, N, h, s, t, a]), j = ue(() => {
692
+ var A;
693
693
  if (S.current.style.opacity = "", !f || !h) return;
694
- const L = t.minWidth || 50;
695
- let G = M.current || P;
696
- G < L && (G = L), t != null && t.maxWidth && G > t.maxWidth && (G = t.maxWidth);
697
- const R = G, H = h;
698
- _.current && (cancelAnimationFrame(_.current), _.current = null), x.current = !1, v.current = null, g.current && (clearInterval(g.current), g.current = null), Q.current = !1, m.current && (m.current.style.transform = "translateX(0px)"), w(!1), z(0), Z(0), E(null), Y(null), M.current = 0, ae.current = 0, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", j);
699
- const ee = (O) => {
694
+ const M = t.minWidth || 50;
695
+ let G = W.current || N;
696
+ G < M && (G = M), t != null && t.maxWidth && G > t.maxWidth && (G = t.maxWidth);
697
+ const F = G, H = h;
698
+ _.current && (cancelAnimationFrame(_.current), _.current = null), y.current = !1, b.current = null, g.current && (clearInterval(g.current), g.current = null), ee.current = !1, p.current && (p.current.style.transform = "translateX(0px)"), w(!1), P(0), Z(0), E(null), Y(null), W.current = 0, ae.current = 0, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", j);
699
+ const te = (O) => {
700
700
  var k;
701
701
  return typeof window < "u" && ((k = window.CSS) != null && k.escape) ? window.CSS.escape(O) : O.replace(/([#.;?\[\]\s])/g, "\\$1");
702
- }, I = ee(H), A = (N = S.current) == null ? void 0 : N.closest("table");
703
- if (!A) return;
704
- const V = A.querySelector(`th[data-column-key="${I}"]`);
705
- if (V && (V.style.width = `${R}px`, V.style.minWidth = `${R}px`), A.querySelectorAll(`td[data-column-key="${I}"]`).forEach((O) => {
702
+ }, I = te(H), z = (A = S.current) == null ? void 0 : A.closest("table");
703
+ if (!z) return;
704
+ const V = z.querySelector(`th[data-column-key="${I}"]`);
705
+ if (V && (V.style.width = `${F}px`, V.style.minWidth = `${F}px`), z.querySelectorAll(`td[data-column-key="${I}"]`).forEach((O) => {
706
706
  const k = O;
707
- k.style.width = `${R}px`, k.style.minWidth = `${R}px`;
707
+ k.style.width = `${F}px`, k.style.minWidth = `${F}px`;
708
708
  }), t.fixed) {
709
- const O = (te) => window.getComputedStyle(te).position === "sticky", C = Array.from(
710
- A.querySelectorAll("th.radar-table__header-cell.leaf-header")
711
- ).filter((te) => O(te)), X = V, $ = X ? C.indexOf(X) : -1;
712
- if ($ !== -1) {
713
- let te = parseFloat(C[$].style.left || "0") || 0, fe = C[$].getBoundingClientRect().width;
714
- for (let ie = $ + 1; ie < C.length; ie++) {
715
- te += Math.floor(fe), C[ie].style.left = `${te}px`;
709
+ const O = (Q) => window.getComputedStyle(Q).position === "sticky", C = Array.from(
710
+ z.querySelectorAll("th.radar-table__header-cell.leaf-header")
711
+ ).filter((Q) => O(Q)), X = V, D = X ? C.indexOf(X) : -1;
712
+ if (D !== -1) {
713
+ let Q = parseFloat(C[D].style.left || "0") || 0, fe = C[D].getBoundingClientRect().width;
714
+ for (let ie = D + 1; ie < C.length; ie++) {
715
+ Q += Math.floor(fe), C[ie].style.left = `${Q}px`;
716
716
  const K = C[ie].getAttribute("data-column-key");
717
717
  if (K) {
718
- const ne = ee(K);
719
- A.querySelectorAll(`td[data-column-key="${ne}"]`).forEach((ce) => {
718
+ const ne = te(K);
719
+ z.querySelectorAll(`td[data-column-key="${ne}"]`).forEach((ce) => {
720
720
  const ye = ce;
721
- window.getComputedStyle(ye).position === "sticky" && (ye.style.left = `${te}px`);
721
+ window.getComputedStyle(ye).position === "sticky" && (ye.style.left = `${Q}px`);
722
722
  });
723
723
  }
724
724
  fe = C[ie].getBoundingClientRect().width;
@@ -727,42 +727,42 @@ const Ut = ({
727
727
  }
728
728
  const le = setTimeout(() => {
729
729
  var C;
730
- const O = (C = S == null ? void 0 : S.current) == null ? void 0 : C.closest("th"), k = (O == null ? void 0 : O.getBoundingClientRect().width) ?? R;
730
+ const O = (C = S == null ? void 0 : S.current) == null ? void 0 : C.closest("th"), k = (O == null ? void 0 : O.getBoundingClientRect().width) ?? F;
731
731
  Ft(() => {
732
732
  n == null || n(H, k);
733
733
  }), c == null || c();
734
734
  }, 0);
735
735
  return () => clearTimeout(le);
736
- }, [f, h, t, P, n, p, c]), T = ue((L, G, R) => {
737
- if (L.preventDefault(), o == null || o(), !S.current) return;
738
- const H = S.current.closest("th"), ee = (H == null ? void 0 : H.getBoundingClientRect().width) ?? R;
739
- w(!0), z(L.clientX), Z(ee), E(G), S.current.style.opacity = "1", S.current.classList.add("radar-table__resize-button_active");
740
- const I = S.current.getBoundingClientRect(), A = s == null ? void 0 : s.current, V = S.current.closest("table");
741
- if (A) {
742
- const F = A.getBoundingClientRect();
736
+ }, [f, h, t, N, n, m, c]), R = ue((M, G, F) => {
737
+ if (M.preventDefault(), o == null || o(), !S.current) return;
738
+ const H = S.current.closest("th"), te = (H == null ? void 0 : H.getBoundingClientRect().width) ?? F;
739
+ w(!0), P(M.clientX), Z(te), E(G), S.current.style.opacity = "1", S.current.classList.add("radar-table__resize-button_active");
740
+ const I = S.current.getBoundingClientRect(), z = s == null ? void 0 : s.current, V = S.current.closest("table");
741
+ if (z) {
742
+ const $ = z.getBoundingClientRect();
743
743
  Y({
744
- top: F.top + I.height * 2,
745
- height: F.height - I.height * 2
744
+ top: $.top + I.height * 2,
745
+ height: $.height - I.height * 2
746
746
  });
747
747
  } else if (V) {
748
- const F = V.getBoundingClientRect();
748
+ const $ = V.getBoundingClientRect();
749
749
  Y({
750
- top: F.top,
751
- height: F.height
750
+ top: $.top,
751
+ height: $.height
752
752
  });
753
753
  }
754
754
  }, [s, o]);
755
- return ze(() => {
756
- f && (document.addEventListener("mousemove", p), document.addEventListener("mouseup", j));
757
- }, [f, p, j]), ze(() => () => {
758
- _.current && (cancelAnimationFrame(_.current), _.current = null), x.current = !1, v.current = null, document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", j);
759
- }, [p, j]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
755
+ return Ie(() => {
756
+ f && (document.addEventListener("mousemove", m), document.addEventListener("mouseup", j));
757
+ }, [f, m, j]), Ie(() => () => {
758
+ _.current && (cancelAnimationFrame(_.current), _.current = null), y.current = !1, b.current = null, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", j);
759
+ }, [m, j]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
760
760
  /* @__PURE__ */ l.jsx(
761
761
  "button",
762
762
  {
763
763
  ref: S,
764
764
  className: "radar-table__resize-button",
765
- onMouseDown: (L) => T(L, t.key, i || r || 200),
765
+ onMouseDown: (M) => R(M, t.key, i || r || 200),
766
766
  title: "Изменить ширину колонки",
767
767
  children: /* @__PURE__ */ l.jsx("div", {})
768
768
  }
@@ -770,7 +770,7 @@ const Ut = ({
770
770
  f && re && /* @__PURE__ */ l.jsx(
771
771
  "div",
772
772
  {
773
- ref: m,
773
+ ref: p,
774
774
  className: "radar-table__resize-line",
775
775
  style: {
776
776
  left: `${ae.current}px`,
@@ -785,8 +785,8 @@ const Ut = ({
785
785
  }, Yt = ({ text: t, children: i }) => {
786
786
  const [r, n] = we(!1), [s, o] = we("left"), a = Ee(null), c = () => {
787
787
  if (a.current) {
788
- const f = a.current.getBoundingClientRect(), w = window.innerWidth, h = 250, E = 20, q = w - f.left, z = f.right;
789
- q < h + E && z > h + E ? o("right") : o("left");
788
+ const f = a.current.getBoundingClientRect(), w = window.innerWidth, h = 250, E = 20, q = w - f.left, P = f.right;
789
+ q < h + E && P > h + E ? o("right") : o("left");
790
790
  }
791
791
  n(!0);
792
792
  };
@@ -812,8 +812,8 @@ const Ut = ({
812
812
  ]
813
813
  }
814
814
  );
815
- }, xt = $t(null), Jt = () => {
816
- const t = Dt(xt);
815
+ }, bt = $t(null), Jt = () => {
816
+ const t = Dt(bt);
817
817
  return t || {
818
818
  activeColumn: null,
819
819
  isValidDropZone: () => !1
@@ -826,175 +826,175 @@ function Zt({
826
826
  scrollContainerRef: n
827
827
  }) {
828
828
  const [s, o] = we(null), [a, c] = we(40), [f, w] = we(200), [h, E] = we(null), q = It(
829
- it(Lt, {
829
+ ot(Lt, {
830
830
  activationConstraint: {
831
831
  distance: 5
832
832
  // Уменьшили дистанцию
833
833
  }
834
834
  }),
835
- it(Mt, {
835
+ ot(Mt, {
836
836
  coordinateGetter: Vt
837
837
  })
838
- ), z = ue((m) => {
839
- const _ = zt(m);
838
+ ), P = ue((p) => {
839
+ const _ = Wt(p);
840
840
  if (_.length > 0) {
841
- const p = _.filter(
841
+ const m = _.filter(
842
842
  (j) => j.id.toString().startsWith("drop-zone-")
843
843
  );
844
- if (p.length > 0)
845
- return p;
844
+ if (m.length > 0)
845
+ return m;
846
846
  }
847
- const v = Wt(m).filter(
848
- (p) => p.id.toString().startsWith("drop-zone-")
847
+ const b = Pt(p).filter(
848
+ (m) => m.id.toString().startsWith("drop-zone-")
849
849
  );
850
- return v.length > 0 ? [v[0]] : [];
851
- }, []), P = ue((m) => m.some((_) => _.children && _.children.length > 0), []), Z = ue((m, _) => {
852
- const x = (v, p, j = 0, T = null) => {
853
- for (const L of v) {
854
- if (L.key === p)
855
- return { column: L, parent: T, level: j };
856
- if (L.children && L.children.length > 0) {
857
- const G = x(L.children, p, j + 1, L);
850
+ return b.length > 0 ? [b[0]] : [];
851
+ }, []), N = ue((p) => p.some((_) => _.children && _.children.length > 0), []), Z = ue((p, _) => {
852
+ const y = (b, m, j = 0, R = null) => {
853
+ for (const M of b) {
854
+ if (M.key === m)
855
+ return { column: M, parent: R, level: j };
856
+ if (M.children && M.children.length > 0) {
857
+ const G = y(M.children, m, j + 1, M);
858
858
  if (G) return G;
859
859
  }
860
860
  }
861
861
  return null;
862
862
  };
863
- return x(m, _);
864
- }, []), re = ue((m, _) => {
865
- var v;
866
- const x = Z(_, m);
867
- return x && (x.column.fixed || ((v = x.parent) == null ? void 0 : v.fixed)) || !1;
868
- }, [Z]), Y = ue((m, _) => {
869
- if (m.columnKey === _.columnKey)
863
+ return y(p, _);
864
+ }, []), re = ue((p, _) => {
865
+ var b;
866
+ const y = Z(_, p);
867
+ return y && (y.column.fixed || ((b = y.parent) == null ? void 0 : b.fixed)) || !1;
868
+ }, [Z]), Y = ue((p, _) => {
869
+ if (p.columnKey === _.columnKey)
870
870
  return !1;
871
- const x = re(m.columnKey, i), v = re(_.columnKey, i);
872
- if (x !== v)
871
+ const y = re(p.columnKey, i), b = re(_.columnKey, i);
872
+ if (y !== b)
873
873
  return !1;
874
- if (P(i)) {
875
- const p = Z(i, m.columnKey), j = Z(i, _.columnKey);
876
- if (!p || !j)
874
+ if (N(i)) {
875
+ const m = Z(i, p.columnKey), j = Z(i, _.columnKey);
876
+ if (!m || !j)
877
877
  return !1;
878
- const T = m.isLeaf, L = _.isLeaf;
879
- if (!T && !L) {
880
- const G = p.level === j.level, R = p.parent === null && j.parent === null || p.parent !== null && j.parent !== null && p.parent.key === j.parent.key;
881
- return G && R;
878
+ const R = p.isLeaf, M = _.isLeaf;
879
+ if (!R && !M) {
880
+ const G = m.level === j.level, F = m.parent === null && j.parent === null || m.parent !== null && j.parent !== null && m.parent.key === j.parent.key;
881
+ return G && F;
882
882
  }
883
- if (T && L) {
884
- const G = p.level === j.level, R = p.parent === null && j.parent === null || p.parent !== null && j.parent !== null && p.parent.key === j.parent.key;
885
- return G && R;
883
+ if (R && M) {
884
+ const G = m.level === j.level, F = m.parent === null && j.parent === null || m.parent !== null && j.parent !== null && m.parent.key === j.parent.key;
885
+ return G && F;
886
886
  }
887
887
  return !1;
888
888
  }
889
889
  return !0;
890
- }, [i, P, Z, re]), g = ue((m, _, x) => {
891
- var F, le;
892
- if (!P(i)) {
893
- const N = x.findIndex(($) => $.key === m), O = x.findIndex(($) => $.key === _);
894
- if (N === -1 || O === -1)
895
- return x;
896
- const k = [...x], C = k[N];
897
- k.splice(N, 1);
898
- const X = (N < O, O);
890
+ }, [i, N, Z, re]), g = ue((p, _, y) => {
891
+ var $, le;
892
+ if (!N(i)) {
893
+ const A = y.findIndex((D) => D.key === p), O = y.findIndex((D) => D.key === _);
894
+ if (A === -1 || O === -1)
895
+ return y;
896
+ const k = [...y], C = k[A];
897
+ k.splice(A, 1);
898
+ const X = (A < O, O);
899
899
  return k.splice(X, 0, C), k;
900
900
  }
901
- const v = Z(i, m), p = Z(i, _);
902
- if (!v || !p)
903
- return x;
904
- const j = JSON.parse(JSON.stringify(i)), T = (N, O) => {
901
+ const b = Z(i, p), m = Z(i, _);
902
+ if (!b || !m)
903
+ return y;
904
+ const j = JSON.parse(JSON.stringify(i)), R = (A, O) => {
905
905
  if (O === null)
906
- return { container: N, parentObj: null };
906
+ return { container: A, parentObj: null };
907
907
  const k = (X) => {
908
- for (const $ of X) {
909
- if ($.key === O)
910
- return $;
911
- if ($.children) {
912
- const te = k($.children);
913
- if (te) return te;
908
+ for (const D of X) {
909
+ if (D.key === O)
910
+ return D;
911
+ if (D.children) {
912
+ const Q = k(D.children);
913
+ if (Q) return Q;
914
914
  }
915
915
  }
916
916
  return null;
917
- }, C = k(N);
917
+ }, C = k(A);
918
918
  return {
919
- container: (C == null ? void 0 : C.children) || N,
919
+ container: (C == null ? void 0 : C.children) || A,
920
920
  parentObj: C
921
921
  };
922
- }, L = ((F = v.parent) == null ? void 0 : F.key) || null, G = ((le = p.parent) == null ? void 0 : le.key) || null, { container: R } = T(j, L), { container: H } = T(j, G);
923
- if (R !== H)
924
- return x;
925
- const ee = R.findIndex((N) => N.key === m), I = R.findIndex((N) => N.key === _);
926
- if (ee === -1 || I === -1)
927
- return x;
928
- const [A] = R.splice(ee, 1), V = (ee < I, I);
929
- return R.splice(V, 0, A), j;
930
- }, [i, P, Z]), Q = ue((m) => {
931
- const _ = m.active.data.current;
922
+ }, M = (($ = b.parent) == null ? void 0 : $.key) || null, G = ((le = m.parent) == null ? void 0 : le.key) || null, { container: F } = R(j, M), { container: H } = R(j, G);
923
+ if (F !== H)
924
+ return y;
925
+ const te = F.findIndex((A) => A.key === p), I = F.findIndex((A) => A.key === _);
926
+ if (te === -1 || I === -1)
927
+ return y;
928
+ const [z] = F.splice(te, 1), V = (te < I, I);
929
+ return F.splice(V, 0, z), j;
930
+ }, [i, N, Z]), ee = ue((p) => {
931
+ const _ = p.active.data.current;
932
932
  o(_);
933
- const x = document.querySelector(`[data-column-key="${_.columnKey}"]`);
934
- if (x) {
935
- const v = x.getBoundingClientRect();
936
- w(v.width);
937
- const p = x.closest("table");
938
- x.closest('[style*="overflow"]');
939
- const j = p;
933
+ const y = document.querySelector(`[data-column-key="${_.columnKey}"]`);
934
+ if (y) {
935
+ const b = y.getBoundingClientRect();
936
+ w(b.width);
937
+ const m = y.closest("table");
938
+ y.closest('[style*="overflow"]');
939
+ const j = m;
940
940
  if (j) {
941
- const T = j.getBoundingClientRect();
942
- c(T.height);
941
+ const R = j.getBoundingClientRect();
942
+ c(R.height);
943
943
  } else
944
944
  c(400);
945
945
  } else
946
946
  c(400), w(200);
947
947
  document.body.style.cursor = "grabbing";
948
- }, []), S = ue((m) => {
949
- const { active: _, over: x } = m;
950
- if (!x || !_.data.current) {
948
+ }, []), S = ue((p) => {
949
+ const { active: _, over: y } = p;
950
+ if (!y || !_.data.current) {
951
951
  document.body.style.cursor = "grabbing", E(null);
952
952
  return;
953
953
  }
954
- const v = _.data.current, p = x.data.current;
955
- if (!p) {
954
+ const b = _.data.current, m = y.data.current;
955
+ if (!m) {
956
956
  document.body.style.cursor = "grabbing", E(null);
957
957
  return;
958
958
  }
959
- const j = Y(v, p);
959
+ const j = Y(b, m);
960
960
  document.body.style.cursor = j ? "copy" : "not-allowed";
961
- const T = document.querySelectorAll(`th[data-column-key="${p.columnKey}"]`), L = P(i), G = T.length > 0 ? L && p.isLeaf ? T[T.length - 1] : T[0] : null;
961
+ const R = document.querySelectorAll(`th[data-column-key="${m.columnKey}"]`), M = N(i), G = R.length > 0 ? M && m.isLeaf ? R[R.length - 1] : R[0] : null;
962
962
  if (G) {
963
- const R = G.getBoundingClientRect(), H = G.closest("table");
964
- let ee = R.left;
963
+ const F = G.getBoundingClientRect(), H = G.closest("table");
964
+ let te = F.left;
965
965
  const I = n == null ? void 0 : n.current;
966
- let A, V;
966
+ let z, V;
967
967
  if (I) {
968
- const F = I.getBoundingClientRect();
969
- A = F.top, V = F.height;
968
+ const $ = I.getBoundingClientRect();
969
+ z = $.top, V = $.height;
970
970
  } else if (H) {
971
- const F = H.getBoundingClientRect();
972
- A = F.top, V = F.height;
971
+ const $ = H.getBoundingClientRect();
972
+ z = $.top, V = $.height;
973
973
  } else
974
- A = R.top, V = R.height * 10;
974
+ z = F.top, V = F.height * 10;
975
975
  E({
976
- left: ee,
977
- top: A,
976
+ left: te,
977
+ top: z,
978
978
  height: V,
979
979
  color: j ? "#5329FF" : "#ff3b3b"
980
980
  });
981
981
  } else
982
982
  E(null);
983
- }, [Y]), M = ue((m) => {
984
- const { active: _, over: x } = m;
985
- if (document.body.style.cursor = "", o(null), c(40), w(200), E(null), !x || !_.data.current || !x.data.current)
983
+ }, [Y]), W = ue((p) => {
984
+ const { active: _, over: y } = p;
985
+ if (document.body.style.cursor = "", o(null), c(40), w(200), E(null), !y || !_.data.current || !y.data.current)
986
986
  return;
987
- const v = _.data.current, p = x.data.current;
988
- if (Y(v, p) && r) {
987
+ const b = _.data.current, m = y.data.current;
988
+ if (Y(b, m) && r) {
989
989
  const j = g(
990
- v.columnKey,
991
- p.columnKey,
990
+ b.columnKey,
991
+ m.columnKey,
992
992
  i
993
993
  );
994
994
  j._dragInfo = {
995
- draggedKey: v.columnKey,
996
- targetKey: p.columnKey,
997
- draggedIndex: v.index,
995
+ draggedKey: b.columnKey,
996
+ targetKey: m.columnKey,
997
+ draggedIndex: b.index,
998
998
  targetIndex: -1
999
999
  // будет вычислен в TableHeader если нужно
1000
1000
  }, r(j);
@@ -1003,17 +1003,17 @@ function Zt({
1003
1003
  activeColumn: s,
1004
1004
  isValidDropZone: Y
1005
1005
  };
1006
- return /* @__PURE__ */ l.jsx(xt.Provider, { value: ae, children: /* @__PURE__ */ l.jsxs(
1007
- Pt,
1006
+ return /* @__PURE__ */ l.jsx(bt.Provider, { value: ae, children: /* @__PURE__ */ l.jsxs(
1007
+ Nt,
1008
1008
  {
1009
1009
  sensors: q,
1010
- collisionDetection: z,
1011
- onDragStart: Q,
1010
+ collisionDetection: P,
1011
+ onDragStart: ee,
1012
1012
  onDragOver: S,
1013
- onDragEnd: M,
1013
+ onDragEnd: W,
1014
1014
  children: [
1015
1015
  t,
1016
- /* @__PURE__ */ l.jsx(Nt, { dropAnimation: null, children: s ? /* @__PURE__ */ l.jsx(
1016
+ /* @__PURE__ */ l.jsx(At, { dropAnimation: null, children: s ? /* @__PURE__ */ l.jsx(
1017
1017
  "div",
1018
1018
  {
1019
1019
  style: {
@@ -1069,24 +1069,24 @@ function Qt({
1069
1069
  sortIcon: h,
1070
1070
  resizeable: E,
1071
1071
  draggableColumns: q,
1072
- preset: z,
1073
- headerCellClassName: P,
1072
+ preset: P,
1073
+ headerCellClassName: N,
1074
1074
  headerCellStyle: Z,
1075
1075
  headerCellWrapperClassName: re,
1076
1076
  headerCellWrapperStyle: Y,
1077
1077
  stickyHeader: g,
1078
- scrollContainerRef: Q,
1078
+ scrollContainerRef: ee,
1079
1079
  resizeThrottle: S
1080
1080
  }) {
1081
1081
  var ie;
1082
1082
  if (t.hidden)
1083
1083
  return null;
1084
- const { activeColumn: M, isValidDropZone: ae } = Jt(), m = !t.children || t.children.length === 0;
1084
+ const { activeColumn: W, isValidDropZone: ae } = Jt(), p = !t.children || t.children.length === 0;
1085
1085
  Ye(() => (n == null ? void 0 : n.some((K) => K.children && K.children.length > 0)) || !1, [n]);
1086
- const _ = q, v = ue((K) => {
1086
+ const _ = q, b = ue((K) => {
1087
1087
  if (!n) return null;
1088
- const ne = (W, ce, ye = null) => {
1089
- for (const pe of W) {
1088
+ const ne = (L, ce, ye = null) => {
1089
+ for (const pe of L) {
1090
1090
  if (pe.key === ce)
1091
1091
  return ye;
1092
1092
  if (pe.children && pe.children.length > 0) {
@@ -1097,10 +1097,10 @@ function Qt({
1097
1097
  return null;
1098
1098
  };
1099
1099
  return ne(n, K);
1100
- }, [n])(t.key), p = t.fixed || (v == null ? void 0 : v.fixed) || !1, T = ue((K) => {
1100
+ }, [n])(t.key), m = t.fixed || (b == null ? void 0 : b.fixed) || !1, R = ue((K) => {
1101
1101
  if (!n) return 0;
1102
- const ne = (W, ce, ye = 0) => {
1103
- for (const pe of W) {
1102
+ const ne = (L, ce, ye = 0) => {
1103
+ for (const pe of L) {
1104
1104
  if (pe.key === ce)
1105
1105
  return ye;
1106
1106
  if (pe.children && pe.children.length > 0) {
@@ -1112,75 +1112,75 @@ function Qt({
1112
1112
  };
1113
1113
  return ne(n, K);
1114
1114
  }, [n])(t.key), {
1115
- attributes: L,
1115
+ attributes: M,
1116
1116
  listeners: G,
1117
- setNodeRef: R,
1117
+ setNodeRef: F,
1118
1118
  isDragging: H
1119
- } = At({
1119
+ } = zt({
1120
1120
  id: `column-${t.key}`,
1121
1121
  data: {
1122
1122
  type: "table-column",
1123
1123
  columnKey: t.key,
1124
- isFixed: p,
1125
- parentKey: v == null ? void 0 : v.key,
1126
- level: T,
1124
+ isFixed: m,
1125
+ parentKey: b == null ? void 0 : b.key,
1126
+ level: R,
1127
1127
  index: i,
1128
- isLeaf: m
1128
+ isLeaf: p
1129
1129
  // ✅ Добавляем информацию о типе колонки
1130
1130
  },
1131
1131
  disabled: !_
1132
1132
  }), {
1133
- setNodeRef: ee,
1133
+ setNodeRef: te,
1134
1134
  isOver: I
1135
1135
  } = Bt({
1136
1136
  id: `drop-zone-${t.key}`,
1137
1137
  data: {
1138
1138
  type: "column-drop-zone",
1139
1139
  columnKey: t.key,
1140
- isFixed: p,
1141
- accepts: [p ? "fixed" : "non-fixed"],
1142
- isLeaf: m
1140
+ isFixed: m,
1141
+ accepts: [m ? "fixed" : "non-fixed"],
1142
+ isLeaf: p
1143
1143
  // ✅ Добавляем информацию о типе колонки
1144
1144
  },
1145
1145
  disabled: !1
1146
- }), A = ue((K) => {
1147
- R(K), ee(K);
1148
- }, [R, ee]), V = Ye(() => {
1149
- if (!M || !I) return !1;
1146
+ }), z = ue((K) => {
1147
+ F(K), te(K);
1148
+ }, [F, te]), V = Ye(() => {
1149
+ if (!W || !I) return !1;
1150
1150
  const K = {
1151
1151
  type: "column-drop-zone",
1152
1152
  columnKey: t.key,
1153
- isFixed: p,
1154
- accepts: [p ? "fixed" : "non-fixed"],
1155
- isLeaf: m
1153
+ isFixed: m,
1154
+ accepts: [m ? "fixed" : "non-fixed"],
1155
+ isLeaf: p
1156
1156
  };
1157
- return ae(M, K);
1158
- }, [M, I, t.key, p, ae, m]), F = Ye(() => H ? "grabbing" : I && M ? V ? "copy" : "not-allowed" : "default", [H, I, M, V]), le = t.fixed && !t.width ? 200 : t.width, N = t.fixed && !t.minWidth ? 200 : t.minWidth, O = ue(() => {
1157
+ return ae(W, K);
1158
+ }, [W, I, t.key, m, ae, p]), $ = Ye(() => H ? "grabbing" : I && W ? V ? "copy" : "not-allowed" : "default", [H, I, W, V]), le = t.fixed && !t.width ? 200 : t.width, A = t.fixed && !t.minWidth ? 200 : t.minWidth, O = ue(() => {
1159
1159
  let K = t.fixedLeft || 0;
1160
- if (!p)
1160
+ if (!m)
1161
1161
  return K;
1162
1162
  for (let ne = 0; ne < i; ne++) {
1163
- const W = r[ne];
1164
- W.fixed && !W.hidden && (K += (W.width || W.minWidth || 200) + (W.fixedLeft || 0));
1163
+ const L = r[ne];
1164
+ L.fixed && !L.hidden && (K += (L.width || L.minWidth || 200) + (L.fixedLeft || 0));
1165
1165
  }
1166
1166
  return K;
1167
- }, [t.fixedLeft, r, i, p]), [k, C] = we(() => O());
1168
- vt(() => {
1169
- if (!p) {
1167
+ }, [t.fixedLeft, r, i, m]), [k, C] = we(() => O());
1168
+ Xe(() => {
1169
+ if (!m) {
1170
1170
  C(O());
1171
1171
  return;
1172
1172
  }
1173
1173
  let K = t.fixedLeft || 0;
1174
1174
  for (let ne = 0; ne < i; ne++) {
1175
- const W = r[ne];
1176
- if (W.fixed && !W.hidden) {
1177
- const ce = W.width || W.minWidth || 200, ye = Xt(W.key);
1178
- K += Math.floor(ye ?? ce) + (W.fixedLeft || 0) - 0.05;
1175
+ const L = r[ne];
1176
+ if (L.fixed && !L.hidden) {
1177
+ const ce = L.width || L.minWidth || 200, ye = Xt(L.key);
1178
+ K += Math.floor(ye ?? ce) + (L.fixedLeft || 0) - 0.05;
1179
1179
  }
1180
1180
  }
1181
1181
  C(K);
1182
- }, [t.fixedLeft, t.width, t.minWidth, r, i, p, O]);
1183
- const $ = ((K) => {
1182
+ }, [t.fixedLeft, t.width, t.minWidth, r, i, m, O]);
1183
+ const D = ((K) => {
1184
1184
  if (K.groupColor)
1185
1185
  return K.groupColor;
1186
1186
  if (n) {
@@ -1193,25 +1193,25 @@ function Qt({
1193
1193
  if (ve) return ve;
1194
1194
  }
1195
1195
  return null;
1196
- }, W = ne(n, K.key);
1197
- return W == null ? void 0 : W.groupColor;
1196
+ }, L = ne(n, K.key);
1197
+ return L == null ? void 0 : L.groupColor;
1198
1198
  }
1199
1199
  })(t);
1200
- let te = "currentColor", fe = "currentColor";
1201
- return s.sort_field === t.key && (s.sort_order === "ASC" && (te = "#5329FF"), s.sort_order === "DESC" && (fe = "#5329FF")), /* @__PURE__ */ l.jsx(
1200
+ let Q = "currentColor", fe = "currentColor";
1201
+ return s.sort_field === t.key && (s.sort_order === "ASC" && (Q = "#5329FF"), s.sort_order === "DESC" && (fe = "#5329FF")), /* @__PURE__ */ l.jsx(
1202
1202
  "th",
1203
1203
  {
1204
- ref: A,
1204
+ ref: z,
1205
1205
  "data-column-key": t.key,
1206
1206
  className: `
1207
1207
  radar-table__header-cell
1208
- ${z ? z + "__header-cell" : ""}
1209
- ${P || ""}
1208
+ ${P ? P + "__header-cell" : ""}
1209
+ ${N || ""}
1210
1210
  ${H ? "dragging" : ""}
1211
1211
  ${I ? "drag-over" : ""}
1212
1212
  ${V && I ? "valid-drop-zone" : ""}
1213
1213
  ${I && !V ? "invalid-drop-zone" : ""}
1214
- ${m ? "leaf-header" : "group-header"}
1214
+ ${p ? "leaf-header" : "group-header"}
1215
1215
  ${t.className || ""}`,
1216
1216
  colSpan: t.colSpan || 1,
1217
1217
  rowSpan: t.rowSpan || 1,
@@ -1223,8 +1223,8 @@ function Qt({
1223
1223
  left: k,
1224
1224
  borderRight: t.fixed && !((ie = r[i + 1]) != null && ie.fixed) ? "1px solid #E8E8E8" : "none",
1225
1225
  zIndex: t.fixed ? 2 : "auto",
1226
- backgroundColor: $,
1227
- cursor: F,
1226
+ backgroundColor: D,
1227
+ cursor: $,
1228
1228
  ...Z,
1229
1229
  ...t.style
1230
1230
  },
@@ -1233,7 +1233,7 @@ function Qt({
1233
1233
  {
1234
1234
  className: `
1235
1235
  radar-table__header-cell-wrapper
1236
- ${z ? z + "__header-cell-wrapper" : ""}
1236
+ ${P ? P + "__header-cell-wrapper" : ""}
1237
1237
  ${re || ""}
1238
1238
  `,
1239
1239
  style: Y,
@@ -1241,8 +1241,8 @@ function Qt({
1241
1241
  _ && /* @__PURE__ */ l.jsx(
1242
1242
  "div",
1243
1243
  {
1244
- className: `radar-table__drag-handle ${H ? "dragging" : ""} ${m ? "" : "group-drag-handle"}`,
1245
- ...L,
1244
+ className: `radar-table__drag-handle ${H ? "dragging" : ""} ${p ? "" : "group-drag-handle"}`,
1245
+ ...M,
1246
1246
  ...G,
1247
1247
  style: { cursor: H ? "grabbing" : "grab" },
1248
1248
  children: /* @__PURE__ */ l.jsxs("svg", { width: "8", height: "10", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
@@ -1261,11 +1261,11 @@ function Qt({
1261
1261
  title: t.title,
1262
1262
  onClick: () => {
1263
1263
  const { sort_field: K, sort_order: ne } = s;
1264
- let W = {
1264
+ let L = {
1265
1265
  columnKey: t.key,
1266
1266
  direction: "ASC"
1267
1267
  };
1268
- K === t.key ? ne === "ASC" ? W.direction = "DESC" : ne === "DESC" && (W.columnKey = void 0, W.direction = void 0) : (W.columnKey = t.key, W.direction = "ASC"), o(W.columnKey, W.direction);
1268
+ K === t.key ? ne === "ASC" ? L.direction = "DESC" : ne === "DESC" && (L.columnKey = void 0, L.direction = void 0) : (L.columnKey = t.key, L.direction = "ASC"), o(L.columnKey, L.direction);
1269
1269
  },
1270
1270
  style: {
1271
1271
  cursor: t.sortable ? "pointer" : "default",
@@ -1274,14 +1274,14 @@ function Qt({
1274
1274
  children: t.title
1275
1275
  }
1276
1276
  ) }),
1277
- t.sortable && !h && m && /* @__PURE__ */ l.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
1277
+ t.sortable && !h && p && /* @__PURE__ */ l.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
1278
1278
  /* @__PURE__ */ l.jsx(
1279
1279
  "button",
1280
1280
  {
1281
1281
  className: "radar-table__sort-button",
1282
1282
  onClick: (K) => o(t.key, "ASC"),
1283
1283
  title: `Сортировать по ${t.title}`,
1284
- children: /* @__PURE__ */ l.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ l.jsx("path", { fill: te, d: "M4.99264 0.21967C5.28553 -0.0732233 5.76041 -0.0732233 6.0533 0.21967L10.8263 4.99264C11.1192 5.28553 11.1192 5.76041 10.8263 6.0533C10.5334 6.34619 10.0585 6.34619 9.76561 6.0533L6.27297 2.56066L5.5 1.78769L4.77297 2.56066L1.28033 6.0533C0.987437 6.34619 0.512563 6.34619 0.21967 6.0533C-0.0732234 5.76041 -0.0732234 5.28553 0.21967 4.99264L4.99264 0.21967Z" }) })
1284
+ children: /* @__PURE__ */ l.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ l.jsx("path", { fill: Q, d: "M4.99264 0.21967C5.28553 -0.0732233 5.76041 -0.0732233 6.0533 0.21967L10.8263 4.99264C11.1192 5.28553 11.1192 5.76041 10.8263 6.0533C10.5334 6.34619 10.0585 6.34619 9.76561 6.0533L6.27297 2.56066L5.5 1.78769L4.77297 2.56066L1.28033 6.0533C0.987437 6.34619 0.512563 6.34619 0.21967 6.0533C-0.0732234 5.76041 -0.0732234 5.28553 0.21967 4.99264L4.99264 0.21967Z" }) })
1285
1285
  }
1286
1286
  ),
1287
1287
  /* @__PURE__ */ l.jsx(
@@ -1294,16 +1294,16 @@ function Qt({
1294
1294
  }
1295
1295
  )
1296
1296
  ] }),
1297
- t.sortable && h && m && h(s.sort_field, s.sort_order),
1297
+ t.sortable && h && p && h(s.sort_field, s.sort_order),
1298
1298
  t.tooltipText && /* @__PURE__ */ l.jsx(Yt, { text: t.tooltipText, children: t.tooltipIcon }),
1299
- E && m && /* @__PURE__ */ l.jsx(
1299
+ E && p && /* @__PURE__ */ l.jsx(
1300
1300
  Ut,
1301
1301
  {
1302
1302
  column: t,
1303
1303
  currWidth: le,
1304
- currMinWidth: N,
1304
+ currMinWidth: A,
1305
1305
  onResize: a,
1306
- scrollContainerRef: Q,
1306
+ scrollContainerRef: ee,
1307
1307
  onResizeStart: c,
1308
1308
  onResizeFrame: f,
1309
1309
  onResizeEnd: w
@@ -1315,7 +1315,7 @@ function Qt({
1315
1315
  }
1316
1316
  );
1317
1317
  }
1318
- function lt({
1318
+ function ct({
1319
1319
  config: t,
1320
1320
  fullConfig: i,
1321
1321
  onSort: r,
@@ -1329,82 +1329,82 @@ function lt({
1329
1329
  draggableColumns: h,
1330
1330
  preset: E,
1331
1331
  headerClassName: q,
1332
- headerStyle: z,
1333
- headerRowClassName: P,
1332
+ headerStyle: P,
1333
+ headerRowClassName: N,
1334
1334
  headerRowStyle: Z,
1335
1335
  headerCellClassName: re,
1336
1336
  headerCellStyle: Y,
1337
1337
  headerCellWrapperClassName: g,
1338
- headerCellWrapperStyle: Q,
1338
+ headerCellWrapperStyle: ee,
1339
1339
  stickyHeader: S,
1340
- scrollContainerRef: M,
1340
+ scrollContainerRef: W,
1341
1341
  sorting: ae,
1342
- defaultSorting: m,
1342
+ defaultSorting: p,
1343
1343
  resizeThrottle: _
1344
1344
  }) {
1345
- const [x, v] = we(() => m || { sort_field: void 0, sort_order: void 0 }), [p, j] = we(t), T = ae !== void 0, L = T ? ae : x;
1346
- ze(() => {
1347
- !T && m && v(m);
1348
- }, [m, T]);
1349
- const G = ue((R, H) => {
1350
- const { sort_field: ee, sort_order: I } = L;
1351
- let A = {
1352
- sort_field: R,
1345
+ const [y, b] = we(() => p || { sort_field: void 0, sort_order: void 0 }), [m, j] = we(t), R = ae !== void 0, M = R ? ae : y;
1346
+ Ie(() => {
1347
+ !R && p && b(p);
1348
+ }, [p, R]);
1349
+ const G = ue((F, H) => {
1350
+ const { sort_field: te, sort_order: I } = M;
1351
+ let z = {
1352
+ sort_field: F,
1353
1353
  sort_order: H
1354
1354
  };
1355
- ee === R && I === H && (A = {
1355
+ te === F && I === H && (z = {
1356
1356
  sort_field: void 0,
1357
1357
  sort_order: void 0
1358
- }), T || v(A), r == null || r(A.sort_field, A.sort_order);
1359
- }, [L, r, T]);
1360
- return ze(() => {
1361
- if (t.some((R) => R.children || !w)) {
1358
+ }), R || b(z), r == null || r(z.sort_field, z.sort_order);
1359
+ }, [M, r, R]);
1360
+ return Ie(() => {
1361
+ if (t.some((F) => F.children || !w)) {
1362
1362
  j(t);
1363
1363
  return;
1364
1364
  } else {
1365
- const R = () => {
1366
- const H = M == null ? void 0 : M.current;
1365
+ const F = () => {
1366
+ const H = W == null ? void 0 : W.current;
1367
1367
  if (!H) return;
1368
- const ee = H.clientWidth, I = t.reduce((V, F) => V + ((F == null ? void 0 : F.width) ?? 0), 0);
1369
- if (I > ee) {
1368
+ const te = H.clientWidth, I = t.reduce((V, $) => V + (($ == null ? void 0 : $.width) ?? 0), 0);
1369
+ if (I > te) {
1370
1370
  j(t);
1371
1371
  return;
1372
1372
  }
1373
- const A = t.map((V) => {
1374
- const F = ((V == null ? void 0 : V.width) ?? 0) / I, le = Math.floor(ee * F);
1373
+ const z = t.map((V) => {
1374
+ const $ = ((V == null ? void 0 : V.width) ?? 0) / I, le = Math.floor(te * $);
1375
1375
  return V.width = Math.round(le), V.maxWidth = le * 2, V;
1376
1376
  });
1377
- j([...A]), requestAnimationFrame(() => {
1377
+ j([...z]), requestAnimationFrame(() => {
1378
1378
  const V = (k) => {
1379
1379
  var C;
1380
1380
  return typeof window < "u" && ((C = window.CSS) != null && C.escape) ? window.CSS.escape(k) : k.replace(/([#.;?\[\]\s])/g, "\\$1");
1381
- }, F = H.querySelector("table");
1382
- if (!F) return;
1383
- A.forEach((k) => {
1381
+ }, $ = H.querySelector("table");
1382
+ if (!$) return;
1383
+ z.forEach((k) => {
1384
1384
  if (k.hidden) return;
1385
- const C = V(k.key), X = k.width || k.minWidth || 200, $ = F.querySelector(`th[data-column-key="${C}"]`);
1386
- $ && ($.style.width = `${X}px`, $.style.minWidth = `${X}px`), F.querySelectorAll(`td[data-column-key="${C}"]`).forEach((fe) => {
1385
+ const C = V(k.key), X = k.width || k.minWidth || 200, D = $.querySelector(`th[data-column-key="${C}"]`);
1386
+ D && (D.style.width = `${X}px`, D.style.minWidth = `${X}px`), $.querySelectorAll(`td[data-column-key="${C}"]`).forEach((fe) => {
1387
1387
  const ie = fe;
1388
1388
  ie.style.width = `${X}px`, ie.style.minWidth = `${X}px`;
1389
1389
  });
1390
1390
  });
1391
1391
  const le = (k) => window.getComputedStyle(k).position === "sticky", O = Array.from(
1392
- F.querySelectorAll("th.radar-table__header-cell.leaf-header")
1392
+ $.querySelectorAll("th.radar-table__header-cell.leaf-header")
1393
1393
  ).filter((k) => le(k));
1394
1394
  if (O.length > 0) {
1395
1395
  let k = 0;
1396
1396
  O.forEach((C, X) => {
1397
1397
  if (X === 0) {
1398
- const te = C.getAttribute("data-column-key"), fe = A.find((ie) => ie.key === te);
1398
+ const Q = C.getAttribute("data-column-key"), fe = z.find((ie) => ie.key === Q);
1399
1399
  k = (fe == null ? void 0 : fe.fixedLeft) || 0, C.style.left = `${k}px`;
1400
1400
  } else {
1401
- const te = O[X - 1].getBoundingClientRect().width;
1402
- k += Math.floor(te), C.style.left = `${k}px`;
1401
+ const Q = O[X - 1].getBoundingClientRect().width;
1402
+ k += Math.floor(Q), C.style.left = `${k}px`;
1403
1403
  }
1404
- const $ = C.getAttribute("data-column-key");
1405
- if ($) {
1406
- const te = V($);
1407
- F.querySelectorAll(`td[data-column-key="${te}"]`).forEach((ie) => {
1404
+ const D = C.getAttribute("data-column-key");
1405
+ if (D) {
1406
+ const Q = V(D);
1407
+ $.querySelectorAll(`td[data-column-key="${Q}"]`).forEach((ie) => {
1408
1408
  const K = ie;
1409
1409
  window.getComputedStyle(K).position === "sticky" && (K.style.left = `${C.style.left}`);
1410
1410
  });
@@ -1413,21 +1413,21 @@ function lt({
1413
1413
  }
1414
1414
  });
1415
1415
  };
1416
- return R(), window.addEventListener("resize", R), () => window.removeEventListener("resize", R);
1416
+ return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
1417
1417
  }
1418
- }, [t, M, w]), /* @__PURE__ */ l.jsx(
1418
+ }, [t, W, w]), /* @__PURE__ */ l.jsx(
1419
1419
  "tr",
1420
1420
  {
1421
- className: `radar-table__header-row ${E ? E + "__header-row" : ""} ${P || ""}`,
1421
+ className: `radar-table__header-row ${E ? E + "__header-row" : ""} ${N || ""}`,
1422
1422
  style: Z,
1423
- children: p == null ? void 0 : p.map((R, H) => /* @__PURE__ */ l.jsx(
1423
+ children: m == null ? void 0 : m.map((F, H) => /* @__PURE__ */ l.jsx(
1424
1424
  Qt,
1425
1425
  {
1426
- column: R,
1426
+ column: F,
1427
1427
  index: H,
1428
1428
  config: t,
1429
1429
  fullConfig: i,
1430
- sorting: L,
1430
+ sorting: M,
1431
1431
  onSort: G,
1432
1432
  onResize: n,
1433
1433
  onResizeStart: s,
@@ -1440,12 +1440,12 @@ function lt({
1440
1440
  headerCellClassName: re,
1441
1441
  headerCellStyle: Y,
1442
1442
  headerCellWrapperClassName: g,
1443
- headerCellWrapperStyle: Q,
1443
+ headerCellWrapperStyle: ee,
1444
1444
  stickyHeader: S,
1445
- scrollContainerRef: M,
1445
+ scrollContainerRef: W,
1446
1446
  resizeThrottle: _
1447
1447
  },
1448
- R.key
1448
+ F.key
1449
1449
  ))
1450
1450
  }
1451
1451
  );
@@ -1464,106 +1464,106 @@ function er(t) {
1464
1464
  headerCellWrapperClassName: h,
1465
1465
  headerCellWrapperStyle: E,
1466
1466
  onResize: q,
1467
- onColumnReorder: z,
1468
- sorting: P,
1467
+ onColumnReorder: P,
1468
+ sorting: N,
1469
1469
  defaultSorting: Z
1470
1470
  } = t, re = i.some((S) => S.children && S.children.length > 0), Y = Ye(() => {
1471
1471
  if (!re)
1472
1472
  return null;
1473
- const S = {}, M = (ae, m = 0) => {
1474
- S[m] || (S[m] = []), ae.forEach((_) => {
1475
- _.hidden || (S[m].push(_), _.children && _.children.length > 0 && M(_.children, m + 1));
1473
+ const S = {}, W = (ae, p = 0) => {
1474
+ S[p] || (S[p] = []), ae.forEach((_) => {
1475
+ _.hidden || (S[p].push(_), _.children && _.children.length > 0 && W(_.children, p + 1));
1476
1476
  });
1477
1477
  };
1478
- return M(i), S;
1479
- }, [i, re]), g = ue((S, M) => {
1478
+ return W(i), S;
1479
+ }, [i, re]), g = ue((S, W) => {
1480
1480
  if (!q) return;
1481
- const ae = (x, v) => {
1482
- for (const p of x) {
1483
- if (p.key === v) return p;
1484
- if (p.children) {
1485
- const j = ae(p.children, v);
1481
+ const ae = (y, b) => {
1482
+ for (const m of y) {
1483
+ if (m.key === b) return m;
1484
+ if (m.children) {
1485
+ const j = ae(m.children, b);
1486
1486
  if (j) return j;
1487
1487
  }
1488
1488
  }
1489
1489
  return null;
1490
- }, m = (x) => {
1491
- if (!x.children || x.children.length === 0)
1492
- return [x];
1493
- const v = [];
1494
- return x.children.forEach((p) => {
1495
- p.hidden || v.push(...m(p));
1496
- }), v;
1490
+ }, p = (y) => {
1491
+ if (!y.children || y.children.length === 0)
1492
+ return [y];
1493
+ const b = [];
1494
+ return y.children.forEach((m) => {
1495
+ m.hidden || b.push(...p(m));
1496
+ }), b;
1497
1497
  }, _ = ae(i, S);
1498
1498
  if (_)
1499
1499
  if (_.children && _.children.length > 0) {
1500
- const x = m(_);
1501
- if (x.length > 0) {
1502
- const v = x.reduce((j, T) => j + (T.width || T.minWidth || 200), 0), p = M / v;
1503
- x.forEach((j) => {
1504
- const T = Math.max(50, Math.round((j.width || j.minWidth || 200) * p));
1505
- q(j.key, T);
1500
+ const y = p(_);
1501
+ if (y.length > 0) {
1502
+ const b = y.reduce((j, R) => j + (R.width || R.minWidth || 200), 0), m = W / b;
1503
+ y.forEach((j) => {
1504
+ const R = Math.max(50, Math.round((j.width || j.minWidth || 200) * m));
1505
+ q(j.key, R);
1506
1506
  });
1507
1507
  }
1508
1508
  } else
1509
- q(S, M);
1510
- }, [i, q]), Q = ue((S) => {
1511
- if (!z) return;
1509
+ q(S, W);
1510
+ }, [i, q]), ee = ue((S) => {
1511
+ if (!P) return;
1512
1512
  if (!re) {
1513
- z(S);
1513
+ P(S);
1514
1514
  return;
1515
1515
  }
1516
- const M = (N, O, k = [], C = null) => {
1517
- for (let X = 0; X < N.length; X++) {
1518
- const $ = N[X], te = [...k, X];
1519
- if ($.key === O)
1516
+ const W = (A, O, k = [], C = null) => {
1517
+ for (let X = 0; X < A.length; X++) {
1518
+ const D = A[X], Q = [...k, X];
1519
+ if (D.key === O)
1520
1520
  return {
1521
- column: $,
1521
+ column: D,
1522
1522
  parent: C,
1523
- path: te,
1523
+ path: Q,
1524
1524
  level: k.length
1525
1525
  };
1526
- if ($.children && $.children.length > 0) {
1527
- const fe = M($.children, O, te, $);
1526
+ if (D.children && D.children.length > 0) {
1527
+ const fe = W(D.children, O, Q, D);
1528
1528
  if (fe)
1529
1529
  return fe;
1530
1530
  }
1531
1531
  }
1532
1532
  return null;
1533
1533
  };
1534
- if (!Object.values(Y).find((N) => {
1535
- if (N.length !== S.length) return !1;
1536
- const O = N.map((C) => C.key).sort(), k = S.map((C) => C.key).sort();
1534
+ if (!Object.values(Y).find((A) => {
1535
+ if (A.length !== S.length) return !1;
1536
+ const O = A.map((C) => C.key).sort(), k = S.map((C) => C.key).sort();
1537
1537
  return JSON.stringify(O) === JSON.stringify(k);
1538
1538
  }))
1539
1539
  return;
1540
- const m = S._dragInfo;
1541
- if (!(m != null && m.draggedKey) || !(m != null && m.targetKey))
1540
+ const p = S._dragInfo;
1541
+ if (!(p != null && p.draggedKey) || !(p != null && p.targetKey))
1542
1542
  return;
1543
- const { draggedKey: _, targetKey: x } = m, v = M(i, _), p = M(i, x);
1544
- if (!v || !p) return;
1545
- const { column: j, parent: T, path: L, level: G } = v, { column: R, parent: H, path: ee, level: I } = p, A = (N, O) => N.fixed || (O == null ? void 0 : O.fixed) || !1, V = A(j, T), F = A(R, H);
1546
- if (G !== I || T !== H || T && H && T.key !== H.key || V !== F)
1543
+ const { draggedKey: _, targetKey: y } = p, b = W(i, _), m = W(i, y);
1544
+ if (!b || !m) return;
1545
+ const { column: j, parent: R, path: M, level: G } = b, { column: F, parent: H, path: te, level: I } = m, z = (A, O) => A.fixed || (O == null ? void 0 : O.fixed) || !1, V = z(j, R), $ = z(F, H);
1546
+ if (G !== I || R !== H || R && H && R.key !== H.key || V !== $)
1547
1547
  return;
1548
1548
  const le = JSON.parse(JSON.stringify(i));
1549
1549
  if (G === 0) {
1550
- const N = L[0], O = ee[0], [k] = le.splice(N, 1);
1550
+ const A = M[0], O = te[0], [k] = le.splice(A, 1);
1551
1551
  le.splice(O, 0, k);
1552
1552
  } else {
1553
- const N = L.slice(0, -1);
1553
+ const A = M.slice(0, -1);
1554
1554
  let O = le;
1555
- for (let $ = 0; $ < N.length; $++)
1556
- $ === 0 ? O = O[N[$]] : O = O.children[N[$]];
1555
+ for (let D = 0; D < A.length; D++)
1556
+ D === 0 ? O = O[A[D]] : O = O.children[A[D]];
1557
1557
  if (!O || !O.children)
1558
1558
  return;
1559
- const k = L[L.length - 1], C = ee[ee.length - 1];
1559
+ const k = M[M.length - 1], C = te[te.length - 1];
1560
1560
  if (k < 0 || k >= O.children.length || C < 0 || C >= O.children.length)
1561
1561
  return;
1562
1562
  const [X] = O.children.splice(k, 1);
1563
1563
  O.children.splice(C, 0, X);
1564
1564
  }
1565
- z(le);
1566
- }, [i, z, Y]);
1565
+ P(le);
1566
+ }, [i, P, Y]);
1567
1567
  return re ? /* @__PURE__ */ l.jsx(
1568
1568
  "thead",
1569
1569
  {
@@ -1574,18 +1574,18 @@ function er(t) {
1574
1574
  ...s
1575
1575
  },
1576
1576
  children: Object.keys(Y).map((S) => {
1577
- const M = Y[parseInt(S)], ae = parseInt(S);
1577
+ const W = Y[parseInt(S)], ae = parseInt(S);
1578
1578
  return /* @__PURE__ */ l.jsx(
1579
- lt,
1579
+ ct,
1580
1580
  {
1581
- config: M,
1581
+ config: W,
1582
1582
  fullConfig: i,
1583
1583
  onSort: t.onSort,
1584
1584
  onResize: g,
1585
1585
  onResizeStart: t.onResizeStart,
1586
1586
  onResizeFrame: t.onResizeFrame,
1587
1587
  onResizeEnd: t.onResizeEnd,
1588
- onColumnReorder: Q,
1588
+ onColumnReorder: ee,
1589
1589
  resizeable: t.resizeable,
1590
1590
  draggableColumns: t.draggableColumns,
1591
1591
  preset: r,
@@ -1604,7 +1604,7 @@ function er(t) {
1604
1604
  stickyHeader: o,
1605
1605
  sortIcon: t.sortIcon,
1606
1606
  scrollContainerRef: t.scrollContainerRef,
1607
- sorting: P,
1607
+ sorting: N,
1608
1608
  defaultSorting: Z,
1609
1609
  resizeThrottle: t.resizeThrottle
1610
1610
  },
@@ -1621,7 +1621,7 @@ function er(t) {
1621
1621
  top: o && typeof o == "number" ? o : 0,
1622
1622
  ...s
1623
1623
  },
1624
- children: /* @__PURE__ */ l.jsx(lt, { ...t, fullConfig: i, onResize: g, onResizeStart: t.onResizeStart, onResizeFrame: t.onResizeFrame, onResizeEnd: t.onResizeEnd, onColumnReorder: Q, scrollContainerRef: t.scrollContainerRef, sorting: P, defaultSorting: Z, resizeThrottle: t.resizeThrottle })
1624
+ children: /* @__PURE__ */ l.jsx(ct, { ...t, fullConfig: i, onResize: g, onResizeStart: t.onResizeStart, onResizeFrame: t.onResizeFrame, onResizeEnd: t.onResizeEnd, onColumnReorder: ee, scrollContainerRef: t.scrollContainerRef, sorting: N, defaultSorting: Z, resizeThrottle: t.resizeThrottle })
1625
1625
  }
1626
1626
  );
1627
1627
  }
@@ -1637,25 +1637,25 @@ const tr = (t, i) => {
1637
1637
  }
1638
1638
  return r;
1639
1639
  };
1640
- function Ne(t, i, r) {
1640
+ function Ae(t, i, r) {
1641
1641
  let n = r.initialDeps ?? [], s;
1642
1642
  function o() {
1643
1643
  var a, c, f, w;
1644
1644
  let h;
1645
1645
  r.key && ((a = r.debug) != null && a.call(r)) && (h = Date.now());
1646
1646
  const E = t();
1647
- if (!(E.length !== n.length || E.some((P, Z) => n[Z] !== P)))
1647
+ if (!(E.length !== n.length || E.some((N, Z) => n[Z] !== N)))
1648
1648
  return s;
1649
1649
  n = E;
1650
- let z;
1651
- if (r.key && ((c = r.debug) != null && c.call(r)) && (z = Date.now()), s = i(...E), r.key && ((f = r.debug) != null && f.call(r))) {
1652
- const P = Math.round((Date.now() - h) * 100) / 100, Z = Math.round((Date.now() - z) * 100) / 100, re = Z / 16, Y = (g, Q) => {
1653
- for (g = String(g); g.length < Q; )
1650
+ let P;
1651
+ if (r.key && ((c = r.debug) != null && c.call(r)) && (P = Date.now()), s = i(...E), r.key && ((f = r.debug) != null && f.call(r))) {
1652
+ const N = Math.round((Date.now() - h) * 100) / 100, Z = Math.round((Date.now() - P) * 100) / 100, re = Z / 16, Y = (g, ee) => {
1653
+ for (g = String(g); g.length < ee; )
1654
1654
  g = " " + g;
1655
1655
  return g;
1656
1656
  };
1657
1657
  console.info(
1658
- `%c⏱ ${Y(Z, 5)} /${Y(P, 5)} ms`,
1658
+ `%c⏱ ${Y(Z, 5)} /${Y(N, 5)} ms`,
1659
1659
  `
1660
1660
  font-size: .6rem;
1661
1661
  font-weight: bold;
@@ -1672,7 +1672,7 @@ function Ne(t, i, r) {
1672
1672
  n = a;
1673
1673
  }, o;
1674
1674
  }
1675
- function ct(t, i) {
1675
+ function dt(t, i) {
1676
1676
  if (t === void 0)
1677
1677
  throw new Error("Unexpected undefined");
1678
1678
  return t;
@@ -1682,7 +1682,7 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
1682
1682
  return function(...s) {
1683
1683
  t.clearTimeout(n), n = t.setTimeout(() => i.apply(this, s), r);
1684
1684
  };
1685
- }, dt = (t) => {
1685
+ }, ut = (t) => {
1686
1686
  const { offsetWidth: i, offsetHeight: r } = t;
1687
1687
  return { width: i, height: r };
1688
1688
  }, sr = (t) => t, ir = (t) => {
@@ -1701,7 +1701,7 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
1701
1701
  const { width: c, height: f } = a;
1702
1702
  i({ width: Math.round(c), height: Math.round(f) });
1703
1703
  };
1704
- if (s(dt(r)), !n.ResizeObserver)
1704
+ if (s(ut(r)), !n.ResizeObserver)
1705
1705
  return () => {
1706
1706
  };
1707
1707
  const o = new n.ResizeObserver((a) => {
@@ -1714,16 +1714,16 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
1714
1714
  return;
1715
1715
  }
1716
1716
  }
1717
- s(dt(r));
1717
+ s(ut(r));
1718
1718
  };
1719
1719
  t.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(c) : c();
1720
1720
  });
1721
1721
  return o.observe(r, { box: "border-box" }), () => {
1722
1722
  o.unobserve(r);
1723
1723
  };
1724
- }, ut = {
1724
+ }, ft = {
1725
1725
  passive: !0
1726
- }, ft = typeof window > "u" ? !0 : "onscrollend" in window, ar = (t, i) => {
1726
+ }, ht = typeof window > "u" ? !0 : "onscrollend" in window, ar = (t, i) => {
1727
1727
  const r = t.scrollElement;
1728
1728
  if (!r)
1729
1729
  return;
@@ -1731,7 +1731,7 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
1731
1731
  if (!n)
1732
1732
  return;
1733
1733
  let s = 0;
1734
- const o = t.options.useScrollendEvent && ft ? () => {
1734
+ const o = t.options.useScrollendEvent && ht ? () => {
1735
1735
  } : nr(
1736
1736
  n,
1737
1737
  () => {
@@ -1742,9 +1742,9 @@ const rr = (t, i) => Math.abs(t - i) < 1.01, nr = (t, i, r) => {
1742
1742
  const { horizontal: E, isRtl: q } = t.options;
1743
1743
  s = E ? r.scrollLeft * (q && -1 || 1) : r.scrollTop, o(), i(s, h);
1744
1744
  }, c = a(!0), f = a(!1);
1745
- f(), r.addEventListener("scroll", c, ut);
1746
- const w = t.options.useScrollendEvent && ft;
1747
- return w && r.addEventListener("scrollend", f, ut), () => {
1745
+ f(), r.addEventListener("scroll", c, ft);
1746
+ const w = t.options.useScrollendEvent && ht;
1747
+ return w && r.addEventListener("scrollend", f, ft), () => {
1748
1748
  r.removeEventListener("scroll", c), w && r.removeEventListener("scrollend", f);
1749
1749
  };
1750
1750
  }, lr = (t, i, r) => {
@@ -1826,7 +1826,7 @@ class dr {
1826
1826
  }, this.notify = (r) => {
1827
1827
  var n, s;
1828
1828
  (s = (n = this.options).onChange) == null || s.call(n, this, r);
1829
- }, this.maybeNotify = Ne(
1829
+ }, this.maybeNotify = Ae(
1830
1830
  () => (this.calculateRange(), [
1831
1831
  this.isScrolling,
1832
1832
  this.range ? this.range.startIndex : null,
@@ -1884,7 +1884,7 @@ class dr {
1884
1884
  break;
1885
1885
  }
1886
1886
  return o.size === this.options.lanes ? Array.from(o.values()).sort((a, c) => a.end === c.end ? a.index - c.index : a.end - c.end)[0] : void 0;
1887
- }, this.getMeasurementOptions = Ne(
1887
+ }, this.getMeasurementOptions = Ae(
1888
1888
  () => [
1889
1889
  this.options.count,
1890
1890
  this.options.paddingStart,
@@ -1902,7 +1902,7 @@ class dr {
1902
1902
  {
1903
1903
  key: !1
1904
1904
  }
1905
- ), this.getMeasurements = Ne(
1905
+ ), this.getMeasurements = Ae(
1906
1906
  () => [this.getMeasurementOptions(), this.itemSizeCache],
1907
1907
  ({ count: r, paddingStart: n, scrollMargin: s, getItemKey: o, enabled: a }, c) => {
1908
1908
  if (!a)
@@ -1914,10 +1914,10 @@ class dr {
1914
1914
  this.pendingMeasuredCacheIndexes = [];
1915
1915
  const w = this.measurementsCache.slice(0, f);
1916
1916
  for (let h = f; h < r; h++) {
1917
- const E = o(h), q = this.options.lanes === 1 ? w[h - 1] : this.getFurthestMeasurement(w, h), z = q ? q.end + this.options.gap : n + s, P = c.get(E), Z = typeof P == "number" ? P : this.options.estimateSize(h), re = z + Z, Y = q ? q.lane : h % this.options.lanes;
1917
+ const E = o(h), q = this.options.lanes === 1 ? w[h - 1] : this.getFurthestMeasurement(w, h), P = q ? q.end + this.options.gap : n + s, N = c.get(E), Z = typeof N == "number" ? N : this.options.estimateSize(h), re = P + Z, Y = q ? q.lane : h % this.options.lanes;
1918
1918
  w[h] = {
1919
1919
  index: h,
1920
- start: z,
1920
+ start: P,
1921
1921
  size: Z,
1922
1922
  end: re,
1923
1923
  key: E,
@@ -1930,7 +1930,7 @@ class dr {
1930
1930
  key: process.env.NODE_ENV !== "production" && "getMeasurements",
1931
1931
  debug: () => this.options.debug
1932
1932
  }
1933
- ), this.calculateRange = Ne(
1933
+ ), this.calculateRange = Ae(
1934
1934
  () => [
1935
1935
  this.getMeasurements(),
1936
1936
  this.getSize(),
@@ -1947,7 +1947,7 @@ class dr {
1947
1947
  key: process.env.NODE_ENV !== "production" && "calculateRange",
1948
1948
  debug: () => this.options.debug
1949
1949
  }
1950
- ), this.getVirtualIndexes = Ne(
1950
+ ), this.getVirtualIndexes = Ae(
1951
1951
  () => {
1952
1952
  let r = null, n = null;
1953
1953
  const s = this.calculateRange();
@@ -1997,7 +1997,7 @@ class dr {
1997
1997
  return;
1998
1998
  }
1999
1999
  this._measureElement(r, void 0);
2000
- }, this.getVirtualItems = Ne(
2000
+ }, this.getVirtualItems = Ae(
2001
2001
  () => [this.getVirtualIndexes(), this.getMeasurements()],
2002
2002
  (r, n) => {
2003
2003
  const s = [];
@@ -2014,11 +2014,11 @@ class dr {
2014
2014
  ), this.getVirtualItemForOffset = (r) => {
2015
2015
  const n = this.getMeasurements();
2016
2016
  if (n.length !== 0)
2017
- return ct(
2018
- n[bt(
2017
+ return dt(
2018
+ n[xt(
2019
2019
  0,
2020
2020
  n.length - 1,
2021
- (s) => ct(n[s]).start,
2021
+ (s) => dt(n[s]).start,
2022
2022
  r
2023
2023
  )]
2024
2024
  );
@@ -2066,12 +2066,12 @@ class dr {
2066
2066
  }
2067
2067
  const [E, q] = h;
2068
2068
  this._scrollToOffset(E, { adjustments: void 0, behavior: s }), this.targetWindow.requestAnimationFrame(() => {
2069
- const z = this.getScrollOffset(), P = this.getOffsetForIndex(r, q);
2070
- if (!P) {
2069
+ const P = this.getScrollOffset(), N = this.getOffsetForIndex(r, q);
2070
+ if (!N) {
2071
2071
  console.warn("Failed to get offset for index:", r);
2072
2072
  return;
2073
2073
  }
2074
- rr(P[0], z) || f(q);
2074
+ rr(N[0], P) || f(q);
2075
2075
  });
2076
2076
  }, f = (w) => {
2077
2077
  this.targetWindow && (o++, o < a ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", o, a), this.targetWindow.requestAnimationFrame(() => c(w))) : console.warn(
@@ -2117,7 +2117,7 @@ class dr {
2117
2117
  }, this.setOptions(i);
2118
2118
  }
2119
2119
  }
2120
- const bt = (t, i, r, n) => {
2120
+ const xt = (t, i, r, n) => {
2121
2121
  for (; t <= i; ) {
2122
2122
  const s = (t + i) / 2 | 0, o = r(s);
2123
2123
  if (o < n)
@@ -2141,7 +2141,7 @@ function ur({
2141
2141
  startIndex: 0,
2142
2142
  endIndex: s
2143
2143
  };
2144
- let a = bt(
2144
+ let a = xt(
2145
2145
  0,
2146
2146
  s,
2147
2147
  o,
@@ -2165,7 +2165,7 @@ function ur({
2165
2165
  }
2166
2166
  return { startIndex: a, endIndex: c };
2167
2167
  }
2168
- const ht = typeof document < "u" ? Je.useLayoutEffect : Je.useEffect;
2168
+ const gt = typeof document < "u" ? Je.useLayoutEffect : Je.useEffect;
2169
2169
  function fr(t) {
2170
2170
  const i = Je.useReducer(() => ({}), {})[1], r = {
2171
2171
  ...t,
@@ -2176,7 +2176,7 @@ function fr(t) {
2176
2176
  }, [n] = Je.useState(
2177
2177
  () => new dr(r)
2178
2178
  );
2179
- return n.setOptions(r), ht(() => n._didMount(), []), ht(() => n._willUpdate()), n;
2179
+ return n.setOptions(r), gt(() => n._didMount(), []), gt(() => n._willUpdate()), n;
2180
2180
  }
2181
2181
  function hr(t) {
2182
2182
  return fr({
@@ -2208,57 +2208,57 @@ function yr({
2208
2208
  defaultExpandedRowKeys: h,
2209
2209
  onExpandedRowsChange: E,
2210
2210
  indentSize: q,
2211
- expandIcon: z,
2212
- bodyClassName: P,
2211
+ expandIcon: P,
2212
+ bodyClassName: N,
2213
2213
  bodyStyle: Z,
2214
2214
  bodyRowClassName: re,
2215
2215
  bodyRowStyle: Y,
2216
2216
  bodyCellClassName: g,
2217
- bodyCellStyle: Q,
2217
+ bodyCellStyle: ee,
2218
2218
  bodyCellWrapperClassName: S,
2219
- bodyCellWrapperStyle: M,
2219
+ bodyCellWrapperStyle: W,
2220
2220
  noDataRender: ae,
2221
- scrollContainerRef: m,
2221
+ scrollContainerRef: p,
2222
2222
  recalculateRowHeight: _,
2223
- virtualization: x
2223
+ virtualization: y
2224
2224
  }) {
2225
2225
  var Re;
2226
- const [v, p] = we(null), [j, T] = we(null), [L, G] = we(() => h && h.length > 0 ? new Set(h) : /* @__PURE__ */ new Set()), R = qe.useMemo(() => w ? new Set(w) : L, [w, L]), H = ue((u) => {
2227
- w || G(new Set(u)), E == null || E(u);
2228
- }, [w, E]), ee = ue((u) => n ? n(u) : JSON.stringify(u), [n]), I = qe.useMemo(() => {
2226
+ const [b, m] = we(null), [j, R] = we(null), [M, G] = we(() => h && h.length > 0 ? new Set(h) : /* @__PURE__ */ new Set()), F = qe.useMemo(() => w ? new Set(w) : M, [w, M]), H = ue((d) => {
2227
+ w || G(new Set(d)), E == null || E(d);
2228
+ }, [w, E]), te = ue((d) => n ? n(d) : JSON.stringify(d), [n]), I = qe.useMemo(() => {
2229
2229
  if (!f) return [];
2230
- const u = [], D = (U, b, J) => {
2230
+ const d = [], T = (U, x, J) => {
2231
2231
  U.forEach((ge, de) => {
2232
- const ke = ee(ge), xe = ge == null ? void 0 : ge.children, Ce = xe && xe.length > 0;
2233
- u.push({
2232
+ const ke = te(ge), be = ge == null ? void 0 : ge.children, Ce = be && be.length > 0;
2233
+ d.push({
2234
2234
  record: ge,
2235
2235
  key: ke,
2236
- type: b === 0 ? "parent" : "child",
2236
+ type: x === 0 ? "parent" : "child",
2237
2237
  parentKey: J,
2238
- depth: b,
2238
+ depth: x,
2239
2239
  indexWithinGroup: de,
2240
2240
  groupSize: U.length
2241
- }), Ce && R.has(ke) && D(xe, b + 1, ke);
2241
+ }), Ce && F.has(ke) && T(be, x + 1, ke);
2242
2242
  });
2243
2243
  };
2244
- return D(i, 0), u;
2245
- }, [f, i, ee, R]), A = qe.useMemo(() => {
2246
- const u = /* @__PURE__ */ new Map();
2247
- return I.forEach((D) => u.set(D.key, D)), u;
2244
+ return T(i, 0), d;
2245
+ }, [f, i, te, F]), z = qe.useMemo(() => {
2246
+ const d = /* @__PURE__ */ new Map();
2247
+ return I.forEach((T) => d.set(T.key, T)), d;
2248
2248
  }, [I]);
2249
- ze(() => {
2249
+ Ie(() => {
2250
2250
  mr && _ && (() => {
2251
- const D = document.querySelectorAll(".radar-table__body-row");
2252
- document.querySelectorAll(".radar-table__header-row").forEach((b) => {
2253
- const J = b.querySelectorAll(".radar-table__header-cell-wrapper");
2251
+ const T = document.querySelectorAll(".radar-table__body-row");
2252
+ document.querySelectorAll(".radar-table__header-row").forEach((x) => {
2253
+ const J = x.querySelectorAll(".radar-table__header-cell-wrapper");
2254
2254
  let ge = 0;
2255
2255
  J.forEach((de) => {
2256
2256
  de.style.height = "auto", ge = Math.max(ge, de.offsetHeight);
2257
2257
  }), J.forEach((de) => {
2258
2258
  de.style.height = ge + "px";
2259
2259
  });
2260
- }), D.forEach((b) => {
2261
- const J = b.querySelectorAll(".radar-table__body-cell-wrapper");
2260
+ }), T.forEach((x) => {
2261
+ const J = x.querySelectorAll(".radar-table__body-cell-wrapper");
2262
2262
  let ge = 0;
2263
2263
  J.forEach((de) => {
2264
2264
  de.style.height = "auto", ge = Math.max(ge, de.offsetHeight);
@@ -2268,37 +2268,37 @@ function yr({
2268
2268
  });
2269
2269
  })();
2270
2270
  }, [i, r]);
2271
- const F = ((u) => {
2272
- const D = [], U = (b) => {
2273
- b.forEach((J) => {
2274
- J.children && J.children.length > 0 ? U(J.children) : D.push(J);
2271
+ const $ = ((d) => {
2272
+ const T = [], U = (x) => {
2273
+ x.forEach((J) => {
2274
+ J.children && J.children.length > 0 ? U(J.children) : T.push(J);
2275
2275
  });
2276
2276
  };
2277
- return U(u), D;
2278
- })(r), le = (u) => {
2279
- if (u.groupColor)
2280
- return u.groupColor;
2281
- const D = (b, J) => {
2282
- for (const ge of b)
2277
+ return U(d), T;
2278
+ })(r), le = (d) => {
2279
+ if (d.groupColor)
2280
+ return d.groupColor;
2281
+ const T = (x, J) => {
2282
+ for (const ge of x)
2283
2283
  if (ge.children) {
2284
2284
  if (ge.children.some((ke) => ke.key === J))
2285
2285
  return ge;
2286
- const de = D(ge.children, J);
2286
+ const de = T(ge.children, J);
2287
2287
  if (de) return de;
2288
2288
  }
2289
2289
  return null;
2290
- }, U = D(r, u.key);
2290
+ }, U = T(r, d.key);
2291
2291
  return U == null ? void 0 : U.groupColor;
2292
- }, N = ue((u, D) => {
2293
- if (!D) {
2294
- u.preventDefault();
2292
+ }, A = ue((d, T) => {
2293
+ if (!T) {
2294
+ d.preventDefault();
2295
2295
  return;
2296
2296
  }
2297
- p(D), u.dataTransfer.effectAllowed = "move", u.dataTransfer.setData("text/plain", D), document.body.style.cursor = "grabbing";
2298
- const U = i.find((b) => (n ? n(b) : JSON.stringify(b)) === D);
2297
+ m(T), d.dataTransfer.effectAllowed = "move", d.dataTransfer.setData("text/plain", T), document.body.style.cursor = "grabbing";
2298
+ const U = i.find((x) => (n ? n(x) : JSON.stringify(x)) === T);
2299
2299
  if (U) {
2300
- const b = document.createElement("div");
2301
- b.style.cssText = `
2300
+ const x = document.createElement("div");
2301
+ x.style.cssText = `
2302
2302
  background: white;
2303
2303
  border-radius: 6px;
2304
2304
  padding: 8px 12px;
@@ -2312,72 +2312,72 @@ function yr({
2312
2312
  overflow: hidden;
2313
2313
  text-overflow: ellipsis;
2314
2314
  `;
2315
- const J = F[0];
2315
+ const J = $[0];
2316
2316
  if (J) {
2317
2317
  const de = U[J.key];
2318
- b.textContent = (de == null ? void 0 : de.toString()) || "Строка";
2318
+ x.textContent = (de == null ? void 0 : de.toString()) || "Строка";
2319
2319
  } else
2320
- b.textContent = "Строка";
2321
- document.body.appendChild(b), b.style.position = "absolute", b.style.top = "-1000px", b.style.left = "-1000px", u.dataTransfer.setDragImage(b, 10, 10);
2320
+ x.textContent = "Строка";
2321
+ document.body.appendChild(x), x.style.position = "absolute", x.style.top = "-1000px", x.style.left = "-1000px", d.dataTransfer.setDragImage(x, 10, 10);
2322
2322
  const ge = setTimeout(() => {
2323
- document.body.contains(b) && document.body.removeChild(b);
2323
+ document.body.contains(x) && document.body.removeChild(x);
2324
2324
  }, 0);
2325
2325
  return () => clearTimeout(ge);
2326
2326
  }
2327
- }, []), O = ue((u) => {
2328
- u.preventDefault(), u.dataTransfer.dropEffect = "move";
2329
- }, []), k = ue((u, D) => {
2330
- if (u.preventDefault(), !v) return;
2327
+ }, []), O = ue((d) => {
2328
+ d.preventDefault(), d.dataTransfer.dropEffect = "move";
2329
+ }, []), k = ue((d, T) => {
2330
+ if (d.preventDefault(), !b) return;
2331
2331
  if (!f) {
2332
- v !== D && T(D);
2332
+ b !== T && R(T);
2333
2333
  return;
2334
2334
  }
2335
- const U = A.get(v), b = A.get(D);
2336
- if (!U || !b) return;
2337
- const J = U.depth === b.depth && U.parentKey === b.parentKey;
2338
- T(J && v !== D ? D : null);
2339
- }, [v, f, A]), C = ue((u) => {
2340
- u.preventDefault(), T(null);
2335
+ const U = z.get(b), x = z.get(T);
2336
+ if (!U || !x) return;
2337
+ const J = U.depth === x.depth && U.parentKey === x.parentKey;
2338
+ R(J && b !== T ? T : null);
2339
+ }, [b, f, z]), C = ue((d) => {
2340
+ d.preventDefault(), R(null);
2341
2341
  }, []), X = ue(() => {
2342
- p(null), T(null), document.body.style.cursor = "";
2343
- }, []), $ = ue((u, D) => {
2344
- if (u.preventDefault(), !v || v === D)
2342
+ m(null), R(null), document.body.style.cursor = "";
2343
+ }, []), D = ue((d, T) => {
2344
+ if (d.preventDefault(), !b || b === T)
2345
2345
  return;
2346
2346
  if (!f) {
2347
- const de = i.findIndex((Oe) => (n ? n(Oe) : JSON.stringify(Oe)) === v), ke = i.findIndex((Oe) => (n ? n(Oe) : JSON.stringify(Oe)) === D);
2347
+ const de = i.findIndex((Oe) => (n ? n(Oe) : JSON.stringify(Oe)) === b), ke = i.findIndex((Oe) => (n ? n(Oe) : JSON.stringify(Oe)) === T);
2348
2348
  if (de === -1 || ke === -1)
2349
2349
  return;
2350
- const xe = [...i], [Ce] = xe.splice(de, 1);
2351
- xe.splice(ke, 0, Ce), o == null || o(xe), p(null), T(null), document.body.style.cursor = "";
2350
+ const be = [...i], [Ce] = be.splice(de, 1);
2351
+ be.splice(ke, 0, Ce), o == null || o(be), m(null), R(null), document.body.style.cursor = "";
2352
2352
  return;
2353
2353
  }
2354
- const U = A.get(v), b = A.get(D);
2355
- if (!U || !b || U.depth !== b.depth || U.parentKey !== b.parentKey)
2354
+ const U = z.get(b), x = z.get(T);
2355
+ if (!U || !x || U.depth !== x.depth || U.parentKey !== x.parentKey)
2356
2356
  return;
2357
2357
  const J = (de, ke) => {
2358
2358
  if (ke === U.parentKey) {
2359
- const xe = de.findIndex(
2360
- (Ie) => ee(Ie) === U.key
2359
+ const be = de.findIndex(
2360
+ (Le) => te(Le) === U.key
2361
2361
  ), Ce = de.findIndex(
2362
- (Ie) => ee(Ie) === b.key
2362
+ (Le) => te(Le) === x.key
2363
2363
  );
2364
- if (xe === -1 || Ce === -1) return de;
2365
- const Oe = [...de], [Fe] = Oe.splice(xe, 1);
2364
+ if (be === -1 || Ce === -1) return de;
2365
+ const Oe = [...de], [Fe] = Oe.splice(be, 1);
2366
2366
  return Oe.splice(Ce, 0, Fe), Oe;
2367
2367
  }
2368
- return de.map((xe) => {
2369
- const Ce = xe == null ? void 0 : xe.children;
2368
+ return de.map((be) => {
2369
+ const Ce = be == null ? void 0 : be.children;
2370
2370
  return Ce && Ce.length > 0 ? {
2371
- ...xe,
2372
- children: J(Ce, ee(xe))
2373
- } : xe;
2371
+ ...be,
2372
+ children: J(Ce, te(be))
2373
+ } : be;
2374
2374
  });
2375
2375
  }, ge = J(i);
2376
- o == null || o(ge), p(null), T(null), document.body.style.cursor = "";
2377
- }, [v, i, ee, o, f, A]);
2376
+ o == null || o(ge), m(null), R(null), document.body.style.cursor = "";
2377
+ }, [b, i, te, o, f, z]);
2378
2378
  if (i.length === 0) {
2379
- let u;
2380
- return m && (u = ((Re = m.current) == null ? void 0 : Re.clientWidth) + "px"), /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${P}`, style: Z, children: /* @__PURE__ */ l.jsx(
2379
+ let d;
2380
+ return p && (d = ((Re = p.current) == null ? void 0 : Re.clientWidth) + "px"), /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${N}`, style: Z, children: /* @__PURE__ */ l.jsx(
2381
2381
  "tr",
2382
2382
  {
2383
2383
  className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re}`,
@@ -2386,179 +2386,196 @@ function yr({
2386
2386
  "td",
2387
2387
  {
2388
2388
  className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${g}`,
2389
- colSpan: F.length,
2389
+ colSpan: $.length,
2390
2390
  style: {
2391
- ...Q
2391
+ ...ee
2392
2392
  },
2393
2393
  children: [
2394
2394
  ae && ae(),
2395
- !ae && /* @__PURE__ */ l.jsx("div", { className: `${u ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: u || "" }, children: "Нет данных" })
2395
+ !ae && /* @__PURE__ */ l.jsx("div", { className: `${d ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: d || "" }, children: "Нет данных" })
2396
2396
  ]
2397
2397
  }
2398
2398
  )
2399
2399
  }
2400
2400
  ) });
2401
2401
  }
2402
- const te = f ? I : i.map((u) => ({
2403
- record: u,
2404
- key: n ? n(u) : JSON.stringify(u),
2402
+ const Q = f ? I : i.map((d) => ({
2403
+ record: d,
2404
+ key: n ? n(d) : JSON.stringify(d),
2405
2405
  type: "parent",
2406
2406
  depth: 0,
2407
2407
  indexWithinGroup: 0,
2408
2408
  groupSize: i.length
2409
- })), fe = ue((u) => {
2410
- const D = new Set(R);
2411
- D.has(u) ? D.delete(u) : D.add(u), H(Array.from(D));
2412
- }, [R, H]);
2413
- function ie({ column: u, index: D, row: U, item: b }) {
2409
+ })), fe = ue((d) => {
2410
+ const T = new Set(F);
2411
+ T.has(d) ? T.delete(d) : T.add(d), H(Array.from(T));
2412
+ }, [F, H]);
2413
+ function ie({ column: d, index: T, row: U, item: x }) {
2414
2414
  var He, Ue;
2415
- const J = Ee(null), [ge, de] = we(0), ke = u.fixed && !u.width ? 200 : u.width, xe = u.fixed && !u.minWidth ? 200 : u.minWidth;
2415
+ const J = Ee(null), [ge, de] = we(0), ke = d.fixed && !d.width ? 200 : d.width, be = d.fixed && !d.minWidth ? 200 : d.minWidth;
2416
2416
  let Ce = !1;
2417
- c && c.idx.includes(u.dataIndex) && (Ce = !0), c && c.idx.length === 0 && (Ce = !0), vt(() => {
2418
- if (!u.fixed) {
2417
+ c && c.idx.includes(d.dataIndex) && (Ce = !0), c && c.idx.length === 0 && (Ce = !0), Xe(() => {
2418
+ if (!d.fixed) {
2419
2419
  de(0);
2420
2420
  return;
2421
2421
  }
2422
- let We = u.fixedLeft || 0;
2423
- if (D !== 0) {
2424
- for (let $e = 0; $e < D; $e++)
2425
- if (F[$e].fixed && !F[$e].hidden) {
2426
- const De = F[$e].width || F[$e].minWidth || 200, Be = pr(F[$e].key);
2427
- We += Math.floor(Be ?? De) - 0.05;
2422
+ let Pe = d.fixedLeft || 0;
2423
+ if (T !== 0) {
2424
+ for (let $e = 0; $e < T; $e++)
2425
+ if ($[$e].fixed && !$[$e].hidden) {
2426
+ const De = $[$e].width || $[$e].minWidth || 200, Be = pr($[$e].key);
2427
+ Pe += Math.floor(Be ?? De) - 0.05;
2428
2428
  }
2429
2429
  }
2430
- de(We);
2431
- }, [u.fixed, u.fixedLeft, u.width, D]);
2432
- const Oe = le(u), Fe = D === 0, Ie = f && Fe && U.depth > 0 ? U.depth * (q || 16) : void 0, Ae = !!(f && (b != null && b.children) && b.children.length > 0), Le = !!(f && R.has(U.key));
2433
- return u.hidden ? null : /* @__PURE__ */ l.jsx(
2430
+ de(Pe);
2431
+ }, [d.fixed, d.fixedLeft, d.width, T]);
2432
+ const Oe = le(d), Fe = T === 0, Le = f && Fe && U.depth > 0 ? U.depth * (q || 16) : void 0, ze = !!(f && (x != null && x.children) && x.children.length > 0), Me = !!(f && F.has(U.key));
2433
+ return d.hidden ? null : /* @__PURE__ */ l.jsx(
2434
2434
  "td",
2435
2435
  {
2436
2436
  ref: J,
2437
- "data-column-key": u.key,
2437
+ "data-column-key": d.key,
2438
2438
  className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${g}`,
2439
2439
  style: {
2440
2440
  width: ke,
2441
- minWidth: xe,
2442
- position: u.fixed ? "sticky" : "static",
2441
+ minWidth: be,
2442
+ position: d.fixed ? "sticky" : "static",
2443
2443
  left: ge,
2444
- borderRight: u.fixed && !((He = F[D + 1]) != null && He.fixed) ? "1px solid #E8E8E8" : "none",
2445
- cursor: Fe && Ae ? "pointer" : "default",
2446
- ...Q
2444
+ borderRight: d.fixed && !((He = $[T + 1]) != null && He.fixed) ? "1px solid #E8E8E8" : "none",
2445
+ cursor: Fe && ze ? "pointer" : "default",
2446
+ ...ee
2447
2447
  },
2448
- onClick: Fe && Ae ? () => fe(U.key) : void 0,
2448
+ onClick: Fe && ze ? () => fe(U.key) : void 0,
2449
2449
  children: /* @__PURE__ */ l.jsxs(
2450
2450
  "div",
2451
2451
  {
2452
2452
  className: `radar-table__body-cell-wrapper ${a ? a + "__body-cell-wrapper" : ""} ${S}`,
2453
2453
  style: {
2454
2454
  backgroundColor: Oe || "white",
2455
- paddingLeft: Ie,
2456
- ...M
2455
+ paddingLeft: Le,
2456
+ ...W
2457
2457
  },
2458
2458
  children: [
2459
- Fe && Ae && f && /* @__PURE__ */ l.jsx(
2459
+ Fe && ze && f && /* @__PURE__ */ l.jsx(
2460
2460
  "button",
2461
2461
  {
2462
2462
  type: "button",
2463
- className: `radar-table__expander-btn ${Le ? "expanded" : ""}`,
2464
- "aria-expanded": Le,
2463
+ className: `radar-table__expander-btn ${Me ? "expanded" : ""}`,
2464
+ "aria-expanded": Me,
2465
2465
  onClick: () => fe(U.key),
2466
- style: { marginRight: 8, background: "transparent", border: "none", transform: Le ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
2467
- title: Le ? "Свернуть" : "Развернуть",
2468
- children: z ? z(Le, b, U.depth) : /* @__PURE__ */ l.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
2466
+ style: { marginRight: 8, background: "transparent", border: "none", transform: Me ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
2467
+ title: Me ? "Свернуть" : "Развернуть",
2468
+ children: P ? P(Me, x, U.depth) : /* @__PURE__ */ l.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
2469
2469
  }
2470
2470
  ),
2471
- Ce ? c == null ? void 0 : c.renderer(b[u.dataIndex], b, D, u.dataIndex) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2472
- u.units && tr(((Ue = b[u.key]) == null ? void 0 : Ue.toString()) || "", u.units),
2473
- !u.units && b[u.key]
2471
+ Ce ? c == null ? void 0 : c.renderer(x[d.dataIndex], x, T, d.dataIndex) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2472
+ d.units && tr(((Ue = x[d.key]) == null ? void 0 : Ue.toString()) || "", d.units),
2473
+ !d.units && x[d.key]
2474
2474
  ] })
2475
2475
  ]
2476
2476
  }
2477
2477
  )
2478
2478
  },
2479
- u.key
2479
+ d.key
2480
2480
  );
2481
2481
  }
2482
- if (!(x != null && x.enabled))
2483
- return /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${P}`, style: Z, children: te.map((u) => {
2484
- const D = u.record, U = u.key;
2482
+ if (!(y != null && y.enabled))
2483
+ return /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${N}`, style: Z, children: Q.map((d) => {
2484
+ const T = d.record, U = d.key;
2485
2485
  return /* @__PURE__ */ l.jsx(
2486
2486
  "tr",
2487
2487
  {
2488
- className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re} ${v === U ? "dragging" : ""} ${j === U ? "drag-over" : ""} ${f ? u.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
2488
+ className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re} ${b === U ? "dragging" : ""} ${j === U ? "drag-over" : ""} ${f ? d.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
2489
2489
  style: Y,
2490
2490
  draggable: t,
2491
- onDragStart: (b) => N(b, U),
2491
+ onDragStart: (x) => A(x, U),
2492
2492
  onDragOver: O,
2493
- onDragEnter: (b) => k(b, U),
2493
+ onDragEnter: (x) => k(x, U),
2494
2494
  onDragLeave: C,
2495
- onDrop: (b) => $(b, U),
2495
+ onDrop: (x) => D(x, U),
2496
2496
  onDragEnd: X,
2497
- children: F.map((b, J) => /* @__PURE__ */ l.jsx(ie, { column: b, index: J, row: u, item: D }, b.key))
2497
+ children: $.map((x, J) => /* @__PURE__ */ l.jsx(ie, { column: x, index: J, row: d, item: T }, x.key))
2498
2498
  },
2499
2499
  U
2500
2500
  );
2501
2501
  }) });
2502
- const K = x.estimateSize ?? 48, ne = x.overscan ?? 12, W = hr({
2503
- count: te.length,
2504
- getScrollElement: () => m == null ? void 0 : m.current,
2502
+ const K = y.estimateSize ?? 48, ne = y.overscan ?? 12, L = hr({
2503
+ count: Q.length,
2504
+ getScrollElement: () => p == null ? void 0 : p.current,
2505
2505
  estimateSize: () => K,
2506
2506
  overscan: ne,
2507
- measureElement: (u) => u.getBoundingClientRect().height
2508
- }), ce = W.getVirtualItems(), ye = W.getTotalSize(), pe = ce.length ? ce[0].start : 0, ve = ce.length ? ye - ce[ce.length - 1].end : 0;
2509
- return /* @__PURE__ */ l.jsxs("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${P}`, style: Z, children: [
2510
- pe > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: pe }, children: /* @__PURE__ */ l.jsx("td", { colSpan: F.length }) }),
2511
- ce.map((u) => {
2512
- const D = te[u.index];
2513
- if (!D) return null;
2514
- const U = D.record, b = D.key;
2507
+ measureElement: (d) => d.getBoundingClientRect().height
2508
+ });
2509
+ Xe(() => {
2510
+ if (!(y != null && y.enabled) || !(p != null && p.current)) return;
2511
+ L.measure();
2512
+ const d = new ResizeObserver(() => {
2513
+ L.measure();
2514
+ }), T = p.current;
2515
+ return d.observe(T), () => {
2516
+ d.disconnect();
2517
+ };
2518
+ }, [y == null ? void 0 : y.enabled, p]), Ie(() => {
2519
+ if (!(y != null && y.enabled)) return;
2520
+ const d = setTimeout(() => {
2521
+ L.measure();
2522
+ }, 0);
2523
+ return () => clearTimeout(d);
2524
+ }, [Q.length, y == null ? void 0 : y.enabled]);
2525
+ const ce = L.getVirtualItems(), ye = L.getTotalSize(), pe = ce.length ? ce[0].start : 0, ve = ce.length ? ye - ce[ce.length - 1].end : 0;
2526
+ return /* @__PURE__ */ l.jsxs("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${N}`, style: Z, children: [
2527
+ pe > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: pe }, children: /* @__PURE__ */ l.jsx("td", { colSpan: $.length }) }),
2528
+ ce.map((d) => {
2529
+ const T = Q[d.index];
2530
+ if (!T) return null;
2531
+ const U = T.record, x = T.key;
2515
2532
  return /* @__PURE__ */ l.jsx(
2516
2533
  "tr",
2517
2534
  {
2518
- "data-index": u.index,
2535
+ "data-index": d.index,
2519
2536
  ref: (J) => {
2520
- J && W.measureElement(J);
2537
+ J && L.measureElement(J);
2521
2538
  },
2522
- className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re} ${v === b ? "dragging" : ""} ${j === b ? "drag-over" : ""} ${f ? D.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
2539
+ className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${re} ${b === x ? "dragging" : ""} ${j === x ? "drag-over" : ""} ${f ? T.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
2523
2540
  style: Y,
2524
2541
  draggable: t,
2525
- onDragStart: (J) => N(J, b),
2542
+ onDragStart: (J) => A(J, x),
2526
2543
  onDragOver: O,
2527
- onDragEnter: (J) => k(J, b),
2544
+ onDragEnter: (J) => k(J, x),
2528
2545
  onDragLeave: C,
2529
- onDrop: (J) => $(J, b),
2546
+ onDrop: (J) => D(J, x),
2530
2547
  onDragEnd: X,
2531
- children: F.map((J, ge) => /* @__PURE__ */ l.jsx(ie, { column: J, index: ge, row: D, item: U }, J.key))
2548
+ children: $.map((J, ge) => /* @__PURE__ */ l.jsx(ie, { column: J, index: ge, row: T, item: U }, J.key))
2532
2549
  },
2533
- b
2550
+ x
2534
2551
  );
2535
2552
  }),
2536
- ve > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: ve }, children: /* @__PURE__ */ l.jsx("td", { colSpan: F.length }) })
2553
+ ve > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: ve }, children: /* @__PURE__ */ l.jsx("td", { colSpan: $.length }) })
2537
2554
  ] });
2538
2555
  }
2539
- const gt = ({ config: t }) => {
2556
+ const pt = ({ config: t }) => {
2540
2557
  const [{ current: i, pageSize: r, total: n, onChange: s, showQuickJumper: o, buttonsCount: a = 4, hideOnSinglePage: c = !1 }, f] = we(t);
2541
- ze(() => {
2558
+ Ie(() => {
2542
2559
  f(t);
2543
2560
  }, [t]);
2544
2561
  const w = Math.ceil(i / a), h = (w - 1) * a + 1, E = w * a, q = (g) => {
2545
- const Q = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
2546
- !/^[0-9]$/.test(g.key) && !Q.includes(g.key) && g.preventDefault();
2547
- }, z = (g) => {
2562
+ const ee = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
2563
+ !/^[0-9]$/.test(g.key) && !ee.includes(g.key) && g.preventDefault();
2564
+ }, P = (g) => {
2548
2565
  if (g.key === "Enter") {
2549
- const Q = parseInt(g.currentTarget.value);
2550
- Q > 0 && Q <= n && (f({ ...t, current: Q }), s == null || s(Q, r), g.currentTarget.value = "");
2566
+ const ee = parseInt(g.currentTarget.value);
2567
+ ee > 0 && ee <= n && (f({ ...t, current: ee }), s == null || s(ee, r), g.currentTarget.value = "");
2551
2568
  }
2552
- }, P = (g) => {
2569
+ }, N = (g) => {
2553
2570
  const S = g.target.value.replace(/[^0-9]/g, "");
2554
2571
  g.target.value = S;
2555
2572
  }, Z = (g) => {
2556
2573
  g.preventDefault();
2557
- const S = g.clipboardData.getData("text").replace(/[^0-9]/g, ""), M = g.target, ae = M.selectionStart || 0, m = M.selectionEnd || 0, _ = M.value.substring(0, ae) + S + M.value.substring(m);
2558
- M.value = _, M.setSelectionRange(ae + S.length, ae + S.length);
2574
+ const S = g.clipboardData.getData("text").replace(/[^0-9]/g, ""), W = g.target, ae = W.selectionStart || 0, p = W.selectionEnd || 0, _ = W.value.substring(0, ae) + S + W.value.substring(p);
2575
+ W.value = _, W.setSelectionRange(ae + S.length, ae + S.length);
2559
2576
  }, re = (g) => {
2560
- const Q = g.currentTarget.id;
2561
- Q === "pagination_left_button" && i > 1 && (f({ ...t, current: i - 1 }), s == null || s(i - 1, r)), Q === "pagination_right_button" && i < n && (f({ ...t, current: i + 1 }), s == null || s(i + 1, r));
2577
+ const ee = g.currentTarget.id;
2578
+ ee === "pagination_left_button" && i > 1 && (f({ ...t, current: i - 1 }), s == null || s(i - 1, r)), ee === "pagination_right_button" && i < n && (f({ ...t, current: i + 1 }), s == null || s(i + 1, r));
2562
2579
  }, Y = (g) => {
2563
2580
  f({ ...t, current: g }), s == null || s(g, r);
2564
2581
  };
@@ -2572,10 +2589,10 @@ const gt = ({ config: t }) => {
2572
2589
  },
2573
2590
  children: [
2574
2591
  /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: re, title: "Назад", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
2575
- Array.from({ length: n }, (g, Q) => Q + 1).map((g) => {
2576
- const Q = i === g;
2592
+ Array.from({ length: n }, (g, ee) => ee + 1).map((g) => {
2593
+ const ee = i === g;
2577
2594
  if (g >= h && g <= E)
2578
- return Q ? /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: g }, g) : /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button", onClick: () => Y(g), children: g }, g);
2595
+ return ee ? /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: g }, g) : /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button", onClick: () => Y(g), children: g }, g);
2579
2596
  }),
2580
2597
  /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: re, title: "Вперёд", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
2581
2598
  ]
@@ -2588,9 +2605,9 @@ const gt = ({ config: t }) => {
2588
2605
  {
2589
2606
  className: "radar-table__pagination-input",
2590
2607
  onKeyDown: q,
2591
- onChange: P,
2608
+ onChange: N,
2592
2609
  onPaste: Z,
2593
- onKeyUp: (g) => z(g)
2610
+ onKeyUp: (g) => P(g)
2594
2611
  }
2595
2612
  ),
2596
2613
  " стр. из ",
@@ -2615,22 +2632,22 @@ function vr(t = !1) {
2615
2632
  }, [t]), w = ue(() => {
2616
2633
  if (!t || !a.current) return;
2617
2634
  a.current = !1;
2618
- const E = n.current, q = performance.now() - o.current, z = [];
2619
- let P = 0, Z = 0;
2635
+ const E = n.current, q = performance.now() - o.current, P = [];
2636
+ let N = 0, Z = 0;
2620
2637
  if (E.length > 1) {
2621
2638
  for (let S = 1; S < E.length; S++) {
2622
- const M = E[S] - E[S - 1];
2623
- z.push(M);
2639
+ const W = E[S] - E[S - 1];
2640
+ P.push(W);
2624
2641
  }
2625
- P = z[z.length - 1], Z = 1e3 / P;
2626
- const re = z.reduce((S, M) => S + M, 0) / z.length, Y = 1e3 / re, g = Math.min(...z), Q = Math.max(...z);
2642
+ N = P[P.length - 1], Z = 1e3 / N;
2643
+ const re = P.reduce((S, W) => S + W, 0) / P.length, Y = 1e3 / re, g = Math.min(...P), ee = Math.max(...P);
2627
2644
  r({
2628
2645
  totalFrames: E.length,
2629
2646
  avgFrameTime: re,
2630
2647
  minFrameTime: g,
2631
- maxFrameTime: Q,
2648
+ maxFrameTime: ee,
2632
2649
  avgFps: Y,
2633
- lastFrameTime: P,
2650
+ lastFrameTime: N,
2634
2651
  lastFps: Z,
2635
2652
  totalDuration: q
2636
2653
  });
@@ -2669,64 +2686,64 @@ function Sr({
2669
2686
  scrollContainerRef: h,
2670
2687
  onResize: E,
2671
2688
  onSort: q,
2672
- onRowReorder: z,
2673
- onColumnReorder: P,
2689
+ onRowReorder: P,
2690
+ onColumnReorder: N,
2674
2691
  customCellRender: Z,
2675
2692
  noDataRender: re,
2676
2693
  sortIcon: Y,
2677
2694
  expandIcon: g,
2678
- recalculateRowHeight: Q = !1,
2695
+ recalculateRowHeight: ee = !1,
2679
2696
  // sorting props
2680
2697
  sorting: S,
2681
- defaultSorting: M,
2698
+ defaultSorting: W,
2682
2699
  // tree props
2683
2700
  treeMode: ae,
2684
- expandedRowKeys: m,
2701
+ expandedRowKeys: p,
2685
2702
  defaultExpandedRowKeys: _,
2686
- onExpandedRowsChange: x,
2687
- indentSize: v,
2688
- className: p = "",
2703
+ onExpandedRowsChange: y,
2704
+ indentSize: b,
2705
+ className: m = "",
2689
2706
  style: j,
2690
- headerClassName: T = "",
2691
- headerStyle: L,
2707
+ headerClassName: R = "",
2708
+ headerStyle: M,
2692
2709
  headerCellClassName: G = "",
2693
- headerCellStyle: R,
2710
+ headerCellStyle: F,
2694
2711
  headerRowClassName: H = "",
2695
- headerRowStyle: ee,
2712
+ headerRowStyle: te,
2696
2713
  headerCellWrapperClassName: I = "",
2697
- headerCellWrapperStyle: A,
2714
+ headerCellWrapperStyle: z,
2698
2715
  bodyClassName: V = "",
2699
- bodyStyle: F,
2716
+ bodyStyle: $,
2700
2717
  bodyRowClassName: le = "",
2701
- bodyRowStyle: N,
2718
+ bodyRowStyle: A,
2702
2719
  bodyCellClassName: O = "",
2703
2720
  bodyCellStyle: k,
2704
2721
  bodyCellWrapperClassName: C = "",
2705
2722
  bodyCellWrapperStyle: X,
2706
- headerGroupRowClassName: $,
2707
- headerGroupRowStyle: te,
2723
+ headerGroupRowClassName: D,
2724
+ headerGroupRowStyle: Q,
2708
2725
  headerGroupCellClassName: fe,
2709
2726
  headerGroupCellStyle: ie,
2710
2727
  headerGroupCellWrapperClassName: K,
2711
2728
  headerGroupCellWrapperStyle: ne,
2712
- paginationContainerClassName: W = "",
2729
+ paginationContainerClassName: L = "",
2713
2730
  paginationContainerStyle: ce,
2714
2731
  resizeThrottle: ye = 0,
2715
2732
  virtualization: pe,
2716
2733
  benchmark: ve
2717
2734
  }) {
2718
- const Re = typeof ve == "boolean" ? ve : !1, { metrics: u, startResize: D, trackFrame: U, endResize: b } = vr(Re);
2719
- return ze(() => {
2720
- Re && u.totalFrames > 0 && (console.group("📊 Resize Benchmark (Mouse Move)"), console.log("Total Frames:", u.totalFrames), console.log("Last Frame Time:", `${u.lastFrameTime.toFixed(2)}ms`), console.log("Last FPS:", u.lastFps.toFixed(1)), console.log("Avg Frame Time:", `${u.avgFrameTime.toFixed(2)}ms`), console.log("Avg FPS:", u.avgFps.toFixed(1)), console.log("Min Frame Time:", `${u.minFrameTime.toFixed(2)}ms`), console.log("Max Frame Time:", `${u.maxFrameTime.toFixed(2)}ms`), console.log("Total Duration:", `${u.totalDuration.toFixed(2)}ms`), console.groupEnd());
2721
- }, [u, Re]), w ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2735
+ const Re = typeof ve == "boolean" ? ve : !1, { metrics: d, startResize: T, trackFrame: U, endResize: x } = vr(Re);
2736
+ return Ie(() => {
2737
+ Re && d.totalFrames > 0 && (console.group("📊 Resize Benchmark (Mouse Move)"), console.log("Total Frames:", d.totalFrames), console.log("Last Frame Time:", `${d.lastFrameTime.toFixed(2)}ms`), console.log("Last FPS:", d.lastFps.toFixed(1)), console.log("Avg Frame Time:", `${d.avgFrameTime.toFixed(2)}ms`), console.log("Avg FPS:", d.avgFps.toFixed(1)), console.log("Min Frame Time:", `${d.minFrameTime.toFixed(2)}ms`), console.log("Max Frame Time:", `${d.maxFrameTime.toFixed(2)}ms`), console.log("Total Duration:", `${d.totalDuration.toFixed(2)}ms`), console.groupEnd());
2738
+ }, [d, Re]), w ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2722
2739
  /* @__PURE__ */ l.jsx(
2723
2740
  Zt,
2724
2741
  {
2725
2742
  fullConfig: r,
2726
- onColumnReorder: P,
2743
+ onColumnReorder: N,
2727
2744
  scrollContainerRef: h,
2728
2745
  children: /* @__PURE__ */ l.jsx(
2729
- pt,
2746
+ mt,
2730
2747
  {
2731
2748
  dataSource: t,
2732
2749
  preset: i,
@@ -2741,59 +2758,59 @@ function Sr({
2741
2758
  scrollContainerRef: h,
2742
2759
  onResize: E,
2743
2760
  onSort: q,
2744
- onRowReorder: z,
2745
- onColumnReorder: P,
2761
+ onRowReorder: P,
2762
+ onColumnReorder: N,
2746
2763
  customCellRender: Z,
2747
2764
  sortIcon: Y,
2748
2765
  expandIcon: g,
2749
2766
  treeMode: ae,
2750
- expandedRowKeys: m,
2767
+ expandedRowKeys: p,
2751
2768
  defaultExpandedRowKeys: _,
2752
- onExpandedRowsChange: x,
2753
- indentSize: v,
2754
- className: p,
2769
+ onExpandedRowsChange: y,
2770
+ indentSize: b,
2771
+ className: m,
2755
2772
  style: j,
2756
- headerClassName: T,
2757
- headerStyle: L,
2773
+ headerClassName: R,
2774
+ headerStyle: M,
2758
2775
  headerCellClassName: G,
2759
- headerCellStyle: R,
2776
+ headerCellStyle: F,
2760
2777
  headerRowClassName: H,
2761
- headerRowStyle: ee,
2778
+ headerRowStyle: te,
2762
2779
  headerCellWrapperClassName: I,
2763
- headerCellWrapperStyle: A,
2780
+ headerCellWrapperStyle: z,
2764
2781
  bodyClassName: V,
2765
- bodyStyle: F,
2782
+ bodyStyle: $,
2766
2783
  bodyRowClassName: le,
2767
- bodyRowStyle: N,
2784
+ bodyRowStyle: A,
2768
2785
  bodyCellClassName: O,
2769
2786
  bodyCellStyle: k,
2770
2787
  bodyCellWrapperClassName: C,
2771
2788
  bodyCellWrapperStyle: X,
2772
- headerGroupRowClassName: $,
2773
- headerGroupRowStyle: te,
2789
+ headerGroupRowClassName: D,
2790
+ headerGroupRowStyle: Q,
2774
2791
  headerGroupCellClassName: fe,
2775
2792
  headerGroupCellStyle: ie,
2776
2793
  headerGroupCellWrapperClassName: K,
2777
2794
  headerGroupCellWrapperStyle: ne,
2778
- paginationContainerClassName: W,
2795
+ paginationContainerClassName: L,
2779
2796
  paginationContainerStyle: ce,
2780
2797
  noDataRender: re,
2781
- recalculateRowHeight: Q,
2798
+ recalculateRowHeight: ee,
2782
2799
  sorting: S,
2783
- defaultSorting: M,
2800
+ defaultSorting: W,
2784
2801
  resizeThrottle: ye,
2785
2802
  virtualization: pe,
2786
- onResizeStart: D,
2803
+ onResizeStart: T,
2787
2804
  onResizeFrame: U,
2788
- onResizeEnd: b
2805
+ onResizeEnd: x
2789
2806
  }
2790
2807
  )
2791
2808
  }
2792
2809
  ),
2793
- /* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${W}`, style: ce, children: o && /* @__PURE__ */ l.jsx(gt, { config: o }) })
2810
+ /* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${L}`, style: ce, children: o && /* @__PURE__ */ l.jsx(pt, { config: o }) })
2794
2811
  ] }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
2795
2812
  /* @__PURE__ */ l.jsx(
2796
- pt,
2813
+ mt,
2797
2814
  {
2798
2815
  dataSource: t,
2799
2816
  preset: i,
@@ -2808,57 +2825,57 @@ function Sr({
2808
2825
  scrollContainerRef: h,
2809
2826
  onResize: E,
2810
2827
  onSort: q,
2811
- onRowReorder: z,
2812
- onColumnReorder: P,
2828
+ onRowReorder: P,
2829
+ onColumnReorder: N,
2813
2830
  customCellRender: Z,
2814
2831
  sortIcon: Y,
2815
2832
  expandIcon: g,
2816
2833
  treeMode: ae,
2817
- expandedRowKeys: m,
2834
+ expandedRowKeys: p,
2818
2835
  defaultExpandedRowKeys: _,
2819
- onExpandedRowsChange: x,
2820
- indentSize: v,
2821
- className: p,
2836
+ onExpandedRowsChange: y,
2837
+ indentSize: b,
2838
+ className: m,
2822
2839
  style: j,
2823
- headerClassName: T,
2824
- headerStyle: L,
2840
+ headerClassName: R,
2841
+ headerStyle: M,
2825
2842
  headerCellClassName: G,
2826
- headerCellStyle: R,
2843
+ headerCellStyle: F,
2827
2844
  headerRowClassName: H,
2828
- headerRowStyle: ee,
2845
+ headerRowStyle: te,
2829
2846
  headerCellWrapperClassName: I,
2830
- headerCellWrapperStyle: A,
2847
+ headerCellWrapperStyle: z,
2831
2848
  bodyClassName: V,
2832
- bodyStyle: F,
2849
+ bodyStyle: $,
2833
2850
  bodyRowClassName: le,
2834
- bodyRowStyle: N,
2851
+ bodyRowStyle: A,
2835
2852
  bodyCellClassName: O,
2836
2853
  bodyCellStyle: k,
2837
2854
  bodyCellWrapperClassName: C,
2838
2855
  bodyCellWrapperStyle: X,
2839
- headerGroupRowClassName: $,
2840
- headerGroupRowStyle: te,
2856
+ headerGroupRowClassName: D,
2857
+ headerGroupRowStyle: Q,
2841
2858
  headerGroupCellClassName: fe,
2842
2859
  headerGroupCellStyle: ie,
2843
2860
  headerGroupCellWrapperClassName: K,
2844
2861
  headerGroupCellWrapperStyle: ne,
2845
- paginationContainerClassName: W,
2862
+ paginationContainerClassName: L,
2846
2863
  paginationContainerStyle: ce,
2847
2864
  noDataRender: re,
2848
- recalculateRowHeight: Q,
2865
+ recalculateRowHeight: ee,
2849
2866
  sorting: S,
2850
- defaultSorting: M,
2867
+ defaultSorting: W,
2851
2868
  resizeThrottle: ye,
2852
2869
  virtualization: pe,
2853
- onResizeStart: D,
2870
+ onResizeStart: T,
2854
2871
  onResizeFrame: U,
2855
- onResizeEnd: b
2872
+ onResizeEnd: x
2856
2873
  }
2857
2874
  ),
2858
- /* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${W}`, style: ce, children: o && /* @__PURE__ */ l.jsx(gt, { config: o }) })
2875
+ /* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${L}`, style: ce, children: o && /* @__PURE__ */ l.jsx(pt, { config: o }) })
2859
2876
  ] });
2860
2877
  }
2861
- function pt(t) {
2878
+ function mt(t) {
2862
2879
  const {
2863
2880
  dataSource: i,
2864
2881
  preset: r,
@@ -2872,45 +2889,45 @@ function pt(t) {
2872
2889
  scrollContainerRef: h,
2873
2890
  onResize: E,
2874
2891
  onResizeStart: q,
2875
- onResizeFrame: z,
2876
- onResizeEnd: P,
2892
+ onResizeFrame: P,
2893
+ onResizeEnd: N,
2877
2894
  onSort: Z,
2878
2895
  onRowReorder: re,
2879
2896
  onColumnReorder: Y,
2880
2897
  customCellRender: g,
2881
- sortIcon: Q,
2898
+ sortIcon: ee,
2882
2899
  expandIcon: S,
2883
- treeMode: M,
2900
+ treeMode: W,
2884
2901
  expandedRowKeys: ae,
2885
- defaultExpandedRowKeys: m,
2902
+ defaultExpandedRowKeys: p,
2886
2903
  onExpandedRowsChange: _,
2887
- indentSize: x,
2888
- className: v,
2889
- style: p,
2904
+ indentSize: y,
2905
+ className: b,
2906
+ style: m,
2890
2907
  headerClassName: j,
2891
- headerStyle: T,
2892
- headerCellClassName: L,
2908
+ headerStyle: R,
2909
+ headerCellClassName: M,
2893
2910
  headerCellStyle: G,
2894
- headerRowClassName: R,
2911
+ headerRowClassName: F,
2895
2912
  headerRowStyle: H,
2896
- headerCellWrapperClassName: ee,
2913
+ headerCellWrapperClassName: te,
2897
2914
  headerCellWrapperStyle: I,
2898
- bodyClassName: A,
2915
+ bodyClassName: z,
2899
2916
  bodyStyle: V,
2900
- bodyRowClassName: F,
2917
+ bodyRowClassName: $,
2901
2918
  bodyRowStyle: le,
2902
- bodyCellClassName: N,
2919
+ bodyCellClassName: A,
2903
2920
  bodyCellStyle: O,
2904
2921
  bodyCellWrapperClassName: k,
2905
2922
  bodyCellWrapperStyle: C,
2906
2923
  headerGroupRowClassName: X,
2907
- headerGroupRowStyle: $,
2908
- headerGroupCellClassName: te,
2924
+ headerGroupRowStyle: D,
2925
+ headerGroupCellClassName: Q,
2909
2926
  headerGroupCellStyle: fe,
2910
2927
  headerGroupCellWrapperClassName: ie,
2911
2928
  headerGroupCellWrapperStyle: K,
2912
2929
  noDataRender: ne,
2913
- recalculateRowHeight: W,
2930
+ recalculateRowHeight: L,
2914
2931
  sorting: ce,
2915
2932
  defaultSorting: ye,
2916
2933
  resizeThrottle: pe
@@ -2918,11 +2935,11 @@ function pt(t) {
2918
2935
  return /* @__PURE__ */ l.jsxs(
2919
2936
  "table",
2920
2937
  {
2921
- className: `radar-table ${r || ""} ${v}`,
2938
+ className: `radar-table ${r || ""} ${b}`,
2922
2939
  style: {
2923
2940
  tableLayout: c ? "fixed" : "auto",
2924
2941
  width: c ? "max-content" : "auto",
2925
- ...p
2942
+ ...m
2926
2943
  },
2927
2944
  children: [
2928
2945
  /* @__PURE__ */ l.jsx(
@@ -2934,21 +2951,21 @@ function pt(t) {
2934
2951
  resizeable: c,
2935
2952
  onResize: E,
2936
2953
  onResizeStart: q,
2937
- onResizeFrame: z,
2938
- onResizeEnd: P,
2939
- sortIcon: Q,
2954
+ onResizeFrame: P,
2955
+ onResizeEnd: N,
2956
+ sortIcon: ee,
2940
2957
  preset: r,
2941
2958
  headerClassName: j,
2942
- headerStyle: T,
2943
- headerRowClassName: R,
2959
+ headerStyle: R,
2960
+ headerRowClassName: F,
2944
2961
  headerRowStyle: H,
2945
- headerCellClassName: L,
2962
+ headerCellClassName: M,
2946
2963
  headerCellStyle: G,
2947
- headerCellWrapperClassName: ee,
2964
+ headerCellWrapperClassName: te,
2948
2965
  headerCellWrapperStyle: I,
2949
2966
  headerGroupRowClassName: X,
2950
- headerGroupRowStyle: $,
2951
- headerGroupCellClassName: te,
2967
+ headerGroupRowStyle: D,
2968
+ headerGroupCellClassName: Q,
2952
2969
  headerGroupCellStyle: fe,
2953
2970
  headerGroupCellWrapperClassName: ie,
2954
2971
  headerGroupCellWrapperStyle: K,
@@ -2972,22 +2989,22 @@ function pt(t) {
2972
2989
  preset: r,
2973
2990
  customCellRender: g,
2974
2991
  expandIcon: S,
2975
- treeMode: M,
2992
+ treeMode: W,
2976
2993
  expandedRowKeys: ae,
2977
- defaultExpandedRowKeys: m,
2994
+ defaultExpandedRowKeys: p,
2978
2995
  onExpandedRowsChange: _,
2979
- indentSize: x,
2980
- bodyClassName: A,
2996
+ indentSize: y,
2997
+ bodyClassName: z,
2981
2998
  bodyStyle: V,
2982
- bodyRowClassName: F,
2999
+ bodyRowClassName: $,
2983
3000
  bodyRowStyle: le,
2984
- bodyCellClassName: N,
3001
+ bodyCellClassName: A,
2985
3002
  bodyCellStyle: O,
2986
3003
  bodyCellWrapperClassName: k,
2987
3004
  bodyCellWrapperStyle: C,
2988
3005
  noDataRender: ne,
2989
3006
  scrollContainerRef: h,
2990
- recalculateRowHeight: W,
3007
+ recalculateRowHeight: L,
2991
3008
  virtualization: t.virtualization
2992
3009
  }
2993
3010
  )
@@ -2995,7 +3012,7 @@ function pt(t) {
2995
3012
  }
2996
3013
  );
2997
3014
  }
2998
- const mt = ({ children: t, tagType: i = "h1", ...r }) => {
3015
+ const yt = ({ children: t, tagType: i = "h1", ...r }) => {
2999
3016
  if (i === "h1")
3000
3017
  return /* @__PURE__ */ l.jsx(
3001
3018
  "h1",
@@ -3050,7 +3067,7 @@ const mt = ({ children: t, tagType: i = "h1", ...r }) => {
3050
3067
  children: t
3051
3068
  }
3052
3069
  );
3053
- }, xr = ({ children: t, tagType: i = "h2", ...r }) => {
3070
+ }, br = ({ children: t, tagType: i = "h2", ...r }) => {
3054
3071
  if (i === "h1")
3055
3072
  return /* @__PURE__ */ l.jsx(
3056
3073
  "h1",
@@ -3105,10 +3122,10 @@ const mt = ({ children: t, tagType: i = "h1", ...r }) => {
3105
3122
  children: t
3106
3123
  }
3107
3124
  );
3108
- }, kr = Object.assign(mt, { H1: mt, H2: xr }), yt = ({ children: t, fontStyle: i = "medium", ...r }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_m radar-text_${i}`, ...r, children: t }), br = ({ children: t, fontStyle: i = "medium", ...r }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_s radar-text_${i}`, ...r, children: t }), jr = Object.assign(yt, { M: yt, S: br });
3125
+ }, kr = Object.assign(yt, { H1: yt, H2: br }), vt = ({ children: t, fontStyle: i = "medium", ...r }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_m radar-text_${i}`, ...r, children: t }), xr = ({ children: t, fontStyle: i = "medium", ...r }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_s radar-text_${i}`, ...r, children: t }), jr = Object.assign(vt, { M: vt, S: xr });
3109
3126
  export {
3110
3127
  Qt as HeaderCell,
3111
- gt as Pagination,
3128
+ pt as Pagination,
3112
3129
  jr as RadarText,
3113
3130
  kr as RadarTitle,
3114
3131
  Sr as Table,