@owp/core 2.5.63 → 2.5.65

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.
@@ -1,12 +1,12 @@
1
1
  var An = Object.defineProperty;
2
2
  var s = (e, t) => An(e, "name", { value: t, configurable: !0 });
3
3
  import { getTreeGridTextResourceUrl as _n, TREEGRID_CELL_CHANGED_CLASS as Dt } from "../../../constants/treeGrid.js";
4
- import { isTreeGridRowAddedById as D, getTreeGridAddedRowHighlightColumns as he, getTreeGridAddedRowEditableColumns as nt, getTreeGridCellComparableValue as $e, clearTreeGridCellHighlightById as yt, highlightTreeGridCellById as Pt, normalizeTreeGridExternalRows as gn, getTreeGridAddedRowBaselineValue as mn, removeTreeGridAddedRowHighlightColumn as On, appendTreeGridAddedRowHighlightColumn as Ln } from "../../../utils/treeGridUtil.js";
4
+ import { isTreeGridRowAddedById as D, getTreeGridAddedRowHighlightColumns as Ae, getTreeGridAddedRowEditableColumns as nt, getTreeGridCellComparableValue as Fe, clearTreeGridCellHighlightById as yt, highlightTreeGridCellById as Pt, normalizeTreeGridExternalRows as gn, getTreeGridAddedRowBaselineValue as mn, removeTreeGridAddedRowHighlightColumn as On, appendTreeGridAddedRowHighlightColumn as Ln } from "../../../utils/treeGridUtil.js";
5
5
  import { applyTreeGridLayoutToGrid as wn } from "./treeGridLayout.js";
6
6
  import { resolveTreeGridSelectedRows as In } from "./treeGridSelection.js";
7
- import { setTreeGridFloatingLayerCssVariable as z, TREE_GRID_ENUM_MENU_HOVER_BACKGROUND_COLOR_CSS_VARIABLE as xn, TREE_GRID_ENUM_MENU_SELECTED_BACKGROUND_COLOR_CSS_VARIABLE as bn, TREE_GRID_HOVER_CELL_BORDER_COLOR_CSS_VARIABLE as Dn, TREE_GRID_EDITING_CELL_BORDER_COLOR_CSS_VARIABLE as yn, TREE_GRID_HINT_BACKGROUND_COLOR_CSS_VARIABLE as Pn, TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as vn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as rt, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as st, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as ot, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as it, TREE_GRID_THEME_WRAPPER_CLASS as Un, TREE_GRID_STYLE_PREFIXES as $n, TREE_GRID_DELETED_ROW_PANEL_CELL_CLASS as vt, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as Bn, TREE_GRID_ERROR_CELL_CLASS as Fn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Nn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as Mn } from "./treeGridTheme.js";
7
+ import { setTreeGridFloatingLayerCssVariable as Y, TREE_GRID_ENUM_MENU_HOVER_BACKGROUND_COLOR_CSS_VARIABLE as xn, TREE_GRID_ENUM_MENU_SELECTED_BACKGROUND_COLOR_CSS_VARIABLE as bn, TREE_GRID_HOVER_CELL_BORDER_COLOR_CSS_VARIABLE as Dn, TREE_GRID_EDITING_CELL_BORDER_COLOR_CSS_VARIABLE as yn, TREE_GRID_HINT_BACKGROUND_COLOR_CSS_VARIABLE as Pn, TREE_GRID_PANEL_CHECKBOX_SELECT_CLASS as vn, TREE_GRID_SELECT_ALL_CHECKED_CLASS as rt, TREE_GRID_SELECT_ALL_INDETERMINATE_CLASS as st, TREE_GRID_SELECT_ALL_UNCHECKED_CLASS as ot, TREE_GRID_SELECTED_CHANGED_CELL_CLASS as it, TREE_GRID_THEME_WRAPPER_CLASS as Un, TREE_GRID_STYLE_PREFIXES as $n, TREE_GRID_DELETED_ROW_PANEL_CELL_CLASS as vt, TREE_GRID_ADDED_ROW_BOX_CELL_CLASS as Fn, TREE_GRID_ERROR_CELL_CLASS as Bn, TREE_GRID_ADDED_ROW_BOX_START_CLASS as Nn, TREE_GRID_ADDED_ROW_BOX_END_CLASS as Mn } from "./treeGridTheme.js";
8
8
  import { countTreeGridPerf as Ut, logTreeGridPerf as Vn, measureTreeGridPerf as $t } from "./utils/perf.js";
