@alfadocs/ui-kit-debug 1.110.0 → 1.111.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 (59) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-QhbDdY7b.js → anamnesis-summary-rows-BrTx7diS.js} +2 -2
  2. package/dist/_chunks/{anamnesis-summary-rows-QhbDdY7b.js.map → anamnesis-summary-rows-BrTx7diS.js.map} +1 -1
  3. package/dist/_chunks/{calculator-dialog-BsVVb8cT.js → calculator-dialog-D4TyJwqy.js} +2 -2
  4. package/dist/_chunks/{calculator-dialog-BsVVb8cT.js.map → calculator-dialog-D4TyJwqy.js.map} +1 -1
  5. package/dist/_chunks/{calendar-appointment-editor-dialog-D8DblVjW.js → calendar-appointment-editor-dialog-Oc3Df8O3.js} +4 -4
  6. package/dist/_chunks/{calendar-appointment-editor-dialog-D8DblVjW.js.map → calendar-appointment-editor-dialog-Oc3Df8O3.js.map} +1 -1
  7. package/dist/_chunks/data-grid.agent-CASyEAnb.js +1773 -0
  8. package/dist/_chunks/data-grid.agent-CASyEAnb.js.map +1 -0
  9. package/dist/_chunks/{dialog-C7RWaH08.js → dialog-BTjSQjdY.js} +17 -16
  10. package/dist/_chunks/dialog-BTjSQjdY.js.map +1 -0
  11. package/dist/_chunks/{file-manager-BDKe59sg.js → file-manager-CVxBE4yy.js} +2 -2
  12. package/dist/_chunks/{file-manager-BDKe59sg.js.map → file-manager-CVxBE4yy.js.map} +1 -1
  13. package/dist/_chunks/{help-me-write-templates-YmceSxf5.js → help-me-write-templates-CWxgjDZl.js} +2 -2
  14. package/dist/_chunks/{help-me-write-templates-YmceSxf5.js.map → help-me-write-templates-CWxgjDZl.js.map} +1 -1
  15. package/dist/_chunks/{notes-panel-SlzUL8in.js → notes-panel-Cz621DWV.js} +3 -3
  16. package/dist/_chunks/{notes-panel-SlzUL8in.js.map → notes-panel-Cz621DWV.js.map} +1 -1
  17. package/dist/_chunks/{radiograph-panel.agent-0ngF2sGS.js → radiograph-panel.agent-CXah49KM.js} +2 -2
  18. package/dist/_chunks/{radiograph-panel.agent-0ngF2sGS.js.map → radiograph-panel.agent-CXah49KM.js.map} +1 -1
  19. package/dist/_chunks/{rich-text-editor-C3nANKZt.js → rich-text-editor-BLS2cK-u.js} +2 -2
  20. package/dist/_chunks/{rich-text-editor-C3nANKZt.js.map → rich-text-editor-BLS2cK-u.js.map} +1 -1
  21. package/dist/_chunks/{signature-request-opW0fQ5P.js → signature-request-DJwdPji_.js} +2 -2
  22. package/dist/_chunks/{signature-request-opW0fQ5P.js.map → signature-request-DJwdPji_.js.map} +1 -1
  23. package/dist/_chunks/{task-editor-CmXcj6cC.js → task-editor-jqRf2JP6.js} +2 -2
  24. package/dist/_chunks/{task-editor-CmXcj6cC.js.map → task-editor-jqRf2JP6.js.map} +1 -1
  25. package/dist/_chunks/{widget-picker-DNYIqRT1.js → widget-picker-U4JsEhQE.js} +2 -2
  26. package/dist/_chunks/{widget-picker-DNYIqRT1.js.map → widget-picker-U4JsEhQE.js.map} +1 -1
  27. package/dist/ag-grid.css +0 -10
  28. package/dist/agent-catalog.json +66 -1
  29. package/dist/components/calculator-dialog/index.js +1 -1
  30. package/dist/components/data-grid/data-grid.agent.d.ts +3 -0
  31. package/dist/components/data-grid/data-grid.agent.d.ts.map +1 -0
  32. package/dist/components/data-grid/data-grid.d.ts +28 -0
  33. package/dist/components/data-grid/data-grid.d.ts.map +1 -0
  34. package/dist/components/data-grid/index.d.ts +4 -0
  35. package/dist/components/data-grid/index.d.ts.map +1 -0
  36. package/dist/components/data-grid/index.js +6 -0
  37. package/dist/components/data-grid/index.js.map +1 -0
  38. package/dist/components/dialog/dialog.d.ts +2 -2
  39. package/dist/components/dialog/dialog.d.ts.map +1 -1
  40. package/dist/components/dialog/index.js +1 -1
  41. package/dist/components/file-manager/index.js +1 -1
  42. package/dist/components/index.d.ts +1 -0
  43. package/dist/components/index.d.ts.map +1 -1
  44. package/dist/components/notes-panel/index.js +1 -1
  45. package/dist/components/radiograph-panel/index.js +1 -1
  46. package/dist/components/rich-text-editor/index.js +1 -1
  47. package/dist/components/task-editor/index.js +1 -1
  48. package/dist/components/widget-picker/index.js +1 -1
  49. package/dist/core.css +1 -1
  50. package/dist/host-legacy.css +17 -1
  51. package/dist/index.js +982 -979
  52. package/dist/index.js.map +1 -1
  53. package/dist/patterns/anamnesis/index.js +1 -1
  54. package/dist/patterns/calendar/index.js +1 -1
  55. package/dist/patterns/help-me-write-templates/index.js +1 -1
  56. package/dist/patterns/signature-request/index.js +1 -1
  57. package/dist/tokens.css +1 -6
  58. package/package.json +6 -1
  59. package/dist/_chunks/dialog-C7RWaH08.js.map +0 -1
