@scbt-ecom/ui 0.64.1 → 0.66.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/{index-B00qeS0W.js → index-CywQGF6V.js} +9405 -9362
  2. package/dist/index-CywQGF6V.js.map +1 -0
  3. package/dist/shared/types/dicriminatedUnion.d.ts +7 -0
  4. package/dist/shared/types/index.d.ts +2 -0
  5. package/dist/shared/types/keysOf.d.ts +5 -0
  6. package/dist/shared/ui/button/index.d.ts +1 -0
  7. package/dist/shared/ui/button/model/helpers.d.ts +18 -1
  8. package/dist/shared/ui/buttonIcon/ButtonIcon.d.ts +1 -1
  9. package/dist/shared/ui/carousel/CarouselBase.d.ts +29 -0
  10. package/dist/shared/ui/carousel/index.d.ts +3 -0
  11. package/dist/shared/ui/carousel/model/helpers.d.ts +9 -0
  12. package/dist/shared/ui/carousel/model/hooks/index.d.ts +3 -0
  13. package/dist/shared/ui/carousel/model/hooks/useArrowNavigation.d.ts +12 -0
  14. package/dist/shared/ui/carousel/model/hooks/useCarousel.d.ts +12 -0
  15. package/dist/shared/ui/carousel/model/hooks/useDotsNavigation.d.ts +15 -0
  16. package/dist/shared/ui/carousel/model/index.d.ts +3 -0
  17. package/dist/shared/ui/carousel/model/types.d.ts +27 -0
  18. package/dist/shared/ui/carousel/ui/ArrowNavigationButton.d.ts +13 -0
  19. package/dist/shared/ui/carousel/ui/CarouselContent.d.ts +16 -0
  20. package/dist/shared/ui/carousel/ui/CarouselSlide.d.ts +10 -0
  21. package/dist/shared/ui/carousel/ui/ContainerWithNavigation.d.ts +16 -0
  22. package/dist/shared/ui/carousel/ui/DotsNavigations.d.ts +13 -0
  23. package/dist/shared/ui/carousel/ui/index.d.ts +5 -0
  24. package/dist/shared/ui/carousel/ui/slideVariants/SlideFullScreen.d.ts +19 -0
  25. package/dist/shared/ui/carousel/ui/slideVariants/SlideOnlyImage.d.ts +11 -0
  26. package/dist/shared/ui/carousel/ui/slideVariants/SlideProductCard.d.ts +20 -0
  27. package/dist/shared/ui/carousel/ui/slideVariants/index.d.ts +3 -0
  28. package/dist/shared/ui/customLink/model/helpers.d.ts +1 -1
  29. package/dist/shared/ui/index.d.ts +1 -0
  30. package/dist/shared/ui/loader/model/helpers.d.ts +1 -1
  31. package/dist/ui.js +2468 -858
  32. package/dist/ui.js.map +1 -1
  33. package/dist/widget.js +1 -1
  34. package/dist/widget.js.map +1 -1
  35. package/package.json +5 -2
  36. package/dist/index-B00qeS0W.js.map +0 -1
