@ram_28/kf-ai-sdk 1.0.8 → 1.0.9

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 (28) hide show
  1. package/dist/components/hooks/index.d.ts +2 -1
  2. package/dist/components/hooks/index.d.ts.map +1 -1
  3. package/dist/components/hooks/useForm/apiClient.d.ts +4 -4
  4. package/dist/components/hooks/useForm/apiClient.d.ts.map +1 -1
  5. package/dist/components/hooks/useForm/expressionValidator.utils.d.ts +3 -3
  6. package/dist/components/hooks/useForm/expressionValidator.utils.d.ts.map +1 -1
  7. package/dist/components/hooks/useForm/index.d.ts +7 -4
  8. package/dist/components/hooks/useForm/index.d.ts.map +1 -1
  9. package/dist/components/hooks/useForm/optimizedExpressionValidator.utils.d.ts +5 -5
  10. package/dist/components/hooks/useForm/optimizedExpressionValidator.utils.d.ts.map +1 -1
  11. package/dist/components/hooks/useForm/ruleClassifier.utils.d.ts +7 -6
  12. package/dist/components/hooks/useForm/ruleClassifier.utils.d.ts.map +1 -1
  13. package/dist/components/hooks/useForm/schemaParser.utils.d.ts +8 -8
  14. package/dist/components/hooks/useForm/schemaParser.utils.d.ts.map +1 -1
  15. package/dist/components/hooks/useForm/types.d.ts +86 -93
  16. package/dist/components/hooks/useForm/types.d.ts.map +1 -1
  17. package/dist/index.cjs +11 -11
  18. package/dist/index.mjs +1003 -1009
  19. package/package.json +1 -1
  20. package/sdk/components/hooks/index.ts +24 -4
  21. package/sdk/components/hooks/useForm/apiClient.ts +5 -5
  22. package/sdk/components/hooks/useForm/expressionValidator.utils.ts +11 -11
  23. package/sdk/components/hooks/useForm/index.ts +41 -45
  24. package/sdk/components/hooks/useForm/optimizedExpressionValidator.utils.ts +7 -7
  25. package/sdk/components/hooks/useForm/ruleClassifier.utils.ts +21 -20
  26. package/sdk/components/hooks/useForm/schemaParser.utils.ts +36 -41
  27. package/sdk/components/hooks/useForm/types.ts +107 -113
  28. package/sdk/components/hooks/useForm/useForm.ts +54 -54