@@ -0,0 +1,1773 @@
1
+ import { jsx as D, jsxs as Fe } from "react/jsx-runtime";
2
+ import L, { useCallback as se, useState as Ie, useMemo as me, useEffect as Ae, useLayoutEffect as Ve, useId as Le } from "react";
3
+ import { c as te } from "./index-D2ZczOXr.js";
4
+ import { S as Te } from "./scroll-area-CY5SLYNw.js";
5
+ function He(e) {
6
+ return je(e) || typeof e == "function" || Ge(e);
7
+ }
8
+ function je(e) {
9
+ return typeof e == "function" && (() => {
10
+ const t = Object.getPrototypeOf(e);
11
+ return t.prototype && t.prototype.isReactComponent;
12
+ })();
13
+ }
14
+ function Ge(e) {
15
+ return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
16
+ }
17
+ function j(e, t) {
18
+ return e == null ? null : He(e) ? /* @__PURE__ */ L.createElement(e, t) : e;
19
+ }
20
+ function $e(e) {
21
+ var t, n;
22
+ if ("cell" in e && e.cell) {
23
+ const r = e.cell, o = r.column.columnDef, s = r, u = o;
24
+ return (t = s.getIsAggregated) != null && t.call(s) ? j(u.aggregatedCell ?? o.cell, r.getContext()) : (n = s.getIsPlaceholder) != null && n.call(s) ? null : j(o.cell, r.getContext());
25
+ }
26
+ return "header" in e && e.header ? j(e.header.column.columnDef.header, e.header.getContext()) : "footer" in e && e.footer ? j(e.footer.column.columnDef.footer, e.footer.getContext()) : null;
27
+ }
28
+ // @__NO_SIDE_EFFECTS__
29
+ function Ne({ update: e, notify: t, unwatched: n }) {
30
+ return {
31
+ link: r,
32
+ unlink: o,
33
+ propagate: s,
34
+ checkDirty: u,
35
+ shallowPropagate: g
36
+ };
37
+ function r(i, d, a) {
38
+ const l = d.depsTail;
39
+ if (l !== void 0 && l.dep === i) return;
40
+ const c = l !== void 0 ? l.nextDep : d.deps;
41
+ if (c !== void 0 && c.dep === i) {
42
+ c.version = a, d.depsTail = c;
43
+ return;
44
+ }
45
+ const p = i.subsTail;
46
+ if (p !== void 0 && p.version === a && p.sub === d) return;
47
+ const m = d.depsTail = i.subsTail = {
48
+ version: a,
49
+ dep: i,
50
+ sub: d,
51
+ prevDep: l,
52
+ nextDep: c,
53
+ prevSub: p,
54
+ nextSub: void 0
55
+ };
56
+ c !== void 0 && (c.prevDep = m), l !== void 0 ? l.nextDep = m : d.deps = m, p !== void 0 ? p.nextSub = m : i.subs = m;
57
+ }
58
+ function o(i, d = i.sub) {
59
+ const a = i.dep, l = i.prevDep, c = i.nextDep, p = i.nextSub, m = i.prevSub;
60
+ return c !== void 0 ? c.prevDep = l : d.depsTail = l, l !== void 0 ? l.nextDep = c : d.deps = c, p !== void 0 ? p.prevSub = m : a.subsTail = m, m !== void 0 ? m.nextSub = p : (a.subs = p) === void 0 && n(a), c;
61
+ }
62
+ function s(i) {
63
+ let d = i.nextSub, a;
64
+ e: do {
65
+ const l = i.sub;
66
+ let c = l.flags;
67
+ if (c & 60 ? c & 12 ? c & 4 ? !(c & 48) && f(i, l) ? (l.flags = c | 40, c &= 1) : c = 0 : l.flags = c & -9 | 32 : c = 0 : l.flags = c | 32, c & 2 && t(l), c & 1) {
68
+ const p = l.subs;
69
+ if (p !== void 0) {
70
+ const m = (i = p).nextSub;
71
+ m !== void 0 && (a = {
72
+ value: d,
73
+ prev: a
74
+ }, d = m);
75
+ continue;
76
+ }
77
+ }
78
+ if ((i = d) !== void 0) {
79
+ d = i.nextSub;
80
+ continue;
81
+ }
82
+ for (; a !== void 0; )
83
+ if (i = a.value, a = a.prev, i !== void 0) {
84
+ d = i.nextSub;
85
+ continue e;
86
+ }
87
+ break;
88
+ } while (!0);
89
+ }
90
+ function u(i, d) {
91
+ let a, l = 0, c = !1;
92
+ e: do {
93
+ const p = i.dep, m = p.flags;
94
+ if (d.flags & 16) c = !0;
95
+ else if ((m & 17) === 17) {
96
+ if (e(p)) {
97
+ const w = p.subs;
98
+ w.nextSub !== void 0 && g(w), c = !0;
99
+ }
100
+ } else if ((m & 33) === 33) {
101
+ (i.nextSub !== void 0 || i.prevSub !== void 0) && (a = {
102
+ value: i,
103
+ prev: a
104
+ }), i = p.deps, d = p, ++l;
105
+ continue;
106
+ }
107
+ if (!c) {
108
+ const w = i.nextDep;
109
+ if (w !== void 0) {
110
+ i = w;
111
+ continue;
112
+ }
113
+ }
114
+ for (; l--; ) {
115
+ const w = d.subs, S = w.nextSub !== void 0;
116
+ if (S ? (i = a.value, a = a.prev) : i = w, c) {
117
+ if (e(d)) {
118
+ S && g(w), d = i.sub;
119
+ continue;
120
+ }
121
+ c = !1;
122
+ } else d.flags &= -33;
123
+ d = i.sub;
124
+ const h = i.nextDep;
125
+ if (h !== void 0) {
126
+ i = h;
127
+ continue e;
128
+ }
129
+ }
130
+ return c;
131
+ } while (!0);
132
+ }
133
+ function g(i) {
134
+ do {
135
+ const d = i.sub, a = d.flags;
136
+ (a & 48) === 32 && (d.flags = a | 16, (a & 6) === 2 && t(d));
137
+ } while ((i = i.nextSub) !== void 0);
138
+ }
139
+ function f(i, d) {
140
+ let a = d.depsTail;
141
+ for (; a !== void 0; ) {
142
+ if (a === i) return !0;
143
+ a = a.prevDep;
144
+ }
145
+ return !1;
146
+ }
147
+ }
148
+ function ke(e, t, n) {
149
+ var s, u, g;
150
+ const r = typeof e == "object", o = r ? e : void 0;
151
+ return {
152
+ next: (s = r ? e.next : e) == null ? void 0 : s.bind(o),
153
+ error: (u = r ? e.error : t) == null ? void 0 : u.bind(o),
154
+ complete: (g = r ? e.complete : n) == null ? void 0 : g.bind(o)
155
+ };
156
+ }
157
+ const Q = [];
158
+ let k = 0;
159
+ const { link: ie, unlink: ze, propagate: Ke, checkDirty: _e, shallowPropagate: ue } = /* @__PURE__ */ Ne({
160
+ update(e) {
161
+ return e._update();
162
+ },
163
+ notify(e) {
164
+ Q[X++] = e, e.flags &= -3;
165
+ },
166
+ unwatched(e) {
167
+ e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = 17, z(e));
168
+ }
169
+ });
170
+ let G = 0, X = 0, E, Z = 0;
171
+ function qe(e) {
172
+ try {
173
+ ++Z, e();
174
+ } finally {
175
+ --Z || he();
176
+ }
177
+ }
178
+ function z(e) {
179
+ const t = e.depsTail;
180
+ let n = t !== void 0 ? t.nextDep : e.deps;
181
+ for (; n !== void 0; ) n = ze(n, e);
182
+ }
183
+ function he() {
184
+ if (!(Z > 0)) {
185
+ for (; G < X; ) {
186
+ const e = Q[G];
187
+ Q[G++] = void 0, e.notify();
188
+ }
189
+ G = 0, X = 0;
190
+ }
191
+ }
192
+ function We(e, t) {
193
+ const n = typeof e == "function", r = e, o = {
194
+ _snapshot: n ? void 0 : e,
195
+ subs: void 0,
196
+ subsTail: void 0,
197
+ deps: void 0,
198
+ depsTail: void 0,
199
+ flags: n ? 0 : 1,
200
+ get() {
201
+ return E !== void 0 && ie(o, E, k), o._snapshot;
202
+ },
203
+ subscribe(s) {
204
+ const u = ke(s), g = { current: !1 }, f = Be(() => {
205
+ var i;
206
+ o.get(), g.current ? (E = void 0, (i = u.next) == null || i.call(u, o._snapshot)) : g.current = !0;
207
+ });
208
+ return { unsubscribe: () => {
209
+ f.stop();
210
+ } };
211
+ },
212
+ _update(s) {
213
+ const u = E, g = (t == null ? void 0 : t.compare) ?? Object.is;
214
+ if (n)
215
+ E = o, ++k, o.depsTail = void 0;
216
+ else if (s === void 0) return !1;
217
+ n && (o.flags = 5);
218
+ try {
219
+ const f = o._snapshot, i = typeof s == "function" ? s(f) : s === void 0 && n ? r(f) : s;
220
+ return f === void 0 || !g(f, i) ? (o._snapshot = i, !0) : !1;
221
+ } finally {
222
+ E = u, n && (o.flags &= -5), z(o);
223
+ }
224
+ }
225
+ };
226
+ return n ? (o.flags = 17, o.get = function() {
227
+ const s = o.flags;
228
+ if (s & 16 || s & 32 && _e(o.deps, o)) {
229
+ if (o._update()) {
230
+ const u = o.subs;
231
+ u !== void 0 && ue(u);
232
+ }
233
+ } else s & 32 && (o.flags = s & -33);
234
+ return E !== void 0 && ie(o, E, k), o._snapshot;
235
+ }) : o.set = function(s) {
236
+ if (o._update(s)) {
237
+ const u = o.subs;
238
+ u !== void 0 && (Ke(u), ue(u), he());
239
+ }
240
+ }, o;
241
+ }
242
+ function Be(e) {
243
+ const t = () => {
244
+ const r = E;
245
+ E = n, ++k, n.depsTail = void 0, n.flags = 6;
246
+ try {
247
+ return e();
248
+ } finally {
249
+ E = r, n.flags &= -5, z(n);
250
+ }
251
+ }, n = {
252
+ deps: void 0,
253
+ depsTail: void 0,
254
+ subs: void 0,
255
+ subsTail: void 0,
256
+ flags: 6,
257
+ notify() {
258
+ const r = this.flags;
259
+ r & 16 || r & 32 && _e(this.deps, this) ? t() : this.flags = 2;
260
+ },
261
+ stop() {
262
+ this.flags = 0, this.depsTail = void 0, z(this);
263
+ }
264
+ };
265
+ return t(), n;
266
+ }
267
+ function V(e, t) {
268
+ if (Object.is(e, t)) return !0;
269
+ if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1;
270
+ if (e instanceof Map && t instanceof Map) {
271
+ if (e.size !== t.size) return !1;
272
+ for (const [r, o] of e) if (!t.has(r) || !Object.is(o, t.get(r))) return !1;
273
+ return !0;
274
+ }
275
+ if (e instanceof Set && t instanceof Set) {
276
+ if (e.size !== t.size) return !1;
277
+ for (const r of e) if (!t.has(r)) return !1;
278
+ return !0;
279
+ }
280
+ if (e instanceof Date && t instanceof Date)
281
+ return e.getTime() === t.getTime();
282
+ const n = ae(e);
283
+ if (n.length !== ae(t).length) return !1;
284
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !Object.is(e[n[r]], t[n[r]])) return !1;
285
+ return !0;
286
+ }
287
+ function ae(e) {
288
+ return Object.keys(e).concat(Object.getOwnPropertySymbols(e));
289
+ }
290
+ var $ = { exports: {} }, W = {}, N = { exports: {} }, B = {};
291
+ /**
292
+ * @license React
293
+ * use-sync-external-store-shim.production.js
294
+ *
295
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
296
+ *
297
+ * This source code is licensed under the MIT license found in the
298
+ * LICENSE file in the root directory of this source tree.
299
+ */
300
+ var ce;
301
+ function Ue() {
302
+ if (ce) return B;
303
+ ce = 1;
304
+ var e = L;
305
+ function t(a, l) {
306
+ return a === l && (a !== 0 || 1 / a === 1 / l) || a !== a && l !== l;
307
+ }
308
+ var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, s = e.useLayoutEffect, u = e.useDebugValue;
309
+ function g(a, l) {
310
+ var c = l(), p = r({ inst: { value: c, getSnapshot: l } }), m = p[0].inst, w = p[1];
311
+ return s(
312
+ function() {
313
+ m.value = c, m.getSnapshot = l, f(m) && w({ inst: m });
314
+ },
315
+ [a, c, l]
316
+ ), o(
317
+ function() {
318
+ return f(m) && w({ inst: m }), a(function() {
319
+ f(m) && w({ inst: m });
320
+ });
321
+ },
322
+ [a]
323
+ ), u(c), c;
324
+ }
325
+ function f(a) {
326
+ var l = a.getSnapshot;
327
+ a = a.value;
328
+ try {
329
+ var c = l();
330
+ return !n(a, c);
331
+ } catch {
332
+ return !0;
333
+ }
334
+ }
335
+ function i(a, l) {
336
+ return l();
337
+ }
338
+ var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? i : g;
339
+ return B.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : d, B;
340
+ }
341
+ var U = {};
342
+ /**
343
+ * @license React
344
+ * use-sync-external-store-shim.development.js
345
+ *
346
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
347
+ *
348
+ * This source code is licensed under the MIT license found in the
349
+ * LICENSE file in the root directory of this source tree.
350
+ */
351
+ var le;
352
+ function Ye() {
353
+ return le || (le = 1, process.env.NODE_ENV !== "production" && (function() {
354
+ function e(c, p) {
355
+ return c === p && (c !== 0 || 1 / c === 1 / p) || c !== c && p !== p;
356
+ }
357
+ function t(c, p) {
358
+ d || o.startTransition === void 0 || (d = !0, console.error(
359
+ "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
360
+ ));
361
+ var m = p();
362
+ if (!a) {
363
+ var w = p();
364
+ s(m, w) || (console.error(
365
+ "The result of getSnapshot should be cached to avoid an infinite loop"
366
+ ), a = !0);
367
+ }
368
+ w = u({
369
+ inst: { value: m, getSnapshot: p }
370
+ });
371
+ var S = w[0].inst, h = w[1];
372
+ return f(
373
+ function() {
374
+ S.value = m, S.getSnapshot = p, n(S) && h({ inst: S });
375
+ },
376
+ [c, m, p]
377
+ ), g(
378
+ function() {
379
+ return n(S) && h({ inst: S }), c(function() {
380
+ n(S) && h({ inst: S });
381
+ });
382
+ },
383
+ [c]
384
+ ), i(m), m;
385
+ }
386
+ function n(c) {
387
+ var p = c.getSnapshot;
388
+ c = c.value;
389
+ try {
390
+ var m = p();
391
+ return !s(c, m);
392
+ } catch {
393
+ return !0;
394
+ }
395
+ }
396
+ function r(c, p) {
397
+ return p();
398
+ }
399
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
400
+ var o = L, s = typeof Object.is == "function" ? Object.is : e, u = o.useState, g = o.useEffect, f = o.useLayoutEffect, i = o.useDebugValue, d = !1, a = !1, l = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
401
+ U.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : l, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
402
+ })()), U;
403
+ }
404
+ var de;
405
+ function we() {
406
+ return de || (de = 1, process.env.NODE_ENV === "production" ? N.exports = Ue() : N.exports = Ye()), N.exports;
407
+ }
408
+ /**
409
+ * @license React
410
+ * use-sync-external-store-shim/with-selector.production.js
411
+ *
412
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
413
+ *
414
+ * This source code is licensed under the MIT license found in the
415
+ * LICENSE file in the root directory of this source tree.
416
+ */
417
+ var fe;
418
+ function Je() {
419
+ if (fe) return W;
420
+ fe = 1;
421
+ var e = L, t = we();
422
+ function n(i, d) {
423
+ return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
424
+ }
425
+ var r = typeof Object.is == "function" ? Object.is : n, o = t.useSyncExternalStore, s = e.useRef, u = e.useEffect, g = e.useMemo, f = e.useDebugValue;
426
+ return W.useSyncExternalStoreWithSelector = function(i, d, a, l, c) {
427
+ var p = s(null);
428
+ if (p.current === null) {
429
+ var m = { hasValue: !1, value: null };
430
+ p.current = m;
431
+ } else m = p.current;
432
+ p = g(
433
+ function() {
434
+ function S(y) {
435
+ if (!h) {
436
+ if (h = !0, C = y, y = l(y), c !== void 0 && m.hasValue) {
437
+ var R = m.value;
438
+ if (c(R, y))
439
+ return b = R;
440
+ }
441
+ return b = y;
442
+ }
443
+ if (R = b, r(C, y)) return R;
444
+ var v = l(y);
445
+ return c !== void 0 && c(R, v) ? (C = y, R) : (C = y, b = v);
446
+ }
447
+ var h = !1, C, b, x = a === void 0 ? null : a;
448
+ return [
449
+ function() {
450
+ return S(d());
451
+ },
452
+ x === null ? void 0 : function() {
453
+ return S(x());
454
+ }
455
+ ];
456
+ },
457
+ [d, a, l, c]
458
+ );
459
+ var w = o(i, p[0], p[1]);
460
+ return u(
461
+ function() {
462
+ m.hasValue = !0, m.value = w;
463
+ },
464
+ [w]
465
+ ), f(w), w;
466
+ }, W;
467
+ }
468
+ var Y = {};
469
+ /**
470
+ * @license React
471
+ * use-sync-external-store-shim/with-selector.development.js
472
+ *
473
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
474
+ *
475
+ * This source code is licensed under the MIT license found in the
476
+ * LICENSE file in the root directory of this source tree.
477
+ */
478
+ var ge;
479
+ function Qe() {
480
+ return ge || (ge = 1, process.env.NODE_ENV !== "production" && (function() {
481
+ function e(i, d) {
482
+ return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
483
+ }
484
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
485
+ var t = L, n = we(), r = typeof Object.is == "function" ? Object.is : e, o = n.useSyncExternalStore, s = t.useRef, u = t.useEffect, g = t.useMemo, f = t.useDebugValue;
486
+ Y.useSyncExternalStoreWithSelector = function(i, d, a, l, c) {
487
+ var p = s(null);
488
+ if (p.current === null) {
489
+ var m = { hasValue: !1, value: null };
490
+ p.current = m;
491
+ } else m = p.current;
492
+ p = g(
493
+ function() {
494
+ function S(y) {
495
+ if (!h) {
496
+ if (h = !0, C = y, y = l(y), c !== void 0 && m.hasValue) {
497
+ var R = m.value;
498
+ if (c(R, y))
499
+ return b = R;
500
+ }
501
+ return b = y;
502
+ }
503
+ if (R = b, r(C, y))
504
+ return R;
505
+ var v = l(y);
506
+ return c !== void 0 && c(R, v) ? (C = y, R) : (C = y, b = v);
507
+ }
508
+ var h = !1, C, b, x = a === void 0 ? null : a;
509
+ return [
510
+ function() {
511
+ return S(d());
512
+ },
513
+ x === null ? void 0 : function() {
514
+ return S(x());
515
+ }
516
+ ];
517
+ },
518
+ [d, a, l, c]
519
+ );
520
+ var w = o(i, p[0], p[1]);
521
+ return u(
522
+ function() {
523
+ m.hasValue = !0, m.value = w;
524
+ },
525
+ [w]
526
+ ), f(w), w;
527
+ }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
528
+ })()), Y;
529
+ }
530
+ var pe;
531
+ function Xe() {
532
+ return pe || (pe = 1, process.env.NODE_ENV === "production" ? $.exports = Je() : $.exports = Qe()), $.exports;
533
+ }
534
+ var Ze = Xe();
535
+ function et(e, t) {
536
+ return e === t;
537
+ }
538
+ function ve(e, t = (r) => r, n) {
539
+ const r = (n == null ? void 0 : n.compare) ?? et, o = se((u) => {
540
+ const { unsubscribe: g } = e.subscribe(u);
541
+ return g;
542
+ }, [e]), s = se(() => e.get(), [e]);
543
+ return Ze.useSyncExternalStoreWithSelector(o, s, s, t, r);
544
+ }
545
+ function tt(e) {
546
+ const t = ve(e.source, e.selector, { compare: V });
547
+ return typeof e.children == "function" ? e.children(t) : e.children;
548
+ }
549
+ function nt(e) {
550
+ const t = e;
551
+ return Object.defineProperty(e, "state", { get() {
552
+ return e.get();
553
+ } }), "set" in e && (t.setState = e.set.bind(e)), t;
554
+ }
555
+ function ot(e) {
556
+ const { createAtom: t, batch: n } = e, r = t(0);
557
+ return {
558
+ createOptionsStore: !1,
559
+ wrapExternalAtoms: !1,
560
+ addSubscription: () => {
561
+ throw new Error("Feature not supported in current reactivity implementation");
562
+ },
563
+ unmount: () => {
564
+ throw new Error("Feature not supported in current reactivity implementation");
565
+ },
566
+ schedule: e.schedule ?? ((o) => queueMicrotask(o)),
567
+ batch: n,
568
+ untrack: (o) => o(),
569
+ createReadonlyAtom: (o, s) => {
570
+ const u = (s == null ? void 0 : s.compare) ?? Object.is;
571
+ let g = !1, f;
572
+ const i = () => {
573
+ const a = o();
574
+ return (!g || !u(f, a)) && (f = a, g = !0), f;
575
+ }, d = t(() => (r.get(), i()), { compare: u });
576
+ return {
577
+ get: i,
578
+ subscribe: d.subscribe.bind(d)
579
+ };
580
+ },
581
+ createWritableAtom: (o, s) => t(o, { compare: s == null ? void 0 : s.compare }),
582
+ commit: () => {
583
+ r.set((o) => o + 1);
584
+ }
585
+ };
586
+ }
587
+ function rt(e, t = Object.is) {
588
+ let n = !1, r;
589
+ return {
590
+ get: e.get,
591
+ markCommitted: (o) => {
592
+ r = o, n = !0;
593
+ },
594
+ subscribe: (o) => e.subscribe((s) => {
595
+ (!n || !t(r, s)) && o(s);
596
+ })
597
+ };
598
+ }
599
+ function st() {
600
+ return ot({
601
+ createAtom: We,
602
+ batch: qe
603
+ });
604
+ }
605
+ function it(e, t) {
606
+ return typeof e == "function" ? e(t) : e;
607
+ }
608
+ function K(e) {
609
+ if (Array.isArray(e)) return e.map(K);
610
+ if (e && typeof e == "object") {
611
+ const t = Object.getPrototypeOf(e);
612
+ if (t !== Object.prototype && t !== null) return e;
613
+ const n = t === null ? P() : {}, r = Object.keys(e);
614
+ for (let o = 0; o < r.length; o++) {
615
+ const s = r[o];
616
+ Object.defineProperty(n, s, {
617
+ configurable: !0,
618
+ enumerable: !0,
619
+ value: K(e[s]),
620
+ writable: !0
621
+ });
622
+ }
623
+ return n;
624
+ }
625
+ return e;
626
+ }
627
+ function P() {
628
+ return /* @__PURE__ */ Object.create(null);
629
+ }
630
+ function ne(e, t) {
631
+ return Object.prototype.hasOwnProperty.call(e, t);
632
+ }
633
+ function ut(e, t) {
634
+ const n = [], r = (o) => {
635
+ o.forEach((s) => {
636
+ n.push(s);
637
+ const u = t(s);
638
+ u.length && r(u);
639
+ });
640
+ };
641
+ return r(e), n;
642
+ }
643
+ const at = ({ fn: e, memoDeps: t, onAfterCompare: n, onAfterUpdate: r, onBeforeCompare: o, onBeforeUpdate: s }) => {
644
+ let u = [], g;
645
+ return (i) => {
646
+ o == null || o();
647
+ const d = t == null ? void 0 : t(i);
648
+ let a = !d || d.length !== (u == null ? void 0 : u.length);
649
+ if (!a && d) {
650
+ for (let l = 0; l < d.length; l++) if (d[l] !== u[l]) {
651
+ a = !0;
652
+ break;
653
+ }
654
+ }
655
+ return n == null || n(a), a && (u = d, s == null || s(), g = e(...d ?? []), r == null || r(g)), g;
656
+ };
657
+ };
658
+ function ct(e) {
659
+ let t = !1;
660
+ return () => {
661
+ if (!t) {
662
+ t = !0;
663
+ return;
664
+ }
665
+ e();
666
+ };
667
+ }
668
+ const lt = (e, t) => {
669
+ for (e = String(e); e.length < t; ) e = " " + e;
670
+ return e;
671
+ };
672
+ function oe({ feature: e, fnName: t, objectId: n, onAfterUpdate: r, table: o, ...s }) {
673
+ let u, g, f = 0, i;
674
+ if (process.env.NODE_ENV === "development") {
675
+ const { debugAll: c } = o.options, { parentName: p } = re(t, "."), m = o.options[`debug${(p != "table" ? p + "s" : p).replace(p, p.charAt(0).toUpperCase() + p.slice(1))}`], w = e ? o.options[`debug${e.charAt(0).toUpperCase() + e.slice(1)}`] : !1;
676
+ i = c || m || w;
677
+ }
678
+ function d(c, p) {
679
+ var w;
680
+ const m = f === 0 ? "(1st run)" : "(rerun #" + f + ")";
681
+ f++, console.groupCollapsed(`%c⏱ ${lt(`${c.toFixed(1)} ms`, 12)} %c${m}%c ${t}%c ${n ? `(${t.split(".")[0]}Id: ${n})` : ""}`, `font-size: .6rem; font-weight: bold; ${`color: hsl(
682
+ ${Math.max(0, Math.min(120 - Math.log10(c) * 60, 120))}deg 100% 31%);`} `, `color: ${f < 2 ? "#FF00FF" : "#FF1493"}`, "color: #666", "color: #87CEEB"), console.info({
683
+ feature: e,
684
+ state: o.store.state,
685
+ deps: (w = s.memoDeps) == null ? void 0 : w.toString()
686
+ }), console.trace(), console.groupEnd();
687
+ }
688
+ const a = r ? () => {
689
+ const { schedule: c, untrack: p } = o._reactivity;
690
+ c(() => p(() => r()));
691
+ } : void 0, l = process.env.NODE_ENV === "development" ? {
692
+ onBeforeCompare: () => {
693
+ },
694
+ onAfterCompare: (c) => {
695
+ },
696
+ onBeforeUpdate: () => {
697
+ i && (u = performance.now());
698
+ },
699
+ onAfterUpdate: () => {
700
+ i && (g = performance.now(), d(Math.round((g - u) * 100) / 100)), a == null || a();
701
+ }
702
+ } : { onAfterUpdate: a };
703
+ return at({
704
+ ...s,
705
+ ...l
706
+ });
707
+ }
708
+ function re(e, t = "_") {
709
+ const [n, r] = e.replace(t, " ").split(" ");
710
+ return {
711
+ fnKey: r,
712
+ fnName: `${n}.${r}`,
713
+ parentName: n
714
+ };
715
+ }
716
+ function T(e, t, n) {
717
+ for (const [r, { fn: o, memoDeps: s }] of Object.entries(n)) {
718
+ const { fnKey: u, fnName: g } = re(r);
719
+ t[u] = s ? oe({
720
+ memoDeps: s,
721
+ fn: o,
722
+ fnName: g,
723
+ table: t,
724
+ feature: e
725
+ }) : o;
726
+ }
727
+ }
728
+ function q(e, t, n, r) {
729
+ for (const [o, { fn: s, memoDeps: u }] of Object.entries(r)) {
730
+ const { fnKey: g, fnName: f } = re(o);
731
+ if (u) {
732
+ const i = `_memo_${g}`;
733
+ t[g] = function(...d) {
734
+ if (!this[i]) {
735
+ const a = this;
736
+ this[i] = oe({
737
+ memoDeps: (l) => u(a, l),
738
+ fn: (...l) => s(a, ...l),
739
+ fnName: f,
740
+ objectId: a.id,
741
+ table: n,
742
+ feature: e
743
+ });
744
+ }
745
+ return this[i](...d);
746
+ };
747
+ } else t[g] = function(...i) {
748
+ return s(this, ...i);
749
+ };
750
+ }
751
+ }
752
+ function dt(e) {
753
+ return e.row.getValue(e.column.id);
754
+ }
755
+ function ft(e) {
756
+ return e.getValue() ?? e.table.options.renderFallbackValue;
757
+ }
758
+ function gt(e) {
759
+ return {
760
+ table: e.table,
761
+ column: e.column,
762
+ row: e.row,
763
+ cell: e,
764
+ getValue: () => e.getValue(),
765
+ renderValue: () => e.renderValue()
766
+ };
767
+ }
768
+ const pt = { assignCellPrototype: (e, t) => {
769
+ q("coreCellsFeature", e, t, {
770
+ cell_getValue: { fn: (n) => dt(n) },
771
+ cell_renderValue: { fn: (n) => ft(n) },
772
+ cell_getContext: {
773
+ fn: (n) => gt(n),
774
+ memoDeps: (n) => [n]
775
+ }
776
+ });
777
+ } };
778
+ function mt(e) {
779
+ var t, n;
780
+ if (!e._columnPrototype) {
781
+ e._columnPrototype = { table: e };
782
+ const r = Object.values(e._features);
783
+ for (let o = 0; o < r.length; o++) (n = (t = r[o]).assignColumnPrototype) == null || n.call(t, e._columnPrototype, e);
784
+ }
785
+ return e._columnPrototype;
786
+ }
787
+ function _t(e, t, n, r) {
788
+ const o = {
789
+ ...e.getDefaultColumnDef(),
790
+ ...t
791
+ }, s = o.accessorKey, u = s === void 0 ? void 0 : String(s), g = o.id ?? (u == null ? void 0 : u.replaceAll(".", "_")) ?? (typeof o.header == "string" ? o.header : void 0);
792
+ let f;
793
+ if (o.accessorFn) f = o.accessorFn;
794
+ else if (s !== void 0)
795
+ if (typeof s == "string" && s.includes(".")) {
796
+ const l = s.split(".");
797
+ f = (c) => {
798
+ let p = c;
799
+ for (let m = 0; m < l.length; m++) {
800
+ const w = l[m];
801
+ p = p == null ? void 0 : p[w], process.env.NODE_ENV === "development" && p === void 0 && console.warn(`"${w}" in deeply nested key "${s}" returned undefined.`);
802
+ }
803
+ return p;
804
+ };
805
+ } else f = (l) => l[o.accessorKey];
806
+ if (!g)
807
+ throw process.env.NODE_ENV === "development" ? new Error(o.accessorFn ? "coreColumnsFeature require an id when using an accessorFn" : "coreColumnsFeature require an id when using a non-string header") : new Error();
808
+ const i = mt(e), d = Object.create(i);
809
+ d.accessorFn = f, d.columnDef = o, d.columns = [], d.depth = n, d.id = `${String(g)}`, d.parent = r;
810
+ const a = e._columnInstanceInitFns;
811
+ for (let l = 0; l < a.length; l++) a[l](d);
812
+ return d;
813
+ }
814
+ function ee(e) {
815
+ var t;
816
+ return ((t = e.getIsVisible) == null ? void 0 : t.call(e)) ?? !0;
817
+ }
818
+ function ht(e) {
819
+ var t;
820
+ return ((t = e.getVisibleLeafColumns) == null ? void 0 : t.call(e)) ?? e.getAllLeafColumns();
821
+ }
822
+ function ye(e, t) {
823
+ var o, s;
824
+ const n = e, r = t;
825
+ return ((o = n.getOrderColumnsFn) == null ? void 0 : o.call(n)(r)) ?? ((s = n._orderGroupedColumns) == null ? void 0 : s.call(n, r)) ?? t;
826
+ }
827
+ function wt(e, t, n, r) {
828
+ var o;
829
+ return ((o = e._orderByColumnPinning) == null ? void 0 : o.call(e, t, n, r)) ?? t;
830
+ }
831
+ function vt(e, t) {
832
+ var n;
833
+ return ((n = e._expandRows) == null ? void 0 : n.call(e, t)) ?? t;
834
+ }
835
+ function yt(e) {
836
+ var t;
837
+ (t = e.autoResetExpanded) == null || t.call(e);
838
+ }
839
+ function St(e) {
840
+ var t;
841
+ (t = e.autoResetPageIndex) == null || t.call(e);
842
+ }
843
+ function Rt(e) {
844
+ var t;
845
+ (t = e.autoResetSorting) == null || t.call(e);
846
+ }
847
+ function bt(e) {
848
+ var t;
849
+ (t = e.autoResetCellSelection) == null || t.call(e);
850
+ }
851
+ function Mt(e) {
852
+ return [e, ...e.columns.flatMap((t) => t.getFlatColumns())];
853
+ }
854
+ function Ct(e) {
855
+ if (e.columns.length) {
856
+ const t = e.columns.flatMap((n) => n.getLeafColumns());
857
+ return ye(e.table, t);
858
+ }
859
+ return [e];
860
+ }
861
+ function Ot(e) {
862
+ return {
863
+ header: (t) => {
864
+ const n = t.header.column.columnDef;
865
+ return n.accessorKey ? n.accessorKey : n.accessorFn ? n.id : null;
866
+ },
867
+ cell: (t) => {
868
+ var n, r;
869
+ return ((r = (n = t.renderValue()) == null ? void 0 : n.toString) == null ? void 0 : r.call(n)) ?? null;
870
+ },
871
+ ...Object.values(e._features).reduce((t, n) => {
872
+ var r;
873
+ return Object.assign(t, (r = n.getDefaultColumnDef) == null ? void 0 : r.call(n));
874
+ }, {}),
875
+ ...e.options.defaultColumn
876
+ };
877
+ }
878
+ function Se(e, t, n, r = 0) {
879
+ const o = new Array(t.length);
880
+ for (let s = 0; s < t.length; s++) {
881
+ if (!(s in t)) continue;
882
+ const u = t[s], g = _t(e, u, r, n), f = u;
883
+ g.columns = f.columns ? Se(e, f.columns, g, r + 1) : [], o[s] = g;
884
+ }
885
+ return o;
886
+ }
887
+ function Dt(e) {
888
+ return Se(e, e.options.columns);
889
+ }
890
+ function Et(e) {
891
+ return e.getAllColumns().flatMap((t) => t.getFlatColumns());
892
+ }
893
+ function xt(e) {
894
+ const t = P(), n = e.getAllFlatColumns();
895
+ for (let r = 0; r < n.length; r++) {
896
+ const o = n[r];
897
+ t[o.id] = o;
898
+ }
899
+ return t;
900
+ }
901
+ function Pt(e) {
902
+ const t = e.getAllColumns().flatMap((n) => n.getLeafColumns());
903
+ return ye(e, t);
904
+ }
905
+ function Ft(e) {
906
+ const t = P(), n = e.getAllLeafColumns();
907
+ for (let r = 0; r < n.length; r++) {
908
+ const o = n[r];
909
+ t[o.id] = o;
910
+ }
911
+ return t;
912
+ }
913
+ function It(e, t) {
914
+ const n = e.getAllFlatColumnsById()[t];
915
+ return process.env.NODE_ENV === "development" && !n && console.warn(`[Table] Column with id '${t}' does not exist.`), n;
916
+ }
917
+ const At = {
918
+ assignColumnPrototype: (e, t) => {
919
+ q("coreColumnsFeature", e, t, {
920
+ column_getFlatColumns: {
921
+ fn: (n) => Mt(n),
922
+ memoDeps: (n) => [n.table.options.columns]
923
+ },
924
+ column_getLeafColumns: {
925
+ fn: (n) => Ct(n),
926
+ memoDeps: (n) => {
927
+ var r, o;
928
+ return [
929
+ (r = n.table.atoms.columnOrder) == null ? void 0 : r.get(),
930
+ (o = n.table.atoms.grouping) == null ? void 0 : o.get(),
931
+ n.table.options.columns,
932
+ n.table.options.groupedColumnMode
933
+ ];
934
+ }
935
+ }
936
+ });
937
+ },
938
+ constructTableAPIs: (e) => {
939
+ T("coreColumnsFeature", e, {
940
+ table_getDefaultColumnDef: {
941
+ fn: () => Ot(e),
942
+ memoDeps: () => [e.options.defaultColumn]
943
+ },
944
+ table_getAllColumns: {
945
+ fn: () => Dt(e),
946
+ memoDeps: () => [e.options.columns]
947
+ },
948
+ table_getAllFlatColumns: {
949
+ fn: () => Et(e),
950
+ memoDeps: () => [e.options.columns]
951
+ },
952
+ table_getAllFlatColumnsById: {
953
+ fn: () => xt(e),
954
+ memoDeps: () => [e.options.columns]
955
+ },
956
+ table_getAllLeafColumns: {
957
+ fn: () => Pt(e),
958
+ memoDeps: () => {
959
+ var t, n;
960
+ return [
961
+ (t = e.atoms.columnOrder) == null ? void 0 : t.get(),
962
+ (n = e.atoms.grouping) == null ? void 0 : n.get(),
963
+ e.options.columns,
964
+ e.options.groupedColumnMode
965
+ ];
966
+ }
967
+ },
968
+ table_getAllLeafColumnsById: {
969
+ fn: () => Ft(e),
970
+ memoDeps: () => [e.getAllLeafColumns()]
971
+ },
972
+ table_getColumn: { fn: (t) => It(e, t) }
973
+ });
974
+ }
975
+ };
976
+ function Vt(e) {
977
+ var t, n;
978
+ if (!e._headerPrototype) {
979
+ e._headerPrototype = { table: e };
980
+ const r = Object.values(e._features);
981
+ for (let o = 0; o < r.length; o++) (n = (t = r[o]).assignHeaderPrototype) == null || n.call(t, e._headerPrototype, e);
982
+ }
983
+ return e._headerPrototype;
984
+ }
985
+ function Re(e, t, n) {
986
+ const r = Vt(e), o = Object.create(r);
987
+ o.colSpan = 0, o.column = t, o.depth = n.depth, o.headerGroup = null, o.id = n.id ?? t.id, o.index = n.index, o.isPlaceholder = !!n.isPlaceholder, o.placeholderId = n.placeholderId, o.rowSpan = 0, o.subHeaders = [];
988
+ const s = e._headerInstanceInitFns;
989
+ for (let u = 0; u < s.length; u++) s[u](o);
990
+ return o;
991
+ }
992
+ function be(e, t = 1) {
993
+ let n = t;
994
+ for (let r = 0; r < e.length; r++) {
995
+ const o = e[r];
996
+ ee(o) && o.columns.length && (n = Math.max(n, be(o.columns, t + 1)));
997
+ }
998
+ return n;
999
+ }
1000
+ function Lt(e, t) {
1001
+ return String(t);
1002
+ }
1003
+ function Tt(e, t, n, r) {
1004
+ let o = e ?? "";
1005
+ return t && (o = o ? `${o}_${t}` : String(t)), n && (o = o ? `${o}_${n}` : n), r && (o = o ? `${o}_${r}` : r), o;
1006
+ }
1007
+ function Ht(e, t) {
1008
+ let n = 0;
1009
+ for (let r = 0; r < e.length; r++) e[r].column === t && n++;
1010
+ return n;
1011
+ }
1012
+ function Me(e, t, n, r, o, s) {
1013
+ const u = {
1014
+ depth: t,
1015
+ id: Lt(r, t),
1016
+ headers: []
1017
+ }, g = [];
1018
+ for (let f = 0; f < e.length; f++) {
1019
+ if (!(f in e)) continue;
1020
+ const i = e[f], d = g[g.length - 1], a = i.column.depth === u.depth;
1021
+ let l, c = !1;
1022
+ if (a && i.column.parent ? l = i.column.parent : (l = i.column, c = !0), d && d.column === l) d.subHeaders.push(i);
1023
+ else {
1024
+ const p = Re(n, l, {
1025
+ id: Tt(r, t, l.id, i.id),
1026
+ isPlaceholder: c,
1027
+ placeholderId: c ? String(Ht(g, l)) : void 0,
1028
+ depth: t,
1029
+ index: g.length
1030
+ });
1031
+ p.subHeaders.push(i), g.push(p);
1032
+ }
1033
+ u.headers.push(i), i.headerGroup = u;
1034
+ }
1035
+ for (let f = 0; f < s.length; f++) s[f](u);
1036
+ o.push(u), t > 0 && Me(g, t - 1, n, r, o, s);
1037
+ }
1038
+ function Ce(e) {
1039
+ for (let t = 0; t < e.length; t++) {
1040
+ const n = e[t];
1041
+ if (!ee(n.column)) continue;
1042
+ let r = 0;
1043
+ if (n.subHeaders.length) {
1044
+ Ce(n.subHeaders);
1045
+ for (let o = 0; o < n.subHeaders.length; o++) {
1046
+ const s = n.subHeaders[o];
1047
+ ee(s.column) && (r += s.colSpan);
1048
+ }
1049
+ } else r = 1;
1050
+ if (n.colSpan = r, n.isPlaceholder && n.subHeaders.length === 1 && n.subHeaders[0].column === n.column) {
1051
+ let o = 1, s = n.subHeaders[0];
1052
+ for (; s; )
1053
+ s.rowSpan = 0, o++, s = s.subHeaders.length === 1 && s.subHeaders[0].column === n.column ? s.subHeaders[0] : void 0;
1054
+ n.rowSpan = o;
1055
+ } else n.rowSpan = 1;
1056
+ }
1057
+ }
1058
+ function jt(e, t, n, r) {
1059
+ var f;
1060
+ const o = be(e), s = [], u = n._headerGroupInstanceInitFns, g = new Array(t.length);
1061
+ for (let i = 0; i < t.length; i++)
1062
+ i in t && (g[i] = Re(n, t[i], {
1063
+ depth: o,
1064
+ index: i
1065
+ }));
1066
+ return Me(g, o - 1, n, r, s, u), s.reverse(), Ce(((f = s[0]) == null ? void 0 : f.headers) ?? []), s;
1067
+ }
1068
+ function Oe(e, t) {
1069
+ for (let n = 0; n < e.subHeaders.length; n++) Oe(e.subHeaders[n], t);
1070
+ t.push(e);
1071
+ }
1072
+ function Gt(e) {
1073
+ const t = [];
1074
+ return Oe(e, t), t;
1075
+ }
1076
+ function $t(e) {
1077
+ return {
1078
+ column: e.column,
1079
+ header: e,
1080
+ table: e.column.table
1081
+ };
1082
+ }
1083
+ function Nt(e) {
1084
+ return jt(e.getAllColumns(), wt(e, ht(e), (t) => t.id), e);
1085
+ }
1086
+ function kt(e) {
1087
+ return [...e.getHeaderGroups()].reverse();
1088
+ }
1089
+ function zt(e) {
1090
+ const t = e.getHeaderGroups(), n = [];
1091
+ for (let r = 0; r < t.length; r++) {
1092
+ const o = t[r].headers;
1093
+ for (let s = 0; s < o.length; s++) n.push(o[s]);
1094
+ }
1095
+ return n;
1096
+ }
1097
+ function Kt(e) {
1098
+ var r;
1099
+ const t = ((r = e.getHeaderGroups()[0]) == null ? void 0 : r.headers) ?? [], n = [];
1100
+ for (let o = 0; o < t.length; o++) {
1101
+ const s = t[o].getLeafHeaders();
1102
+ for (let u = 0; u < s.length; u++) n.push(s[u]);
1103
+ }
1104
+ return n;
1105
+ }
1106
+ const qt = {
1107
+ assignHeaderPrototype: (e, t) => {
1108
+ q("coreHeadersFeature", e, t, {
1109
+ header_getLeafHeaders: {
1110
+ fn: (n) => Gt(n),
1111
+ memoDeps: (n) => [n.column.table.options.columns]
1112
+ },
1113
+ header_getContext: {
1114
+ fn: (n) => $t(n),
1115
+ memoDeps: (n) => [n.column.table.options.columns]
1116
+ }
1117
+ });
1118
+ },
1119
+ constructTableAPIs: (e) => {
1120
+ T("coreHeadersFeature", e, {
1121
+ table_getHeaderGroups: {
1122
+ fn: () => Nt(e),
1123
+ memoDeps: () => {
1124
+ var t, n, r, o;
1125
+ return [
1126
+ e.options.columns,
1127
+ (t = e.atoms.columnOrder) == null ? void 0 : t.get(),
1128
+ (n = e.atoms.grouping) == null ? void 0 : n.get(),
1129
+ (r = e.atoms.columnPinning) == null ? void 0 : r.get(),
1130
+ (o = e.atoms.columnVisibility) == null ? void 0 : o.get(),
1131
+ e.options.groupedColumnMode
1132
+ ];
1133
+ }
1134
+ },
1135
+ table_getFooterGroups: {
1136
+ fn: () => kt(e),
1137
+ memoDeps: () => [e.getHeaderGroups()]
1138
+ },
1139
+ table_getFlatHeaders: {
1140
+ fn: () => zt(e),
1141
+ memoDeps: () => [e.getHeaderGroups()]
1142
+ },
1143
+ table_getLeafHeaders: {
1144
+ fn: () => Kt(e),
1145
+ memoDeps: () => [e.getHeaderGroups()]
1146
+ }
1147
+ });
1148
+ }
1149
+ };
1150
+ function Wt(e) {
1151
+ var t, n;
1152
+ if (!e._rowPrototype) {
1153
+ e._rowPrototype = { table: e };
1154
+ const r = Object.values(e._features);
1155
+ for (let o = 0; o < r.length; o++) (n = (t = r[o]).assignRowPrototype) == null || n.call(t, e._rowPrototype, e);
1156
+ }
1157
+ return e._rowPrototype;
1158
+ }
1159
+ const Bt = (e, t, n, r, o, s, u) => {
1160
+ const g = Wt(e), f = Object.create(g);
1161
+ f._displayIndexCache = -1, f._uniqueValuesCache = P(), f._valuesCache = P(), f.depth = o, f.id = t, f.index = r, f.original = n, f.parentId = u, f.subRows = [];
1162
+ const i = e._rowInstanceInitFns;
1163
+ for (let d = 0; d < i.length; d++) i[d](f);
1164
+ return f;
1165
+ };
1166
+ function Ut() {
1167
+ return (e) => oe({
1168
+ feature: "coreRowModelsFeature",
1169
+ table: e,
1170
+ fnName: "table.getCoreRowModel",
1171
+ memoDeps: () => [e.options.data],
1172
+ fn: () => Yt(e, e.options.data),
1173
+ onAfterUpdate: ct(() => {
1174
+ yt(e), St(e), Rt(e), bt(e);
1175
+ })
1176
+ });
1177
+ }
1178
+ function De(e, t, n, r = 0, o) {
1179
+ var u;
1180
+ const s = [];
1181
+ for (let g = 0; g < n.length; g++) {
1182
+ const f = n[g], i = Bt(e, e.getRowId(f, g, o), f, g, r, void 0, o == null ? void 0 : o.id);
1183
+ t.flatRows.push(i), t.rowsById[i.id] = i, s.push(i), e.options.getSubRows && (i.originalSubRows = e.options.getSubRows(f, g), (u = i.originalSubRows) != null && u.length && (i.subRows = De(e, t, i.originalSubRows, r + 1, i)));
1184
+ }
1185
+ return s;
1186
+ }
1187
+ function Yt(e, t) {
1188
+ const n = {
1189
+ rows: [],
1190
+ flatRows: [],
1191
+ rowsById: P()
1192
+ };
1193
+ return n.rows = De(e, n, t), n;
1194
+ }
1195
+ function Jt(e) {
1196
+ var t, n;
1197
+ return e._rowModels.coreRowModel || (e._rowModels.coreRowModel = ((n = (t = e.options.features).coreRowModel) == null ? void 0 : n.call(t, e)) ?? Ut()(e)), e._rowModels.coreRowModel();
1198
+ }
1199
+ function Qt(e) {
1200
+ return e.getCoreRowModel();
1201
+ }
1202
+ function Xt(e) {
1203
+ var t, n;
1204
+ return e._rowModels.filteredRowModel || (e._rowModels.filteredRowModel = (n = (t = e.options.features).filteredRowModel) == null ? void 0 : n.call(t, e)), e.options.manualFiltering || !e._rowModels.filteredRowModel ? e.getPreFilteredRowModel() : e._rowModels.filteredRowModel();
1205
+ }
1206
+ function Zt(e) {
1207
+ return e.getFilteredRowModel();
1208
+ }
1209
+ function en(e) {
1210
+ var t, n;
1211
+ return e._rowModels.groupedRowModel || (e._rowModels.groupedRowModel = (n = (t = e.options.features).groupedRowModel) == null ? void 0 : n.call(t, e)), e.options.manualGrouping || !e._rowModels.groupedRowModel ? e.getPreGroupedRowModel() : e._rowModels.groupedRowModel();
1212
+ }
1213
+ function tn(e) {
1214
+ return e.getGroupedRowModel();
1215
+ }
1216
+ function nn(e) {
1217
+ var t, n;
1218
+ return e._rowModels.sortedRowModel || (e._rowModels.sortedRowModel = (n = (t = e.options.features).sortedRowModel) == null ? void 0 : n.call(t, e)), e.options.manualSorting || !e._rowModels.sortedRowModel ? e.getPreSortedRowModel() : e._rowModels.sortedRowModel();
1219
+ }
1220
+ function on(e) {
1221
+ return e.getSortedRowModel();
1222
+ }
1223
+ function rn(e) {
1224
+ var t, n;
1225
+ return e._rowModels.expandedRowModel || (e._rowModels.expandedRowModel = (n = (t = e.options.features).expandedRowModel) == null ? void 0 : n.call(t, e)), e.options.manualExpanding || !e._rowModels.expandedRowModel ? e.getPreExpandedRowModel() : e._rowModels.expandedRowModel();
1226
+ }
1227
+ function sn(e) {
1228
+ return e.getExpandedRowModel();
1229
+ }
1230
+ function un(e) {
1231
+ var t, n;
1232
+ return e._rowModels.paginatedRowModel || (e._rowModels.paginatedRowModel = (n = (t = e.options.features).paginatedRowModel) == null ? void 0 : n.call(t, e)), e.options.manualPagination || !e._rowModels.paginatedRowModel ? e.getPrePaginatedRowModel() : e._rowModels.paginatedRowModel();
1233
+ }
1234
+ function an(e) {
1235
+ return e.getPaginatedRowModel();
1236
+ }
1237
+ const cn = { constructTableAPIs: (e) => {
1238
+ T("coreRowModelsFeature", e, {
1239
+ table_getCoreRowModel: { fn: () => Jt(e) },
1240
+ table_getPreFilteredRowModel: { fn: () => Qt(e) },
1241
+ table_getFilteredRowModel: { fn: () => Xt(e) },
1242
+ table_getPreGroupedRowModel: { fn: () => Zt(e) },
1243
+ table_getGroupedRowModel: { fn: () => en(e) },
1244
+ table_getPreSortedRowModel: { fn: () => tn(e) },
1245
+ table_getSortedRowModel: { fn: () => nn(e) },
1246
+ table_getPreExpandedRowModel: { fn: () => on(e) },
1247
+ table_getExpandedRowModel: { fn: () => rn(e) },
1248
+ table_getPrePaginatedRowModel: { fn: () => sn(e) },
1249
+ table_getPaginatedRowModel: { fn: () => un(e) },
1250
+ table_getRowModel: { fn: () => an(e) }
1251
+ });
1252
+ } };
1253
+ function ln(e) {
1254
+ var t, n;
1255
+ if (!e._cellPrototype) {
1256
+ e._cellPrototype = { table: e };
1257
+ const r = Object.values(e._features);
1258
+ for (let o = 0; o < r.length; o++) (n = (t = r[o]).assignCellPrototype) == null || n.call(t, e._cellPrototype, e);
1259
+ }
1260
+ return e._cellPrototype;
1261
+ }
1262
+ function dn(e, t, n) {
1263
+ const r = ln(n), o = Object.create(r);
1264
+ o.column = e, o.id = `${t.id}_${e.id}`, o.row = t;
1265
+ const s = n._cellInstanceInitFns;
1266
+ for (let u = 0; u < s.length; u++) s[u](o);
1267
+ return o;
1268
+ }
1269
+ function fn(e) {
1270
+ const t = e.table.getRowsInDisplayOrder(), n = e._displayIndexCache;
1271
+ return t[n] === e ? n : -1;
1272
+ }
1273
+ function gn(e) {
1274
+ const t = e.getPrePaginatedRowModel(), n = e.options.paginateExpandedRows === !1 ? vt(e, t).rows : t.rows;
1275
+ for (let r = 0; r < n.length; r++) n[r]._displayIndexCache = r;
1276
+ return n;
1277
+ }
1278
+ function pn(e, t) {
1279
+ if (ne(e._valuesCache, t)) return e._valuesCache[t];
1280
+ const n = e.table.getColumn(t);
1281
+ if (n != null && n.accessorFn)
1282
+ return e._valuesCache[t] = n.accessorFn(e.original, e.index), e._valuesCache[t];
1283
+ }
1284
+ function mn(e, t) {
1285
+ if (ne(e._uniqueValuesCache, t)) return e._uniqueValuesCache[t];
1286
+ const n = e.table.getColumn(t);
1287
+ if (n != null && n.accessorFn)
1288
+ return n.columnDef.getUniqueValues ? (e._uniqueValuesCache[t] = n.columnDef.getUniqueValues(e.original, e.index), e._uniqueValuesCache[t]) : (e._uniqueValuesCache[t] = [e.getValue(t)], e._uniqueValuesCache[t]);
1289
+ }
1290
+ function _n(e, t) {
1291
+ return e.getValue(t) ?? e.table.options.renderFallbackValue;
1292
+ }
1293
+ function hn(e) {
1294
+ return ut(e.subRows, (t) => t.subRows);
1295
+ }
1296
+ function wn(e) {
1297
+ const t = e.getCoreRowModel().flatRows;
1298
+ let n = 0;
1299
+ for (let r = 0; r < t.length; r++) n = Math.max(n, t[r].depth);
1300
+ return n;
1301
+ }
1302
+ function vn(e) {
1303
+ if (e.parentId)
1304
+ return e.table.getCoreRowModel().rowsById[e.parentId] ?? e.table.getRow(e.parentId, !0);
1305
+ }
1306
+ function yn(e) {
1307
+ const t = [];
1308
+ let n = e;
1309
+ for (; ; ) {
1310
+ const r = n.getParentRow();
1311
+ if (!r) break;
1312
+ t.push(r), n = r;
1313
+ }
1314
+ return t.reverse();
1315
+ }
1316
+ function Sn(e) {
1317
+ const t = e.table.getAllLeafColumns();
1318
+ let n = e._cellsCache;
1319
+ n || (n = e._cellsCache = /* @__PURE__ */ new WeakMap());
1320
+ const r = new Array(t.length);
1321
+ for (let o = 0; o < t.length; o++) {
1322
+ const s = t[o];
1323
+ let u = n.get(s);
1324
+ u || (u = dn(s, e, e.table), n.set(s, u)), r[o] = u;
1325
+ }
1326
+ return r;
1327
+ }
1328
+ function Rn(e) {
1329
+ const t = P(), n = e.getAllCells();
1330
+ for (let r = 0; r < n.length; r++) {
1331
+ const o = n[r];
1332
+ t[o.column.id] = o;
1333
+ }
1334
+ return t;
1335
+ }
1336
+ function bn(e, t, n, r) {
1337
+ var o, s;
1338
+ return ((s = (o = t.options).getRowId) == null ? void 0 : s.call(o, e, n, r)) ?? (r ? `${r.id}.${n}` : String(n));
1339
+ }
1340
+ function Mn(e, t, n) {
1341
+ let r = (n ? e.getPrePaginatedRowModel() : e.getRowModel()).rowsById[t];
1342
+ if (!r && (r = e.getCoreRowModel().rowsById[t], !r))
1343
+ throw process.env.NODE_ENV === "development" ? new Error(`getRow could not find row with ID: ${t}`) : new Error();
1344
+ return r;
1345
+ }
1346
+ const Cn = {
1347
+ assignRowPrototype: (e, t) => {
1348
+ q("coreRowsFeature", e, t, {
1349
+ row_getDisplayIndex: { fn: (n) => fn(n) },
1350
+ row_getAllCellsByColumnId: {
1351
+ fn: (n) => Rn(n),
1352
+ memoDeps: (n) => [n.getAllCells()]
1353
+ },
1354
+ row_getAllCells: {
1355
+ fn: (n) => Sn(n),
1356
+ memoDeps: (n) => [n.table.getAllLeafColumns()]
1357
+ },
1358
+ row_getLeafRows: {
1359
+ fn: (n) => hn(n),
1360
+ memoDeps: (n) => [n.subRows]
1361
+ },
1362
+ row_getParentRow: { fn: (n) => vn(n) },
1363
+ row_getParentRows: { fn: (n) => yn(n) },
1364
+ row_getUniqueValues: { fn: (n, r) => mn(n, r) },
1365
+ row_getValue: { fn: (n, r) => pn(n, r) },
1366
+ row_renderValue: { fn: (n, r) => _n(n, r) }
1367
+ });
1368
+ },
1369
+ constructTableAPIs: (e) => {
1370
+ T("coreRowsFeature", e, {
1371
+ table_getRowsInDisplayOrder: {
1372
+ fn: () => gn(e),
1373
+ memoDeps: () => {
1374
+ var t;
1375
+ return [
1376
+ e.getPrePaginatedRowModel().rows,
1377
+ e.options.paginateExpandedRows,
1378
+ e.options.paginateExpandedRows === !1 ? (t = e.atoms.expanded) == null ? void 0 : t.get() : void 0
1379
+ ];
1380
+ }
1381
+ },
1382
+ table_getRowId: { fn: (t, n, r) => bn(t, e, n, r) },
1383
+ table_getRow: { fn: (t, n) => Mn(e, t, n) },
1384
+ table_getMaxSubRowDepth: {
1385
+ fn: () => wn(e),
1386
+ memoDeps: () => [e.getCoreRowModel()]
1387
+ }
1388
+ });
1389
+ }
1390
+ };
1391
+ function Ee(e, t, n = (r, o) => r === o) {
1392
+ const r = t === void 0 ? e.options.state : t;
1393
+ e._reactivity.batch(() => {
1394
+ if (r) for (const o in r) {
1395
+ const s = e.baseAtoms[o];
1396
+ if (!s) continue;
1397
+ const u = r[o], g = u === void 0 ? e.initialState[o] : u;
1398
+ n(e._reactivity.untrack(() => s.get()), g) || s.set(() => g);
1399
+ }
1400
+ });
1401
+ }
1402
+ function xe(e, t, n = (r, o) => r === o) {
1403
+ e._reactivity.batch(() => {
1404
+ var r, o;
1405
+ Ee(e, t, n), (o = (r = e._reactivity).commit) == null || o.call(r);
1406
+ });
1407
+ }
1408
+ function On(e) {
1409
+ var r, o;
1410
+ const t = K(e.initialState);
1411
+ e._reactivity.batch(() => {
1412
+ const s = Object.keys(t);
1413
+ for (let u = 0; u < s.length; u++) {
1414
+ const g = s[u];
1415
+ e.baseAtoms[g].set(t[g]);
1416
+ }
1417
+ });
1418
+ const n = Object.values(e._features);
1419
+ for (let s = 0; s < n.length; s++) (o = (r = n[s]).resetTableInstanceData) == null || o.call(r, e);
1420
+ }
1421
+ function Dn(e, t) {
1422
+ const { features: n, atoms: r, initialState: o } = e.options;
1423
+ if (!e.options.mergeOptions) return {
1424
+ ...e.options,
1425
+ ...t,
1426
+ features: n,
1427
+ atoms: r,
1428
+ initialState: o
1429
+ };
1430
+ const s = e.options.mergeOptions(e.options, t), u = { ...Object.getOwnPropertyDescriptors(s) };
1431
+ return Object.defineProperties(Object.create(Object.getPrototypeOf(s)), {
1432
+ ...u,
1433
+ features: {
1434
+ value: n,
1435
+ enumerable: !0,
1436
+ configurable: !0,
1437
+ writable: !0
1438
+ },
1439
+ atoms: {
1440
+ value: r,
1441
+ enumerable: !0,
1442
+ configurable: !0,
1443
+ writable: !0
1444
+ },
1445
+ initialState: {
1446
+ value: o,
1447
+ enumerable: !0,
1448
+ configurable: !0,
1449
+ writable: !0
1450
+ }
1451
+ });
1452
+ }
1453
+ function Pe(e, t, n) {
1454
+ const r = Dn(e, it(t, e.options));
1455
+ e.optionsStore ? e.optionsStore.set(() => r) : e.options = r, (n == null ? void 0 : n.syncExternalState) !== !1 && xe(e, r.state ?? null);
1456
+ }
1457
+ const En = { constructTableAPIs: (e) => {
1458
+ T("coreTablesFeature", e, {
1459
+ table_reset: { fn: () => On(e) },
1460
+ table_setOptions: { fn: (t) => Pe(e, t) }
1461
+ });
1462
+ } }, xn = {
1463
+ coreCellsFeature: pt,
1464
+ coreColumnsFeature: At,
1465
+ coreHeadersFeature: qt,
1466
+ coreRowModelsFeature: cn,
1467
+ coreRowsFeature: Cn,
1468
+ coreTablesFeature: En
1469
+ };
1470
+ function Pn(e, t = {}) {
1471
+ return Object.values(e).forEach((n) => {
1472
+ var r;
1473
+ t = ((r = n.getInitialState) == null ? void 0 : r.call(n, t)) ?? t;
1474
+ }), K(t);
1475
+ }
1476
+ function Fn(e) {
1477
+ var y, R;
1478
+ const t = e.features.coreReactivityFeature, { aggregationFns: n, columnMeta: r, coreRowModel: o, expandedRowModel: s, facetedMinMaxValues: u, facetedRowModel: g, facetedUniqueValues: f, filterFns: i, filterMeta: d, filteredRowModel: a, groupedRowModel: l, paginatedRowModel: c, sortFns: p, sortedRowModel: m, tableMeta: w, ...S } = e.features, h = {
1479
+ _cellInstanceInitFns: [],
1480
+ _columnInstanceInitFns: [],
1481
+ _features: {
1482
+ ...xn,
1483
+ ...S
1484
+ },
1485
+ _headerGroupInstanceInitFns: [],
1486
+ _headerInstanceInitFns: [],
1487
+ _reactivity: t,
1488
+ _rowInstanceInitFns: [],
1489
+ _rowModelFns: {
1490
+ aggregationFns: n,
1491
+ filterFns: i,
1492
+ sortFns: p
1493
+ },
1494
+ _rowModels: {},
1495
+ atoms: {},
1496
+ baseAtoms: {}
1497
+ }, C = Object.values(h._features), b = {
1498
+ ...C.reduce((v, _) => {
1499
+ var M;
1500
+ return Object.assign(v, (M = _.getDefaultTableOptions) == null ? void 0 : M.call(_, h));
1501
+ }, {}),
1502
+ ...e
1503
+ };
1504
+ if (t.wrapExternalAtoms && b.atoms) for (const [v, _] of Object.entries(b.atoms)) {
1505
+ const M = _, O = t.createWritableAtom(M.get(), { debugName: `externalAtom/${v}` });
1506
+ b.atoms[v] = O;
1507
+ let F = !1;
1508
+ const A = M.subscribe((I) => {
1509
+ F || O.set(I);
1510
+ }), H = O.subscribe((I) => {
1511
+ F = !0, M.set(I), F = !1;
1512
+ });
1513
+ t.addSubscription(A), t.addSubscription(H);
1514
+ }
1515
+ t.createOptionsStore ? (h.optionsStore = t.createWritableAtom(b, { debugName: "table/optionsStore" }), Object.defineProperty(h, "options", {
1516
+ configurable: !0,
1517
+ enumerable: !0,
1518
+ get() {
1519
+ return h.optionsStore.get();
1520
+ },
1521
+ set(v) {
1522
+ h.optionsStore.set(() => v);
1523
+ }
1524
+ })) : h.options = b, h.initialState = Pn(h._features, h.options.initialState);
1525
+ const x = Object.keys(h.initialState);
1526
+ for (let v = 0; v < x.length; v++) {
1527
+ const _ = x[v];
1528
+ h.baseAtoms[_] = t.createWritableAtom(h.initialState[_], { debugName: `table/baseAtoms/${_}` }), h.atoms[_] = t.createReadonlyAtom(() => {
1529
+ var H;
1530
+ const M = h.options, O = (H = M.atoms) == null ? void 0 : H[_], F = O ? O.get() : h.baseAtoms[_].get();
1531
+ if (O) return F;
1532
+ const A = M.state;
1533
+ if (A && ne(A, _)) {
1534
+ const I = A[_];
1535
+ return I === void 0 ? h.initialState[_] : I;
1536
+ }
1537
+ return F;
1538
+ }, { debugName: `table/atoms/${_}` });
1539
+ }
1540
+ Ee(h), h.store = nt(t.createReadonlyAtom(() => {
1541
+ const v = {};
1542
+ for (let _ = 0; _ < x.length; _++) {
1543
+ const M = x[_];
1544
+ v[M] = h.atoms[M].get();
1545
+ }
1546
+ return v;
1547
+ }, {
1548
+ compare: V,
1549
+ debugName: "table/store"
1550
+ }));
1551
+ for (let v = 0; v < C.length; v++) {
1552
+ const _ = C[v];
1553
+ (y = _.initTableInstanceData) == null || y.call(_, h), _.initCellInstanceData && h._cellInstanceInitFns.push(_.initCellInstanceData.bind(_)), _.initColumnInstanceData && h._columnInstanceInitFns.push(_.initColumnInstanceData.bind(_)), _.initHeaderGroupInstanceData && h._headerGroupInstanceInitFns.push(_.initHeaderGroupInstanceData.bind(_)), _.initHeaderInstanceData && h._headerInstanceInitFns.push(_.initHeaderInstanceData.bind(_)), _.initRowInstanceData && h._rowInstanceInitFns.push(_.initRowInstanceData.bind(_)), (R = _.constructTableAPIs) == null || R.call(_, h);
1554
+ }
1555
+ if (process.env.NODE_ENV === "development" && (e.debugAll || e.debugTable)) {
1556
+ const v = Object.keys(h._features), _ = Object.entries({
1557
+ coreRowModel: o,
1558
+ filteredRowModel: a,
1559
+ groupedRowModel: l,
1560
+ sortedRowModel: m,
1561
+ expandedRowModel: s,
1562
+ paginatedRowModel: c,
1563
+ facetedRowModel: g,
1564
+ facetedMinMaxValues: u,
1565
+ facetedUniqueValues: f
1566
+ }).filter(([, O]) => O).map(([O]) => O), M = Object.keys(h.initialState);
1567
+ console.log(`Constructing Table Instance
1568
+
1569
+ Features: ${v.join(`
1570
+ `)}
1571
+
1572
+ Row Models: ${_.length ? _.join(`
1573
+ `) : "(none)"}
1574
+
1575
+ States: ${M.join(`
1576
+ `)}
1577
+ `, { table: h });
1578
+ }
1579
+ return h;
1580
+ }
1581
+ const In = typeof window > "u" ? Ae : Ve;
1582
+ function An(e, t) {
1583
+ const [{ table: n, rootSource: r }] = Ie(() => {
1584
+ const f = Fn({
1585
+ ...e,
1586
+ features: {
1587
+ coreReactivityFeature: st(),
1588
+ ...e.features
1589
+ }
1590
+ });
1591
+ return f.Subscribe = ((i) => tt({
1592
+ ...i,
1593
+ source: i.source ?? f.store
1594
+ })), f.FlexRender = $e, {
1595
+ table: f,
1596
+ rootSource: rt(f.store, V)
1597
+ };
1598
+ }), o = n;
1599
+ Pe(o, (f) => ({
1600
+ ...f,
1601
+ ...e
1602
+ }), { syncExternalState: !1 });
1603
+ const s = o.options.state, u = r.get(), g = ve(r, t, { compare: V });
1604
+ return In(() => {
1605
+ r.markCommitted(u), xe(o, s ?? null, V);
1606
+ }), me(() => ({
1607
+ ...n,
1608
+ options: e,
1609
+ state: g
1610
+ }), [
1611
+ n,
1612
+ e,
1613
+ g
1614
+ ]);
1615
+ }
1616
+ const Vn = te(
1617
+ [
1618
+ "ds:rounded-[var(--radius-md)] ds:bg-[color:var(--background)] ds:shadow-[var(--shadow-sm)]",
1619
+ // The header and totals are sticky, so keyboard focus must not land under
1620
+ // them when the grid scrolls a control into view.
1621
+ "ds:[scroll-padding-block:calc(var(--min-target-size)*2)]",
1622
+ // The same softened line as DataTable: half-strength `--border`, or 35%
1623
+ // on the accessible themes, where `--border` is a full-contrast edge.
1624
+ "ds:[--data-grid-line:color-mix(in_srgb,var(--border)_var(--data-grid-border-mix,50%),transparent)]"
1625
+ ].join(" "),
1626
+ {
1627
+ variants: {
1628
+ // The same, for pinned columns.
1629
+ pinned: {
1630
+ true: "ds:[scroll-padding-inline:calc(var(--spacing-lg)*6)]",
1631
+ false: ""
1632
+ }
1633
+ },
1634
+ defaultVariants: { pinned: !1 }
1635
+ }
1636
+ ), Ln = te(
1637
+ "ds:w-full ds:border-separate ds:[border-spacing:0] ds:[&_tbody_tr:last-child>*]:border-b-0"
1638
+ ), J = te(
1639
+ "ds:h-[var(--min-target-size)] ds:border-[color:var(--data-grid-line)] ds:px-[var(--spacing-md)] ds:py-[var(--spacing-sm)]",
1640
+ {
1641
+ variants: {
1642
+ section: {
1643
+ head: [
1644
+ "ds:sticky ds:top-0 ds:z-[2] ds:border-b ds:align-bottom ds:bg-[color:var(--background)]",
1645
+ // Opaque background under the tint: the dark header surface is
1646
+ // translucent, and rows scroll beneath this cell.
1647
+ "ds:[background-image:linear-gradient(var(--data-grid-header-surface,var(--muted)),var(--data-grid-header-surface,var(--muted)))]",
1648
+ // The eyebrow, as DataTable's header. CJK has no capitals to track.
1649
+ "ds:[font-size:var(--data-grid-eyebrow-size,var(--font-size-xs))] ds:[font-weight:var(--font-weight-bold)] ds:uppercase ds:tracking-[0.04em] ds:text-[color:var(--data-grid-eyebrow-ink,var(--muted-foreground))]",
1650
+ "ds:[&:lang(ja)]:tracking-normal ds:[&:lang(ko)]:tracking-normal ds:[&:lang(zh)]:tracking-normal"
1651
+ ].join(" "),
1652
+ body: "type-body-sm ds:border-b ds:bg-[color:var(--background)] ds:align-middle",
1653
+ // Not `type-body-sm`: that class would win over the totals' weight.
1654
+ foot: "ds:sticky ds:bottom-0 ds:z-[2] ds:border-t ds:bg-[color:var(--muted)] ds:align-middle ds:[font-size:var(--font-size-sm)] ds:[font-weight:var(--font-weight-semibold)]"
1655
+ },
1656
+ align: {
1657
+ start: "ds:text-start",
1658
+ end: "ds:text-end"
1659
+ },
1660
+ pin: {
1661
+ none: "",
1662
+ start: "ds:sticky ds:start-0 ds:border-e",
1663
+ end: "ds:sticky ds:end-0 ds:border-s"
1664
+ }
1665
+ },
1666
+ compoundVariants: [
1667
+ { section: "body", pin: ["start", "end"], className: "ds:z-[1]" },
1668
+ {
1669
+ section: ["head", "foot"],
1670
+ pin: ["start", "end"],
1671
+ className: "ds:z-[3]"
1672
+ }
1673
+ ],
1674
+ defaultVariants: { align: "start", pin: "none" }
1675
+ }
1676
+ ), Tn = {};
1677
+ function Nn({
1678
+ columns: e,
1679
+ rows: t,
1680
+ getRowId: n,
1681
+ caption: r,
1682
+ className: o,
1683
+ ...s
1684
+ }) {
1685
+ const u = Le(), g = me(
1686
+ () => e.map((a) => ({
1687
+ id: a.id,
1688
+ accessorFn: (l) => l,
1689
+ header: () => a.header,
1690
+ cell: ({ row: l }) => a.cell(l.original),
1691
+ footer: () => a.footer
1692
+ })),
1693
+ [e]
1694
+ ), f = An({
1695
+ features: Tn,
1696
+ columns: g,
1697
+ data: t,
1698
+ getRowId: (a) => n(a)
1699
+ }), i = e.some((a) => a.footer !== void 0), d = e.some((a) => a.pin !== void 0);
1700
+ return /* @__PURE__ */ D(
1701
+ Te,
1702
+ {
1703
+ type: "native",
1704
+ orientation: "both",
1705
+ role: "group",
1706
+ "aria-labelledby": u,
1707
+ "data-component": "data-grid",
1708
+ className: Vn({ pinned: d, className: o }),
1709
+ ...s,
1710
+ children: /* @__PURE__ */ Fe("table", { className: Ln(), children: [
1711
+ /* @__PURE__ */ D("caption", { id: u, className: "ds:sr-only", children: r }),
1712
+ /* @__PURE__ */ D("thead", { children: f.getHeaderGroups().map((a) => /* @__PURE__ */ D("tr", { children: a.headers.map((l, c) => /* @__PURE__ */ D(
1713
+ "th",
1714
+ {
1715
+ scope: "col",
1716
+ "aria-label": e[c].headerLabel,
1717
+ className: J({
1718
+ section: "head",
1719
+ align: e[c].align,
1720
+ pin: e[c].pin
1721
+ }),
1722
+ children: e[c].header
1723
+ },
1724
+ l.id
1725
+ )) }, a.id)) }),
1726
+ /* @__PURE__ */ D("tbody", { children: f.getRowModel().rows.map((a) => /* @__PURE__ */ D("tr", { children: e.map((l, c) => /* @__PURE__ */ D(
1727
+ c === 0 ? "th" : "td",
1728
+ {
1729
+ scope: c === 0 ? "row" : void 0,
1730
+ className: J({
1731
+ section: "body",
1732
+ align: l.align,
1733
+ pin: l.pin
1734
+ }),
1735
+ children: l.cell(a.original)
1736
+ },
1737
+ l.id
1738
+ )) }, a.id)) }),
1739
+ i ? /* @__PURE__ */ D("tfoot", { children: /* @__PURE__ */ D("tr", { children: e.map((a, l) => /* @__PURE__ */ D(
1740
+ l === 0 ? "th" : "td",
1741
+ {
1742
+ scope: l === 0 ? "row" : void 0,
1743
+ className: J({
1744
+ section: "foot",
1745
+ align: a.align,
1746
+ pin: a.pin
1747
+ }),
1748
+ children: a.footer
1749
+ },
1750
+ a.id
1751
+ )) }) }) : null
1752
+ ] })
1753
+ }
1754
+ );
1755
+ }
1756
+ const kn = {
1757
+ id: "data-grid",
1758
+ capabilities: [],
1759
+ state: {},
1760
+ actions: {},
1761
+ domHooks: {
1762
+ root: {
1763
+ attr: "data-component",
1764
+ value: "data-grid",
1765
+ description: "Marks the element as a kit DataGrid."
1766
+ }
1767
+ }
1768
+ };
1769
+ export {
1770
+ Nn as D,
1771
+ kn as d
1772
+ };
1773
+ //# sourceMappingURL=data-grid.agent-CASyEAnb.js.map