package/dist/ui.js CHANGED
@@ -1,13 +1,13 @@
1
- import { j as p, c as tt, R as nt, B as D, u as ot, a as rt, b as it, d as lt, P as U, e as ye, f as ut, I as st, g as X, h as at, A as gt, H as dt, i as N, k as ct, m as Ce, D as ft, V as pt, O as mt } from "./index-B00qeS0W.js";
2
- import { n as io, C as lo, t as uo, s as so, o as ao, K as go, L as co, N as fo, l as po, p as mo, q as ho, U as So, r as wo, v as Co } from "./index-B00qeS0W.js";
3
- import * as E from "react";
4
- import { forwardRef as V, useState as ne, useEffect as $e, useRef as ht, isValidElement as k, cloneElement as Ve, Children as G } from "react";
5
- import { c as C, T as Re } from "./typeGuards-Bhdr9KYW.js";
6
- import { D as vo, d as xo, f as _o, b as Fo, a as yo } from "./utils-DaXd4sci.js";
7
- import { createPortal as ve } from "react-dom";
8
- import { a as Me } from "./useDebounce-i1sdXecI.js";
9
- import { m as St } from "./mergeRefs-qDToYXtM.js";
10
- const wt = tt(
1
+ import { j as w, c as jn, R as Tn, B as ce, u as Hn, a as Gn, b as zn, d as Bn, P as Be, e as Jt, f as kn, I as qn, g as Ye, h as Un, A as Kn, H as Yt, i as Re, k as Xn, m as Nt, D as Wn, V as Qn, O as Jn } from "./index-CywQGF6V.js";
2
+ import { q as Pi, C as $i, x as Di, w as Ei, r as Li, K as Oi, L as Ai, N as Ni, p as ji, s as Ti, t as Hi, U as Gi, v as zi, l as Bi, o as ki, n as qi, y as Ui } from "./index-CywQGF6V.js";
3
+ import * as ae from "react";
4
+ import { forwardRef as U, useState as fe, useEffect as Se, useRef as lt, useCallback as we, isValidElement as Te, cloneElement as Zt, Children as Me } from "react";
5
+ import { c as R, T as jt } from "./typeGuards-Bhdr9KYW.js";
6
+ import { D as Xi, d as Wi, f as Qi, b as Ji, a as Yi } from "./utils-DaXd4sci.js";
7
+ import { createPortal as Tt } from "react-dom";
8
+ import { a as ke } from "./useDebounce-i1sdXecI.js";
9
+ import { m as Yn } from "./mergeRefs-qDToYXtM.js";
10
+ const Zn = jn(
11
11
  "group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
12
12
  {
13
13
  variants: {
@@ -27,22 +27,22 @@ const wt = tt(
27
27
  size: "lg"
28
28
  }
29
29
  }
30
- ), Un = V(
31
- ({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, l) => /* @__PURE__ */ p.jsx("button", { ref: l, type: r, className: C(wt({ intent: o, size: e }), n == null ? void 0 : n.button), ...i, children: /* @__PURE__ */ p.jsx("span", { className: C(n == null ? void 0 : n.icon), children: t }) })
32
- ), Kn = ({ className: e }) => /* @__PURE__ */ p.jsx("div", { className: C("skeleton-apply h-full w-full", e) }), Xn = ({ isVisible: e, classes: o, children: t, buttonProps: n }) => /* @__PURE__ */ p.jsxs(
33
- nt,
30
+ ), hi = U(
31
+ ({ size: e, intent: o, children: t, classes: n, type: r = "button", ...i }, l) => /* @__PURE__ */ w.jsx("button", { ref: l, type: r, className: R(Zn({ intent: o, size: e }), n == null ? void 0 : n.button), ...i, children: /* @__PURE__ */ w.jsx("span", { className: R(n == null ? void 0 : n.icon), children: t }) })
32
+ ), Si = ({ className: e }) => /* @__PURE__ */ w.jsx("div", { className: R("skeleton-apply h-full w-full", e) }), wi = ({ isVisible: e, classes: o, children: t, buttonProps: n }) => /* @__PURE__ */ w.jsxs(
33
+ Tn,
34
34
  {
35
- className: C(
35
+ className: R(
36
36
  "fixed bottom-0 left-1/2 z-[60] w-full max-w-[604px] -translate-x-1/2 translate-y-0 rounded-t-lg bg-color-white px-6 py-4 shadow-[0px_-6px_8px_0px_#2929290A] transition-transform duration-1000 desktop:hidden",
37
37
  { "translate-y-[100%]": !e },
38
38
  o == null ? void 0 : o.root
39
39
  ),
40
40
  children: [
41
41
  t,
42
- /* @__PURE__ */ p.jsx(D, { size: "lg", className: C("m-auto w-full", o == null ? void 0 : o.button), ...n, children: "Оформить заявку" })
42
+ /* @__PURE__ */ w.jsx(ce, { size: "lg", className: R("m-auto w-full", o == null ? void 0 : o.button), ...n, children: "Оформить заявку" })
43
43
  ]
44
44
  }
45
- ), Wn = {
45
+ ), Ci = {
46
46
  group: {
47
47
  arrows: [
48
48
  "arrows/arrowCircle",
@@ -172,9 +172,9 @@ const wt = tt(
172
172
  "status/iconUser"
173
173
  ]
174
174
  };
175
- var ge = "Tabs", [Ct, Yn] = it(ge, [
176
- ye
177
- ]), Ie = ye(), [Rt, de] = Ct(ge), Pe = E.forwardRef(
175
+ var ht = "Tabs", [eo, vi] = zn(ht, [
176
+ Jt
177
+ ]), en = Jt(), [to, St] = eo(ht), tn = ae.forwardRef(
178
178
  (e, o) => {
179
179
  const {
180
180
  __scopeTabs: t,
@@ -184,28 +184,28 @@ var ge = "Tabs", [Ct, Yn] = it(ge, [
184
184
  orientation: l = "horizontal",
185
185
  dir: u,
186
186
  activationMode: s = "automatic",
187
- ...g
188
- } = e, d = ot(u), [f, c] = rt({
187
+ ...a
188
+ } = e, c = Hn(u), [f, g] = Gn({
189
189
  prop: n,
190
190
  onChange: r,
191
191
  defaultProp: i
192
192
  });
193
- return /* @__PURE__ */ p.jsx(
194
- Rt,
193
+ return /* @__PURE__ */ w.jsx(
194
+ to,
195
195
  {
196
196
  scope: t,
197
- baseId: lt(),
197
+ baseId: Bn(),
198
198
  value: f,
199
- onValueChange: c,
199
+ onValueChange: g,
200
200
  orientation: l,
201
- dir: d,
201
+ dir: c,
202
202
  activationMode: s,
203
- children: /* @__PURE__ */ p.jsx(
204
- U.div,
203
+ children: /* @__PURE__ */ w.jsx(
204
+ Be.div,
205
205
  {
206
- dir: d,
206
+ dir: c,
207
207
  "data-orientation": l,
208
- ...g,
208
+ ...a,
209
209
  ref: o
210
210
  }
211
211
  )
@@ -213,20 +213,20 @@ var ge = "Tabs", [Ct, Yn] = it(ge, [
213
213
  );
214
214
  }
215
215
  );
216
- Pe.displayName = ge;
217
- var Ee = "TabsList", De = E.forwardRef(
216
+ tn.displayName = ht;
217
+ var nn = "TabsList", on = ae.forwardRef(
218
218
  (e, o) => {
219
- const { __scopeTabs: t, loop: n = !0, ...r } = e, i = de(Ee, t), l = Ie(t);
220
- return /* @__PURE__ */ p.jsx(
221
- ut,
219
+ const { __scopeTabs: t, loop: n = !0, ...r } = e, i = St(nn, t), l = en(t);
220
+ return /* @__PURE__ */ w.jsx(
221
+ kn,
222
222
  {
223
223
  asChild: !0,
224
224
  ...l,
225
225
  orientation: i.orientation,
226
226
  dir: i.dir,
227
227
  loop: n,
228
- children: /* @__PURE__ */ p.jsx(
229
- U.div,
228
+ children: /* @__PURE__ */ w.jsx(
229
+ Be.div,
230
230
  {
231
231
  role: "tablist",
232
232
  "aria-orientation": i.orientation,
@@ -238,39 +238,39 @@ var Ee = "TabsList", De = E.forwardRef(
238
238
  );
239
239
  }
240
240
  );
241
- De.displayName = Ee;
242
- var Le = "TabsTrigger", be = E.forwardRef(
241
+ on.displayName = nn;
242
+ var rn = "TabsTrigger", ln = ae.forwardRef(
243
243
  (e, o) => {
244
- const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, l = de(Le, t), u = Ie(t), s = Ge(l.baseId, n), g = je(l.baseId, n), d = n === l.value;
245
- return /* @__PURE__ */ p.jsx(
246
- st,
244
+ const { __scopeTabs: t, value: n, disabled: r = !1, ...i } = e, l = St(rn, t), u = en(t), s = an(l.baseId, n), a = dn(l.baseId, n), c = n === l.value;
245
+ return /* @__PURE__ */ w.jsx(
246
+ qn,
247
247
  {
248
248
  asChild: !0,
249
249
  ...u,
250
250
  focusable: !r,
251
- active: d,
252
- children: /* @__PURE__ */ p.jsx(
253
- U.button,
251
+ active: c,
252
+ children: /* @__PURE__ */ w.jsx(
253
+ Be.button,
254
254
  {
255
255
  type: "button",
256
256
  role: "tab",
257
- "aria-selected": d,
258
- "aria-controls": g,
259
- "data-state": d ? "active" : "inactive",
257
+ "aria-selected": c,
258
+ "aria-controls": a,
259
+ "data-state": c ? "active" : "inactive",
260
260
  "data-disabled": r ? "" : void 0,
261
261
  disabled: r,
262
262
  id: s,
263
263
  ...i,
264
264
  ref: o,
265
- onMouseDown: X(e.onMouseDown, (f) => {
265
+ onMouseDown: Ye(e.onMouseDown, (f) => {
266
266
  !r && f.button === 0 && f.ctrlKey === !1 ? l.onValueChange(n) : f.preventDefault();
267
267
  }),
268
- onKeyDown: X(e.onKeyDown, (f) => {
268
+ onKeyDown: Ye(e.onKeyDown, (f) => {
269
269
  [" ", "Enter"].includes(f.key) && l.onValueChange(n);
270
270
  }),
271
- onFocus: X(e.onFocus, () => {
271
+ onFocus: Ye(e.onFocus, () => {
272
272
  const f = l.activationMode !== "manual";
273
- !d && !r && f && l.onValueChange(n);
273
+ !c && !r && f && l.onValueChange(n);
274
274
  })
275
275
  }
276
276
  )
@@ -278,22 +278,22 @@ var Le = "TabsTrigger", be = E.forwardRef(
278
278
  );
279
279
  }
280
280
  );
281
- be.displayName = Le;
282
- var Ae = "TabsContent", He = E.forwardRef(
281
+ ln.displayName = rn;
282
+ var sn = "TabsContent", un = ae.forwardRef(
283
283
  (e, o) => {
284
- const { __scopeTabs: t, value: n, forceMount: r, children: i, ...l } = e, u = de(Ae, t), s = Ge(u.baseId, n), g = je(u.baseId, n), d = n === u.value, f = E.useRef(d);
285
- return E.useEffect(() => {
286
- const c = requestAnimationFrame(() => f.current = !1);
287
- return () => cancelAnimationFrame(c);
288
- }, []), /* @__PURE__ */ p.jsx(at, { present: r || d, children: ({ present: c }) => /* @__PURE__ */ p.jsx(
289
- U.div,
284
+ const { __scopeTabs: t, value: n, forceMount: r, children: i, ...l } = e, u = St(sn, t), s = an(u.baseId, n), a = dn(u.baseId, n), c = n === u.value, f = ae.useRef(c);
285
+ return ae.useEffect(() => {
286
+ const g = requestAnimationFrame(() => f.current = !1);
287
+ return () => cancelAnimationFrame(g);
288
+ }, []), /* @__PURE__ */ w.jsx(Un, { present: r || c, children: ({ present: g }) => /* @__PURE__ */ w.jsx(
289
+ Be.div,
290
290
  {
291
- "data-state": d ? "active" : "inactive",
291
+ "data-state": c ? "active" : "inactive",
292
292
  "data-orientation": u.orientation,
293
293
  role: "tabpanel",
294
294
  "aria-labelledby": s,
295
- hidden: !c,
296
- id: g,
295
+ hidden: !g,
296
+ id: a,
297
297
  tabIndex: 0,
298
298
  ...l,
299
299
  ref: o,
@@ -301,34 +301,34 @@ var Ae = "TabsContent", He = E.forwardRef(
301
301
  ...e.style,
302
302
  animationDuration: f.current ? "0s" : void 0
303
303
  },
304
- children: c && i
304
+ children: g && i
305
305
  }
306
306
  ) });
307
307
  }
308
308
  );
309
- He.displayName = Ae;
310
- function Ge(e, o) {
309
+ un.displayName = sn;
310
+ function an(e, o) {
311
311
  return `${e}-trigger-${o}`;
312
312
  }
313
- function je(e, o) {
313
+ function dn(e, o) {
314
314
  return `${e}-content-${o}`;
315
315
  }
316
- var vt = Pe, xt = De, _t = be, xe = He;
317
- const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { className: C("flex flex-col gap-4", e == null ? void 0 : e.contentsWrapper), children: o == null ? void 0 : o.map(({ id: t, body: n, accordion: r }) => r && (r != null && r.title) ? /* @__PURE__ */ p.jsx(xe, { value: t, className: C("py-8", e == null ? void 0 : e.content), children: /* @__PURE__ */ p.jsx(gt, { label: r == null ? void 0 : r.title, children: n }) }, t) : /* @__PURE__ */ p.jsx(xe, { value: t, className: C("py-8", e == null ? void 0 : e.content), children: n }, t)) }), Zn = ({ renderContent: e, defaultActiveTabId: o = "1", value: t, onChangeTab: n, classes: r }) => {
316
+ var no = tn, oo = on, ro = ln, Ht = un;
317
+ const io = ({ classes: e, contents: o }) => /* @__PURE__ */ w.jsx("div", { className: R("flex flex-col gap-4", e == null ? void 0 : e.contentsWrapper), children: o == null ? void 0 : o.map(({ id: t, body: n, accordion: r }) => r && (r != null && r.title) ? /* @__PURE__ */ w.jsx(Ht, { value: t, className: R("py-8", e == null ? void 0 : e.content), children: /* @__PURE__ */ w.jsx(Kn, { label: r == null ? void 0 : r.title, children: n }) }, t) : /* @__PURE__ */ w.jsx(Ht, { value: t, className: R("py-8", e == null ? void 0 : e.content), children: n }, t)) }), Ri = ({ renderContent: e, defaultActiveTabId: o = "1", value: t, onChangeTab: n, classes: r }) => {
318
318
  var i;
319
- return /* @__PURE__ */ p.jsxs(
320
- vt,
319
+ return /* @__PURE__ */ w.jsxs(
320
+ no,
321
321
  {
322
322
  value: t,
323
323
  onValueChange: n,
324
324
  defaultValue: o,
325
- className: C("flex flex-col", r == null ? void 0 : r.root),
325
+ className: R("flex flex-col", r == null ? void 0 : r.root),
326
326
  children: [
327
- /* @__PURE__ */ p.jsx(xt, { className: C("flex items-center gap-4", r == null ? void 0 : r.list), children: (i = e == null ? void 0 : e.triggers) == null ? void 0 : i.map(({ id: l, label: u }) => /* @__PURE__ */ p.jsx(
328
- _t,
327
+ /* @__PURE__ */ w.jsx(oo, { className: R("flex items-center gap-4", r == null ? void 0 : r.list), children: (i = e == null ? void 0 : e.triggers) == null ? void 0 : i.map(({ id: l, label: u }) => /* @__PURE__ */ w.jsx(
328
+ ro,
329
329
  {
330
330
  value: l,
331
- className: C(
331
+ className: R(
332
332
  'desk-body-regular-l cursor-pointer rounded-sm bg-color-blue-grey-100 px-4 py-2 text-color-secondary outline outline-2 outline-offset-2 outline-transparent transition-colors hover:bg-color-blue-grey-200 hover:text-color-secondary data-[state="active"]:!bg-color-primary-default data-[state="active"]:!text-color-white',
333
333
  r == null ? void 0 : r.trigger
334
334
  ),
@@ -336,43 +336,43 @@ const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
336
336
  },
337
337
  l
338
338
  )) }),
339
- /* @__PURE__ */ p.jsx(Ft, { contents: e == null ? void 0 : e.contents, classes: r == null ? void 0 : r.tabContent })
339
+ /* @__PURE__ */ w.jsx(io, { contents: e == null ? void 0 : e.contents, classes: r == null ? void 0 : r.tabContent })
340
340
  ]
341
341
  }
342
342
  );
343
- }, yt = {
343
+ }, lo = {
344
344
  initial: { opacity: 0 },
345
345
  animate: { opacity: 1 },
346
346
  exit: { opacity: 0 },
347
347
  transition: { duration: 0.3, ease: "easeInOut" }
348
- }, $t = {
348
+ }, so = {
349
349
  initial: { opacity: 0, scale: 0 },
350
350
  animate: { opacity: 1, scale: 1 },
351
351
  exit: { opacity: 0, scale: 0 },
352
352
  transition: { duration: 0.3, ease: "easeInOut" }
353
- }, Vt = V(
353
+ }, uo = U(
354
354
  ({ children: e, className: o, ...t }, n) => {
355
- const [r, i] = ne(null);
356
- return $e(() => {
355
+ const [r, i] = fe(null);
356
+ return Se(() => {
357
357
  var u;
358
358
  const l = n && "current" in n ? n.current : null;
359
359
  !l || !l.contentDocument || ((u = l.contentDocument) == null ? void 0 : u.readyState) === "complete" && (document.querySelectorAll('head > link[rel="stylesheet"], head > style').forEach((s) => {
360
- var g;
361
- (g = l.contentDocument) == null || g.head.appendChild(s.cloneNode(!0));
360
+ var a;
361
+ (a = l.contentDocument) == null || a.head.appendChild(s.cloneNode(!0));
362
362
  }), i(l.contentDocument.body));
363
- }, []), /* @__PURE__ */ p.jsx("iframe", { id: "modal-preview", ...t, ref: n, className: C("h-[60vh] w-[60vw]", o), children: r && e(r) });
363
+ }, []), /* @__PURE__ */ w.jsx("iframe", { id: "modal-preview", ...t, ref: n, className: R("h-[60vh] w-[60vw]", o), children: r && e(r) });
364
364
  }
365
- ), Mt = ({ title: e, closeModal: o, classes: t }) => /* @__PURE__ */ p.jsxs("div", { className: C("flex items-start justify-between gap-4", t == null ? void 0 : t.header), children: [
366
- e && /* @__PURE__ */ p.jsx(dt, { as: "h3", className: C("flex-1 text-color-dark", t == null ? void 0 : t.title), children: e }),
367
- /* @__PURE__ */ p.jsx(
368
- N,
365
+ ), ao = ({ title: e, closeModal: o, classes: t }) => /* @__PURE__ */ w.jsxs("div", { className: R("flex items-start justify-between gap-4", t == null ? void 0 : t.header), children: [
366
+ e && /* @__PURE__ */ w.jsx(Yt, { as: "h3", className: R("flex-1 text-color-dark", t == null ? void 0 : t.title), children: e }),
367
+ /* @__PURE__ */ w.jsx(
368
+ Re,
369
369
  {
370
370
  onClick: o,
371
371
  name: "general/close",
372
- className: C("size-8 cursor-pointer text-icon-dark-hover", t == null ? void 0 : t.icon)
372
+ className: R("size-8 cursor-pointer text-icon-dark-hover", t == null ? void 0 : t.icon)
373
373
  }
374
374
  )
375
- ] }), Jn = ({
375
+ ] }), xi = ({
376
376
  title: e,
377
377
  children: o,
378
378
  isModalOpen: t,
@@ -383,12 +383,12 @@ const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
383
383
  iframe: u
384
384
  }) => {
385
385
  t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "visible";
386
- const g = ht(null), d = /* @__PURE__ */ p.jsx(ct, { children: t && /* @__PURE__ */ p.jsx(
387
- Ce.div,
386
+ const a = lt(null), c = /* @__PURE__ */ w.jsx(Xn, { children: t && /* @__PURE__ */ w.jsx(
387
+ Nt.div,
388
388
  {
389
389
  tabIndex: -1,
390
390
  onClick: i,
391
- className: C(
391
+ className: R(
392
392
  "fixed inset-0 flex h-screen w-screen items-center justify-center bg-color-overlay",
393
393
  { "z-1000": !n },
394
394
  l == null ? void 0 : l.overlay
@@ -397,43 +397,43 @@ const Ft = ({ classes: e, contents: o }) => /* @__PURE__ */ p.jsx("div", { class
397
397
  f.key === "Escape" && i();
398
398
  },
399
399
  "data-test-id": "modal-overlay",
400
- ...yt,
401
- children: /* @__PURE__ */ p.jsxs(
402
- Ce.div,
400
+ ...lo,
401
+ children: /* @__PURE__ */ w.jsxs(
402
+ Nt.div,
403
403
  {
404
404
  onClick: (f) => f.stopPropagation(),
405
- className: C(
405
+ className: R(
406
406
  "w-full max-w-[600px] rounded-md bg-color-white px-4 py-6 shadow-sm desktop:px-6 desktop:py-8",
407
407
  l == null ? void 0 : l.modal
408
408
  ),
409
409
  "data-test-id": "modal",
410
- ...$t,
410
+ ...so,
411
411
  children: [
412
- /* @__PURE__ */ p.jsx(Mt, { title: e, closeModal: i, classes: l == null ? void 0 : l.modalHeader }),
413
- u ? /* @__PURE__ */ p.jsx(Vt, { ref: g, className: C("mt-4", l == null ? void 0 : l.content), children: (f) => ve(o, f) }) : /* @__PURE__ */ p.jsx("div", { className: C("mt-4", l == null ? void 0 : l.content), children: o })
412
+ /* @__PURE__ */ w.jsx(ao, { title: e, closeModal: i, classes: l == null ? void 0 : l.modalHeader }),
413
+ u ? /* @__PURE__ */ w.jsx(uo, { ref: a, className: R("mt-4", l == null ? void 0 : l.content), children: (f) => Tt(o, f) }) : /* @__PURE__ */ w.jsx("div", { className: R("mt-4", l == null ? void 0 : l.content), children: o })
414
414
  ]
415
415
  }
416
416
  )
417
417
  }
418
418
  ) });
419
- return /* @__PURE__ */ p.jsx(p.Fragment, { children: n ? ve(d, r) : d });
420
- }, Ne = V((e, o) => /* @__PURE__ */ p.jsx("table", { ref: o, ...e }));
421
- Ne.displayName = "Table";
422
- const ze = V((e, o) => /* @__PURE__ */ p.jsx("thead", { ref: o, ...e }));
423
- ze.displayName = "TableHeader";
424
- const Te = V((e, o) => /* @__PURE__ */ p.jsx("tbody", { ref: o, ...e }));
425
- Te.displayName = "TableBody";
426
- const It = V((e, o) => /* @__PURE__ */ p.jsx("tfoot", { ref: o, ...e }));
427
- It.displayName = "TableFooter";
428
- const B = V((e, o) => /* @__PURE__ */ p.jsx("tr", { ref: o, ...e }));
429
- B.displayName = "TableRow";
430
- const Oe = V((e, o) => /* @__PURE__ */ p.jsx("th", { ref: o, ...e }));
431
- Oe.displayName = "TableHead";
432
- const oe = V((e, o) => /* @__PURE__ */ p.jsx("td", { ref: o, ...e }));
433
- oe.displayName = "TableCell";
434
- const Pt = V((e, o) => /* @__PURE__ */ p.jsx("caption", { ref: o, ...e }));
435
- Pt.displayName = "TableCaption";
436
- const Et = ({
419
+ return /* @__PURE__ */ w.jsx(w.Fragment, { children: n ? Tt(c, r) : c });
420
+ }, cn = U((e, o) => /* @__PURE__ */ w.jsx("table", { ref: o, ...e }));
421
+ cn.displayName = "Table";
422
+ const gn = U((e, o) => /* @__PURE__ */ w.jsx("thead", { ref: o, ...e }));
423
+ gn.displayName = "TableHeader";
424
+ const fn = U((e, o) => /* @__PURE__ */ w.jsx("tbody", { ref: o, ...e }));
425
+ fn.displayName = "TableBody";
426
+ const co = U((e, o) => /* @__PURE__ */ w.jsx("tfoot", { ref: o, ...e }));
427
+ co.displayName = "TableFooter";
428
+ const je = U((e, o) => /* @__PURE__ */ w.jsx("tr", { ref: o, ...e }));
429
+ je.displayName = "TableRow";
430
+ const pn = U((e, o) => /* @__PURE__ */ w.jsx("th", { ref: o, ...e }));
431
+ pn.displayName = "TableHead";
432
+ const st = U((e, o) => /* @__PURE__ */ w.jsx("td", { ref: o, ...e }));
433
+ st.displayName = "TableCell";
434
+ const go = U((e, o) => /* @__PURE__ */ w.jsx("caption", { ref: o, ...e }));
435
+ go.displayName = "TableCaption";
436
+ const fo = ({
437
437
  children: e,
438
438
  canSort: o,
439
439
  toggleSorting: t,
@@ -441,21 +441,21 @@ const Et = ({
441
441
  isSorted: r,
442
442
  classes: i
443
443
  }) => {
444
- const { root: l, content: u, icon: s } = i || {}, { isDesktop: g } = Me(), d = o && g;
445
- return /* @__PURE__ */ p.jsxs(
444
+ const { root: l, content: u, icon: s } = i || {}, { isDesktop: a } = ke(), c = o && a;
445
+ return /* @__PURE__ */ w.jsxs(
446
446
  "button",
447
447
  {
448
448
  type: "button",
449
- className: C("desk-body-regular-l flex items-center justify-center gap-x-2 text-color-secondary", l),
449
+ className: R("desk-body-regular-l flex items-center justify-center gap-x-2 text-color-secondary", l),
450
450
  onClick: () => t(!r),
451
- disabled: !d,
451
+ disabled: !c,
452
452
  children: [
453
- /* @__PURE__ */ p.jsx("span", { className: C("", u), children: e }),
454
- d && /* @__PURE__ */ p.jsx(
455
- N,
453
+ /* @__PURE__ */ w.jsx("span", { className: R("", u), children: e }),
454
+ c && /* @__PURE__ */ w.jsx(
455
+ Re,
456
456
  {
457
457
  name: "arrows/arrowRight",
458
- className: C(
458
+ className: R(
459
459
  "size-4 rotate-90 text-color-current duration-100",
460
460
  {
461
461
  "-rotate-90": !n
@@ -478,7 +478,7 @@ const Et = ({
478
478
  *
479
479
  * @license MIT
480
480
  */
481
- function Dt() {
481
+ function po() {
482
482
  return {
483
483
  accessor: (e, o) => typeof e == "function" ? {
484
484
  ...o,
@@ -491,24 +491,24 @@ function Dt() {
491
491
  group: (e) => e
492
492
  };
493
493
  }
494
- function L(e, o) {
494
+ function ge(e, o) {
495
495
  return typeof e == "function" ? e(o) : e;
496
496
  }
497
- function $(e, o) {
497
+ function q(e, o) {
498
498
  return (t) => {
499
499
  o.setState((n) => ({
500
500
  ...n,
501
- [e]: L(t, n[e])
501
+ [e]: ge(t, n[e])
502
502
  }));
503
503
  };
504
504
  }
505
- function K(e) {
505
+ function qe(e) {
506
506
  return e instanceof Function;
507
507
  }
508
- function Lt(e) {
508
+ function mo(e) {
509
509
  return Array.isArray(e) && e.every((o) => typeof o == "number");
510
510
  }
511
- function bt(e, o) {
511
+ function ho(e, o) {
512
512
  const t = [], n = (r) => {
513
513
  r.forEach((i) => {
514
514
  t.push(i);
@@ -518,31 +518,31 @@ function bt(e, o) {
518
518
  };
519
519
  return n(e), t;
520
520
  }
521
- function S(e, o, t) {
521
+ function y(e, o, t) {
522
522
  let n = [], r;
523
523
  return (i) => {
524
524
  let l;
525
525
  t.key && t.debug && (l = Date.now());
526
526
  const u = e(i);
527
- if (!(u.length !== n.length || u.some((d, f) => n[f] !== d)))
527
+ if (!(u.length !== n.length || u.some((c, f) => n[f] !== c)))
528
528
  return r;
529
529
  n = u;
530
- let g;
531
- if (t.key && t.debug && (g = Date.now()), r = o(...u), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
532
- const d = Math.round((Date.now() - l) * 100) / 100, f = Math.round((Date.now() - g) * 100) / 100, c = f / 16, a = (m, h) => {
533
- for (m = String(m); m.length < h; )
534
- m = " " + m;
535
- return m;
530
+ let a;
531
+ if (t.key && t.debug && (a = Date.now()), r = o(...u), t == null || t.onChange == null || t.onChange(r), t.key && t.debug && t != null && t.debug()) {
532
+ const c = Math.round((Date.now() - l) * 100) / 100, f = Math.round((Date.now() - a) * 100) / 100, g = f / 16, d = (p, m) => {
533
+ for (p = String(p); p.length < m; )
534
+ p = " " + p;
535
+ return p;
536
536
  };
537
- console.info(`%c⏱ ${a(f, 5)} /${a(d, 5)} ms`, `
537
+ console.info(`%c⏱ ${d(f, 5)} /${d(c, 5)} ms`, `
538
538
  font-size: .6rem;
539
539
  font-weight: bold;
540
- color: hsl(${Math.max(0, Math.min(120 - 120 * c, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
540
+ color: hsl(${Math.max(0, Math.min(120 - 120 * g, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
541
541
  }
542
542
  return r;
543
543
  };
544
544
  }
545
- function w(e, o, t, n) {
545
+ function F(e, o, t, n) {
546
546
  return {
547
547
  debug: () => {
548
548
  var r;
@@ -552,7 +552,7 @@ function w(e, o, t, n) {
552
552
  onChange: n
553
553
  };
554
554
  }
555
- function At(e, o, t, n) {
555
+ function So(e, o, t, n) {
556
556
  const r = () => {
557
557
  var l;
558
558
  return (l = i.getValue()) != null ? l : e.options.renderFallbackValue;
@@ -562,61 +562,61 @@ function At(e, o, t, n) {
562
562
  column: t,
563
563
  getValue: () => o.getValue(n),
564
564
  renderValue: r,
565
- getContext: S(() => [e, t, o, i], (l, u, s, g) => ({
565
+ getContext: y(() => [e, t, o, i], (l, u, s, a) => ({
566
566
  table: l,
567
567
  column: u,
568
568
  row: s,
569
- cell: g,
570
- getValue: g.getValue,
571
- renderValue: g.renderValue
572
- }), w(e.options, "debugCells", "cell.getContext"))
569
+ cell: a,
570
+ getValue: a.getValue,
571
+ renderValue: a.renderValue
572
+ }), F(e.options, "debugCells", "cell.getContext"))
573
573
  };
574
574
  return e._features.forEach((l) => {
575
575
  l.createCell == null || l.createCell(i, t, o, e);
576
576
  }, {}), i;
577
577
  }
578
- function Ht(e, o, t, n) {
578
+ function wo(e, o, t, n) {
579
579
  var r, i;
580
580
  const u = {
581
581
  ...e._getDefaultColumnDef(),
582
582
  ...o
583
583
  }, s = u.accessorKey;
584
- let g = (r = (i = u.id) != null ? i : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? r : typeof u.header == "string" ? u.header : void 0, d;
585
- if (u.accessorFn ? d = u.accessorFn : s && (s.includes(".") ? d = (c) => {
586
- let a = c;
587
- for (const h of s.split(".")) {
588
- var m;
589
- a = (m = a) == null ? void 0 : m[h], process.env.NODE_ENV !== "production" && a === void 0 && console.warn(`"${h}" in deeply nested key "${s}" returned undefined.`);
584
+ let a = (r = (i = u.id) != null ? i : s ? typeof String.prototype.replaceAll == "function" ? s.replaceAll(".", "_") : s.replace(/\./g, "_") : void 0) != null ? r : typeof u.header == "string" ? u.header : void 0, c;
585
+ if (u.accessorFn ? c = u.accessorFn : s && (s.includes(".") ? c = (g) => {
586
+ let d = g;
587
+ for (const m of s.split(".")) {
588
+ var p;
589
+ d = (p = d) == null ? void 0 : p[m], process.env.NODE_ENV !== "production" && d === void 0 && console.warn(`"${m}" in deeply nested key "${s}" returned undefined.`);
590
590
  }
591
- return a;
592
- } : d = (c) => c[u.accessorKey]), !g)
591
+ return d;
592
+ } : c = (g) => g[u.accessorKey]), !a)
593
593
  throw process.env.NODE_ENV !== "production" ? new Error(u.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header") : new Error();
594
594
  let f = {
595
- id: `${String(g)}`,
596
- accessorFn: d,
595
+ id: `${String(a)}`,
596
+ accessorFn: c,
597
597
  parent: n,
598
598
  depth: t,
599
599
  columnDef: u,
600
600
  columns: [],
601
- getFlatColumns: S(() => [!0], () => {
602
- var c;
603
- return [f, ...(c = f.columns) == null ? void 0 : c.flatMap((a) => a.getFlatColumns())];
604
- }, w(e.options, "debugColumns", "column.getFlatColumns")),
605
- getLeafColumns: S(() => [e._getOrderColumnsFn()], (c) => {
606
- var a;
607
- if ((a = f.columns) != null && a.length) {
608
- let m = f.columns.flatMap((h) => h.getLeafColumns());
609
- return c(m);
601
+ getFlatColumns: y(() => [!0], () => {
602
+ var g;
603
+ return [f, ...(g = f.columns) == null ? void 0 : g.flatMap((d) => d.getFlatColumns())];
604
+ }, F(e.options, "debugColumns", "column.getFlatColumns")),
605
+ getLeafColumns: y(() => [e._getOrderColumnsFn()], (g) => {
606
+ var d;
607
+ if ((d = f.columns) != null && d.length) {
608
+ let p = f.columns.flatMap((m) => m.getLeafColumns());
609
+ return g(p);
610
610
  }
611
611
  return [f];
612
- }, w(e.options, "debugColumns", "column.getLeafColumns"))
612
+ }, F(e.options, "debugColumns", "column.getLeafColumns"))
613
613
  };
614
- for (const c of e._features)
615
- c.createColumn == null || c.createColumn(f, e);
614
+ for (const g of e._features)
615
+ g.createColumn == null || g.createColumn(f, e);
616
616
  return f;
617
617
  }
618
- const F = "debugHeaders";
619
- function _e(e, o, t) {
618
+ const H = "debugHeaders";
619
+ function Gt(e, o, t) {
620
620
  var n;
621
621
  let i = {
622
622
  id: (n = t.id) != null ? n : o.id,
@@ -645,92 +645,92 @@ function _e(e, o, t) {
645
645
  l.createHeader == null || l.createHeader(i, e);
646
646
  }), i;
647
647
  }
648
- const Gt = {
648
+ const Co = {
649
649
  createTable: (e) => {
650
- e.getHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
650
+ e.getHeaderGroups = y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
651
651
  var i, l;
652
- const u = (i = n == null ? void 0 : n.map((f) => t.find((c) => c.id === f)).filter(Boolean)) != null ? i : [], s = (l = r == null ? void 0 : r.map((f) => t.find((c) => c.id === f)).filter(Boolean)) != null ? l : [], g = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
653
- return z(o, [...u, ...g, ...s], e);
654
- }, w(e.options, F, "getHeaderGroups")), e.getCenterHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), z(o, t, e, "center")), w(e.options, F, "getCenterHeaderGroups")), e.getLeftHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
652
+ const u = (i = n == null ? void 0 : n.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? i : [], s = (l = r == null ? void 0 : r.map((f) => t.find((g) => g.id === f)).filter(Boolean)) != null ? l : [], a = t.filter((f) => !(n != null && n.includes(f.id)) && !(r != null && r.includes(f.id)));
653
+ return Oe(o, [...u, ...a, ...s], e);
654
+ }, F(e.options, H, "getHeaderGroups")), e.getCenterHeaderGroups = y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), Oe(o, t, e, "center")), F(e.options, H, "getCenterHeaderGroups")), e.getLeftHeaderGroups = y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
655
655
  var r;
656
656
  const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
657
- return z(o, i, e, "left");
658
- }, w(e.options, F, "getLeftHeaderGroups")), e.getRightHeaderGroups = S(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
657
+ return Oe(o, i, e, "left");
658
+ }, F(e.options, H, "getLeftHeaderGroups")), e.getRightHeaderGroups = y(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
659
659
  var r;
660
660
  const i = (r = n == null ? void 0 : n.map((l) => t.find((u) => u.id === l)).filter(Boolean)) != null ? r : [];
661
- return z(o, i, e, "right");
662
- }, w(e.options, F, "getRightHeaderGroups")), e.getFooterGroups = S(() => [e.getHeaderGroups()], (o) => [...o].reverse(), w(e.options, F, "getFooterGroups")), e.getLeftFooterGroups = S(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), w(e.options, F, "getLeftFooterGroups")), e.getCenterFooterGroups = S(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), w(e.options, F, "getCenterFooterGroups")), e.getRightFooterGroups = S(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), w(e.options, F, "getRightFooterGroups")), e.getFlatHeaders = S(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, F, "getFlatHeaders")), e.getLeftFlatHeaders = S(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, F, "getLeftFlatHeaders")), e.getCenterFlatHeaders = S(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, F, "getCenterFlatHeaders")), e.getRightFlatHeaders = S(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), w(e.options, F, "getRightFlatHeaders")), e.getCenterLeafHeaders = S(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
661
+ return Oe(o, i, e, "right");
662
+ }, F(e.options, H, "getRightHeaderGroups")), e.getFooterGroups = y(() => [e.getHeaderGroups()], (o) => [...o].reverse(), F(e.options, H, "getFooterGroups")), e.getLeftFooterGroups = y(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), F(e.options, H, "getLeftFooterGroups")), e.getCenterFooterGroups = y(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), F(e.options, H, "getCenterFooterGroups")), e.getRightFooterGroups = y(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), F(e.options, H, "getRightFooterGroups")), e.getFlatHeaders = y(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), F(e.options, H, "getFlatHeaders")), e.getLeftFlatHeaders = y(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), F(e.options, H, "getLeftFlatHeaders")), e.getCenterFlatHeaders = y(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), F(e.options, H, "getCenterFlatHeaders")), e.getRightFlatHeaders = y(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), F(e.options, H, "getRightFlatHeaders")), e.getCenterLeafHeaders = y(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
663
663
  var n;
664
664
  return !((n = t.subHeaders) != null && n.length);
665
- }), w(e.options, F, "getCenterLeafHeaders")), e.getLeftLeafHeaders = S(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
665
+ }), F(e.options, H, "getCenterLeafHeaders")), e.getLeftLeafHeaders = y(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
666
666
  var n;
667
667
  return !((n = t.subHeaders) != null && n.length);
668
- }), w(e.options, F, "getLeftLeafHeaders")), e.getRightLeafHeaders = S(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
668
+ }), F(e.options, H, "getLeftLeafHeaders")), e.getRightLeafHeaders = y(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
669
669
  var n;
670
670
  return !((n = t.subHeaders) != null && n.length);
671
- }), w(e.options, F, "getRightLeafHeaders")), e.getLeafHeaders = S(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
672
- var r, i, l, u, s, g;
673
- return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (u = t[0]) == null ? void 0 : u.headers) != null ? l : [], ...(s = (g = n[0]) == null ? void 0 : g.headers) != null ? s : []].map((d) => d.getLeafHeaders()).flat();
674
- }, w(e.options, F, "getLeafHeaders"));
671
+ }), F(e.options, H, "getRightLeafHeaders")), e.getLeafHeaders = y(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
672
+ var r, i, l, u, s, a;
673
+ return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (u = t[0]) == null ? void 0 : u.headers) != null ? l : [], ...(s = (a = n[0]) == null ? void 0 : a.headers) != null ? s : []].map((c) => c.getLeafHeaders()).flat();
674
+ }, F(e.options, H, "getLeafHeaders"));
675
675
  }
676
676
  };
677
- function z(e, o, t, n) {
677
+ function Oe(e, o, t, n) {
678
678
  var r, i;
679
679
  let l = 0;
680
- const u = function(c, a) {
681
- a === void 0 && (a = 1), l = Math.max(l, a), c.filter((m) => m.getIsVisible()).forEach((m) => {
682
- var h;
683
- (h = m.columns) != null && h.length && u(m.columns, a + 1);
680
+ const u = function(g, d) {
681
+ d === void 0 && (d = 1), l = Math.max(l, d), g.filter((p) => p.getIsVisible()).forEach((p) => {
682
+ var m;
683
+ (m = p.columns) != null && m.length && u(p.columns, d + 1);
684
684
  }, 0);
685
685
  };
686
686
  u(e);
687
687
  let s = [];
688
- const g = (c, a) => {
689
- const m = {
690
- depth: a,
691
- id: [n, `${a}`].filter(Boolean).join("_"),
688
+ const a = (g, d) => {
689
+ const p = {
690
+ depth: d,
691
+ id: [n, `${d}`].filter(Boolean).join("_"),
692
692
  headers: []
693
- }, h = [];
694
- c.forEach((R) => {
695
- const v = [...h].reverse()[0], x = R.column.depth === m.depth;
696
- let _, I = !1;
697
- if (x && R.column.parent ? _ = R.column.parent : (_ = R.column, I = !0), v && (v == null ? void 0 : v.column) === _)
698
- v.subHeaders.push(R);
693
+ }, m = [];
694
+ g.forEach((S) => {
695
+ const h = [...m].reverse()[0], C = S.column.depth === p.depth;
696
+ let v, _ = !1;
697
+ if (C && S.column.parent ? v = S.column.parent : (v = S.column, _ = !0), h && (h == null ? void 0 : h.column) === v)
698
+ h.subHeaders.push(S);
699
699
  else {
700
- const y = _e(t, _, {
701
- id: [n, a, _.id, R == null ? void 0 : R.id].filter(Boolean).join("_"),
702
- isPlaceholder: I,
703
- placeholderId: I ? `${h.filter((A) => A.column === _).length}` : void 0,
704
- depth: a,
705
- index: h.length
700
+ const I = Gt(t, v, {
701
+ id: [n, d, v.id, S == null ? void 0 : S.id].filter(Boolean).join("_"),
702
+ isPlaceholder: _,
703
+ placeholderId: _ ? `${m.filter((b) => b.column === v).length}` : void 0,
704
+ depth: d,
705
+ index: m.length
706
706
  });
707
- y.subHeaders.push(R), h.push(y);
707
+ I.subHeaders.push(S), m.push(I);
708
708
  }
709
- m.headers.push(R), R.headerGroup = m;
710
- }), s.push(m), a > 0 && g(h, a - 1);
711
- }, d = o.map((c, a) => _e(t, c, {
709
+ p.headers.push(S), S.headerGroup = p;
710
+ }), s.push(p), d > 0 && a(m, d - 1);
711
+ }, c = o.map((g, d) => Gt(t, g, {
712
712
  depth: l,
713
- index: a
713
+ index: d
714
714
  }));
715
- g(d, l - 1), s.reverse();
716
- const f = (c) => c.filter((m) => m.column.getIsVisible()).map((m) => {
717
- let h = 0, R = 0, v = [0];
718
- m.subHeaders && m.subHeaders.length ? (v = [], f(m.subHeaders).forEach((_) => {
715
+ a(c, l - 1), s.reverse();
716
+ const f = (g) => g.filter((p) => p.column.getIsVisible()).map((p) => {
717
+ let m = 0, S = 0, h = [0];
718
+ p.subHeaders && p.subHeaders.length ? (h = [], f(p.subHeaders).forEach((v) => {
719
719
  let {
720
- colSpan: I,
721
- rowSpan: y
722
- } = _;
723
- h += I, v.push(y);
724
- })) : h = 1;
725
- const x = Math.min(...v);
726
- return R = R + x, m.colSpan = h, m.rowSpan = R, {
727
- colSpan: h,
728
- rowSpan: R
720
+ colSpan: _,
721
+ rowSpan: I
722
+ } = v;
723
+ m += _, h.push(I);
724
+ })) : m = 1;
725
+ const C = Math.min(...h);
726
+ return S = S + C, p.colSpan = m, p.rowSpan = S, {
727
+ colSpan: m,
728
+ rowSpan: S
729
729
  };
730
730
  });
731
731
  return f((r = (i = s[0]) == null ? void 0 : i.headers) != null ? r : []), s;
732
732
  }
733
- const ce = (e, o, t, n, r, i, l) => {
733
+ const wt = (e, o, t, n, r, i, l) => {
734
734
  let u = {
735
735
  id: o,
736
736
  index: n,
@@ -742,89 +742,89 @@ const ce = (e, o, t, n, r, i, l) => {
742
742
  getValue: (s) => {
743
743
  if (u._valuesCache.hasOwnProperty(s))
744
744
  return u._valuesCache[s];
745
- const g = e.getColumn(s);
746
- if (g != null && g.accessorFn)
747
- return u._valuesCache[s] = g.accessorFn(u.original, n), u._valuesCache[s];
745
+ const a = e.getColumn(s);
746
+ if (a != null && a.accessorFn)
747
+ return u._valuesCache[s] = a.accessorFn(u.original, n), u._valuesCache[s];
748
748
  },
749
749
  getUniqueValues: (s) => {
750
750
  if (u._uniqueValuesCache.hasOwnProperty(s))
751
751
  return u._uniqueValuesCache[s];
752
- const g = e.getColumn(s);
753
- if (g != null && g.accessorFn)
754
- return g.columnDef.getUniqueValues ? (u._uniqueValuesCache[s] = g.columnDef.getUniqueValues(u.original, n), u._uniqueValuesCache[s]) : (u._uniqueValuesCache[s] = [u.getValue(s)], u._uniqueValuesCache[s]);
752
+ const a = e.getColumn(s);
753
+ if (a != null && a.accessorFn)
754
+ return a.columnDef.getUniqueValues ? (u._uniqueValuesCache[s] = a.columnDef.getUniqueValues(u.original, n), u._uniqueValuesCache[s]) : (u._uniqueValuesCache[s] = [u.getValue(s)], u._uniqueValuesCache[s]);
755
755
  },
756
756
  renderValue: (s) => {
757
- var g;
758
- return (g = u.getValue(s)) != null ? g : e.options.renderFallbackValue;
757
+ var a;
758
+ return (a = u.getValue(s)) != null ? a : e.options.renderFallbackValue;
759
759
  },
760
760
  subRows: [],
761
- getLeafRows: () => bt(u.subRows, (s) => s.subRows),
761
+ getLeafRows: () => ho(u.subRows, (s) => s.subRows),
762
762
  getParentRow: () => u.parentId ? e.getRow(u.parentId, !0) : void 0,
763
763
  getParentRows: () => {
764
- let s = [], g = u;
764
+ let s = [], a = u;
765
765
  for (; ; ) {
766
- const d = g.getParentRow();
767
- if (!d) break;
768
- s.push(d), g = d;
766
+ const c = a.getParentRow();
767
+ if (!c) break;
768
+ s.push(c), a = c;
769
769
  }
770
770
  return s.reverse();
771
771
  },
772
- getAllCells: S(() => [e.getAllLeafColumns()], (s) => s.map((g) => At(e, u, g, g.id)), w(e.options, "debugRows", "getAllCells")),
773
- _getAllCellsByColumnId: S(() => [u.getAllCells()], (s) => s.reduce((g, d) => (g[d.column.id] = d, g), {}), w(e.options, "debugRows", "getAllCellsByColumnId"))
772
+ getAllCells: y(() => [e.getAllLeafColumns()], (s) => s.map((a) => So(e, u, a, a.id)), F(e.options, "debugRows", "getAllCells")),
773
+ _getAllCellsByColumnId: y(() => [u.getAllCells()], (s) => s.reduce((a, c) => (a[c.column.id] = c, a), {}), F(e.options, "debugRows", "getAllCellsByColumnId"))
774
774
  };
775
775
  for (let s = 0; s < e._features.length; s++) {
776
- const g = e._features[s];
777
- g == null || g.createRow == null || g.createRow(u, e);
776
+ const a = e._features[s];
777
+ a == null || a.createRow == null || a.createRow(u, e);
778
778
  }
779
779
  return u;
780
- }, jt = {
780
+ }, vo = {
781
781
  createColumn: (e, o) => {
782
782
  e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
783
783
  if (e._getFacetedMinMaxValues)
784
784
  return e._getFacetedMinMaxValues();
785
785
  };
786
786
  }
787
- }, Be = (e, o, t) => {
787
+ }, mn = (e, o, t) => {
788
788
  var n, r;
789
789
  const i = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
790
790
  return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
791
791
  };
792
- Be.autoRemove = (e) => M(e);
793
- const ke = (e, o, t) => {
792
+ mn.autoRemove = (e) => Z(e);
793
+ const hn = (e, o, t) => {
794
794
  var n;
795
795
  return !!(!((n = e.getValue(o)) == null || (n = n.toString()) == null) && n.includes(t));
796
796
  };
797
- ke.autoRemove = (e) => M(e);
798
- const qe = (e, o, t) => {
797
+ hn.autoRemove = (e) => Z(e);
798
+ const Sn = (e, o, t) => {
799
799
  var n;
800
800
  return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
801
801
  };
802
- qe.autoRemove = (e) => M(e);
803
- const Ue = (e, o, t) => {
802
+ Sn.autoRemove = (e) => Z(e);
803
+ const wn = (e, o, t) => {
804
804
  var n;
805
805
  return (n = e.getValue(o)) == null ? void 0 : n.includes(t);
806
806
  };
807
- Ue.autoRemove = (e) => M(e);
808
- const Ke = (e, o, t) => !t.some((n) => {
807
+ wn.autoRemove = (e) => Z(e);
808
+ const Cn = (e, o, t) => !t.some((n) => {
809
809
  var r;
810
810
  return !((r = e.getValue(o)) != null && r.includes(n));
811
811
  });
812
- Ke.autoRemove = (e) => M(e) || !(e != null && e.length);
813
- const Xe = (e, o, t) => t.some((n) => {
812
+ Cn.autoRemove = (e) => Z(e) || !(e != null && e.length);
813
+ const vn = (e, o, t) => t.some((n) => {
814
814
  var r;
815
815
  return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
816
816
  });
817
- Xe.autoRemove = (e) => M(e) || !(e != null && e.length);
818
- const We = (e, o, t) => e.getValue(o) === t;
819
- We.autoRemove = (e) => M(e);
820
- const Ye = (e, o, t) => e.getValue(o) == t;
821
- Ye.autoRemove = (e) => M(e);
822
- const fe = (e, o, t) => {
817
+ vn.autoRemove = (e) => Z(e) || !(e != null && e.length);
818
+ const Rn = (e, o, t) => e.getValue(o) === t;
819
+ Rn.autoRemove = (e) => Z(e);
820
+ const xn = (e, o, t) => e.getValue(o) == t;
821
+ xn.autoRemove = (e) => Z(e);
822
+ const Ct = (e, o, t) => {
823
823
  let [n, r] = t;
824
824
  const i = e.getValue(o);
825
825
  return i >= n && i <= r;
826
826
  };
827
- fe.resolveFilterValue = (e) => {
827
+ Ct.resolveFilterValue = (e) => {
828
828
  let [o, t] = e, n = typeof o != "number" ? parseFloat(o) : o, r = typeof t != "number" ? parseFloat(t) : t, i = o === null || Number.isNaN(n) ? -1 / 0 : n, l = t === null || Number.isNaN(r) ? 1 / 0 : r;
829
829
  if (i > l) {
830
830
  const u = i;
@@ -832,22 +832,22 @@ fe.resolveFilterValue = (e) => {
832
832
  }
833
833
  return [i, l];
834
834
  };
835
- fe.autoRemove = (e) => M(e) || M(e[0]) && M(e[1]);
836
- const P = {
837
- includesString: Be,
838
- includesStringSensitive: ke,
839
- equalsString: qe,
840
- arrIncludes: Ue,
841
- arrIncludesAll: Ke,
842
- arrIncludesSome: Xe,
843
- equals: We,
844
- weakEquals: Ye,
845
- inNumberRange: fe
835
+ Ct.autoRemove = (e) => Z(e) || Z(e[0]) && Z(e[1]);
836
+ const ue = {
837
+ includesString: mn,
838
+ includesStringSensitive: hn,
839
+ equalsString: Sn,
840
+ arrIncludes: wn,
841
+ arrIncludesAll: Cn,
842
+ arrIncludesSome: vn,
843
+ equals: Rn,
844
+ weakEquals: xn,
845
+ inNumberRange: Ct
846
846
  };
847
- function M(e) {
847
+ function Z(e) {
848
848
  return e == null || e === "";
849
849
  }
850
- const Nt = {
850
+ const Ro = {
851
851
  getDefaultColumnDef: () => ({
852
852
  filterFn: "auto"
853
853
  }),
@@ -856,19 +856,19 @@ const Nt = {
856
856
  ...e
857
857
  }),
858
858
  getDefaultOptions: (e) => ({
859
- onColumnFiltersChange: $("columnFilters", e),
859
+ onColumnFiltersChange: q("columnFilters", e),
860
860
  filterFromLeafRows: !1,
861
861
  maxLeafRowFilterDepth: 100
862
862
  }),
863
863
  createColumn: (e, o) => {
864
864
  e.getAutoFilterFn = () => {
865
865
  const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
866
- return typeof n == "string" ? P.includesString : typeof n == "number" ? P.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? P.equals : Array.isArray(n) ? P.arrIncludes : P.weakEquals;
866
+ return typeof n == "string" ? ue.includesString : typeof n == "number" ? ue.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? ue.equals : Array.isArray(n) ? ue.arrIncludes : ue.weakEquals;
867
867
  }, e.getFilterFn = () => {
868
868
  var t, n;
869
- return K(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
869
+ return qe(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : (
870
870
  // @ts-ignore
871
- (t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : P[e.columnDef.filterFn]
871
+ (t = (n = o.options.filterFns) == null ? void 0 : n[e.columnDef.filterFn]) != null ? t : ue[e.columnDef.filterFn]
872
872
  );
873
873
  }, e.getCanFilter = () => {
874
874
  var t, n, r;
@@ -881,18 +881,18 @@ const Nt = {
881
881
  return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
882
882
  }, e.setFilterValue = (t) => {
883
883
  o.setColumnFilters((n) => {
884
- const r = e.getFilterFn(), i = n == null ? void 0 : n.find((d) => d.id === e.id), l = L(t, i ? i.value : void 0);
885
- if (Fe(r, l, e)) {
884
+ const r = e.getFilterFn(), i = n == null ? void 0 : n.find((c) => c.id === e.id), l = ge(t, i ? i.value : void 0);
885
+ if (zt(r, l, e)) {
886
886
  var u;
887
- return (u = n == null ? void 0 : n.filter((d) => d.id !== e.id)) != null ? u : [];
887
+ return (u = n == null ? void 0 : n.filter((c) => c.id !== e.id)) != null ? u : [];
888
888
  }
889
889
  const s = {
890
890
  id: e.id,
891
891
  value: l
892
892
  };
893
893
  if (i) {
894
- var g;
895
- return (g = n == null ? void 0 : n.map((d) => d.id === e.id ? s : d)) != null ? g : [];
894
+ var a;
895
+ return (a = n == null ? void 0 : n.map((c) => c.id === e.id ? s : c)) != null ? a : [];
896
896
  }
897
897
  return n != null && n.length ? [...n, s] : [s];
898
898
  });
@@ -905,11 +905,11 @@ const Nt = {
905
905
  e.setColumnFilters = (o) => {
906
906
  const t = e.getAllLeafColumns(), n = (r) => {
907
907
  var i;
908
- return (i = L(o, r)) == null ? void 0 : i.filter((l) => {
908
+ return (i = ge(o, r)) == null ? void 0 : i.filter((l) => {
909
909
  const u = t.find((s) => s.id === l.id);
910
910
  if (u) {
911
911
  const s = u.getFilterFn();
912
- if (Fe(s, l.value, u))
912
+ if (zt(s, l.value, u))
913
913
  return !1;
914
914
  }
915
915
  return !0;
@@ -922,57 +922,57 @@ const Nt = {
922
922
  }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
923
923
  }
924
924
  };
925
- function Fe(e, o, t) {
925
+ function zt(e, o, t) {
926
926
  return (e && e.autoRemove ? e.autoRemove(o, t) : !1) || typeof o > "u" || typeof o == "string" && !o;
927
927
  }
928
- const zt = (e, o, t) => t.reduce((n, r) => {
928
+ const xo = (e, o, t) => t.reduce((n, r) => {
929
929
  const i = r.getValue(e);
930
930
  return n + (typeof i == "number" ? i : 0);
931
- }, 0), Tt = (e, o, t) => {
931
+ }, 0), yo = (e, o, t) => {
932
932
  let n;
933
933
  return t.forEach((r) => {
934
934
  const i = r.getValue(e);
935
935
  i != null && (n > i || n === void 0 && i >= i) && (n = i);
936
936
  }), n;
937
- }, Ot = (e, o, t) => {
937
+ }, Fo = (e, o, t) => {
938
938
  let n;
939
939
  return t.forEach((r) => {
940
940
  const i = r.getValue(e);
941
941
  i != null && (n < i || n === void 0 && i >= i) && (n = i);
942
942
  }), n;
943
- }, Bt = (e, o, t) => {
943
+ }, _o = (e, o, t) => {
944
944
  let n, r;
945
945
  return t.forEach((i) => {
946
946
  const l = i.getValue(e);
947
947
  l != null && (n === void 0 ? l >= l && (n = r = l) : (n > l && (n = l), r < l && (r = l)));
948
948
  }), [n, r];
949
- }, kt = (e, o) => {
949
+ }, Io = (e, o) => {
950
950
  let t = 0, n = 0;
951
951
  if (o.forEach((r) => {
952
952
  let i = r.getValue(e);
953
953
  i != null && (i = +i) >= i && (++t, n += i);
954
954
  }), t) return n / t;
955
- }, qt = (e, o) => {
955
+ }, Mo = (e, o) => {
956
956
  if (!o.length)
957
957
  return;
958
958
  const t = o.map((i) => i.getValue(e));
959
- if (!Lt(t))
959
+ if (!mo(t))
960
960
  return;
961
961
  if (t.length === 1)
962
962
  return t[0];
963
963
  const n = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
964
964
  return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
965
- }, Ut = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), Kt = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Xt = (e, o) => o.length, W = {
966
- sum: zt,
967
- min: Tt,
968
- max: Ot,
969
- extent: Bt,
970
- mean: kt,
971
- median: qt,
972
- unique: Ut,
973
- uniqueCount: Kt,
974
- count: Xt
975
- }, Wt = {
965
+ }, bo = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), Vo = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Po = (e, o) => o.length, Ze = {
966
+ sum: xo,
967
+ min: yo,
968
+ max: Fo,
969
+ extent: _o,
970
+ mean: Io,
971
+ median: Mo,
972
+ unique: bo,
973
+ uniqueCount: Vo,
974
+ count: Po
975
+ }, $o = {
976
976
  getDefaultColumnDef: () => ({
977
977
  aggregatedCell: (e) => {
978
978
  var o, t;
@@ -985,7 +985,7 @@ const zt = (e, o, t) => t.reduce((n, r) => {
985
985
  ...e
986
986
  }),
987
987
  getDefaultOptions: (e) => ({
988
- onGroupingChange: $("grouping", e),
988
+ onGroupingChange: q("grouping", e),
989
989
  groupedColumnMode: "reorder"
990
990
  }),
991
991
  createColumn: (e, o) => {
@@ -1008,14 +1008,14 @@ const zt = (e, o, t) => t.reduce((n, r) => {
1008
1008
  }, e.getAutoAggregationFn = () => {
1009
1009
  const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
1010
1010
  if (typeof n == "number")
1011
- return W.sum;
1011
+ return Ze.sum;
1012
1012
  if (Object.prototype.toString.call(n) === "[object Date]")
1013
- return W.extent;
1013
+ return Ze.extent;
1014
1014
  }, e.getAggregationFn = () => {
1015
1015
  var t, n;
1016
1016
  if (!e)
1017
1017
  throw new Error();
1018
- return K(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : W[e.columnDef.aggregationFn];
1018
+ return qe(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : Ze[e.columnDef.aggregationFn];
1019
1019
  };
1020
1020
  },
1021
1021
  createTable: (e) => {
@@ -1039,27 +1039,27 @@ const zt = (e, o, t) => t.reduce((n, r) => {
1039
1039
  };
1040
1040
  }
1041
1041
  };
1042
- function Yt(e, o, t) {
1042
+ function Do(e, o, t) {
1043
1043
  if (!(o != null && o.length) || !t)
1044
1044
  return e;
1045
1045
  const n = e.filter((i) => !o.includes(i.id));
1046
1046
  return t === "remove" ? n : [...o.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...n];
1047
1047
  }
1048
- const Zt = {
1048
+ const Eo = {
1049
1049
  getInitialState: (e) => ({
1050
1050
  columnOrder: [],
1051
1051
  ...e
1052
1052
  }),
1053
1053
  getDefaultOptions: (e) => ({
1054
- onColumnOrderChange: $("columnOrder", e)
1054
+ onColumnOrderChange: q("columnOrder", e)
1055
1055
  }),
1056
1056
  createColumn: (e, o) => {
1057
- e.getIndex = S((t) => [j(o, t)], (t) => t.findIndex((n) => n.id === e.id), w(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
1057
+ e.getIndex = y((t) => [be(o, t)], (t) => t.findIndex((n) => n.id === e.id), F(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
1058
1058
  var n;
1059
- return ((n = j(o, t)[0]) == null ? void 0 : n.id) === e.id;
1059
+ return ((n = be(o, t)[0]) == null ? void 0 : n.id) === e.id;
1060
1060
  }, e.getIsLastColumn = (t) => {
1061
1061
  var n;
1062
- const r = j(o, t);
1062
+ const r = be(o, t);
1063
1063
  return ((n = r[r.length - 1]) == null ? void 0 : n.id) === e.id;
1064
1064
  };
1065
1065
  },
@@ -1067,31 +1067,31 @@ const Zt = {
1067
1067
  e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
1068
1068
  var t;
1069
1069
  e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
1070
- }, e._getOrderColumnsFn = S(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
1070
+ }, e._getOrderColumnsFn = y(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
1071
1071
  let i = [];
1072
1072
  if (!(o != null && o.length))
1073
1073
  i = r;
1074
1074
  else {
1075
1075
  const l = [...o], u = [...r];
1076
1076
  for (; u.length && l.length; ) {
1077
- const s = l.shift(), g = u.findIndex((d) => d.id === s);
1078
- g > -1 && i.push(u.splice(g, 1)[0]);
1077
+ const s = l.shift(), a = u.findIndex((c) => c.id === s);
1078
+ a > -1 && i.push(u.splice(a, 1)[0]);
1079
1079
  }
1080
1080
  i = [...i, ...u];
1081
1081
  }
1082
- return Yt(i, t, n);
1083
- }, w(e.options, "debugTable", "_getOrderColumnsFn"));
1082
+ return Do(i, t, n);
1083
+ }, F(e.options, "debugTable", "_getOrderColumnsFn"));
1084
1084
  }
1085
- }, Y = () => ({
1085
+ }, et = () => ({
1086
1086
  left: [],
1087
1087
  right: []
1088
- }), Jt = {
1088
+ }), Lo = {
1089
1089
  getInitialState: (e) => ({
1090
- columnPinning: Y(),
1090
+ columnPinning: et(),
1091
1091
  ...e
1092
1092
  }),
1093
1093
  getDefaultOptions: (e) => ({
1094
- onColumnPinningChange: $("columnPinning", e)
1094
+ onColumnPinningChange: q("columnPinning", e)
1095
1095
  }),
1096
1096
  createColumn: (e, o) => {
1097
1097
  e.pin = (t) => {
@@ -1106,10 +1106,10 @@ const Zt = {
1106
1106
  };
1107
1107
  }
1108
1108
  if (t === "left") {
1109
- var g, d;
1109
+ var a, c;
1110
1110
  return {
1111
- left: [...((g = r == null ? void 0 : r.left) != null ? g : []).filter((f) => !(n != null && n.includes(f))), ...n],
1112
- right: ((d = r == null ? void 0 : r.right) != null ? d : []).filter((f) => !(n != null && n.includes(f)))
1111
+ left: [...((a = r == null ? void 0 : r.left) != null ? a : []).filter((f) => !(n != null && n.includes(f))), ...n],
1112
+ right: ((c = r == null ? void 0 : r.right) != null ? c : []).filter((f) => !(n != null && n.includes(f)))
1113
1113
  };
1114
1114
  }
1115
1115
  return {
@@ -1133,21 +1133,21 @@ const Zt = {
1133
1133
  };
1134
1134
  },
1135
1135
  createRow: (e, o) => {
1136
- e.getCenterVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
1136
+ e.getCenterVisibleCells = y(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
1137
1137
  const i = [...n ?? [], ...r ?? []];
1138
1138
  return t.filter((l) => !i.includes(l.column.id));
1139
- }, w(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
1139
+ }, F(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = y(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
1140
1140
  ...i,
1141
1141
  position: "left"
1142
- })), w(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
1142
+ })), F(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = y(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
1143
1143
  ...i,
1144
1144
  position: "right"
1145
- })), w(o.options, "debugRows", "getRightVisibleCells"));
1145
+ })), F(o.options, "debugRows", "getRightVisibleCells"));
1146
1146
  },
1147
1147
  createTable: (e) => {
1148
1148
  e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
1149
1149
  var t, n;
1150
- return e.setColumnPinning(o ? Y() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : Y());
1150
+ return e.setColumnPinning(o ? et() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : et());
1151
1151
  }, e.getIsSomeColumnsPinned = (o) => {
1152
1152
  var t;
1153
1153
  const n = e.getState().columnPinning;
@@ -1156,41 +1156,41 @@ const Zt = {
1156
1156
  return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
1157
1157
  }
1158
1158
  return !!((t = n[o]) != null && t.length);
1159
- }, e.getLeftLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), w(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), w(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
1159
+ }, e.getLeftLeafColumns = y(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), F(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = y(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), F(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = y(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
1160
1160
  const r = [...t ?? [], ...n ?? []];
1161
1161
  return o.filter((i) => !r.includes(i.id));
1162
- }, w(e.options, "debugColumns", "getCenterLeafColumns"));
1162
+ }, F(e.options, "debugColumns", "getCenterLeafColumns"));
1163
1163
  }
1164
- }, T = {
1164
+ }, Ae = {
1165
1165
  size: 150,
1166
1166
  minSize: 20,
1167
1167
  maxSize: Number.MAX_SAFE_INTEGER
1168
- }, Z = () => ({
1168
+ }, tt = () => ({
1169
1169
  startOffset: null,
1170
1170
  startSize: null,
1171
1171
  deltaOffset: null,
1172
1172
  deltaPercentage: null,
1173
1173
  isResizingColumn: !1,
1174
1174
  columnSizingStart: []
1175
- }), Qt = {
1176
- getDefaultColumnDef: () => T,
1175
+ }), Oo = {
1176
+ getDefaultColumnDef: () => Ae,
1177
1177
  getInitialState: (e) => ({
1178
1178
  columnSizing: {},
1179
- columnSizingInfo: Z(),
1179
+ columnSizingInfo: tt(),
1180
1180
  ...e
1181
1181
  }),
1182
1182
  getDefaultOptions: (e) => ({
1183
1183
  columnResizeMode: "onEnd",
1184
1184
  columnResizeDirection: "ltr",
1185
- onColumnSizingChange: $("columnSizing", e),
1186
- onColumnSizingInfoChange: $("columnSizingInfo", e)
1185
+ onColumnSizingChange: q("columnSizing", e),
1186
+ onColumnSizingInfoChange: q("columnSizingInfo", e)
1187
1187
  }),
1188
1188
  createColumn: (e, o) => {
1189
1189
  e.getSize = () => {
1190
1190
  var t, n, r;
1191
1191
  const i = o.getState().columnSizing[e.id];
1192
- return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : T.minSize, (n = i ?? e.columnDef.size) != null ? n : T.size), (r = e.columnDef.maxSize) != null ? r : T.maxSize);
1193
- }, e.getStart = S((t) => [t, j(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), w(o.options, "debugColumns", "getStart")), e.getAfter = S((t) => [t, j(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), w(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
1192
+ return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : Ae.minSize, (n = i ?? e.columnDef.size) != null ? n : Ae.size), (r = e.columnDef.maxSize) != null ? r : Ae.maxSize);
1193
+ }, e.getStart = y((t) => [t, be(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), F(o.options, "debugColumns", "getStart")), e.getAfter = y((t) => [t, be(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), F(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
1194
1194
  o.setColumnSizing((t) => {
1195
1195
  let {
1196
1196
  [e.id]: n,
@@ -1224,27 +1224,27 @@ const Zt = {
1224
1224
  }, e.getResizeHandler = (t) => {
1225
1225
  const n = o.getColumn(e.column.id), r = n == null ? void 0 : n.getCanResize();
1226
1226
  return (i) => {
1227
- if (!n || !r || (i.persist == null || i.persist(), J(i) && i.touches && i.touches.length > 1))
1227
+ if (!n || !r || (i.persist == null || i.persist(), nt(i) && i.touches && i.touches.length > 1))
1228
1228
  return;
1229
- const l = e.getSize(), u = e ? e.getLeafHeaders().map((v) => [v.column.id, v.column.getSize()]) : [[n.id, n.getSize()]], s = J(i) ? Math.round(i.touches[0].clientX) : i.clientX, g = {}, d = (v, x) => {
1230
- typeof x == "number" && (o.setColumnSizingInfo((_) => {
1231
- var I, y;
1232
- const A = o.options.columnResizeDirection === "rtl" ? -1 : 1, he = (x - ((I = _ == null ? void 0 : _.startOffset) != null ? I : 0)) * A, Se = Math.max(he / ((y = _ == null ? void 0 : _.startSize) != null ? y : 0), -0.999999);
1233
- return _.columnSizingStart.forEach((Qe) => {
1234
- let [et, we] = Qe;
1235
- g[et] = Math.round(Math.max(we + we * Se, 0) * 100) / 100;
1229
+ const l = e.getSize(), u = e ? e.getLeafHeaders().map((h) => [h.column.id, h.column.getSize()]) : [[n.id, n.getSize()]], s = nt(i) ? Math.round(i.touches[0].clientX) : i.clientX, a = {}, c = (h, C) => {
1230
+ typeof C == "number" && (o.setColumnSizingInfo((v) => {
1231
+ var _, I;
1232
+ const b = o.options.columnResizeDirection === "rtl" ? -1 : 1, M = (C - ((_ = v == null ? void 0 : v.startOffset) != null ? _ : 0)) * b, V = Math.max(M / ((I = v == null ? void 0 : v.startSize) != null ? I : 0), -0.999999);
1233
+ return v.columnSizingStart.forEach((P) => {
1234
+ let [L, $] = P;
1235
+ a[L] = Math.round(Math.max($ + $ * V, 0) * 100) / 100;
1236
1236
  }), {
1237
- ..._,
1238
- deltaOffset: he,
1239
- deltaPercentage: Se
1237
+ ...v,
1238
+ deltaOffset: M,
1239
+ deltaPercentage: V
1240
1240
  };
1241
- }), (o.options.columnResizeMode === "onChange" || v === "end") && o.setColumnSizing((_) => ({
1242
- ..._,
1243
- ...g
1241
+ }), (o.options.columnResizeMode === "onChange" || h === "end") && o.setColumnSizing((v) => ({
1242
+ ...v,
1243
+ ...a
1244
1244
  })));
1245
- }, f = (v) => d("move", v), c = (v) => {
1246
- d("end", v), o.setColumnSizingInfo((x) => ({
1247
- ...x,
1245
+ }, f = (h) => c("move", h), g = (h) => {
1246
+ c("end", h), o.setColumnSizingInfo((C) => ({
1247
+ ...C,
1248
1248
  isResizingColumn: !1,
1249
1249
  startOffset: null,
1250
1250
  startSize: null,
@@ -1252,22 +1252,22 @@ const Zt = {
1252
1252
  deltaPercentage: null,
1253
1253
  columnSizingStart: []
1254
1254
  }));
1255
- }, a = t || typeof document < "u" ? document : null, m = {
1256
- moveHandler: (v) => f(v.clientX),
1257
- upHandler: (v) => {
1258
- a == null || a.removeEventListener("mousemove", m.moveHandler), a == null || a.removeEventListener("mouseup", m.upHandler), c(v.clientX);
1255
+ }, d = t || typeof document < "u" ? document : null, p = {
1256
+ moveHandler: (h) => f(h.clientX),
1257
+ upHandler: (h) => {
1258
+ d == null || d.removeEventListener("mousemove", p.moveHandler), d == null || d.removeEventListener("mouseup", p.upHandler), g(h.clientX);
1259
1259
  }
1260
- }, h = {
1261
- moveHandler: (v) => (v.cancelable && (v.preventDefault(), v.stopPropagation()), f(v.touches[0].clientX), !1),
1262
- upHandler: (v) => {
1263
- var x;
1264
- a == null || a.removeEventListener("touchmove", h.moveHandler), a == null || a.removeEventListener("touchend", h.upHandler), v.cancelable && (v.preventDefault(), v.stopPropagation()), c((x = v.touches[0]) == null ? void 0 : x.clientX);
1260
+ }, m = {
1261
+ moveHandler: (h) => (h.cancelable && (h.preventDefault(), h.stopPropagation()), f(h.touches[0].clientX), !1),
1262
+ upHandler: (h) => {
1263
+ var C;
1264
+ d == null || d.removeEventListener("touchmove", m.moveHandler), d == null || d.removeEventListener("touchend", m.upHandler), h.cancelable && (h.preventDefault(), h.stopPropagation()), g((C = h.touches[0]) == null ? void 0 : C.clientX);
1265
1265
  }
1266
- }, R = en() ? {
1266
+ }, S = Ao() ? {
1267
1267
  passive: !1
1268
1268
  } : !1;
1269
- J(i) ? (a == null || a.addEventListener("touchmove", h.moveHandler, R), a == null || a.addEventListener("touchend", h.upHandler, R)) : (a == null || a.addEventListener("mousemove", m.moveHandler, R), a == null || a.addEventListener("mouseup", m.upHandler, R)), o.setColumnSizingInfo((v) => ({
1270
- ...v,
1269
+ nt(i) ? (d == null || d.addEventListener("touchmove", m.moveHandler, S), d == null || d.addEventListener("touchend", m.upHandler, S)) : (d == null || d.addEventListener("mousemove", p.moveHandler, S), d == null || d.addEventListener("mouseup", p.upHandler, S)), o.setColumnSizingInfo((h) => ({
1270
+ ...h,
1271
1271
  startOffset: s,
1272
1272
  startSize: l,
1273
1273
  deltaOffset: 0,
@@ -1284,7 +1284,7 @@ const Zt = {
1284
1284
  e.setColumnSizing(o ? {} : (t = e.initialState.columnSizing) != null ? t : {});
1285
1285
  }, e.resetHeaderSizeInfo = (o) => {
1286
1286
  var t;
1287
- e.setColumnSizingInfo(o ? Z() : (t = e.initialState.columnSizingInfo) != null ? t : Z());
1287
+ e.setColumnSizingInfo(o ? tt() : (t = e.initialState.columnSizingInfo) != null ? t : tt());
1288
1288
  }, e.getTotalSize = () => {
1289
1289
  var o, t;
1290
1290
  return (o = (t = e.getHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
@@ -1300,9 +1300,9 @@ const Zt = {
1300
1300
  };
1301
1301
  }
1302
1302
  };
1303
- let O = null;
1304
- function en() {
1305
- if (typeof O == "boolean") return O;
1303
+ let Ne = null;
1304
+ function Ao() {
1305
+ if (typeof Ne == "boolean") return Ne;
1306
1306
  let e = !1;
1307
1307
  try {
1308
1308
  const o = {
@@ -1315,18 +1315,18 @@ function en() {
1315
1315
  } catch {
1316
1316
  e = !1;
1317
1317
  }
1318
- return O = e, O;
1318
+ return Ne = e, Ne;
1319
1319
  }
1320
- function J(e) {
1320
+ function nt(e) {
1321
1321
  return e.type === "touchstart";
1322
1322
  }
1323
- const tn = {
1323
+ const No = {
1324
1324
  getInitialState: (e) => ({
1325
1325
  columnVisibility: {},
1326
1326
  ...e
1327
1327
  }),
1328
1328
  getDefaultOptions: (e) => ({
1329
- onColumnVisibilityChange: $("columnVisibility", e)
1329
+ onColumnVisibilityChange: q("columnVisibility", e)
1330
1330
  }),
1331
1331
  createColumn: (e, o) => {
1332
1332
  e.toggleVisibility = (t) => {
@@ -1346,10 +1346,10 @@ const tn = {
1346
1346
  };
1347
1347
  },
1348
1348
  createRow: (e, o) => {
1349
- e._getAllVisibleCells = S(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), w(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = S(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], w(o.options, "debugRows", "getVisibleCells"));
1349
+ e._getAllVisibleCells = y(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), F(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = y(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], F(o.options, "debugRows", "getVisibleCells"));
1350
1350
  },
1351
1351
  createTable: (e) => {
1352
- const o = (t, n) => S(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), w(e.options, "debugColumns", t));
1352
+ const o = (t, n) => y(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), F(e.options, "debugColumns", t));
1353
1353
  e.getVisibleFlatColumns = o("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = o("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = o("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = o("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = o("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
1354
1354
  var n;
1355
1355
  e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
@@ -1365,23 +1365,23 @@ const tn = {
1365
1365
  };
1366
1366
  }
1367
1367
  };
1368
- function j(e, o) {
1368
+ function be(e, o) {
1369
1369
  return o ? o === "center" ? e.getCenterVisibleLeafColumns() : o === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
1370
1370
  }
1371
- const nn = {
1371
+ const jo = {
1372
1372
  createTable: (e) => {
1373
1373
  e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
1374
1374
  if (e._getGlobalFacetedMinMaxValues)
1375
1375
  return e._getGlobalFacetedMinMaxValues();
1376
1376
  };
1377
1377
  }
1378
- }, on = {
1378
+ }, To = {
1379
1379
  getInitialState: (e) => ({
1380
1380
  globalFilter: void 0,
1381
1381
  ...e
1382
1382
  }),
1383
1383
  getDefaultOptions: (e) => ({
1384
- onGlobalFilterChange: $("globalFilter", e),
1384
+ onGlobalFilterChange: q("globalFilter", e),
1385
1385
  globalFilterFn: "auto",
1386
1386
  getColumnCanGlobalFilter: (o) => {
1387
1387
  var t;
@@ -1396,25 +1396,25 @@ const nn = {
1396
1396
  };
1397
1397
  },
1398
1398
  createTable: (e) => {
1399
- e.getGlobalAutoFilterFn = () => P.includesString, e.getGlobalFilterFn = () => {
1399
+ e.getGlobalAutoFilterFn = () => ue.includesString, e.getGlobalFilterFn = () => {
1400
1400
  var o, t;
1401
1401
  const {
1402
1402
  globalFilterFn: n
1403
1403
  } = e.options;
1404
- return K(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : P[n];
1404
+ return qe(n) ? n : n === "auto" ? e.getGlobalAutoFilterFn() : (o = (t = e.options.filterFns) == null ? void 0 : t[n]) != null ? o : ue[n];
1405
1405
  }, e.setGlobalFilter = (o) => {
1406
1406
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(o);
1407
1407
  }, e.resetGlobalFilter = (o) => {
1408
1408
  e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
1409
1409
  };
1410
1410
  }
1411
- }, rn = {
1411
+ }, Ho = {
1412
1412
  getInitialState: (e) => ({
1413
1413
  expanded: {},
1414
1414
  ...e
1415
1415
  }),
1416
1416
  getDefaultOptions: (e) => ({
1417
- onExpandedChange: $("expanded", e),
1417
+ onExpandedChange: q("expanded", e),
1418
1418
  paginateExpandedRows: !0
1419
1419
  }),
1420
1420
  createTable: (e) => {
@@ -1495,19 +1495,19 @@ const nn = {
1495
1495
  };
1496
1496
  };
1497
1497
  }
1498
- }, re = 0, ie = 10, Q = () => ({
1499
- pageIndex: re,
1500
- pageSize: ie
1501
- }), ln = {
1498
+ }, ut = 0, at = 10, ot = () => ({
1499
+ pageIndex: ut,
1500
+ pageSize: at
1501
+ }), Go = {
1502
1502
  getInitialState: (e) => ({
1503
1503
  ...e,
1504
1504
  pagination: {
1505
- ...Q(),
1505
+ ...ot(),
1506
1506
  ...e == null ? void 0 : e.pagination
1507
1507
  }
1508
1508
  }),
1509
1509
  getDefaultOptions: (e) => ({
1510
- onPaginationChange: $("pagination", e)
1510
+ onPaginationChange: q("pagination", e)
1511
1511
  }),
1512
1512
  createTable: (e) => {
1513
1513
  let o = !1, t = !1;
@@ -1526,14 +1526,14 @@ const nn = {
1526
1526
  });
1527
1527
  }
1528
1528
  }, e.setPagination = (n) => {
1529
- const r = (i) => L(n, i);
1529
+ const r = (i) => ge(n, i);
1530
1530
  return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(r);
1531
1531
  }, e.resetPagination = (n) => {
1532
1532
  var r;
1533
- e.setPagination(n ? Q() : (r = e.initialState.pagination) != null ? r : Q());
1533
+ e.setPagination(n ? ot() : (r = e.initialState.pagination) != null ? r : ot());
1534
1534
  }, e.setPageIndex = (n) => {
1535
1535
  e.setPagination((r) => {
1536
- let i = L(n, r.pageIndex);
1536
+ let i = ge(n, r.pageIndex);
1537
1537
  const l = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
1538
1538
  return i = Math.max(0, Math.min(i, l)), {
1539
1539
  ...r,
@@ -1542,13 +1542,13 @@ const nn = {
1542
1542
  });
1543
1543
  }, e.resetPageIndex = (n) => {
1544
1544
  var r, i;
1545
- e.setPageIndex(n ? re : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : re);
1545
+ e.setPageIndex(n ? ut : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageIndex) != null ? r : ut);
1546
1546
  }, e.resetPageSize = (n) => {
1547
1547
  var r, i;
1548
- e.setPageSize(n ? ie : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : ie);
1548
+ e.setPageSize(n ? at : (r = (i = e.initialState) == null || (i = i.pagination) == null ? void 0 : i.pageSize) != null ? r : at);
1549
1549
  }, e.setPageSize = (n) => {
1550
1550
  e.setPagination((r) => {
1551
- const i = Math.max(1, L(n, r.pageSize)), l = r.pageSize * r.pageIndex, u = Math.floor(l / i);
1551
+ const i = Math.max(1, ge(n, r.pageSize)), l = r.pageSize * r.pageIndex, u = Math.floor(l / i);
1552
1552
  return {
1553
1553
  ...r,
1554
1554
  pageIndex: u,
@@ -1557,15 +1557,15 @@ const nn = {
1557
1557
  });
1558
1558
  }, e.setPageCount = (n) => e.setPagination((r) => {
1559
1559
  var i;
1560
- let l = L(n, (i = e.options.pageCount) != null ? i : -1);
1560
+ let l = ge(n, (i = e.options.pageCount) != null ? i : -1);
1561
1561
  return typeof l == "number" && (l = Math.max(-1, l)), {
1562
1562
  ...r,
1563
1563
  pageCount: l
1564
1564
  };
1565
- }), e.getPageOptions = S(() => [e.getPageCount()], (n) => {
1565
+ }), e.getPageOptions = y(() => [e.getPageCount()], (n) => {
1566
1566
  let r = [];
1567
1567
  return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, l) => l)), r;
1568
- }, w(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
1568
+ }, F(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
1569
1569
  const {
1570
1570
  pageIndex: n
1571
1571
  } = e.getState().pagination, r = e.getPageCount();
@@ -1578,49 +1578,49 @@ const nn = {
1578
1578
  return (n = e.options.rowCount) != null ? n : e.getPrePaginationRowModel().rows.length;
1579
1579
  };
1580
1580
  }
1581
- }, ee = () => ({
1581
+ }, rt = () => ({
1582
1582
  top: [],
1583
1583
  bottom: []
1584
- }), un = {
1584
+ }), zo = {
1585
1585
  getInitialState: (e) => ({
1586
- rowPinning: ee(),
1586
+ rowPinning: rt(),
1587
1587
  ...e
1588
1588
  }),
1589
1589
  getDefaultOptions: (e) => ({
1590
- onRowPinningChange: $("rowPinning", e)
1590
+ onRowPinningChange: q("rowPinning", e)
1591
1591
  }),
1592
1592
  createRow: (e, o) => {
1593
1593
  e.pin = (t, n, r) => {
1594
1594
  const i = n ? e.getLeafRows().map((s) => {
1595
1595
  let {
1596
- id: g
1596
+ id: a
1597
1597
  } = s;
1598
- return g;
1598
+ return a;
1599
1599
  }) : [], l = r ? e.getParentRows().map((s) => {
1600
1600
  let {
1601
- id: g
1601
+ id: a
1602
1602
  } = s;
1603
- return g;
1603
+ return a;
1604
1604
  }) : [], u = /* @__PURE__ */ new Set([...l, e.id, ...i]);
1605
1605
  o.setRowPinning((s) => {
1606
- var g, d;
1606
+ var a, c;
1607
1607
  if (t === "bottom") {
1608
- var f, c;
1608
+ var f, g;
1609
1609
  return {
1610
- top: ((f = s == null ? void 0 : s.top) != null ? f : []).filter((h) => !(u != null && u.has(h))),
1611
- bottom: [...((c = s == null ? void 0 : s.bottom) != null ? c : []).filter((h) => !(u != null && u.has(h))), ...Array.from(u)]
1610
+ top: ((f = s == null ? void 0 : s.top) != null ? f : []).filter((m) => !(u != null && u.has(m))),
1611
+ bottom: [...((g = s == null ? void 0 : s.bottom) != null ? g : []).filter((m) => !(u != null && u.has(m))), ...Array.from(u)]
1612
1612
  };
1613
1613
  }
1614
1614
  if (t === "top") {
1615
- var a, m;
1615
+ var d, p;
1616
1616
  return {
1617
- top: [...((a = s == null ? void 0 : s.top) != null ? a : []).filter((h) => !(u != null && u.has(h))), ...Array.from(u)],
1618
- bottom: ((m = s == null ? void 0 : s.bottom) != null ? m : []).filter((h) => !(u != null && u.has(h)))
1617
+ top: [...((d = s == null ? void 0 : s.top) != null ? d : []).filter((m) => !(u != null && u.has(m))), ...Array.from(u)],
1618
+ bottom: ((p = s == null ? void 0 : s.bottom) != null ? p : []).filter((m) => !(u != null && u.has(m)))
1619
1619
  };
1620
1620
  }
1621
1621
  return {
1622
- top: ((g = s == null ? void 0 : s.top) != null ? g : []).filter((h) => !(u != null && u.has(h))),
1623
- bottom: ((d = s == null ? void 0 : s.bottom) != null ? d : []).filter((h) => !(u != null && u.has(h)))
1622
+ top: ((a = s == null ? void 0 : s.top) != null ? a : []).filter((m) => !(u != null && u.has(m))),
1623
+ bottom: ((c = s == null ? void 0 : s.bottom) != null ? c : []).filter((m) => !(u != null && u.has(m)))
1624
1624
  };
1625
1625
  });
1626
1626
  }, e.getCanPin = () => {
@@ -1652,7 +1652,7 @@ const nn = {
1652
1652
  createTable: (e) => {
1653
1653
  e.setRowPinning = (o) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(o), e.resetRowPinning = (o) => {
1654
1654
  var t, n;
1655
- return e.setRowPinning(o ? ee() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : ee());
1655
+ return e.setRowPinning(o ? rt() : (t = (n = e.initialState) == null ? void 0 : n.rowPinning) != null ? t : rt());
1656
1656
  }, e.getIsSomeRowsPinned = (o) => {
1657
1657
  var t;
1658
1658
  const n = e.getState().rowPinning;
@@ -1677,18 +1677,18 @@ const nn = {
1677
1677
  ...l,
1678
1678
  position: n
1679
1679
  }));
1680
- }, e.getTopRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), w(e.options, "debugRows", "getTopRows")), e.getBottomRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), w(e.options, "debugRows", "getBottomRows")), e.getCenterRows = S(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
1680
+ }, e.getTopRows = y(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), F(e.options, "debugRows", "getTopRows")), e.getBottomRows = y(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), F(e.options, "debugRows", "getBottomRows")), e.getCenterRows = y(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
1681
1681
  const r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
1682
1682
  return o.filter((i) => !r.has(i.id));
1683
- }, w(e.options, "debugRows", "getCenterRows"));
1683
+ }, F(e.options, "debugRows", "getCenterRows"));
1684
1684
  }
1685
- }, sn = {
1685
+ }, Bo = {
1686
1686
  getInitialState: (e) => ({
1687
1687
  rowSelection: {},
1688
1688
  ...e
1689
1689
  }),
1690
1690
  getDefaultOptions: (e) => ({
1691
- onRowSelectionChange: $("rowSelection", e),
1691
+ onRowSelectionChange: q("rowSelection", e),
1692
1692
  enableRowSelection: !0,
1693
1693
  enableMultiRowSelection: !0,
1694
1694
  enableSubRowSelection: !0
@@ -1717,21 +1717,21 @@ const nn = {
1717
1717
  ...t
1718
1718
  };
1719
1719
  return e.getRowModel().rows.forEach((i) => {
1720
- le(r, i.id, n, !0, e);
1720
+ dt(r, i.id, n, !0, e);
1721
1721
  }), r;
1722
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? te(e, t) : {
1722
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = y(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? it(e, t) : {
1723
1723
  rows: [],
1724
1724
  flatRows: [],
1725
1725
  rowsById: {}
1726
- }, w(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? te(e, t) : {
1726
+ }, F(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = y(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? it(e, t) : {
1727
1727
  rows: [],
1728
1728
  flatRows: [],
1729
1729
  rowsById: {}
1730
- }, w(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? te(e, t) : {
1730
+ }, F(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = y(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? it(e, t) : {
1731
1731
  rows: [],
1732
1732
  flatRows: [],
1733
1733
  rowsById: {}
1734
- }, w(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
1734
+ }, F(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
1735
1735
  const o = e.getFilteredRowModel().flatRows, {
1736
1736
  rowSelection: t
1737
1737
  } = e.getState();
@@ -1766,23 +1766,23 @@ const nn = {
1766
1766
  const u = {
1767
1767
  ...i
1768
1768
  };
1769
- return le(u, e.id, t, (l = n == null ? void 0 : n.selectChildren) != null ? l : !0, o), u;
1769
+ return dt(u, e.id, t, (l = n == null ? void 0 : n.selectChildren) != null ? l : !0, o), u;
1770
1770
  });
1771
1771
  }, e.getIsSelected = () => {
1772
1772
  const {
1773
1773
  rowSelection: t
1774
1774
  } = o.getState();
1775
- return pe(e, t);
1775
+ return vt(e, t);
1776
1776
  }, e.getIsSomeSelected = () => {
1777
1777
  const {
1778
1778
  rowSelection: t
1779
1779
  } = o.getState();
1780
- return ue(e, t) === "some";
1780
+ return ct(e, t) === "some";
1781
1781
  }, e.getIsAllSubRowsSelected = () => {
1782
1782
  const {
1783
1783
  rowSelection: t
1784
1784
  } = o.getState();
1785
- return ue(e, t) === "all";
1785
+ return ct(e, t) === "all";
1786
1786
  }, e.getCanSelect = () => {
1787
1787
  var t;
1788
1788
  return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
@@ -1800,20 +1800,20 @@ const nn = {
1800
1800
  };
1801
1801
  };
1802
1802
  }
1803
- }, le = (e, o, t, n, r) => {
1803
+ }, dt = (e, o, t, n, r) => {
1804
1804
  var i;
1805
1805
  const l = r.getRow(o, !0);
1806
- t ? (l.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((u) => le(e, u.id, t, n, r));
1806
+ t ? (l.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((u) => dt(e, u.id, t, n, r));
1807
1807
  };
1808
- function te(e, o) {
1808
+ function it(e, o) {
1809
1809
  const t = e.getState().rowSelection, n = [], r = {}, i = function(l, u) {
1810
1810
  return l.map((s) => {
1811
- var g;
1812
- const d = pe(s, t);
1813
- if (d && (n.push(s), r[s.id] = s), (g = s.subRows) != null && g.length && (s = {
1811
+ var a;
1812
+ const c = vt(s, t);
1813
+ if (c && (n.push(s), r[s.id] = s), (a = s.subRows) != null && a.length && (s = {
1814
1814
  ...s,
1815
1815
  subRows: i(s.subRows)
1816
- }), d)
1816
+ }), c)
1817
1817
  return s;
1818
1818
  }).filter(Boolean);
1819
1819
  };
@@ -1823,33 +1823,33 @@ function te(e, o) {
1823
1823
  rowsById: r
1824
1824
  };
1825
1825
  }
1826
- function pe(e, o) {
1826
+ function vt(e, o) {
1827
1827
  var t;
1828
1828
  return (t = o[e.id]) != null ? t : !1;
1829
1829
  }
1830
- function ue(e, o, t) {
1830
+ function ct(e, o, t) {
1831
1831
  var n;
1832
1832
  if (!((n = e.subRows) != null && n.length)) return !1;
1833
1833
  let r = !0, i = !1;
1834
1834
  return e.subRows.forEach((l) => {
1835
- if (!(i && !r) && (l.getCanSelect() && (pe(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
1836
- const u = ue(l, o);
1835
+ if (!(i && !r) && (l.getCanSelect() && (vt(l, o) ? i = !0 : r = !1), l.subRows && l.subRows.length)) {
1836
+ const u = ct(l, o);
1837
1837
  u === "all" ? i = !0 : (u === "some" && (i = !0), r = !1);
1838
1838
  }
1839
1839
  }), r ? "all" : i ? "some" : !1;
1840
1840
  }
1841
- const se = /([0-9]+)/gm, an = (e, o, t) => Ze(b(e.getValue(t)).toLowerCase(), b(o.getValue(t)).toLowerCase()), gn = (e, o, t) => Ze(b(e.getValue(t)), b(o.getValue(t))), dn = (e, o, t) => me(b(e.getValue(t)).toLowerCase(), b(o.getValue(t)).toLowerCase()), cn = (e, o, t) => me(b(e.getValue(t)), b(o.getValue(t))), fn = (e, o, t) => {
1841
+ const gt = /([0-9]+)/gm, ko = (e, o, t) => yn(pe(e.getValue(t)).toLowerCase(), pe(o.getValue(t)).toLowerCase()), qo = (e, o, t) => yn(pe(e.getValue(t)), pe(o.getValue(t))), Uo = (e, o, t) => Rt(pe(e.getValue(t)).toLowerCase(), pe(o.getValue(t)).toLowerCase()), Ko = (e, o, t) => Rt(pe(e.getValue(t)), pe(o.getValue(t))), Xo = (e, o, t) => {
1842
1842
  const n = e.getValue(t), r = o.getValue(t);
1843
1843
  return n > r ? 1 : n < r ? -1 : 0;
1844
- }, pn = (e, o, t) => me(e.getValue(t), o.getValue(t));
1845
- function me(e, o) {
1844
+ }, Wo = (e, o, t) => Rt(e.getValue(t), o.getValue(t));
1845
+ function Rt(e, o) {
1846
1846
  return e === o ? 0 : e > o ? 1 : -1;
1847
1847
  }
1848
- function b(e) {
1848
+ function pe(e) {
1849
1849
  return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
1850
1850
  }
1851
- function Ze(e, o) {
1852
- const t = e.split(se).filter(Boolean), n = o.split(se).filter(Boolean);
1851
+ function yn(e, o) {
1852
+ const t = e.split(gt).filter(Boolean), n = o.split(gt).filter(Boolean);
1853
1853
  for (; t.length && n.length; ) {
1854
1854
  const r = t.shift(), i = n.shift(), l = parseInt(r, 10), u = parseInt(i, 10), s = [l, u].sort();
1855
1855
  if (isNaN(s[0])) {
@@ -1868,14 +1868,14 @@ function Ze(e, o) {
1868
1868
  }
1869
1869
  return t.length - n.length;
1870
1870
  }
1871
- const H = {
1872
- alphanumeric: an,
1873
- alphanumericCaseSensitive: gn,
1874
- text: dn,
1875
- textCaseSensitive: cn,
1876
- datetime: fn,
1877
- basic: pn
1878
- }, mn = {
1871
+ const _e = {
1872
+ alphanumeric: ko,
1873
+ alphanumericCaseSensitive: qo,
1874
+ text: Uo,
1875
+ textCaseSensitive: Ko,
1876
+ datetime: Xo,
1877
+ basic: Wo
1878
+ }, Qo = {
1879
1879
  getInitialState: (e) => ({
1880
1880
  sorting: [],
1881
1881
  ...e
@@ -1885,7 +1885,7 @@ const H = {
1885
1885
  sortUndefined: 1
1886
1886
  }),
1887
1887
  getDefaultOptions: (e) => ({
1888
- onSortingChange: $("sorting", e),
1888
+ onSortingChange: q("sorting", e),
1889
1889
  isMultiSortEvent: (o) => o.shiftKey
1890
1890
  }),
1891
1891
  createColumn: (e, o) => {
@@ -1895,11 +1895,11 @@ const H = {
1895
1895
  for (const r of t) {
1896
1896
  const i = r == null ? void 0 : r.getValue(e.id);
1897
1897
  if (Object.prototype.toString.call(i) === "[object Date]")
1898
- return H.datetime;
1899
- if (typeof i == "string" && (n = !0, i.split(se).length > 1))
1900
- return H.alphanumeric;
1898
+ return _e.datetime;
1899
+ if (typeof i == "string" && (n = !0, i.split(gt).length > 1))
1900
+ return _e.alphanumeric;
1901
1901
  }
1902
- return n ? H.text : H.basic;
1902
+ return n ? _e.text : _e.basic;
1903
1903
  }, e.getAutoSortDir = () => {
1904
1904
  const t = o.getFilteredRowModel().flatRows[0];
1905
1905
  return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
@@ -1907,26 +1907,26 @@ const H = {
1907
1907
  var t, n;
1908
1908
  if (!e)
1909
1909
  throw new Error();
1910
- return K(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : H[e.columnDef.sortingFn];
1910
+ return qe(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : (t = (n = o.options.sortingFns) == null ? void 0 : n[e.columnDef.sortingFn]) != null ? t : _e[e.columnDef.sortingFn];
1911
1911
  }, e.toggleSorting = (t, n) => {
1912
1912
  const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
1913
1913
  o.setSorting((l) => {
1914
- const u = l == null ? void 0 : l.find((a) => a.id === e.id), s = l == null ? void 0 : l.findIndex((a) => a.id === e.id);
1915
- let g = [], d, f = i ? t : r === "desc";
1916
- if (l != null && l.length && e.getCanMultiSort() && n ? u ? d = "toggle" : d = "add" : l != null && l.length && s !== l.length - 1 ? d = "replace" : u ? d = "toggle" : d = "replace", d === "toggle" && (i || r || (d = "remove")), d === "add") {
1917
- var c;
1918
- g = [...l, {
1914
+ const u = l == null ? void 0 : l.find((d) => d.id === e.id), s = l == null ? void 0 : l.findIndex((d) => d.id === e.id);
1915
+ let a = [], c, f = i ? t : r === "desc";
1916
+ if (l != null && l.length && e.getCanMultiSort() && n ? u ? c = "toggle" : c = "add" : l != null && l.length && s !== l.length - 1 ? c = "replace" : u ? c = "toggle" : c = "replace", c === "toggle" && (i || r || (c = "remove")), c === "add") {
1917
+ var g;
1918
+ a = [...l, {
1919
1919
  id: e.id,
1920
1920
  desc: f
1921
- }], g.splice(0, g.length - ((c = o.options.maxMultiSortColCount) != null ? c : Number.MAX_SAFE_INTEGER));
1922
- } else d === "toggle" ? g = l.map((a) => a.id === e.id ? {
1923
- ...a,
1921
+ }], a.splice(0, a.length - ((g = o.options.maxMultiSortColCount) != null ? g : Number.MAX_SAFE_INTEGER));
1922
+ } else c === "toggle" ? a = l.map((d) => d.id === e.id ? {
1923
+ ...d,
1924
1924
  desc: f
1925
- } : a) : d === "remove" ? g = l.filter((a) => a.id !== e.id) : g = [{
1925
+ } : d) : c === "remove" ? a = l.filter((d) => d.id !== e.id) : a = [{
1926
1926
  id: e.id,
1927
1927
  desc: f
1928
1928
  }];
1929
- return g;
1929
+ return a;
1930
1930
  });
1931
1931
  }, e.getFirstSortDir = () => {
1932
1932
  var t, n;
@@ -1964,47 +1964,47 @@ const H = {
1964
1964
  e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
1965
1965
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
1966
1966
  }
1967
- }, hn = [
1968
- Gt,
1969
- tn,
1970
- Zt,
1971
- Jt,
1972
- jt,
1973
- Nt,
1974
- nn,
1967
+ }, Jo = [
1968
+ Co,
1969
+ No,
1970
+ Eo,
1971
+ Lo,
1972
+ vo,
1973
+ Ro,
1974
+ jo,
1975
1975
  //depends on ColumnFaceting
1976
- on,
1976
+ To,
1977
1977
  //depends on ColumnFiltering
1978
- mn,
1979
- Wt,
1978
+ Qo,
1979
+ $o,
1980
1980
  //depends on RowSorting
1981
- rn,
1982
- ln,
1983
- un,
1984
- sn,
1985
- Qt
1981
+ Ho,
1982
+ Go,
1983
+ zo,
1984
+ Bo,
1985
+ Oo
1986
1986
  ];
1987
- function Sn(e) {
1987
+ function Yo(e) {
1988
1988
  var o, t;
1989
1989
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
1990
- const n = [...hn, ...(o = e._features) != null ? o : []];
1990
+ const n = [...Jo, ...(o = e._features) != null ? o : []];
1991
1991
  let r = {
1992
1992
  _features: n
1993
1993
  };
1994
- const i = r._features.reduce((c, a) => Object.assign(c, a.getDefaultOptions == null ? void 0 : a.getDefaultOptions(r)), {}), l = (c) => r.options.mergeOptions ? r.options.mergeOptions(i, c) : {
1994
+ const i = r._features.reduce((g, d) => Object.assign(g, d.getDefaultOptions == null ? void 0 : d.getDefaultOptions(r)), {}), l = (g) => r.options.mergeOptions ? r.options.mergeOptions(i, g) : {
1995
1995
  ...i,
1996
- ...c
1996
+ ...g
1997
1997
  };
1998
1998
  let s = {
1999
1999
  ...{},
2000
2000
  ...(t = e.initialState) != null ? t : {}
2001
2001
  };
2002
- r._features.forEach((c) => {
2003
- var a;
2004
- s = (a = c.getInitialState == null ? void 0 : c.getInitialState(s)) != null ? a : s;
2002
+ r._features.forEach((g) => {
2003
+ var d;
2004
+ s = (d = g.getInitialState == null ? void 0 : g.getInitialState(s)) != null ? d : s;
2005
2005
  });
2006
- const g = [];
2007
- let d = !1;
2006
+ const a = [];
2007
+ let c = !1;
2008
2008
  const f = {
2009
2009
  _features: n,
2010
2010
  options: {
@@ -2012,87 +2012,87 @@ function Sn(e) {
2012
2012
  ...e
2013
2013
  },
2014
2014
  initialState: s,
2015
- _queue: (c) => {
2016
- g.push(c), d || (d = !0, Promise.resolve().then(() => {
2017
- for (; g.length; )
2018
- g.shift()();
2019
- d = !1;
2020
- }).catch((a) => setTimeout(() => {
2021
- throw a;
2015
+ _queue: (g) => {
2016
+ a.push(g), c || (c = !0, Promise.resolve().then(() => {
2017
+ for (; a.length; )
2018
+ a.shift()();
2019
+ c = !1;
2020
+ }).catch((d) => setTimeout(() => {
2021
+ throw d;
2022
2022
  })));
2023
2023
  },
2024
2024
  reset: () => {
2025
2025
  r.setState(r.initialState);
2026
2026
  },
2027
- setOptions: (c) => {
2028
- const a = L(c, r.options);
2029
- r.options = l(a);
2027
+ setOptions: (g) => {
2028
+ const d = ge(g, r.options);
2029
+ r.options = l(d);
2030
2030
  },
2031
2031
  getState: () => r.options.state,
2032
- setState: (c) => {
2033
- r.options.onStateChange == null || r.options.onStateChange(c);
2032
+ setState: (g) => {
2033
+ r.options.onStateChange == null || r.options.onStateChange(g);
2034
2034
  },
2035
- _getRowId: (c, a, m) => {
2036
- var h;
2037
- return (h = r.options.getRowId == null ? void 0 : r.options.getRowId(c, a, m)) != null ? h : `${m ? [m.id, a].join(".") : a}`;
2035
+ _getRowId: (g, d, p) => {
2036
+ var m;
2037
+ return (m = r.options.getRowId == null ? void 0 : r.options.getRowId(g, d, p)) != null ? m : `${p ? [p.id, d].join(".") : d}`;
2038
2038
  },
2039
2039
  getCoreRowModel: () => (r._getCoreRowModel || (r._getCoreRowModel = r.options.getCoreRowModel(r)), r._getCoreRowModel()),
2040
2040
  // The final calls start at the bottom of the model,
2041
2041
  // expanded rows, which then work their way up
2042
2042
  getRowModel: () => r.getPaginationRowModel(),
2043
2043
  //in next version, we should just pass in the row model as the optional 2nd arg
2044
- getRow: (c, a) => {
2045
- let m = (a ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[c];
2046
- if (!m && (m = r.getCoreRowModel().rowsById[c], !m))
2047
- throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${c}`) : new Error();
2048
- return m;
2044
+ getRow: (g, d) => {
2045
+ let p = (d ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[g];
2046
+ if (!p && (p = r.getCoreRowModel().rowsById[g], !p))
2047
+ throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${g}`) : new Error();
2048
+ return p;
2049
2049
  },
2050
- _getDefaultColumnDef: S(() => [r.options.defaultColumn], (c) => {
2051
- var a;
2052
- return c = (a = c) != null ? a : {}, {
2053
- header: (m) => {
2054
- const h = m.header.column.columnDef;
2055
- return h.accessorKey ? h.accessorKey : h.accessorFn ? h.id : null;
2050
+ _getDefaultColumnDef: y(() => [r.options.defaultColumn], (g) => {
2051
+ var d;
2052
+ return g = (d = g) != null ? d : {}, {
2053
+ header: (p) => {
2054
+ const m = p.header.column.columnDef;
2055
+ return m.accessorKey ? m.accessorKey : m.accessorFn ? m.id : null;
2056
2056
  },
2057
2057
  // footer: props => props.header.column.id,
2058
- cell: (m) => {
2059
- var h, R;
2060
- return (h = (R = m.renderValue()) == null || R.toString == null ? void 0 : R.toString()) != null ? h : null;
2058
+ cell: (p) => {
2059
+ var m, S;
2060
+ return (m = (S = p.renderValue()) == null || S.toString == null ? void 0 : S.toString()) != null ? m : null;
2061
2061
  },
2062
- ...r._features.reduce((m, h) => Object.assign(m, h.getDefaultColumnDef == null ? void 0 : h.getDefaultColumnDef()), {}),
2063
- ...c
2062
+ ...r._features.reduce((p, m) => Object.assign(p, m.getDefaultColumnDef == null ? void 0 : m.getDefaultColumnDef()), {}),
2063
+ ...g
2064
2064
  };
2065
- }, w(e, "debugColumns", "_getDefaultColumnDef")),
2065
+ }, F(e, "debugColumns", "_getDefaultColumnDef")),
2066
2066
  _getColumnDefs: () => r.options.columns,
2067
- getAllColumns: S(() => [r._getColumnDefs()], (c) => {
2068
- const a = function(m, h, R) {
2069
- return R === void 0 && (R = 0), m.map((v) => {
2070
- const x = Ht(r, v, R, h), _ = v;
2071
- return x.columns = _.columns ? a(_.columns, x, R + 1) : [], x;
2067
+ getAllColumns: y(() => [r._getColumnDefs()], (g) => {
2068
+ const d = function(p, m, S) {
2069
+ return S === void 0 && (S = 0), p.map((h) => {
2070
+ const C = wo(r, h, S, m), v = h;
2071
+ return C.columns = v.columns ? d(v.columns, C, S + 1) : [], C;
2072
2072
  });
2073
2073
  };
2074
- return a(c);
2075
- }, w(e, "debugColumns", "getAllColumns")),
2076
- getAllFlatColumns: S(() => [r.getAllColumns()], (c) => c.flatMap((a) => a.getFlatColumns()), w(e, "debugColumns", "getAllFlatColumns")),
2077
- _getAllFlatColumnsById: S(() => [r.getAllFlatColumns()], (c) => c.reduce((a, m) => (a[m.id] = m, a), {}), w(e, "debugColumns", "getAllFlatColumnsById")),
2078
- getAllLeafColumns: S(() => [r.getAllColumns(), r._getOrderColumnsFn()], (c, a) => {
2079
- let m = c.flatMap((h) => h.getLeafColumns());
2080
- return a(m);
2081
- }, w(e, "debugColumns", "getAllLeafColumns")),
2082
- getColumn: (c) => {
2083
- const a = r._getAllFlatColumnsById()[c];
2084
- return process.env.NODE_ENV !== "production" && !a && console.error(`[Table] Column with id '${c}' does not exist.`), a;
2074
+ return d(g);
2075
+ }, F(e, "debugColumns", "getAllColumns")),
2076
+ getAllFlatColumns: y(() => [r.getAllColumns()], (g) => g.flatMap((d) => d.getFlatColumns()), F(e, "debugColumns", "getAllFlatColumns")),
2077
+ _getAllFlatColumnsById: y(() => [r.getAllFlatColumns()], (g) => g.reduce((d, p) => (d[p.id] = p, d), {}), F(e, "debugColumns", "getAllFlatColumnsById")),
2078
+ getAllLeafColumns: y(() => [r.getAllColumns(), r._getOrderColumnsFn()], (g, d) => {
2079
+ let p = g.flatMap((m) => m.getLeafColumns());
2080
+ return d(p);
2081
+ }, F(e, "debugColumns", "getAllLeafColumns")),
2082
+ getColumn: (g) => {
2083
+ const d = r._getAllFlatColumnsById()[g];
2084
+ return process.env.NODE_ENV !== "production" && !d && console.error(`[Table] Column with id '${g}' does not exist.`), d;
2085
2085
  }
2086
2086
  };
2087
2087
  Object.assign(r, f);
2088
- for (let c = 0; c < r._features.length; c++) {
2089
- const a = r._features[c];
2090
- a == null || a.createTable == null || a.createTable(r);
2088
+ for (let g = 0; g < r._features.length; g++) {
2089
+ const d = r._features[g];
2090
+ d == null || d.createTable == null || d.createTable(r);
2091
2091
  }
2092
2092
  return r;
2093
2093
  }
2094
- function wn() {
2095
- return (e) => S(() => [e.options.data], (o) => {
2094
+ function Zo() {
2095
+ return (e) => y(() => [e.options.data], (o) => {
2096
2096
  const t = {
2097
2097
  rows: [],
2098
2098
  flatRows: [],
@@ -2100,19 +2100,19 @@ function wn() {
2100
2100
  }, n = function(r, i, l) {
2101
2101
  i === void 0 && (i = 0);
2102
2102
  const u = [];
2103
- for (let g = 0; g < r.length; g++) {
2104
- const d = ce(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l == null ? void 0 : l.id);
2105
- if (t.flatRows.push(d), t.rowsById[d.id] = d, u.push(d), e.options.getSubRows) {
2103
+ for (let a = 0; a < r.length; a++) {
2104
+ const c = wt(e, e._getRowId(r[a], a, l), r[a], a, i, void 0, l == null ? void 0 : l.id);
2105
+ if (t.flatRows.push(c), t.rowsById[c.id] = c, u.push(c), e.options.getSubRows) {
2106
2106
  var s;
2107
- d.originalSubRows = e.options.getSubRows(r[g], g), (s = d.originalSubRows) != null && s.length && (d.subRows = n(d.originalSubRows, i + 1, d));
2107
+ c.originalSubRows = e.options.getSubRows(r[a], a), (s = c.originalSubRows) != null && s.length && (c.subRows = n(c.originalSubRows, i + 1, c));
2108
2108
  }
2109
2109
  }
2110
2110
  return u;
2111
2111
  };
2112
2112
  return t.rows = n(o), t;
2113
- }, w(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
2113
+ }, F(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
2114
2114
  }
2115
- function Cn(e) {
2115
+ function er(e) {
2116
2116
  const o = [], t = (n) => {
2117
2117
  var r;
2118
2118
  o.push(n), (r = n.subRows) != null && r.length && n.getIsExpanded() && n.subRows.forEach(t);
@@ -2123,31 +2123,31 @@ function Cn(e) {
2123
2123
  rowsById: e.rowsById
2124
2124
  };
2125
2125
  }
2126
- function Je(e, o, t) {
2127
- return t.options.filterFromLeafRows ? Rn(e, o, t) : vn(e, o, t);
2126
+ function Fn(e, o, t) {
2127
+ return t.options.filterFromLeafRows ? tr(e, o, t) : nr(e, o, t);
2128
2128
  }
2129
- function Rn(e, o, t) {
2129
+ function tr(e, o, t) {
2130
2130
  var n;
2131
- const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(s, g) {
2132
- g === void 0 && (g = 0);
2133
- const d = [];
2134
- for (let c = 0; c < s.length; c++) {
2131
+ const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(s, a) {
2132
+ a === void 0 && (a = 0);
2133
+ const c = [];
2134
+ for (let g = 0; g < s.length; g++) {
2135
2135
  var f;
2136
- let a = s[c];
2137
- const m = ce(t, a.id, a.original, a.index, a.depth, void 0, a.parentId);
2138
- if (m.columnFilters = a.columnFilters, (f = a.subRows) != null && f.length && g < l) {
2139
- if (m.subRows = u(a.subRows, g + 1), a = m, o(a) && !m.subRows.length) {
2140
- d.push(a), i[a.id] = a, r.push(a);
2136
+ let d = s[g];
2137
+ const p = wt(t, d.id, d.original, d.index, d.depth, void 0, d.parentId);
2138
+ if (p.columnFilters = d.columnFilters, (f = d.subRows) != null && f.length && a < l) {
2139
+ if (p.subRows = u(d.subRows, a + 1), d = p, o(d) && !p.subRows.length) {
2140
+ c.push(d), i[d.id] = d, r.push(d);
2141
2141
  continue;
2142
2142
  }
2143
- if (o(a) || m.subRows.length) {
2144
- d.push(a), i[a.id] = a, r.push(a);
2143
+ if (o(d) || p.subRows.length) {
2144
+ c.push(d), i[d.id] = d, r.push(d);
2145
2145
  continue;
2146
2146
  }
2147
2147
  } else
2148
- a = m, o(a) && (d.push(a), i[a.id] = a, r.push(a));
2148
+ d = p, o(d) && (c.push(d), i[d.id] = d, r.push(d));
2149
2149
  }
2150
- return d;
2150
+ return c;
2151
2151
  };
2152
2152
  return {
2153
2153
  rows: u(e),
@@ -2155,23 +2155,23 @@ function Rn(e, o, t) {
2155
2155
  rowsById: i
2156
2156
  };
2157
2157
  }
2158
- function vn(e, o, t) {
2158
+ function nr(e, o, t) {
2159
2159
  var n;
2160
- const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(s, g) {
2161
- g === void 0 && (g = 0);
2162
- const d = [];
2163
- for (let c = 0; c < s.length; c++) {
2164
- let a = s[c];
2165
- if (o(a)) {
2160
+ const r = [], i = {}, l = (n = t.options.maxLeafRowFilterDepth) != null ? n : 100, u = function(s, a) {
2161
+ a === void 0 && (a = 0);
2162
+ const c = [];
2163
+ for (let g = 0; g < s.length; g++) {
2164
+ let d = s[g];
2165
+ if (o(d)) {
2166
2166
  var f;
2167
- if ((f = a.subRows) != null && f.length && g < l) {
2168
- const h = ce(t, a.id, a.original, a.index, a.depth, void 0, a.parentId);
2169
- h.subRows = u(a.subRows, g + 1), a = h;
2167
+ if ((f = d.subRows) != null && f.length && a < l) {
2168
+ const m = wt(t, d.id, d.original, d.index, d.depth, void 0, d.parentId);
2169
+ m.subRows = u(d.subRows, a + 1), d = m;
2170
2170
  }
2171
- d.push(a), r.push(a), i[a.id] = a;
2171
+ c.push(d), r.push(d), i[d.id] = d;
2172
2172
  }
2173
2173
  }
2174
- return d;
2174
+ return c;
2175
2175
  };
2176
2176
  return {
2177
2177
  rows: u(e),
@@ -2179,8 +2179,8 @@ function vn(e, o, t) {
2179
2179
  rowsById: i
2180
2180
  };
2181
2181
  }
2182
- function xn() {
2183
- return (e, o) => S(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter, e.getFilteredRowModel()], (t, n, r) => {
2182
+ function or() {
2183
+ return (e, o) => y(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter, e.getFilteredRowModel()], (t, n, r) => {
2184
2184
  if (!t.rows.length || !(n != null && n.length) && !r)
2185
2185
  return t;
2186
2186
  const i = [...n.map((u) => u.id).filter((u) => u !== o), r ? "__global__" : void 0].filter(Boolean), l = (u) => {
@@ -2189,11 +2189,11 @@ function xn() {
2189
2189
  return !1;
2190
2190
  return !0;
2191
2191
  };
2192
- return Je(t.rows, l, e);
2193
- }, w(e.options, "debugTable", "getFacetedRowModel"));
2192
+ return Fn(t.rows, l, e);
2193
+ }, F(e.options, "debugTable", "getFacetedRowModel"));
2194
2194
  }
2195
- function _n() {
2196
- return (e, o) => S(() => {
2195
+ function rr() {
2196
+ return (e, o) => y(() => {
2197
2197
  var t;
2198
2198
  return [(t = e.getColumn(o)) == null ? void 0 : t.getFacetedRowModel()];
2199
2199
  }, (t) => {
@@ -2211,77 +2211,77 @@ function _n() {
2211
2211
  }
2212
2212
  }
2213
2213
  return n;
2214
- }, w(e.options, "debugTable", `getFacetedUniqueValues_${o}`));
2214
+ }, F(e.options, "debugTable", `getFacetedUniqueValues_${o}`));
2215
2215
  }
2216
- function Fn() {
2217
- return (e) => S(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
2216
+ function ir() {
2217
+ return (e) => y(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (o, t, n) => {
2218
2218
  if (!o.rows.length || !(t != null && t.length) && !n) {
2219
- for (let c = 0; c < o.flatRows.length; c++)
2220
- o.flatRows[c].columnFilters = {}, o.flatRows[c].columnFiltersMeta = {};
2219
+ for (let g = 0; g < o.flatRows.length; g++)
2220
+ o.flatRows[g].columnFilters = {}, o.flatRows[g].columnFiltersMeta = {};
2221
2221
  return o;
2222
2222
  }
2223
2223
  const r = [], i = [];
2224
- (t ?? []).forEach((c) => {
2225
- var a;
2226
- const m = e.getColumn(c.id);
2227
- if (!m)
2224
+ (t ?? []).forEach((g) => {
2225
+ var d;
2226
+ const p = e.getColumn(g.id);
2227
+ if (!p)
2228
2228
  return;
2229
- const h = m.getFilterFn();
2230
- if (!h) {
2231
- process.env.NODE_ENV !== "production" && console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${m.id}.`);
2229
+ const m = p.getFilterFn();
2230
+ if (!m) {
2231
+ process.env.NODE_ENV !== "production" && console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${p.id}.`);
2232
2232
  return;
2233
2233
  }
2234
2234
  r.push({
2235
- id: c.id,
2236
- filterFn: h,
2237
- resolvedValue: (a = h.resolveFilterValue == null ? void 0 : h.resolveFilterValue(c.value)) != null ? a : c.value
2235
+ id: g.id,
2236
+ filterFn: m,
2237
+ resolvedValue: (d = m.resolveFilterValue == null ? void 0 : m.resolveFilterValue(g.value)) != null ? d : g.value
2238
2238
  });
2239
2239
  });
2240
- const l = (t ?? []).map((c) => c.id), u = e.getGlobalFilterFn(), s = e.getAllLeafColumns().filter((c) => c.getCanGlobalFilter());
2241
- n && u && s.length && (l.push("__global__"), s.forEach((c) => {
2242
- var a;
2240
+ const l = (t ?? []).map((g) => g.id), u = e.getGlobalFilterFn(), s = e.getAllLeafColumns().filter((g) => g.getCanGlobalFilter());
2241
+ n && u && s.length && (l.push("__global__"), s.forEach((g) => {
2242
+ var d;
2243
2243
  i.push({
2244
- id: c.id,
2244
+ id: g.id,
2245
2245
  filterFn: u,
2246
- resolvedValue: (a = u.resolveFilterValue == null ? void 0 : u.resolveFilterValue(n)) != null ? a : n
2246
+ resolvedValue: (d = u.resolveFilterValue == null ? void 0 : u.resolveFilterValue(n)) != null ? d : n
2247
2247
  });
2248
2248
  }));
2249
- let g, d;
2250
- for (let c = 0; c < o.flatRows.length; c++) {
2251
- const a = o.flatRows[c];
2252
- if (a.columnFilters = {}, r.length)
2253
- for (let m = 0; m < r.length; m++) {
2254
- g = r[m];
2255
- const h = g.id;
2256
- a.columnFilters[h] = g.filterFn(a, h, g.resolvedValue, (R) => {
2257
- a.columnFiltersMeta[h] = R;
2249
+ let a, c;
2250
+ for (let g = 0; g < o.flatRows.length; g++) {
2251
+ const d = o.flatRows[g];
2252
+ if (d.columnFilters = {}, r.length)
2253
+ for (let p = 0; p < r.length; p++) {
2254
+ a = r[p];
2255
+ const m = a.id;
2256
+ d.columnFilters[m] = a.filterFn(d, m, a.resolvedValue, (S) => {
2257
+ d.columnFiltersMeta[m] = S;
2258
2258
  });
2259
2259
  }
2260
2260
  if (i.length) {
2261
- for (let m = 0; m < i.length; m++) {
2262
- d = i[m];
2263
- const h = d.id;
2264
- if (d.filterFn(a, h, d.resolvedValue, (R) => {
2265
- a.columnFiltersMeta[h] = R;
2261
+ for (let p = 0; p < i.length; p++) {
2262
+ c = i[p];
2263
+ const m = c.id;
2264
+ if (c.filterFn(d, m, c.resolvedValue, (S) => {
2265
+ d.columnFiltersMeta[m] = S;
2266
2266
  })) {
2267
- a.columnFilters.__global__ = !0;
2267
+ d.columnFilters.__global__ = !0;
2268
2268
  break;
2269
2269
  }
2270
2270
  }
2271
- a.columnFilters.__global__ !== !0 && (a.columnFilters.__global__ = !1);
2271
+ d.columnFilters.__global__ !== !0 && (d.columnFilters.__global__ = !1);
2272
2272
  }
2273
2273
  }
2274
- const f = (c) => {
2275
- for (let a = 0; a < l.length; a++)
2276
- if (c.columnFilters[l[a]] === !1)
2274
+ const f = (g) => {
2275
+ for (let d = 0; d < l.length; d++)
2276
+ if (g.columnFilters[l[d]] === !1)
2277
2277
  return !1;
2278
2278
  return !0;
2279
2279
  };
2280
- return Je(o.rows, f, e);
2281
- }, w(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
2280
+ return Fn(o.rows, f, e);
2281
+ }, F(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
2282
2282
  }
2283
- function yn(e) {
2284
- return (o) => S(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
2283
+ function lr(e) {
2284
+ return (o) => y(() => [o.getState().pagination, o.getPrePaginationRowModel(), o.options.paginateExpandedRows ? void 0 : o.getState().expanded], (t, n) => {
2285
2285
  if (!n.rows.length)
2286
2286
  return n;
2287
2287
  const {
@@ -2293,72 +2293,72 @@ function yn(e) {
2293
2293
  flatRows: u,
2294
2294
  rowsById: s
2295
2295
  } = n;
2296
- const g = r * i, d = g + r;
2297
- l = l.slice(g, d);
2296
+ const a = r * i, c = a + r;
2297
+ l = l.slice(a, c);
2298
2298
  let f;
2299
2299
  o.options.paginateExpandedRows ? f = {
2300
2300
  rows: l,
2301
2301
  flatRows: u,
2302
2302
  rowsById: s
2303
- } : f = Cn({
2303
+ } : f = er({
2304
2304
  rows: l,
2305
2305
  flatRows: u,
2306
2306
  rowsById: s
2307
2307
  }), f.flatRows = [];
2308
- const c = (a) => {
2309
- f.flatRows.push(a), a.subRows.length && a.subRows.forEach(c);
2308
+ const g = (d) => {
2309
+ f.flatRows.push(d), d.subRows.length && d.subRows.forEach(g);
2310
2310
  };
2311
- return f.rows.forEach(c), f;
2312
- }, w(o.options, "debugTable", "getPaginationRowModel"));
2311
+ return f.rows.forEach(g), f;
2312
+ }, F(o.options, "debugTable", "getPaginationRowModel"));
2313
2313
  }
2314
- function $n() {
2315
- return (e) => S(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
2314
+ function sr() {
2315
+ return (e) => y(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
2316
2316
  if (!t.rows.length || !(o != null && o.length))
2317
2317
  return t;
2318
2318
  const n = e.getState().sorting, r = [], i = n.filter((s) => {
2319
- var g;
2320
- return (g = e.getColumn(s.id)) == null ? void 0 : g.getCanSort();
2319
+ var a;
2320
+ return (a = e.getColumn(s.id)) == null ? void 0 : a.getCanSort();
2321
2321
  }), l = {};
2322
2322
  i.forEach((s) => {
2323
- const g = e.getColumn(s.id);
2324
- g && (l[s.id] = {
2325
- sortUndefined: g.columnDef.sortUndefined,
2326
- invertSorting: g.columnDef.invertSorting,
2327
- sortingFn: g.getSortingFn()
2323
+ const a = e.getColumn(s.id);
2324
+ a && (l[s.id] = {
2325
+ sortUndefined: a.columnDef.sortUndefined,
2326
+ invertSorting: a.columnDef.invertSorting,
2327
+ sortingFn: a.getSortingFn()
2328
2328
  });
2329
2329
  });
2330
2330
  const u = (s) => {
2331
- const g = s.map((d) => ({
2332
- ...d
2331
+ const a = s.map((c) => ({
2332
+ ...c
2333
2333
  }));
2334
- return g.sort((d, f) => {
2335
- for (let a = 0; a < i.length; a += 1) {
2336
- var c;
2337
- const m = i[a], h = l[m.id], R = h.sortUndefined, v = (c = m == null ? void 0 : m.desc) != null ? c : !1;
2338
- let x = 0;
2339
- if (R) {
2340
- const _ = d.getValue(m.id), I = f.getValue(m.id), y = _ === void 0, A = I === void 0;
2341
- if (y || A) {
2342
- if (R === "first") return y ? -1 : 1;
2343
- if (R === "last") return y ? 1 : -1;
2344
- x = y && A ? 0 : y ? R : -R;
2334
+ return a.sort((c, f) => {
2335
+ for (let d = 0; d < i.length; d += 1) {
2336
+ var g;
2337
+ const p = i[d], m = l[p.id], S = m.sortUndefined, h = (g = p == null ? void 0 : p.desc) != null ? g : !1;
2338
+ let C = 0;
2339
+ if (S) {
2340
+ const v = c.getValue(p.id), _ = f.getValue(p.id), I = v === void 0, b = _ === void 0;
2341
+ if (I || b) {
2342
+ if (S === "first") return I ? -1 : 1;
2343
+ if (S === "last") return I ? 1 : -1;
2344
+ C = I && b ? 0 : I ? S : -S;
2345
2345
  }
2346
2346
  }
2347
- if (x === 0 && (x = h.sortingFn(d, f, m.id)), x !== 0)
2348
- return v && (x *= -1), h.invertSorting && (x *= -1), x;
2347
+ if (C === 0 && (C = m.sortingFn(c, f, p.id)), C !== 0)
2348
+ return h && (C *= -1), m.invertSorting && (C *= -1), C;
2349
2349
  }
2350
- return d.index - f.index;
2351
- }), g.forEach((d) => {
2350
+ return c.index - f.index;
2351
+ }), a.forEach((c) => {
2352
2352
  var f;
2353
- r.push(d), (f = d.subRows) != null && f.length && (d.subRows = u(d.subRows));
2354
- }), g;
2353
+ r.push(c), (f = c.subRows) != null && f.length && (c.subRows = u(c.subRows));
2354
+ }), a;
2355
2355
  };
2356
2356
  return {
2357
2357
  rows: u(t.rows),
2358
2358
  flatRows: r,
2359
2359
  rowsById: t.rowsById
2360
2360
  };
2361
- }, w(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
2361
+ }, F(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
2362
2362
  }
2363
2363
  /**
2364
2364
  * react-table
@@ -2370,22 +2370,22 @@ function $n() {
2370
2370
  *
2371
2371
  * @license MIT
2372
2372
  */
2373
- function q(e, o) {
2374
- return e ? Vn(e) ? /* @__PURE__ */ E.createElement(e, o) : e : null;
2373
+ function He(e, o) {
2374
+ return e ? ur(e) ? /* @__PURE__ */ ae.createElement(e, o) : e : null;
2375
2375
  }
2376
- function Vn(e) {
2377
- return Mn(e) || typeof e == "function" || In(e);
2376
+ function ur(e) {
2377
+ return ar(e) || typeof e == "function" || dr(e);
2378
2378
  }
2379
- function Mn(e) {
2379
+ function ar(e) {
2380
2380
  return typeof e == "function" && (() => {
2381
2381
  const o = Object.getPrototypeOf(e);
2382
2382
  return o.prototype && o.prototype.isReactComponent;
2383
2383
  })();
2384
2384
  }
2385
- function In(e) {
2385
+ function dr(e) {
2386
2386
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
2387
2387
  }
2388
- function Pn(e) {
2388
+ function cr(e) {
2389
2389
  const o = {
2390
2390
  state: {},
2391
2391
  // Dummy state
@@ -2394,9 +2394,9 @@ function Pn(e) {
2394
2394
  // noop
2395
2395
  renderFallbackValue: null,
2396
2396
  ...e
2397
- }, [t] = E.useState(() => ({
2398
- current: Sn(o)
2399
- })), [n, r] = E.useState(() => t.current.initialState);
2397
+ }, [t] = ae.useState(() => ({
2398
+ current: Yo(o)
2399
+ })), [n, r] = ae.useState(() => t.current.initialState);
2400
2400
  return t.current.setOptions((i) => ({
2401
2401
  ...i,
2402
2402
  ...e,
@@ -2411,7 +2411,7 @@ function Pn(e) {
2411
2411
  }
2412
2412
  })), t.current;
2413
2413
  }
2414
- const En = ({
2414
+ const gr = ({
2415
2415
  page: e = 1,
2416
2416
  between: o = 3,
2417
2417
  totalPages: t,
@@ -2421,50 +2421,50 @@ const En = ({
2421
2421
  classes: l
2422
2422
  }) => {
2423
2423
  o = o < 1 ? 1 : o, e = Math.min(Math.max(e, 1), t), i = Math.min(Math.max(i, 0), o - 2);
2424
- const u = Array.from({ length: t }, (d, f) => f), s = o * 2 + 1;
2425
- let g;
2426
- return t < s ? g = u : e - 1 <= o ? g = u.slice(0, s - (i > 0 ? i + 1 : 0)) : e + o >= t ? g = u.slice(t - s + (i > 0 ? i + 1 : 0), t) : g = u.slice(
2424
+ const u = Array.from({ length: t }, (c, f) => f), s = o * 2 + 1;
2425
+ let a;
2426
+ return t < s ? a = u : e - 1 <= o ? a = u.slice(0, s - (i > 0 ? i + 1 : 0)) : e + o >= t ? a = u.slice(t - s + (i > 0 ? i + 1 : 0), t) : a = u.slice(
2427
2427
  e - 1 - (o - (i > 0 ? i + 1 : 0)),
2428
2428
  e + (o - (i > 0 ? i + 1 : 0))
2429
- ), /* @__PURE__ */ p.jsxs("div", { className: C("flex", l == null ? void 0 : l.root), children: [
2430
- r && /* @__PURE__ */ p.jsx(
2431
- D,
2429
+ ), /* @__PURE__ */ w.jsxs("div", { className: R("flex", l == null ? void 0 : l.root), children: [
2430
+ r && /* @__PURE__ */ w.jsx(
2431
+ ce,
2432
2432
  {
2433
2433
  size: "sm",
2434
2434
  intent: "ghost",
2435
- className: C("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", l == null ? void 0 : l.button),
2435
+ className: R("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", l == null ? void 0 : l.button),
2436
2436
  disabled: e <= 1,
2437
2437
  onClick: () => e > 1 && n(e - 2),
2438
- children: /* @__PURE__ */ p.jsx(N, { name: "arrows/arrowRight", className: "rotate-180" })
2438
+ children: /* @__PURE__ */ w.jsx(Re, { name: "arrows/arrowRight", className: "rotate-180" })
2439
2439
  }
2440
2440
  ),
2441
- t > s && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((d) => /* @__PURE__ */ p.jsx(
2442
- D,
2441
+ t > s && i > 0 && u.slice(0, e - 1 <= o ? 0 : i).map((c) => /* @__PURE__ */ w.jsx(
2442
+ ce,
2443
2443
  {
2444
2444
  size: "sm",
2445
2445
  intent: "ghost",
2446
- className: C("mob-body-regular-l w-[40px] p-0 text-color-dark", l == null ? void 0 : l.button),
2447
- onClick: () => d !== e - 1 && n(d),
2448
- children: d + 1
2446
+ className: R("mob-body-regular-l w-[40px] p-0 text-color-dark", l == null ? void 0 : l.button),
2447
+ onClick: () => c !== e - 1 && n(c),
2448
+ children: c + 1
2449
2449
  },
2450
- d
2450
+ c
2451
2451
  )),
2452
- t > s && i > 0 && e - 1 > o && /* @__PURE__ */ p.jsx(
2453
- D,
2452
+ t > s && i > 0 && e - 1 > o && /* @__PURE__ */ w.jsx(
2453
+ ce,
2454
2454
  {
2455
2455
  size: "sm",
2456
2456
  intent: "ghost",
2457
- className: C("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark", l == null ? void 0 : l.ellipsis),
2457
+ className: R("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark", l == null ? void 0 : l.ellipsis),
2458
2458
  children: "..."
2459
2459
  }
2460
2460
  ),
2461
- g.map((d) => {
2462
- const f = d === e - 1;
2463
- return /* @__PURE__ */ p.jsx(
2464
- D,
2461
+ a.map((c) => {
2462
+ const f = c === e - 1;
2463
+ return /* @__PURE__ */ w.jsx(
2464
+ ce,
2465
2465
  {
2466
2466
  size: "sm",
2467
- className: C(
2467
+ className: R(
2468
2468
  "mob-body-regular-l w-[40px] p-0 text-color-dark",
2469
2469
  {
2470
2470
  [`text-color-primary-default ${l == null ? void 0 : l.active}`]: f
@@ -2472,55 +2472,55 @@ const En = ({
2472
2472
  l == null ? void 0 : l.button
2473
2473
  ),
2474
2474
  intent: f ? "secondary" : "ghost",
2475
- onClick: () => !f && n(d),
2476
- children: d + 1
2475
+ onClick: () => !f && n(c),
2476
+ children: c + 1
2477
2477
  },
2478
- d
2478
+ c
2479
2479
  );
2480
2480
  }),
2481
- t > s && i > 0 && e < t - o && /* @__PURE__ */ p.jsx(
2482
- D,
2481
+ t > s && i > 0 && e < t - o && /* @__PURE__ */ w.jsx(
2482
+ ce,
2483
2483
  {
2484
2484
  size: "sm",
2485
2485
  intent: "ghost",
2486
- className: C("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark", l == null ? void 0 : l.ellipsis),
2486
+ className: R("mob-body-regular-l pointer-events-none w-[40px] p-0 text-color-dark", l == null ? void 0 : l.ellipsis),
2487
2487
  children: "..."
2488
2488
  }
2489
2489
  ),
2490
- t > s && i > 0 && u.slice(e >= t - o ? t : t - i, t).map((d) => /* @__PURE__ */ p.jsx(
2491
- D,
2490
+ t > s && i > 0 && u.slice(e >= t - o ? t : t - i, t).map((c) => /* @__PURE__ */ w.jsx(
2491
+ ce,
2492
2492
  {
2493
2493
  size: "sm",
2494
- className: C("mob-body-regular-l w-[40px] p-0 text-color-dark", l == null ? void 0 : l.button),
2494
+ className: R("mob-body-regular-l w-[40px] p-0 text-color-dark", l == null ? void 0 : l.button),
2495
2495
  intent: "ghost",
2496
- onClick: () => d !== e - 1 && n(d),
2497
- children: d + 1
2496
+ onClick: () => c !== e - 1 && n(c),
2497
+ children: c + 1
2498
2498
  },
2499
- d
2499
+ c
2500
2500
  )),
2501
- r && /* @__PURE__ */ p.jsx(
2502
- D,
2501
+ r && /* @__PURE__ */ w.jsx(
2502
+ ce,
2503
2503
  {
2504
2504
  size: "sm",
2505
2505
  intent: "ghost",
2506
- className: C("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", l == null ? void 0 : l.button),
2506
+ className: R("mob-body-regular-l w-[40px] p-0 text-color-dark disabled:text-icon-disabled", l == null ? void 0 : l.button),
2507
2507
  disabled: e >= t,
2508
2508
  onClick: () => e < t && n(e),
2509
- children: /* @__PURE__ */ p.jsx(N, { name: "arrows/arrowRight" })
2509
+ children: /* @__PURE__ */ w.jsx(Re, { name: "arrows/arrowRight" })
2510
2510
  }
2511
2511
  )
2512
2512
  ] });
2513
- }, Dn = ({ page: e, pageCount: o, pageSize: t, onPageIndexChange: n, rowsCount: r, classes: i }) => {
2513
+ }, fr = ({ page: e, pageCount: o, pageSize: t, onPageIndexChange: n, rowsCount: r, classes: i }) => {
2514
2514
  const l = t * e, u = l > r ? r : l;
2515
- return /* @__PURE__ */ p.jsxs("div", { className: C("flex w-full items-center justify-between", i == null ? void 0 : i.root), children: [
2516
- /* @__PURE__ */ p.jsxs("span", { className: C("desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.displayShown), children: [
2515
+ return /* @__PURE__ */ w.jsxs("div", { className: R("flex w-full items-center justify-between", i == null ? void 0 : i.root), children: [
2516
+ /* @__PURE__ */ w.jsxs("span", { className: R("desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.displayShown), children: [
2517
2517
  "Показано ",
2518
2518
  u,
2519
2519
  " из ",
2520
2520
  r
2521
2521
  ] }),
2522
- /* @__PURE__ */ p.jsx(
2523
- En,
2522
+ /* @__PURE__ */ w.jsx(
2523
+ gr,
2524
2524
  {
2525
2525
  totalPages: o,
2526
2526
  changePage: (s) => n(s),
@@ -2530,7 +2530,7 @@ const En = ({
2530
2530
  }
2531
2531
  )
2532
2532
  ] });
2533
- }, Ln = ({ mode: e, enableHeaders: o, table: t, classes: n, pagination: r }) => {
2533
+ }, pr = ({ mode: e, enableHeaders: o, table: t, classes: n, pagination: r }) => {
2534
2534
  const i = r !== !1 && t.getPageCount() > 1, l = {
2535
2535
  pageCount: t.getPageCount(),
2536
2536
  rowsCount: t.getCoreRowModel().rows.length,
@@ -2539,39 +2539,39 @@ const En = ({
2539
2539
  onPageIndexChange: t.setPageIndex,
2540
2540
  classes: n == null ? void 0 : n.pagination
2541
2541
  };
2542
- return /* @__PURE__ */ p.jsxs("div", { className: C("flex w-full flex-col gap-y-4", n == null ? void 0 : n.root), children: [
2543
- /* @__PURE__ */ p.jsxs(Ne, { className: C("w-full", n == null ? void 0 : n.table), children: [
2544
- o && /* @__PURE__ */ p.jsx(ze, { className: "px-2", children: t.getHeaderGroups().map((u) => /* @__PURE__ */ p.jsx(
2545
- B,
2542
+ return /* @__PURE__ */ w.jsxs("div", { className: R("flex w-full flex-col gap-y-4", n == null ? void 0 : n.root), children: [
2543
+ /* @__PURE__ */ w.jsxs(cn, { className: R("w-full", n == null ? void 0 : n.table), children: [
2544
+ o && /* @__PURE__ */ w.jsx(gn, { className: "px-2", children: t.getHeaderGroups().map((u) => /* @__PURE__ */ w.jsx(
2545
+ je,
2546
2546
  {
2547
- className: C(
2547
+ className: R(
2548
2548
  "w-full",
2549
2549
  {
2550
2550
  "border-b border-b-[rgba(234,237,241,1)]": e === "solid"
2551
2551
  },
2552
2552
  n == null ? void 0 : n.tableHeader
2553
2553
  ),
2554
- children: u.headers.map((s) => /* @__PURE__ */ p.jsx(
2555
- Oe,
2554
+ children: u.headers.map((s) => /* @__PURE__ */ w.jsx(
2555
+ pn,
2556
2556
  {
2557
- className: C(
2557
+ className: R(
2558
2558
  "py-3",
2559
2559
  {
2560
2560
  "px-2": e === "odd"
2561
2561
  },
2562
2562
  n == null ? void 0 : n.tableHead
2563
2563
  ),
2564
- children: s.isPlaceholder ? null : q(s.column.columnDef.header, s.getContext())
2564
+ children: s.isPlaceholder ? null : He(s.column.columnDef.header, s.getContext())
2565
2565
  },
2566
2566
  s.id
2567
2567
  ))
2568
2568
  },
2569
2569
  u.id
2570
2570
  )) }),
2571
- /* @__PURE__ */ p.jsx(Te, { children: t.getRowModel().rows.length ? t.getRowModel().rows.map((u) => /* @__PURE__ */ p.jsx(
2572
- B,
2571
+ /* @__PURE__ */ w.jsx(fn, { children: t.getRowModel().rows.length ? t.getRowModel().rows.map((u) => /* @__PURE__ */ w.jsx(
2572
+ je,
2573
2573
  {
2574
- className: C(
2574
+ className: R(
2575
2575
  "w-full",
2576
2576
  {
2577
2577
  "[&:not(:last-child)]:border-b [&:not(:last-child)]:border-b-[rgba(234,237,241,1)]": e === "solid",
@@ -2579,36 +2579,36 @@ const En = ({
2579
2579
  },
2580
2580
  n == null ? void 0 : n.tableRow
2581
2581
  ),
2582
- children: u.getVisibleCells().map((s, g) => /* @__PURE__ */ p.jsx(
2583
- oe,
2582
+ children: u.getVisibleCells().map((s, a) => /* @__PURE__ */ w.jsx(
2583
+ st,
2584
2584
  {
2585
- className: C(
2585
+ className: R(
2586
2586
  "py-3",
2587
2587
  {
2588
2588
  "px-2": e === "odd",
2589
- "font-medium": g !== 0
2589
+ "font-medium": a !== 0
2590
2590
  },
2591
2591
  n == null ? void 0 : n.tableCell
2592
2592
  ),
2593
- children: q(s.column.columnDef.cell, s.getContext())
2593
+ children: He(s.column.columnDef.cell, s.getContext())
2594
2594
  },
2595
2595
  s.id
2596
2596
  ))
2597
2597
  },
2598
2598
  u.id
2599
- )) : /* @__PURE__ */ p.jsx(B, { children: /* @__PURE__ */ p.jsx(oe, { colSpan: t.getRowCount(), children: "Not found" }) }) })
2599
+ )) : /* @__PURE__ */ w.jsx(je, { children: /* @__PURE__ */ w.jsx(st, { colSpan: t.getRowCount(), children: "Not found" }) }) })
2600
2600
  ] }),
2601
- i ? typeof r == "function" ? r(l) : /* @__PURE__ */ p.jsx(Dn, { ...l }) : null
2601
+ i ? typeof r == "function" ? r(l) : /* @__PURE__ */ w.jsx(fr, { ...l }) : null
2602
2602
  ] });
2603
- }, bn = ({
2603
+ }, mr = ({
2604
2604
  mode: e,
2605
2605
  enableHeaders: o,
2606
2606
  table: t,
2607
2607
  classes: n
2608
- }) => /* @__PURE__ */ p.jsx("div", { className: C("w-full", n == null ? void 0 : n.table), children: t.getRowModel().rows.length ? t.getRowModel().rows.map((r) => /* @__PURE__ */ p.jsx(
2608
+ }) => /* @__PURE__ */ w.jsx("div", { className: R("w-full", n == null ? void 0 : n.table), children: t.getRowModel().rows.length ? t.getRowModel().rows.map((r) => /* @__PURE__ */ w.jsx(
2609
2609
  "div",
2610
2610
  {
2611
- className: C(
2611
+ className: R(
2612
2612
  {
2613
2613
  "[&:not(:last-child)]:border-b [&:not(:last-child)]:border-b-[rgba(234,237,241,1)]": e === "solid",
2614
2614
  "[&:nth-child(odd)]:bg-color-primary-light-default": e === "odd"
@@ -2617,10 +2617,10 @@ const En = ({
2617
2617
  ),
2618
2618
  children: r.getVisibleCells().map((i, l) => {
2619
2619
  const u = t.getHeaderGroups()[0].headers[l];
2620
- return /* @__PURE__ */ p.jsxs(
2620
+ return /* @__PURE__ */ w.jsxs(
2621
2621
  "div",
2622
2622
  {
2623
- className: C(
2623
+ className: R(
2624
2624
  "grid grid-cols-2 p-2",
2625
2625
  {
2626
2626
  "px-2": e === "odd",
@@ -2629,8 +2629,8 @@ const En = ({
2629
2629
  n == null ? void 0 : n.tableCell
2630
2630
  ),
2631
2631
  children: [
2632
- o && /* @__PURE__ */ p.jsx("p", { className: "font-bold", children: q(u.column.columnDef.header, u.getContext()) }),
2633
- /* @__PURE__ */ p.jsx("p", { children: q(i.column.columnDef.cell, i.getContext()) })
2632
+ o && /* @__PURE__ */ w.jsx("p", { className: "font-bold", children: He(u.column.columnDef.header, u.getContext()) }),
2633
+ /* @__PURE__ */ w.jsx("p", { children: He(i.column.columnDef.cell, i.getContext()) })
2634
2634
  ]
2635
2635
  },
2636
2636
  i.id
@@ -2638,7 +2638,7 @@ const En = ({
2638
2638
  })
2639
2639
  },
2640
2640
  r.id
2641
- )) : /* @__PURE__ */ p.jsx("div", { children: "Not found" }) }), Qn = ({
2641
+ )) : /* @__PURE__ */ w.jsx("div", { children: "Not found" }) }), yi = ({
2642
2642
  columns: e,
2643
2643
  data: o,
2644
2644
  enableHeaders: t = !0,
@@ -2646,25 +2646,25 @@ const En = ({
2646
2646
  classes: r,
2647
2647
  pagination: i = !0
2648
2648
  }) => {
2649
- const [l, u] = ne([]), [s, g] = ne([]), d = Pn({
2649
+ const [l, u] = fe([]), [s, a] = fe([]), c = cr({
2650
2650
  data: o,
2651
2651
  columns: e,
2652
2652
  state: { columnFilters: l, sorting: s },
2653
2653
  enableRowSelection: !0,
2654
- onSortingChange: g,
2654
+ onSortingChange: a,
2655
2655
  onColumnFiltersChange: u,
2656
- getCoreRowModel: wn(),
2657
- getFilteredRowModel: Fn(),
2658
- getSortedRowModel: $n(),
2659
- getFacetedRowModel: xn(),
2660
- getFacetedUniqueValues: _n(),
2661
- getPaginationRowModel: yn()
2662
- }), { isMobile: f } = Me();
2663
- return f ? /* @__PURE__ */ p.jsx(bn, { table: d, enableHeaders: t, mode: n, classes: r }) : /* @__PURE__ */ p.jsx(Ln, { table: d, enableHeaders: t, mode: n, pagination: i, classes: r });
2656
+ getCoreRowModel: Zo(),
2657
+ getFilteredRowModel: ir(),
2658
+ getSortedRowModel: sr(),
2659
+ getFacetedRowModel: or(),
2660
+ getFacetedUniqueValues: rr(),
2661
+ getPaginationRowModel: lr()
2662
+ }), { isMobile: f } = ke();
2663
+ return f ? /* @__PURE__ */ w.jsx(mr, { table: c, enableHeaders: t, mode: n, classes: r }) : /* @__PURE__ */ w.jsx(pr, { table: c, enableHeaders: t, mode: n, pagination: i, classes: r });
2664
2664
  };
2665
- class eo {
2665
+ class Fi {
2666
2666
  static getColumnHelper() {
2667
- return Dt();
2667
+ return po();
2668
2668
  }
2669
2669
  static getColumns(o, t) {
2670
2670
  const {
@@ -2674,35 +2674,1641 @@ class eo {
2674
2674
  cellAccessor: l,
2675
2675
  headerAccessor: u
2676
2676
  } = t || {};
2677
- return Object.keys(o).map((g) => n.accessor(g, {
2678
- header: (d) => {
2679
- const { column: f } = d, c = u ? u[g] : null;
2680
- return /* @__PURE__ */ p.jsx(
2681
- Et,
2677
+ return Object.keys(o).map((a) => n.accessor(a, {
2678
+ header: (c) => {
2679
+ const { column: f } = c, g = u ? u[a] : null;
2680
+ return /* @__PURE__ */ w.jsx(
2681
+ fo,
2682
2682
  {
2683
2683
  isSorted: f.getIsSorted() === "desc",
2684
2684
  nextSortingOrder: f.getNextSortingOrder(),
2685
2685
  toggleSorting: f.toggleSorting,
2686
2686
  canSort: f.getCanSort(),
2687
- children: c ? c(g, d) : g
2687
+ children: g ? g(a, c) : a
2688
2688
  }
2689
2689
  );
2690
2690
  },
2691
- cell: (d) => {
2692
- const f = l ? l[g] : null;
2693
- return f ? f(d) : d.getValue();
2691
+ cell: (c) => {
2692
+ const f = l ? l[a] : null;
2693
+ return f ? f(c) : c.getValue();
2694
2694
  },
2695
- enableColumnFilter: Re.isBoolean(r) ? r : r.includes(g),
2696
- enableSorting: Re.isBoolean(i) ? i : i.includes(g)
2695
+ enableColumnFilter: jt.isBoolean(r) ? r : r.includes(a),
2696
+ enableSorting: jt.isBoolean(i) ? i : i.includes(a)
2697
+ }));
2698
+ }
2699
+ }
2700
+ const hr = ({ emblaApi: e, navigationHandler: o }) => {
2701
+ const [t, n] = fe(!0), [r, i] = fe(!0), l = we(
2702
+ (s) => {
2703
+ if (e) {
2704
+ switch (s) {
2705
+ case "prev":
2706
+ e.scrollPrev();
2707
+ break;
2708
+ case "next":
2709
+ e.scrollNext();
2710
+ break;
2711
+ }
2712
+ o && o(e);
2713
+ }
2714
+ },
2715
+ [e, o]
2716
+ ), u = we((s) => {
2717
+ n(!s.canScrollPrev()), i(!s.canScrollNext());
2718
+ }, []);
2719
+ return Se(() => {
2720
+ e && (u(e), e.on("reInit", u).on("select", u));
2721
+ }, [e, u]), {
2722
+ prevBtnDisabled: t,
2723
+ nextBtnDisabled: r,
2724
+ onClickNavigationButton: l
2725
+ };
2726
+ }, Sr = ({ emblaApi: e, navigationHandler: o, setVisibleIndex: t }) => {
2727
+ const [n, r] = fe([]), i = we(
2728
+ (s) => {
2729
+ e && (e.scrollTo(s), o && o(e));
2730
+ },
2731
+ [e, o]
2732
+ ), l = we((s) => {
2733
+ r(s.scrollSnapList());
2734
+ }, []), u = we((s) => {
2735
+ t(s.selectedScrollSnap());
2736
+ }, []);
2737
+ return Se(() => {
2738
+ e && (l(e), u(e), e.on("reInit", l).on("reInit", u).on("select", u));
2739
+ }, [e, l, u]), {
2740
+ scrollSnaps: n,
2741
+ onClickDot: i
2742
+ };
2743
+ }, wr = {
2744
+ active: !0,
2745
+ breakpoints: {},
2746
+ delay: 4e3,
2747
+ jump: !1,
2748
+ playOnInit: !0,
2749
+ stopOnFocusIn: !0,
2750
+ stopOnInteraction: !0,
2751
+ stopOnMouseEnter: !1,
2752
+ stopOnLastSnap: !1,
2753
+ rootNode: null
2754
+ };
2755
+ function Cr(e, o) {
2756
+ const t = e.scrollSnapList();
2757
+ return typeof o == "number" ? t.map(() => o) : o(t, e);
2758
+ }
2759
+ function vr(e, o) {
2760
+ const t = e.rootNode();
2761
+ return o && o(t) || t;
2762
+ }
2763
+ function xt(e = {}) {
2764
+ let o, t, n, r, i = null, l = 0, u = !1, s = !1, a = !1, c = !1;
2765
+ function f(D, T) {
2766
+ t = D;
2767
+ const {
2768
+ mergeOptions: K,
2769
+ optionsAtMedia: X
2770
+ } = T, J = K(wr, xt.globalOptions), Y = K(J, e);
2771
+ if (o = X(Y), t.scrollSnapList().length <= 1) return;
2772
+ c = o.jump, n = !1, r = Cr(t, o.delay);
2773
+ const {
2774
+ eventStore: te,
2775
+ ownerDocument: W
2776
+ } = t.internalEngine(), oe = !!t.internalEngine().options.watchDrag, re = vr(t, o.rootNode);
2777
+ te.add(W, "visibilitychange", h), oe && t.on("pointerDown", v), oe && !o.stopOnInteraction && t.on("pointerUp", _), o.stopOnMouseEnter && te.add(re, "mouseenter", I), o.stopOnMouseEnter && !o.stopOnInteraction && te.add(re, "mouseleave", b), o.stopOnFocusIn && t.on("slideFocusStart", S), o.stopOnFocusIn && !o.stopOnInteraction && te.add(t.containerNode(), "focusout", m), o.playOnInit && m();
2778
+ }
2779
+ function g() {
2780
+ t.off("pointerDown", v).off("pointerUp", _).off("slideFocusStart", S), S(), n = !0, u = !1;
2781
+ }
2782
+ function d() {
2783
+ const {
2784
+ ownerWindow: D
2785
+ } = t.internalEngine();
2786
+ D.clearTimeout(l), l = D.setTimeout($, r[t.selectedScrollSnap()]), i = (/* @__PURE__ */ new Date()).getTime(), t.emit("autoplay:timerset");
2787
+ }
2788
+ function p() {
2789
+ const {
2790
+ ownerWindow: D
2791
+ } = t.internalEngine();
2792
+ D.clearTimeout(l), l = 0, i = null, t.emit("autoplay:timerstopped");
2793
+ }
2794
+ function m() {
2795
+ if (!n) {
2796
+ if (C()) {
2797
+ a = !0;
2798
+ return;
2799
+ }
2800
+ u || t.emit("autoplay:play"), d(), u = !0;
2801
+ }
2802
+ }
2803
+ function S() {
2804
+ n || (u && t.emit("autoplay:stop"), p(), u = !1);
2805
+ }
2806
+ function h() {
2807
+ if (C())
2808
+ return a = u, S();
2809
+ a && m();
2810
+ }
2811
+ function C() {
2812
+ const {
2813
+ ownerDocument: D
2814
+ } = t.internalEngine();
2815
+ return D.visibilityState === "hidden";
2816
+ }
2817
+ function v() {
2818
+ s || S();
2819
+ }
2820
+ function _() {
2821
+ s || m();
2822
+ }
2823
+ function I() {
2824
+ s = !0, S();
2825
+ }
2826
+ function b() {
2827
+ s = !1, m();
2828
+ }
2829
+ function M(D) {
2830
+ typeof D < "u" && (c = D), m();
2831
+ }
2832
+ function V() {
2833
+ u && S();
2834
+ }
2835
+ function P() {
2836
+ u && m();
2837
+ }
2838
+ function L() {
2839
+ return u;
2840
+ }
2841
+ function $() {
2842
+ const {
2843
+ index: D
2844
+ } = t.internalEngine(), T = D.clone().add(1).get(), K = t.scrollSnapList().length - 1, X = o.stopOnLastSnap && T === K;
2845
+ if (t.canScrollNext() ? t.scrollNext(c) : t.scrollTo(0, c), t.emit("autoplay:select"), X) return S();
2846
+ m();
2847
+ }
2848
+ function N() {
2849
+ if (!i) return null;
2850
+ const D = r[t.selectedScrollSnap()], T = (/* @__PURE__ */ new Date()).getTime() - i;
2851
+ return D - T;
2852
+ }
2853
+ return {
2854
+ name: "autoplay",
2855
+ options: e,
2856
+ init: f,
2857
+ destroy: g,
2858
+ play: M,
2859
+ stop: V,
2860
+ reset: P,
2861
+ isPlaying: L,
2862
+ timeUntilNext: N
2863
+ };
2864
+ }
2865
+ xt.globalOptions = void 0;
2866
+ function Rr(e) {
2867
+ return Object.prototype.toString.call(e) === "[object Object]";
2868
+ }
2869
+ function Bt(e) {
2870
+ return Rr(e) || Array.isArray(e);
2871
+ }
2872
+ function xr() {
2873
+ return !!(typeof window < "u" && window.document && window.document.createElement);
2874
+ }
2875
+ function yt(e, o) {
2876
+ const t = Object.keys(e), n = Object.keys(o);
2877
+ if (t.length !== n.length) return !1;
2878
+ const r = JSON.stringify(Object.keys(e.breakpoints || {})), i = JSON.stringify(Object.keys(o.breakpoints || {}));
2879
+ return r !== i ? !1 : t.every((l) => {
2880
+ const u = e[l], s = o[l];
2881
+ return typeof u == "function" ? `${u}` == `${s}` : !Bt(u) || !Bt(s) ? u === s : yt(u, s);
2882
+ });
2883
+ }
2884
+ function kt(e) {
2885
+ return e.concat().sort((o, t) => o.name > t.name ? 1 : -1).map((o) => o.options);
2886
+ }
2887
+ function yr(e, o) {
2888
+ if (e.length !== o.length) return !1;
2889
+ const t = kt(e), n = kt(o);
2890
+ return t.every((r, i) => {
2891
+ const l = n[i];
2892
+ return yt(r, l);
2893
+ });
2894
+ }
2895
+ function Ft(e) {
2896
+ return typeof e == "number";
2897
+ }
2898
+ function ft(e) {
2899
+ return typeof e == "string";
2900
+ }
2901
+ function Ue(e) {
2902
+ return typeof e == "boolean";
2903
+ }
2904
+ function qt(e) {
2905
+ return Object.prototype.toString.call(e) === "[object Object]";
2906
+ }
2907
+ function A(e) {
2908
+ return Math.abs(e);
2909
+ }
2910
+ function _t(e) {
2911
+ return Math.sign(e);
2912
+ }
2913
+ function Ve(e, o) {
2914
+ return A(e - o);
2915
+ }
2916
+ function Fr(e, o) {
2917
+ if (e === 0 || o === 0 || A(e) <= A(o)) return 0;
2918
+ const t = Ve(A(e), A(o));
2919
+ return A(t / e);
2920
+ }
2921
+ function _r(e) {
2922
+ return Math.round(e * 100) / 100;
2923
+ }
2924
+ function Pe(e) {
2925
+ return $e(e).map(Number);
2926
+ }
2927
+ function ee(e) {
2928
+ return e[Ee(e)];
2929
+ }
2930
+ function Ee(e) {
2931
+ return Math.max(0, e.length - 1);
2932
+ }
2933
+ function It(e, o) {
2934
+ return o === Ee(e);
2935
+ }
2936
+ function Ut(e, o = 0) {
2937
+ return Array.from(Array(e), (t, n) => o + n);
2938
+ }
2939
+ function $e(e) {
2940
+ return Object.keys(e);
2941
+ }
2942
+ function _n(e, o) {
2943
+ return [e, o].reduce((t, n) => ($e(n).forEach((r) => {
2944
+ const i = t[r], l = n[r], u = qt(i) && qt(l);
2945
+ t[r] = u ? _n(i, l) : l;
2946
+ }), t), {});
2947
+ }
2948
+ function pt(e, o) {
2949
+ return typeof o.MouseEvent < "u" && e instanceof o.MouseEvent;
2950
+ }
2951
+ function Ir(e, o) {
2952
+ const t = {
2953
+ start: n,
2954
+ center: r,
2955
+ end: i
2956
+ };
2957
+ function n() {
2958
+ return 0;
2959
+ }
2960
+ function r(s) {
2961
+ return i(s) / 2;
2962
+ }
2963
+ function i(s) {
2964
+ return o - s;
2965
+ }
2966
+ function l(s, a) {
2967
+ return ft(e) ? t[e](s) : e(o, s, a);
2968
+ }
2969
+ return {
2970
+ measure: l
2971
+ };
2972
+ }
2973
+ function De() {
2974
+ let e = [];
2975
+ function o(r, i, l, u = {
2976
+ passive: !0
2977
+ }) {
2978
+ let s;
2979
+ if ("addEventListener" in r)
2980
+ r.addEventListener(i, l, u), s = () => r.removeEventListener(i, l, u);
2981
+ else {
2982
+ const a = r;
2983
+ a.addListener(l), s = () => a.removeListener(l);
2984
+ }
2985
+ return e.push(s), n;
2986
+ }
2987
+ function t() {
2988
+ e = e.filter((r) => r());
2989
+ }
2990
+ const n = {
2991
+ add: o,
2992
+ clear: t
2993
+ };
2994
+ return n;
2995
+ }
2996
+ function Mr(e, o, t, n) {
2997
+ const r = De(), i = 1e3 / 60;
2998
+ let l = null, u = 0, s = 0;
2999
+ function a() {
3000
+ r.add(e, "visibilitychange", () => {
3001
+ e.hidden && p();
3002
+ });
3003
+ }
3004
+ function c() {
3005
+ d(), r.clear();
3006
+ }
3007
+ function f(S) {
3008
+ if (!s) return;
3009
+ l || (l = S, t(), t());
3010
+ const h = S - l;
3011
+ for (l = S, u += h; u >= i; )
3012
+ t(), u -= i;
3013
+ const C = u / i;
3014
+ n(C), s && (s = o.requestAnimationFrame(f));
3015
+ }
3016
+ function g() {
3017
+ s || (s = o.requestAnimationFrame(f));
3018
+ }
3019
+ function d() {
3020
+ o.cancelAnimationFrame(s), l = null, u = 0, s = 0;
3021
+ }
3022
+ function p() {
3023
+ l = null, u = 0;
3024
+ }
3025
+ return {
3026
+ init: a,
3027
+ destroy: c,
3028
+ start: g,
3029
+ stop: d,
3030
+ update: t,
3031
+ render: n
3032
+ };
3033
+ }
3034
+ function br(e, o) {
3035
+ const t = o === "rtl", n = e === "y", r = n ? "y" : "x", i = n ? "x" : "y", l = !n && t ? -1 : 1, u = c(), s = f();
3036
+ function a(p) {
3037
+ const {
3038
+ height: m,
3039
+ width: S
3040
+ } = p;
3041
+ return n ? m : S;
3042
+ }
3043
+ function c() {
3044
+ return n ? "top" : t ? "right" : "left";
3045
+ }
3046
+ function f() {
3047
+ return n ? "bottom" : t ? "left" : "right";
3048
+ }
3049
+ function g(p) {
3050
+ return p * l;
3051
+ }
3052
+ return {
3053
+ scroll: r,
3054
+ cross: i,
3055
+ startEdge: u,
3056
+ endEdge: s,
3057
+ measureSize: a,
3058
+ direction: g
3059
+ };
3060
+ }
3061
+ function Ce(e = 0, o = 0) {
3062
+ const t = A(e - o);
3063
+ function n(a) {
3064
+ return a < e;
3065
+ }
3066
+ function r(a) {
3067
+ return a > o;
3068
+ }
3069
+ function i(a) {
3070
+ return n(a) || r(a);
3071
+ }
3072
+ function l(a) {
3073
+ return i(a) ? n(a) ? e : o : a;
3074
+ }
3075
+ function u(a) {
3076
+ return t ? a - t * Math.ceil((a - o) / t) : a;
3077
+ }
3078
+ return {
3079
+ length: t,
3080
+ max: o,
3081
+ min: e,
3082
+ constrain: l,
3083
+ reachedAny: i,
3084
+ reachedMax: r,
3085
+ reachedMin: n,
3086
+ removeOffset: u
3087
+ };
3088
+ }
3089
+ function In(e, o, t) {
3090
+ const {
3091
+ constrain: n
3092
+ } = Ce(0, e), r = e + 1;
3093
+ let i = l(o);
3094
+ function l(g) {
3095
+ return t ? A((r + g) % r) : n(g);
3096
+ }
3097
+ function u() {
3098
+ return i;
3099
+ }
3100
+ function s(g) {
3101
+ return i = l(g), f;
3102
+ }
3103
+ function a(g) {
3104
+ return c().set(u() + g);
3105
+ }
3106
+ function c() {
3107
+ return In(e, u(), t);
3108
+ }
3109
+ const f = {
3110
+ get: u,
3111
+ set: s,
3112
+ add: a,
3113
+ clone: c
3114
+ };
3115
+ return f;
3116
+ }
3117
+ function Vr(e, o, t, n, r, i, l, u, s, a, c, f, g, d, p, m, S, h, C) {
3118
+ const {
3119
+ cross: v,
3120
+ direction: _
3121
+ } = e, I = ["INPUT", "SELECT", "TEXTAREA"], b = {
3122
+ passive: !1
3123
+ }, M = De(), V = De(), P = Ce(50, 225).constrain(d.measure(20)), L = {
3124
+ mouse: 300,
3125
+ touch: 400
3126
+ }, $ = {
3127
+ mouse: 500,
3128
+ touch: 600
3129
+ }, N = p ? 43 : 25;
3130
+ let B = !1, D = 0, T = 0, K = !1, X = !1, J = !1, Y = !1;
3131
+ function te(x) {
3132
+ if (!C) return;
3133
+ function E(z) {
3134
+ (Ue(C) || C(x, z)) && ye(z);
3135
+ }
3136
+ const j = o;
3137
+ M.add(j, "dragstart", (z) => z.preventDefault(), b).add(j, "touchmove", () => {
3138
+ }, b).add(j, "touchend", () => {
3139
+ }).add(j, "touchstart", E).add(j, "mousedown", E).add(j, "touchcancel", G).add(j, "contextmenu", G).add(j, "click", le, !0);
3140
+ }
3141
+ function W() {
3142
+ M.clear(), V.clear();
3143
+ }
3144
+ function oe() {
3145
+ const x = Y ? t : o;
3146
+ V.add(x, "touchmove", k, b).add(x, "touchend", G).add(x, "mousemove", k, b).add(x, "mouseup", G);
3147
+ }
3148
+ function re(x) {
3149
+ const E = x.nodeName || "";
3150
+ return I.includes(E);
3151
+ }
3152
+ function ie() {
3153
+ return (p ? $ : L)[Y ? "mouse" : "touch"];
3154
+ }
3155
+ function xe(x, E) {
3156
+ const j = f.add(_t(x) * -1), z = c.byDistance(x, !p).distance;
3157
+ return p || A(x) < P ? z : S && E ? z * 0.5 : c.byIndex(j.get(), 0).distance;
3158
+ }
3159
+ function ye(x) {
3160
+ const E = pt(x, n);
3161
+ Y = E, J = p && E && !x.buttons && B, B = Ve(r.get(), l.get()) >= 2, !(E && x.button !== 0) && (re(x.target) || (K = !0, i.pointerDown(x), a.useFriction(0).useDuration(0), r.set(l), oe(), D = i.readPoint(x), T = i.readPoint(x, v), g.emit("pointerDown")));
3162
+ }
3163
+ function k(x) {
3164
+ if (!pt(x, n) && x.touches.length >= 2) return G(x);
3165
+ const j = i.readPoint(x), z = i.readPoint(x, v), ne = Ve(j, D), se = Ve(z, T);
3166
+ if (!X && !Y && (!x.cancelable || (X = ne > se, !X)))
3167
+ return G(x);
3168
+ const me = i.pointerMove(x);
3169
+ ne > m && (J = !0), a.useFriction(0.3).useDuration(0.75), u.start(), r.add(_(me)), x.preventDefault();
3170
+ }
3171
+ function G(x) {
3172
+ const j = c.byDistance(0, !1).index !== f.get(), z = i.pointerUp(x) * ie(), ne = xe(_(z), j), se = Fr(z, ne), me = N - 10 * se, de = h + se / 50;
3173
+ X = !1, K = !1, V.clear(), a.useDuration(me).useFriction(de), s.distance(ne, !p), Y = !1, g.emit("pointerUp");
3174
+ }
3175
+ function le(x) {
3176
+ J && (x.stopPropagation(), x.preventDefault(), J = !1);
3177
+ }
3178
+ function Q() {
3179
+ return K;
3180
+ }
3181
+ return {
3182
+ init: te,
3183
+ destroy: W,
3184
+ pointerDown: Q
3185
+ };
3186
+ }
3187
+ function Pr(e, o) {
3188
+ let n, r;
3189
+ function i(f) {
3190
+ return f.timeStamp;
3191
+ }
3192
+ function l(f, g) {
3193
+ const p = `client${(g || e.scroll) === "x" ? "X" : "Y"}`;
3194
+ return (pt(f, o) ? f : f.touches[0])[p];
3195
+ }
3196
+ function u(f) {
3197
+ return n = f, r = f, l(f);
3198
+ }
3199
+ function s(f) {
3200
+ const g = l(f) - l(r), d = i(f) - i(n) > 170;
3201
+ return r = f, d && (n = f), g;
3202
+ }
3203
+ function a(f) {
3204
+ if (!n || !r) return 0;
3205
+ const g = l(r) - l(n), d = i(f) - i(n), p = i(f) - i(r) > 170, m = g / d;
3206
+ return d && !p && A(m) > 0.1 ? m : 0;
3207
+ }
3208
+ return {
3209
+ pointerDown: u,
3210
+ pointerMove: s,
3211
+ pointerUp: a,
3212
+ readPoint: l
3213
+ };
3214
+ }
3215
+ function $r() {
3216
+ function e(t) {
3217
+ const {
3218
+ offsetTop: n,
3219
+ offsetLeft: r,
3220
+ offsetWidth: i,
3221
+ offsetHeight: l
3222
+ } = t;
3223
+ return {
3224
+ top: n,
3225
+ right: r + i,
3226
+ bottom: n + l,
3227
+ left: r,
3228
+ width: i,
3229
+ height: l
3230
+ };
3231
+ }
3232
+ return {
3233
+ measure: e
3234
+ };
3235
+ }
3236
+ function Dr(e) {
3237
+ function o(n) {
3238
+ return e * (n / 100);
3239
+ }
3240
+ return {
3241
+ measure: o
3242
+ };
3243
+ }
3244
+ function Er(e, o, t, n, r, i, l) {
3245
+ const u = [e].concat(n);
3246
+ let s, a, c = [], f = !1;
3247
+ function g(S) {
3248
+ return r.measureSize(l.measure(S));
3249
+ }
3250
+ function d(S) {
3251
+ if (!i) return;
3252
+ a = g(e), c = n.map(g);
3253
+ function h(C) {
3254
+ for (const v of C) {
3255
+ if (f) return;
3256
+ const _ = v.target === e, I = n.indexOf(v.target), b = _ ? a : c[I], M = g(_ ? e : n[I]);
3257
+ if (A(M - b) >= 0.5) {
3258
+ S.reInit(), o.emit("resize");
3259
+ break;
3260
+ }
3261
+ }
3262
+ }
3263
+ s = new ResizeObserver((C) => {
3264
+ (Ue(i) || i(S, C)) && h(C);
3265
+ }), t.requestAnimationFrame(() => {
3266
+ u.forEach((C) => s.observe(C));
3267
+ });
3268
+ }
3269
+ function p() {
3270
+ f = !0, s && s.disconnect();
3271
+ }
3272
+ return {
3273
+ init: d,
3274
+ destroy: p
3275
+ };
3276
+ }
3277
+ function Lr(e, o, t, n, r, i) {
3278
+ let l = 0, u = 0, s = r, a = i, c = e.get(), f = 0;
3279
+ function g() {
3280
+ const b = n.get() - e.get(), M = !s;
3281
+ let V = 0;
3282
+ return M ? (l = 0, t.set(n), e.set(n), V = b) : (t.set(e), l += b / s, l *= a, c += l, e.add(l), V = c - f), u = _t(V), f = c, I;
3283
+ }
3284
+ function d() {
3285
+ const b = n.get() - o.get();
3286
+ return A(b) < 1e-3;
3287
+ }
3288
+ function p() {
3289
+ return s;
3290
+ }
3291
+ function m() {
3292
+ return u;
3293
+ }
3294
+ function S() {
3295
+ return l;
3296
+ }
3297
+ function h() {
3298
+ return v(r);
3299
+ }
3300
+ function C() {
3301
+ return _(i);
3302
+ }
3303
+ function v(b) {
3304
+ return s = b, I;
3305
+ }
3306
+ function _(b) {
3307
+ return a = b, I;
3308
+ }
3309
+ const I = {
3310
+ direction: m,
3311
+ duration: p,
3312
+ velocity: S,
3313
+ seek: g,
3314
+ settled: d,
3315
+ useBaseFriction: C,
3316
+ useBaseDuration: h,
3317
+ useFriction: _,
3318
+ useDuration: v
3319
+ };
3320
+ return I;
3321
+ }
3322
+ function Or(e, o, t, n, r) {
3323
+ const i = r.measure(10), l = r.measure(50), u = Ce(0.1, 0.99);
3324
+ let s = !1;
3325
+ function a() {
3326
+ return !(s || !e.reachedAny(t.get()) || !e.reachedAny(o.get()));
3327
+ }
3328
+ function c(d) {
3329
+ if (!a()) return;
3330
+ const p = e.reachedMin(o.get()) ? "min" : "max", m = A(e[p] - o.get()), S = t.get() - o.get(), h = u.constrain(m / l);
3331
+ t.subtract(S * h), !d && A(S) < i && (t.set(e.constrain(t.get())), n.useDuration(25).useBaseFriction());
3332
+ }
3333
+ function f(d) {
3334
+ s = !d;
3335
+ }
3336
+ return {
3337
+ shouldConstrain: a,
3338
+ constrain: c,
3339
+ toggleActive: f
3340
+ };
3341
+ }
3342
+ function Ar(e, o, t, n, r) {
3343
+ const i = Ce(-o + e, 0), l = f(), u = c(), s = g();
3344
+ function a(p, m) {
3345
+ return Ve(p, m) <= 1;
3346
+ }
3347
+ function c() {
3348
+ const p = l[0], m = ee(l), S = l.lastIndexOf(p), h = l.indexOf(m) + 1;
3349
+ return Ce(S, h);
3350
+ }
3351
+ function f() {
3352
+ return t.map((p, m) => {
3353
+ const {
3354
+ min: S,
3355
+ max: h
3356
+ } = i, C = i.constrain(p), v = !m, _ = It(t, m);
3357
+ return v ? h : _ || a(S, C) ? S : a(h, C) ? h : C;
3358
+ }).map((p) => parseFloat(p.toFixed(3)));
3359
+ }
3360
+ function g() {
3361
+ if (o <= e + r) return [i.max];
3362
+ if (n === "keepSnaps") return l;
3363
+ const {
3364
+ min: p,
3365
+ max: m
3366
+ } = u;
3367
+ return l.slice(p, m);
3368
+ }
3369
+ return {
3370
+ snapsContained: s,
3371
+ scrollContainLimit: u
3372
+ };
3373
+ }
3374
+ function Nr(e, o, t) {
3375
+ const n = o[0], r = t ? n - e : ee(o);
3376
+ return {
3377
+ limit: Ce(r, n)
3378
+ };
3379
+ }
3380
+ function jr(e, o, t, n) {
3381
+ const i = o.min + 0.1, l = o.max + 0.1, {
3382
+ reachedMin: u,
3383
+ reachedMax: s
3384
+ } = Ce(i, l);
3385
+ function a(g) {
3386
+ return g === 1 ? s(t.get()) : g === -1 ? u(t.get()) : !1;
3387
+ }
3388
+ function c(g) {
3389
+ if (!a(g)) return;
3390
+ const d = e * (g * -1);
3391
+ n.forEach((p) => p.add(d));
3392
+ }
3393
+ return {
3394
+ loop: c
3395
+ };
3396
+ }
3397
+ function Tr(e) {
3398
+ const {
3399
+ max: o,
3400
+ length: t
3401
+ } = e;
3402
+ function n(i) {
3403
+ const l = i - o;
3404
+ return t ? l / -t : 0;
3405
+ }
3406
+ return {
3407
+ get: n
3408
+ };
3409
+ }
3410
+ function Hr(e, o, t, n, r) {
3411
+ const {
3412
+ startEdge: i,
3413
+ endEdge: l
3414
+ } = e, {
3415
+ groupSlides: u
3416
+ } = r, s = f().map(o.measure), a = g(), c = d();
3417
+ function f() {
3418
+ return u(n).map((m) => ee(m)[l] - m[0][i]).map(A);
3419
+ }
3420
+ function g() {
3421
+ return n.map((m) => t[i] - m[i]).map((m) => -A(m));
3422
+ }
3423
+ function d() {
3424
+ return u(a).map((m) => m[0]).map((m, S) => m + s[S]);
3425
+ }
3426
+ return {
3427
+ snaps: a,
3428
+ snapsAligned: c
3429
+ };
3430
+ }
3431
+ function Gr(e, o, t, n, r, i) {
3432
+ const {
3433
+ groupSlides: l
3434
+ } = r, {
3435
+ min: u,
3436
+ max: s
3437
+ } = n, a = c();
3438
+ function c() {
3439
+ const g = l(i), d = !e || o === "keepSnaps";
3440
+ return t.length === 1 ? [i] : d ? g : g.slice(u, s).map((p, m, S) => {
3441
+ const h = !m, C = It(S, m);
3442
+ if (h) {
3443
+ const v = ee(S[0]) + 1;
3444
+ return Ut(v);
3445
+ }
3446
+ if (C) {
3447
+ const v = Ee(i) - ee(S)[0] + 1;
3448
+ return Ut(v, ee(S)[0]);
3449
+ }
3450
+ return p;
3451
+ });
3452
+ }
3453
+ return {
3454
+ slideRegistry: a
3455
+ };
3456
+ }
3457
+ function zr(e, o, t, n, r) {
3458
+ const {
3459
+ reachedAny: i,
3460
+ removeOffset: l,
3461
+ constrain: u
3462
+ } = n;
3463
+ function s(p) {
3464
+ return p.concat().sort((m, S) => A(m) - A(S))[0];
3465
+ }
3466
+ function a(p) {
3467
+ const m = e ? l(p) : u(p), S = o.map((C, v) => ({
3468
+ diff: c(C - m, 0),
3469
+ index: v
3470
+ })).sort((C, v) => A(C.diff) - A(v.diff)), {
3471
+ index: h
3472
+ } = S[0];
3473
+ return {
3474
+ index: h,
3475
+ distance: m
3476
+ };
3477
+ }
3478
+ function c(p, m) {
3479
+ const S = [p, p + t, p - t];
3480
+ if (!e) return p;
3481
+ if (!m) return s(S);
3482
+ const h = S.filter((C) => _t(C) === m);
3483
+ return h.length ? s(h) : ee(S) - t;
3484
+ }
3485
+ function f(p, m) {
3486
+ const S = o[p] - r.get(), h = c(S, m);
3487
+ return {
3488
+ index: p,
3489
+ distance: h
3490
+ };
3491
+ }
3492
+ function g(p, m) {
3493
+ const S = r.get() + p, {
3494
+ index: h,
3495
+ distance: C
3496
+ } = a(S), v = !e && i(S);
3497
+ if (!m || v) return {
3498
+ index: h,
3499
+ distance: p
3500
+ };
3501
+ const _ = o[h] - C, I = p + c(_, 0);
3502
+ return {
3503
+ index: h,
3504
+ distance: I
3505
+ };
3506
+ }
3507
+ return {
3508
+ byDistance: g,
3509
+ byIndex: f,
3510
+ shortcut: c
3511
+ };
3512
+ }
3513
+ function Br(e, o, t, n, r, i, l) {
3514
+ function u(f) {
3515
+ const g = f.distance, d = f.index !== o.get();
3516
+ i.add(g), g && (n.duration() ? e.start() : (e.update(), e.render(1), e.update())), d && (t.set(o.get()), o.set(f.index), l.emit("select"));
3517
+ }
3518
+ function s(f, g) {
3519
+ const d = r.byDistance(f, g);
3520
+ u(d);
3521
+ }
3522
+ function a(f, g) {
3523
+ const d = o.clone().set(f), p = r.byIndex(d.get(), g);
3524
+ u(p);
3525
+ }
3526
+ return {
3527
+ distance: s,
3528
+ index: a
3529
+ };
3530
+ }
3531
+ function kr(e, o, t, n, r, i, l, u) {
3532
+ const s = {
3533
+ passive: !0,
3534
+ capture: !0
3535
+ };
3536
+ let a = 0;
3537
+ function c(d) {
3538
+ if (!u) return;
3539
+ function p(m) {
3540
+ if ((/* @__PURE__ */ new Date()).getTime() - a > 10) return;
3541
+ l.emit("slideFocusStart"), e.scrollLeft = 0;
3542
+ const C = t.findIndex((v) => v.includes(m));
3543
+ Ft(C) && (r.useDuration(0), n.index(C, 0), l.emit("slideFocus"));
3544
+ }
3545
+ i.add(document, "keydown", f, !1), o.forEach((m, S) => {
3546
+ i.add(m, "focus", (h) => {
3547
+ (Ue(u) || u(d, h)) && p(S);
3548
+ }, s);
3549
+ });
3550
+ }
3551
+ function f(d) {
3552
+ d.code === "Tab" && (a = (/* @__PURE__ */ new Date()).getTime());
3553
+ }
3554
+ return {
3555
+ init: c
3556
+ };
3557
+ }
3558
+ function Ie(e) {
3559
+ let o = e;
3560
+ function t() {
3561
+ return o;
3562
+ }
3563
+ function n(s) {
3564
+ o = l(s);
3565
+ }
3566
+ function r(s) {
3567
+ o += l(s);
3568
+ }
3569
+ function i(s) {
3570
+ o -= l(s);
3571
+ }
3572
+ function l(s) {
3573
+ return Ft(s) ? s : s.get();
3574
+ }
3575
+ return {
3576
+ get: t,
3577
+ set: n,
3578
+ add: r,
3579
+ subtract: i
3580
+ };
3581
+ }
3582
+ function Mn(e, o) {
3583
+ const t = e.scroll === "x" ? l : u, n = o.style;
3584
+ let r = null, i = !1;
3585
+ function l(g) {
3586
+ return `translate3d(${g}px,0px,0px)`;
3587
+ }
3588
+ function u(g) {
3589
+ return `translate3d(0px,${g}px,0px)`;
3590
+ }
3591
+ function s(g) {
3592
+ if (i) return;
3593
+ const d = _r(e.direction(g));
3594
+ d !== r && (n.transform = t(d), r = d);
3595
+ }
3596
+ function a(g) {
3597
+ i = !g;
3598
+ }
3599
+ function c() {
3600
+ i || (n.transform = "", o.getAttribute("style") || o.removeAttribute("style"));
3601
+ }
3602
+ return {
3603
+ clear: c,
3604
+ to: s,
3605
+ toggleActive: a
3606
+ };
3607
+ }
3608
+ function qr(e, o, t, n, r, i, l, u, s) {
3609
+ const c = Pe(r), f = Pe(r).reverse(), g = h().concat(C());
3610
+ function d(M, V) {
3611
+ return M.reduce((P, L) => P - r[L], V);
3612
+ }
3613
+ function p(M, V) {
3614
+ return M.reduce((P, L) => d(P, V) > 0 ? P.concat([L]) : P, []);
3615
+ }
3616
+ function m(M) {
3617
+ return i.map((V, P) => ({
3618
+ start: V - n[P] + 0.5 + M,
3619
+ end: V + o - 0.5 + M
2697
3620
  }));
2698
3621
  }
3622
+ function S(M, V, P) {
3623
+ const L = m(V);
3624
+ return M.map(($) => {
3625
+ const N = P ? 0 : -t, B = P ? t : 0, D = P ? "end" : "start", T = L[$][D];
3626
+ return {
3627
+ index: $,
3628
+ loopPoint: T,
3629
+ slideLocation: Ie(-1),
3630
+ translate: Mn(e, s[$]),
3631
+ target: () => u.get() > T ? N : B
3632
+ };
3633
+ });
3634
+ }
3635
+ function h() {
3636
+ const M = l[0], V = p(f, M);
3637
+ return S(V, t, !1);
3638
+ }
3639
+ function C() {
3640
+ const M = o - l[0] - 1, V = p(c, M);
3641
+ return S(V, -t, !0);
3642
+ }
3643
+ function v() {
3644
+ return g.every(({
3645
+ index: M
3646
+ }) => {
3647
+ const V = c.filter((P) => P !== M);
3648
+ return d(V, o) <= 0.1;
3649
+ });
3650
+ }
3651
+ function _() {
3652
+ g.forEach((M) => {
3653
+ const {
3654
+ target: V,
3655
+ translate: P,
3656
+ slideLocation: L
3657
+ } = M, $ = V();
3658
+ $ !== L.get() && (P.to($), L.set($));
3659
+ });
3660
+ }
3661
+ function I() {
3662
+ g.forEach((M) => M.translate.clear());
3663
+ }
3664
+ return {
3665
+ canLoop: v,
3666
+ clear: I,
3667
+ loop: _,
3668
+ loopPoints: g
3669
+ };
3670
+ }
3671
+ function Ur(e, o, t) {
3672
+ let n, r = !1;
3673
+ function i(s) {
3674
+ if (!t) return;
3675
+ function a(c) {
3676
+ for (const f of c)
3677
+ if (f.type === "childList") {
3678
+ s.reInit(), o.emit("slidesChanged");
3679
+ break;
3680
+ }
3681
+ }
3682
+ n = new MutationObserver((c) => {
3683
+ r || (Ue(t) || t(s, c)) && a(c);
3684
+ }), n.observe(e, {
3685
+ childList: !0
3686
+ });
3687
+ }
3688
+ function l() {
3689
+ n && n.disconnect(), r = !0;
3690
+ }
3691
+ return {
3692
+ init: i,
3693
+ destroy: l
3694
+ };
2699
3695
  }
2700
- const to = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
2701
- const { toasts: t } = ft();
2702
- return $e(() => {
2703
- t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) => pt.dismiss(n.id));
2704
- }, [e, t]), /* @__PURE__ */ p.jsx(
2705
- mt,
3696
+ function Kr(e, o, t, n) {
3697
+ const r = {};
3698
+ let i = null, l = null, u, s = !1;
3699
+ function a() {
3700
+ u = new IntersectionObserver((p) => {
3701
+ s || (p.forEach((m) => {
3702
+ const S = o.indexOf(m.target);
3703
+ r[S] = m;
3704
+ }), i = null, l = null, t.emit("slidesInView"));
3705
+ }, {
3706
+ root: e.parentElement,
3707
+ threshold: n
3708
+ }), o.forEach((p) => u.observe(p));
3709
+ }
3710
+ function c() {
3711
+ u && u.disconnect(), s = !0;
3712
+ }
3713
+ function f(p) {
3714
+ return $e(r).reduce((m, S) => {
3715
+ const h = parseInt(S), {
3716
+ isIntersecting: C
3717
+ } = r[h];
3718
+ return (p && C || !p && !C) && m.push(h), m;
3719
+ }, []);
3720
+ }
3721
+ function g(p = !0) {
3722
+ if (p && i) return i;
3723
+ if (!p && l) return l;
3724
+ const m = f(p);
3725
+ return p && (i = m), p || (l = m), m;
3726
+ }
3727
+ return {
3728
+ init: a,
3729
+ destroy: c,
3730
+ get: g
3731
+ };
3732
+ }
3733
+ function Xr(e, o, t, n, r, i) {
3734
+ const {
3735
+ measureSize: l,
3736
+ startEdge: u,
3737
+ endEdge: s
3738
+ } = e, a = t[0] && r, c = p(), f = m(), g = t.map(l), d = S();
3739
+ function p() {
3740
+ if (!a) return 0;
3741
+ const C = t[0];
3742
+ return A(o[u] - C[u]);
3743
+ }
3744
+ function m() {
3745
+ if (!a) return 0;
3746
+ const C = i.getComputedStyle(ee(n));
3747
+ return parseFloat(C.getPropertyValue(`margin-${s}`));
3748
+ }
3749
+ function S() {
3750
+ return t.map((C, v, _) => {
3751
+ const I = !v, b = It(_, v);
3752
+ return I ? g[v] + c : b ? g[v] + f : _[v + 1][u] - C[u];
3753
+ }).map(A);
3754
+ }
3755
+ return {
3756
+ slideSizes: g,
3757
+ slideSizesWithGaps: d,
3758
+ startGap: c,
3759
+ endGap: f
3760
+ };
3761
+ }
3762
+ function Wr(e, o, t, n, r, i, l, u, s) {
3763
+ const {
3764
+ startEdge: a,
3765
+ endEdge: c,
3766
+ direction: f
3767
+ } = e, g = Ft(t);
3768
+ function d(h, C) {
3769
+ return Pe(h).filter((v) => v % C === 0).map((v) => h.slice(v, v + C));
3770
+ }
3771
+ function p(h) {
3772
+ return h.length ? Pe(h).reduce((C, v, _) => {
3773
+ const I = ee(C) || 0, b = I === 0, M = v === Ee(h), V = r[a] - i[I][a], P = r[a] - i[v][c], L = !n && b ? f(l) : 0, $ = !n && M ? f(u) : 0, N = A(P - $ - (V + L));
3774
+ return _ && N > o + s && C.push(v), M && C.push(h.length), C;
3775
+ }, []).map((C, v, _) => {
3776
+ const I = Math.max(_[v - 1] || 0);
3777
+ return h.slice(I, C);
3778
+ }) : [];
3779
+ }
3780
+ function m(h) {
3781
+ return g ? d(h, t) : p(h);
3782
+ }
3783
+ return {
3784
+ groupSlides: m
3785
+ };
3786
+ }
3787
+ function Qr(e, o, t, n, r, i, l) {
3788
+ const {
3789
+ align: u,
3790
+ axis: s,
3791
+ direction: a,
3792
+ startIndex: c,
3793
+ loop: f,
3794
+ duration: g,
3795
+ dragFree: d,
3796
+ dragThreshold: p,
3797
+ inViewThreshold: m,
3798
+ slidesToScroll: S,
3799
+ skipSnaps: h,
3800
+ containScroll: C,
3801
+ watchResize: v,
3802
+ watchSlides: _,
3803
+ watchDrag: I,
3804
+ watchFocus: b
3805
+ } = i, M = 2, V = $r(), P = V.measure(o), L = t.map(V.measure), $ = br(s, a), N = $.measureSize(P), B = Dr(N), D = Ir(u, N), T = !f && !!C, K = f || !!C, {
3806
+ slideSizes: X,
3807
+ slideSizesWithGaps: J,
3808
+ startGap: Y,
3809
+ endGap: te
3810
+ } = Xr($, P, L, t, K, r), W = Wr($, N, S, f, P, L, Y, te, M), {
3811
+ snaps: oe,
3812
+ snapsAligned: re
3813
+ } = Hr($, D, P, L, W), ie = -ee(oe) + ee(J), {
3814
+ snapsContained: xe,
3815
+ scrollContainLimit: ye
3816
+ } = Ar(N, ie, re, C, M), k = T ? xe : re, {
3817
+ limit: G
3818
+ } = Nr(ie, k, f), le = In(Ee(k), c, f), Q = le.clone(), O = Pe(t), x = ({
3819
+ dragHandler: ve,
3820
+ scrollBody: Qe,
3821
+ scrollBounds: Je,
3822
+ options: {
3823
+ loop: Le
3824
+ }
3825
+ }) => {
3826
+ Le || Je.constrain(ve.pointerDown()), Qe.seek();
3827
+ }, E = ({
3828
+ scrollBody: ve,
3829
+ translate: Qe,
3830
+ location: Je,
3831
+ offsetLocation: Le,
3832
+ previousLocation: Pn,
3833
+ scrollLooper: $n,
3834
+ slideLooper: Dn,
3835
+ dragHandler: En,
3836
+ animation: Ln,
3837
+ eventHandler: $t,
3838
+ scrollBounds: On,
3839
+ options: {
3840
+ loop: Dt
3841
+ }
3842
+ }, Et) => {
3843
+ const Lt = ve.settled(), An = !On.shouldConstrain(), Ot = Dt ? Lt : Lt && An, At = Ot && !En.pointerDown();
3844
+ At && Ln.stop();
3845
+ const Nn = Je.get() * Et + Pn.get() * (1 - Et);
3846
+ Le.set(Nn), Dt && ($n.loop(ve.direction()), Dn.loop()), Qe.to(Le.get()), At && $t.emit("settle"), Ot || $t.emit("scroll");
3847
+ }, j = Mr(n, r, () => x(We), (ve) => E(We, ve)), z = 0.68, ne = k[le.get()], se = Ie(ne), me = Ie(ne), de = Ie(ne), he = Ie(ne), Fe = Lr(se, de, me, he, g, z), Ke = zr(f, k, ie, G, he), Xe = Br(j, le, Q, Fe, Ke, he, l), bt = Tr(G), Vt = De(), bn = Kr(o, t, l, m), {
3848
+ slideRegistry: Pt
3849
+ } = Gr(T, C, k, ye, W, O), Vn = kr(e, t, Pt, Xe, Fe, Vt, l, b), We = {
3850
+ ownerDocument: n,
3851
+ ownerWindow: r,
3852
+ eventHandler: l,
3853
+ containerRect: P,
3854
+ slideRects: L,
3855
+ animation: j,
3856
+ axis: $,
3857
+ dragHandler: Vr($, e, n, r, he, Pr($, r), se, j, Xe, Fe, Ke, le, l, B, d, p, h, z, I),
3858
+ eventStore: Vt,
3859
+ percentOfView: B,
3860
+ index: le,
3861
+ indexPrevious: Q,
3862
+ limit: G,
3863
+ location: se,
3864
+ offsetLocation: de,
3865
+ previousLocation: me,
3866
+ options: i,
3867
+ resizeHandler: Er(o, l, r, t, $, v, V),
3868
+ scrollBody: Fe,
3869
+ scrollBounds: Or(G, de, he, Fe, B),
3870
+ scrollLooper: jr(ie, G, de, [se, de, me, he]),
3871
+ scrollProgress: bt,
3872
+ scrollSnapList: k.map(bt.get),
3873
+ scrollSnaps: k,
3874
+ scrollTarget: Ke,
3875
+ scrollTo: Xe,
3876
+ slideLooper: qr($, N, ie, X, J, oe, k, de, t),
3877
+ slideFocus: Vn,
3878
+ slidesHandler: Ur(o, l, _),
3879
+ slidesInView: bn,
3880
+ slideIndexes: O,
3881
+ slideRegistry: Pt,
3882
+ slidesToScroll: W,
3883
+ target: he,
3884
+ translate: Mn($, o)
3885
+ };
3886
+ return We;
3887
+ }
3888
+ function Jr() {
3889
+ let e = {}, o;
3890
+ function t(a) {
3891
+ o = a;
3892
+ }
3893
+ function n(a) {
3894
+ return e[a] || [];
3895
+ }
3896
+ function r(a) {
3897
+ return n(a).forEach((c) => c(o, a)), s;
3898
+ }
3899
+ function i(a, c) {
3900
+ return e[a] = n(a).concat([c]), s;
3901
+ }
3902
+ function l(a, c) {
3903
+ return e[a] = n(a).filter((f) => f !== c), s;
3904
+ }
3905
+ function u() {
3906
+ e = {};
3907
+ }
3908
+ const s = {
3909
+ init: t,
3910
+ emit: r,
3911
+ off: l,
3912
+ on: i,
3913
+ clear: u
3914
+ };
3915
+ return s;
3916
+ }
3917
+ const Yr = {
3918
+ align: "center",
3919
+ axis: "x",
3920
+ container: null,
3921
+ slides: null,
3922
+ containScroll: "trimSnaps",
3923
+ direction: "ltr",
3924
+ slidesToScroll: 1,
3925
+ inViewThreshold: 0,
3926
+ breakpoints: {},
3927
+ dragFree: !1,
3928
+ dragThreshold: 10,
3929
+ loop: !1,
3930
+ skipSnaps: !1,
3931
+ duration: 25,
3932
+ startIndex: 0,
3933
+ active: !0,
3934
+ watchDrag: !0,
3935
+ watchResize: !0,
3936
+ watchSlides: !0,
3937
+ watchFocus: !0
3938
+ };
3939
+ function Zr(e) {
3940
+ function o(i, l) {
3941
+ return _n(i, l || {});
3942
+ }
3943
+ function t(i) {
3944
+ const l = i.breakpoints || {}, u = $e(l).filter((s) => e.matchMedia(s).matches).map((s) => l[s]).reduce((s, a) => o(s, a), {});
3945
+ return o(i, u);
3946
+ }
3947
+ function n(i) {
3948
+ return i.map((l) => $e(l.breakpoints || {})).reduce((l, u) => l.concat(u), []).map(e.matchMedia);
3949
+ }
3950
+ return {
3951
+ mergeOptions: o,
3952
+ optionsAtMedia: t,
3953
+ optionsMediaQueries: n
3954
+ };
3955
+ }
3956
+ function ei(e) {
3957
+ let o = [];
3958
+ function t(i, l) {
3959
+ return o = l.filter(({
3960
+ options: u
3961
+ }) => e.optionsAtMedia(u).active !== !1), o.forEach((u) => u.init(i, e)), l.reduce((u, s) => Object.assign(u, {
3962
+ [s.name]: s
3963
+ }), {});
3964
+ }
3965
+ function n() {
3966
+ o = o.filter((i) => i.destroy());
3967
+ }
3968
+ return {
3969
+ init: t,
3970
+ destroy: n
3971
+ };
3972
+ }
3973
+ function Ge(e, o, t) {
3974
+ const n = e.ownerDocument, r = n.defaultView, i = Zr(r), l = ei(i), u = De(), s = Jr(), {
3975
+ mergeOptions: a,
3976
+ optionsAtMedia: c,
3977
+ optionsMediaQueries: f
3978
+ } = i, {
3979
+ on: g,
3980
+ off: d,
3981
+ emit: p
3982
+ } = s, m = $;
3983
+ let S = !1, h, C = a(Yr, Ge.globalOptions), v = a(C), _ = [], I, b, M;
3984
+ function V() {
3985
+ const {
3986
+ container: O,
3987
+ slides: x
3988
+ } = v;
3989
+ b = (ft(O) ? e.querySelector(O) : O) || e.children[0];
3990
+ const j = ft(x) ? b.querySelectorAll(x) : x;
3991
+ M = [].slice.call(j || b.children);
3992
+ }
3993
+ function P(O) {
3994
+ const x = Qr(e, b, M, n, r, O, s);
3995
+ if (O.loop && !x.slideLooper.canLoop()) {
3996
+ const E = Object.assign({}, O, {
3997
+ loop: !1
3998
+ });
3999
+ return P(E);
4000
+ }
4001
+ return x;
4002
+ }
4003
+ function L(O, x) {
4004
+ S || (C = a(C, O), v = c(C), _ = x || _, V(), h = P(v), f([C, ..._.map(({
4005
+ options: E
4006
+ }) => E)]).forEach((E) => u.add(E, "change", $)), v.active && (h.translate.to(h.location.get()), h.animation.init(), h.slidesInView.init(), h.slideFocus.init(Q), h.eventHandler.init(Q), h.resizeHandler.init(Q), h.slidesHandler.init(Q), h.options.loop && h.slideLooper.loop(), b.offsetParent && M.length && h.dragHandler.init(Q), I = l.init(Q, _)));
4007
+ }
4008
+ function $(O, x) {
4009
+ const E = W();
4010
+ N(), L(a({
4011
+ startIndex: E
4012
+ }, O), x), s.emit("reInit");
4013
+ }
4014
+ function N() {
4015
+ h.dragHandler.destroy(), h.eventStore.clear(), h.translate.clear(), h.slideLooper.clear(), h.resizeHandler.destroy(), h.slidesHandler.destroy(), h.slidesInView.destroy(), h.animation.destroy(), l.destroy(), u.clear();
4016
+ }
4017
+ function B() {
4018
+ S || (S = !0, u.clear(), N(), s.emit("destroy"), s.clear());
4019
+ }
4020
+ function D(O, x, E) {
4021
+ !v.active || S || (h.scrollBody.useBaseFriction().useDuration(x === !0 ? 0 : v.duration), h.scrollTo.index(O, E || 0));
4022
+ }
4023
+ function T(O) {
4024
+ const x = h.index.add(1).get();
4025
+ D(x, O, -1);
4026
+ }
4027
+ function K(O) {
4028
+ const x = h.index.add(-1).get();
4029
+ D(x, O, 1);
4030
+ }
4031
+ function X() {
4032
+ return h.index.add(1).get() !== W();
4033
+ }
4034
+ function J() {
4035
+ return h.index.add(-1).get() !== W();
4036
+ }
4037
+ function Y() {
4038
+ return h.scrollSnapList;
4039
+ }
4040
+ function te() {
4041
+ return h.scrollProgress.get(h.offsetLocation.get());
4042
+ }
4043
+ function W() {
4044
+ return h.index.get();
4045
+ }
4046
+ function oe() {
4047
+ return h.indexPrevious.get();
4048
+ }
4049
+ function re() {
4050
+ return h.slidesInView.get();
4051
+ }
4052
+ function ie() {
4053
+ return h.slidesInView.get(!1);
4054
+ }
4055
+ function xe() {
4056
+ return I;
4057
+ }
4058
+ function ye() {
4059
+ return h;
4060
+ }
4061
+ function k() {
4062
+ return e;
4063
+ }
4064
+ function G() {
4065
+ return b;
4066
+ }
4067
+ function le() {
4068
+ return M;
4069
+ }
4070
+ const Q = {
4071
+ canScrollNext: X,
4072
+ canScrollPrev: J,
4073
+ containerNode: G,
4074
+ internalEngine: ye,
4075
+ destroy: B,
4076
+ off: d,
4077
+ on: g,
4078
+ emit: p,
4079
+ plugins: xe,
4080
+ previousScrollSnap: oe,
4081
+ reInit: m,
4082
+ rootNode: k,
4083
+ scrollNext: T,
4084
+ scrollPrev: K,
4085
+ scrollProgress: te,
4086
+ scrollSnapList: Y,
4087
+ scrollTo: D,
4088
+ selectedScrollSnap: W,
4089
+ slideNodes: le,
4090
+ slidesInView: re,
4091
+ slidesNotInView: ie
4092
+ };
4093
+ return L(o, t), setTimeout(() => s.emit("init"), 0), Q;
4094
+ }
4095
+ Ge.globalOptions = void 0;
4096
+ function Mt(e = {}, o = []) {
4097
+ const t = lt(e), n = lt(o), [r, i] = fe(), [l, u] = fe(), s = we(() => {
4098
+ r && r.reInit(t.current, n.current);
4099
+ }, [r]);
4100
+ return Se(() => {
4101
+ yt(t.current, e) || (t.current = e, s());
4102
+ }, [e, s]), Se(() => {
4103
+ yr(n.current, o) || (n.current = o, s());
4104
+ }, [o, s]), Se(() => {
4105
+ if (xr() && l) {
4106
+ Ge.globalOptions = Mt.globalOptions;
4107
+ const a = Ge(l, t.current, n.current);
4108
+ return i(a), () => a.destroy();
4109
+ } else
4110
+ i(void 0);
4111
+ }, [l, i]), [u, r];
4112
+ }
4113
+ Mt.globalOptions = void 0;
4114
+ const ti = ({ carouselOptions: e, autoPlayOptions: o }) => {
4115
+ const [t, n] = Mt(e, [xt(o)]), r = we((i) => {
4116
+ var s;
4117
+ const l = (s = i == null ? void 0 : i.plugins()) == null ? void 0 : s.autoplay;
4118
+ if (!l) return;
4119
+ (l.options.stopOnInteraction === !1 ? l.reset : l.stop)();
4120
+ }, []);
4121
+ return { emblaRef: t, emblaApi: n, navigationHandler: r };
4122
+ }, ze = ({ mode: e, onClick: o, children: t, classes: n, ...r }) => /* @__PURE__ */ w.jsxs(
4123
+ "button",
4124
+ {
4125
+ className: R("group flex size-8 cursor-pointer items-center justify-center p-1", n == null ? void 0 : n.button),
4126
+ type: "button",
4127
+ onClick: () => o(e),
4128
+ ...r,
4129
+ children: [
4130
+ /* @__PURE__ */ w.jsx(
4131
+ Re,
4132
+ {
4133
+ name: "arrows/arrowRight",
4134
+ className: R(
4135
+ "h-full w-full text-icon-primary-default transition-colors group-disabled:text-icon-disabled",
4136
+ { "rotate-180": e === "prev" },
4137
+ n == null ? void 0 : n.icon
4138
+ )
4139
+ }
4140
+ ),
4141
+ t
4142
+ ]
4143
+ }
4144
+ ), ni = ({ scrollSnaps: e, visibleIndex: o, onClickDot: t, position: n, classes: r, ...i }) => /* @__PURE__ */ w.jsx(
4145
+ "div",
4146
+ {
4147
+ className: R(
4148
+ "mt-4 flex items-center gap-[6px]",
4149
+ {
4150
+ "justify-center": n === "center",
4151
+ "justify-end": n === "bot-right",
4152
+ "justify-start": n === "bot-left"
4153
+ },
4154
+ r == null ? void 0 : r.dotsWrapper
4155
+ ),
4156
+ children: e.map((l, u) => /* @__PURE__ */ w.jsx(
4157
+ "button",
4158
+ {
4159
+ type: "button",
4160
+ onClick: () => t(u),
4161
+ className: R(
4162
+ "size-2 cursor-pointer rounded-full bg-color-primary-tr-pressed",
4163
+ { "h-2 w-4 rounded-md bg-color-primary-default": u === o },
4164
+ r == null ? void 0 : r.dot
4165
+ ),
4166
+ ...i
4167
+ },
4168
+ u
4169
+ ))
4170
+ }
4171
+ ), Kt = U(
4172
+ ({ visibleIndex: e, classes: o, children: t, dotsProps: n, dotsOptions: r }, i) => {
4173
+ const { isMobile: l, isDesktop: u } = ke(), { mobVisible: s, deskVisible: a, ...c } = r ?? {}, f = s && l, g = a && u, d = {
4174
+ visibleIndex: e,
4175
+ ...n
4176
+ };
4177
+ return /* @__PURE__ */ w.jsxs("div", { className: R("mx-auto overflow-hidden", o == null ? void 0 : o.slidesOverlay), ref: i, children: [
4178
+ /* @__PURE__ */ w.jsx("div", { className: R("flex touch-pan-y gap-6", o == null ? void 0 : o.slidesWrapper), children: t }),
4179
+ (g || f) && /* @__PURE__ */ w.jsx(ni, { ...d, ...c })
4180
+ ] });
4181
+ }
4182
+ ), Xt = {
4183
+ dragFree: !0,
4184
+ loop: !1,
4185
+ align: "start",
4186
+ slidesToScroll: 1
4187
+ }, Wt = {
4188
+ position: "center",
4189
+ deskVisible: !0,
4190
+ mobVisible: !0
4191
+ }, Qt = {
4192
+ position: "top-right",
4193
+ deskVisible: !0,
4194
+ mobVisible: !1
4195
+ }, oi = {
4196
+ active: !0
4197
+ }, ri = ({
4198
+ children: e,
4199
+ prevBtnDisabled: o,
4200
+ nextBtnDisabled: t,
4201
+ onClickNavigationButton: n,
4202
+ classes: r
4203
+ }) => {
4204
+ var i, l, u, s;
4205
+ return /* @__PURE__ */ w.jsxs("div", { className: R("relative flex items-center gap-1", r == null ? void 0 : r.wrapper), children: [
4206
+ /* @__PURE__ */ w.jsx(
4207
+ ze,
4208
+ {
4209
+ mode: "prev",
4210
+ onClick: n,
4211
+ disabled: o,
4212
+ classes: {
4213
+ button: R("absolute -left-12 top-1/2 -transform-y-1/2", (i = r == null ? void 0 : r.arrowLeftClasses) == null ? void 0 : i.button),
4214
+ icon: R((l = r == null ? void 0 : r.arrowLeftClasses) == null ? void 0 : l.icon)
4215
+ }
4216
+ }
4217
+ ),
4218
+ e,
4219
+ /* @__PURE__ */ w.jsx(
4220
+ ze,
4221
+ {
4222
+ mode: "next",
4223
+ onClick: n,
4224
+ disabled: t,
4225
+ classes: {
4226
+ button: R("absolute -right-12 top-1/2 -transform-y-1/2", (u = r == null ? void 0 : r.arrowRightClasses) == null ? void 0 : u.button),
4227
+ icon: R((s = r == null ? void 0 : r.arrowRightClasses) == null ? void 0 : s.icon)
4228
+ }
4229
+ }
4230
+ )
4231
+ ] });
4232
+ }, _i = ({
4233
+ dotsOptions: e = Wt,
4234
+ navArrowOptions: o = Qt,
4235
+ carouselOptions: t = Xt,
4236
+ heading: n,
4237
+ autoPlayOptions: r,
4238
+ setVisibleIndex: i,
4239
+ visibleIndex: l,
4240
+ children: u,
4241
+ classes: s,
4242
+ ...a
4243
+ }) => {
4244
+ const c = { ...Xt, ...t }, f = { ...oi, ...r }, g = { ...Qt, ...o }, d = { ...Wt, ...e }, { emblaApi: p, navigationHandler: m, emblaRef: S } = ti({
4245
+ carouselOptions: c,
4246
+ autoPlayOptions: f
4247
+ }), h = Sr({ emblaApi: p, navigationHandler: m, setVisibleIndex: i }), { prevBtnDisabled: C, nextBtnDisabled: v, onClickNavigationButton: _ } = hr({
4248
+ emblaApi: p,
4249
+ navigationHandler: m
4250
+ }), { isMobile: I, isDesktop: b } = ke(), { deskVisible: M, mobVisible: V, position: P } = g ?? {}, N = M && b || V && I, B = !!n || N && P === "top-right";
4251
+ return /* @__PURE__ */ w.jsxs("div", { className: R("flex flex-col", s == null ? void 0 : s.root), ...a, children: [
4252
+ B && /* @__PURE__ */ w.jsxs("div", { className: R("flex items-center justify-between gap-6", { "mb-6": B }, s == null ? void 0 : s.header), children: [
4253
+ !!n && /* @__PURE__ */ w.jsx(Yt, { as: "h2", className: R(s == null ? void 0 : s.heading), children: "Другие предложения" }),
4254
+ N && P === "top-right" && /* @__PURE__ */ w.jsxs("div", { className: R("ml-auto flex items-center gap-2", s == null ? void 0 : s.arrowsNavWrapper), children: [
4255
+ /* @__PURE__ */ w.jsx(
4256
+ ze,
4257
+ {
4258
+ mode: "prev",
4259
+ onClick: _,
4260
+ disabled: C,
4261
+ classes: s == null ? void 0 : s.arrowLeftClasses
4262
+ }
4263
+ ),
4264
+ /* @__PURE__ */ w.jsx(
4265
+ ze,
4266
+ {
4267
+ mode: "next",
4268
+ onClick: _,
4269
+ disabled: v,
4270
+ classes: s == null ? void 0 : s.arrowRightClasses
4271
+ }
4272
+ )
4273
+ ] })
4274
+ ] }),
4275
+ N && P === "center" ? /* @__PURE__ */ w.jsx(
4276
+ ri,
4277
+ {
4278
+ onClickNavigationButton: _,
4279
+ prevBtnDisabled: C,
4280
+ nextBtnDisabled: v,
4281
+ classes: s == null ? void 0 : s.containerWithNavClasses,
4282
+ children: /* @__PURE__ */ w.jsx(
4283
+ Kt,
4284
+ {
4285
+ visibleIndex: l,
4286
+ dotsOptions: d,
4287
+ ref: S,
4288
+ dotsProps: h,
4289
+ classes: s == null ? void 0 : s.carouselContentClasses,
4290
+ children: u
4291
+ }
4292
+ )
4293
+ }
4294
+ ) : /* @__PURE__ */ w.jsx(
4295
+ Kt,
4296
+ {
4297
+ visibleIndex: l,
4298
+ dotsOptions: d,
4299
+ ref: S,
4300
+ dotsProps: h,
4301
+ classes: s == null ? void 0 : s.carouselContentClasses,
4302
+ children: u
4303
+ }
4304
+ )
4305
+ ] });
4306
+ }, Ii = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
4307
+ const { toasts: t } = Wn();
4308
+ return Se(() => {
4309
+ t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) => Qn.dismiss(n.id));
4310
+ }, [e, t]), /* @__PURE__ */ w.jsx(
4311
+ Jn,
2706
4312
  {
2707
4313
  position: "top-center",
2708
4314
  toastOptions: {
@@ -2710,54 +4316,54 @@ const to = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
2710
4316
  }
2711
4317
  }
2712
4318
  );
2713
- }, no = ({ linksList: e }) => /* @__PURE__ */ p.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: e.map((o) => /* @__PURE__ */ p.jsx(p.Fragment, { children: "path" in o ? /* @__PURE__ */ p.jsxs(
4319
+ }, Mi = ({ linksList: e }) => /* @__PURE__ */ w.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: e.map((o) => /* @__PURE__ */ w.jsx(w.Fragment, { children: "path" in o ? /* @__PURE__ */ w.jsxs(
2714
4320
  "div",
2715
4321
  {
2716
- className: C(
4322
+ className: R(
2717
4323
  "flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
2718
4324
  { "pointer-events-none !border-transparent": o == null ? void 0 : o.isDisabled }
2719
4325
  ),
2720
4326
  children: [
2721
- /* @__PURE__ */ p.jsx(
4327
+ /* @__PURE__ */ w.jsx(
2722
4328
  "a",
2723
4329
  {
2724
4330
  href: o.path,
2725
4331
  target: "_blank",
2726
4332
  rel: "noreferrer",
2727
- className: C(
4333
+ className: R(
2728
4334
  "desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
2729
4335
  { "!text-color-disabled": o == null ? void 0 : o.isDisabled }
2730
4336
  ),
2731
4337
  children: o.label
2732
4338
  }
2733
4339
  ),
2734
- /* @__PURE__ */ p.jsx(
2735
- N,
4340
+ /* @__PURE__ */ w.jsx(
4341
+ Re,
2736
4342
  {
2737
4343
  name: "arrows/arrowRight",
2738
- className: C("size-4 text-icon-primary-default", { "!text-icon-disabled": o == null ? void 0 : o.isDisabled })
4344
+ className: R("size-4 text-icon-primary-default", { "!text-icon-disabled": o == null ? void 0 : o.isDisabled })
2739
4345
  }
2740
4346
  )
2741
4347
  ]
2742
4348
  }
2743
- ) : /* @__PURE__ */ p.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }), An = ({ children: e }) => /* @__PURE__ */ p.jsx(p.Fragment, { children: e }), ae = V(({ children: e, ...o }, t) => {
2744
- if (k(e)) {
2745
- const n = Gn(e);
2746
- return Ve(e, {
2747
- ...jn(o, e.props),
4349
+ ) : /* @__PURE__ */ w.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: o.label }) })) }), ii = ({ children: e }) => /* @__PURE__ */ w.jsx(w.Fragment, { children: e }), mt = U(({ children: e, ...o }, t) => {
4350
+ if (Te(e)) {
4351
+ const n = si(e);
4352
+ return Zt(e, {
4353
+ ...ui(o, e.props),
2748
4354
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2749
4355
  // @ts-expect-error
2750
- ref: t ? St(t, n) : n
4356
+ ref: t ? Yn(t, n) : n
2751
4357
  });
2752
4358
  }
2753
- return G.count(e) > 1 ? G.only(null) : null;
4359
+ return Me.count(e) > 1 ? Me.only(null) : null;
2754
4360
  });
2755
- ae.displayName = "SlotClone";
2756
- const Hn = (e) => k(e) && e.type === An, Gn = (e) => {
4361
+ mt.displayName = "SlotClone";
4362
+ const li = (e) => Te(e) && e.type === ii, si = (e) => {
2757
4363
  var n, r;
2758
4364
  let o = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, t = o && "isReactWarning" in o && o.isReactWarning;
2759
4365
  return t ? e.ref : (o = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, t = o && "isReactWarning" in o && o.isReactWarning, t ? e.props.ref : e.props.ref || e.ref);
2760
- }, jn = (e, o) => {
4366
+ }, ui = (e, o) => {
2761
4367
  const t = { ...o };
2762
4368
  for (const n in o) {
2763
4369
  const r = e[n], i = o[n];
@@ -2766,60 +4372,64 @@ const Hn = (e) => k(e) && e.type === An, Gn = (e) => {
2766
4372
  }) : r ? t[n] = r : n === "style" ? t[n] = { ...r, ...i } : n === "className" && (t[n] = [r, i].filter(Boolean).join(" "));
2767
4373
  }
2768
4374
  return { ...e, ...t };
2769
- }, Nn = V(({ children: e, ...o }, t) => {
2770
- const n = G.toArray(e), r = n.find(Hn);
4375
+ }, ai = U(({ children: e, ...o }, t) => {
4376
+ const n = Me.toArray(e), r = n.find(li);
2771
4377
  if (r) {
2772
- const i = r.props.children, l = n.map((u) => u === r ? G.count(i) > 1 ? G.only(null) : k(i) ? i.props.children : null : u);
2773
- return /* @__PURE__ */ p.jsx(ae, { ...o, ref: t, children: k(i) ? Ve(i, void 0, l) : null });
4378
+ const i = r.props.children, l = n.map((u) => u === r ? Me.count(i) > 1 ? Me.only(null) : Te(i) ? i.props.children : null : u);
4379
+ return /* @__PURE__ */ w.jsx(mt, { ...o, ref: t, children: Te(i) ? Zt(i, void 0, l) : null });
2774
4380
  }
2775
- return /* @__PURE__ */ p.jsx(ae, { ...o, ref: t, children: e });
4381
+ return /* @__PURE__ */ w.jsx(mt, { ...o, ref: t, children: e });
2776
4382
  });
2777
- Nn.displayName = "Slot";
4383
+ ai.displayName = "Slot";
2778
4384
  export {
2779
- gt as Accordion,
2780
- io as Badge,
2781
- no as Breadcrumbs,
2782
- D as Button,
2783
- Un as ButtonIcon,
2784
- lo as Calendar,
2785
- uo as Controlled,
2786
- so as CustomLink,
2787
- vo as DATE_VISIBLE_PATTERN,
2788
- Qn as DataTable,
2789
- Et as DataTableColumnHeader,
2790
- Xn as FloatButton,
2791
- dt as Heading,
2792
- ao as Hint,
2793
- N as Icon,
2794
- go as KeyboardShortcuts,
2795
- co as Loader,
2796
- Jn as Modal,
2797
- fo as Notification,
2798
- to as NotificationProvider,
2799
- En as Pagination,
2800
- po as PhoneView,
2801
- mo as Popover,
2802
- ho as ProgressBar,
2803
- nt as ResponsiveContainer,
2804
- Kn as Skeleton,
2805
- Nn as Slot,
2806
- Ne as Table,
2807
- Te as TableBody,
2808
- Pt as TableCaption,
2809
- oe as TableCell,
2810
- It as TableFooter,
2811
- Oe as TableHead,
2812
- ze as TableHeader,
2813
- B as TableRow,
2814
- eo as TableUtils,
2815
- Zn as TabsSwitcher,
2816
- So as Uncontrolled,
2817
- Wn as allowedIcons,
2818
- wo as brandLogos,
2819
- xo as defaultClassNames,
2820
- _o as formatDateToLocaleString,
2821
- Fo as formatDateToMonthString,
2822
- yo as formatDateToYearString,
2823
- Co as isSingleOption
4385
+ Kn as Accordion,
4386
+ Pi as Badge,
4387
+ Mi as Breadcrumbs,
4388
+ ce as Button,
4389
+ hi as ButtonIcon,
4390
+ $i as Calendar,
4391
+ _i as CarouselBase,
4392
+ Di as Controlled,
4393
+ Ei as CustomLink,
4394
+ Xi as DATE_VISIBLE_PATTERN,
4395
+ yi as DataTable,
4396
+ fo as DataTableColumnHeader,
4397
+ wi as FloatButton,
4398
+ Yt as Heading,
4399
+ Li as Hint,
4400
+ Re as Icon,
4401
+ Oi as KeyboardShortcuts,
4402
+ Ai as Loader,
4403
+ xi as Modal,
4404
+ Ni as Notification,
4405
+ Ii as NotificationProvider,
4406
+ gr as Pagination,
4407
+ ji as PhoneView,
4408
+ Ti as Popover,
4409
+ Hi as ProgressBar,
4410
+ Tn as ResponsiveContainer,
4411
+ Si as Skeleton,
4412
+ ai as Slot,
4413
+ cn as Table,
4414
+ fn as TableBody,
4415
+ go as TableCaption,
4416
+ st as TableCell,
4417
+ co as TableFooter,
4418
+ pn as TableHead,
4419
+ gn as TableHeader,
4420
+ je as TableRow,
4421
+ Fi as TableUtils,
4422
+ Ri as TabsSwitcher,
4423
+ Gi as Uncontrolled,
4424
+ Ci as allowedIcons,
4425
+ zi as brandLogos,
4426
+ Bi as buttonPrimitiveIntent,
4427
+ ki as buttonPrimitiveSize,
4428
+ qi as buttonPrimitiveTextFormat,
4429
+ Wi as defaultClassNames,
4430
+ Qi as formatDateToLocaleString,
4431
+ Ji as formatDateToMonthString,
4432
+ Yi as formatDateToYearString,
4433
+ Ui as isSingleOption
2824
4434
  };
2825
4435
  //# sourceMappingURL=ui.js.map