package/dist/index.mjs CHANGED
@@ -2,32 +2,32 @@ var Lt = Object.defineProperty;
2
2
  var Ut = (e, r, n) => r in e ? Lt(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n;
3
3
  var Qe = (e, r, n) => Ut(e, typeof r != "symbol" ? r + "" : r, n);
4
4
  import * as Ue from "react";
5
- import nt, { useState as xe, useMemo as ye, useCallback as S, useRef as he, useEffect as Oe, createContext as ot, useContext as qt } from "react";
6
- import { useQuery as tr, useQueryClient as at, useQueries as zt, keepPreviousData as Bt, useMutation as sr } from "@tanstack/react-query";
7
- import { useForm as Kt } from "react-hook-form";
5
+ import nt, { useState as Se, useMemo as ye, useCallback as x, useRef as he, useEffect as Oe, createContext as at, useContext as qt } from "react";
6
+ import { useQuery as nr, useQueryClient as ot, useQueries as zt, keepPreviousData as Kt, useMutation as ir } from "@tanstack/react-query";
7
+ import { useForm as Bt } from "react-hook-form";
8
8
  let Xe = {
9
9
  baseUrl: "",
10
10
  headers: {
11
11
  "Content-Type": "application/json"
12
12
  }
13
13
  };
14
- function Wo(e) {
14
+ function Ga(e) {
15
15
  Xe.baseUrl = e;
16
16
  }
17
- function Qo(e) {
17
+ function Ya(e) {
18
18
  Xe.headers = { ...Xe.headers, ...e };
19
19
  }
20
- function br() {
20
+ function yr() {
21
21
  return { ...Xe.headers };
22
22
  }
23
- function _r() {
23
+ function Fr() {
24
24
  return Xe.baseUrl || "";
25
25
  }
26
- function gr(e) {
26
+ function hr(e) {
27
27
  if (e == null)
28
28
  return e;
29
29
  if (Array.isArray(e))
30
- return e.map((r) => gr(r));
30
+ return e.map((r) => hr(r));
31
31
  if (typeof e == "object") {
32
32
  if ("$__dt__" in e)
33
33
  return new Date(e.$__dt__ * 1e3);
@@ -35,7 +35,7 @@ function gr(e) {
35
35
  return new Date(e.$__d__);
36
36
  const r = {};
37
37
  for (const [n, t] of Object.entries(e))
38
- r[n] = gr(t);
38
+ r[n] = hr(t);
39
39
  return r;
40
40
  }
41
41
  return e;
@@ -44,30 +44,30 @@ function Re(e) {
44
44
  const r = Xe.baseUrl, n = Xe.headers;
45
45
  return {
46
46
  async get(t) {
47
- const o = await fetch(`${r}/api/app/${e}/${t}/read`, {
47
+ const a = await fetch(`${r}/api/app/${e}/${t}/read`, {
48
48
  method: "GET",
49
49
  headers: n
50
50
  });
51
- if (!o.ok)
52
- throw new Error(`Failed to get ${e} ${t}: ${o.statusText}`);
53
- const s = await o.json();
54
- return gr(s.Data);
51
+ if (!a.ok)
52
+ throw new Error(`Failed to get ${e} ${t}: ${a.statusText}`);
53
+ const s = await a.json();
54
+ return hr(s.Data);
55
55
  },
56
56
  async create(t) {
57
- const o = await fetch(`${r}/api/app/${e}/create`, {
57
+ const a = await fetch(`${r}/api/app/${e}/create`, {
58
58
  method: "POST",
59
59
  headers: n,
60
60
  body: JSON.stringify(t)
61
61
  });
62
- if (!o.ok)
63
- throw new Error(`Failed to create ${e}: ${o.statusText}`);
64
- return o.json();
62
+ if (!a.ok)
63
+ throw new Error(`Failed to create ${e}: ${a.statusText}`);
64
+ return a.json();
65
65
  },
66
- async update(t, o) {
66
+ async update(t, a) {
67
67
  const s = await fetch(`${r}/api/app/${e}/${t}/update`, {
68
68
  method: "POST",
69
69
  headers: n,
70
- body: JSON.stringify(o)
70
+ body: JSON.stringify(a)
71
71
  });
72
72
  if (!s.ok)
73
73
  throw new Error(
@@ -76,34 +76,34 @@ function Re(e) {
76
76
  return s.json();
77
77
  },
78
78
  async delete(t) {
79
- const o = await fetch(`${r}/api/app/${e}/${t}/delete`, {
79
+ const a = await fetch(`${r}/api/app/${e}/${t}/delete`, {
80
80
  method: "DELETE",
81
81
  headers: n
82
82
  });
83
- if (!o.ok)
83
+ if (!a.ok)
84
84
  throw new Error(
85
- `Failed to delete ${e} ${t}: ${o.statusText}`
85
+ `Failed to delete ${e} ${t}: ${a.statusText}`
86
86
  );
87
- return o.json();
87
+ return a.json();
88
88
  },
89
89
  async list(t) {
90
- const o = {
90
+ const a = {
91
91
  Type: "List",
92
92
  ...t
93
93
  }, s = await fetch(`${r}/api/app/${e}/list`, {
94
94
  method: "POST",
95
95
  headers: n,
96
- body: JSON.stringify(o)
96
+ body: JSON.stringify(a)
97
97
  });
98
98
  if (!s.ok)
99
99
  throw new Error(`Failed to list ${e}: ${s.statusText}`);
100
100
  return {
101
- Data: (await s.json()).Data.map((l) => gr(l))
101
+ Data: (await s.json()).Data.map((l) => hr(l))
102
102
  };
103
103
  },
104
104
  async count(t) {
105
105
  var c, d;
106
- const o = {
106
+ const a = {
107
107
  Type: "Metric",
108
108
  GroupBy: [],
109
109
  Metric: [{ Field: "_id", Type: "Count" }],
@@ -111,7 +111,7 @@ function Re(e) {
111
111
  }, s = await fetch(`${r}/api/app/${e}/metric`, {
112
112
  method: "POST",
113
113
  headers: n,
114
- body: JSON.stringify(o)
114
+ body: JSON.stringify(a)
115
115
  });
116
116
  if (!s.ok)
117
117
  throw new Error(`Failed to count ${e}: ${s.statusText}`);
@@ -121,22 +121,22 @@ function Re(e) {
121
121
  // DRAFT/INTERACTIVE OPERATIONS
122
122
  // ============================================================
123
123
  async draft(t) {
124
- const o = await fetch(`${r}/api/app/${e}/draft`, {
124
+ const a = await fetch(`${r}/api/app/${e}/draft`, {
125
125
  method: "POST",
126
126
  headers: n,
127
127
  body: JSON.stringify(t)
128
128
  });
129
- if (!o.ok)
129
+ if (!a.ok)
130
130
  throw new Error(
131
- `Failed to create draft for ${e}: ${o.statusText}`
131
+ `Failed to create draft for ${e}: ${a.statusText}`
132
132
  );
133
- return o.json();
133
+ return a.json();
134
134
  },
135
- async draftUpdate(t, o) {
135
+ async draftUpdate(t, a) {
136
136
  const s = await fetch(`${r}/api/app/${e}/${t}/draft`, {
137
137
  method: "POST",
138
138
  headers: n,
139
- body: JSON.stringify(o)
139
+ body: JSON.stringify(a)
140
140
  });
141
141
  if (!s.ok)
142
142
  throw new Error(
@@ -144,11 +144,11 @@ function Re(e) {
144
144
  );
145
145
  return s.json();
146
146
  },
147
- async draftPatch(t, o) {
147
+ async draftPatch(t, a) {
148
148
  const s = await fetch(`${r}/api/app/${e}/${t}/draft`, {
149
149
  method: "PATCH",
150
150
  headers: n,
151
- body: JSON.stringify(o)
151
+ body: JSON.stringify(a)
152
152
  });
153
153
  if (!s.ok)
154
154
  throw new Error(
@@ -160,13 +160,13 @@ function Re(e) {
160
160
  // QUERY OPERATIONS
161
161
  // ============================================================
162
162
  async metric(t) {
163
- const o = {
163
+ const a = {
164
164
  Type: "Metric",
165
165
  ...t
166
166
  }, s = await fetch(`${r}/api/app/${e}/metric`, {
167
167
  method: "POST",
168
168
  headers: n,
169
- body: JSON.stringify(o)
169
+ body: JSON.stringify(a)
170
170
  });
171
171
  if (!s.ok)
172
172
  throw new Error(
@@ -175,13 +175,13 @@ function Re(e) {
175
175
  return s.json();
176
176
  },
177
177
  async pivot(t) {
178
- const o = {
178
+ const a = {
179
179
  Type: "Pivot",
180
180
  ...t
181
181
  }, s = await fetch(`${r}/api/app/${e}/pivot`, {
182
182
  method: "POST",
183
183
  headers: n,
184
- body: JSON.stringify(o)
184
+ body: JSON.stringify(a)
185
185
  });
186
186
  if (!s.ok)
187
187
  throw new Error(
@@ -203,9 +203,9 @@ function Re(e) {
203
203
  );
204
204
  return t.json();
205
205
  },
206
- async fetchField(t, o) {
206
+ async fetchField(t, a) {
207
207
  const s = await fetch(
208
- `${r}/api/app/${e}/${t}/field/${o}/fetch`,
208
+ `${r}/api/app/${e}/${t}/field/${a}/fetch`,
209
209
  {
210
210
  method: "GET",
211
211
  headers: n
@@ -213,27 +213,27 @@ function Re(e) {
213
213
  );
214
214
  if (!s.ok)
215
215
  throw new Error(
216
- `Failed to fetch field ${o} for ${e}: ${s.statusText}`
216
+ `Failed to fetch field ${a} for ${e}: ${s.statusText}`
217
217
  );
218
218
  return (await s.json()).Data;
219
219
  }
220
220
  };
221
221
  }
222
- function Jo(e) {
222
+ function Wa(e) {
223
223
  return { $__dt__: e.getTime() / 1e3 };
224
224
  }
225
- function Ho(e) {
225
+ function Qa(e) {
226
226
  return new Date(e.$__dt__ * 1e3);
227
227
  }
228
- function Xo(e) {
228
+ function Ja(e) {
229
229
  return { $__d__: e.toISOString().split("T")[0] };
230
230
  }
231
- function Zo(e) {
231
+ function Ha(e) {
232
232
  return new Date(e.$__d__);
233
233
  }
234
234
  async function Mt(e) {
235
235
  try {
236
- const r = _r(), n = br(), t = await fetch(`${r}/api/app/meta/bdo/${e}`, {
236
+ const r = Fr(), n = yr(), t = await fetch(`${r}/api/app/meta/bdo/${e}`, {
237
237
  method: "GET",
238
238
  headers: n
239
239
  });
@@ -241,28 +241,28 @@ async function Mt(e) {
241
241
  throw new Error(
242
242
  `Failed to fetch schema for ${e}: ${t.statusText}`
243
243
  );
244
- const o = await t.json();
245
- if (!o || typeof o != "object")
244
+ const a = await t.json();
245
+ if (!a || typeof a != "object")
246
246
  throw new Error(`Invalid BDO schema response for ${e}`);
247
- return o;
247
+ return a;
248
248
  } catch (r) {
249
249
  throw console.error(`Schema fetch error for ${e}:`, r), new Error(
250
250
  `Failed to load BDO schema: ${r instanceof Error ? r.message : "Unknown error"}`
251
251
  );
252
252
  }
253
253
  }
254
- async function ea(e) {
254
+ async function Xa(e) {
255
255
  try {
256
- const r = _r(), n = br(), t = e != null && e.Filter || e != null && e.Sort ? "POST" : "GET", o = await fetch(`${r}/api/app/metadata/list`, {
256
+ const r = Fr(), n = yr(), t = e != null && e.Filter || e != null && e.Sort ? "POST" : "GET", a = await fetch(`${r}/api/app/metadata/list`, {
257
257
  method: t,
258
258
  headers: n,
259
259
  ...t === "POST" && e && {
260
260
  body: JSON.stringify(e)
261
261
  }
262
262
  });
263
- if (!o.ok)
264
- throw new Error(`Failed to list metadata: ${o.statusText}`);
265
- return await o.json();
263
+ if (!a.ok)
264
+ throw new Error(`Failed to list metadata: ${a.statusText}`);
265
+ return await a.json();
266
266
  } catch (r) {
267
267
  throw console.error("Metadata list error:", r), new Error(
268
268
  `Failed to list metadata: ${r instanceof Error ? r.message : "Unknown error"}`
@@ -275,7 +275,7 @@ function Gt(e) {
275
275
  currency: e.currency
276
276
  }).format(e.value) : "Invalid Currency";
277
277
  }
278
- function ra(e) {
278
+ function Za(e) {
279
279
  const r = e.match(/^(?:([A-Z]{3})\s+(\d+\.?\d*))|(?:(\d+\.?\d*)\s+([A-Z]{3}))$/);
280
280
  if (r) {
281
281
  const n = r[1] || r[4], t = parseFloat(r[2] || r[3]);
@@ -320,7 +320,7 @@ function Ht(e, r, n = ", ") {
320
320
  function Xt(e, r) {
321
321
  return typeof e != "boolean" ? "Invalid Boolean" : e ? (r == null ? void 0 : r.trueLabel) || "Yes" : (r == null ? void 0 : r.falseLabel) || "No";
322
322
  }
323
- function ta(e, r = 50) {
323
+ function eo(e, r = 50) {
324
324
  return typeof e != "string" ? "Invalid String" : e.length <= r ? e : e.slice(0, r - 3) + "...";
325
325
  }
326
326
  function Zt(e, r) {
@@ -332,7 +332,7 @@ function Zt(e, r) {
332
332
  `) + `
333
333
  ...` : e;
334
334
  }
335
- function na(e, r) {
335
+ function ro(e, r) {
336
336
  if (e == null)
337
337
  return "";
338
338
  switch (r || (typeof e == "boolean" ? r = "boolean" : typeof e == "number" ? r = "number" : e instanceof Date ? r = "datetime" : Array.isArray(e) ? r = "array" : typeof e == "object" ? r = "json" : r = "string"), r) {
@@ -363,13 +363,13 @@ function st(e) {
363
363
  var r, n, t = "";
364
364
  if (typeof e == "string" || typeof e == "number") t += e;
365
365
  else if (typeof e == "object") if (Array.isArray(e)) {
366
- var o = e.length;
367
- for (r = 0; r < o; r++) e[r] && (n = st(e[r])) && (t && (t += " "), t += n);
366
+ var a = e.length;
367
+ for (r = 0; r < a; r++) e[r] && (n = st(e[r])) && (t && (t += " "), t += n);
368
368
  } else for (n in e) e[n] && (t && (t += " "), t += n);
369
369
  return t;
370
370
  }
371
371
  function en() {
372
- for (var e, r, n = 0, t = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (r = st(e)) && (t && (t += " "), t += r);
372
+ for (var e, r, n = 0, t = "", a = arguments.length; n < a; n++) (e = arguments[n]) && (r = st(e)) && (t && (t += " "), t += r);
373
373
  return t;
374
374
  }
375
375
  const rn = (e, r) => {
@@ -386,7 +386,7 @@ const rn = (e, r) => {
386
386
  nextPart: e,
387
387
  validators: r,
388
388
  classGroupId: n
389
- }), hr = "-", qr = [], nn = "arbitrary..", on = (e) => {
389
+ }), br = "-", qr = [], nn = "arbitrary..", an = (e) => {
390
390
  const r = sn(e), {
391
391
  conflictingClassGroups: n,
392
392
  conflictingClassGroupModifiers: t
@@ -394,8 +394,8 @@ const rn = (e, r) => {
394
394
  return {
395
395
  getClassGroupId: (i) => {
396
396
  if (i.startsWith("[") && i.endsWith("]"))
397
- return an(i);
398
- const l = i.split(hr), c = l[0] === "" && l.length > 1 ? 1 : 0;
397
+ return on(i);
398
+ const l = i.split(br), c = l[0] === "" && l.length > 1 ? 1 : 0;
399
399
  return ct(l, c, r);
400
400
  },
401
401
  getConflictingClassGroupIds: (i, l) => {
@@ -409,7 +409,7 @@ const rn = (e, r) => {
409
409
  }, ct = (e, r, n) => {
410
410
  if (e.length - r === 0)
411
411
  return n.classGroupId;
412
- const o = e[r], s = n.nextPart.get(o);
412
+ const a = e[r], s = n.nextPart.get(a);
413
413
  if (s) {
414
414
  const d = ct(e, r + 1, s);
415
415
  if (d) return d;
@@ -417,13 +417,13 @@ const rn = (e, r) => {
417
417
  const i = n.validators;
418
418
  if (i === null)
419
419
  return;
420
- const l = r === 0 ? e.join(hr) : e.slice(r).join(hr), c = i.length;
420
+ const l = r === 0 ? e.join(br) : e.slice(r).join(br), c = i.length;
421
421
  for (let d = 0; d < c; d++) {
422
422
  const p = i[d];
423
423
  if (p.validator(l))
424
424
  return p.classGroupId;
425
425
  }
426
- }, an = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
426
+ }, on = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
427
427
  const r = e.slice(1, -1), n = r.indexOf(":"), t = r.slice(0, n);
428
428
  return t ? nn + t : void 0;
429
429
  })(), sn = (e) => {
@@ -435,13 +435,13 @@ const rn = (e, r) => {
435
435
  }, cn = (e, r) => {
436
436
  const n = it();
437
437
  for (const t in e) {
438
- const o = e[t];
439
- Nr(o, n, t, r);
438
+ const a = e[t];
439
+ Nr(a, n, t, r);
440
440
  }
441
441
  return n;
442
442
  }, Nr = (e, r, n, t) => {
443
- const o = e.length;
444
- for (let s = 0; s < o; s++) {
443
+ const a = e.length;
444
+ for (let s = 0; s < a; s++) {
445
445
  const i = e[s];
446
446
  ln(i, r, n, t);
447
447
  }
@@ -465,15 +465,15 @@ const rn = (e, r) => {
465
465
  }
466
466
  r.validators === null && (r.validators = []), r.validators.push(tn(n, e));
467
467
  }, fn = (e, r, n, t) => {
468
- const o = Object.entries(e), s = o.length;
468
+ const a = Object.entries(e), s = a.length;
469
469
  for (let i = 0; i < s; i++) {
470
- const [l, c] = o[i];
470
+ const [l, c] = a[i];
471
471
  Nr(c, lt(r, l), n, t);
472
472
  }
473
473
  }, lt = (e, r) => {
474
474
  let n = e;
475
- const t = r.split(hr), o = t.length;
476
- for (let s = 0; s < o; s++) {
475
+ const t = r.split(br), a = t.length;
476
+ for (let s = 0; s < a; s++) {
477
477
  const i = t[s];
478
478
  let l = n.nextPart.get(i);
479
479
  l || (l = it(), n.nextPart.set(i, l)), n = l;
@@ -488,7 +488,7 @@ const rn = (e, r) => {
488
488
  }
489
489
  };
490
490
  let r = 0, n = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
491
- const o = (s, i) => {
491
+ const a = (s, i) => {
492
492
  n[s] = i, r++, r > e && (r = 0, t = n, n = /* @__PURE__ */ Object.create(null));
493
493
  };
494
494
  return {
@@ -497,32 +497,32 @@ const rn = (e, r) => {
497
497
  if (i !== void 0)
498
498
  return i;
499
499
  if ((i = t[s]) !== void 0)
500
- return o(s, i), i;
500
+ return a(s, i), i;
501
501
  },
502
502
  set(s, i) {
503
- s in n ? n[s] = i : o(s, i);
503
+ s in n ? n[s] = i : a(s, i);
504
504
  }
505
505
  };
506
- }, Rr = "!", zr = ":", gn = [], Br = (e, r, n, t, o) => ({
506
+ }, Tr = "!", zr = ":", gn = [], Kr = (e, r, n, t, a) => ({
507
507
  modifiers: e,
508
508
  hasImportantModifier: r,
509
509
  baseClassName: n,
510
510
  maybePostfixModifierPosition: t,
511
- isExternal: o
511
+ isExternal: a
512
512
  }), hn = (e) => {
513
513
  const {
514
514
  prefix: r,
515
515
  experimentalParseClassName: n
516
516
  } = e;
517
- let t = (o) => {
517
+ let t = (a) => {
518
518
  const s = [];
519
519
  let i = 0, l = 0, c = 0, d;
520
- const p = o.length;
520
+ const p = a.length;
521
521
  for (let g = 0; g < p; g++) {
522
- const ne = o[g];
522
+ const ne = a[g];
523
523
  if (i === 0 && l === 0) {
524
524
  if (ne === zr) {
525
- s.push(o.slice(c, g)), c = g + 1;
525
+ s.push(a.slice(c, g)), c = g + 1;
526
526
  continue;
527
527
  }
528
528
  if (ne === "/") {
@@ -532,27 +532,27 @@ const rn = (e, r) => {
532
532
  }
533
533
  ne === "[" ? i++ : ne === "]" ? i-- : ne === "(" ? l++ : ne === ")" && l--;
534
534
  }
535
- const E = s.length === 0 ? o : o.slice(c);
536
- let _ = E, G = !1;
537
- E.endsWith(Rr) ? (_ = E.slice(0, -1), G = !0) : (
535
+ const E = s.length === 0 ? a : a.slice(c);
536
+ let F = E, G = !1;
537
+ E.endsWith(Tr) ? (F = E.slice(0, -1), G = !0) : (
538
538
  /**
539
539
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
540
540
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
541
541
  */
542
- E.startsWith(Rr) && (_ = E.slice(1), G = !0)
542
+ E.startsWith(Tr) && (F = E.slice(1), G = !0)
543
543
  );
544
544
  const Y = d && d > c ? d - c : void 0;
545
- return Br(s, G, _, Y);
545
+ return Kr(s, G, F, Y);
546
546
  };
547
547
  if (r) {
548
- const o = r + zr, s = t;
549
- t = (i) => i.startsWith(o) ? s(i.slice(o.length)) : Br(gn, !1, i, void 0, !0);
548
+ const a = r + zr, s = t;
549
+ t = (i) => i.startsWith(a) ? s(i.slice(a.length)) : Kr(gn, !1, i, void 0, !0);
550
550
  }
551
551
  if (n) {
552
- const o = t;
552
+ const a = t;
553
553
  t = (s) => n({
554
554
  className: s,
555
- parseClassName: o
555
+ parseClassName: a
556
556
  });
557
557
  }
558
558
  return t;
@@ -562,30 +562,30 @@ const rn = (e, r) => {
562
562
  r.set(n, 1e6 + t);
563
563
  }), (n) => {
564
564
  const t = [];
565
- let o = [];
565
+ let a = [];
566
566
  for (let s = 0; s < n.length; s++) {
567
567
  const i = n[s], l = i[0] === "[", c = r.has(i);
568
- l || c ? (o.length > 0 && (o.sort(), t.push(...o), o = []), t.push(i)) : o.push(i);
568
+ l || c ? (a.length > 0 && (a.sort(), t.push(...a), a = []), t.push(i)) : a.push(i);
569
569
  }
570
- return o.length > 0 && (o.sort(), t.push(...o)), t;
570
+ return a.length > 0 && (a.sort(), t.push(...a)), t;
571
571
  };
572
572
  }, yn = (e) => ({
573
573
  cache: pn(e.cacheSize),
574
574
  parseClassName: hn(e),
575
575
  sortModifiers: bn(e),
576
- ...on(e)
576
+ ...an(e)
577
577
  }), wn = /\s+/, vn = (e, r) => {
578
578
  const {
579
579
  parseClassName: n,
580
580
  getClassGroupId: t,
581
- getConflictingClassGroupIds: o,
581
+ getConflictingClassGroupIds: a,
582
582
  sortModifiers: s
583
583
  } = r, i = [], l = e.trim().split(wn);
584
584
  let c = "";
585
585
  for (let d = l.length - 1; d >= 0; d -= 1) {
586
586
  const p = l[d], {
587
587
  isExternal: E,
588
- modifiers: _,
588
+ modifiers: F,
589
589
  hasImportantModifier: G,
590
590
  baseClassName: Y,
591
591
  maybePostfixModifierPosition: g
@@ -606,11 +606,11 @@ const rn = (e, r) => {
606
606
  }
607
607
  ne = !1;
608
608
  }
609
- const O = _.length === 0 ? "" : _.length === 1 ? _[0] : s(_).join(":"), U = G ? O + Rr : O, V = U + v;
609
+ const O = F.length === 0 ? "" : F.length === 1 ? F[0] : s(F).join(":"), U = G ? O + Tr : O, V = U + v;
610
610
  if (i.indexOf(V) > -1)
611
611
  continue;
612
612
  i.push(V);
613
- const X = o(v, ne);
613
+ const X = a(v, ne);
614
614
  for (let b = 0; b < X.length; ++b) {
615
615
  const C = X[b];
616
616
  i.push(U + C);
@@ -619,10 +619,10 @@ const rn = (e, r) => {
619
619
  }
620
620
  return c;
621
621
  }, En = (...e) => {
622
- let r = 0, n, t, o = "";
622
+ let r = 0, n, t, a = "";
623
623
  for (; r < e.length; )
624
- (n = e[r++]) && (t = ut(n)) && (o && (o += " "), o += t);
625
- return o;
624
+ (n = e[r++]) && (t = ut(n)) && (a && (a += " "), a += t);
625
+ return a;
626
626
  }, ut = (e) => {
627
627
  if (typeof e == "string")
628
628
  return e;
@@ -631,34 +631,34 @@ const rn = (e, r) => {
631
631
  e[t] && (r = ut(e[t])) && (n && (n += " "), n += r);
632
632
  return n;
633
633
  }, Cn = (e, ...r) => {
634
- let n, t, o, s;
634
+ let n, t, a, s;
635
635
  const i = (c) => {
636
636
  const d = r.reduce((p, E) => E(p), e());
637
- return n = yn(d), t = n.cache.get, o = n.cache.set, s = l, l(c);
637
+ return n = yn(d), t = n.cache.get, a = n.cache.set, s = l, l(c);
638
638
  }, l = (c) => {
639
639
  const d = t(c);
640
640
  if (d)
641
641
  return d;
642
642
  const p = vn(c, n);
643
- return o(c, p), p;
643
+ return a(c, p), p;
644
644
  };
645
645
  return s = i, (...c) => s(En(...c));
646
- }, xn = [], pe = (e) => {
647
- const r = (n) => n[e] || xn;
646
+ }, Sn = [], pe = (e) => {
647
+ const r = (n) => n[e] || Sn;
648
648
  return r.isThemeGetter = !0, r;
649
- }, dt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ft = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Sn = /^\d+\/\d+$/, kn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Rn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Tn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, On = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, An = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rr = (e) => Sn.test(e), L = (e) => !!e && !Number.isNaN(Number(e)), Me = (e) => !!e && Number.isInteger(Number(e)), xr = (e) => e.endsWith("%") && L(e.slice(0, -1)), Le = (e) => kn.test(e), Dn = () => !0, Fn = (e) => (
649
+ }, dt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ft = /^\((?:(\w[\w-]*):)?(.+)\)$/i, xn = /^\d+\/\d+$/, kn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Rn = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Tn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, On = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, An = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rr = (e) => xn.test(e), L = (e) => !!e && !Number.isNaN(Number(e)), Me = (e) => !!e && Number.isInteger(Number(e)), xr = (e) => e.endsWith("%") && L(e.slice(0, -1)), Le = (e) => kn.test(e), Dn = () => !0, _n = (e) => (
650
650
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
651
651
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
652
652
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
653
653
  Rn.test(e) && !Tn.test(e)
654
- ), mt = () => !1, _n = (e) => On.test(e), Nn = (e) => An.test(e), Pn = (e) => !R(e) && !T(e), $n = (e) => nr(e, ht, mt), R = (e) => dt.test(e), Je = (e) => nr(e, bt, Fn), Sr = (e) => nr(e, Un, L), Kr = (e) => nr(e, pt, mt), jn = (e) => nr(e, gt, Nn), mr = (e) => nr(e, yt, _n), T = (e) => ft.test(e), ir = (e) => or(e, bt), In = (e) => or(e, qn), Mr = (e) => or(e, pt), Vn = (e) => or(e, ht), Ln = (e) => or(e, gt), pr = (e) => or(e, yt, !0), nr = (e, r, n) => {
654
+ ), mt = () => !1, Fn = (e) => On.test(e), Nn = (e) => An.test(e), Pn = (e) => !R(e) && !T(e), $n = (e) => ar(e, ht, mt), R = (e) => dt.test(e), Je = (e) => ar(e, bt, _n), kr = (e) => ar(e, Un, L), Br = (e) => ar(e, pt, mt), In = (e) => ar(e, gt, Nn), pr = (e) => ar(e, yt, Fn), T = (e) => ft.test(e), cr = (e) => or(e, bt), jn = (e) => or(e, qn), Mr = (e) => or(e, pt), Vn = (e) => or(e, ht), Ln = (e) => or(e, gt), gr = (e) => or(e, yt, !0), ar = (e, r, n) => {
655
655
  const t = dt.exec(e);
656
656
  return t ? t[1] ? r(t[1]) : n(t[2]) : !1;
657
657
  }, or = (e, r, n = !1) => {
658
658
  const t = ft.exec(e);
659
659
  return t ? t[1] ? r(t[1]) : n : !1;
660
660
  }, pt = (e) => e === "position" || e === "percentage", gt = (e) => e === "image" || e === "url", ht = (e) => e === "length" || e === "size" || e === "bg-size", bt = (e) => e === "length", Un = (e) => e === "number", qn = (e) => e === "family-name", yt = (e) => e === "shadow", zn = () => {
661
- const e = pe("color"), r = pe("font"), n = pe("text"), t = pe("font-weight"), o = pe("tracking"), s = pe("leading"), i = pe("breakpoint"), l = pe("container"), c = pe("spacing"), d = pe("radius"), p = pe("shadow"), E = pe("inset-shadow"), _ = pe("text-shadow"), G = pe("drop-shadow"), Y = pe("blur"), g = pe("perspective"), ne = pe("aspect"), v = pe("ease"), O = pe("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [
661
+ const e = pe("color"), r = pe("font"), n = pe("text"), t = pe("font-weight"), a = pe("tracking"), s = pe("leading"), i = pe("breakpoint"), l = pe("container"), c = pe("spacing"), d = pe("radius"), p = pe("shadow"), E = pe("inset-shadow"), F = pe("text-shadow"), G = pe("drop-shadow"), Y = pe("blur"), g = pe("perspective"), ne = pe("aspect"), v = pe("ease"), O = pe("animate"), U = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [
662
662
  "center",
663
663
  "top",
664
664
  "bottom",
@@ -676,15 +676,15 @@ const rn = (e, r) => {
676
676
  "bottom-left",
677
677
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
678
678
  "left-bottom"
679
- ], X = () => [...V(), T, R], b = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", "contain", "none"], f = () => [T, R, c], D = () => [rr, "full", "auto", ...f()], N = () => [Me, "none", "subgrid", T, R], j = () => ["auto", {
679
+ ], X = () => [...V(), T, R], b = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", "contain", "none"], f = () => [T, R, c], D = () => [rr, "full", "auto", ...f()], N = () => [Me, "none", "subgrid", T, R], I = () => ["auto", {
680
680
  span: ["full", Me, T, R]
681
- }, Me, T, R], z = () => [Me, "auto", T, R], W = () => ["auto", "min", "max", "fr", T, R], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], se = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], q = () => ["auto", ...f()], ie = () => [rr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], A = () => [e, T, R], le = () => [...V(), Mr, Kr, {
681
+ }, Me, T, R], z = () => [Me, "auto", T, R], W = () => ["auto", "min", "max", "fr", T, R], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], se = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], q = () => ["auto", ...f()], ie = () => [rr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...f()], A = () => [e, T, R], le = () => [...V(), Mr, Br, {
682
682
  position: [T, R]
683
683
  }], we = () => ["no-repeat", {
684
684
  repeat: ["", "x", "y", "space", "round"]
685
685
  }], fe = () => ["auto", "cover", "contain", Vn, $n, {
686
686
  size: [T, R]
687
- }], ve = () => [xr, ir, Je], F = () => [
687
+ }], ve = () => [xr, cr, Je], _ = () => [
688
688
  // Deprecated since Tailwind CSS v4.0.0
689
689
  "",
690
690
  "none",
@@ -692,14 +692,14 @@ const rn = (e, r) => {
692
692
  d,
693
693
  T,
694
694
  R
695
- ], oe = () => ["", L, ir, Je], ee = () => ["solid", "dashed", "dotted", "double"], Ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => [L, xr, Mr, Kr], Se = () => [
695
+ ], ae = () => ["", L, cr, Je], ee = () => ["solid", "dashed", "dotted", "double"], Ee = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], H = () => [L, xr, Mr, Br], xe = () => [
696
696
  // Deprecated since Tailwind CSS v4.0.0
697
697
  "",
698
698
  "none",
699
699
  Y,
700
700
  T,
701
701
  R
702
- ], P = () => ["none", L, T, R], ce = () => ["none", L, T, R], Fe = () => [L, T, R], _e = () => [rr, "full", ...f()];
702
+ ], P = () => ["none", L, T, R], ce = () => ["none", L, T, R], _e = () => [L, T, R], Fe = () => [rr, "full", ...f()];
703
703
  return {
704
704
  cacheSize: 500,
705
705
  theme: {
@@ -1011,7 +1011,7 @@ const rn = (e, r) => {
1011
1011
  * @see https://tailwindcss.com/docs/grid-column
1012
1012
  */
1013
1013
  "col-start-end": [{
1014
- col: j()
1014
+ col: I()
1015
1015
  }],
1016
1016
  /**
1017
1017
  * Grid Column Start
@@ -1039,7 +1039,7 @@ const rn = (e, r) => {
1039
1039
  * @see https://tailwindcss.com/docs/grid-row
1040
1040
  */
1041
1041
  "row-start-end": [{
1042
- row: j()
1042
+ row: I()
1043
1043
  }],
1044
1044
  /**
1045
1045
  * Grid Row Start
@@ -1392,7 +1392,7 @@ const rn = (e, r) => {
1392
1392
  * @see https://tailwindcss.com/docs/font-size
1393
1393
  */
1394
1394
  "font-size": [{
1395
- text: ["base", n, ir, Je]
1395
+ text: ["base", n, cr, Je]
1396
1396
  }],
1397
1397
  /**
1398
1398
  * Font Smoothing
@@ -1409,7 +1409,7 @@ const rn = (e, r) => {
1409
1409
  * @see https://tailwindcss.com/docs/font-weight
1410
1410
  */
1411
1411
  "font-weight": [{
1412
- font: [t, T, Sr]
1412
+ font: [t, T, kr]
1413
1413
  }],
1414
1414
  /**
1415
1415
  * Font Stretch
@@ -1423,7 +1423,7 @@ const rn = (e, r) => {
1423
1423
  * @see https://tailwindcss.com/docs/font-family
1424
1424
  */
1425
1425
  "font-family": [{
1426
- font: [In, R, r]
1426
+ font: [jn, R, r]
1427
1427
  }],
1428
1428
  /**
1429
1429
  * Font Variant Numeric
@@ -1460,14 +1460,14 @@ const rn = (e, r) => {
1460
1460
  * @see https://tailwindcss.com/docs/letter-spacing
1461
1461
  */
1462
1462
  tracking: [{
1463
- tracking: [o, T, R]
1463
+ tracking: [a, T, R]
1464
1464
  }],
1465
1465
  /**
1466
1466
  * Line Clamp
1467
1467
  * @see https://tailwindcss.com/docs/line-clamp
1468
1468
  */
1469
1469
  "line-clamp": [{
1470
- "line-clamp": [L, "none", T, Sr]
1470
+ "line-clamp": [L, "none", T, kr]
1471
1471
  }],
1472
1472
  /**
1473
1473
  * Line Height
@@ -1678,7 +1678,7 @@ const rn = (e, r) => {
1678
1678
  }, Me, T, R],
1679
1679
  radial: ["", T, R],
1680
1680
  conic: [Me, T, R]
1681
- }, Ln, jn]
1681
+ }, Ln, In]
1682
1682
  }],
1683
1683
  /**
1684
1684
  * Background Color
@@ -1737,175 +1737,175 @@ const rn = (e, r) => {
1737
1737
  * @see https://tailwindcss.com/docs/border-radius
1738
1738
  */
1739
1739
  rounded: [{
1740
- rounded: F()
1740
+ rounded: _()
1741
1741
  }],
1742
1742
  /**
1743
1743
  * Border Radius Start
1744
1744
  * @see https://tailwindcss.com/docs/border-radius
1745
1745
  */
1746
1746
  "rounded-s": [{
1747
- "rounded-s": F()
1747
+ "rounded-s": _()
1748
1748
  }],
1749
1749
  /**
1750
1750
  * Border Radius End
1751
1751
  * @see https://tailwindcss.com/docs/border-radius
1752
1752
  */
1753
1753
  "rounded-e": [{
1754
- "rounded-e": F()
1754
+ "rounded-e": _()
1755
1755
  }],
1756
1756
  /**
1757
1757
  * Border Radius Top
1758
1758
  * @see https://tailwindcss.com/docs/border-radius
1759
1759
  */
1760
1760
  "rounded-t": [{
1761
- "rounded-t": F()
1761
+ "rounded-t": _()
1762
1762
  }],
1763
1763
  /**
1764
1764
  * Border Radius Right
1765
1765
  * @see https://tailwindcss.com/docs/border-radius
1766
1766
  */
1767
1767
  "rounded-r": [{
1768
- "rounded-r": F()
1768
+ "rounded-r": _()
1769
1769
  }],
1770
1770
  /**
1771
1771
  * Border Radius Bottom
1772
1772
  * @see https://tailwindcss.com/docs/border-radius
1773
1773
  */
1774
1774
  "rounded-b": [{
1775
- "rounded-b": F()
1775
+ "rounded-b": _()
1776
1776
  }],
1777
1777
  /**
1778
1778
  * Border Radius Left
1779
1779
  * @see https://tailwindcss.com/docs/border-radius
1780
1780
  */
1781
1781
  "rounded-l": [{
1782
- "rounded-l": F()
1782
+ "rounded-l": _()
1783
1783
  }],
1784
1784
  /**
1785
1785
  * Border Radius Start Start
1786
1786
  * @see https://tailwindcss.com/docs/border-radius
1787
1787
  */
1788
1788
  "rounded-ss": [{
1789
- "rounded-ss": F()
1789
+ "rounded-ss": _()
1790
1790
  }],
1791
1791
  /**
1792
1792
  * Border Radius Start End
1793
1793
  * @see https://tailwindcss.com/docs/border-radius
1794
1794
  */
1795
1795
  "rounded-se": [{
1796
- "rounded-se": F()
1796
+ "rounded-se": _()
1797
1797
  }],
1798
1798
  /**
1799
1799
  * Border Radius End End
1800
1800
  * @see https://tailwindcss.com/docs/border-radius
1801
1801
  */
1802
1802
  "rounded-ee": [{
1803
- "rounded-ee": F()
1803
+ "rounded-ee": _()
1804
1804
  }],
1805
1805
  /**
1806
1806
  * Border Radius End Start
1807
1807
  * @see https://tailwindcss.com/docs/border-radius
1808
1808
  */
1809
1809
  "rounded-es": [{
1810
- "rounded-es": F()
1810
+ "rounded-es": _()
1811
1811
  }],
1812
1812
  /**
1813
1813
  * Border Radius Top Left
1814
1814
  * @see https://tailwindcss.com/docs/border-radius
1815
1815
  */
1816
1816
  "rounded-tl": [{
1817
- "rounded-tl": F()
1817
+ "rounded-tl": _()
1818
1818
  }],
1819
1819
  /**
1820
1820
  * Border Radius Top Right
1821
1821
  * @see https://tailwindcss.com/docs/border-radius
1822
1822
  */
1823
1823
  "rounded-tr": [{
1824
- "rounded-tr": F()
1824
+ "rounded-tr": _()
1825
1825
  }],
1826
1826
  /**
1827
1827
  * Border Radius Bottom Right
1828
1828
  * @see https://tailwindcss.com/docs/border-radius
1829
1829
  */
1830
1830
  "rounded-br": [{
1831
- "rounded-br": F()
1831
+ "rounded-br": _()
1832
1832
  }],
1833
1833
  /**
1834
1834
  * Border Radius Bottom Left
1835
1835
  * @see https://tailwindcss.com/docs/border-radius
1836
1836
  */
1837
1837
  "rounded-bl": [{
1838
- "rounded-bl": F()
1838
+ "rounded-bl": _()
1839
1839
  }],
1840
1840
  /**
1841
1841
  * Border Width
1842
1842
  * @see https://tailwindcss.com/docs/border-width
1843
1843
  */
1844
1844
  "border-w": [{
1845
- border: oe()
1845
+ border: ae()
1846
1846
  }],
1847
1847
  /**
1848
1848
  * Border Width X
1849
1849
  * @see https://tailwindcss.com/docs/border-width
1850
1850
  */
1851
1851
  "border-w-x": [{
1852
- "border-x": oe()
1852
+ "border-x": ae()
1853
1853
  }],
1854
1854
  /**
1855
1855
  * Border Width Y
1856
1856
  * @see https://tailwindcss.com/docs/border-width
1857
1857
  */
1858
1858
  "border-w-y": [{
1859
- "border-y": oe()
1859
+ "border-y": ae()
1860
1860
  }],
1861
1861
  /**
1862
1862
  * Border Width Start
1863
1863
  * @see https://tailwindcss.com/docs/border-width
1864
1864
  */
1865
1865
  "border-w-s": [{
1866
- "border-s": oe()
1866
+ "border-s": ae()
1867
1867
  }],
1868
1868
  /**
1869
1869
  * Border Width End
1870
1870
  * @see https://tailwindcss.com/docs/border-width
1871
1871
  */
1872
1872
  "border-w-e": [{
1873
- "border-e": oe()
1873
+ "border-e": ae()
1874
1874
  }],
1875
1875
  /**
1876
1876
  * Border Width Top
1877
1877
  * @see https://tailwindcss.com/docs/border-width
1878
1878
  */
1879
1879
  "border-w-t": [{
1880
- "border-t": oe()
1880
+ "border-t": ae()
1881
1881
  }],
1882
1882
  /**
1883
1883
  * Border Width Right
1884
1884
  * @see https://tailwindcss.com/docs/border-width
1885
1885
  */
1886
1886
  "border-w-r": [{
1887
- "border-r": oe()
1887
+ "border-r": ae()
1888
1888
  }],
1889
1889
  /**
1890
1890
  * Border Width Bottom
1891
1891
  * @see https://tailwindcss.com/docs/border-width
1892
1892
  */
1893
1893
  "border-w-b": [{
1894
- "border-b": oe()
1894
+ "border-b": ae()
1895
1895
  }],
1896
1896
  /**
1897
1897
  * Border Width Left
1898
1898
  * @see https://tailwindcss.com/docs/border-width
1899
1899
  */
1900
1900
  "border-w-l": [{
1901
- "border-l": oe()
1901
+ "border-l": ae()
1902
1902
  }],
1903
1903
  /**
1904
1904
  * Divide Width X
1905
1905
  * @see https://tailwindcss.com/docs/border-width#between-children
1906
1906
  */
1907
1907
  "divide-x": [{
1908
- "divide-x": oe()
1908
+ "divide-x": ae()
1909
1909
  }],
1910
1910
  /**
1911
1911
  * Divide Width X Reverse
@@ -1917,7 +1917,7 @@ const rn = (e, r) => {
1917
1917
  * @see https://tailwindcss.com/docs/border-width#between-children
1918
1918
  */
1919
1919
  "divide-y": [{
1920
- "divide-y": oe()
1920
+ "divide-y": ae()
1921
1921
  }],
1922
1922
  /**
1923
1923
  * Divide Width Y Reverse
@@ -2027,7 +2027,7 @@ const rn = (e, r) => {
2027
2027
  * @see https://tailwindcss.com/docs/outline-width
2028
2028
  */
2029
2029
  "outline-w": [{
2030
- outline: ["", L, ir, Je]
2030
+ outline: ["", L, cr, Je]
2031
2031
  }],
2032
2032
  /**
2033
2033
  * Outline Color
@@ -2049,8 +2049,8 @@ const rn = (e, r) => {
2049
2049
  "",
2050
2050
  "none",
2051
2051
  p,
2052
- pr,
2053
- mr
2052
+ gr,
2053
+ pr
2054
2054
  ]
2055
2055
  }],
2056
2056
  /**
@@ -2065,7 +2065,7 @@ const rn = (e, r) => {
2065
2065
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
2066
2066
  */
2067
2067
  "inset-shadow": [{
2068
- "inset-shadow": ["none", E, pr, mr]
2068
+ "inset-shadow": ["none", E, gr, pr]
2069
2069
  }],
2070
2070
  /**
2071
2071
  * Inset Box Shadow Color
@@ -2079,7 +2079,7 @@ const rn = (e, r) => {
2079
2079
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2080
2080
  */
2081
2081
  "ring-w": [{
2082
- ring: oe()
2082
+ ring: ae()
2083
2083
  }],
2084
2084
  /**
2085
2085
  * Ring Width Inset
@@ -2118,7 +2118,7 @@ const rn = (e, r) => {
2118
2118
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2119
2119
  */
2120
2120
  "inset-ring-w": [{
2121
- "inset-ring": oe()
2121
+ "inset-ring": ae()
2122
2122
  }],
2123
2123
  /**
2124
2124
  * Inset Ring Color
@@ -2132,7 +2132,7 @@ const rn = (e, r) => {
2132
2132
  * @see https://tailwindcss.com/docs/text-shadow
2133
2133
  */
2134
2134
  "text-shadow": [{
2135
- "text-shadow": ["none", _, pr, mr]
2135
+ "text-shadow": ["none", F, gr, pr]
2136
2136
  }],
2137
2137
  /**
2138
2138
  * Text Shadow Color
@@ -2379,7 +2379,7 @@ const rn = (e, r) => {
2379
2379
  * @see https://tailwindcss.com/docs/blur
2380
2380
  */
2381
2381
  blur: [{
2382
- blur: Se()
2382
+ blur: xe()
2383
2383
  }],
2384
2384
  /**
2385
2385
  * Brightness
@@ -2405,8 +2405,8 @@ const rn = (e, r) => {
2405
2405
  "",
2406
2406
  "none",
2407
2407
  G,
2408
- pr,
2409
- mr
2408
+ gr,
2409
+ pr
2410
2410
  ]
2411
2411
  }],
2412
2412
  /**
@@ -2469,7 +2469,7 @@ const rn = (e, r) => {
2469
2469
  * @see https://tailwindcss.com/docs/backdrop-blur
2470
2470
  */
2471
2471
  "backdrop-blur": [{
2472
- "backdrop-blur": Se()
2472
+ "backdrop-blur": xe()
2473
2473
  }],
2474
2474
  /**
2475
2475
  * Backdrop Brightness
@@ -2707,21 +2707,21 @@ const rn = (e, r) => {
2707
2707
  * @see https://tailwindcss.com/docs/skew
2708
2708
  */
2709
2709
  skew: [{
2710
- skew: Fe()
2710
+ skew: _e()
2711
2711
  }],
2712
2712
  /**
2713
2713
  * Skew X
2714
2714
  * @see https://tailwindcss.com/docs/skew
2715
2715
  */
2716
2716
  "skew-x": [{
2717
- "skew-x": Fe()
2717
+ "skew-x": _e()
2718
2718
  }],
2719
2719
  /**
2720
2720
  * Skew Y
2721
2721
  * @see https://tailwindcss.com/docs/skew
2722
2722
  */
2723
2723
  "skew-y": [{
2724
- "skew-y": Fe()
2724
+ "skew-y": _e()
2725
2725
  }],
2726
2726
  /**
2727
2727
  * Transform
@@ -2749,28 +2749,28 @@ const rn = (e, r) => {
2749
2749
  * @see https://tailwindcss.com/docs/translate
2750
2750
  */
2751
2751
  translate: [{
2752
- translate: _e()
2752
+ translate: Fe()
2753
2753
  }],
2754
2754
  /**
2755
2755
  * Translate X
2756
2756
  * @see https://tailwindcss.com/docs/translate
2757
2757
  */
2758
2758
  "translate-x": [{
2759
- "translate-x": _e()
2759
+ "translate-x": Fe()
2760
2760
  }],
2761
2761
  /**
2762
2762
  * Translate Y
2763
2763
  * @see https://tailwindcss.com/docs/translate
2764
2764
  */
2765
2765
  "translate-y": [{
2766
- "translate-y": _e()
2766
+ "translate-y": Fe()
2767
2767
  }],
2768
2768
  /**
2769
2769
  * Translate Z
2770
2770
  * @see https://tailwindcss.com/docs/translate
2771
2771
  */
2772
2772
  "translate-z": [{
2773
- "translate-z": _e()
2773
+ "translate-z": Fe()
2774
2774
  }],
2775
2775
  /**
2776
2776
  * Translate None
@@ -3052,7 +3052,7 @@ const rn = (e, r) => {
3052
3052
  * @see https://tailwindcss.com/docs/stroke-width
3053
3053
  */
3054
3054
  "stroke-w": [{
3055
- stroke: [L, ir, Je, Sr]
3055
+ stroke: [L, cr, Je, kr]
3056
3056
  }],
3057
3057
  /**
3058
3058
  * Stroke
@@ -3127,21 +3127,21 @@ const rn = (e, r) => {
3127
3127
  },
3128
3128
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
3129
3129
  };
3130
- }, Bn = /* @__PURE__ */ Cn(zn);
3130
+ }, Kn = /* @__PURE__ */ Cn(zn);
3131
3131
  function qe(...e) {
3132
- return Bn(en(e));
3132
+ return Kn(en(e));
3133
3133
  }
3134
- const je = (e) => "Condition" in e, Kn = (e) => "LHSField" in e, oa = je, aa = Kn;
3134
+ const Ie = (e) => "Condition" in e, Bn = (e) => "LHSField" in e, to = Ie, no = Bn;
3135
3135
  let Mn = 0;
3136
- const ur = () => `filter_${Date.now()}_${++Mn}`, Gn = (e) => e.id ? e : { ...e, id: ur() }, wt = (e) => e.map((r) => {
3136
+ const dr = () => `filter_${Date.now()}_${++Mn}`, Gn = (e) => e.id ? e : { ...e, id: dr() }, wt = (e) => e.map((r) => {
3137
3137
  const n = Gn(r);
3138
- return je(n) ? {
3138
+ return Ie(n) ? {
3139
3139
  ...n,
3140
3140
  Condition: wt(n.Condition)
3141
3141
  } : n;
3142
3142
  }), vt = (e) => e.map((r) => {
3143
- if (je(r)) {
3144
- const { id: o, ...s } = r;
3143
+ if (Ie(r)) {
3144
+ const { id: a, ...s } = r;
3145
3145
  return {
3146
3146
  ...s,
3147
3147
  Condition: vt(r.Condition)
@@ -3153,28 +3153,28 @@ const ur = () => `filter_${Date.now()}_${++Mn}`, Gn = (e) => e.id ? e : { ...e,
3153
3153
  for (const n of e) {
3154
3154
  if (n.id === r)
3155
3155
  return n;
3156
- if (je(n)) {
3156
+ if (Ie(n)) {
3157
3157
  const t = Et(n.Condition, r);
3158
3158
  if (t) return t;
3159
3159
  }
3160
3160
  }
3161
- }, Tr = (e, r, n) => e.map((t) => t.id === r ? n(t) : je(t) ? {
3161
+ }, Or = (e, r, n) => e.map((t) => t.id === r ? n(t) : Ie(t) ? {
3162
3162
  ...t,
3163
- Condition: Tr(t.Condition, r, n)
3164
- } : t), Ct = (e, r) => e.filter((n) => n.id !== r).map((n) => je(n) ? {
3163
+ Condition: Or(t.Condition, r, n)
3164
+ } : t), Ct = (e, r) => e.filter((n) => n.id !== r).map((n) => Ie(n) ? {
3165
3165
  ...n,
3166
3166
  Condition: Ct(n.Condition, r)
3167
- } : n), Or = (e, r, n) => e.map((t) => t.id === r && je(t) ? {
3167
+ } : n), Ar = (e, r, n) => e.map((t) => t.id === r && Ie(t) ? {
3168
3168
  ...t,
3169
3169
  Condition: [...t.Condition, n]
3170
- } : je(t) ? {
3170
+ } : Ie(t) ? {
3171
3171
  ...t,
3172
- Condition: Or(t.Condition, r, n)
3172
+ Condition: Ar(t.Condition, r, n)
3173
3173
  } : t);
3174
- function xt(e = {}) {
3175
- const [r, n] = xe(
3174
+ function St(e = {}) {
3175
+ const [r, n] = Se(
3176
3176
  () => wt(e.initialConditions || [])
3177
- ), [t, o] = xe(
3177
+ ), [t, a] = Se(
3178
3178
  e.initialOperator || "And"
3179
3179
  ), s = ye(() => {
3180
3180
  if (r.length !== 0)
@@ -3182,55 +3182,55 @@ function xt(e = {}) {
3182
3182
  Operator: t,
3183
3183
  Condition: vt(r)
3184
3184
  };
3185
- }, [r, t]), i = r.length > 0, l = S((v) => {
3186
- const O = ur(), U = { ...v, id: O };
3185
+ }, [r, t]), i = r.length > 0, l = x((v) => {
3186
+ const O = dr(), U = { ...v, id: O };
3187
3187
  return n((V) => [...V, U]), O;
3188
- }, []), c = S((v) => {
3189
- const O = ur(), U = {
3188
+ }, []), c = x((v) => {
3189
+ const O = dr(), U = {
3190
3190
  id: O,
3191
3191
  Operator: v,
3192
3192
  Condition: []
3193
3193
  };
3194
3194
  return n((V) => [...V, U]), O;
3195
- }, []), d = S(
3195
+ }, []), d = x(
3196
3196
  (v, O) => {
3197
- const U = ur(), V = { ...O, id: U };
3198
- return n((X) => Or(X, v, V)), U;
3197
+ const U = dr(), V = { ...O, id: U };
3198
+ return n((X) => Ar(X, v, V)), U;
3199
3199
  },
3200
3200
  []
3201
- ), p = S(
3201
+ ), p = x(
3202
3202
  (v, O) => {
3203
- const U = ur(), V = {
3203
+ const U = dr(), V = {
3204
3204
  id: U,
3205
3205
  Operator: O,
3206
3206
  Condition: []
3207
3207
  };
3208
- return n((X) => Or(X, v, V)), U;
3208
+ return n((X) => Ar(X, v, V)), U;
3209
3209
  },
3210
3210
  []
3211
- ), E = S(
3211
+ ), E = x(
3212
3212
  (v, O) => {
3213
3213
  n(
3214
- (U) => Tr(U, v, (V) => je(V) ? V : { ...V, ...O })
3214
+ (U) => Or(U, v, (V) => Ie(V) ? V : { ...V, ...O })
3215
3215
  );
3216
3216
  },
3217
3217
  []
3218
- ), _ = S(
3218
+ ), F = x(
3219
3219
  (v, O) => {
3220
3220
  n(
3221
- (U) => Tr(U, v, (V) => je(V) ? { ...V, Operator: O } : V)
3221
+ (U) => Or(U, v, (V) => Ie(V) ? { ...V, Operator: O } : V)
3222
3222
  );
3223
3223
  },
3224
3224
  []
3225
- ), G = S((v) => {
3225
+ ), G = x((v) => {
3226
3226
  n((O) => Ct(O, v));
3227
- }, []), Y = S(
3227
+ }, []), Y = x(
3228
3228
  (v) => Et(r, v),
3229
3229
  [r]
3230
- ), g = S(() => {
3230
+ ), g = x(() => {
3231
3231
  n([]);
3232
- }, []), ne = S((v) => {
3233
- o(v);
3232
+ }, []), ne = x((v) => {
3233
+ a(v);
3234
3234
  }, []);
3235
3235
  return {
3236
3236
  // State
@@ -3245,7 +3245,7 @@ function xt(e = {}) {
3245
3245
  addGroupTo: p,
3246
3246
  // Update operations
3247
3247
  update: E,
3248
- updateOperator: _,
3248
+ updateOperator: F,
3249
3249
  // Remove & access
3250
3250
  remove: G,
3251
3251
  get: Y,
@@ -3256,19 +3256,19 @@ function xt(e = {}) {
3256
3256
  conditions: r
3257
3257
  };
3258
3258
  }
3259
- function sa(e) {
3260
- var le, we, fe, ve, F, oe, ee, Ee, H, Se;
3261
- const [r, n] = xe({
3259
+ function ao(e) {
3260
+ var le, we, fe, ve, _, ae, ee, Ee, H, xe;
3261
+ const [r, n] = Se({
3262
3262
  query: ""
3263
- }), [t, o] = xe({
3263
+ }), [t, a] = Se({
3264
3264
  field: ((we = (le = e.initialState) == null ? void 0 : le.sorting) == null ? void 0 : we.field) || null,
3265
3265
  direction: ((ve = (fe = e.initialState) == null ? void 0 : fe.sorting) == null ? void 0 : ve.direction) || null
3266
- }), [s, i] = xe({
3267
- pageNo: ((oe = (F = e.initialState) == null ? void 0 : F.pagination) == null ? void 0 : oe.pageNo) || 1,
3266
+ }), [s, i] = Se({
3267
+ pageNo: ((ae = (_ = e.initialState) == null ? void 0 : _.pagination) == null ? void 0 : ae.pageNo) || 1,
3268
3268
  pageSize: ((Ee = (ee = e.initialState) == null ? void 0 : ee.pagination) == null ? void 0 : Ee.pageSize) || 10
3269
- }), l = xt({
3269
+ }), l = St({
3270
3270
  initialConditions: (H = e.initialState) == null ? void 0 : H.filters,
3271
- initialOperator: ((Se = e.initialState) == null ? void 0 : Se.filterOperator) || "And"
3271
+ initialOperator: ((xe = e.initialState) == null ? void 0 : xe.filterOperator) || "And"
3272
3272
  }), c = ye(() => {
3273
3273
  const P = {};
3274
3274
  return r.query && (P.Search = r.query), l.payload && (P.Filter = l.payload), P;
@@ -3282,10 +3282,10 @@ function sa(e) {
3282
3282
  }, [c, t, s, e.enablePagination]), {
3283
3283
  data: p,
3284
3284
  isLoading: E,
3285
- isFetching: _,
3285
+ isFetching: F,
3286
3286
  error: G,
3287
3287
  refetch: Y
3288
- } = tr({
3288
+ } = nr({
3289
3289
  queryKey: ["table", e.source, d],
3290
3290
  queryFn: async () => {
3291
3291
  try {
@@ -3303,7 +3303,7 @@ function sa(e) {
3303
3303
  isFetching: v,
3304
3304
  error: O,
3305
3305
  refetch: U
3306
- } = tr({
3306
+ } = nr({
3307
3307
  queryKey: ["table-count", e.source, c],
3308
3308
  queryFn: async () => {
3309
3309
  try {
@@ -3314,8 +3314,8 @@ function sa(e) {
3314
3314
  },
3315
3315
  staleTime: 0,
3316
3316
  gcTime: 0
3317
- }), V = ye(() => (p == null ? void 0 : p.Data) || [], [p]), X = ye(() => (g == null ? void 0 : g.Count) || 0, [g]), b = ye(() => Math.ceil(X / s.pageSize), [X, s.pageSize]), C = S((P) => {
3318
- o((ce) => {
3317
+ }), V = ye(() => (p == null ? void 0 : p.Data) || [], [p]), X = ye(() => (g == null ? void 0 : g.Count) || 0, [g]), b = ye(() => Math.ceil(X / s.pageSize), [X, s.pageSize]), C = x((P) => {
3318
+ a((ce) => {
3319
3319
  if (ce.field === P) {
3320
3320
  if (ce.direction === "asc")
3321
3321
  return { field: P, direction: "desc" };
@@ -3324,34 +3324,34 @@ function sa(e) {
3324
3324
  }
3325
3325
  return { field: P, direction: "asc" };
3326
3326
  });
3327
- }, []), f = S(() => {
3328
- o({ field: null, direction: null });
3329
- }, []), D = S(
3327
+ }, []), f = x(() => {
3328
+ a({ field: null, direction: null });
3329
+ }, []), D = x(
3330
3330
  (P, ce) => {
3331
- o({ field: P, direction: ce });
3331
+ a({ field: P, direction: ce });
3332
3332
  },
3333
3333
  []
3334
- ), N = S((P) => {
3334
+ ), N = x((P) => {
3335
3335
  n({ query: P }), i((ce) => ({ ...ce, pageNo: 1 }));
3336
- }, []), j = S(() => {
3336
+ }, []), I = x(() => {
3337
3337
  n({ query: "" });
3338
- }, []), z = s.pageNo < b, W = s.pageNo > 1, Z = S(() => {
3338
+ }, []), z = s.pageNo < b, W = s.pageNo > 1, Z = x(() => {
3339
3339
  z && i((P) => ({ ...P, pageNo: P.pageNo + 1 }));
3340
- }, [z]), se = S(() => {
3340
+ }, [z]), se = x(() => {
3341
3341
  W && i((P) => ({ ...P, pageNo: P.pageNo - 1 }));
3342
- }, [W]), q = S(
3342
+ }, [W]), q = x(
3343
3343
  (P) => {
3344
3344
  const ce = Math.max(1, Math.min(P, b));
3345
- i((Fe) => ({ ...Fe, pageNo: ce }));
3345
+ i((_e) => ({ ..._e, pageNo: ce }));
3346
3346
  },
3347
3347
  [b]
3348
- ), ie = S((P) => {
3348
+ ), ie = x((P) => {
3349
3349
  i((ce) => ({
3350
3350
  ...ce,
3351
3351
  pageSize: P,
3352
3352
  pageNo: 1
3353
3353
  }));
3354
- }, []), A = S(async () => {
3354
+ }, []), A = x(async () => {
3355
3355
  const [P] = await Promise.all([Y(), U()]);
3356
3356
  return P.data || { Data: [] };
3357
3357
  }, [Y, U]);
@@ -3361,14 +3361,14 @@ function sa(e) {
3361
3361
  totalItems: X,
3362
3362
  // Loading States
3363
3363
  isLoading: E || ne,
3364
- isFetching: _ || v,
3364
+ isFetching: F || v,
3365
3365
  // Error Handling
3366
3366
  error: G || O,
3367
3367
  // Search (Flat Access)
3368
3368
  search: {
3369
3369
  query: r.query,
3370
3370
  setQuery: N,
3371
- clear: j
3371
+ clear: I
3372
3372
  },
3373
3373
  // Sorting (Flat Access)
3374
3374
  sort: {
@@ -3431,8 +3431,8 @@ const Wn = {
3431
3431
  // 1-based
3432
3432
  DAY: (e) => new Date(e).getDate(),
3433
3433
  DATE_DIFF: (e, r) => {
3434
- const n = new Date(e), t = new Date(r), o = Math.abs(n.getTime() - t.getTime());
3435
- return Math.ceil(o / (1e3 * 60 * 60 * 24));
3434
+ const n = new Date(e), t = new Date(r), a = Math.abs(n.getTime() - t.getTime());
3435
+ return Math.ceil(a / (1e3 * 60 * 60 * 24));
3436
3436
  },
3437
3437
  ADD_DAYS: (e, r) => {
3438
3438
  const n = new Date(e);
@@ -3484,20 +3484,20 @@ function Ge(e, r) {
3484
3484
  case "SystemIdentifier":
3485
3485
  if (e.Property) {
3486
3486
  const d = r.systemValues[e.Name];
3487
- return kr(d, e.Property.Name);
3487
+ return Rr(d, e.Property.Name);
3488
3488
  }
3489
3489
  return r.systemValues[e.Name];
3490
3490
  case "Identifier":
3491
3491
  if (e.Property) {
3492
3492
  const d = Gr(e, r);
3493
- return kr(d, e.Property.Name);
3493
+ return Rr(d, e.Property.Name);
3494
3494
  }
3495
3495
  return Gr(e, r);
3496
3496
  case "MemberExpression":
3497
3497
  if (!e.Arguments || e.Arguments.length === 0)
3498
3498
  throw new Error("MemberExpression requires Arguments array");
3499
- const t = Ge(e.Arguments[0], r), o = (n = e.Arguments[0].Property) == null ? void 0 : n.Name;
3500
- return o ? kr(t, o) : t;
3499
+ const t = Ge(e.Arguments[0], r), a = (n = e.Arguments[0].Property) == null ? void 0 : n.Name;
3500
+ return a ? Rr(t, a) : t;
3501
3501
  case "BinaryExpression":
3502
3502
  if (!e.Arguments || e.Arguments.length !== 2)
3503
3503
  throw new Error("BinaryExpression requires exactly 2 arguments");
@@ -3535,12 +3535,12 @@ function Gr(e, r) {
3535
3535
  return r.formValues[n];
3536
3536
  }
3537
3537
  }
3538
- function kr(e, r) {
3538
+ function Rr(e, r) {
3539
3539
  if (!(!e || typeof e != "object"))
3540
3540
  return e[r];
3541
3541
  }
3542
3542
  function Qn(e, r, n) {
3543
- const t = (o) => o == null ? 0 : typeof o == "number" ? o : typeof o == "object" && o !== null && "value" in o ? Number(o.value) || 0 : Number(o) || 0;
3543
+ const t = (a) => a == null ? 0 : typeof a == "number" ? a : typeof a == "object" && a !== null && "value" in a ? Number(a.value) || 0 : Number(a) || 0;
3544
3544
  switch (e) {
3545
3545
  case "==":
3546
3546
  return r == n;
@@ -3561,8 +3561,8 @@ function Qn(e, r, n) {
3561
3561
  case "*":
3562
3562
  return t(r) * t(n);
3563
3563
  case "/":
3564
- const o = t(n);
3565
- return o !== 0 ? t(r) / o : 0;
3564
+ const a = t(n);
3565
+ return a !== 0 ? t(r) / a : 0;
3566
3566
  default:
3567
3567
  throw new Error(`Unknown binary operator: ${e}`);
3568
3568
  }
@@ -3577,7 +3577,7 @@ function Jn(e, r, n) {
3577
3577
  throw new Error(`Unknown logical operator: ${e}`);
3578
3578
  }
3579
3579
  }
3580
- function St(e, r, n = {}) {
3580
+ function xt(e, r, n = {}) {
3581
3581
  const t = {
3582
3582
  formValues: r,
3583
3583
  systemValues: Yn(),
@@ -3585,39 +3585,39 @@ function St(e, r, n = {}) {
3585
3585
  };
3586
3586
  try {
3587
3587
  return Ge(e, t);
3588
- } catch (o) {
3589
- return console.warn("Expression evaluation failed:", o), !1;
3588
+ } catch (a) {
3589
+ return console.warn("Expression evaluation failed:", a), !1;
3590
3590
  }
3591
3591
  }
3592
3592
  function Hn(e, r, n = {}) {
3593
3593
  const t = [];
3594
- for (const o of e)
3594
+ for (const a of e)
3595
3595
  try {
3596
- St(
3597
- o.Condition.ExpressionTree,
3596
+ xt(
3597
+ a.Condition.ExpressionTree,
3598
3598
  r,
3599
3599
  n
3600
3600
  ) || t.push({
3601
3601
  isValid: !1,
3602
- message: o.Message,
3603
- fieldName: o.Id
3602
+ message: a.Message,
3603
+ fieldName: a.Id
3604
3604
  });
3605
3605
  } catch (s) {
3606
- console.warn(`Cross-field validation rule ${o.Id} failed:`, s);
3606
+ console.warn(`Cross-field validation rule ${a.Id} failed:`, s);
3607
3607
  }
3608
3608
  return t;
3609
3609
  }
3610
3610
  function Xn(e, r = {}, n = {}) {
3611
3611
  try {
3612
- return St(e, r, n);
3612
+ return xt(e, r, n);
3613
3613
  } catch (t) {
3614
3614
  return console.warn("Default value calculation failed:", t), null;
3615
3615
  }
3616
3616
  }
3617
3617
  function Yr(e, r) {
3618
3618
  var l, c, d;
3619
- const n = ((l = e.Expression) == null ? void 0 : l.toLowerCase()) || "", t = ((c = e.Name) == null ? void 0 : c.toLowerCase()) || "", o = ((d = e.Id) == null ? void 0 : d.toLowerCase()) || "", s = r.toLowerCase();
3620
- return t.includes("required") || o.includes("required") ? !0 : [
3619
+ const n = ((l = e.Expression) == null ? void 0 : l.toLowerCase()) || "", t = ((c = e.Name) == null ? void 0 : c.toLowerCase()) || "", a = ((d = e.Id) == null ? void 0 : d.toLowerCase()) || "", s = r.toLowerCase();
3620
+ return t.includes("required") || a.includes("required") ? !0 : [
3621
3621
  `${s} != null`,
3622
3622
  `${s} != ''`,
3623
3623
  `trim(${s}) != ''`,
@@ -3633,140 +3633,113 @@ function Zn(e) {
3633
3633
  BusinessLogic: {}
3634
3634
  }), r.Rules.Validation || (r.Rules.Validation = {}), r.Rules.Computation || (r.Rules.Computation = {}), r.Rules.BusinessLogic || (r.Rules.BusinessLogic = {});
3635
3635
  const n = { ...r.Fields };
3636
- return Object.entries(n).forEach(([t, o]) => {
3637
- let s = o.Required || !1;
3638
- if (o.Validation && Array.isArray(o.Validation))
3639
- if (o.Validation.length > 0 && typeof o.Validation[0] == "object") {
3636
+ return Object.entries(n).forEach(([t, a]) => {
3637
+ let s = a.Required || !1;
3638
+ if (a.Validation && Array.isArray(a.Validation))
3639
+ if (a.Validation.length > 0 && typeof a.Validation[0] == "object") {
3640
3640
  const i = [];
3641
- o.Validation.forEach((l) => {
3641
+ a.Validation.forEach((l) => {
3642
3642
  r.Rules.Validation[l.Id] = l, i.push(l.Id), Yr(l, t) && (s = !0);
3643
3643
  }), n[t] = {
3644
- ...o,
3644
+ ...a,
3645
3645
  Validation: i,
3646
3646
  Required: s
3647
3647
  };
3648
3648
  } else
3649
- o.Validation.forEach((l) => {
3649
+ a.Validation.forEach((l) => {
3650
3650
  var d;
3651
3651
  const c = (d = r.Rules.Validation) == null ? void 0 : d[l];
3652
3652
  c && Yr(c, t) && (s = !0);
3653
- }), s && !o.Required && (n[t] = {
3654
- ...o,
3653
+ }), s && !a.Required && (n[t] = {
3654
+ ...a,
3655
3655
  Required: !0
3656
3656
  });
3657
- if (o.Formula) {
3657
+ if (a.Formula) {
3658
3658
  const i = `RULE_COMPUTE_${t.toUpperCase()}`;
3659
3659
  r.Rules.Computation[i] = {
3660
3660
  Id: i,
3661
- Name: o.Formula.Id || `Compute ${t}`,
3662
- Description: o.Formula.Description || `Computes value for ${t}`,
3663
- Expression: o.Formula.Expression,
3664
- ExpressionTree: o.Formula.ExpressionTree,
3665
- ResultType: o.Type
3661
+ Name: a.Formula.Id || `Compute ${t}`,
3662
+ Description: a.Formula.Description || `Computes value for ${t}`,
3663
+ Expression: a.Formula.Expression,
3664
+ ExpressionTree: a.Formula.ExpressionTree,
3665
+ ResultType: a.Type
3666
3666
  };
3667
3667
  }
3668
3668
  }), r.Fields = n, r;
3669
3669
  }
3670
- function eo(e) {
3671
- var n, t, o;
3670
+ function ea(e) {
3671
+ var n, t, a;
3672
3672
  const r = {
3673
3673
  validation: {},
3674
3674
  computation: {},
3675
3675
  businessLogic: {}
3676
3676
  };
3677
- return (n = e.Rules) != null && n.Validation && (r.validation = { ...e.Rules.Validation }), (t = e.Rules) != null && t.Computation && (r.computation = { ...e.Rules.Computation }), (o = e.Rules) != null && o.BusinessLogic && (r.businessLogic = { ...e.Rules.BusinessLogic }), r;
3677
+ return (n = e.Rules) != null && n.Validation && (r.validation = { ...e.Rules.Validation }), (t = e.Rules) != null && t.Computation && (r.computation = { ...e.Rules.Computation }), (a = e.Rules) != null && a.BusinessLogic && (r.businessLogic = { ...e.Rules.BusinessLogic }), r;
3678
3678
  }
3679
- function ro(e) {
3679
+ function ra(e) {
3680
3680
  var t;
3681
3681
  const r = {};
3682
3682
  if (!((t = e.Rules) != null && t.Computation)) return r;
3683
- const n = Object.entries(e.Fields).filter(([o, s]) => s.Computed).map(([o]) => o);
3684
- return n.sort((o, s) => s.length - o.length), Object.entries(e.Rules.Computation).forEach(([o, s]) => {
3685
- const i = o.toUpperCase().replace(/[_-]/g, "");
3683
+ const n = Object.entries(e.Fields).filter(([a, s]) => s.Computed).map(([a]) => a);
3684
+ return n.sort((a, s) => s.length - a.length), Object.entries(e.Rules.Computation).forEach(([a, s]) => {
3685
+ const i = a.toUpperCase().replace(/[_-]/g, "");
3686
3686
  for (const c of n) {
3687
3687
  const d = c.toUpperCase().replace(/[_-]/g, "");
3688
3688
  if (i.includes(d)) {
3689
- r[o] = c;
3689
+ r[a] = c;
3690
3690
  return;
3691
3691
  }
3692
3692
  }
3693
3693
  const l = `${s.Name || ""} ${s.Description || ""}`.toLowerCase();
3694
3694
  for (const c of n)
3695
3695
  if (l.includes(c.toLowerCase())) {
3696
- r[o] = c;
3696
+ r[a] = c;
3697
3697
  return;
3698
3698
  }
3699
3699
  }), r;
3700
3700
  }
3701
- function to(e, r) {
3701
+ function ta(e, r) {
3702
3702
  const n = {};
3703
- Object.keys(e.Fields).forEach((o) => {
3704
- n[o] = {
3703
+ Object.keys(e.Fields).forEach((a) => {
3704
+ n[a] = {
3705
3705
  validation: [],
3706
3706
  computation: [],
3707
3707
  businessLogic: []
3708
3708
  };
3709
- }), Object.entries(e.Fields).forEach(([o, s]) => {
3709
+ }), Object.entries(e.Fields).forEach(([a, s]) => {
3710
3710
  s.Validation && Array.isArray(s.Validation) && s.Validation.forEach((l) => {
3711
- r.validation[l] ? n[o].validation.push(l) : r.computation[l] ? n[o].computation.push(l) : r.businessLogic[l] && n[o].businessLogic.push(l);
3711
+ r.validation[l] ? n[a].validation.push(l) : r.computation[l] ? n[a].computation.push(l) : r.businessLogic[l] && n[a].businessLogic.push(l);
3712
3712
  }), s.Formula && Object.entries(r.computation).forEach(([i, l]) => {
3713
3713
  var c;
3714
- l.Expression === ((c = s.Formula) == null ? void 0 : c.Expression) && (n[o].computation.includes(i) || n[o].computation.push(i));
3714
+ l.Expression === ((c = s.Formula) == null ? void 0 : c.Expression) && (n[a].computation.includes(i) || n[a].computation.push(i));
3715
3715
  });
3716
3716
  });
3717
- const t = ro(e);
3718
- return Object.entries(t).forEach(([o, s]) => {
3719
- n[s] && !n[s].computation.includes(o) && n[s].computation.push(o);
3717
+ const t = ra(e);
3718
+ return Object.entries(t).forEach(([a, s]) => {
3719
+ n[s] && !n[s].computation.includes(a) && n[s].computation.push(a);
3720
3720
  }), n;
3721
3721
  }
3722
- function no(e, r) {
3722
+ function na(e, r) {
3723
3723
  const n = {}, t = {
3724
3724
  editable: !0,
3725
3725
  readable: !0,
3726
3726
  hidden: !1
3727
3727
  };
3728
- return Object.keys(e.Fields).forEach((o) => {
3729
- var c, d, p, E, _, G;
3728
+ return Object.keys(e.Fields).forEach((a) => {
3729
+ var c, d, p, E, F, G;
3730
3730
  if (!r || !((c = e.RolePermission) != null && c[r])) {
3731
- n[o] = t;
3731
+ n[a] = t;
3732
3732
  return;
3733
3733
  }
3734
- const s = e.RolePermission[r], i = ((d = s.Editable) == null ? void 0 : d.includes(o)) || ((p = s.Editable) == null ? void 0 : p.includes("*")) || !1, l = ((E = s.ReadOnly) == null ? void 0 : E.includes(o)) || ((_ = s.ReadOnly) == null ? void 0 : _.includes("*")) || i;
3735
- n[o] = {
3736
- editable: i && !((G = s.ReadOnly) != null && G.includes(o)),
3734
+ const s = e.RolePermission[r], i = ((d = s.Editable) == null ? void 0 : d.includes(a)) || ((p = s.Editable) == null ? void 0 : p.includes("*")) || !1, l = ((E = s.ReadOnly) == null ? void 0 : E.includes(a)) || ((F = s.ReadOnly) == null ? void 0 : F.includes("*")) || i;
3735
+ n[a] = {
3736
+ editable: i && !((G = s.ReadOnly) != null && G.includes(a)),
3737
3737
  readable: l,
3738
3738
  hidden: !l
3739
3739
  };
3740
3740
  }), n;
3741
3741
  }
3742
- function oo(e) {
3743
- return {
3744
- Id: "legacy_schema",
3745
- Name: "Legacy Schema",
3746
- Kind: "BusinessObject",
3747
- Description: "Converted from legacy schema format",
3748
- Rules: {
3749
- Validation: {},
3750
- Computation: {},
3751
- BusinessLogic: {}
3752
- },
3753
- Fields: Object.fromEntries(
3754
- Object.entries(e).map(([r, n]) => [
3755
- r,
3756
- {
3757
- ...n,
3758
- Id: r,
3759
- Name: n.Description || r,
3760
- Validation: []
3761
- // Legacy format needs to be processed separately
3762
- }
3763
- ])
3764
- ),
3765
- RolePermission: {},
3766
- Roles: {}
3767
- };
3768
- }
3769
- function ao(e, r) {
3742
+ function aa(e, r) {
3770
3743
  switch (e) {
3771
3744
  case "String":
3772
3745
  return r.toLowerCase().includes("email") ? "email" : r.toLowerCase().includes("password") ? "password" : "text";
@@ -3790,7 +3763,7 @@ function ao(e, r) {
3790
3763
  function kt(e) {
3791
3764
  return e.replace(/([A-Z])/g, " $1").replace(/^./, (r) => r.toUpperCase()).replace(/_/g, " ").trim();
3792
3765
  }
3793
- function so(e, r, n) {
3766
+ function oa(e, r, n) {
3794
3767
  const t = {};
3795
3768
  switch (r.Required && (t.required = {
3796
3769
  value: !0,
@@ -3806,13 +3779,13 @@ function so(e, r, n) {
3806
3779
  }
3807
3780
  return r.Validation && r.Validation.length > 0 && (t.validate = () => !0), t;
3808
3781
  }
3809
- function io(e) {
3782
+ function sa(e) {
3810
3783
  return e.Values ? e.Values.Mode === "Static" && e.Values.Items ? e.Values.Items.map((r) => ({
3811
3784
  value: r.Value,
3812
3785
  label: r.Label
3813
3786
  })) : e.Values.Mode === "Dynamic" && e.Values.Reference ? [] : [] : [];
3814
3787
  }
3815
- function co(e, r = {}) {
3788
+ function ia(e, r = {}) {
3816
3789
  if (!e.DefaultValue)
3817
3790
  switch (e.Type) {
3818
3791
  case "Boolean":
@@ -3833,7 +3806,7 @@ function co(e, r = {}) {
3833
3806
  r
3834
3807
  );
3835
3808
  }
3836
- function lo(e, r, n, t = {}, o, s) {
3809
+ function ca(e, r, n, t = {}, a, s) {
3837
3810
  const i = {
3838
3811
  editable: !0,
3839
3812
  readable: !0,
@@ -3842,48 +3815,48 @@ function lo(e, r, n, t = {}, o, s) {
3842
3815
  validation: [],
3843
3816
  computation: [],
3844
3817
  businessLogic: []
3845
- }, d = r.Computed || !!r.Formula || c.computation.length > 0, p = so(e, r);
3818
+ }, d = r.Computed || !!r.Formula || c.computation.length > 0, p = oa(e, r);
3846
3819
  return d && (p.disabled = !0), {
3847
3820
  name: e,
3848
- type: ao(r.Type, e),
3821
+ type: aa(r.Type, e),
3849
3822
  label: r.Name || kt(e),
3850
3823
  required: r.Required || !1,
3851
3824
  computed: d,
3852
- defaultValue: co(r, t),
3853
- options: io(r),
3825
+ defaultValue: ia(r, t),
3826
+ options: sa(r),
3854
3827
  validation: p,
3855
3828
  description: r.Description,
3856
- backendField: r,
3857
- permission: o || i,
3829
+ _bdoField: r,
3830
+ permission: a || i,
3858
3831
  rules: c
3859
3832
  };
3860
3833
  }
3861
- function uo(e, r = {}, n) {
3862
- let t = "Kind" in e && e.Kind === "BusinessObject" ? e : oo(e);
3834
+ function la(e, r = {}, n) {
3835
+ let t = e;
3863
3836
  t = Zn(t);
3864
- const o = {}, s = [], i = [], l = [], c = [], d = eo(t), p = to(t, d), E = no(t, n);
3865
- for (const [_, G] of Object.entries(t.Fields)) {
3866
- if (_.startsWith("_") && !["_id"].includes(_))
3837
+ const a = {}, s = [], i = [], l = [], c = [], d = ea(t), p = ta(t, d), E = na(t, n);
3838
+ for (const [F, G] of Object.entries(t.Fields)) {
3839
+ if (F.startsWith("_") && !["_id"].includes(F))
3867
3840
  continue;
3868
- const Y = E[_];
3841
+ const Y = E[F];
3869
3842
  if (Y.hidden)
3870
3843
  continue;
3871
- const g = lo(
3872
- _,
3844
+ const g = ca(
3845
+ F,
3873
3846
  G,
3874
3847
  t.Fields,
3875
3848
  r,
3876
3849
  Y,
3877
- p[_] || {
3850
+ p[F] || {
3878
3851
  validation: [],
3879
3852
  computation: [],
3880
3853
  businessLogic: []
3881
3854
  }
3882
3855
  );
3883
- o[_] = g, s.push(_), g.computed && i.push(_), g.required && l.push(_);
3856
+ a[F] = g, s.push(F), g.computed && i.push(F), g.required && l.push(F);
3884
3857
  }
3885
3858
  return {
3886
- fields: o,
3859
+ fields: a,
3887
3860
  fieldOrder: s,
3888
3861
  computedFields: i,
3889
3862
  requiredFields: l,
@@ -3893,11 +3866,11 @@ function uo(e, r = {}, n) {
3893
3866
  rolePermissions: t.RolePermission
3894
3867
  };
3895
3868
  }
3896
- function fo(e) {
3869
+ function ua(e) {
3897
3870
  var n;
3898
- if (e.type !== "reference" || !((n = e.backendField.Values) != null && n.Reference))
3871
+ if (e.type !== "reference" || !((n = e._bdoField.Values) != null && n.Reference))
3899
3872
  return null;
3900
- const r = e.backendField.Values.Reference;
3873
+ const r = e._bdoField.Values.Reference;
3901
3874
  return {
3902
3875
  businessObject: r.BusinessObject,
3903
3876
  fields: r.Fields || ["_id"],
@@ -3906,16 +3879,16 @@ function fo(e) {
3906
3879
  sort: r.Sort
3907
3880
  };
3908
3881
  }
3909
- function mo(e) {
3882
+ function da(e) {
3910
3883
  const r = {};
3911
3884
  for (const [n, t] of Object.entries(e.fields))
3912
3885
  if (t.type === "reference") {
3913
- const o = fo(t);
3914
- o && (r[n] = o);
3886
+ const a = ua(t);
3887
+ a && (r[n] = a);
3915
3888
  }
3916
3889
  return r;
3917
3890
  }
3918
- async function po(e) {
3891
+ async function fa(e) {
3919
3892
  try {
3920
3893
  const n = (await Mt(e)).BOBlob;
3921
3894
  if (!n || typeof n != "object" || !n.Fields)
@@ -3927,13 +3900,13 @@ async function po(e) {
3927
3900
  );
3928
3901
  }
3929
3902
  }
3930
- async function go(e, r = 3) {
3903
+ async function ma(e, r = 3) {
3931
3904
  let n;
3932
3905
  for (let t = 1; t <= r; t++)
3933
3906
  try {
3934
- return await po(e);
3935
- } catch (o) {
3936
- if (n = o, t < r) {
3907
+ return await fa(e);
3908
+ } catch (a) {
3909
+ if (n = a, t < r) {
3937
3910
  const s = Math.min(1e3 * Math.pow(2, t - 1), 5e3);
3938
3911
  await new Promise((i) => setTimeout(i, s));
3939
3912
  continue;
@@ -3941,7 +3914,7 @@ async function go(e, r = 3) {
3941
3914
  }
3942
3915
  throw n;
3943
3916
  }
3944
- async function ho(e, r) {
3917
+ async function pa(e, r) {
3945
3918
  try {
3946
3919
  return await Re(e).get(r);
3947
3920
  } catch (n) {
@@ -3950,103 +3923,120 @@ async function ho(e, r) {
3950
3923
  );
3951
3924
  }
3952
3925
  }
3953
- async function bo(e, r, n, t) {
3926
+ async function ga(e, r, n, t) {
3954
3927
  try {
3955
- let o;
3928
+ let a;
3956
3929
  if (r === "create")
3957
- return o = await Re(e).create(n), {
3930
+ return a = await Re(e).create(n), {
3958
3931
  success: !0,
3959
- data: o,
3960
- recordId: o._id || t
3932
+ data: a,
3933
+ recordId: a._id || t
3961
3934
  };
3962
3935
  if (r === "update") {
3963
3936
  if (!t)
3964
3937
  throw new Error("Record ID is required for update operations");
3965
- return o = await Re(e).update(t, n), {
3938
+ return a = await Re(e).update(t, n), {
3966
3939
  success: !0,
3967
- data: o,
3968
- recordId: o._id || t
3940
+ data: a,
3941
+ recordId: a._id || t
3969
3942
  };
3970
3943
  } else
3971
3944
  throw new Error(`Unsupported operation: ${r}`);
3972
- } catch (o) {
3973
- return console.error("Form submission error:", o), {
3945
+ } catch (a) {
3946
+ return console.error("Form submission error:", a), {
3974
3947
  success: !1,
3975
3948
  error: new Error(
3976
- `Failed to ${r} record: ${o instanceof Error ? o.message : "Unknown error"}`
3949
+ `Failed to ${r} record: ${a instanceof Error ? a.message : "Unknown error"}`
3977
3950
  )
3978
3951
  };
3979
3952
  }
3980
3953
  }
3981
- async function yo(e, r = ["_id"], n, t) {
3954
+ async function ha(e, r = ["_id"], n, t) {
3982
3955
  try {
3983
- const o = {};
3984
- return n && (o.Filter = n), t && (o.Sort = t), r.length > 0 && (o.Field = r), (await Re(e).list(o)).Data || [];
3985
- } catch (o) {
3986
- return console.error(`Reference data fetch error for ${e}:`, o), [];
3956
+ const a = {};
3957
+ return n && (a.Filter = n), t && (a.Sort = t), r.length > 0 && (a.Field = r), (await Re(e).list(a)).Data || [];
3958
+ } catch (a) {
3959
+ return console.error(`Reference data fetch error for ${e}:`, a), [];
3987
3960
  }
3988
3961
  }
3989
- async function wo(e) {
3962
+ async function ba(e) {
3990
3963
  const r = {}, n = Object.entries(e).map(
3991
- async ([o, s]) => {
3964
+ async ([a, s]) => {
3992
3965
  try {
3993
- const i = await yo(
3966
+ const i = await ha(
3994
3967
  s.businessObject,
3995
3968
  s.fields,
3996
3969
  s.filters,
3997
3970
  s.sort
3998
3971
  );
3999
- return [o, i];
3972
+ return [a, i];
4000
3973
  } catch (i) {
4001
- return console.warn(`Failed to fetch reference data for ${o}:`, i), [o, []];
3974
+ return console.warn(`Failed to fetch reference data for ${a}:`, i), [a, []];
4002
3975
  }
4003
3976
  }
4004
3977
  );
4005
- return (await Promise.allSettled(n)).forEach((o) => {
4006
- if (o.status === "fulfilled") {
4007
- const [s, i] = o.value;
3978
+ return (await Promise.allSettled(n)).forEach((a) => {
3979
+ if (a.status === "fulfilled") {
3980
+ const [s, i] = a.value;
4008
3981
  r[s] = Array.isArray(i) ? i : [];
4009
3982
  }
4010
3983
  }), r;
4011
3984
  }
4012
- function vo(e, r, n = "create", t) {
4013
- const o = {};
3985
+ function ya(e, r, n = "create", t) {
3986
+ const a = {};
4014
3987
  return Object.keys(e).forEach((s) => {
4015
3988
  const i = s, l = e[i];
4016
3989
  if (!r.includes(s) && l !== void 0) {
4017
3990
  if (n === "create") {
4018
- o[i] = l;
3991
+ a[i] = l;
4019
3992
  return;
4020
3993
  }
4021
3994
  if (n === "update") {
4022
3995
  if (!t) {
4023
- o[i] = l;
3996
+ a[i] = l;
4024
3997
  return;
4025
3998
  }
4026
3999
  const c = t[i];
4027
- JSON.stringify(l) !== JSON.stringify(c) && (o[i] = l);
4000
+ JSON.stringify(l) !== JSON.stringify(c) && (a[i] = l);
4028
4001
  }
4029
4002
  }
4030
- }), o;
4003
+ }), a;
4004
+ }
4005
+ function oo(e) {
4006
+ var r, n, t, a;
4007
+ return typeof e == "string" ? e : e != null && e.message ? e.message : (n = (r = e == null ? void 0 : e.response) == null ? void 0 : r.data) != null && n.message ? e.response.data.message : (a = (t = e == null ? void 0 : e.response) == null ? void 0 : t.data) != null && a.error ? e.response.data.error : "An unexpected error occurred";
4031
4008
  }
4032
- const Ar = /* @__PURE__ */ new Map();
4033
- function Eo(e, r, n = 10) {
4034
- Ar.set(e, {
4009
+ function so(e) {
4010
+ var r, n;
4011
+ return !navigator.onLine || (e == null ? void 0 : e.code) === "NETWORK_ERROR" || ((r = e == null ? void 0 : e.message) == null ? void 0 : r.toLowerCase().includes("network")) || ((n = e == null ? void 0 : e.message) == null ? void 0 : n.toLowerCase().includes("fetch"));
4012
+ }
4013
+ function io(e) {
4014
+ var r, n, t;
4015
+ return (e == null ? void 0 : e.status) === 400 || ((r = e == null ? void 0 : e.response) == null ? void 0 : r.status) === 400 || ((n = e == null ? void 0 : e.message) == null ? void 0 : n.toLowerCase().includes("validation")) || ((t = e == null ? void 0 : e.message) == null ? void 0 : t.toLowerCase().includes("invalid"));
4016
+ }
4017
+ const tr = /* @__PURE__ */ new Map();
4018
+ function wa(e, r, n = 10) {
4019
+ tr.set(e, {
4035
4020
  data: r,
4036
4021
  timestamp: Date.now(),
4037
4022
  ttl: n * 60 * 1e3
4038
4023
  });
4039
4024
  }
4040
- function Co(e) {
4041
- const r = Ar.get(e);
4042
- return r ? Date.now() - r.timestamp > r.ttl ? (Ar.delete(e), null) : r.data : null;
4025
+ function va(e) {
4026
+ const r = tr.get(e);
4027
+ return r ? Date.now() - r.timestamp > r.ttl ? (tr.delete(e), null) : r.data : null;
4028
+ }
4029
+ function co(e) {
4030
+ e ? Array.from(tr.keys()).filter(
4031
+ (n) => n.startsWith(e)
4032
+ ).forEach((n) => tr.delete(n)) : tr.clear();
4043
4033
  }
4044
- async function xo(e) {
4045
- const r = `schema:${e}`, n = Co(r);
4034
+ async function Ea(e) {
4035
+ const r = `schema:${e}`, n = va(r);
4046
4036
  if (n)
4047
4037
  return n;
4048
- const t = await go(e);
4049
- return Eo(r, t, 30), t;
4038
+ const t = await ma(e);
4039
+ return wa(r, t, 30), t;
4050
4040
  }
4051
4041
  class Wr {
4052
4042
  constructor(r = 1e3) {
@@ -4071,7 +4061,7 @@ class Wr {
4071
4061
  this.cache.clear();
4072
4062
  }
4073
4063
  }
4074
- function So(e) {
4064
+ function Ca(e) {
4075
4065
  const r = /* @__PURE__ */ new Set();
4076
4066
  function n(t) {
4077
4067
  switch (t.Type) {
@@ -4090,7 +4080,7 @@ function So(e) {
4090
4080
  }
4091
4081
  return n(e), r;
4092
4082
  }
4093
- class ko {
4083
+ class Sa {
4094
4084
  constructor() {
4095
4085
  Qe(this, "resultCache", new Wr(500));
4096
4086
  Qe(this, "dependencyCache", new Wr(200));
@@ -4100,8 +4090,8 @@ class ko {
4100
4090
  * Create cache key from expression and context
4101
4091
  */
4102
4092
  createCacheKey(r, n) {
4103
- const t = JSON.stringify(r), o = JSON.stringify(n);
4104
- return `${t}:${o}`;
4093
+ const t = JSON.stringify(r), a = JSON.stringify(n);
4094
+ return `${t}:${a}`;
4105
4095
  }
4106
4096
  /**
4107
4097
  * Get expression dependencies (cached)
@@ -4109,15 +4099,15 @@ class ko {
4109
4099
  getDependencies(r) {
4110
4100
  const n = JSON.stringify(r);
4111
4101
  let t = this.dependencyCache.get(n);
4112
- return t || (t = So(r), this.dependencyCache.set(n, t)), t;
4102
+ return t || (t = Ca(r), this.dependencyCache.set(n, t)), t;
4113
4103
  }
4114
4104
  /**
4115
4105
  * Check if expression result is cached and context hasn't changed
4116
4106
  */
4117
4107
  getCachedResult(r, n, t) {
4118
4108
  if (!t) return;
4119
- const o = this.getDependencies(r);
4120
- for (const i of o)
4109
+ const a = this.getDependencies(r);
4110
+ for (const i of a)
4121
4111
  if (n[i] !== t[i])
4122
4112
  return;
4123
4113
  const s = this.createCacheKey(r, n);
@@ -4127,9 +4117,9 @@ class ko {
4127
4117
  * Evaluate expression with caching
4128
4118
  */
4129
4119
  evaluate(r, n, t) {
4130
- const o = this.getCachedResult(r, n, t);
4131
- if (o !== void 0)
4132
- return o;
4120
+ const a = this.getCachedResult(r, n, t);
4121
+ if (a !== void 0)
4122
+ return a;
4133
4123
  const s = this.evaluateNode(r, n), i = this.createCacheKey(r, n);
4134
4124
  return this.resultCache.set(i, s), s;
4135
4125
  }
@@ -4179,34 +4169,34 @@ class ko {
4179
4169
  evaluateBinaryExpression(r, n) {
4180
4170
  if (!r.Arguments || r.Arguments.length !== 2)
4181
4171
  throw new Error("Binary expression requires exactly 2 arguments");
4182
- const t = this.evaluateNode(r.Arguments[0], n), o = this.evaluateNode(r.Arguments[1], n);
4172
+ const t = this.evaluateNode(r.Arguments[0], n), a = this.evaluateNode(r.Arguments[1], n);
4183
4173
  switch (r.Operator) {
4184
4174
  case "==":
4185
- return t == o;
4175
+ return t == a;
4186
4176
  case "!=":
4187
- return t != o;
4177
+ return t != a;
4188
4178
  case "===":
4189
- return t === o;
4179
+ return t === a;
4190
4180
  case "!==":
4191
- return t !== o;
4181
+ return t !== a;
4192
4182
  case "<":
4193
- return Number(t) < Number(o);
4183
+ return Number(t) < Number(a);
4194
4184
  case "<=":
4195
- return Number(t) <= Number(o);
4185
+ return Number(t) <= Number(a);
4196
4186
  case ">":
4197
- return Number(t) > Number(o);
4187
+ return Number(t) > Number(a);
4198
4188
  case ">=":
4199
- return Number(t) >= Number(o);
4189
+ return Number(t) >= Number(a);
4200
4190
  case "+":
4201
- return Number(t) + Number(o);
4191
+ return Number(t) + Number(a);
4202
4192
  case "-":
4203
- return Number(t) - Number(o);
4193
+ return Number(t) - Number(a);
4204
4194
  case "*":
4205
- return Number(t) * Number(o);
4195
+ return Number(t) * Number(a);
4206
4196
  case "/":
4207
- return Number(t) / Number(o);
4197
+ return Number(t) / Number(a);
4208
4198
  case "%":
4209
- return Number(t) % Number(o);
4199
+ return Number(t) % Number(a);
4210
4200
  default:
4211
4201
  throw new Error(`Unsupported binary operator: ${r.Operator}`);
4212
4202
  }
@@ -4234,10 +4224,10 @@ class ko {
4234
4224
  * Evaluate function calls with built-in functions
4235
4225
  */
4236
4226
  evaluateCallExpression(r, n) {
4237
- var o;
4227
+ var a;
4238
4228
  if (!r.Callee)
4239
4229
  throw new Error("Call expression requires a function name");
4240
- const t = ((o = r.Arguments) == null ? void 0 : o.map((s) => this.evaluateNode(s, n))) || [];
4230
+ const t = ((a = r.Arguments) == null ? void 0 : a.map((s) => this.evaluateNode(s, n))) || [];
4241
4231
  switch (r.Callee) {
4242
4232
  case "CONCAT":
4243
4233
  return t.map((d) => String(d || "")).join("");
@@ -4294,8 +4284,8 @@ class ko {
4294
4284
  var s;
4295
4285
  if (!r.Arguments || r.Arguments.length === 0)
4296
4286
  throw new Error("Member expression requires arguments");
4297
- const t = this.evaluateNode(r.Arguments[0], n), o = (s = r.Arguments[0].Property) == null ? void 0 : s.Name;
4298
- return o && t && typeof t == "object" ? t[o] : t;
4287
+ const t = this.evaluateNode(r.Arguments[0], n), a = (s = r.Arguments[0].Property) == null ? void 0 : s.Name;
4288
+ return a && t && typeof t == "object" ? t[a] : t;
4299
4289
  }
4300
4290
  /**
4301
4291
  * Clear all caches
@@ -4304,8 +4294,8 @@ class ko {
4304
4294
  this.resultCache.clear(), this.dependencyCache.clear(), this.compiledExpressions.clear();
4305
4295
  }
4306
4296
  }
4307
- const Rt = new ko();
4308
- function Ro(e, r, n, t, o) {
4297
+ const Rt = new Sa();
4298
+ function xa(e, r, n, t, a) {
4309
4299
  if (!n || n.length === 0)
4310
4300
  return { isValid: !0 };
4311
4301
  const s = { ...t, [e]: r };
@@ -4314,7 +4304,7 @@ function Ro(e, r, n, t, o) {
4314
4304
  if (!Rt.evaluate(
4315
4305
  i.ExpressionTree,
4316
4306
  s,
4317
- o
4307
+ a
4318
4308
  ))
4319
4309
  return {
4320
4310
  isValid: !1,
@@ -4329,12 +4319,12 @@ function Ro(e, r, n, t, o) {
4329
4319
  function Qr(e) {
4330
4320
  return Array.from(Rt.getDependencies(e));
4331
4321
  }
4332
- function ia(e) {
4322
+ function lo(e) {
4333
4323
  const {
4334
4324
  source: r,
4335
4325
  operation: n,
4336
4326
  recordId: t,
4337
- defaultValues: o = {},
4327
+ defaultValues: a = {},
4338
4328
  mode: s = "onBlur",
4339
4329
  // Validation mode - controls when errors are shown (see types.ts for details)
4340
4330
  enabled: i = !0,
@@ -4343,12 +4333,12 @@ function ia(e) {
4343
4333
  onError: d,
4344
4334
  onSchemaError: p,
4345
4335
  onSubmitError: E,
4346
- skipSchemaFetch: _ = !1,
4336
+ skipSchemaFetch: F = !1,
4347
4337
  schema: G,
4348
4338
  draftOnEveryChange: Y = !1
4349
- } = e, [g, ne] = xe(null), [v, O] = xe({}), [U, V] = xe(null), [X, b] = xe(!1), [C] = xe({}), f = he(!1), D = he(null), N = he(null), j = he(c), z = he(d), W = he(E), Z = he(p);
4339
+ } = e, [g, ne] = Se(null), [v, O] = Se({}), [U, V] = Se(null), [X, b] = Se(!1), [C] = Se({}), f = he(!1), D = he(null), N = he(null), I = he(c), z = he(d), W = he(E), Z = he(p);
4350
4340
  Oe(() => {
4351
- j.current = c;
4341
+ I.current = c;
4352
4342
  }, [c]), Oe(() => {
4353
4343
  z.current = d;
4354
4344
  }, [d]), Oe(() => {
@@ -4361,10 +4351,10 @@ function ia(e) {
4361
4351
  isLoading: q,
4362
4352
  error: ie,
4363
4353
  refetch: A
4364
- } = tr({
4354
+ } = nr({
4365
4355
  queryKey: ["form-schema", r],
4366
- queryFn: () => _ ? Promise.resolve(G || {}) : xo(r),
4367
- enabled: i && (!_ || !!G),
4356
+ queryFn: () => F ? Promise.resolve(G || {}) : Ea(r),
4357
+ enabled: i && (!F || !!G),
4368
4358
  retry: 3,
4369
4359
  staleTime: 30 * 60 * 1e3,
4370
4360
  // 30 minutes - schemas don't change frequently
@@ -4375,9 +4365,9 @@ function ia(e) {
4375
4365
  data: le,
4376
4366
  isLoading: we,
4377
4367
  error: fe
4378
- } = tr({
4368
+ } = nr({
4379
4369
  queryKey: ["form-record", r, t],
4380
- queryFn: () => ho(r, t),
4370
+ queryFn: () => pa(r, t),
4381
4371
  enabled: i && n === "update" && !!t,
4382
4372
  retry: 3,
4383
4373
  staleTime: 5 * 60 * 1e3,
@@ -4386,31 +4376,31 @@ function ia(e) {
4386
4376
  // 15 minutes - keep records for a reasonable time
4387
4377
  throwOnError: !1
4388
4378
  }), ve = ye(() => {
4389
- const y = { ...o };
4379
+ const y = { ...a };
4390
4380
  if (n === "update" && le && Object.assign(y, le), g)
4391
- for (const [B, $] of Object.entries(g.fields))
4392
- $.defaultValue !== void 0 && !(B in y) && (y[B] = $.defaultValue);
4381
+ for (const [K, $] of Object.entries(g.fields))
4382
+ $.defaultValue !== void 0 && !(K in y) && (y[K] = $.defaultValue);
4393
4383
  return y;
4394
- }, [o, le, n, g]), F = Kt({
4384
+ }, [a, le, n, g]), _ = Bt({
4395
4385
  mode: s,
4396
- defaultValues: o,
4386
+ defaultValues: a,
4397
4387
  values: n === "update" && le ? ve : void 0
4398
4388
  });
4399
4389
  Oe(() => {
4400
4390
  var y;
4401
4391
  if (se)
4402
4392
  try {
4403
- const B = uo(
4393
+ const K = la(
4404
4394
  se,
4405
4395
  {},
4406
4396
  // Pass empty object - validation functions get live values from react-hook-form
4407
4397
  l
4408
4398
  );
4409
- ne(B);
4410
- const $ = mo(B);
4411
- Object.keys($).length > 0 && wo($).then(O).catch(console.warn);
4412
- } catch (B) {
4413
- console.error("Schema processing failed:", B), (y = Z.current) == null || y.call(Z, B);
4399
+ ne(K);
4400
+ const $ = da(K);
4401
+ Object.keys($).length > 0 && ba($).then(O).catch(console.warn);
4402
+ } catch (K) {
4403
+ console.error("Schema processing failed:", K), (y = Z.current) == null || y.call(Z, K);
4414
4404
  }
4415
4405
  }, [se, l]), Oe(() => {
4416
4406
  var y;
@@ -4419,42 +4409,42 @@ function ia(e) {
4419
4409
  var y;
4420
4410
  fe && ((y = z.current) == null || y.call(z, fe));
4421
4411
  }, [fe]);
4422
- const oe = ye(() => {
4412
+ const ae = ye(() => {
4423
4413
  if (!g) return [];
4424
- const y = /* @__PURE__ */ new Set(), B = new Set(g.computedFields);
4414
+ const y = /* @__PURE__ */ new Set(), K = new Set(g.computedFields);
4425
4415
  return Object.entries(g.fieldRules).forEach(([$, J]) => {
4426
- J.computation.forEach((K) => {
4427
- const re = g.rules.computation[K];
4416
+ J.computation.forEach((B) => {
4417
+ const re = g.rules.computation[B];
4428
4418
  re != null && re.ExpressionTree && Qr(re.ExpressionTree).forEach((be) => {
4429
- g.fields[be] && be !== $ && !B.has(be) && y.add(be);
4419
+ g.fields[be] && be !== $ && !K.has(be) && y.add(be);
4430
4420
  });
4431
4421
  });
4432
4422
  }), g.computedFields.forEach(($) => {
4433
4423
  const J = g.fields[$];
4434
- J.backendField.Formula && Qr(
4435
- J.backendField.Formula.ExpressionTree
4424
+ J._bdoField.Formula && Qr(
4425
+ J._bdoField.Formula.ExpressionTree
4436
4426
  ).forEach((re) => {
4437
- g.fields[re] && re !== $ && !B.has(re) && y.add(re);
4427
+ g.fields[re] && re !== $ && !K.has(re) && y.add(re);
4438
4428
  });
4439
4429
  }), Array.from(y);
4440
- }, [g]), ee = S(
4430
+ }, [g]), ee = x(
4441
4431
  async (y) => {
4442
- !g || oe.length === 0 || !(Y || oe.includes(y)) || f.current || (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
4432
+ !g || ae.length === 0 || !(Y || ae.includes(y)) || f.current || (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
4443
4433
  if (!g || f.current)
4444
4434
  return;
4445
- const $ = F.getValues();
4435
+ const $ = _.getValues();
4446
4436
  (async () => {
4447
4437
  f.current = !0;
4448
4438
  try {
4449
- const K = Re(r), re = {};
4439
+ const B = Re(r), re = {};
4450
4440
  n === "update" && t && "_id" in $ && (re._id = $._id);
4451
4441
  const ge = N.current ?? (n === "update" ? le : null) ?? {}, be = new Set(
4452
4442
  g.computedFields || []
4453
4443
  );
4454
4444
  Object.keys($).forEach((me) => {
4455
4445
  if (me === "_id" || be.has(me)) return;
4456
- const Ae = $[me], dr = ge[me];
4457
- JSON.stringify(Ae) !== JSON.stringify(dr) && (Ae !== "" && Ae !== null && Ae !== void 0) && (re[me] = Ae);
4446
+ const Ae = $[me], fr = ge[me];
4447
+ JSON.stringify(Ae) !== JSON.stringify(fr) && (Ae !== "" && Ae !== null && Ae !== void 0) && (re[me] = Ae);
4458
4448
  });
4459
4449
  const Ne = re, Ve = {
4460
4450
  ...N.current
@@ -4462,10 +4452,10 @@ function ia(e) {
4462
4452
  Object.keys($).forEach((me) => {
4463
4453
  be.has(me) || (Ve[me] = $[me]);
4464
4454
  }), N.current = Ve;
4465
- const $e = n === "update" && t ? await K.draftPatch(t, Ne) : await K.draft(Ne);
4455
+ const $e = n === "update" && t ? await B.draftPatch(t, Ne) : await B.draft(Ne);
4466
4456
  $e && typeof $e == "object" && (Object.entries($e).forEach(
4467
4457
  ([me, Ae]) => {
4468
- $[me] !== Ae && F.setValue(me, Ae, {
4458
+ $[me] !== Ae && _.setValue(me, Ae, {
4469
4459
  shouldDirty: !1,
4470
4460
  shouldValidate: !1
4471
4461
  });
@@ -4475,8 +4465,8 @@ function ia(e) {
4475
4465
  be.has(me) && (N.current[me] = Ae);
4476
4466
  }
4477
4467
  ));
4478
- } catch (K) {
4479
- console.warn("Failed to compute fields via API:", K);
4468
+ } catch (B) {
4469
+ console.warn("Failed to compute fields via API:", B);
4480
4470
  } finally {
4481
4471
  f.current = !1;
4482
4472
  }
@@ -4489,53 +4479,53 @@ function ia(e) {
4489
4479
  t,
4490
4480
  le,
4491
4481
  r,
4492
- F,
4493
- oe,
4482
+ _,
4483
+ ae,
4494
4484
  Y
4495
4485
  ]
4496
- ), Ee = S(async () => {
4486
+ ), Ee = x(async () => {
4497
4487
  if (!g)
4498
4488
  return !1;
4499
- const y = F.getValues();
4500
- if (!await F.trigger())
4489
+ const y = _.getValues();
4490
+ if (!await _.trigger())
4501
4491
  return !1;
4502
4492
  const $ = g.crossFieldValidation.map(
4503
- (K) => ({
4504
- Id: K.Id,
4505
- Condition: { ExpressionTree: K.ExpressionTree },
4506
- Message: K.Message || `Validation failed for ${K.Name}`
4493
+ (B) => ({
4494
+ Id: B.Id,
4495
+ Condition: { ExpressionTree: B.ExpressionTree },
4496
+ Message: B.Message || `Validation failed for ${B.Name}`
4507
4497
  })
4508
4498
  ), J = Hn(
4509
4499
  $,
4510
4500
  y,
4511
4501
  v
4512
4502
  );
4513
- return J.length > 0 ? (J.forEach((K, re) => {
4514
- F.setError(`root.crossField${re}`, {
4503
+ return J.length > 0 ? (J.forEach((B, re) => {
4504
+ _.setError(`root.crossField${re}`, {
4515
4505
  type: "validate",
4516
- message: K.message
4506
+ message: B.message
4517
4507
  });
4518
4508
  }), !1) : !0;
4519
4509
  }, [
4520
4510
  g,
4521
- F.getValues,
4522
- F.trigger,
4523
- F.setError,
4511
+ _.getValues,
4512
+ _.trigger,
4513
+ _.setError,
4524
4514
  v
4525
- ]), H = S(async () => {
4526
- var y, B, $;
4515
+ ]), H = x(async () => {
4516
+ var y, K, $;
4527
4517
  if (!g)
4528
4518
  throw new Error("Schema not loaded");
4529
4519
  b(!0), V(null);
4530
4520
  try {
4531
4521
  if (!await Ee())
4532
4522
  throw new Error("Form validation failed");
4533
- const K = F.getValues(), re = vo(
4534
- K,
4523
+ const B = _.getValues(), re = ya(
4524
+ B,
4535
4525
  g.computedFields,
4536
4526
  n,
4537
4527
  le
4538
- ), ge = await bo(
4528
+ ), ge = await ga(
4539
4529
  r,
4540
4530
  n,
4541
4531
  re,
@@ -4543,38 +4533,38 @@ function ia(e) {
4543
4533
  );
4544
4534
  if (!ge.success)
4545
4535
  throw ge.error || new Error("Submission failed");
4546
- (y = j.current) == null || y.call(j, ge.data || K), n === "create" && F.reset();
4536
+ (y = I.current) == null || y.call(I, ge.data || B), n === "create" && _.reset();
4547
4537
  } catch (J) {
4548
- const K = J;
4549
- throw V(K), (B = W.current) == null || B.call(W, K), ($ = z.current) == null || $.call(z, K), J;
4538
+ const B = J;
4539
+ throw V(B), (K = W.current) == null || K.call(W, B), ($ = z.current) == null || $.call(z, B), J;
4550
4540
  } finally {
4551
4541
  b(!1);
4552
4542
  }
4553
- }, [g, Ee, F, r, n, t, le]), Se = S(() => F.handleSubmit(async () => {
4543
+ }, [g, Ee, _, r, n, t, le]), xe = x(() => _.handleSubmit(async () => {
4554
4544
  await H();
4555
- }), [F, H]), P = S(
4545
+ }), [_, H]), P = x(
4556
4546
  (y) => (g == null ? void 0 : g.fields[y]) || null,
4557
4547
  [g]
4558
- ), ce = S(() => {
4548
+ ), ce = x(() => {
4559
4549
  if (!g) return {};
4560
4550
  const y = {};
4561
- return Object.entries(g.fields).forEach(([B, $]) => {
4562
- y[B] = $;
4551
+ return Object.entries(g.fields).forEach(([K, $]) => {
4552
+ y[K] = $;
4563
4553
  }), y;
4564
- }, [g]), Fe = S(
4554
+ }, [g]), _e = x(
4565
4555
  (y) => !!(g != null && g.fields[y]),
4566
4556
  [g]
4567
- ), _e = S(
4557
+ ), Fe = x(
4568
4558
  (y) => (g == null ? void 0 : g.requiredFields.includes(y)) || !1,
4569
4559
  [g]
4570
- ), ar = S(
4560
+ ), sr = x(
4571
4561
  (y) => (g == null ? void 0 : g.computedFields.includes(y)) || !1,
4572
4562
  [g]
4573
- ), ze = S(async () => {
4563
+ ), ze = x(async () => {
4574
4564
  await A();
4575
- }, [A]), Be = S(() => {
4576
- F.clearErrors(), V(null);
4577
- }, [F]), Pe = q || n === "update" && we, Ye = Pe || X, Ke = ie || fe, Ie = !!(Ke || U), u = ye(
4565
+ }, [A]), Ke = x(() => {
4566
+ _.clearErrors(), V(null);
4567
+ }, [_]), Pe = q || n === "update" && we, Ye = Pe || X, Be = ie || fe, je = !!(Be || U), u = ye(
4578
4568
  () => (g == null ? void 0 : g.computedFields) || [],
4579
4569
  [g]
4580
4570
  ), w = ye(
@@ -4583,7 +4573,7 @@ function ia(e) {
4583
4573
  ), h = ye(() => {
4584
4574
  if (!g) return {};
4585
4575
  const y = {};
4586
- return Object.entries(g.fields).forEach(([B, $]) => {
4576
+ return Object.entries(g.fields).forEach(([K, $]) => {
4587
4577
  const J = {};
4588
4578
  switch ($.required && (J.required = `${$.label} is required`), $.permission.editable || (J.disabled = !0), $.type) {
4589
4579
  case "number":
@@ -4594,15 +4584,15 @@ function ia(e) {
4594
4584
  J.valueAsDate = !0;
4595
4585
  break;
4596
4586
  }
4597
- const K = $.rules.validation;
4598
- K.length > 0 && (J.validate = {
4587
+ const B = $.rules.validation;
4588
+ B.length > 0 && (J.validate = {
4599
4589
  expressionValidation: (re) => {
4600
- const ge = F.getValues();
4601
- for (const be of K) {
4590
+ const ge = _.getValues();
4591
+ for (const be of B) {
4602
4592
  const Ne = g.rules.validation[be];
4603
4593
  if (Ne) {
4604
- const Ve = Ro(
4605
- B,
4594
+ const Ve = xa(
4595
+ K,
4606
4596
  re,
4607
4597
  [Ne],
4608
4598
  ge,
@@ -4614,79 +4604,79 @@ function ia(e) {
4614
4604
  }
4615
4605
  return !0;
4616
4606
  }
4617
- }), y[B] = J;
4607
+ }), y[K] = J;
4618
4608
  }), y;
4619
- }, [g, F, v]);
4609
+ }, [g, _, v]);
4620
4610
  return {
4621
4611
  // Form methods with strict typing
4622
- register: S(
4623
- (y, B) => {
4624
- const $ = h[y], J = B == null ? void 0 : B.onBlur, K = async (re) => {
4612
+ register: x(
4613
+ (y, K) => {
4614
+ const $ = h[y], J = K == null ? void 0 : K.onBlur, B = async (re) => {
4625
4615
  J && await J(re);
4626
4616
  let ge = !0;
4627
- s === "onBlur" || s === "onTouched" || s === "all" ? ge = await F.trigger(y) : ge = !F.getFieldState(y, F.formState).error, ge && await ee(y);
4617
+ s === "onBlur" || s === "onTouched" || s === "all" ? ge = await _.trigger(y) : ge = !_.getFieldState(y, _.formState).error, ge && await ee(y);
4628
4618
  };
4629
- return F.register(y, {
4619
+ return _.register(y, {
4630
4620
  ...$,
4631
- ...B,
4632
- onBlur: K
4621
+ ...K,
4622
+ onBlur: B
4633
4623
  });
4634
4624
  },
4635
- [F, h, ee, s]
4625
+ [_, h, ee, s]
4636
4626
  ),
4637
- handleSubmit: Se,
4638
- watch: F.watch,
4627
+ handleSubmit: xe,
4628
+ watch: _.watch,
4639
4629
  // Type assertion for complex generic constraints
4640
- setValue: F.setValue,
4641
- reset: F.reset,
4630
+ setValue: _.setValue,
4631
+ reset: _.reset,
4642
4632
  // Flattened form state (NEW - direct access, no nested formState)
4643
- errors: F.formState.errors,
4644
- isValid: F.formState.isValid,
4645
- isDirty: F.formState.isDirty,
4646
- isSubmitting: F.formState.isSubmitting || X,
4647
- isSubmitSuccessful: F.formState.isSubmitSuccessful,
4633
+ errors: _.formState.errors,
4634
+ isValid: _.formState.isValid,
4635
+ isDirty: _.formState.isDirty,
4636
+ isSubmitting: _.formState.isSubmitting || X,
4637
+ isSubmitSuccessful: _.formState.isSubmitSuccessful,
4648
4638
  // BACKWARD COMPATIBILITY - Keep formState for existing components
4649
- formState: F.formState,
4639
+ formState: _.formState,
4650
4640
  // Loading states
4651
4641
  isLoadingInitialData: Pe,
4652
4642
  isLoadingRecord: we,
4653
4643
  isLoading: Ye,
4654
4644
  // Error handling
4655
- loadError: Ke,
4645
+ loadError: Be,
4656
4646
  submitError: U,
4657
- hasError: Ie,
4647
+ hasError: je,
4658
4648
  // Schema information
4659
4649
  schema: se,
4660
- processedSchema: g,
4650
+ schemaConfig: g,
4661
4651
  computedFields: u,
4662
4652
  requiredFields: w,
4663
4653
  // Field helpers
4664
4654
  getField: P,
4665
4655
  getFields: ce,
4666
- hasField: Fe,
4667
- isFieldRequired: _e,
4668
- isFieldComputed: ar,
4656
+ hasField: _e,
4657
+ isFieldRequired: Fe,
4658
+ isFieldComputed: sr,
4669
4659
  // Operations
4670
4660
  submit: H,
4671
4661
  refreshSchema: ze,
4672
4662
  validateForm: Ee,
4673
- clearErrors: Be
4663
+ clearErrors: Ke
4674
4664
  };
4675
4665
  }
4676
4666
  const Jr = 50, Hr = 5, Xr = 5;
4677
- function To({
4667
+ function ka({
4678
4668
  onCardMove: e,
4679
4669
  onError: r,
4680
4670
  columns: n,
4681
4671
  announceMove: t
4682
4672
  }) {
4683
- const [o, s] = xe({
4673
+ const [a, s] = Se({
4684
4674
  isDragging: !1,
4685
4675
  draggedCard: null,
4686
4676
  dragOverColumn: null,
4687
4677
  dragOverPosition: null,
4688
4678
  dragSourceColumn: null
4689
- }), i = he(null), l = he(null), c = he(null), d = S(() => {
4679
+ }), i = he(null), l = he(null), c = he(null), d = x(() => {
4690
4680
  s({
4691
4681
  isDragging: !1,
4692
4682
  draggedCard: null,
@@ -4694,18 +4684,18 @@ function To({
4694
4684
  dragOverPosition: null,
4695
4685
  dragSourceColumn: null
4696
4686
  }), l.current && (clearTimeout(l.current), l.current = null);
4697
- }, []), p = S((b) => n.find((C) => C._id === b) || null, [n]), E = S((b) => {
4687
+ }, []), p = x((b) => n.find((C) => C._id === b) || null, [n]), E = x((b) => {
4698
4688
  for (const C of n) {
4699
4689
  const f = C.cards.find((D) => D._id === b);
4700
4690
  if (f)
4701
4691
  return { card: f, column: C };
4702
4692
  }
4703
4693
  return null;
4704
- }, [n]), _ = S((b, C) => {
4694
+ }, [n]), F = x((b, C) => {
4705
4695
  var f, D;
4706
4696
  try {
4707
- const N = b.target, j = p(C.columnId);
4708
- if (!j)
4697
+ const N = b.target, I = p(C.columnId);
4698
+ if (!I)
4709
4699
  throw new Error("Source column not found");
4710
4700
  (f = b.dataTransfer) == null || f.setData("text/plain", C._id), (D = b.dataTransfer) == null || D.setData("application/json", JSON.stringify(C));
4711
4701
  const z = N.cloneNode(!0);
@@ -4726,13 +4716,13 @@ function To({
4726
4716
  draggedCard: C,
4727
4717
  dragOverColumn: null,
4728
4718
  dragOverPosition: null,
4729
- dragSourceColumn: j._id
4730
- }), t == null || t(C, j.title, "being moved");
4719
+ dragSourceColumn: I._id
4720
+ }), t == null || t(C, I.title, "being moved");
4731
4721
  } catch (N) {
4732
4722
  r == null || r(N instanceof Error ? N : new Error("Drag start failed")), d();
4733
4723
  }
4734
- }, [p, r, d, t]), G = S((b, C) => {
4735
- if (b.preventDefault(), !o.isDragging || !o.draggedCard) return;
4724
+ }, [p, r, d, t]), G = x((b, C) => {
4725
+ if (b.preventDefault(), !a.isDragging || !a.draggedCard) return;
4736
4726
  const f = C ? p(C) : null;
4737
4727
  s((D) => ({
4738
4728
  ...D,
@@ -4740,11 +4730,11 @@ function To({
4740
4730
  dragOverPosition: null
4741
4731
  // Will be calculated based on mouse position
4742
4732
  })), ne(b);
4743
- }, [o.isDragging, o.draggedCard, p]), Y = S((b, C) => {
4744
- if (b.preventDefault(), !(!o.isDragging || !o.draggedCard))
4733
+ }, [a.isDragging, a.draggedCard, p]), Y = x((b, C) => {
4734
+ if (b.preventDefault(), !(!a.isDragging || !a.draggedCard))
4745
4735
  try {
4746
- const f = o.draggedCard, D = o.dragSourceColumn, N = p(C), j = p(D);
4747
- if (!N || !j)
4736
+ const f = a.draggedCard, D = a.dragSourceColumn, N = p(C), I = p(D);
4737
+ if (!N || !I)
4748
4738
  throw new Error("Target or source column not found");
4749
4739
  if (D === C) {
4750
4740
  d();
@@ -4752,46 +4742,46 @@ function To({
4752
4742
  }
4753
4743
  if (N.limit && N.cards.length >= N.limit)
4754
4744
  throw new Error(`Column "${N.title}" has reached its limit of ${N.limit} cards`);
4755
- e == null || e(f, D, C), t == null || t(f, j.title, N.title);
4745
+ e == null || e(f, D, C), t == null || t(f, I.title, N.title);
4756
4746
  } catch (f) {
4757
4747
  r == null || r(f instanceof Error ? f : new Error("Drop failed"));
4758
4748
  } finally {
4759
4749
  d();
4760
4750
  }
4761
- }, [o, p, e, r, d, t]), g = S(() => {
4751
+ }, [a, p, e, r, d, t]), g = x(() => {
4762
4752
  i.current && (document.body.removeChild(i.current), i.current = null), d();
4763
- }, [d]), ne = S((b) => {
4753
+ }, [d]), ne = x((b) => {
4764
4754
  const C = b.target.closest(".kanban-container");
4765
4755
  if (!C) return;
4766
4756
  const f = C.getBoundingClientRect(), D = b.clientX - f.left, N = f.width;
4767
- let j = 0;
4768
- if (D < Jr ? j = -Hr : D > N - Jr && (j = Hr), j !== 0) {
4757
+ let I = 0;
4758
+ if (D < Jr ? I = -Hr : D > N - Jr && (I = Hr), I !== 0) {
4769
4759
  l.current && clearTimeout(l.current);
4770
4760
  const z = () => {
4771
- C.scrollLeft += j, l.current = setTimeout(z, 16);
4761
+ C.scrollLeft += I, l.current = setTimeout(z, 16);
4772
4762
  };
4773
4763
  l.current = setTimeout(z, 100);
4774
4764
  } else
4775
4765
  l.current && (clearTimeout(l.current), l.current = null);
4776
- }, []), v = S((b, C) => {
4766
+ }, []), v = x((b, C) => {
4777
4767
  if (!["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Enter", "Space", "Escape"].includes(b.key))
4778
4768
  return;
4779
4769
  b.preventDefault();
4780
4770
  const f = E(C._id);
4781
4771
  if (!f) return;
4782
- const { column: D } = f, N = n.findIndex((j) => j._id === D._id);
4772
+ const { column: D } = f, N = n.findIndex((I) => I._id === D._id);
4783
4773
  try {
4784
4774
  switch (b.key) {
4785
4775
  case "ArrowLeft":
4786
4776
  if (N > 0) {
4787
- const j = n[N - 1];
4788
- e == null || e(C, D._id, j._id), t == null || t(C, D.title, j.title);
4777
+ const I = n[N - 1];
4778
+ e == null || e(C, D._id, I._id), t == null || t(C, D.title, I.title);
4789
4779
  }
4790
4780
  break;
4791
4781
  case "ArrowRight":
4792
4782
  if (N < n.length - 1) {
4793
- const j = n[N + 1];
4794
- e == null || e(C, D._id, j._id), t == null || t(C, D.title, j.title);
4783
+ const I = n[N + 1];
4784
+ e == null || e(C, D._id, I._id), t == null || t(C, D.title, I.title);
4795
4785
  }
4796
4786
  break;
4797
4787
  case "ArrowUp":
@@ -4808,43 +4798,43 @@ function To({
4808
4798
  t == null || t(C, "drag mode", "cancelled");
4809
4799
  break;
4810
4800
  }
4811
- } catch (j) {
4812
- r == null || r(j instanceof Error ? j : new Error("Keyboard navigation failed"));
4801
+ } catch (I) {
4802
+ r == null || r(I instanceof Error ? I : new Error("Keyboard navigation failed"));
4813
4803
  }
4814
- }, [E, n, e, r, t]), O = S((b, C) => {
4804
+ }, [E, n, e, r, t]), O = x((b, C) => {
4815
4805
  const f = b.touches[0];
4816
4806
  c.current = {
4817
4807
  x: f.clientX,
4818
4808
  y: f.clientY,
4819
4809
  card: C
4820
4810
  };
4821
- }, []), U = S((b) => {
4811
+ }, []), U = x((b) => {
4822
4812
  if (!c.current) return;
4823
4813
  const C = b.touches[0], f = Math.abs(C.clientX - c.current.x), D = Math.abs(C.clientY - c.current.y);
4824
4814
  if (f > Xr || D > Xr) {
4825
- const N = c.current.card, j = p(N.columnId);
4826
- if (!j) return;
4815
+ const N = c.current.card, I = p(N.columnId);
4816
+ if (!I) return;
4827
4817
  s({
4828
4818
  isDragging: !0,
4829
4819
  draggedCard: N,
4830
4820
  dragOverColumn: null,
4831
4821
  dragOverPosition: null,
4832
- dragSourceColumn: j._id
4833
- }), t == null || t(N, j.title, "being moved");
4822
+ dragSourceColumn: I._id
4823
+ }), t == null || t(N, I.title, "being moved");
4834
4824
  }
4835
- }, [p, t]), V = S((b) => {
4836
- if (!o.isDragging || !o.draggedCard || !c.current) {
4825
+ }, [p, t]), V = x((b) => {
4826
+ if (!a.isDragging || !a.draggedCard || !c.current) {
4837
4827
  c.current = null;
4838
4828
  return;
4839
4829
  }
4840
4830
  try {
4841
4831
  const C = b.changedTouches[0], f = document.elementFromPoint(C.clientX, C.clientY), D = f == null ? void 0 : f.closest("[data-column-id]");
4842
4832
  if (D) {
4843
- const N = D.dataset.columnId, j = o.draggedCard, z = o.dragSourceColumn, W = p(N), Z = p(z);
4833
+ const N = D.dataset.columnId, I = a.draggedCard, z = a.dragSourceColumn, W = p(N), Z = p(z);
4844
4834
  if (W && Z && z !== N) {
4845
4835
  if (W.limit && W.cards.length >= W.limit)
4846
4836
  throw new Error(`Column "${W.title}" has reached its limit of ${W.limit} cards`);
4847
- e == null || e(j, z, N), t == null || t(j, Z.title, W.title);
4837
+ e == null || e(I, z, N), t == null || t(I, Z.title, W.title);
4848
4838
  }
4849
4839
  }
4850
4840
  } catch (C) {
@@ -4852,7 +4842,7 @@ function To({
4852
4842
  } finally {
4853
4843
  c.current = null, d();
4854
4844
  }
4855
- }, [o, p, e, r, d, t]), X = S((b, C, f) => {
4845
+ }, [a, p, e, r, d, t]), X = x((b, C, f) => {
4856
4846
  const D = `Moved "${b.title}" from ${C} to ${f}`, N = document.createElement("div");
4857
4847
  N.setAttribute("aria-live", "polite"), N.setAttribute("aria-atomic", "true"), N.className = "sr-only", N.textContent = D, document.body.appendChild(N), setTimeout(() => {
4858
4848
  document.body.removeChild(N);
@@ -4862,13 +4852,13 @@ function To({
4862
4852
  l.current && clearTimeout(l.current), i.current && document.body.contains(i.current) && document.body.removeChild(i.current);
4863
4853
  }, []), {
4864
4854
  // State
4865
- isDragging: o.isDragging,
4866
- draggedCard: o.draggedCard,
4867
- dragOverColumn: o.dragOverColumn,
4868
- dragOverPosition: o.dragOverPosition,
4869
- dragSourceColumn: o.dragSourceColumn,
4855
+ isDragging: a.isDragging,
4856
+ draggedCard: a.draggedCard,
4857
+ dragOverColumn: a.dragOverColumn,
4858
+ dragOverPosition: a.dragOverPosition,
4859
+ dragSourceColumn: a.dragSourceColumn,
4870
4860
  // Handlers
4871
- handleDragStart: _,
4861
+ handleDragStart: F,
4872
4862
  handleDragOver: G,
4873
4863
  handleDrop: Y,
4874
4864
  handleDragEnd: g,
@@ -4881,13 +4871,13 @@ function To({
4881
4871
  reset: d
4882
4872
  };
4883
4873
  }
4884
- function ca(e) {
4885
- var Ye, Ke, Ie;
4874
+ function uo(e) {
4875
+ var Ye, Be, je;
4886
4876
  const {
4887
4877
  columns: r,
4888
4878
  cardSource: n,
4889
4879
  source: t,
4890
- enableDragDrop: o = !0,
4880
+ enableDragDrop: a = !0,
4891
4881
  initialState: s,
4892
4882
  onCardMove: i,
4893
4883
  onCardCreate: l,
@@ -4897,12 +4887,12 @@ function ca(e) {
4897
4887
  } = e, E = t || n;
4898
4888
  if (!E)
4899
4889
  throw new Error('useKanban requires either "source" or "cardSource" parameter');
4900
- const [_, G] = xe({
4890
+ const [F, G] = Se({
4901
4891
  query: (s == null ? void 0 : s.search) || ""
4902
- }), [Y] = xe({
4892
+ }), [Y] = Se({
4903
4893
  field: ((Ye = s == null ? void 0 : s.sorting) == null ? void 0 : Ye.field) || null,
4904
- direction: ((Ke = s == null ? void 0 : s.sorting) == null ? void 0 : Ke.direction) || null
4905
- }), [g, ne] = xe(() => {
4894
+ direction: ((Be = s == null ? void 0 : s.sorting) == null ? void 0 : Be.direction) || null
4895
+ }), [g, ne] = Se(() => {
4906
4896
  const u = {};
4907
4897
  return r.forEach((w) => {
4908
4898
  u[w.id] = 10;
@@ -4911,10 +4901,10 @@ function ca(e) {
4911
4901
  Oe(() => {
4912
4902
  v.current = p, O.current = i, U.current = l, V.current = c, X.current = d;
4913
4903
  }, [p, i, l, c, d]);
4914
- const b = at(), C = xt({
4904
+ const b = ot(), C = St({
4915
4905
  initialConditions: s == null ? void 0 : s.filters,
4916
4906
  initialOperator: (s == null ? void 0 : s.filterOperator) || "And"
4917
- }), f = S((u) => {
4907
+ }), f = x((u) => {
4918
4908
  const w = {
4919
4909
  LHSField: "columnId",
4920
4910
  Operator: "EQ",
@@ -4944,8 +4934,8 @@ function ca(e) {
4944
4934
  ] : y.Sort = [
4945
4935
  { columnId: "ASC" },
4946
4936
  { position: "ASC" }
4947
- ], _.query && (y.Search = _.query), y;
4948
- }, [C.payload, g, Y, _.query]), D = zt({
4937
+ ], F.query && (y.Search = F.query), y;
4938
+ }, [C.payload, g, Y, F.query]), D = zt({
4949
4939
  queries: r.map((u) => {
4950
4940
  const w = f(u.id);
4951
4941
  return {
@@ -4957,20 +4947,20 @@ function ca(e) {
4957
4947
  throw h;
4958
4948
  }
4959
4949
  },
4960
- placeholderData: Bt,
4950
+ placeholderData: Kt,
4961
4951
  staleTime: 30 * 1e3
4962
4952
  };
4963
4953
  })
4964
- }), N = D.some((u) => u.isLoading), j = D.some((u) => u.isFetching), z = ((Ie = D.find((u) => u.error)) == null ? void 0 : Ie.error) || null, W = async () => {
4954
+ }), N = D.some((u) => u.isLoading), I = D.some((u) => u.isFetching), z = ((je = D.find((u) => u.error)) == null ? void 0 : je.error) || null, W = async () => {
4965
4955
  await Promise.all(D.map((u) => u.refetch()));
4966
4956
  }, Z = ye(() => {
4967
4957
  const u = {};
4968
- return _.query && (u.Search = _.query), C.payload && (u.Filter = C.payload), u;
4969
- }, [_.query, C.payload]), {
4958
+ return F.query && (u.Search = F.query), C.payload && (u.Filter = C.payload), u;
4959
+ }, [F.query, C.payload]), {
4970
4960
  data: se,
4971
4961
  isLoading: q,
4972
4962
  error: ie
4973
- } = tr({
4963
+ } = nr({
4974
4964
  queryKey: ["kanban-count", E, Z],
4975
4965
  queryFn: async () => {
4976
4966
  try {
@@ -4981,7 +4971,7 @@ function ca(e) {
4981
4971
  },
4982
4972
  staleTime: 30 * 1e3,
4983
4973
  gcTime: 60 * 1e3
4984
- }), A = sr({
4974
+ }), A = ir({
4985
4975
  mutationFn: async (u) => {
4986
4976
  const w = u.position ?? 999999;
4987
4977
  return (await Re(E).create({ ...u, position: w }))._id;
@@ -4991,7 +4981,7 @@ function ca(e) {
4991
4981
  await b.cancelQueries({ queryKey: k });
4992
4982
  const y = b.getQueryData(k);
4993
4983
  if (y) {
4994
- const B = y.Data, $ = u.position ?? B.length, J = `temp-${Date.now()}`, K = {
4984
+ const K = y.Data, $ = u.position ?? K.length, J = `temp-${Date.now()}`, B = {
4995
4985
  ...u,
4996
4986
  _id: J,
4997
4987
  position: $,
@@ -5000,7 +4990,7 @@ function ca(e) {
5000
4990
  };
5001
4991
  b.setQueryData(k, {
5002
4992
  ...y,
5003
- Data: [...y.Data, K]
4993
+ Data: [...y.Data, B]
5004
4994
  });
5005
4995
  }
5006
4996
  return { previousCards: y, queryKey: k };
@@ -5020,7 +5010,7 @@ function ca(e) {
5020
5010
  const k = h.columnId, y = f(k);
5021
5011
  b.invalidateQueries({ queryKey: ["kanban-cards", E, k, y] });
5022
5012
  }
5023
- }), le = sr({
5013
+ }), le = ir({
5024
5014
  mutationFn: async ({ id: u, updates: w }) => (await Re(E).update(u, w), { id: u, updates: w }),
5025
5015
  onMutate: async () => (await b.cancelQueries({ queryKey: ["kanban-cards", E] }), {}),
5026
5016
  onSuccess: async (u) => {
@@ -5034,7 +5024,7 @@ function ca(e) {
5034
5024
  onSettled: () => {
5035
5025
  b.invalidateQueries({ queryKey: ["kanban-cards", E] });
5036
5026
  }
5037
- }), we = sr({
5027
+ }), we = ir({
5038
5028
  mutationFn: async (u) => (await Re(E).delete(u), u),
5039
5029
  onMutate: async () => (await b.cancelQueries({ queryKey: ["kanban-cards", E] }), {}),
5040
5030
  onSuccess: async (u) => {
@@ -5048,21 +5038,21 @@ function ca(e) {
5048
5038
  onSettled: () => {
5049
5039
  b.invalidateQueries({ queryKey: ["kanban-cards", E] });
5050
5040
  }
5051
- }), fe = sr({
5041
+ }), fe = ir({
5052
5042
  mutationFn: async ({ cardId: u, fromColumnId: w, toColumnId: h, position: k }) => {
5053
5043
  const y = { columnId: h, ...k !== void 0 && { position: k } };
5054
5044
  return await Re(E).update(u, y), { cardId: u, fromColumnId: w, toColumnId: h, position: k };
5055
5045
  },
5056
5046
  onMutate: async ({ cardId: u, fromColumnId: w, toColumnId: h, position: k }) => {
5057
- const y = f(w), B = f(h), $ = ["kanban-cards", E, w, y], J = ["kanban-cards", E, h, B];
5047
+ const y = f(w), K = f(h), $ = ["kanban-cards", E, w, y], J = ["kanban-cards", E, h, K];
5058
5048
  await b.cancelQueries({ queryKey: $ }), await b.cancelQueries({ queryKey: J });
5059
- const K = b.getQueryData($), re = b.getQueryData(J);
5060
- if (K && re) {
5061
- const ge = K.Data.find((be) => be._id === u);
5049
+ const B = b.getQueryData($), re = b.getQueryData(J);
5050
+ if (B && re) {
5051
+ const ge = B.Data.find((be) => be._id === u);
5062
5052
  if (ge) {
5063
5053
  const be = {
5064
- ...K,
5065
- Data: K.Data.filter(($e) => $e._id !== u)
5054
+ ...B,
5055
+ Data: B.Data.filter(($e) => $e._id !== u)
5066
5056
  }, Ne = {
5067
5057
  ...ge,
5068
5058
  columnId: h,
@@ -5076,7 +5066,7 @@ function ca(e) {
5076
5066
  }
5077
5067
  }
5078
5068
  return {
5079
- previousFromData: K,
5069
+ previousFromData: B,
5080
5070
  previousToData: re,
5081
5071
  fromQueryKey: $,
5082
5072
  toQueryKey: J,
@@ -5101,7 +5091,7 @@ function ca(e) {
5101
5091
  const k = f(h.fromColumnId), y = f(h.toColumnId);
5102
5092
  b.invalidateQueries({ queryKey: ["kanban-cards", E, h.fromColumnId, k] }), b.invalidateQueries({ queryKey: ["kanban-cards", E, h.toColumnId, y] });
5103
5093
  }
5104
- }), ve = sr({
5094
+ }), ve = ir({
5105
5095
  mutationFn: async ({ cardIds: u, columnId: w }) => {
5106
5096
  const h = u.map((k, y) => ({ id: k, position: y, columnId: w }));
5107
5097
  await Promise.all(
@@ -5124,7 +5114,7 @@ function ca(e) {
5124
5114
  const k = f(h.columnId);
5125
5115
  b.invalidateQueries({ queryKey: ["kanban-cards", E, h.columnId, k] });
5126
5116
  }
5127
- }), F = S(
5117
+ }), _ = x(
5128
5118
  async (u, w, h) => {
5129
5119
  try {
5130
5120
  await fe.mutateAsync({
@@ -5137,7 +5127,7 @@ function ca(e) {
5137
5127
  }
5138
5128
  },
5139
5129
  [fe]
5140
- ), oe = ye(() => r.sort((u, w) => u.position - w.position).map((u, w) => {
5130
+ ), ae = ye(() => r.sort((u, w) => u.position - w.position).map((u, w) => {
5141
5131
  var y;
5142
5132
  const k = ((y = D[w].data) == null ? void 0 : y.Data) || [];
5143
5133
  return {
@@ -5146,65 +5136,65 @@ function ca(e) {
5146
5136
  position: u.position,
5147
5137
  color: u.color,
5148
5138
  limit: u.limit,
5149
- cards: k.sort((B, $) => B.position - $.position),
5139
+ cards: k.sort((K, $) => K.position - $.position),
5150
5140
  _created_at: /* @__PURE__ */ new Date(),
5151
5141
  _modified_at: /* @__PURE__ */ new Date()
5152
5142
  };
5153
- }), [r, D]), ee = To({
5154
- onCardMove: F,
5143
+ }), [r, D]), ee = ka({
5144
+ onCardMove: _,
5155
5145
  onError: v.current,
5156
- columns: oe,
5146
+ columns: ae,
5157
5147
  announceMove: (u, w, h) => {
5158
5148
  console.log(
5159
5149
  `Kanban: Moved "${u.title}" from ${w} to ${h}`
5160
5150
  );
5161
5151
  }
5162
- }), Ee = S(
5152
+ }), Ee = x(
5163
5153
  (u) => {
5164
5154
  var w, h;
5165
5155
  return {
5166
5156
  draggable: !0,
5167
5157
  role: "option",
5168
- "aria-selected": o && ((w = ee.draggedCard) == null ? void 0 : w._id) === u._id,
5169
- "aria-grabbed": o && ((h = ee.draggedCard) == null ? void 0 : h._id) === u._id,
5158
+ "aria-selected": a && ((w = ee.draggedCard) == null ? void 0 : w._id) === u._id,
5159
+ "aria-grabbed": a && ((h = ee.draggedCard) == null ? void 0 : h._id) === u._id,
5170
5160
  onDragStart: (k) => {
5171
- if (!o) return;
5161
+ if (!a) return;
5172
5162
  k.dataTransfer.setData("text/plain", JSON.stringify(u));
5173
5163
  const y = k.nativeEvent || k;
5174
5164
  ee.handleDragStart(y, u);
5175
5165
  },
5176
5166
  onDragEnd: ee.handleDragEnd,
5177
5167
  onKeyDown: (k) => {
5178
- if (!o) return;
5168
+ if (!a) return;
5179
5169
  const y = k.nativeEvent || k;
5180
5170
  ee.handleKeyDown(y, u);
5181
5171
  }
5182
5172
  };
5183
5173
  },
5184
- [o, ee]
5185
- ), H = S(
5174
+ [a, ee]
5175
+ ), H = x(
5186
5176
  (u) => ({
5187
5177
  "data-column-id": u,
5188
5178
  role: "listbox",
5189
5179
  onDragOver: (w) => {
5190
- if (!o) return;
5180
+ if (!a) return;
5191
5181
  const h = w.nativeEvent || w;
5192
5182
  ee.handleDragOver(h, u);
5193
5183
  },
5194
5184
  onDrop: (w) => {
5195
- if (!o) return;
5185
+ if (!a) return;
5196
5186
  const h = w.nativeEvent || w;
5197
5187
  ee.handleDrop(h, u);
5198
5188
  }
5199
5189
  }),
5200
- [o, ee]
5201
- ), Se = S((u) => {
5190
+ [a, ee]
5191
+ ), xe = x((u) => {
5202
5192
  G({ query: u });
5203
- }, []), P = S(() => {
5193
+ }, []), P = x(() => {
5204
5194
  G({ query: "" });
5205
- }, []), ce = (se == null ? void 0 : se.Count) || 0, Fe = N || q, _e = j, ar = A.isPending || le.isPending || we.isPending || fe.isPending || ve.isPending, ze = z || ie, Be = S(async () => {
5195
+ }, []), ce = (se == null ? void 0 : se.Count) || 0, _e = N || q, Fe = I, sr = A.isPending || le.isPending || we.isPending || fe.isPending || ve.isPending, ze = z || ie, Ke = x(async () => {
5206
5196
  await W();
5207
- }, [W]), Pe = S(async () => {
5197
+ }, [W]), Pe = x(async () => {
5208
5198
  await b.invalidateQueries({
5209
5199
  predicate: (u) => u.queryKey[0] === "kanban-cards" || u.queryKey[0] === "kanban-count"
5210
5200
  });
@@ -5213,32 +5203,32 @@ function ca(e) {
5213
5203
  ze && v.current && v.current(ze);
5214
5204
  }, [ze]), {
5215
5205
  // Data
5216
- columns: oe,
5206
+ columns: ae,
5217
5207
  totalCards: ce,
5218
5208
  // Loading States
5219
- isLoading: Fe,
5220
- isFetching: _e,
5221
- isUpdating: ar,
5209
+ isLoading: _e,
5210
+ isFetching: Fe,
5211
+ isUpdating: sr,
5222
5212
  // Error Handling
5223
5213
  error: ze,
5224
5214
  // Card Operations (Flat Access)
5225
5215
  createCard: A.mutateAsync,
5226
- updateCard: S(
5216
+ updateCard: x(
5227
5217
  async (u, w) => {
5228
5218
  await le.mutateAsync({ id: u, updates: w });
5229
5219
  },
5230
5220
  [le]
5231
5221
  ),
5232
- deleteCard: S(
5222
+ deleteCard: x(
5233
5223
  async (u) => {
5234
5224
  await we.mutateAsync(u);
5235
5225
  },
5236
5226
  [we]
5237
5227
  ),
5238
- moveCard: S(
5228
+ moveCard: x(
5239
5229
  async (u, w, h, k) => {
5240
5230
  if (!k) {
5241
- for (const y of oe)
5231
+ for (const y of ae)
5242
5232
  if (y.cards.find(($) => $._id === u)) {
5243
5233
  k = y._id;
5244
5234
  break;
@@ -5248,51 +5238,51 @@ function ca(e) {
5248
5238
  }
5249
5239
  await fe.mutateAsync({ cardId: u, fromColumnId: k, toColumnId: w, position: h });
5250
5240
  },
5251
- [fe, oe]
5241
+ [fe, ae]
5252
5242
  ),
5253
- reorderCards: S(
5243
+ reorderCards: x(
5254
5244
  async (u, w) => {
5255
5245
  await ve.mutateAsync({ cardIds: u, columnId: w });
5256
5246
  },
5257
5247
  [ve]
5258
5248
  ),
5259
5249
  // Search (Flat Access)
5260
- searchQuery: _.query,
5261
- setSearchQuery: Se,
5250
+ searchQuery: F.query,
5251
+ setSearchQuery: xe,
5262
5252
  clearSearch: P,
5263
5253
  // Filter (Simplified chainable API)
5264
5254
  filter: C,
5265
5255
  // Drag Drop (Flat Access)
5266
- isDragging: o ? ee.isDragging : !1,
5267
- draggedCard: o ? ee.draggedCard : null,
5268
- dragOverColumn: o ? ee.dragOverColumn : null,
5269
- handleDragStart: o ? ee.handleDragStart : () => {
5256
+ isDragging: a ? ee.isDragging : !1,
5257
+ draggedCard: a ? ee.draggedCard : null,
5258
+ dragOverColumn: a ? ee.dragOverColumn : null,
5259
+ handleDragStart: a ? ee.handleDragStart : () => {
5270
5260
  },
5271
- handleDragOver: o ? ee.handleDragOver : () => {
5261
+ handleDragOver: a ? ee.handleDragOver : () => {
5272
5262
  },
5273
- handleDrop: o ? ee.handleDrop : () => {
5263
+ handleDrop: a ? ee.handleDrop : () => {
5274
5264
  },
5275
- handleDragEnd: o ? ee.handleDragEnd : () => {
5265
+ handleDragEnd: a ? ee.handleDragEnd : () => {
5276
5266
  },
5277
- handleKeyDown: o ? ee.handleKeyDown : () => {
5267
+ handleKeyDown: a ? ee.handleKeyDown : () => {
5278
5268
  },
5279
5269
  // Prop Getters
5280
- getCardProps: o ? Ee : (u) => ({}),
5281
- getColumnProps: o ? H : (u) => ({}),
5270
+ getCardProps: a ? Ee : (u) => ({}),
5271
+ getColumnProps: a ? H : (u) => ({}),
5282
5272
  // Load More (Per Column)
5283
- loadMore: S((u) => {
5273
+ loadMore: x((u) => {
5284
5274
  ne((w) => ({
5285
5275
  ...w,
5286
5276
  [u]: (w[u] || 10) + 10
5287
5277
  }));
5288
5278
  }, []),
5289
5279
  // Utilities
5290
- refetch: Be,
5280
+ refetch: Ke,
5291
5281
  refresh: Pe
5292
5282
  };
5293
5283
  }
5294
- ot(null);
5295
- var Dr = { exports: {} }, cr = {};
5284
+ at(null);
5285
+ var Dr = { exports: {} }, lr = {};
5296
5286
  /**
5297
5287
  * @license React
5298
5288
  * react-jsx-runtime.production.min.js
@@ -5303,20 +5293,20 @@ var Dr = { exports: {} }, cr = {};
5303
5293
  * LICENSE file in the root directory of this source tree.
5304
5294
  */
5305
5295
  var Zr;
5306
- function Oo() {
5307
- if (Zr) return cr;
5296
+ function Ra() {
5297
+ if (Zr) return lr;
5308
5298
  Zr = 1;
5309
- var e = nt, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
5299
+ var e = nt, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
5310
5300
  function i(l, c, d) {
5311
- var p, E = {}, _ = null, G = null;
5312
- d !== void 0 && (_ = "" + d), c.key !== void 0 && (_ = "" + c.key), c.ref !== void 0 && (G = c.ref);
5301
+ var p, E = {}, F = null, G = null;
5302
+ d !== void 0 && (F = "" + d), c.key !== void 0 && (F = "" + c.key), c.ref !== void 0 && (G = c.ref);
5313
5303
  for (p in c) t.call(c, p) && !s.hasOwnProperty(p) && (E[p] = c[p]);
5314
5304
  if (l && l.defaultProps) for (p in c = l.defaultProps, c) E[p] === void 0 && (E[p] = c[p]);
5315
- return { $$typeof: r, type: l, key: _, ref: G, props: E, _owner: o.current };
5305
+ return { $$typeof: r, type: l, key: F, ref: G, props: E, _owner: a.current };
5316
5306
  }
5317
- return cr.Fragment = n, cr.jsx = i, cr.jsxs = i, cr;
5307
+ return lr.Fragment = n, lr.jsx = i, lr.jsxs = i, lr;
5318
5308
  }
5319
- var lr = {};
5309
+ var ur = {};
5320
5310
  /**
5321
5311
  * @license React
5322
5312
  * react-jsx-runtime.development.js
@@ -5327,90 +5317,90 @@ var lr = {};
5327
5317
  * LICENSE file in the root directory of this source tree.
5328
5318
  */
5329
5319
  var et;
5330
- function Ao() {
5320
+ function Ta() {
5331
5321
  return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
5332
- var e = nt, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), Y = Symbol.iterator, g = "@@iterator";
5333
- function ne(a) {
5334
- if (a === null || typeof a != "object")
5322
+ var e = nt, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), Y = Symbol.iterator, g = "@@iterator";
5323
+ function ne(o) {
5324
+ if (o === null || typeof o != "object")
5335
5325
  return null;
5336
- var m = Y && a[Y] || a[g];
5326
+ var m = Y && o[Y] || o[g];
5337
5327
  return typeof m == "function" ? m : null;
5338
5328
  }
5339
5329
  var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
5340
- function O(a) {
5330
+ function O(o) {
5341
5331
  {
5342
- for (var m = arguments.length, x = new Array(m > 1 ? m - 1 : 0), I = 1; I < m; I++)
5343
- x[I - 1] = arguments[I];
5344
- U("error", a, x);
5332
+ for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), j = 1; j < m; j++)
5333
+ S[j - 1] = arguments[j];
5334
+ U("error", o, S);
5345
5335
  }
5346
5336
  }
5347
- function U(a, m, x) {
5337
+ function U(o, m, S) {
5348
5338
  {
5349
- var I = v.ReactDebugCurrentFrame, te = I.getStackAddendum();
5350
- te !== "" && (m += "%s", x = x.concat([te]));
5351
- var ae = x.map(function(Q) {
5339
+ var j = v.ReactDebugCurrentFrame, te = j.getStackAddendum();
5340
+ te !== "" && (m += "%s", S = S.concat([te]));
5341
+ var oe = S.map(function(Q) {
5352
5342
  return String(Q);
5353
5343
  });
5354
- ae.unshift("Warning: " + m), Function.prototype.apply.call(console[a], console, ae);
5344
+ oe.unshift("Warning: " + m), Function.prototype.apply.call(console[o], console, oe);
5355
5345
  }
5356
5346
  }
5357
5347
  var V = !1, X = !1, b = !1, C = !1, f = !1, D;
5358
5348
  D = Symbol.for("react.module.reference");
5359
- function N(a) {
5360
- return !!(typeof a == "string" || typeof a == "function" || a === t || a === s || f || a === o || a === d || a === p || C || a === G || V || X || b || typeof a == "object" && a !== null && (a.$$typeof === _ || a.$$typeof === E || a.$$typeof === i || a.$$typeof === l || a.$$typeof === c || // This needs to include all possible module reference object
5349
+ function N(o) {
5350
+ return !!(typeof o == "string" || typeof o == "function" || o === t || o === s || f || o === a || o === d || o === p || C || o === G || V || X || b || typeof o == "object" && o !== null && (o.$$typeof === F || o.$$typeof === E || o.$$typeof === i || o.$$typeof === l || o.$$typeof === c || // This needs to include all possible module reference object
5361
5351
  // types supported by any Flight configuration anywhere since
5362
5352
  // we don't know which Flight build this will end up being used
5363
5353
  // with.
5364
- a.$$typeof === D || a.getModuleId !== void 0));
5354
+ o.$$typeof === D || o.getModuleId !== void 0));
5365
5355
  }
5366
- function j(a, m, x) {
5367
- var I = a.displayName;
5368
- if (I)
5369
- return I;
5356
+ function I(o, m, S) {
5357
+ var j = o.displayName;
5358
+ if (j)
5359
+ return j;
5370
5360
  var te = m.displayName || m.name || "";
5371
- return te !== "" ? x + "(" + te + ")" : x;
5361
+ return te !== "" ? S + "(" + te + ")" : S;
5372
5362
  }
5373
- function z(a) {
5374
- return a.displayName || "Context";
5363
+ function z(o) {
5364
+ return o.displayName || "Context";
5375
5365
  }
5376
- function W(a) {
5377
- if (a == null)
5366
+ function W(o) {
5367
+ if (o == null)
5378
5368
  return null;
5379
- if (typeof a.tag == "number" && O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
5380
- return a.displayName || a.name || null;
5381
- if (typeof a == "string")
5382
- return a;
5383
- switch (a) {
5369
+ if (typeof o.tag == "number" && O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof o == "function")
5370
+ return o.displayName || o.name || null;
5371
+ if (typeof o == "string")
5372
+ return o;
5373
+ switch (o) {
5384
5374
  case t:
5385
5375
  return "Fragment";
5386
5376
  case n:
5387
5377
  return "Portal";
5388
5378
  case s:
5389
5379
  return "Profiler";
5390
- case o:
5380
+ case a:
5391
5381
  return "StrictMode";
5392
5382
  case d:
5393
5383
  return "Suspense";
5394
5384
  case p:
5395
5385
  return "SuspenseList";
5396
5386
  }
5397
- if (typeof a == "object")
5398
- switch (a.$$typeof) {
5387
+ if (typeof o == "object")
5388
+ switch (o.$$typeof) {
5399
5389
  case l:
5400
- var m = a;
5390
+ var m = o;
5401
5391
  return z(m) + ".Consumer";
5402
5392
  case i:
5403
- var x = a;
5404
- return z(x._context) + ".Provider";
5393
+ var S = o;
5394
+ return z(S._context) + ".Provider";
5405
5395
  case c:
5406
- return j(a, a.render, "ForwardRef");
5396
+ return I(o, o.render, "ForwardRef");
5407
5397
  case E:
5408
- var I = a.displayName || null;
5409
- return I !== null ? I : W(a.type) || "Memo";
5410
- case _: {
5411
- var te = a, ae = te._payload, Q = te._init;
5398
+ var j = o.displayName || null;
5399
+ return j !== null ? j : W(o.type) || "Memo";
5400
+ case F: {
5401
+ var te = o, oe = te._payload, Q = te._init;
5412
5402
  try {
5413
- return W(Q(ae));
5403
+ return W(Q(oe));
5414
5404
  } catch {
5415
5405
  return null;
5416
5406
  }
@@ -5419,27 +5409,27 @@ function Ao() {
5419
5409
  return null;
5420
5410
  }
5421
5411
  var Z = Object.assign, se = 0, q, ie, A, le, we, fe, ve;
5422
- function F() {
5412
+ function _() {
5423
5413
  }
5424
- F.__reactDisabledLog = !0;
5425
- function oe() {
5414
+ _.__reactDisabledLog = !0;
5415
+ function ae() {
5426
5416
  {
5427
5417
  if (se === 0) {
5428
5418
  q = console.log, ie = console.info, A = console.warn, le = console.error, we = console.group, fe = console.groupCollapsed, ve = console.groupEnd;
5429
- var a = {
5419
+ var o = {
5430
5420
  configurable: !0,
5431
5421
  enumerable: !0,
5432
- value: F,
5422
+ value: _,
5433
5423
  writable: !0
5434
5424
  };
5435
5425
  Object.defineProperties(console, {
5436
- info: a,
5437
- log: a,
5438
- warn: a,
5439
- error: a,
5440
- group: a,
5441
- groupCollapsed: a,
5442
- groupEnd: a
5426
+ info: o,
5427
+ log: o,
5428
+ warn: o,
5429
+ error: o,
5430
+ group: o,
5431
+ groupCollapsed: o,
5432
+ groupEnd: o
5443
5433
  });
5444
5434
  }
5445
5435
  se++;
@@ -5448,31 +5438,31 @@ function Ao() {
5448
5438
  function ee() {
5449
5439
  {
5450
5440
  if (se--, se === 0) {
5451
- var a = {
5441
+ var o = {
5452
5442
  configurable: !0,
5453
5443
  enumerable: !0,
5454
5444
  writable: !0
5455
5445
  };
5456
5446
  Object.defineProperties(console, {
5457
- log: Z({}, a, {
5447
+ log: Z({}, o, {
5458
5448
  value: q
5459
5449
  }),
5460
- info: Z({}, a, {
5450
+ info: Z({}, o, {
5461
5451
  value: ie
5462
5452
  }),
5463
- warn: Z({}, a, {
5453
+ warn: Z({}, o, {
5464
5454
  value: A
5465
5455
  }),
5466
- error: Z({}, a, {
5456
+ error: Z({}, o, {
5467
5457
  value: le
5468
5458
  }),
5469
- group: Z({}, a, {
5459
+ group: Z({}, o, {
5470
5460
  value: we
5471
5461
  }),
5472
- groupCollapsed: Z({}, a, {
5462
+ groupCollapsed: Z({}, o, {
5473
5463
  value: fe
5474
5464
  }),
5475
- groupEnd: Z({}, a, {
5465
+ groupEnd: Z({}, o, {
5476
5466
  value: ve
5477
5467
  })
5478
5468
  });
@@ -5481,38 +5471,38 @@ function Ao() {
5481
5471
  }
5482
5472
  }
5483
5473
  var Ee = v.ReactCurrentDispatcher, H;
5484
- function Se(a, m, x) {
5474
+ function xe(o, m, S) {
5485
5475
  {
5486
5476
  if (H === void 0)
5487
5477
  try {
5488
5478
  throw Error();
5489
5479
  } catch (te) {
5490
- var I = te.stack.trim().match(/\n( *(at )?)/);
5491
- H = I && I[1] || "";
5480
+ var j = te.stack.trim().match(/\n( *(at )?)/);
5481
+ H = j && j[1] || "";
5492
5482
  }
5493
5483
  return `
5494
- ` + H + a;
5484
+ ` + H + o;
5495
5485
  }
5496
5486
  }
5497
5487
  var P = !1, ce;
5498
5488
  {
5499
- var Fe = typeof WeakMap == "function" ? WeakMap : Map;
5500
- ce = new Fe();
5489
+ var _e = typeof WeakMap == "function" ? WeakMap : Map;
5490
+ ce = new _e();
5501
5491
  }
5502
- function _e(a, m) {
5503
- if (!a || P)
5492
+ function Fe(o, m) {
5493
+ if (!o || P)
5504
5494
  return "";
5505
5495
  {
5506
- var x = ce.get(a);
5507
- if (x !== void 0)
5508
- return x;
5496
+ var S = ce.get(o);
5497
+ if (S !== void 0)
5498
+ return S;
5509
5499
  }
5510
- var I;
5500
+ var j;
5511
5501
  P = !0;
5512
5502
  var te = Error.prepareStackTrace;
5513
5503
  Error.prepareStackTrace = void 0;
5514
- var ae;
5515
- ae = Ee.current, Ee.current = null, oe();
5504
+ var oe;
5505
+ oe = Ee.current, Ee.current = null, ae();
5516
5506
  try {
5517
5507
  if (m) {
5518
5508
  var Q = function() {
@@ -5526,29 +5516,29 @@ function Ao() {
5526
5516
  try {
5527
5517
  Reflect.construct(Q, []);
5528
5518
  } catch (ke) {
5529
- I = ke;
5519
+ j = ke;
5530
5520
  }
5531
- Reflect.construct(a, [], Q);
5521
+ Reflect.construct(o, [], Q);
5532
5522
  } else {
5533
5523
  try {
5534
5524
  Q.call();
5535
5525
  } catch (ke) {
5536
- I = ke;
5526
+ j = ke;
5537
5527
  }
5538
- a.call(Q.prototype);
5528
+ o.call(Q.prototype);
5539
5529
  }
5540
5530
  } else {
5541
5531
  try {
5542
5532
  throw Error();
5543
5533
  } catch (ke) {
5544
- I = ke;
5534
+ j = ke;
5545
5535
  }
5546
- a();
5536
+ o();
5547
5537
  }
5548
5538
  } catch (ke) {
5549
- if (ke && I && typeof ke.stack == "string") {
5539
+ if (ke && j && typeof ke.stack == "string") {
5550
5540
  for (var M = ke.stack.split(`
5551
- `), Ce = I.stack.split(`
5541
+ `), Ce = j.stack.split(`
5552
5542
  `), ue = M.length - 1, de = Ce.length - 1; ue >= 1 && de >= 0 && M[ue] !== Ce[de]; )
5553
5543
  de--;
5554
5544
  for (; ue >= 1 && de >= 0; ue--, de--)
@@ -5558,163 +5548,163 @@ function Ao() {
5558
5548
  if (ue--, de--, de < 0 || M[ue] !== Ce[de]) {
5559
5549
  var De = `
5560
5550
  ` + M[ue].replace(" at new ", " at ");
5561
- return a.displayName && De.includes("<anonymous>") && (De = De.replace("<anonymous>", a.displayName)), typeof a == "function" && ce.set(a, De), De;
5551
+ return o.displayName && De.includes("<anonymous>") && (De = De.replace("<anonymous>", o.displayName)), typeof o == "function" && ce.set(o, De), De;
5562
5552
  }
5563
5553
  while (ue >= 1 && de >= 0);
5564
5554
  break;
5565
5555
  }
5566
5556
  }
5567
5557
  } finally {
5568
- P = !1, Ee.current = ae, ee(), Error.prepareStackTrace = te;
5558
+ P = !1, Ee.current = oe, ee(), Error.prepareStackTrace = te;
5569
5559
  }
5570
- var er = a ? a.displayName || a.name : "", We = er ? Se(er) : "";
5571
- return typeof a == "function" && ce.set(a, We), We;
5560
+ var er = o ? o.displayName || o.name : "", We = er ? xe(er) : "";
5561
+ return typeof o == "function" && ce.set(o, We), We;
5572
5562
  }
5573
- function ar(a, m, x) {
5574
- return _e(a, !1);
5563
+ function sr(o, m, S) {
5564
+ return Fe(o, !1);
5575
5565
  }
5576
- function ze(a) {
5577
- var m = a.prototype;
5566
+ function ze(o) {
5567
+ var m = o.prototype;
5578
5568
  return !!(m && m.isReactComponent);
5579
5569
  }
5580
- function Be(a, m, x) {
5581
- if (a == null)
5570
+ function Ke(o, m, S) {
5571
+ if (o == null)
5582
5572
  return "";
5583
- if (typeof a == "function")
5584
- return _e(a, ze(a));
5585
- if (typeof a == "string")
5586
- return Se(a);
5587
- switch (a) {
5573
+ if (typeof o == "function")
5574
+ return Fe(o, ze(o));
5575
+ if (typeof o == "string")
5576
+ return xe(o);
5577
+ switch (o) {
5588
5578
  case d:
5589
- return Se("Suspense");
5579
+ return xe("Suspense");
5590
5580
  case p:
5591
- return Se("SuspenseList");
5581
+ return xe("SuspenseList");
5592
5582
  }
5593
- if (typeof a == "object")
5594
- switch (a.$$typeof) {
5583
+ if (typeof o == "object")
5584
+ switch (o.$$typeof) {
5595
5585
  case c:
5596
- return ar(a.render);
5586
+ return sr(o.render);
5597
5587
  case E:
5598
- return Be(a.type, m, x);
5599
- case _: {
5600
- var I = a, te = I._payload, ae = I._init;
5588
+ return Ke(o.type, m, S);
5589
+ case F: {
5590
+ var j = o, te = j._payload, oe = j._init;
5601
5591
  try {
5602
- return Be(ae(te), m, x);
5592
+ return Ke(oe(te), m, S);
5603
5593
  } catch {
5604
5594
  }
5605
5595
  }
5606
5596
  }
5607
5597
  return "";
5608
5598
  }
5609
- var Pe = Object.prototype.hasOwnProperty, Ye = {}, Ke = v.ReactDebugCurrentFrame;
5610
- function Ie(a) {
5611
- if (a) {
5612
- var m = a._owner, x = Be(a.type, a._source, m ? m.type : null);
5613
- Ke.setExtraStackFrame(x);
5599
+ var Pe = Object.prototype.hasOwnProperty, Ye = {}, Be = v.ReactDebugCurrentFrame;
5600
+ function je(o) {
5601
+ if (o) {
5602
+ var m = o._owner, S = Ke(o.type, o._source, m ? m.type : null);
5603
+ Be.setExtraStackFrame(S);
5614
5604
  } else
5615
- Ke.setExtraStackFrame(null);
5605
+ Be.setExtraStackFrame(null);
5616
5606
  }
5617
- function u(a, m, x, I, te) {
5607
+ function u(o, m, S, j, te) {
5618
5608
  {
5619
- var ae = Function.call.bind(Pe);
5620
- for (var Q in a)
5621
- if (ae(a, Q)) {
5609
+ var oe = Function.call.bind(Pe);
5610
+ for (var Q in o)
5611
+ if (oe(o, Q)) {
5622
5612
  var M = void 0;
5623
5613
  try {
5624
- if (typeof a[Q] != "function") {
5625
- var Ce = Error((I || "React class") + ": " + x + " type `" + Q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[Q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
5614
+ if (typeof o[Q] != "function") {
5615
+ var Ce = Error((j || "React class") + ": " + S + " type `" + Q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[Q] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
5626
5616
  throw Ce.name = "Invariant Violation", Ce;
5627
5617
  }
5628
- M = a[Q](m, Q, I, x, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
5618
+ M = o[Q](m, Q, j, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
5629
5619
  } catch (ue) {
5630
5620
  M = ue;
5631
5621
  }
5632
- M && !(M instanceof Error) && (Ie(te), O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", I || "React class", x, Q, typeof M), Ie(null)), M instanceof Error && !(M.message in Ye) && (Ye[M.message] = !0, Ie(te), O("Failed %s type: %s", x, M.message), Ie(null));
5622
+ M && !(M instanceof Error) && (je(te), O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", S, Q, typeof M), je(null)), M instanceof Error && !(M.message in Ye) && (Ye[M.message] = !0, je(te), O("Failed %s type: %s", S, M.message), je(null));
5633
5623
  }
5634
5624
  }
5635
5625
  }
5636
5626
  var w = Array.isArray;
5637
- function h(a) {
5638
- return w(a);
5627
+ function h(o) {
5628
+ return w(o);
5639
5629
  }
5640
- function k(a) {
5630
+ function k(o) {
5641
5631
  {
5642
- var m = typeof Symbol == "function" && Symbol.toStringTag, x = m && a[Symbol.toStringTag] || a.constructor.name || "Object";
5643
- return x;
5632
+ var m = typeof Symbol == "function" && Symbol.toStringTag, S = m && o[Symbol.toStringTag] || o.constructor.name || "Object";
5633
+ return S;
5644
5634
  }
5645
5635
  }
5646
- function y(a) {
5636
+ function y(o) {
5647
5637
  try {
5648
- return B(a), !1;
5638
+ return K(o), !1;
5649
5639
  } catch {
5650
5640
  return !0;
5651
5641
  }
5652
5642
  }
5653
- function B(a) {
5654
- return "" + a;
5643
+ function K(o) {
5644
+ return "" + o;
5655
5645
  }
5656
- function $(a) {
5657
- if (y(a))
5658
- return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", k(a)), B(a);
5646
+ function $(o) {
5647
+ if (y(o))
5648
+ return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", k(o)), K(o);
5659
5649
  }
5660
- var J = v.ReactCurrentOwner, K = {
5650
+ var J = v.ReactCurrentOwner, B = {
5661
5651
  key: !0,
5662
5652
  ref: !0,
5663
5653
  __self: !0,
5664
5654
  __source: !0
5665
5655
  }, re, ge;
5666
- function be(a) {
5667
- if (Pe.call(a, "ref")) {
5668
- var m = Object.getOwnPropertyDescriptor(a, "ref").get;
5656
+ function be(o) {
5657
+ if (Pe.call(o, "ref")) {
5658
+ var m = Object.getOwnPropertyDescriptor(o, "ref").get;
5669
5659
  if (m && m.isReactWarning)
5670
5660
  return !1;
5671
5661
  }
5672
- return a.ref !== void 0;
5662
+ return o.ref !== void 0;
5673
5663
  }
5674
- function Ne(a) {
5675
- if (Pe.call(a, "key")) {
5676
- var m = Object.getOwnPropertyDescriptor(a, "key").get;
5664
+ function Ne(o) {
5665
+ if (Pe.call(o, "key")) {
5666
+ var m = Object.getOwnPropertyDescriptor(o, "key").get;
5677
5667
  if (m && m.isReactWarning)
5678
5668
  return !1;
5679
5669
  }
5680
- return a.key !== void 0;
5670
+ return o.key !== void 0;
5681
5671
  }
5682
- function Ve(a, m) {
5683
- typeof a.ref == "string" && J.current;
5672
+ function Ve(o, m) {
5673
+ typeof o.ref == "string" && J.current;
5684
5674
  }
5685
- function $e(a, m) {
5675
+ function $e(o, m) {
5686
5676
  {
5687
- var x = function() {
5677
+ var S = function() {
5688
5678
  re || (re = !0, O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
5689
5679
  };
5690
- x.isReactWarning = !0, Object.defineProperty(a, "key", {
5691
- get: x,
5680
+ S.isReactWarning = !0, Object.defineProperty(o, "key", {
5681
+ get: S,
5692
5682
  configurable: !0
5693
5683
  });
5694
5684
  }
5695
5685
  }
5696
- function me(a, m) {
5686
+ function me(o, m) {
5697
5687
  {
5698
- var x = function() {
5688
+ var S = function() {
5699
5689
  ge || (ge = !0, O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
5700
5690
  };
5701
- x.isReactWarning = !0, Object.defineProperty(a, "ref", {
5702
- get: x,
5691
+ S.isReactWarning = !0, Object.defineProperty(o, "ref", {
5692
+ get: S,
5703
5693
  configurable: !0
5704
5694
  });
5705
5695
  }
5706
5696
  }
5707
- var Ae = function(a, m, x, I, te, ae, Q) {
5697
+ var Ae = function(o, m, S, j, te, oe, Q) {
5708
5698
  var M = {
5709
5699
  // This tag allows us to uniquely identify this as a React Element
5710
5700
  $$typeof: r,
5711
5701
  // Built-in properties that belong on the element
5712
- type: a,
5702
+ type: o,
5713
5703
  key: m,
5714
- ref: x,
5704
+ ref: S,
5715
5705
  props: Q,
5716
5706
  // Record the component responsible for creating this element.
5717
- _owner: ae
5707
+ _owner: oe
5718
5708
  };
5719
5709
  return M._store = {}, Object.defineProperty(M._store, "validated", {
5720
5710
  configurable: !1,
@@ -5725,7 +5715,7 @@ function Ao() {
5725
5715
  configurable: !1,
5726
5716
  enumerable: !1,
5727
5717
  writable: !1,
5728
- value: I
5718
+ value: j
5729
5719
  }), Object.defineProperty(M, "_source", {
5730
5720
  configurable: !1,
5731
5721
  enumerable: !1,
@@ -5733,192 +5723,192 @@ function Ao() {
5733
5723
  value: te
5734
5724
  }), Object.freeze && (Object.freeze(M.props), Object.freeze(M)), M;
5735
5725
  };
5736
- function dr(a, m, x, I, te) {
5726
+ function fr(o, m, S, j, te) {
5737
5727
  {
5738
- var ae, Q = {}, M = null, Ce = null;
5739
- x !== void 0 && ($(x), M = "" + x), Ne(m) && ($(m.key), M = "" + m.key), be(m) && (Ce = m.ref, Ve(m, te));
5740
- for (ae in m)
5741
- Pe.call(m, ae) && !K.hasOwnProperty(ae) && (Q[ae] = m[ae]);
5742
- if (a && a.defaultProps) {
5743
- var ue = a.defaultProps;
5744
- for (ae in ue)
5745
- Q[ae] === void 0 && (Q[ae] = ue[ae]);
5728
+ var oe, Q = {}, M = null, Ce = null;
5729
+ S !== void 0 && ($(S), M = "" + S), Ne(m) && ($(m.key), M = "" + m.key), be(m) && (Ce = m.ref, Ve(m, te));
5730
+ for (oe in m)
5731
+ Pe.call(m, oe) && !B.hasOwnProperty(oe) && (Q[oe] = m[oe]);
5732
+ if (o && o.defaultProps) {
5733
+ var ue = o.defaultProps;
5734
+ for (oe in ue)
5735
+ Q[oe] === void 0 && (Q[oe] = ue[oe]);
5746
5736
  }
5747
5737
  if (M || Ce) {
5748
- var de = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
5738
+ var de = typeof o == "function" ? o.displayName || o.name || "Unknown" : o;
5749
5739
  M && $e(Q, de), Ce && me(Q, de);
5750
5740
  }
5751
- return Ae(a, M, Ce, te, I, J.current, Q);
5741
+ return Ae(o, M, Ce, te, j, J.current, Q);
5752
5742
  }
5753
5743
  }
5754
- var fr = v.ReactCurrentOwner, wr = v.ReactDebugCurrentFrame;
5755
- function Ze(a) {
5756
- if (a) {
5757
- var m = a._owner, x = Be(a.type, a._source, m ? m.type : null);
5758
- wr.setExtraStackFrame(x);
5744
+ var mr = v.ReactCurrentOwner, vr = v.ReactDebugCurrentFrame;
5745
+ function Ze(o) {
5746
+ if (o) {
5747
+ var m = o._owner, S = Ke(o.type, o._source, m ? m.type : null);
5748
+ vr.setExtraStackFrame(S);
5759
5749
  } else
5760
- wr.setExtraStackFrame(null);
5750
+ vr.setExtraStackFrame(null);
5761
5751
  }
5762
- var vr;
5763
- vr = !1;
5764
- function Er(a) {
5765
- return typeof a == "object" && a !== null && a.$$typeof === r;
5752
+ var Er;
5753
+ Er = !1;
5754
+ function Cr(o) {
5755
+ return typeof o == "object" && o !== null && o.$$typeof === r;
5766
5756
  }
5767
5757
  function $r() {
5768
5758
  {
5769
- if (fr.current) {
5770
- var a = W(fr.current.type);
5771
- if (a)
5759
+ if (mr.current) {
5760
+ var o = W(mr.current.type);
5761
+ if (o)
5772
5762
  return `
5773
5763
 
5774
- Check the render method of \`` + a + "`.";
5764
+ Check the render method of \`` + o + "`.";
5775
5765
  }
5776
5766
  return "";
5777
5767
  }
5778
5768
  }
5779
- function At(a) {
5769
+ function At(o) {
5780
5770
  return "";
5781
5771
  }
5782
- var jr = {};
5783
- function Dt(a) {
5772
+ var Ir = {};
5773
+ function Dt(o) {
5784
5774
  {
5785
5775
  var m = $r();
5786
5776
  if (!m) {
5787
- var x = typeof a == "string" ? a : a.displayName || a.name;
5788
- x && (m = `
5777
+ var S = typeof o == "string" ? o : o.displayName || o.name;
5778
+ S && (m = `
5789
5779
 
5790
- Check the top-level render call using <` + x + ">.");
5780
+ Check the top-level render call using <` + S + ">.");
5791
5781
  }
5792
5782
  return m;
5793
5783
  }
5794
5784
  }
5795
- function Ir(a, m) {
5785
+ function jr(o, m) {
5796
5786
  {
5797
- if (!a._store || a._store.validated || a.key != null)
5787
+ if (!o._store || o._store.validated || o.key != null)
5798
5788
  return;
5799
- a._store.validated = !0;
5800
- var x = Dt(m);
5801
- if (jr[x])
5789
+ o._store.validated = !0;
5790
+ var S = Dt(m);
5791
+ if (Ir[S])
5802
5792
  return;
5803
- jr[x] = !0;
5804
- var I = "";
5805
- a && a._owner && a._owner !== fr.current && (I = " It was passed a child from " + W(a._owner.type) + "."), Ze(a), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, I), Ze(null);
5793
+ Ir[S] = !0;
5794
+ var j = "";
5795
+ o && o._owner && o._owner !== mr.current && (j = " It was passed a child from " + W(o._owner.type) + "."), Ze(o), O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', S, j), Ze(null);
5806
5796
  }
5807
5797
  }
5808
- function Vr(a, m) {
5798
+ function Vr(o, m) {
5809
5799
  {
5810
- if (typeof a != "object")
5800
+ if (typeof o != "object")
5811
5801
  return;
5812
- if (h(a))
5813
- for (var x = 0; x < a.length; x++) {
5814
- var I = a[x];
5815
- Er(I) && Ir(I, m);
5802
+ if (h(o))
5803
+ for (var S = 0; S < o.length; S++) {
5804
+ var j = o[S];
5805
+ Cr(j) && jr(j, m);
5816
5806
  }
5817
- else if (Er(a))
5818
- a._store && (a._store.validated = !0);
5819
- else if (a) {
5820
- var te = ne(a);
5821
- if (typeof te == "function" && te !== a.entries)
5822
- for (var ae = te.call(a), Q; !(Q = ae.next()).done; )
5823
- Er(Q.value) && Ir(Q.value, m);
5807
+ else if (Cr(o))
5808
+ o._store && (o._store.validated = !0);
5809
+ else if (o) {
5810
+ var te = ne(o);
5811
+ if (typeof te == "function" && te !== o.entries)
5812
+ for (var oe = te.call(o), Q; !(Q = oe.next()).done; )
5813
+ Cr(Q.value) && jr(Q.value, m);
5824
5814
  }
5825
5815
  }
5826
5816
  }
5827
- function Ft(a) {
5817
+ function _t(o) {
5828
5818
  {
5829
- var m = a.type;
5819
+ var m = o.type;
5830
5820
  if (m == null || typeof m == "string")
5831
5821
  return;
5832
- var x;
5822
+ var S;
5833
5823
  if (typeof m == "function")
5834
- x = m.propTypes;
5824
+ S = m.propTypes;
5835
5825
  else if (typeof m == "object" && (m.$$typeof === c || // Note: Memo only checks outer props here.
5836
5826
  // Inner props are checked in the reconciler.
5837
5827
  m.$$typeof === E))
5838
- x = m.propTypes;
5828
+ S = m.propTypes;
5839
5829
  else
5840
5830
  return;
5841
- if (x) {
5842
- var I = W(m);
5843
- u(x, a.props, "prop", I, a);
5844
- } else if (m.PropTypes !== void 0 && !vr) {
5845
- vr = !0;
5831
+ if (S) {
5832
+ var j = W(m);
5833
+ u(S, o.props, "prop", j, o);
5834
+ } else if (m.PropTypes !== void 0 && !Er) {
5835
+ Er = !0;
5846
5836
  var te = W(m);
5847
5837
  O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", te || "Unknown");
5848
5838
  }
5849
5839
  typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
5850
5840
  }
5851
5841
  }
5852
- function _t(a) {
5842
+ function Ft(o) {
5853
5843
  {
5854
- for (var m = Object.keys(a.props), x = 0; x < m.length; x++) {
5855
- var I = m[x];
5856
- if (I !== "children" && I !== "key") {
5857
- Ze(a), O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", I), Ze(null);
5844
+ for (var m = Object.keys(o.props), S = 0; S < m.length; S++) {
5845
+ var j = m[S];
5846
+ if (j !== "children" && j !== "key") {
5847
+ Ze(o), O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), Ze(null);
5858
5848
  break;
5859
5849
  }
5860
5850
  }
5861
- a.ref !== null && (Ze(a), O("Invalid attribute `ref` supplied to `React.Fragment`."), Ze(null));
5851
+ o.ref !== null && (Ze(o), O("Invalid attribute `ref` supplied to `React.Fragment`."), Ze(null));
5862
5852
  }
5863
5853
  }
5864
5854
  var Lr = {};
5865
- function Ur(a, m, x, I, te, ae) {
5855
+ function Ur(o, m, S, j, te, oe) {
5866
5856
  {
5867
- var Q = N(a);
5857
+ var Q = N(o);
5868
5858
  if (!Q) {
5869
5859
  var M = "";
5870
- (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
5860
+ (o === void 0 || typeof o == "object" && o !== null && Object.keys(o).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
5871
5861
  var Ce = At();
5872
5862
  Ce ? M += Ce : M += $r();
5873
5863
  var ue;
5874
- a === null ? ue = "null" : h(a) ? ue = "array" : a !== void 0 && a.$$typeof === r ? (ue = "<" + (W(a.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof a, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, M);
5864
+ o === null ? ue = "null" : h(o) ? ue = "array" : o !== void 0 && o.$$typeof === r ? (ue = "<" + (W(o.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof o, O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, M);
5875
5865
  }
5876
- var de = dr(a, m, x, te, ae);
5866
+ var de = fr(o, m, S, te, oe);
5877
5867
  if (de == null)
5878
5868
  return de;
5879
5869
  if (Q) {
5880
5870
  var De = m.children;
5881
5871
  if (De !== void 0)
5882
- if (I)
5872
+ if (j)
5883
5873
  if (h(De)) {
5884
5874
  for (var er = 0; er < De.length; er++)
5885
- Vr(De[er], a);
5875
+ Vr(De[er], o);
5886
5876
  Object.freeze && Object.freeze(De);
5887
5877
  } else
5888
5878
  O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
5889
5879
  else
5890
- Vr(De, a);
5880
+ Vr(De, o);
5891
5881
  }
5892
5882
  if (Pe.call(m, "key")) {
5893
- var We = W(a), ke = Object.keys(m).filter(function(Vt) {
5883
+ var We = W(o), ke = Object.keys(m).filter(function(Vt) {
5894
5884
  return Vt !== "key";
5895
- }), Cr = ke.length > 0 ? "{key: someKey, " + ke.join(": ..., ") + ": ...}" : "{key: someKey}";
5896
- if (!Lr[We + Cr]) {
5897
- var It = ke.length > 0 ? "{" + ke.join(": ..., ") + ": ...}" : "{}";
5885
+ }), Sr = ke.length > 0 ? "{key: someKey, " + ke.join(": ..., ") + ": ...}" : "{key: someKey}";
5886
+ if (!Lr[We + Sr]) {
5887
+ var jt = ke.length > 0 ? "{" + ke.join(": ..., ") + ": ...}" : "{}";
5898
5888
  O(`A props object containing a "key" prop is being spread into JSX:
5899
5889
  let props = %s;
5900
5890
  <%s {...props} />
5901
5891
  React keys must be passed directly to JSX without using spread:
5902
5892
  let props = %s;
5903
- <%s key={someKey} {...props} />`, Cr, We, It, We), Lr[We + Cr] = !0;
5893
+ <%s key={someKey} {...props} />`, Sr, We, jt, We), Lr[We + Sr] = !0;
5904
5894
  }
5905
5895
  }
5906
- return a === t ? _t(de) : Ft(de), de;
5896
+ return o === t ? Ft(de) : _t(de), de;
5907
5897
  }
5908
5898
  }
5909
- function Nt(a, m, x) {
5910
- return Ur(a, m, x, !0);
5899
+ function Nt(o, m, S) {
5900
+ return Ur(o, m, S, !0);
5911
5901
  }
5912
- function Pt(a, m, x) {
5913
- return Ur(a, m, x, !1);
5902
+ function Pt(o, m, S) {
5903
+ return Ur(o, m, S, !1);
5914
5904
  }
5915
- var $t = Pt, jt = Nt;
5916
- lr.Fragment = t, lr.jsx = $t, lr.jsxs = jt;
5917
- }()), lr;
5905
+ var $t = Pt, It = Nt;
5906
+ ur.Fragment = t, ur.jsx = $t, ur.jsxs = It;
5907
+ }()), ur;
5918
5908
  }
5919
- process.env.NODE_ENV === "production" ? Dr.exports = Oo() : Dr.exports = Ao();
5909
+ process.env.NODE_ENV === "production" ? Dr.exports = Ra() : Dr.exports = Ta();
5920
5910
  var Te = Dr.exports;
5921
- const Do = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5911
+ const Oa = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5922
5912
  "div",
5923
5913
  {
5924
5914
  ref: n,
@@ -5929,8 +5919,8 @@ const Do = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5929
5919
  ...r
5930
5920
  }
5931
5921
  ));
5932
- Do.displayName = "Kanban";
5933
- const Fo = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5922
+ Oa.displayName = "Kanban";
5923
+ const Aa = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5934
5924
  "div",
5935
5925
  {
5936
5926
  ref: n,
@@ -5941,8 +5931,8 @@ const Fo = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5941
5931
  ...r
5942
5932
  }
5943
5933
  ));
5944
- Fo.displayName = "KanbanColumn";
5945
- const _o = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5934
+ Aa.displayName = "KanbanColumn";
5935
+ const Da = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5946
5936
  "div",
5947
5937
  {
5948
5938
  ref: n,
@@ -5950,8 +5940,8 @@ const _o = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5950
5940
  ...r
5951
5941
  }
5952
5942
  ));
5953
- _o.displayName = "KanbanColumnHeader";
5954
- const No = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5943
+ Da.displayName = "KanbanColumnHeader";
5944
+ const _a = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5955
5945
  "h3",
5956
5946
  {
5957
5947
  ref: n,
@@ -5959,8 +5949,8 @@ const No = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5959
5949
  ...r
5960
5950
  }
5961
5951
  ));
5962
- No.displayName = "KanbanColumnTitle";
5963
- const Po = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5952
+ _a.displayName = "KanbanColumnTitle";
5953
+ const Fa = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5964
5954
  "div",
5965
5955
  {
5966
5956
  ref: n,
@@ -5968,8 +5958,8 @@ const Po = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5968
5958
  ...r
5969
5959
  }
5970
5960
  ));
5971
- Po.displayName = "KanbanColumnContent";
5972
- const $o = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5961
+ Fa.displayName = "KanbanColumnContent";
5962
+ const Na = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5973
5963
  "div",
5974
5964
  {
5975
5965
  ref: n,
@@ -5980,8 +5970,8 @@ const $o = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5980
5970
  ...r
5981
5971
  }
5982
5972
  ));
5983
- $o.displayName = "KanbanCard";
5984
- const jo = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5973
+ Na.displayName = "KanbanCard";
5974
+ const Pa = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5985
5975
  "div",
5986
5976
  {
5987
5977
  ref: n,
@@ -5989,8 +5979,8 @@ const jo = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5989
5979
  ...r
5990
5980
  }
5991
5981
  ));
5992
- jo.displayName = "KanbanCardTitle";
5993
- const Io = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5982
+ Pa.displayName = "KanbanCardTitle";
5983
+ const $a = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5994
5984
  "div",
5995
5985
  {
5996
5986
  ref: n,
@@ -5998,8 +5988,8 @@ const Io = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5998
5988
  ...r
5999
5989
  }
6000
5990
  ));
6001
- Io.displayName = "KanbanCardDescription";
6002
- const Vo = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
5991
+ $a.displayName = "KanbanCardDescription";
5992
+ const Ia = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
6003
5993
  "div",
6004
5994
  {
6005
5995
  ref: n,
@@ -6007,8 +5997,8 @@ const Vo = Ue.forwardRef(({ className: e, ...r }, n) => /* @__PURE__ */ Te.jsx(
6007
5997
  ...r
6008
5998
  }
6009
5999
  ));
6010
- Vo.displayName = "KanbanColumnFooter";
6011
- const Lo = {
6000
+ Ia.displayName = "KanbanColumnFooter";
6001
+ const ja = {
6012
6002
  sessionEndpoint: "/api/id",
6013
6003
  providers: {
6014
6004
  google: {
@@ -6027,8 +6017,8 @@ const Lo = {
6027
6017
  refetchOnWindowFocus: !1,
6028
6018
  refetchOnReconnect: !0
6029
6019
  };
6030
- let He = { ...Lo };
6031
- function Uo(e) {
6020
+ let He = { ...ja };
6021
+ function Va(e) {
6032
6022
  He = {
6033
6023
  ...He,
6034
6024
  ...e,
@@ -6042,30 +6032,30 @@ function Uo(e) {
6042
6032
  }
6043
6033
  };
6044
6034
  }
6045
- function yr() {
6035
+ function wr() {
6046
6036
  return { ...He };
6047
6037
  }
6048
6038
  function Pr() {
6049
- return He.baseUrl || _r() || (typeof window < "u" ? window.location.origin : "");
6039
+ return He.baseUrl || Fr() || (typeof window < "u" ? window.location.origin : "");
6050
6040
  }
6051
6041
  function Tt(e) {
6052
6042
  return He.providers[e];
6053
6043
  }
6054
- class Fr extends Error {
6044
+ class _r extends Error {
6055
6045
  constructor(n, t) {
6056
6046
  super(n);
6057
6047
  Qe(this, "statusCode");
6058
6048
  this.name = "AuthenticationError", this.statusCode = t;
6059
6049
  }
6060
6050
  }
6061
- async function qo() {
6062
- const e = yr(), r = Pr(), n = br(), t = await fetch(`${r}${e.sessionEndpoint}`, {
6051
+ async function La() {
6052
+ const e = wr(), r = Pr(), n = yr(), t = await fetch(`${r}${e.sessionEndpoint}`, {
6063
6053
  method: "GET",
6064
6054
  headers: n,
6065
6055
  credentials: "include"
6066
6056
  });
6067
6057
  if (!t.ok)
6068
- throw t.status === 401 || t.status === 403 ? new Fr("Not authenticated", t.status) : new Fr(
6058
+ throw t.status === 401 || t.status === 403 ? new _r("Not authenticated", t.status) : new _r(
6069
6059
  `Session check failed: ${t.statusText}`,
6070
6060
  t.status
6071
6061
  );
@@ -6073,21 +6063,21 @@ async function qo() {
6073
6063
  }
6074
6064
  function rt(e, r) {
6075
6065
  return new Promise(() => {
6076
- const n = yr(), t = Pr();
6066
+ const n = wr(), t = Pr();
6077
6067
  if (!t)
6078
6068
  throw new Error(
6079
6069
  'Auth base URL is not configured. Call setApiBaseUrl("https://...") or configureAuth({ baseUrl: "https://..." }) first.'
6080
6070
  );
6081
- const o = e || n.defaultProvider, s = Tt(o);
6071
+ const a = e || n.defaultProvider, s = Tt(a);
6082
6072
  if (!s) {
6083
6073
  const l = Object.keys(n.providers || {}).join(", ") || "none";
6084
6074
  throw new Error(
6085
- `Auth provider "${o}" is not configured. Available providers: ${l}`
6075
+ `Auth provider "${a}" is not configured. Available providers: ${l}`
6086
6076
  );
6087
6077
  }
6088
6078
  if (!s.loginPath)
6089
6079
  throw new Error(
6090
- `Login path not configured for provider "${o}". Configure it with: configureAuth({ providers: { ${o}: { loginPath: '/api/auth/...' } } })`
6080
+ `Login path not configured for provider "${a}". Configure it with: configureAuth({ providers: { ${a}: { loginPath: '/api/auth/...' } } })`
6091
6081
  );
6092
6082
  let i;
6093
6083
  try {
@@ -6105,8 +6095,8 @@ function rt(e, r) {
6105
6095
  }), window.location.href = i.toString();
6106
6096
  });
6107
6097
  }
6108
- async function zo(e) {
6109
- const r = yr(), n = Pr(), t = br(), o = Tt(r.defaultProvider), s = o == null ? void 0 : o.logoutPath;
6098
+ async function Ua(e) {
6099
+ const r = wr(), n = Pr(), t = yr(), a = Tt(r.defaultProvider), s = a == null ? void 0 : a.logoutPath;
6110
6100
  if (s && (e == null ? void 0 : e.callLogoutEndpoint) !== !1)
6111
6101
  try {
6112
6102
  await fetch(`${n}${s}`, {
@@ -6119,36 +6109,36 @@ async function zo(e) {
6119
6109
  }
6120
6110
  e != null && e.redirectUrl ? window.location.href = e.redirectUrl : r.loginRedirectUrl && (window.location.href = r.loginRedirectUrl);
6121
6111
  }
6122
- const Ot = ot(null), tt = ["auth", "session"];
6123
- function la({
6112
+ const Ot = at(null), tt = ["auth", "session"];
6113
+ function fo({
6124
6114
  children: e,
6125
6115
  config: r,
6126
6116
  onAuthChange: n,
6127
6117
  onError: t,
6128
- loadingComponent: o,
6118
+ loadingComponent: a,
6129
6119
  unauthenticatedComponent: s,
6130
6120
  skipInitialCheck: i = !1
6131
6121
  }) {
6132
6122
  const l = he(!1);
6133
- r && !l.current && (Uo(r), l.current = !0);
6134
- const c = at(), d = yr(), {
6123
+ r && !l.current && (Va(r), l.current = !0);
6124
+ const c = ot(), d = wr(), {
6135
6125
  data: p,
6136
6126
  isLoading: E,
6137
- error: _,
6127
+ error: F,
6138
6128
  refetch: G,
6139
6129
  isFetching: Y
6140
- } = tr({
6130
+ } = nr({
6141
6131
  queryKey: tt,
6142
- queryFn: qo,
6132
+ queryFn: La,
6143
6133
  enabled: !i,
6144
- retry: (q, ie) => ie instanceof Fr && (ie.statusCode === 401 || ie.statusCode === 403) ? !1 : q < d.retry.count,
6134
+ retry: (q, ie) => ie instanceof _r && (ie.statusCode === 401 || ie.statusCode === 403) ? !1 : q < d.retry.count,
6145
6135
  retryDelay: d.retry.delay,
6146
6136
  staleTime: d.staleTime,
6147
6137
  gcTime: d.staleTime * 2,
6148
6138
  refetchOnWindowFocus: d.refetchOnWindowFocus ?? !0,
6149
6139
  refetchOnReconnect: d.refetchOnReconnect ?? !0,
6150
6140
  refetchInterval: d.sessionCheckInterval || !1
6151
- }), [g, ne] = xe(null), v = ye(() => E || Y ? "loading" : p != null && p.userDetails ? "authenticated" : "unauthenticated", [E, Y, p]), O = (p == null ? void 0 : p.userDetails) || null, U = (p == null ? void 0 : p.staticBaseUrl) || null, V = (p == null ? void 0 : p.buildId) || null, X = v === "authenticated", b = he(n);
6141
+ }), [g, ne] = Se(null), v = ye(() => E || Y ? "loading" : p != null && p.userDetails ? "authenticated" : "unauthenticated", [E, Y, p]), O = (p == null ? void 0 : p.userDetails) || null, U = (p == null ? void 0 : p.staticBaseUrl) || null, V = (p == null ? void 0 : p.buildId) || null, X = v === "authenticated", b = he(n);
6152
6142
  b.current = n;
6153
6143
  const C = he(t);
6154
6144
  C.current = t, Oe(() => {
@@ -6156,21 +6146,21 @@ function la({
6156
6146
  E || (q = b.current) == null || q.call(b, v, O);
6157
6147
  }, [v, O, E]), Oe(() => {
6158
6148
  var q;
6159
- _ && (ne(_), (q = C.current) == null || q.call(C, _));
6160
- }, [_]), Oe(() => {
6149
+ F && (ne(F), (q = C.current) == null || q.call(C, F));
6150
+ }, [F]), Oe(() => {
6161
6151
  v === "unauthenticated" && d.autoRedirect && !E && rt();
6162
6152
  }, [v, E, d.autoRedirect]);
6163
- const f = S(
6153
+ const f = x(
6164
6154
  (q, ie) => {
6165
6155
  rt(q, ie);
6166
6156
  },
6167
6157
  []
6168
- ), D = S(
6158
+ ), D = x(
6169
6159
  async (q) => {
6170
- c.removeQueries({ queryKey: tt }), await zo(q);
6160
+ c.removeQueries({ queryKey: tt }), await Ua(q);
6171
6161
  },
6172
6162
  [c]
6173
- ), N = S(async () => {
6163
+ ), N = x(async () => {
6174
6164
  if (Y)
6175
6165
  return p || null;
6176
6166
  try {
@@ -6178,15 +6168,15 @@ function la({
6178
6168
  } catch (q) {
6179
6169
  return ne(q), null;
6180
6170
  }
6181
- }, [G, Y, p]), j = S(
6171
+ }, [G, Y, p]), I = x(
6182
6172
  (q) => (O == null ? void 0 : O.Role) === q,
6183
6173
  [O]
6184
- ), z = S(
6174
+ ), z = x(
6185
6175
  (q) => q.includes((O == null ? void 0 : O.Role) || ""),
6186
6176
  [O]
6187
- ), W = S(() => {
6177
+ ), W = x(() => {
6188
6178
  ne(null);
6189
- }, []), Z = S(() => {
6179
+ }, []), Z = x(() => {
6190
6180
  G();
6191
6181
  }, [G]), se = ye(
6192
6182
  () => ({
@@ -6199,7 +6189,7 @@ function la({
6199
6189
  login: f,
6200
6190
  logout: D,
6201
6191
  refreshSession: N,
6202
- hasRole: j,
6192
+ hasRole: I,
6203
6193
  hasAnyRole: z,
6204
6194
  error: g,
6205
6195
  clearError: W,
@@ -6215,23 +6205,23 @@ function la({
6215
6205
  f,
6216
6206
  D,
6217
6207
  N,
6218
- j,
6208
+ I,
6219
6209
  z,
6220
6210
  g,
6221
6211
  W,
6222
6212
  Z
6223
6213
  ]
6224
6214
  );
6225
- return v === "loading" && o ? /* @__PURE__ */ Te.jsx(Te.Fragment, { children: o }) : v === "unauthenticated" && !d.autoRedirect && s ? /* @__PURE__ */ Te.jsx(Te.Fragment, { children: s }) : /* @__PURE__ */ Te.jsx(Ot.Provider, { value: se, children: e });
6215
+ return v === "loading" && a ? /* @__PURE__ */ Te.jsx(Te.Fragment, { children: a }) : v === "unauthenticated" && !d.autoRedirect && s ? /* @__PURE__ */ Te.jsx(Te.Fragment, { children: s }) : /* @__PURE__ */ Te.jsx(Ot.Provider, { value: se, children: e });
6226
6216
  }
6227
- function Bo() {
6217
+ function qa() {
6228
6218
  const e = qt(Ot);
6229
6219
  if (!e)
6230
6220
  throw new Error("useAuth must be used within an AuthProvider");
6231
6221
  return e;
6232
6222
  }
6233
- function ua() {
6234
- const e = Bo();
6223
+ function mo() {
6224
+ const e = qa();
6235
6225
  return ye(
6236
6226
  () => ({
6237
6227
  user: e.user,
@@ -6266,47 +6256,51 @@ function ua() {
6266
6256
  );
6267
6257
  }
6268
6258
  export {
6269
- la as AuthProvider,
6270
- Fr as AuthenticationError,
6271
- Do as Kanban,
6272
- $o as KanbanCard,
6273
- Io as KanbanCardDescription,
6274
- jo as KanbanCardTitle,
6275
- Fo as KanbanColumn,
6276
- Po as KanbanColumnContent,
6277
- Vo as KanbanColumnFooter,
6278
- _o as KanbanColumnHeader,
6279
- No as KanbanColumnTitle,
6259
+ fo as AuthProvider,
6260
+ _r as AuthenticationError,
6261
+ Oa as Kanban,
6262
+ Na as KanbanCard,
6263
+ $a as KanbanCardDescription,
6264
+ Pa as KanbanCardTitle,
6265
+ Aa as KanbanColumn,
6266
+ Fa as KanbanColumnContent,
6267
+ Ia as KanbanColumnFooter,
6268
+ Da as KanbanColumnHeader,
6269
+ _a as KanbanColumnTitle,
6280
6270
  Re as api,
6271
+ co as clearFormCache,
6281
6272
  qe as cn,
6282
- Zo as decodeDate,
6283
- Ho as decodeDatetime,
6284
- Xo as encodeDate,
6285
- Jo as encodeDatetime,
6273
+ Ha as decodeDate,
6274
+ Qa as decodeDatetime,
6275
+ Ja as encodeDate,
6276
+ Wa as encodeDatetime,
6286
6277
  Ht as formatArray,
6287
6278
  Xt as formatBoolean,
6288
6279
  Gt as formatCurrency,
6289
6280
  Yt as formatDate,
6290
6281
  Wt as formatDateTime,
6291
- na as formatFieldValue,
6282
+ ro as formatFieldValue,
6292
6283
  Jt as formatJSON,
6293
6284
  Qt as formatNumber,
6294
6285
  Zt as formatTextArea,
6295
- _r as getApiBaseUrl,
6286
+ Fr as getApiBaseUrl,
6296
6287
  Mt as getBdoSchema,
6297
- br as getDefaultHeaders,
6298
- Kn as isCondition,
6299
- je as isConditionGroup,
6300
- aa as isFilterCondition,
6301
- oa as isFilterLogical,
6302
- ea as listMetadata,
6303
- ra as parseCurrency,
6304
- Wo as setApiBaseUrl,
6305
- Qo as setDefaultHeaders,
6306
- ta as truncateString,
6307
- ua as useAuth,
6308
- xt as useFilter,
6309
- ia as useForm,
6310
- ca as useKanban,
6311
- sa as useTable
6288
+ yr as getDefaultHeaders,
6289
+ Bn as isCondition,
6290
+ Ie as isConditionGroup,
6291
+ no as isFilterCondition,
6292
+ to as isFilterLogical,
6293
+ so as isNetworkError,
6294
+ io as isValidationError,
6295
+ Xa as listMetadata,
6296
+ oo as parseApiError,
6297
+ Za as parseCurrency,
6298
+ Ga as setApiBaseUrl,
6299
+ Ya as setDefaultHeaders,
6300
+ eo as truncateString,
6301
+ mo as useAuth,
6302
+ St as useFilter,
6303
+ lo as useForm,
6304
+ uo as useKanban,
6305
+ ao as useTable
6312
6306
  };