9
- import { debounce as Se } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
9
+ import { debounce as Ee } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/function/debounce.js";
10
10
  import { isEmpty as kn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js";
11
11
  import { get as Xn } from "../../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/object/get.js";
12
12
  const Io = 300, Wn = 3, Jn = {
@@ -110,7 +110,7 @@ const Io = 300, Wn = 3, Jn = {
110
110
  ...lr,
111
111
  ...dr,
112
112
  ...ur
113
- }, Be = "Panel", ar = /* @__PURE__ */ new Set([Be]), Ae = [], Bt = ["Formula", "FormulaFormula"], Tr = "Formula", ut = /* @__PURE__ */ new Set([
113
+ }, Be = "Panel", ar = /* @__PURE__ */ new Set([Be]), _e = [], Ft = ["Formula", "FormulaFormula"], Tr = "Formula", ut = /* @__PURE__ */ new Set([
114
114
  "Add",
115
115
  "Delete",
116
116
  "Show",
@@ -128,11 +128,11 @@ const Io = 300, Wn = 3, Jn = {
128
128
  "SelectingSingle",
129
129
  "SuppressCfg",
130
130
  "TouchScroll"
131
- ], Ft = [
131
+ ], Bt = [
132
132
  "CustomScroll",
133
133
  "CustomHScroll",
134
134
  "TouchScroll"
135
- ], Cr = {
135
+ ], Gr = {
136
136
  addRow: ["Add", "AddRows", "AddChildren", "AddRowsChildren"],
137
137
  deleteRow: [
138
138
  "Delete",
@@ -162,21 +162,21 @@ const Io = 300, Wn = 3, Jn = {
162
162
  "UndoSelect",
163
163
  "RedoDeselect"
164
164
  ]
165
- }, _e = /* @__PURE__ */ new WeakMap(), ge = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakSet();
165
+ }, ge = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakSet();
166
166
  let ft;
167
- const Oe = /* @__PURE__ */ s((e, t) => {
167
+ const Le = /* @__PURE__ */ s((e, t) => {
168
168
  if (t) {
169
- me.add(e);
169
+ Oe.add(e);
170
170
  return;
171
171
  }
172
- me.delete(e);
173
- }, "setTreeGridFocusedState"), Fe = /* @__PURE__ */ s((e) => me.has(e), "isTreeGridFocusedStateActive"), G = /* @__PURE__ */ s((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), at = /* @__PURE__ */ s((e, t) => {
172
+ Oe.delete(e);
173
+ }, "setTreeGridFocusedState"), Ne = /* @__PURE__ */ s((e) => Oe.has(e), "isTreeGridFocusedStateActive"), C = /* @__PURE__ */ s((e) => typeof e == "object" && e !== null && !Array.isArray(e), "isTreeGridJsonRecord"), at = /* @__PURE__ */ s((e, t) => {
174
174
  Object.entries(t).forEach(([n, r]) => {
175
175
  n in e || (e[n] = r);
176
176
  });
177
- }, "assignMissingTreeGridJsonRecordFields"), F = /* @__PURE__ */ s((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), le = /* @__PURE__ */ s((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), Gr = /* @__PURE__ */ s((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), Y = /* @__PURE__ */ s((e, t) => String(e ?? "").trim().toLowerCase() === t.toLowerCase(), "isTreeGridConfigValue"), Ne = /* @__PURE__ */ s((e, t) => !F(e) && !le(t), "isTreeGridCheckboxSelectionMode"), Nt = /* @__PURE__ */ s((e) => {
177
+ }, "assignMissingTreeGridJsonRecordFields"), B = /* @__PURE__ */ s((e) => e === 0 || e === !1 || e === "0" || e === "false", "isTreeGridDisabledConfigValue"), le = /* @__PURE__ */ s((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitEnabledConfigValue"), Cr = /* @__PURE__ */ s((e) => e === 1 || e === !0 || e === "1" || e === "true", "isTreeGridExplicitHiddenConfigValue"), q = /* @__PURE__ */ s((e, t) => String(e ?? "").trim().toLowerCase() === t.toLowerCase(), "isTreeGridConfigValue"), Me = /* @__PURE__ */ s((e, t) => !B(e) && !le(t), "isTreeGridCheckboxSelectionMode"), Nt = /* @__PURE__ */ s((e) => {
178
178
  const t = e.Cfg;
179
- return Array.isArray(t) ? t.filter(G) : G(t) ? [t] : [];
179
+ return Array.isArray(t) ? t.filter(C) : C(t) ? [t] : [];
180
180
  }, "getTreeGridJsonCfgRecords"), de = /* @__PURE__ */ s((e, t) => {
181
181
  let n;
182
182
  return Nt(e).forEach((r) => {
@@ -188,7 +188,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
188
188
  const o = de(e, r);
189
189
  o !== void 0 && (n[r] = o);
190
190
  }), n;
191
- }, "getTreeGridJsonCfgValues"), Ar = /* @__PURE__ */ s((e) => String(e).trim() === "1", "isTreeGridStandardScrollbarValue"), _r = /* @__PURE__ */ s((e) => Ft.every((t) => {
191
+ }, "getTreeGridJsonCfgValues"), Ar = /* @__PURE__ */ s((e) => String(e).trim() === "1", "isTreeGridStandardScrollbarValue"), _r = /* @__PURE__ */ s((e) => Bt.every((t) => {
192
192
  const n = e[t];
193
193
  return n === void 0 || Ar(n);
194
194
  }), "canApplyTreeGridStableScrollbarDefaults"), Mt = /* @__PURE__ */ s((e) => {
@@ -203,23 +203,23 @@ const Oe = /* @__PURE__ */ s((e, t) => {
203
203
  e
204
204
  );
205
205
  return n == null ? void 0 : n[2];
206
- }, "getTreeGridXmlTagAttributeValue"), j = /* @__PURE__ */ s((e, t) => new RegExp(`\\b${t}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), Xt = /* @__PURE__ */ s((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), Z = /* @__PURE__ */ s((e, t, n) => {
206
+ }, "getTreeGridXmlTagAttributeValue"), j = /* @__PURE__ */ s((e, t) => new RegExp(`\\b${t}\\s*=`, "i").test(e), "hasTreeGridXmlTagAttribute"), Xt = /* @__PURE__ */ s((e) => String(e).replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;"), "escapeTreeGridXmlAttributeValue"), Q = /* @__PURE__ */ s((e, t, n) => {
207
207
  const r = e.endsWith("/>") ? e.length - 2 : e.length - 1;
208
208
  return `${e.slice(0, r)} ${t}="${Xt(
209
209
  n
210
210
  )}"${e.slice(r)}`;
211
- }, "appendTreeGridXmlTagAttribute"), Le = /* @__PURE__ */ s((e, t, n) => j(e, t) ? e.replace(
211
+ }, "appendTreeGridXmlTagAttribute"), we = /* @__PURE__ */ s((e, t, n) => j(e, t) ? e.replace(
212
212
  new RegExp(`\\b${t}\\s*=\\s*(['"])(.*?)\\1`, "i"),
213
213
  () => `${t}="${Xt(n)}"`
214
- ) : Z(e, t, n), "setTreeGridXmlTagAttribute"), Q = /* @__PURE__ */ s((e, t) => {
214
+ ) : Q(e, t, n), "setTreeGridXmlTagAttribute"), ee = /* @__PURE__ */ s((e, t) => {
215
215
  let n = e;
216
216
  return Object.entries(t).forEach(([r, o]) => {
217
- n = Le(n, r, o);
217
+ n = we(n, r, o);
218
218
  }), n;
219
219
  }, "setTreeGridXmlTagAttributes"), N = /* @__PURE__ */ s((e, t) => {
220
220
  let n = e;
221
221
  return Object.entries(t).forEach(([r, o]) => {
222
- j(n, r) || (n = Z(n, r, o));
222
+ j(n, r) || (n = Q(n, r, o));
223
223
  }), n;
224
224
  }, "appendMissingTreeGridXmlTagAttributes"), m = /* @__PURE__ */ s((e) => {
225
225
  var d;
@@ -232,12 +232,12 @@ const Oe = /* @__PURE__ */ s((e, t) => {
232
232
  if (!T || u.startsWith("<!--") || u.startsWith("<?") || u.startsWith("<!"))
233
233
  continue;
234
234
  !n.hasFastPanel && j(u, "FastPanel") && (n.hasFastPanel = !0);
235
- const C = u.startsWith("</"), A = /\/>\s*$/.test(u);
235
+ const G = u.startsWith("</"), A = /\/>\s*$/.test(u);
236
236
  if (!c) {
237
- !C && T === "grid" && (c = !0, n.gridOpenTagEndIndex = r.index + u.length, o = A ? 0 : 1);
237
+ !G && T === "grid" && (c = !0, n.gridOpenTagEndIndex = r.index + u.length, o = A ? 0 : 1);
238
238
  continue;
239
239
  }
240
- if (C) {
240
+ if (G) {
241
241
  if (o = Math.max(0, o - 1), T === "grid" && o === 0)
242
242
  break;
243
243
  continue;
@@ -292,7 +292,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
292
292
  isApplied: !1
293
293
  };
294
294
  let o = n.tag;
295
- return j(o, "Spanned") || (o = Z(o, "Spanned", 1)), o = Z(
295
+ return j(o, "Spanned") || (o = Q(o, "Spanned", 1)), o = Q(
296
296
  o,
297
297
  "PanelRowSpan",
298
298
  t.length
@@ -344,13 +344,13 @@ const Oe = /* @__PURE__ */ s((e, t) => {
344
344
  r,
345
345
  m(r)
346
346
  ) : e;
347
- }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), jt = /* @__PURE__ */ s((e) => Ne(
347
+ }, "applyTreeGridDefaultHeaderPanelRowSpanLayout"), jt = /* @__PURE__ */ s((e) => Me(
348
348
  de(e, "Selecting"),
349
349
  de(e, "SelectingSingle")
350
- ), "isTreeGridJsonCheckboxSelectionLayout"), Kt = /* @__PURE__ */ s((e) => Ne(
350
+ ), "isTreeGridJsonCheckboxSelectionLayout"), Kt = /* @__PURE__ */ s((e) => Me(
351
351
  e.Selecting,
352
352
  e.SelectingSingle
353
- ), "isTreeGridXmlCheckboxSelectionLayout"), zt = /* @__PURE__ */ s((e) => !F(e.Selecting), "isTreeGridXmlSelectingLayout"), Yt = /* @__PURE__ */ s((e) => Y(e.Undo, "1") && Y(e.Deleting, "2") && Y(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), br = /* @__PURE__ */ s((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), Dr = /* @__PURE__ */ s((e, t) => {
353
+ ), "isTreeGridXmlCheckboxSelectionLayout"), zt = /* @__PURE__ */ s((e) => !B(e.Selecting), "isTreeGridXmlSelectingLayout"), Yt = /* @__PURE__ */ s((e) => q(e.Undo, "1") && q(e.Deleting, "2") && q(e.Selecting, "0"), "isTreeGridXmlDeletePanelDefaultLayout"), br = /* @__PURE__ */ s((e) => e.lastCfgEndIndex ?? e.gridOpenTagEndIndex, "getTreeGridXmlCellClickActionInsertionIndex"), Dr = /* @__PURE__ */ s((e, t) => {
354
354
  if (t.gridOpenTagEndIndex === void 0 || !zt(t.cfgValues) || /\bOnClickCell\s*=/i.test(e))
355
355
  return e;
356
356
  const n = t.defaultActionsTag;
@@ -415,26 +415,26 @@ const Oe = /* @__PURE__ */ s((e, t) => {
415
415
  <Cfg FastPanel="0" />${e.slice(
416
416
  n
417
417
  )}`;
418
- }, "applyTreeGridXmlDefaultFastPanelLayout"), Br = /* @__PURE__ */ s((e) => {
418
+ }, "applyTreeGridXmlDefaultFastPanelLayout"), Fr = /* @__PURE__ */ s((e) => {
419
419
  const t = e.Cfg;
420
420
  if (Array.isArray(t)) {
421
- t.some((n) => G(n) && "FastPanel" in n) || (e.Cfg = [{ FastPanel: 0 }, ...t]);
421
+ t.some((n) => C(n) && "FastPanel" in n) || (e.Cfg = [{ FastPanel: 0 }, ...t]);
422
422
  return;
423
423
  }
424
- if (G(t)) {
424
+ if (C(t)) {
425
425
  "FastPanel" in t || (t.FastPanel = 0);
426
426
  return;
427
427
  }
428
428
  e.Cfg = { FastPanel: 0 };
429
- }, "applyTreeGridJsonFastPanelDefault"), Fr = /* @__PURE__ */ s((e) => {
429
+ }, "applyTreeGridJsonFastPanelDefault"), Br = /* @__PURE__ */ s((e) => {
430
430
  const t = e.Actions;
431
431
  if (Array.isArray(t)) {
432
432
  t.some(
433
- (n) => G(n) && "OnClickPanelSelectAll" in n
433
+ (n) => C(n) && "OnClickPanelSelectAll" in n
434
434
  ) || (e.Actions = [{ ...ce }, ...t]);
435
435
  return;
436
436
  }
437
- if (G(t)) {
437
+ if (C(t)) {
438
438
  "OnClickPanelSelectAll" in t || (t.OnClickPanelSelectAll = ce.OnClickPanelSelectAll);
439
439
  return;
440
440
  }
@@ -442,10 +442,10 @@ const Oe = /* @__PURE__ */ s((e, t) => {
442
442
  }, "applyTreeGridJsonSelectAllPanelActionDefault"), Nr = /* @__PURE__ */ s((e) => {
443
443
  const t = e.Actions;
444
444
  if (Array.isArray(t)) {
445
- t.some((n) => G(n) && "OnClickCell" in n) || (e.Actions = [{ ...ie }, ...t]);
445
+ t.some((n) => C(n) && "OnClickCell" in n) || (e.Actions = [{ ...ie }, ...t]);
446
446
  return;
447
447
  }
448
- if (G(t)) {
448
+ if (C(t)) {
449
449
  "OnClickCell" in t || (t.OnClickCell = ie.OnClickCell);
450
450
  return;
451
451
  }
@@ -453,7 +453,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
453
453
  }, "applyTreeGridJsonCellClickActionDefault"), Mr = /* @__PURE__ */ s((e) => {
454
454
  try {
455
455
  const t = JSON.parse(e);
456
- return !G(t) || F(de(t, "Selecting")) ? e : (Nr(t), JSON.stringify(t));
456
+ return !C(t) || B(de(t, "Selecting")) ? e : (Nr(t), JSON.stringify(t));
457
457
  } catch {
458
458
  return e;
459
459
  }
@@ -466,7 +466,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
466
466
  }, "applyTreeGridDefaultCellClickActionLayout"), Vr = /* @__PURE__ */ s((e) => {
467
467
  try {
468
468
  const t = JSON.parse(e);
469
- return !G(t) || !jt(t) ? e : (Fr(t), JSON.stringify(t));
469
+ return !C(t) || !jt(t) ? e : (Br(t), JSON.stringify(t));
470
470
  } catch {
471
471
  return e;
472
472
  }
@@ -478,17 +478,17 @@ const Oe = /* @__PURE__ */ s((e, t) => {
478
478
  ) : e;
479
479
  }, "applyTreeGridDefaultSelectAllPanelActionLayout"), kr = /* @__PURE__ */ s((e) => {
480
480
  const t = Mt(
481
- hr(e, Ft)
481
+ hr(e, Bt)
482
482
  );
483
483
  if (!Vt(t))
484
484
  return;
485
485
  const n = e.Cfg;
486
486
  if (Array.isArray(n)) {
487
- const r = n.find(G);
487
+ const r = n.find(C);
488
488
  r ? Object.assign(r, t) : e.Cfg = [t, ...n];
489
489
  return;
490
490
  }
491
- if (G(n)) {
491
+ if (C(n)) {
492
492
  Object.assign(n, t);
493
493
  return;
494
494
  }
@@ -496,7 +496,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
496
496
  }, "applyTreeGridJsonStableScrollbarDefaults"), Xr = /* @__PURE__ */ s((e) => {
497
497
  try {
498
498
  const t = JSON.parse(e);
499
- return G(t) ? (kr(t), JSON.stringify(t)) : e;
499
+ return C(t) ? (kr(t), JSON.stringify(t)) : e;
500
500
  } catch {
501
501
  return e;
502
502
  }
@@ -536,11 +536,11 @@ const Oe = /* @__PURE__ */ s((e, t) => {
536
536
  }, "applyTreeGridStableScrollbarDefaultLayout"), St = /* @__PURE__ */ s((e) => {
537
537
  const t = e.Text;
538
538
  if (Array.isArray(t)) {
539
- const n = t.find(G);
539
+ const n = t.find(C);
540
540
  n ? Object.assign(n, P) : e.Text = [{ ...P }, ...t];
541
541
  return;
542
542
  }
543
- if (G(t)) {
543
+ if (C(t)) {
544
544
  Object.assign(t, P);
545
545
  return;
546
546
  }
@@ -548,11 +548,11 @@ const Oe = /* @__PURE__ */ s((e, t) => {
548
548
  }, "applyTreeGridJsonLangPageMessageTextDefaults"), Hr = /* @__PURE__ */ s((e) => {
549
549
  const t = e.Lang;
550
550
  if (Array.isArray(t)) {
551
- const n = t.find(G);
551
+ const n = t.find(C);
552
552
  n ? St(n) : e.Lang = [{ Text: { ...P } }, ...t];
553
553
  return;
554
554
  }
555
- if (G(t)) {
555
+ if (C(t)) {
556
556
  St(t);
557
557
  return;
558
558
  }
@@ -560,11 +560,11 @@ const Oe = /* @__PURE__ */ s((e, t) => {
560
560
  }, "applyTreeGridJsonPageMessageTextDefaults"), jr = /* @__PURE__ */ s((e) => {
561
561
  try {
562
562
  const t = JSON.parse(e);
563
- return G(t) ? (Hr(t), JSON.stringify(t)) : e;
563
+ return C(t) ? (Hr(t), JSON.stringify(t)) : e;
564
564
  } catch {
565
565
  return e;
566
566
  }
567
- }, "applyTreeGridJsonPageMessageTextLayout"), we = /* @__PURE__ */ s(() => Q("<Text />", P), "createTreeGridXmlPageMessageTextTag"), Kr = /* @__PURE__ */ s((e) => {
567
+ }, "applyTreeGridJsonPageMessageTextLayout"), Ie = /* @__PURE__ */ s(() => ee("<Text />", P), "createTreeGridXmlPageMessageTextTag"), Kr = /* @__PURE__ */ s((e) => {
568
568
  let t = !1;
569
569
  const n = e.replace(
570
570
  /(<Lang\b[^>]*>)([\s\S]*?)(<\/Lang>)/i,
@@ -572,16 +572,16 @@ const Oe = /* @__PURE__ */ s((e, t) => {
572
572
  if (t = !0, /<Text\b/i.test(c)) {
573
573
  const u = c.replace(
574
574
  /<Text\b[^>]*(?:\/>|>)/i,
575
- (T) => Q(T, P)
575
+ (T) => ee(T, P)
576
576
  );
577
577
  return `${o}${u}${d}`;
578
578
  }
579
579
  return `${o}
580
- ${we()}${c}${d}`;
580
+ ${Ie()}${c}${d}`;
581
581
  }
582
582
  );
583
583
  return t ? n : e.replace(/<Lang\b[^>]*\/>/i, (r) => (t = !0, `${r.replace(/\s*\/>$/, ">")}
584
- ${we()}
584
+ ${Ie()}
585
585
  </Lang>`));
586
586
  }, "applyTreeGridXmlPageMessageTextToLangLayout"), zr = /* @__PURE__ */ s((e) => {
587
587
  const t = Kr(e);
@@ -590,7 +590,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
590
590
  const n = m(e), r = n.lastCfgEndIndex ?? n.gridOpenTagEndIndex;
591
591
  return r === void 0 ? e : `${e.slice(0, r)}
592
592
  <Lang>
593
- ${we()}
593
+ ${Ie()}
594
594
  </Lang>${e.slice(
595
595
  r
596
596
  )}`;
@@ -602,7 +602,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
602
602
  return e;
603
603
  try {
604
604
  const n = JSON.parse(e);
605
- if (!G(n))
605
+ if (!C(n))
606
606
  return e;
607
607
  const r = Nt(n);
608
608
  return r.some((o) => "SuppressCfg" in o) ? e : (r[0] ? r[0].SuppressCfg = t : n.Cfg = { SuppressCfg: t }, JSON.stringify(n));
@@ -614,7 +614,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
614
614
  return e;
615
615
  const r = t.defaultCfgTag;
616
616
  if (r) {
617
- const c = Z(r.tag, "SuppressCfg", n);
617
+ const c = Q(r.tag, "SuppressCfg", n);
618
618
  return `${e.slice(0, r.index)}${c}${e.slice(
619
619
  r.index + r.tag.length
620
620
  )}`;
@@ -631,24 +631,24 @@ const Oe = /* @__PURE__ */ s((e, t) => {
631
631
  m(e),
632
632
  t
633
633
  );
634
- }, "applyTreeGridDefaultSuppressCfgLayout"), es = /* @__PURE__ */ s((e) => Bt.some((t) => t in e), "hasTreeGridToolbarFormulaField"), ts = /* @__PURE__ */ s((e) => {
635
- const t = e.Toolbar, n = e.Solid, r = Array.isArray(t) ? t.filter(G) : G(t) ? [t] : [], o = Array.isArray(n) ? n.filter(
636
- (c) => G(c) && Y(c.Kind, "Toolbar")
637
- ) : G(n) && Y(n.Kind, "Toolbar") ? [n] : [];
634
+ }, "applyTreeGridDefaultSuppressCfgLayout"), es = /* @__PURE__ */ s((e) => Ft.some((t) => t in e), "hasTreeGridToolbarFormulaField"), ts = /* @__PURE__ */ s((e) => {
635
+ const t = e.Toolbar, n = e.Solid, r = Array.isArray(t) ? t.filter(C) : C(t) ? [t] : [], o = Array.isArray(n) ? n.filter(
636
+ (c) => C(c) && q(c.Kind, "Toolbar")
637
+ ) : C(n) && q(n.Kind, "Toolbar") ? [n] : [];
638
638
  return [...r, ...o];
639
639
  }, "getTreeGridJsonToolbarRecords"), ns = /* @__PURE__ */ s((e, t) => {
640
640
  if (!t)
641
641
  return e;
642
642
  try {
643
643
  const n = JSON.parse(e);
644
- if (!G(n))
644
+ if (!C(n))
645
645
  return e;
646
646
  const r = ts(n);
647
647
  return r.some(es) ? e : (r[0] ? r[0].FormulaFormula = t : n.Toolbar = { FormulaFormula: t }, JSON.stringify(n));
648
648
  } catch {
649
649
  return e;
650
650
  }
651
- }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), rs = /* @__PURE__ */ s((e) => Bt.some(
651
+ }, "applyTreeGridJsonDefaultToolbarTotalCountLayout"), rs = /* @__PURE__ */ s((e) => Ft.some(
652
652
  (t) => j(e, t)
653
653
  ), "hasTreeGridXmlToolbarFormulaAttribute"), ss = /* @__PURE__ */ s((e, t) => {
654
654
  if (!t)
@@ -658,7 +658,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
658
658
  const d = n[0];
659
659
  if (rs(d))
660
660
  return e;
661
- const u = Le(
661
+ const u = we(
662
662
  d,
663
663
  "Formula",
664
664
  t
@@ -667,7 +667,7 @@ const Oe = /* @__PURE__ */ s((e, t) => {
667
667
  n.index + d.length
668
668
  )}`;
669
669
  }
670
- const r = Le(
670
+ const r = we(
671
671
  "<Toolbar />",
672
672
  "Formula",
673
673
  t
@@ -692,7 +692,7 @@ ${e.slice(
692
692
  }, "applyTreeGridDefaultToolbarTotalCountLayout"), is = /* @__PURE__ */ s((e) => {
693
693
  try {
694
694
  const t = JSON.parse(e);
695
- return !G(t) || !jt(t) ? e : (Br(t), JSON.stringify(t));
695
+ return !C(t) || !jt(t) ? e : (Fr(t), JSON.stringify(t));
696
696
  } catch {
697
697
  return e;
698
698
  }
@@ -705,7 +705,7 @@ ${e.slice(
705
705
  }, "applyTreeGridDefaultFastPanelLayout"), cs = /* @__PURE__ */ s((e) => {
706
706
  const t = e.Animations;
707
707
  if (Array.isArray(t)) {
708
- const n = t.find(G);
708
+ const n = t.find(C);
709
709
  n ? at(
710
710
  n,
711
711
  H
@@ -715,7 +715,7 @@ ${e.slice(
715
715
  ];
716
716
  return;
717
717
  }
718
- if (G(t)) {
718
+ if (C(t)) {
719
719
  at(
720
720
  t,
721
721
  H
@@ -726,11 +726,11 @@ ${e.slice(
726
726
  }, "applyTreeGridJsonDefaultAnimationDefaults"), ls = /* @__PURE__ */ s((e) => {
727
727
  try {
728
728
  const t = JSON.parse(e);
729
- return G(t) ? (cs(t), JSON.stringify(t)) : e;
729
+ return C(t) ? (cs(t), JSON.stringify(t)) : e;
730
730
  } catch {
731
731
  return e;
732
732
  }
733
- }, "applyTreeGridJsonDefaultAnimationLayout"), ds = /* @__PURE__ */ s(() => Q(
733
+ }, "applyTreeGridJsonDefaultAnimationLayout"), ds = /* @__PURE__ */ s(() => ee(
734
734
  "<Animations />",
735
735
  H
736
736
  ), "createTreeGridDefaultAnimationsTag"), us = /* @__PURE__ */ s((e, t) => {
@@ -759,20 +759,20 @@ ${e.slice(
759
759
  const t = {};
760
760
  return e == null || e.forEach((n) => {
761
761
  var r;
762
- (r = Cr[n]) == null || r.forEach((o) => {
762
+ (r = Gr[n]) == null || r.forEach((o) => {
763
763
  t[o] = "";
764
764
  });
765
765
  }), t;
766
766
  }, "getTreeGridDisabledAnimationAttributes"), as = /* @__PURE__ */ s((e, t) => {
767
767
  try {
768
768
  const n = JSON.parse(e);
769
- if (!G(n))
769
+ if (!C(n))
770
770
  return e;
771
771
  const r = n.Animations;
772
772
  if (Array.isArray(r)) {
773
- const o = r.find(G);
773
+ const o = r.find(C);
774
774
  o ? Object.assign(o, t) : r.unshift({ ...t });
775
- } else if (G(r))
775
+ } else if (C(r))
776
776
  Object.assign(r, t);
777
777
  else if (r === void 0)
778
778
  n.Animations = t;
@@ -782,13 +782,13 @@ ${e.slice(
782
782
  } catch {
783
783
  return e;
784
784
  }
785
- }, "applyTreeGridJsonDisabledAnimationsLayout"), Ts = /* @__PURE__ */ s((e) => Q("<Animations />", e), "createTreeGridDisabledAnimationsTag"), Rs = /* @__PURE__ */ s((e, t) => {
785
+ }, "applyTreeGridJsonDisabledAnimationsLayout"), Ts = /* @__PURE__ */ s((e) => ee("<Animations />", e), "createTreeGridDisabledAnimationsTag"), Rs = /* @__PURE__ */ s((e, t) => {
786
786
  const n = m(e);
787
787
  if (n.gridOpenTagEndIndex === void 0)
788
788
  return e;
789
789
  const r = n.animationsTag;
790
790
  if (r) {
791
- const c = Q(r.tag, t);
791
+ const c = ee(r.tag, t);
792
792
  return c === r.tag ? e : `${e.slice(0, r.index)}${c}${e.slice(
793
793
  r.index + r.tag.length
794
794
  )}`;
@@ -798,7 +798,7 @@ ${e.slice(
798
798
  ${Ts(
799
799
  t
800
800
  )}${e.slice(o)}`;
801
- }, "applyTreeGridXmlDisabledAnimationsLayout"), Ct = /* @__PURE__ */ s((e, t) => {
801
+ }, "applyTreeGridXmlDisabledAnimationsLayout"), Gt = /* @__PURE__ */ s((e, t) => {
802
802
  const n = fs(t);
803
803
  if (!Object.keys(n).length)
804
804
  return e;
@@ -818,7 +818,7 @@ ${e.slice(
818
818
  n
819
819
  ), c = o.trim();
820
820
  if (!c || c.startsWith("{"))
821
- return Ct(
821
+ return Gt(
822
822
  pt(
823
823
  Et(
824
824
  Tt(
@@ -831,15 +831,15 @@ ${e.slice(
831
831
  const d = m(o), u = Rt(
832
832
  o,
833
833
  d
834
- ), T = u === o ? d : m(u), C = Tt(
834
+ ), T = u === o ? d : m(u), G = Tt(
835
835
  u,
836
836
  T
837
- ), A = C === u ? T : m(C);
838
- return Ct(
837
+ ), A = G === u ? T : m(G);
838
+ return Gt(
839
839
  pt(
840
840
  Ur(
841
841
  Et(
842
- C,
842
+ G,
843
843
  A
844
844
  ),
845
845
  A
@@ -847,7 +847,7 @@ ${e.slice(
847
847
  ),
848
848
  t
849
849
  );
850
- }, "createTreeGridDefaultLayout"), Ie = /* @__PURE__ */ s((e, t, n, r) => {
850
+ }, "createTreeGridDefaultLayout"), xe = /* @__PURE__ */ s((e, t, n, r) => {
851
851
  const o = Ss(t), c = ft;
852
852
  if ((c == null ? void 0 : c.layoutData) === e && c.disabledAnimationsKey === o && c.toolbarTotalCountFormula === n && c.suppressCfg === r)
853
853
  return c.result;
@@ -867,17 +867,17 @@ ${e.slice(
867
867
  }, "applyTreeGridDefaultLayout"), ps = /* @__PURE__ */ s((e) => {
868
868
  var t;
869
869
  return typeof document > "u" ? null : ((t = document.getElementById(e)) == null ? void 0 : t.closest(`.${Un}`)) ?? null;
870
- }, "getTreeGridWrapperElement"), Cs = /* @__PURE__ */ s((e) => {
870
+ }, "getTreeGridWrapperElement"), Gs = /* @__PURE__ */ s((e) => {
871
871
  if (le(e.AllSelected))
872
872
  return "checked";
873
- if (F(e.AllSelected))
873
+ if (B(e.AllSelected))
874
874
  return "unchecked";
875
875
  let t = 0, n = 0;
876
876
  return M(e).forEach((r) => {
877
- !p(r) || w(r) || F(r.CanSelect) || (t += 1, le(e.IsSelected(r)) && (n += 1));
877
+ !p(r) || w(r) || B(r.CanSelect) || (t += 1, le(e.IsSelected(r)) && (n += 1));
878
878
  }), n ? t > 0 && n >= t ? "checked" : "indeterminate" : "unchecked";
879
- }, "getTreeGridSelectAllState"), xe = /* @__PURE__ */ s((e, t) => {
880
- const n = ps(t), r = !F(e.Selecting), o = Ne(
879
+ }, "getTreeGridSelectAllState"), be = /* @__PURE__ */ s((e, t) => {
880
+ const n = ps(t), r = !B(e.Selecting), o = Me(
881
881
  e.Selecting,
882
882
  e.SelectingSingle
883
883
  ), c = e.Header;
@@ -891,7 +891,7 @@ ${e.slice(
891
891
  ot
892
892
  );
893
893
  else {
894
- const d = Cs(e);
894
+ const d = Gs(e);
895
895
  n == null || n.classList.toggle(
896
896
  rt,
897
897
  d === "checked"
@@ -904,38 +904,38 @@ ${e.slice(
904
904
  );
905
905
  }
906
906
  c && r && (c.CanSelect = o ? 1 : 0);
907
- }, "syncTreeGridSelectionPanelState"), Ee = /* @__PURE__ */ new Map(), se = /* @__PURE__ */ s((e, t) => {
907
+ }, "syncTreeGridSelectionPanelState"), pe = /* @__PURE__ */ new Map(), se = /* @__PURE__ */ s((e, t) => {
908
908
  if (typeof window > "u")
909
909
  return;
910
- const n = Ee.get(t);
910
+ const n = pe.get(t);
911
911
  n !== void 0 && window.clearTimeout(n);
912
912
  const r = window.setTimeout(() => {
913
- Ee.delete(t), xe(e, t);
913
+ pe.delete(t), be(e, t);
914
914
  }, 0);
915
- Ee.set(t, r);
916
- }, "scheduleTreeGridSelectionPanelStateSync"), Gs = /* @__PURE__ */ s((e, t) => {
915
+ pe.set(t, r);
916
+ }, "scheduleTreeGridSelectionPanelStateSync"), Cs = /* @__PURE__ */ s((e, t) => {
917
917
  e.EnterMode = t;
918
918
  const n = Jn[t];
919
919
  if (!n)
920
920
  return;
921
921
  const r = e;
922
922
  r.Actions ?? (r.Actions = {}), r.Actions.OnEnter = n.onEnter, r.Actions.OnEnterEdit = n.onEnterEdit;
923
- }, "applyTreeGridDefaultEnterMode"), qt = /* @__PURE__ */ s((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Gt = /* @__PURE__ */ new Map(), hs = /* @__PURE__ */ s((e) => {
923
+ }, "applyTreeGridDefaultEnterMode"), qt = /* @__PURE__ */ s((e) => (e == null ? void 0 : e.startsWith("data:")) || (e == null ? void 0 : e.startsWith("blob:")), "isTreeGridInlineUrl"), Ct = /* @__PURE__ */ new Map(), hs = /* @__PURE__ */ s((e) => {
924
924
  if (!e || !e.startsWith("data:"))
925
925
  return e;
926
- const t = Gt.get(e);
926
+ const t = Ct.get(e);
927
927
  if (t)
928
928
  return t;
929
929
  try {
930
930
  const [n, r = ""] = e.split(",", 2), o = /^data:([^;]*)(;base64)?$/i.exec(n), c = (o == null ? void 0 : o[1]) || "application/octet-stream", d = o != null && o[2] ? atob(r) : decodeURIComponent(r), u = new Uint8Array(d.length);
931
- for (let C = 0; C < d.length; C += 1)
932
- u[C] = d.charCodeAt(C);
931
+ for (let G = 0; G < d.length; G += 1)
932
+ u[G] = d.charCodeAt(G);
933
933
  const T = URL.createObjectURL(new Blob([u], { type: c }));
934
- return Gt.set(e, T), T;
934
+ return Ct.set(e, T), T;
935
935
  } catch {
936
936
  return e;
937
937
  }
938
- }, "resolveTreeGridInlineUrl"), be = /* @__PURE__ */ s((e) => {
938
+ }, "resolveTreeGridInlineUrl"), De = /* @__PURE__ */ s((e) => {
939
939
  if (!e || qt(e))
940
940
  return hs(e);
941
941
  const t = e.indexOf("#"), [n, r] = t >= 0 ? [e.slice(0, t), e.slice(t)] : [e, ""], o = n.includes("?") ? "&" : "?";
@@ -949,9 +949,9 @@ ${e.slice(
949
949
  try {
950
950
  if (r !== void 0 && (t.CanEdit = r), c !== void 0) {
951
951
  const T = t;
952
- o.forEach((C) => {
952
+ o.forEach((G) => {
953
953
  var A;
954
- !C || !((A = e.Cols) != null && A[C]) || (T[`${C}CanEdit`] = c);
954
+ !G || !((A = e.Cols) != null && A[G]) || (T[`${G}CanEdit`] = c);
955
955
  });
956
956
  }
957
957
  d.forEach((T) => {
@@ -967,7 +967,7 @@ ${e.slice(
967
967
  }
968
968
  typeof e.RefreshRow == "function" && e.RefreshRow(t);
969
969
  }
970
- }, "syncTreeGridDeletedRowState"), As = /* @__PURE__ */ s((e) => e ? qt(e) || e.includes("assets") ? be(e) : be(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), _s = /* @__PURE__ */ s((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), gs = /* @__PURE__ */ s((e, t, n, r) => {
970
+ }, "syncTreeGridDeletedRowState"), As = /* @__PURE__ */ s((e) => e ? qt(e) || e.includes("assets") ? De(e) : De(`undefined/${e}`) : "", "resolveTreeGridDataUrl"), _s = /* @__PURE__ */ s((e) => (typeof e == "object" || typeof e == "function") && e !== null && typeof e.then == "function", "isTreeGridPromiseLike"), gs = /* @__PURE__ */ s((e, t, n, r) => {
971
971
  let o = !1;
972
972
  const c = /* @__PURE__ */ s(() => {
973
973
  o || (o = !0, e.RemoveRow(t), n(e), r(e, !0));
@@ -1000,24 +1000,24 @@ ${e.slice(
1000
1000
  dataUrl: d,
1001
1001
  bodyData: u,
1002
1002
  useDataUrl: T,
1003
- width: C,
1003
+ width: G,
1004
1004
  height: A,
1005
1005
  languageId: g
1006
1006
  }) => ({
1007
1007
  id: e,
1008
1008
  Layout: n ? {
1009
- Data: Ie(
1009
+ Data: xe(
1010
1010
  n,
1011
1011
  c,
1012
1012
  r,
1013
1013
  o
1014
1014
  )
1015
- } : { Url: be(t ?? "") },
1015
+ } : { Url: De(t ?? "") },
1016
1016
  Data: Os(T, d, u),
1017
1017
  Text: {
1018
1018
  Url: _n(g)
1019
1019
  },
1020
- width: C,
1020
+ width: G,
1021
1021
  height: A,
1022
1022
  Debug: "Error"
1023
1023
  }), "buildTreeGridInitializationOptions"), At = /* @__PURE__ */ s((e) => Xn(e, "Data.Data.Data.Body.0"), "getTreeGridBodyData"), _t = /* @__PURE__ */ s((e) => {
@@ -1030,14 +1030,14 @@ ${e.slice(
1030
1030
  return;
1031
1031
  const n = Number(t);
1032
1032
  return Number.isFinite(n) && n > 0 ? n : void 0;
1033
- }, "parseTreeGridPositiveNumber"), De = /* @__PURE__ */ s((e, t, n, r) => {
1033
+ }, "parseTreeGridPositiveNumber"), ye = /* @__PURE__ */ s((e, t, n, r) => {
1034
1034
  if (!t || !n)
1035
1035
  return;
1036
1036
  const o = e.GetAttribute(t, n, r), c = _t(o);
1037
1037
  return c !== void 0 ? c : _t(
1038
1038
  t[`${n}${r}`]
1039
1039
  );
1040
- }, "getTreeGridHeaderCellSpanAttribute"), Ls = /* @__PURE__ */ s((e, t, n) => !t || !n || t.Fixed !== "Head" || (De(e, t, n, "Span") ?? 1) <= 1 ? !1 : (De(e, t, n, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), gt = /* @__PURE__ */ s((e, t, n) => {
1040
+ }, "getTreeGridHeaderCellSpanAttribute"), Ls = /* @__PURE__ */ s((e, t, n) => !t || !n || t.Fixed !== "Head" || (ye(e, t, n, "Span") ?? 1) <= 1 ? !1 : (ye(e, t, n, "RowSpan") ?? 1) === 1, "isTreeGridGroupHeaderCell"), gt = /* @__PURE__ */ s((e, t, n) => {
1041
1041
  const r = e.get(t);
1042
1042
  if (r) {
1043
1043
  r.add(n);
@@ -1050,7 +1050,7 @@ ${e.slice(
1050
1050
  n.forEach((u, T) => {
1051
1051
  if (!Ls(e, c, u) || (gt(o, c, u), !r))
1052
1052
  return;
1053
- const C = Math.floor(De(e, c, u, "Span") ?? 1), A = Math.min(n.length, T + C);
1053
+ const G = Math.floor(ye(e, c, u, "Span") ?? 1), A = Math.min(n.length, T + G);
1054
1054
  for (let g = d + 1; g < t.length; g += 1) {
1055
1055
  const x = t[g];
1056
1056
  for (let I = T; I < A; I += 1)
@@ -1059,7 +1059,7 @@ ${e.slice(
1059
1059
  });
1060
1060
  }), o;
1061
1061
  }, "getTreeGridGroupHeaderSortButtonTargets"), Is = /* @__PURE__ */ s((e) => typeof e.GetFixedRows == "function" ? e.GetFixedRows().filter((t) => t.Fixed === "Head") : [], "getTreeGridHeaderRows"), xs = /* @__PURE__ */ s((e) => typeof e.GetCols == "function" ? e.GetCols() : [], "getTreeGridCols"), Zt = /* @__PURE__ */ s((e, t) => {
1062
- const n = ge.get(e);
1062
+ const n = me.get(e);
1063
1063
  if ((n == null ? void 0 : n.includeChildHeaderCells) === t)
1064
1064
  return n.targets;
1065
1065
  const r = Is(e), o = xs(e), c = r.length && o.length ? ws(
@@ -1068,12 +1068,12 @@ ${e.slice(
1068
1068
  o,
1069
1069
  t
1070
1070
  ) : /* @__PURE__ */ new Map();
1071
- return ge.set(e, {
1071
+ return me.set(e, {
1072
1072
  includeChildHeaderCells: t,
1073
1073
  targets: c
1074
1074
  }), c;
1075
1075
  }, "getTreeGridGroupHeaderSortButtonTargetCache"), U = /* @__PURE__ */ s((e) => {
1076
- e && ge.delete(e);
1076
+ e && me.delete(e);
1077
1077
  }, "clearTreeGridGroupHeaderSortButtonTargetCache"), bs = /* @__PURE__ */ s((e, t, n, r) => {
1078
1078
  var o;
1079
1079
  return !t || !n || t.Fixed !== "Head" ? !1 : ((o = Zt(e, r).get(t)) == null ? void 0 : o.has(n)) === !0;
@@ -1084,9 +1084,9 @@ ${e.slice(
1084
1084
  if (u.size) {
1085
1085
  typeof e.StartUpdate == "function" && e.StartUpdate();
1086
1086
  try {
1087
- u.forEach((T, C) => {
1087
+ u.forEach((T, G) => {
1088
1088
  T.forEach((A) => {
1089
- e.GetAttribute(C, A, ct) !== "" && (e.SetAttribute(C, A, ct, "", 0, 0), c.add(C), d += 1);
1089
+ e.GetAttribute(G, A, ct) !== "" && (e.SetAttribute(G, A, ct, "", 0, 0), c.add(G), d += 1);
1090
1090
  });
1091
1091
  });
1092
1092
  } finally {
@@ -1108,37 +1108,37 @@ ${e.slice(
1108
1108
  }, "isAddedTreeGridRow"), w = /* @__PURE__ */ s((e) => {
1109
1109
  const t = e == null ? void 0 : e.Deleted;
1110
1110
  return !!e && t !== 0 && t !== !1 && t !== "0" && t !== void 0;
1111
- }, "isDeletedTreeGridRow"), pe = /* @__PURE__ */ s((e, t) => e[t], "getTreeGridRowRawAttribute"), Ot = /* @__PURE__ */ s((e, t, n) => {
1111
+ }, "isDeletedTreeGridRow"), Ge = /* @__PURE__ */ s((e, t) => e[t], "getTreeGridRowRawAttribute"), Ot = /* @__PURE__ */ s((e, t, n) => {
1112
1112
  const r = e;
1113
1113
  if (n === void 0) {
1114
1114
  delete r[t];
1115
1115
  return;
1116
1116
  }
1117
1117
  r[t] = n;
1118
- }, "setTreeGridRowRawAttribute"), p = /* @__PURE__ */ s((e) => !e || e.Fixed === "Foot" || !ys(e) ? !1 : e.Kind === "Data" || v(e), "isDisplayTreeGridRow"), ee = /* @__PURE__ */ s((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Qt = /* @__PURE__ */ s((e, t) => {
1118
+ }, "setTreeGridRowRawAttribute"), p = /* @__PURE__ */ s((e) => !e || e.Fixed === "Foot" || !ys(e) ? !1 : e.Kind === "Data" || v(e), "isDisplayTreeGridRow"), te = /* @__PURE__ */ s((e) => Object.keys(e.Cols ?? {}).filter(Boolean), "getTreeGridColumnNames"), Qt = /* @__PURE__ */ s((e, t) => {
1119
1119
  var r;
1120
1120
  const n = (r = e.Cols) == null ? void 0 : r[t];
1121
- return !!n && !F(n.Visible) && !Gr(n.Hidden);
1121
+ return !!n && !B(n.Visible) && !Cr(n.Hidden);
1122
1122
  }, "isVisibleTreeGridColumn"), oe = /* @__PURE__ */ s((e, t) => typeof e == "number" && Number.isFinite(e) ? e : t, "resolveTreeGridColumnOrderValue"), Ps = /* @__PURE__ */ s((e) => {
1123
- const t = _e.get(e);
1123
+ const t = ge.get(e);
1124
1124
  if (t)
1125
1125
  return t;
1126
1126
  const n = new Map(
1127
- ee(e).map((c, d) => [c, d])
1127
+ te(e).map((c, d) => [c, d])
1128
1128
  ), r = [...n.keys()].filter(
1129
1129
  (c) => !er.has(c) && Qt(e, c)
1130
1130
  ).sort((c, d) => {
1131
1131
  var I, k;
1132
- const u = (I = e.Cols) == null ? void 0 : I[c], T = (k = e.Cols) == null ? void 0 : k[d], C = n.get(c) ?? 0, A = n.get(d) ?? 0, g = oe(u == null ? void 0 : u.Sec, C) - oe(T == null ? void 0 : T.Sec, A);
1133
- return g !== 0 ? g : oe(u == null ? void 0 : u.Pos, C) - oe(T == null ? void 0 : T.Pos, A) || C - A;
1132
+ const u = (I = e.Cols) == null ? void 0 : I[c], T = (k = e.Cols) == null ? void 0 : k[d], G = n.get(c) ?? 0, A = n.get(d) ?? 0, g = oe(u == null ? void 0 : u.Sec, G) - oe(T == null ? void 0 : T.Sec, A);
1133
+ return g !== 0 ? g : oe(u == null ? void 0 : u.Pos, G) - oe(T == null ? void 0 : T.Pos, A) || G - A;
1134
1134
  }), o = {
1135
1135
  columnSet: new Set(r),
1136
1136
  firstColumn: r[0],
1137
1137
  lastColumn: r[r.length - 1]
1138
1138
  };
1139
- return _e.set(e, o), o;
1139
+ return ge.set(e, o), o;
1140
1140
  }, "getTreeGridAddedRowBoxColumnBounds"), J = /* @__PURE__ */ s((e) => {
1141
- e && _e.delete(e);
1141
+ e && ge.delete(e);
1142
1142
  }, "clearTreeGridAddedRowBoxColumnBounds"), M = /* @__PURE__ */ s((e) => {
1143
1143
  if (typeof e.GetFirst == "function" && typeof e.GetNext == "function") {
1144
1144
  const t = [];
@@ -1150,15 +1150,15 @@ ${e.slice(
1150
1150
  return Object.values(e.Rows ?? {});
1151
1151
  }, "getTreeGridRows"), Lt = /* @__PURE__ */ s((e, t, n, r) => {
1152
1152
  if (r)
1153
- return n.has(e) || n.set(e, pe(e, t)), pe(e, t) === 0 ? !1 : (Ot(e, t, 0), !0);
1153
+ return n.has(e) || n.set(e, Ge(e, t)), Ge(e, t) === 0 ? !1 : (Ot(e, t, 0), !0);
1154
1154
  if (!n.has(e))
1155
1155
  return !1;
1156
1156
  const o = n.get(e);
1157
- return n.delete(e), pe(e, t) === o ? !1 : (Ot(e, t, o), !0);
1157
+ return n.delete(e), Ge(e, t) === o ? !1 : (Ot(e, t, o), !0);
1158
1158
  }, "syncTreeGridDeletedRowPermission"), vs = /* @__PURE__ */ s((e, t) => {
1159
1159
  const n = e.IsSelected(t);
1160
1160
  return n !== 0 && n !== !1 && n !== void 0 && n !== null;
1161
- }, "isTreeGridRowSelected"), Us = /* @__PURE__ */ s((e, t) => e.FRow === t, "isTreeGridRowFocused"), en = /* @__PURE__ */ s((e, t) => Us(e, t) ? (e.Focus(null, null), Oe(e, !1), !0) : !1, "clearTreeGridRowFocus"), ye = /* @__PURE__ */ s((e, t, n, r) => {
1161
+ }, "isTreeGridRowSelected"), Us = /* @__PURE__ */ s((e, t) => e.FRow === t, "isTreeGridRowFocused"), en = /* @__PURE__ */ s((e, t) => Us(e, t) ? (e.Focus(null, null), Le(e, !1), !0) : !1, "clearTreeGridRowFocus"), Pe = /* @__PURE__ */ s((e, t, n, r) => {
1162
1162
  if (!t || !p(t))
1163
1163
  return !1;
1164
1164
  let o = !1;
@@ -1176,13 +1176,13 @@ ${e.slice(
1176
1176
  }, "syncTreeGridDeletedRowInteractionState"), $s = /* @__PURE__ */ s((e) => {
1177
1177
  const t = [];
1178
1178
  return M(e).forEach((n) => {
1179
- p(n) && ye(e, n, w(n), {
1179
+ p(n) && Pe(e, n, w(n), {
1180
1180
  refresh: !1
1181
1181
  }) && t.push(n);
1182
1182
  }), t.forEach((n) => {
1183
1183
  typeof e.RefreshRow == "function" && e.RefreshRow(n);
1184
1184
  }), t.length > 0;
1185
- }, "syncTreeGridDeletedRowsInteractionState"), Pe = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ s((e, t, n = !1) => {
1185
+ }, "syncTreeGridDeletedRowsInteractionState"), ve = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), Fs = /* @__PURE__ */ s((e, t, n = !1) => {
1186
1186
  if (!e || !t)
1187
1187
  return;
1188
1188
  const r = Ce.get(e);
@@ -1212,13 +1212,13 @@ ${e.slice(
1212
1212
  }
1213
1213
  }
1214
1214
  }), Ce.set(e, o);
1215
- }, "scheduleTreeGridToolbarTotalCountRefresh"), Fs = /* @__PURE__ */ s((e) => {
1216
- e && Pe.delete(e);
1217
- }, "clearTreeGridSelectionRowSpanAnchorRowMap"), $ = /* @__PURE__ */ s((e) => {
1215
+ }, "scheduleTreeGridToolbarTotalCountRefresh"), Bs = /* @__PURE__ */ s((e) => {
1218
1216
  e && ve.delete(e);
1217
+ }, "clearTreeGridSelectionRowSpanAnchorRowMap"), $ = /* @__PURE__ */ s((e) => {
1218
+ e && Ue.delete(e);
1219
1219
  }, "clearTreeGridDataRowSpanGroupRowsMap"), L = /* @__PURE__ */ s((e) => {
1220
- Fs(e), $(e);
1221
- }, "clearTreeGridRowSpanMaps"), Me = /* @__PURE__ */ s((e, t) => {
1220
+ Bs(e), $(e);
1221
+ }, "clearTreeGridRowSpanMaps"), Ve = /* @__PURE__ */ s((e, t) => {
1222
1222
  const n = e, r = n == null ? void 0 : n[`${t}RowSpan`], o = typeof r == "number" ? r : Number.parseFloat(String(r ?? ""));
1223
1223
  return Number.isFinite(o) && o > 1 ? Math.floor(o) : 1;
1224
1224
  }, "getTreeGridRowSpanCount"), Ns = /* @__PURE__ */ s((e) => {
@@ -1229,23 +1229,23 @@ ${e.slice(
1229
1229
  t.set(o, null);
1230
1230
  return;
1231
1231
  }
1232
- const d = Me(o, Be);
1232
+ const d = Ve(o, Be);
1233
1233
  if (d > 1) {
1234
1234
  n = o, r = c + d - 1, t.set(o, o);
1235
1235
  return;
1236
1236
  }
1237
1237
  t.set(o, n && c <= r ? n : null), c >= r && (n = null, r = -1);
1238
1238
  }), t;
1239
- }, "createTreeGridSelectionRowSpanAnchorRowMap"), Ve = /* @__PURE__ */ s((e, t) => {
1239
+ }, "createTreeGridSelectionRowSpanAnchorRowMap"), ke = /* @__PURE__ */ s((e, t) => {
1240
1240
  if (!t || !p(t))
1241
1241
  return null;
1242
- let n = Pe.get(e);
1243
- return n != null && n.has(t) || (n = Ns(e), Pe.set(e, n)), n.get(t) ?? null;
1242
+ let n = ve.get(e);
1243
+ return n != null && n.has(t) || (n = Ns(e), ve.set(e, n)), n.get(t) ?? null;
1244
1244
  }, "getTreeGridSelectionRowSpanAnchorRow"), tn = /* @__PURE__ */ s((e, t) => {
1245
- const n = Ve(e, t);
1245
+ const n = ke(e, t);
1246
1246
  if (!n)
1247
1247
  return [];
1248
- const r = Me(n, Be), o = [];
1248
+ const r = Ve(n, Be), o = [];
1249
1249
  let c = n;
1250
1250
  for (let d = 0; c && d < r; d += 1)
1251
1251
  p(c) && o.push(c), c = typeof e.GetNext == "function" ? e.GetNext(c) : null;
@@ -1262,12 +1262,12 @@ ${e.slice(
1262
1262
  const n = (r = e.Cols) == null ? void 0 : r[t];
1263
1263
  return !!n && !ar.has(t) && Vs(n.Spanned) && Qt(e, t);
1264
1264
  }, "isTreeGridDataRowSpanColumn"), Xs = /* @__PURE__ */ s((e) => {
1265
- const t = /* @__PURE__ */ new WeakMap(), n = M(e), r = ee(e).filter(
1265
+ const t = /* @__PURE__ */ new WeakMap(), n = M(e), r = te(e).filter(
1266
1266
  (c) => ks(e, c)
1267
1267
  ), o = [];
1268
1268
  return n.forEach((c, d) => {
1269
- p(c) && (t.set(c, Ae), r.forEach((u) => {
1270
- const T = Me(c, u);
1269
+ p(c) && (t.set(c, _e), r.forEach((u) => {
1270
+ const T = Ve(c, u);
1271
1271
  T <= 1 || o.push({
1272
1272
  startIndex: d,
1273
1273
  endIndex: Math.min(n.length - 1, d + T - 1)
@@ -1282,26 +1282,26 @@ ${e.slice(
1282
1282
  t.set(u, d);
1283
1283
  });
1284
1284
  }), t;
1285
- }, "createTreeGridDataRowSpanGroupRowsMap"), ue = /* @__PURE__ */ s((e, t) => {
1285
+ }, "createTreeGridDataRowSpanGroupRowsMap"), fe = /* @__PURE__ */ s((e, t) => {
1286
1286
  if (!t || !p(t))
1287
- return Ae;
1288
- let n = ve.get(e);
1289
- return n != null && n.has(t) || (n = Xs(e), ve.set(e, n)), n.get(t) ?? Ae;
1287
+ return _e;
1288
+ let n = Ue.get(e);
1289
+ return n != null && n.has(t) || (n = Xs(e), Ue.set(e, n)), n.get(t) ?? _e;
1290
1290
  }, "getTreeGridDataRowSpanRows"), Ws = /* @__PURE__ */ s((e, t) => {
1291
1291
  if (!e)
1292
1292
  return;
1293
- const n = ee(e);
1293
+ const n = te(e);
1294
1294
  M(e).forEach((r) => {
1295
1295
  if (!p(r))
1296
1296
  return;
1297
1297
  const o = /* @__PURE__ */ new Map();
1298
1298
  n.forEach((c) => {
1299
- o.set(c, $e(e, r, c));
1299
+ o.set(c, Fe(e, r, c));
1300
1300
  }), t.set(r, o);
1301
1301
  });
1302
- }, "captureTreeGridChangeBaselines"), fe = /* @__PURE__ */ s((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Js = /* @__PURE__ */ s((e, t, n) => {
1302
+ }, "captureTreeGridChangeBaselines"), ae = /* @__PURE__ */ s((e) => e != null && e !== "" && e !== 0 && e !== !1 && e !== "0", "isTreeGridChangedFlag"), Js = /* @__PURE__ */ s((e, t, n) => {
1303
1303
  const r = t;
1304
- return ee(e).some((o) => o !== n && fe(r[`${o}Changed`]));
1304
+ return te(e).some((o) => o !== n && ae(r[`${o}Changed`]));
1305
1305
  }, "hasOtherTreeGridChangedCells"), nn = /* @__PURE__ */ s((e, t, n) => {
1306
1306
  const r = t;
1307
1307
  r[`${n}Changed`] = 0, !v(t) && !D(t) && !Js(e, t, n) && (r.Changed = 0);
@@ -1321,8 +1321,8 @@ ${e.slice(
1321
1321
  return !1;
1322
1322
  if (t.CanEdit(n, r) !== 1)
1323
1323
  return !0;
1324
- const d = mn(n, r), u = he(n).includes(r);
1325
- return d === void 0 ? !0 : $e(t, n, r) === d ? (On(n, r), u && yt(e, { row: n, col: r }), nn(t, n, r), !0) : (Ln(n, r), Pt(e, {
1324
+ const d = mn(n, r), u = Ae(n).includes(r);
1325
+ return d === void 0 ? !0 : Fe(t, n, r) === d ? (On(n, r), u && yt(e, { row: n, col: r }), nn(t, n, r), !0) : (Ln(n, r), Pt(e, {
1326
1326
  row: n,
1327
1327
  col: r,
1328
1328
  backgroundColor: o,
@@ -1346,7 +1346,7 @@ ${e.slice(
1346
1346
  highlightRefresh: d
1347
1347
  }))
1348
1348
  return;
1349
- const u = Hs(c, n, r), T = $e(t, n, r);
1349
+ const u = Hs(c, n, r), T = Fe(t, n, r);
1350
1350
  if (u !== void 0 && T === u) {
1351
1351
  yt(e, { row: n, col: r }), nn(t, n, r), wt(t, n);
1352
1352
  return;
@@ -1363,23 +1363,23 @@ ${e.slice(
1363
1363
  return dn(r);
1364
1364
  if (typeof r == "string")
1365
1365
  return r.trim() || void 0;
1366
- }, "getExplicitTreeGridCellColor"), on = /* @__PURE__ */ s((e, t, n) => sn(e, t, n) !== void 0, "hasExplicitTreeGridCellColor"), ke = /* @__PURE__ */ s((e, t, n) => {
1367
- if (!Fe(e) || !t || !n || !p(t) || w(t))
1366
+ }, "getExplicitTreeGridCellColor"), on = /* @__PURE__ */ s((e, t, n) => sn(e, t, n) !== void 0, "hasExplicitTreeGridCellColor"), Xe = /* @__PURE__ */ s((e, t, n) => {
1367
+ if (!Ne(e) || !t || !n || !p(t) || w(t))
1368
1368
  return !1;
1369
1369
  const r = typeof e.IsFocused == "function" ? e.IsFocused(t, n) : e.FRow === t && e.FCol === n;
1370
1370
  return r !== 0 && r !== !1 && r !== void 0 && r !== null;
1371
- }, "isTreeGridFocusedCellState"), te = /* @__PURE__ */ s((e, t, n) => {
1371
+ }, "isTreeGridFocusedCellState"), K = /* @__PURE__ */ s((e, t, n) => {
1372
1372
  if (!t || !n || !p(t) || w(t))
1373
1373
  return !1;
1374
1374
  const r = e.IsSelected(t, n);
1375
1375
  if (r !== 0 && r !== !1 && r !== void 0 && r !== null)
1376
1376
  return !0;
1377
- const o = Ve(e, t);
1377
+ const o = ke(e, t);
1378
1378
  if (!o || o === t)
1379
1379
  return !1;
1380
1380
  const c = e.IsSelected(o, n);
1381
1381
  return c !== 0 && c !== !1 && c !== void 0 && c !== null;
1382
- }, "isTreeGridSelectedCellState"), Xe = /* @__PURE__ */ s((e) => {
1382
+ }, "isTreeGridSelectedCellState"), We = /* @__PURE__ */ s((e) => {
1383
1383
  if (!lt.length)
1384
1384
  return !1;
1385
1385
  const t = e.split(/\s+/).filter(Boolean);
@@ -1387,9 +1387,9 @@ ${e.slice(
1387
1387
  (n) => t.includes(n)
1388
1388
  );
1389
1389
  }, "hasTreeGridChangedCellDisplayClass"), zs = /* @__PURE__ */ s((e) => {
1390
- if (!(!e || e.split(/\s+/).includes(it) || !Xe(e)))
1390
+ if (!(!e || e.split(/\s+/).includes(it) || !We(e)))
1391
1391
  return `${e} ${it}`;
1392
- }, "appendTreeGridSelectedChangedCellDisplayClass"), cn = /* @__PURE__ */ s((e) => !e || !p(e) ? !1 : Object.entries(e).some(([t, n]) => t.endsWith("Class") && typeof n == "string" && Xe(n)), "hasTreeGridChangedCellDisplayClassInRow"), Ys = /* @__PURE__ */ s((e, t) => {
1392
+ }, "appendTreeGridSelectedChangedCellDisplayClass"), cn = /* @__PURE__ */ s((e) => !e || !p(e) ? !1 : Object.entries(e).some(([t, n]) => t.endsWith("Class") && typeof n == "string" && We(n)), "hasTreeGridChangedCellDisplayClassInRow"), Ys = /* @__PURE__ */ s((e, t) => {
1393
1393
  if (!t || !cn(t) || typeof e.RefreshRow != "function")
1394
1394
  return;
1395
1395
  const n = t;
@@ -1413,33 +1413,33 @@ ${e.slice(
1413
1413
  }, "scheduleTreeGridSelectionRowSpanRefresh"), wt = /* @__PURE__ */ s((e, t) => {
1414
1414
  if (!t || !p(t))
1415
1415
  return;
1416
- const n = ue(e, t), r = n.length > 1 ? n : [t];
1416
+ const n = fe(e, t), r = n.length > 1 ? n : [t];
1417
1417
  V(e, r);
1418
- }, "scheduleTreeGridChangedStateRowsRefresh"), Ge = /* @__PURE__ */ s((e, t) => {
1418
+ }, "scheduleTreeGridChangedStateRowsRefresh"), he = /* @__PURE__ */ s((e, t) => {
1419
1419
  const n = t.flatMap((r) => {
1420
1420
  if (!r || !p(r))
1421
1421
  return [];
1422
- const o = ue(e, r);
1422
+ const o = fe(e, r);
1423
1423
  return o.length > 1 ? [...o] : [r];
1424
1424
  });
1425
1425
  V(e, n);
1426
1426
  }, "scheduleTreeGridFocusedRowStateRowsRefresh"), Zs = /* @__PURE__ */ s((e) => {
1427
- const t = M(e).filter((n) => p(n) && Ve(e, n));
1427
+ const t = M(e).filter((n) => p(n) && ke(e, n));
1428
1428
  V(e, t);
1429
1429
  }, "scheduleTreeGridSelectionRowSpanRefreshAll"), ln = /* @__PURE__ */ s((e, t, n, r) => {
1430
- if (!(!t || r === void 0 || !rn(e, t, n) || ke(e, t, n) || te(e, t, n) || on(e, t, n)))
1430
+ if (!(!t || r === void 0 || !rn(e, t, n) || Xe(e, t, n) || K(e, t, n) || on(e, t, n)))
1431
1431
  return r;
1432
- }, "getEditableTreeGridCellDefaultColor"), B = /* @__PURE__ */ s((e, t, n, r) => e === r[0] && t === r[1] && n === r[2], "matchesTreeGridRgbColor"), Qs = /* @__PURE__ */ s((e, t, n) => Zn.some(
1433
- (r) => B(e, t, n, r)
1432
+ }, "getEditableTreeGridCellDefaultColor"), F = /* @__PURE__ */ s((e, t, n, r) => e === r[0] && t === r[1] && n === r[2], "matchesTreeGridRgbColor"), Qs = /* @__PURE__ */ s((e, t, n) => Zn.some(
1433
+ (r) => F(e, t, n, r)
1434
1434
  ), "isTreeGridNativeErrorBackgroundColor"), dn = /* @__PURE__ */ s((e) => {
1435
1435
  if (!(e === void 0 || !Number.isFinite(e)))
1436
1436
  return `#${Math.trunc(e).toString(16).padStart(6, "0")}`;
1437
- }, "toTreeGridCssHexColor"), Ue = /* @__PURE__ */ s((e, t, n) => !t || !n || !p(t) ? "" : e.GetAttribute(t, n, "Error") ?? "", "getTreeGridCellError"), We = /* @__PURE__ */ s((e, t, n) => Ue(e, t, n) !== "", "hasTreeGridCellError"), eo = /* @__PURE__ */ s((e, t) => {
1437
+ }, "toTreeGridCssHexColor"), $e = /* @__PURE__ */ s((e, t, n) => !t || !n || !p(t) ? "" : e.GetAttribute(t, n, "Error") ?? "", "getTreeGridCellError"), Je = /* @__PURE__ */ s((e, t, n) => $e(e, t, n) !== "", "hasTreeGridCellError"), eo = /* @__PURE__ */ s((e, t) => {
1438
1438
  if (!t)
1439
1439
  return;
1440
1440
  let n = !1;
1441
- ee(e).forEach((r) => {
1442
- We(e, t, r) && (e.SetAttribute(t, r, "Error", "", 0), n = !0);
1441
+ te(e).forEach((r) => {
1442
+ Je(e, t, r) && (e.SetAttribute(t, r, "Error", "", 0), n = !0);
1443
1443
  }), n && e.RefreshRow(t);
1444
1444
  }, "clearTreeGridRowErrors"), to = /* @__PURE__ */ s((e) => {
1445
1445
  const t = e == null ? void 0 : e.target;
@@ -1455,27 +1455,27 @@ ${e.slice(
1455
1455
  if (!e || !t || !p(e))
1456
1456
  return !1;
1457
1457
  const n = e, r = n[`${t}Class`];
1458
- return fe(n[`${t}Changed`]) || typeof r == "string" && Xe(r);
1458
+ return ae(n[`${t}Changed`]) || typeof r == "string" && We(r);
1459
1459
  }, "isChangedTreeGridCellDisplayState"), no = /* @__PURE__ */ s((e, t) => {
1460
1460
  if (!e || !t || !p(e))
1461
1461
  return !1;
1462
1462
  const n = e, r = un(e, t);
1463
- return v(e) || D(e) ? r : r || fe(n.Changed);
1464
- }, "isChangedTreeGridRowOrCell"), It = /* @__PURE__ */ s((e) => !e || !p(e) || v(e) || D(e) ? !1 : fe(e.Changed) || cn(e), "isChangedTreeGridRowDisplayState"), ro = /* @__PURE__ */ s((e, t, n) => sr.has(e.GetType(t, n)), "isTreeGridNativeInputEditType"), fn = /* @__PURE__ */ s((e, t, n) => !t || !n ? !1 : e.GetType(t, n) === "Enum", "isTreeGridNativeEnumEditType"), so = /* @__PURE__ */ s((e, t, n, r) => {
1463
+ return v(e) || D(e) ? r : r || ae(n.Changed);
1464
+ }, "isChangedTreeGridRowOrCell"), It = /* @__PURE__ */ s((e) => !e || !p(e) || v(e) || D(e) ? !1 : ae(e.Changed) || cn(e), "isChangedTreeGridRowDisplayState"), ro = /* @__PURE__ */ s((e, t, n) => sr.has(e.GetType(t, n)), "isTreeGridNativeInputEditType"), fn = /* @__PURE__ */ s((e, t, n) => !t || !n ? !1 : e.GetType(t, n) === "Enum", "isTreeGridNativeEnumEditType"), so = /* @__PURE__ */ s((e, t, n, r) => {
1465
1465
  if (!fn(e, t, n))
1466
1466
  return;
1467
1467
  const o = r;
1468
1468
  o.MaxHeight == null && (o.MaxHeight = fr);
1469
- }, "applyTreeGridNativeEnumMenuDefaults"), Je = /* @__PURE__ */ s((e, t, n) => !!t && !!n && p(t) && e.ARow === t && e.ACol === n, "isTreeGridHoveredCellState"), oo = /* @__PURE__ */ s((e, t, n) => !Je(e, t, n) || !t ? !1 : e.CanEdit(t, n) === 0, "isTreeGridReadonlyHoveredCellState"), io = /* @__PURE__ */ s((e, t, n) => !Je(e, t, n) || !t ? !1 : e.CanEdit(t, n) === 2, "isTreeGridPreviewHoveredCellState"), an = /* @__PURE__ */ s((e, t) => Fe(e) && !!t && p(t) && !w(t) && e.FRow === t, "isTreeGridFocusedRowState"), co = /* @__PURE__ */ s((e, t) => {
1469
+ }, "applyTreeGridNativeEnumMenuDefaults"), ue = /* @__PURE__ */ s((e, t, n) => !!t && !!n && p(t) && e.ARow === t && e.ACol === n, "isTreeGridHoveredCellState"), oo = /* @__PURE__ */ s((e, t, n) => !ue(e, t, n) || !t ? !1 : e.CanEdit(t, n) === 0, "isTreeGridReadonlyHoveredCellState"), io = /* @__PURE__ */ s((e, t, n) => !ue(e, t, n) || !t ? !1 : e.CanEdit(t, n) === 2, "isTreeGridPreviewHoveredCellState"), an = /* @__PURE__ */ s((e, t) => Ne(e) && !!t && p(t) && !w(t) && e.FRow === t, "isTreeGridFocusedRowState"), co = /* @__PURE__ */ s((e, t) => {
1470
1470
  const n = e.FRow;
1471
- if (!Fe(e) || !n || !t || !p(t) || w(t) || w(n))
1471
+ if (!Ne(e) || !n || !t || !p(t) || w(t) || w(n))
1472
1472
  return !1;
1473
- const r = ue(e, n);
1473
+ const r = fe(e, n);
1474
1474
  return r.length > 1 && r.includes(t);
1475
1475
  }, "isTreeGridFocusedDataRowSpanGroupState"), lo = /* @__PURE__ */ s((e, t) => {
1476
1476
  if (!t || !p(t))
1477
1477
  return !1;
1478
- const n = ue(e, t);
1478
+ const n = fe(e, t);
1479
1479
  return n.length <= 1 ? It(t) : n.some(It);
1480
1480
  }, "isTreeGridChangedDataRowSpanGroupState"), xt = /* @__PURE__ */ s((e, t, n) => !t || !n || !p(t) || on(e, t, n) ? !1 : !rn(e, t, n), "canApplyTreeGridRowStateBackground"), uo = /* @__PURE__ */ s(({
1481
1481
  grid: e,
@@ -1487,7 +1487,7 @@ ${e.slice(
1487
1487
  focusedRowBackgroundColor: d,
1488
1488
  focusedCellBackgroundColor: u,
1489
1489
  selectedCellBackgroundColor: T,
1490
- hoverCellBackgroundColor: C,
1490
+ hoverCellBackgroundColor: G,
1491
1491
  changedCellBackgroundColor: A,
1492
1492
  changedRowBackgroundColor: g,
1493
1493
  addedRowBackgroundColor: x,
@@ -1496,14 +1496,14 @@ ${e.slice(
1496
1496
  }) => {
1497
1497
  if (w(t))
1498
1498
  return I;
1499
- if (ke(e, t, n))
1499
+ if (Xe(e, t, n))
1500
1500
  return u;
1501
- if (te(e, t, n))
1501
+ if (ue(e, t, n) && K(e, t, n) || ue(e, t, n) && F(r, o, c, Kn) || oo(e, t, n) && (F(r, o, c, Hn) || F(r, o, c, jn)) || io(e, t, n) && (F(r, o, c, zn) || F(r, o, c, Yn) || F(r, o, c, qn)))
1502
+ return G;
1503
+ if (K(e, t, n))
1502
1504
  return T;
1503
- if (Je(e, t, n) && B(r, o, c, Kn) || oo(e, t, n) && (B(r, o, c, Hn) || B(r, o, c, jn)) || io(e, t, n) && (B(r, o, c, zn) || B(r, o, c, Yn) || B(r, o, c, qn)))
1504
- return C;
1505
- const X = t && p(t) ? sn(e, t, n) : void 0, ne = v(t) || D(t), K = We(e, t, n) && Qs(r, o, c);
1506
- if (K && X)
1505
+ const X = t && p(t) ? sn(e, t, n) : void 0, ne = v(t) || D(t), z = Je(e, t, n) && Qs(r, o, c);
1506
+ if (z && X)
1507
1507
  return X;
1508
1508
  if (un(t, n))
1509
1509
  return X ?? A;
@@ -1519,25 +1519,25 @@ ${e.slice(
1519
1519
  return X ?? x;
1520
1520
  if ((an(e, t) || co(e, t)) && xt(e, t, n))
1521
1521
  return d;
1522
- if (!K && lo(e, t) && xt(e, t, n))
1522
+ if (!z && lo(e, t) && xt(e, t, n))
1523
1523
  return g;
1524
- if (!(!K && !ne))
1524
+ if (!(!z && !ne))
1525
1525
  return no(t, n) ? A : Qn;
1526
- }, "resolveTreeGridStateBackgroundColor"), q = /* @__PURE__ */ s((e, t) => {
1526
+ }, "resolveTreeGridStateBackgroundColor"), Z = /* @__PURE__ */ s((e, t) => {
1527
1527
  const n = e.split(/\s+/).filter(Boolean);
1528
1528
  return n.includes(t) ? e : [...n, t].join(" ");
1529
- }, "appendTreeGridClassToken"), fo = /* @__PURE__ */ s((e) => e && e.split(/\s+/).filter((t) => t && !rr.has(t)).join(" "), "stripTreeGridNativeRowStateClassTokens"), ao = /* @__PURE__ */ s((e, t, n, r) => !We(e, t, n) || !t ? r : q(r, Fn), "appendTreeGridErrorCellDisplayClass"), To = /* @__PURE__ */ s((e, t, n, r) => {
1530
- if (!p(t) || w(t) || !v(t) && !D(t) || an(e, t) || te(e, t, n))
1529
+ }, "appendTreeGridClassToken"), fo = /* @__PURE__ */ s((e) => e && e.split(/\s+/).filter((t) => t && !rr.has(t)).join(" "), "stripTreeGridNativeRowStateClassTokens"), ao = /* @__PURE__ */ s((e, t, n, r) => !Je(e, t, n) || !t ? r : Z(r, Bn), "appendTreeGridErrorCellDisplayClass"), To = /* @__PURE__ */ s((e, t, n, r) => {
1530
+ if (!p(t) || w(t) || !v(t) && !D(t) || an(e, t) || K(e, t, n))
1531
1531
  return r;
1532
1532
  const o = Ps(e);
1533
1533
  if (!o.columnSet.has(n))
1534
1534
  return r;
1535
- let c = q(r, Bn);
1536
- return n === o.firstColumn && (c = q(c, Nn)), n === o.lastColumn && (c = q(c, Mn)), c;
1535
+ let c = Z(r, Fn);
1536
+ return n === o.firstColumn && (c = Z(c, Nn)), n === o.lastColumn && (c = Z(c, Mn)), c;
1537
1537
  }, "appendTreeGridAddedRowBoxDisplayClass"), Ro = /* @__PURE__ */ s((e, t) => {
1538
1538
  var n, r;
1539
1539
  return t === "Panel" || ((r = (n = e.Cols) == null ? void 0 : n[t]) == null ? void 0 : r.Type) === "Panel";
1540
- }, "isTreeGridPanelColumn"), So = /* @__PURE__ */ s((e, t, n, r) => !p(t) || !w(t) || !Ro(e, n) ? r : q(r, vt), "appendTreeGridDeletedRowPanelCellDisplayClass"), Eo = /* @__PURE__ */ s((e, t, n, r) => {
1540
+ }, "isTreeGridPanelColumn"), So = /* @__PURE__ */ s((e, t, n, r) => !p(t) || !w(t) || !Ro(e, n) ? r : Z(r, vt), "appendTreeGridDeletedRowPanelCellDisplayClass"), Eo = /* @__PURE__ */ s((e, t, n, r) => {
1541
1541
  const o = fo(r), c = ao(e, t, n, o), d = To(
1542
1542
  e,
1543
1543
  t,
@@ -1549,7 +1549,7 @@ ${e.slice(
1549
1549
  n,
1550
1550
  d
1551
1551
  );
1552
- if (!te(e, t, n))
1552
+ if (!K(e, t, n))
1553
1553
  return u === r ? void 0 : u;
1554
1554
  const T = zs(u) ?? u;
1555
1555
  return T === r ? void 0 : T;
@@ -1590,7 +1590,7 @@ ${e.slice(
1590
1590
  editableCellBackgroundColorValueRef: d,
1591
1591
  changedCellBackgroundColorRef: u,
1592
1592
  changedRowBackgroundColorRef: T,
1593
- addedRowBackgroundColorRef: C,
1593
+ addedRowBackgroundColorRef: G,
1594
1594
  deletedRowBackgroundColorRef: A,
1595
1595
  focusedRowBackgroundColorRef: g,
1596
1596
  focusedCellBackgroundColorRef: x,
@@ -1598,32 +1598,32 @@ ${e.slice(
1598
1598
  hoverCellBackgroundColorRef: k,
1599
1599
  hoverCellBorderColorRef: X,
1600
1600
  editingCellBorderColorRef: ne,
1601
- hintBackgroundColorRef: K,
1601
+ hintBackgroundColorRef: z,
1602
1602
  enumMenuHoverBackgroundColorRef: re,
1603
1603
  enumMenuSelectedBackgroundColorRef: Rn,
1604
- changedCellBaselineRef: ae,
1604
+ changedCellBaselineRef: Te,
1605
1605
  treeGridInstanceRef: He,
1606
1606
  treeGridInitStartedAtRef: je,
1607
1607
  latestLayoutOverridesRef: Sn,
1608
- latestToolbarTotalCountFormulaRef: Te,
1608
+ latestToolbarTotalCountFormulaRef: Re,
1609
1609
  latestSuppressCfgRef: Ke,
1610
- latestHideChildHeaderSortButtonsRef: Re,
1610
+ latestHideChildHeaderSortButtonsRef: Se,
1611
1611
  latestSelectionScopeRef: En,
1612
1612
  latestDisabledAnimationsRef: ze,
1613
1613
  appliedLayoutOverridesRef: pn,
1614
- appliedBodyDataPropRef: Cn,
1614
+ appliedBodyDataPropRef: Gn,
1615
1615
  hasAppliedInitialLayoutRef: Ye,
1616
1616
  syncHasDisplayDataRows: W,
1617
- setIsTreeGridReady: Gn,
1617
+ setIsTreeGridReady: Cn,
1618
1618
  setCanRenderTreeGridOverlays: qe,
1619
1619
  setHasTreeGridSizeError: Ze,
1620
1620
  showErrorTooltip: hn,
1621
1621
  hideErrorTooltip: y
1622
1622
  }) => {
1623
1623
  const _ = t.current, b = /* @__PURE__ */ s((i, l = !1) => {
1624
- Bs(
1624
+ Fs(
1625
1625
  i,
1626
- Te.current,
1626
+ Re.current,
1627
1627
  l
1628
1628
  );
1629
1629
  }, "refreshToolbarTotalCount");
@@ -1647,7 +1647,7 @@ ${e.slice(
1647
1647
  }), window.TGSetEvent("OnColUndelete", e, (i) => {
1648
1648
  $(i), J(i), U(i);
1649
1649
  }), window.TGSetEvent("OnMouseOver", e, (i, l, f, a, R, E) => {
1650
- const S = Ue(i, l, f);
1650
+ const S = $e(i, l, f);
1651
1651
  if (!S) {
1652
1652
  y();
1653
1653
  return;
@@ -1660,13 +1660,13 @@ ${e.slice(
1660
1660
  i.HideTip(), hn({ anchorEl: h, row: l, col: f, message: S });
1661
1661
  }), window.TGSetEvent("OnFocus", e, (i, l, f, a) => {
1662
1662
  if (w(l)) {
1663
- en(i, l), Ge(i, [l, a]);
1663
+ en(i, l), he(i, [l, a]);
1664
1664
  return;
1665
1665
  }
1666
- Oe(i, !0), l !== a && bt(i, [l, a]), Ge(i, [l, a]);
1666
+ Le(i, !0), l !== a && bt(i, [l, a]), he(i, [l, a]);
1667
1667
  }), window.TGSetEvent("OnBlur", e, (i, l) => {
1668
- Oe(i, !1), Ge(i, [l, i.FRow]);
1669
- }), window.TGSetEvent("OnTip", e, (i, l, f, a) => Ue(i, l, f) ? "" : a), window.TGSetEvent("OnCanRowDelete", e, (i, l, f) => {
1668
+ Le(i, !1), he(i, [l, i.FRow]);
1669
+ }), window.TGSetEvent("OnTip", e, (i, l, f, a) => $e(i, l, f) ? "" : a), window.TGSetEvent("OnCanRowDelete", e, (i, l, f) => {
1670
1670
  var E;
1671
1671
  if (f !== 3)
1672
1672
  return f;
@@ -1693,7 +1693,7 @@ ${e.slice(
1693
1693
  return R("undelete"), 0;
1694
1694
  }
1695
1695
  }), typeof (_ == null ? void 0 : _.onRowClick) == "function" || typeof (_ == null ? void 0 : _.onInternalCellClick) == "function") {
1696
- const i = Se((l, f, a, R, E, S) => {
1696
+ const i = Ee((l, f, a, R, E, S) => {
1697
1697
  var h, O;
1698
1698
  (O = (h = t.current) == null ? void 0 : h.onRowClick) == null || O.call(
1699
1699
  h,
@@ -1770,17 +1770,17 @@ ${e.slice(
1770
1770
  i.RefreshCell(l, f);
1771
1771
  }, 0);
1772
1772
  }), window.TGSetEvent("OnMenu", e, (i, l, f, a) => {
1773
- z(
1773
+ Y(
1774
1774
  xn,
1775
1775
  re.current
1776
- ), z(
1776
+ ), Y(
1777
1777
  bn,
1778
1778
  Rn.current
1779
1779
  ), so(i, l, f, a);
1780
1780
  }), window.TGSetEvent("OnRowDelete", e, (i, l, f) => {
1781
1781
  var h, O;
1782
- L(i), y(), eo(i, l), ye(i, l, !0, { refresh: !1 }), se(i, e);
1783
- const a = D(l), R = a ? he(l) : [], E = a ? nt(l) : [], S = c.current !== !1;
1782
+ L(i), y(), eo(i, l), Pe(i, l, !0, { refresh: !1 }), se(i, e);
1783
+ const a = D(l), R = a ? Ae(l) : [], E = a ? nt(l) : [], S = c.current !== !1;
1784
1784
  ht(i, l, {
1785
1785
  canEdit: S ? 2 : void 0,
1786
1786
  editableColumns: E,
@@ -1795,8 +1795,8 @@ ${e.slice(
1795
1795
  }), window.TGSetEvent("OnRowUndelete", e, (i, l) => {
1796
1796
  var S, h;
1797
1797
  L(i), y();
1798
- const f = D(l), a = f ? he(l) : [], R = f ? nt(l) : [], E = c.current !== !1;
1799
- ye(i, l, !1, { refresh: !1 }), se(i, e), ht(i, l, {
1798
+ const f = D(l), a = f ? Ae(l) : [], R = f ? nt(l) : [], E = c.current !== !1;
1799
+ Pe(i, l, !1, { refresh: !1 }), se(i, e), ht(i, l, {
1800
1800
  canEdit: E ? 1 : void 0,
1801
1801
  editableColumns: R,
1802
1802
  editableCanEdit: E && R.length ? 1 : void 0,
@@ -1826,39 +1826,39 @@ ${e.slice(
1826
1826
  hoverCellBackgroundColor: k.current,
1827
1827
  changedCellBackgroundColor: u.current,
1828
1828
  changedRowBackgroundColor: T.current,
1829
- addedRowBackgroundColor: C.current,
1829
+ addedRowBackgroundColor: G.current,
1830
1830
  deletedRowBackgroundColor: A.current,
1831
1831
  editableCellBackgroundColorValue: d.current
1832
1832
  });
1833
1833
  }), window.TGSetEvent("OnHint", e, () => {
1834
- z(
1834
+ Y(
1835
1835
  Dn,
1836
1836
  X.current
1837
- ), z(
1837
+ ), Y(
1838
1838
  yn,
1839
1839
  ne.current
1840
- ), z(
1840
+ ), Y(
1841
1841
  Pn,
1842
- K.current
1842
+ z.current
1843
1843
  );
1844
1844
  }), window.TGSetEvent("OnGetClass", e, (i, l, f, a) => Eo(i, l, f, typeof a == "string" ? a : "")), window.TGSetEvent("OnAfterValueChanged", e, (i, l, f, a) => {
1845
1845
  var E, S;
1846
1846
  if (y(), o.current && p(l)) {
1847
- const h = !ro(i, l, f) || te(i, l, f) && !ke(i, l, f);
1847
+ const h = !ro(i, l, f) || K(i, l, f) && !Xe(i, l, f);
1848
1848
  Ks({
1849
1849
  gridId: e,
1850
1850
  grid: i,
1851
1851
  row: l,
1852
1852
  col: f,
1853
1853
  backgroundColor: u.current,
1854
- baselineMap: ae.current,
1854
+ baselineMap: Te.current,
1855
1855
  highlightRefresh: h
1856
1856
  });
1857
1857
  }
1858
1858
  const R = ((E = t.current) == null ? void 0 : E.onAfterValueChanged) ?? ((S = t.current) == null ? void 0 : S.onRowChange);
1859
1859
  R == null || R(i, l, f, a);
1860
1860
  });
1861
- const Qe = Se((i) => {
1861
+ const Qe = Ee((i) => {
1862
1862
  var a, R;
1863
1863
  const l = i.GetSelRows() ?? [], f = In(i, l, {
1864
1864
  selectionScope: En.current
@@ -1891,7 +1891,7 @@ ${e.slice(
1891
1891
  i,
1892
1892
  i.ARow,
1893
1893
  l,
1894
- Re.current !== !1
1894
+ Se.current !== !1
1895
1895
  )))
1896
1896
  return Ut(e, "group header sort blocked"), Vn(e, "group header sort blocked", {
1897
1897
  rowId: (f = i.ARow) == null ? void 0 : f.id,
@@ -1910,23 +1910,23 @@ ${e.slice(
1910
1910
  }), window.TGSetEvent("OnRedo", e, (i, l) => {
1911
1911
  ut.has(l) && b(i);
1912
1912
  }), window.TGSetEvent("OnRenderStart", e, (i) => {
1913
- L(i), U(i), xe(i, e), mt(
1913
+ L(i), U(i), be(i, e), mt(
1914
1914
  i,
1915
1915
  e,
1916
1916
  !1,
1917
- Re.current !== !1
1917
+ Se.current !== !1
1918
1918
  );
1919
1919
  }), window.TGSetEvent("OnRenderFinish", e, (i) => {
1920
- Ze((l) => l && !1), qe((l) => l || !0), $s(i), xe(i, e);
1920
+ Ze((l) => l && !1), qe((l) => l || !0), $s(i), be(i, e);
1921
1921
  }), window.TGSetEvent("OnSizeError", e, () => {
1922
1922
  y(), qe((i) => i && !1), Ze((i) => i || !0);
1923
1923
  }), window.TGSetEvent("OnDataGet", e, (i, l, f) => {
1924
1924
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof f == "string") {
1925
1925
  n.current = dt(f);
1926
- const a = Ie(
1926
+ const a = xe(
1927
1927
  f,
1928
1928
  ze.current,
1929
- Te.current,
1929
+ Re.current,
1930
1930
  Ke.current
1931
1931
  );
1932
1932
  return a === f ? null : a;
@@ -1935,10 +1935,10 @@ ${e.slice(
1935
1935
  }), window.TGSetEvent("OnDataParse", e, (i, l, f) => {
1936
1936
  if ((l == null ? void 0 : l.Name) === "Layout" && typeof f == "string") {
1937
1937
  n.current = dt(f);
1938
- const a = Ie(
1938
+ const a = xe(
1939
1939
  f,
1940
1940
  ze.current,
1941
- Te.current,
1941
+ Re.current,
1942
1942
  Ke.current
1943
1943
  );
1944
1944
  return a === f ? null : a;
@@ -1947,15 +1947,15 @@ ${e.slice(
1947
1947
  }), window.TGSetEvent(
1948
1948
  "OnReady",
1949
1949
  e,
1950
- Se((i) => {
1950
+ Ee((i) => {
1951
1951
  var l, f;
1952
1952
  if (!Ye.current) {
1953
1953
  const a = Sn.current;
1954
- Ye.current = !0, !n.current && (i.EnterMode === void 0 || i.EnterMode === null || i.EnterMode === 0) && Gs(i, Wn), wn(i, a), He.current = i, pn.current = a, Cn.current = At(i), ae.current = /* @__PURE__ */ new WeakMap(), Ws(i, ae.current), W(i), Gn(!0), mt(
1954
+ Ye.current = !0, !n.current && (i.EnterMode === void 0 || i.EnterMode === null || i.EnterMode === 0) && Cs(i, Wn), wn(i, a), He.current = i, pn.current = a, Gn.current = At(i), Te.current = /* @__PURE__ */ new WeakMap(), Ws(i, Te.current), W(i), Cn(!0), mt(
1955
1955
  i,
1956
1956
  e,
1957
1957
  !0,
1958
- Re.current !== !1
1958
+ Se.current !== !1
1959
1959
  ), $t(e, "TreeGrid init ready", je.current, {
1960
1960
  bodyRowCount: Ds(
1961
1961
  At(i)