open-grid 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +460 -418
  2. package/README.ja.md +39 -0
  3. package/README.md +39 -0
  4. package/README.zh.md +39 -0
  5. package/dist/{OpenGrid-CT9bV6On.cjs → OpenGrid-DgZtbVD0.cjs} +343 -338
  6. package/dist/{OpenGrid-DACnZdEy.js → OpenGrid-E11B7Xa7.js} +782 -777
  7. package/dist/angular/fesm2022/open-grid-angular.mjs +247 -0
  8. package/dist/angular/index.d.ts +5 -0
  9. package/dist/angular/lib/open-grid.component.d.ts +97 -0
  10. package/dist/angular/public-api.d.ts +6 -0
  11. package/dist/{index-Brfso4Ry.cjs → index-B_e5BXnW.cjs} +2 -2
  12. package/dist/{index-al9Mbv3E.js → index-Brnev66-.js} +2 -2
  13. package/dist/open-grid-base.css +4 -4
  14. package/dist/open-grid-header.cjs +4 -4
  15. package/dist/open-grid-header.css +21 -21
  16. package/dist/open-grid-header.js +4 -4
  17. package/dist/open-grid-react.cjs +1 -1
  18. package/dist/open-grid-react.js +1 -1
  19. package/dist/open-grid-skins.css +2 -2
  20. package/dist/open-grid-themes.css +48 -48
  21. package/dist/open-grid-typography.cjs +2 -2
  22. package/dist/open-grid-typography.js +2 -2
  23. package/dist/open-grid-vue.cjs +1 -1
  24. package/dist/open-grid-vue.js +1 -1
  25. package/dist/open-grid.cjs +1 -1
  26. package/dist/open-grid.js +2 -2
  27. package/dist/types/core/DetailManager.d.ts +1 -1
  28. package/dist/types/core/ExportManager.d.ts +7 -0
  29. package/dist/types/core/ExtensionPointRegistry.d.ts +2 -2
  30. package/dist/types/core/OpenGrid.d.ts +14 -9
  31. package/dist/types/core/appearance/AppearanceAxis.d.ts +54 -6
  32. package/dist/types/core/appearance/HeaderRegistry.d.ts +213 -21
  33. package/dist/types/core/appearance/TypographyRegistry.d.ts +63 -3
  34. package/dist/types/core/chart/DataExtractor.d.ts +1 -1
  35. package/dist/types/core/detail/DetailGlyph.d.ts +3 -3
  36. package/dist/types/core/types.d.ts +9 -9
  37. package/dist/types/header/index.d.ts +146 -6
  38. package/dist/types/typography/index.d.ts +134 -4
  39. package/package.json +42 -13
  40. package/dist/OpenGrid-CT9bV6On.cjs.map +0 -1
  41. package/dist/OpenGrid-DACnZdEy.js.map +0 -1
  42. package/dist/Registry-CPJYOqCn.js.map +0 -1
  43. package/dist/Registry-D74ZmdDz.cjs.map +0 -1
  44. package/dist/index-Brfso4Ry.cjs.map +0 -1
  45. package/dist/index-CeJ-0-80.cjs.map +0 -1
  46. package/dist/index-DnarQ4eR.js.map +0 -1
  47. package/dist/index-al9Mbv3E.js.map +0 -1
  48. package/dist/open-grid-header.cjs.map +0 -1
  49. package/dist/open-grid-header.js.map +0 -1
  50. package/dist/open-grid-react.cjs.map +0 -1
  51. package/dist/open-grid-react.js.map +0 -1
  52. package/dist/open-grid-typography.cjs.map +0 -1
  53. package/dist/open-grid-typography.js.map +0 -1
  54. package/dist/open-grid-vue.cjs.map +0 -1
  55. package/dist/open-grid-vue.js.map +0 -1
  56. package/dist/open-grid.cjs.map +0 -1
  57. package/dist/open-grid.js.map +0 -1
  58. package/dist/xlsx.min-BQ1o3sB6.cjs.map +0 -1
  59. package/dist/xlsx.min-Bbz2ZypC.js.map +0 -1
@@ -79,7 +79,7 @@ class Ts {
79
79
  this.container.removeEventListener("scroll", this._onScroll), this._rafId !== null && cancelAnimationFrame(this._rafId);
80
80
  }
81
81
  }
82
- class wt {
82
+ class mt {
83
83
  constructor(e, t = 0) {
84
84
  this._flatLeaves = [], this._maxDepth = 1, this._frozenCount = 0, this._columns = e, this._frozenCount = t, this._process();
85
85
  }
@@ -164,31 +164,31 @@ function Ds(r, e) {
164
164
  });
165
165
  }
166
166
  const Os = { contextMenu: { sortAsc: "오름차순 정렬", sortDesc: "내림차순 정렬", find: "찾기", exportExcel: "Excel로 저장", exportCsv: "CSV로 저장", print: "인쇄" }, filter: { title: "필터", opContains: "포함", opEq: "같음", opNe: "같지 않음", opStartsWith: "시작", opEndsWith: "끝남", opGt: "보다 큼", opLt: "보다 작음", opGte: "이상", opLte: "이하", valuePlaceholder: "필터 값 입력...", clear: "초기화", apply: "적용", legend: "필터", clearAria: "필터 초기화", all: "전체" }, findBar: { label: "찾기", placeholder: "검색어 입력...", searchAria: "그리드 내 검색", closeAria: "찾기 닫기", countBadge: "{n}건" }, pagination: { rowsPerPage: "행/페이지:", rangeBadge: "{from}–{to} / {total}건", empty: "0건" }, drag: { rowCount: "{count}개 행 이동" }, crossGrid: { overlayAria: "그리드 필드 매핑", title: "필드 매핑", desc1: "두 그리드의 필드 구조가 다릅니다. <b>타깃 필드</b>마다 어떤 <b>소스 필드</b>의 값을 가져올지 지정하세요. ", desc2: "아래 스크립트를 복사해 <code>crossGridMapping</code> 에 baking 하면 다음부터는 이 창 없이 자동 변환됩니다.", emptyOption: "(비움)", scriptTitle: "생성된 변환 스크립트", copy: "복사", copied: "복사됨!", copyFailed: "복사 실패", cancel: "취소", applyMove: "적용 후 이동", scriptComment: "// crossGridMapping 옵션에 이 함수를 그대로 지정하세요." }, shuttle: { toRight: "체크한 행을 오른쪽 그리드로 이동", toLeft: "체크한 행을 왼쪽 그리드로 이동", allRight: "왼쪽 전체를 오른쪽으로 이동", allLeft: "오른쪽 전체를 왼쪽으로 이동" }, tree: { collapse: "접기", expand: "펼치기" }, detail: { glyphLabel: "▤ 상세", glyphTooltip: "상세 보기", expandAria: "상세 패널 펼치기", collapseAria: "상세 패널 접기", expandedAnnounce: "행 상세 패널을 펼쳤습니다.", collapsedAnnounce: "행 상세 패널을 접었습니다.", collapsedAllAnnounce: "모든 상세 패널을 접었습니다.", depthLimitOpen: "중첩 깊이 한계({max})로 상세 패널을 열 수 없습니다.", depthLimitSubgrid: "중첩 깊이 한계({max})로 서브 그리드를 생성하지 않습니다." }, worksheet: { addAria: "새 워크시트 추가" }, editor: { datePick: "날짜 선택", select: "선택", cellPositionAnnounce: "{row}행 {col}열, {header}: {value}" }, cell: { emptyValue: "빈 값", revealTooltip: "클릭하면 원문 표시", revealAria: "마스킹 해제", radioAria: "선택", barcodeAria: "바코드: {value}" }, row: { selectAllAria: "전체 행 선택", selectAria: "{n}행 선택", moveAnnounce: "행 {from}을(를) {to}번째 위치로 이동" }, group: { badge: "{label} ({count}건)", nullLabel: "(없음)" }, pivot: { totalLabel: "합계" }, data: { loadedAnnounce: "{count}행 데이터 로드됨", skippedCellsAnnounce: "쓰기 대상이 아닌 셀 {count}개를 건너뛰었습니다" }, range: { selectionAnnounce: "{r1}행 {c1}열 ~ {r2}행 {c2}열, {n}개 셀 선택", formulaPreserved: "수식 셀 {count}개 보존", fillSkipped: "채우기 대상이 아닌 셀 {count}개를 건너뛰었습니다", fillHandleAria: "채우기 핸들" }, sort: { asc: "오름차순", desc: "내림차순", none: "정렬 해제", announce: "{field} {dir} 정렬" }, chart: { defaultTitle: "차트", badgeSampled: "샘플링됨 {to}/{from}행", badgeAggregated: "category 집계됨 ({op})", badgePieFirstSeries: "파이: 첫 시리즈만 표시", badgeNegativesAbs: "음수→절대값 표시 · bar 권장", badgeRangeFallback: "범위 소스 없음 · 선택 행으로 대체", badgeEngineFallback: "{engine} 미설치 · 내장 차트로 대체", announcePrefix: "차트 안내: {badges}", a11ySummary: "{title}: 카테고리 {categories}개, 시리즈 {series}", a11ySummaryNoTitle: "카테고리 {categories}개, 시리즈 {series}", a11yAltText: "{title}: {categories}개 카테고리별 {series} — 상세 값은 아래 표를 참고하세요", a11yNoData: "데이터 없음", tooltipEmpty: "없음", canvasDefault: "차트" }, formulaError: { err: "수식 오류", ref: "참조 대상이 삭제됨", cycle: "순환 참조", div0: "0으로 나눔", name: "알 수 없는 함수/이름", value: "숫자가 아닌 값에 산술 연산", num: "수치 도메인 오류", fallback: "수식 오류" }, formula: { cellErrorAnnounce: "{field} 셀 오류: {message}", ariaError: "수식 {src}, 오류: {message}", ariaValue: "수식 {src}, 값 {value}{approx}", approxSuffix: " (근사값)" }, grid: { containerAria: "OPEN_GRID 데이터 그리드", emptyMessage: "데이터가 없습니다.", filterTooltip: "필터", detailRegion: "상세 내용" }, export: { printSummary: "{rows}행 × {cols}열 · {date}" } }, $s = { intlLocale: "ko-KR", dir: "ltr", exportFont: "맑은 고딕" }, zs = { contextMenu: { sortAsc: "Sort ascending", sortDesc: "Sort descending", find: "Find", exportExcel: "Save as Excel", exportCsv: "Save as CSV", print: "Print" }, filter: { title: "Filter", opContains: "Contains", opEq: "Equals", opNe: "Not equal", opStartsWith: "Starts with", opEndsWith: "Ends with", opGt: "Greater than", opLt: "Less than", opGte: "At least", opLte: "At most", valuePlaceholder: "Enter filter value...", clear: "Reset", apply: "Apply", legend: "Filter", clearAria: "Reset filter", all: "All" }, findBar: { label: "Find", placeholder: "Enter search term...", searchAria: "Search within grid", closeAria: "Close find", countBadge: (r) => r.n === 1 ? "1 match" : `${r.n} matches` }, pagination: { rowsPerPage: "Rows per page:", rangeBadge: "{from}–{to} of {total}", empty: "0 rows" }, drag: { rowCount: (r) => r.count === 1 ? "Move 1 row" : `Move ${r.count} rows` }, crossGrid: { overlayAria: "Grid field mapping", title: "Field mapping", desc1: "The two grids have different field structures. For each <b>target field</b>, choose which <b>source field</b> to pull its value from. ", desc2: "Copy the script below and bake it into <code>crossGridMapping</code> to convert automatically without this dialog next time.", emptyOption: "(none)", scriptTitle: "Generated conversion script", copy: "Copy", copied: "Copied!", copyFailed: "Copy failed", cancel: "Cancel", applyMove: "Apply and move", scriptComment: "// Assign this function to the crossGridMapping option as-is." }, shuttle: { toRight: "Move checked rows to the right grid", toLeft: "Move checked rows to the left grid", allRight: "Move all from left to right", allLeft: "Move all from right to left" }, tree: { collapse: "Collapse", expand: "Expand" }, detail: { glyphLabel: "▤ Detail", glyphTooltip: "View detail", expandAria: "Expand detail panel", collapseAria: "Collapse detail panel", expandedAnnounce: "Row detail panel expanded.", collapsedAnnounce: "Row detail panel collapsed.", collapsedAllAnnounce: "All detail panels collapsed.", depthLimitOpen: "Nesting depth limit ({max}) reached — cannot open the detail panel.", depthLimitSubgrid: "Nesting depth limit ({max}) reached — subgrid will not be created." }, worksheet: { addAria: "Add new worksheet" }, editor: { datePick: "Pick a date", select: "Select", cellPositionAnnounce: "Row {row}, column {col}, {header}: {value}" }, cell: { emptyValue: "empty", revealTooltip: "Click to reveal the original", revealAria: "Reveal masked value", radioAria: "Select", barcodeAria: "Barcode: {value}" }, row: { selectAllAria: "Select all rows", selectAria: "Select row {n}", moveAnnounce: "Move row {from} to position {to}" }, group: { badge: "{label} ({count})", nullLabel: "(none)" }, pivot: { totalLabel: "Total" }, data: { loadedAnnounce: (r) => r.count === 1 ? "1 row loaded" : `${r.count} rows loaded`, skippedCellsAnnounce: (r) => r.count === 1 ? "Skipped 1 non-writable cell" : `Skipped ${r.count} non-writable cells` }, range: { selectionAnnounce: "Selected {n} cells from row {r1} column {c1} to row {r2} column {c2}", formulaPreserved: (r) => r.count === 1 ? "1 formula cell preserved" : `${r.count} formula cells preserved`, fillSkipped: (r) => r.count === 1 ? "Skipped 1 non-fillable cell" : `Skipped ${r.count} non-fillable cells`, fillHandleAria: "Fill handle" }, sort: { asc: "ascending", desc: "descending", none: "unsorted", announce: "{field} sorted {dir}" }, chart: { defaultTitle: "Chart", badgeSampled: "Sampled {to}/{from} rows", badgeAggregated: "Category aggregated ({op})", badgePieFirstSeries: "Pie: first series only", badgeNegativesAbs: "Negatives shown as absolute · bar recommended", badgeRangeFallback: "No range source · using selected rows", badgeEngineFallback: "{engine} not installed · using built-in chart", announcePrefix: "Chart notice: {badges}", a11ySummary: "{title}: {categories} categories, series {series}", a11ySummaryNoTitle: "{categories} categories, series {series}", a11yAltText: "{title}: {series} across {categories} categories — see the table below for detailed values", a11yNoData: "No data", tooltipEmpty: "none", canvasDefault: "Chart" }, formulaError: { err: "Formula error", ref: "Reference was deleted", cycle: "Circular reference", div0: "Division by zero", name: "Unknown function/name", value: "Arithmetic on a non-numeric value", num: "Numeric domain error", fallback: "Formula error" }, formula: { cellErrorAnnounce: "{field} cell error: {message}", ariaError: "Formula {src}, error: {message}", ariaValue: "Formula {src}, value {value}{approx}", approxSuffix: " (approx.)" }, grid: { containerAria: "OPEN_GRID data grid", emptyMessage: "No data.", filterTooltip: "Filter", detailRegion: "Detail" }, export: { printSummary: "{rows} rows × {cols} cols · {date}" } }, Bs = { intlLocale: "en-US", dir: "ltr", exportFont: "Calibri" };
167
- function yt(r) {
167
+ function wt(r) {
168
168
  const e = r.indexOf(".");
169
169
  return e < 0 ? [r, ""] : [r.slice(0, e), r.slice(e + 1)];
170
170
  }
171
- function $e(r, e) {
171
+ function De(r, e) {
172
172
  if (!r) return;
173
- const [t, s] = yt(e), i = r[t];
173
+ const [t, s] = wt(e), i = r[t];
174
174
  return i ? i[s] : void 0;
175
175
  }
176
- function vt(r, e) {
176
+ function yt(r, e) {
177
177
  const t = {};
178
178
  for (const s of Object.keys(r)) t[s] = { ...r[s] };
179
179
  for (const s of Object.keys(e)) t[s] = { ...t[s] ?? {}, ...e[s] };
180
180
  return t;
181
181
  }
182
- class je {
182
+ class Ke {
183
183
  constructor(e) {
184
184
  this._locales = /* @__PURE__ */ new Map(), this._meta = /* @__PURE__ */ new Map(), this._extends = /* @__PURE__ */ new Map(), this._overrides = {}, this._cache = /* @__PURE__ */ new Map(), this._warned = /* @__PURE__ */ new Set(), this._parent = e, this._active = e ? e._active : "ko";
185
185
  }
186
186
  register(e, t, s) {
187
- return this._locales.set(e, t), (s == null ? void 0 : s.extends) && this._extends.set(e, s.extends), this._cache.clear(), { missingKeys: this._allDotKeys().filter((n) => $e(t, n) === void 0) };
187
+ return this._locales.set(e, t), (s == null ? void 0 : s.extends) && this._extends.set(e, s.extends), this._cache.clear(), { missingKeys: this._allDotKeys().filter((n) => De(t, n) === void 0) };
188
188
  }
189
189
  extend(e, t) {
190
190
  const s = this._locales.get(e) ?? {};
191
- return this._locales.set(e, vt(s, t)), this._cache.clear(), this;
191
+ return this._locales.set(e, yt(s, t)), this._cache.clear(), this;
192
192
  }
193
193
  has(e) {
194
194
  var _a;
@@ -213,15 +213,15 @@ class je {
213
213
  return this._active;
214
214
  }
215
215
  child() {
216
- return new je(this);
216
+ return new Ke(this);
217
217
  }
218
218
  setOverride(e, t) {
219
219
  var _a;
220
- const [s, i] = yt(e), o = (_a = this._overrides)[s] ?? (_a[s] = {});
220
+ const [s, i] = wt(e), o = (_a = this._overrides)[s] ?? (_a[s] = {});
221
221
  return o[i] = t, this._cache.clear(), this;
222
222
  }
223
223
  applyOverrides(e) {
224
- return this._overrides = vt(this._overrides, e), this._cache.clear(), this;
224
+ return this._overrides = yt(this._overrides, e), this._cache.clear(), this;
225
225
  }
226
226
  t(e, t) {
227
227
  const s = this._resolveCached(e);
@@ -239,18 +239,18 @@ class je {
239
239
  _resolve(e) {
240
240
  const t = this._active;
241
241
  for (let i = this; i; i = i._parent) {
242
- const o = $e(i._overrides, e);
242
+ const o = De(i._overrides, e);
243
243
  if (o !== void 0) return o;
244
- const n = $e(i._locales.get(t), e);
244
+ const n = De(i._locales.get(t), e);
245
245
  if (n !== void 0) return n;
246
246
  }
247
247
  const s = this._extendsOf(t);
248
248
  if (s && s !== t && this._resolveLocale(s) !== void 0) {
249
- const o = bt(this, s, e);
249
+ const o = vt(this, s, e);
250
250
  if (o !== void 0) return o;
251
251
  }
252
252
  if (t !== "ko") {
253
- const i = bt(this, "ko", e);
253
+ const i = vt(this, "ko", e);
254
254
  if (i !== void 0) return i;
255
255
  }
256
256
  }
@@ -286,20 +286,20 @@ class je {
286
286
  this._locales.set(e, t), this._meta.set(e, s);
287
287
  }
288
288
  }
289
- function bt(r, e, t) {
289
+ function vt(r, e, t) {
290
290
  for (let s = r; s; s = s._parent) {
291
- const i = $e(s._locales.get(e), t);
291
+ const i = De(s._locales.get(e), t);
292
292
  if (i !== void 0) return i;
293
293
  }
294
294
  }
295
- const se = new je();
296
- se._seed("ko", Os, $s), se._seed("en", zs, Bs);
297
- function B(r, e) {
298
- return se.t(r, e);
295
+ const te = new Ke();
296
+ te._seed("ko", Os, $s), te._seed("en", zs, Bs);
297
+ function $(r, e) {
298
+ return te.t(r, e);
299
299
  }
300
300
  class Hs {
301
301
  constructor(e, t, s, i) {
302
- this._field = "", this._outsideHandler = null, this._onApply = t, this._onClear = s, this._t = i ?? B, this._el = document.createElement("div"), this._el.className = "og-filter-panel", this._el.style.cssText = `
302
+ this._field = "", this._outsideHandler = null, this._onApply = t, this._onClear = s, this._t = i ?? $, this._el = document.createElement("div"), this._el.className = "og-filter-panel", this._el.style.cssText = `
303
303
  position:absolute;z-index:1000;min-width:200px;max-width:280px;
304
304
  background:var(--og-row-bg,#fff);border:1px solid var(--og-border-color,#e0e0e0);
305
305
  border-radius:var(--og-radius-md,4px);box-shadow:0 4px 16px rgba(0,0,0,0.15);
@@ -317,8 +317,8 @@ class Hs {
317
317
  n.style.cssText = "flex:1;padding:3px 4px;border:1px solid var(--og-border-color,#e0e0e0);border-radius:var(--og-radius-md,3px);font-size:12px;";
318
318
  const a = [{ label: this._t("filter.opContains"), value: "contains" }, { label: this._t("filter.opEq"), value: "=" }, { label: this._t("filter.opNe"), value: "!=" }, { label: this._t("filter.opStartsWith"), value: "startsWith" }, { label: this._t("filter.opEndsWith"), value: "endsWith" }, { label: this._t("filter.opGt"), value: ">" }, { label: this._t("filter.opLt"), value: "<" }, { label: this._t("filter.opGte"), value: ">=" }, { label: this._t("filter.opLte"), value: "<=" }];
319
319
  for (const p of a) {
320
- const f = document.createElement("option");
321
- f.value = p.value, f.textContent = p.label, n.appendChild(f);
320
+ const _ = document.createElement("option");
321
+ _.value = p.value, _.textContent = p.label, n.appendChild(_);
322
322
  }
323
323
  s[0] && (n.value = s[0].operator), o.appendChild(n), this._el.appendChild(o);
324
324
  const l = document.createElement("input");
@@ -454,8 +454,8 @@ class v {
454
454
  if (s < e) t = t * 10n ** BigInt(e - s);
455
455
  else if (s > e) {
456
456
  const c = 10n ** BigInt(s - e), h = c / 2n, u = t < 0n, g = u ? -t : t, p = g % c;
457
- let f = g / c;
458
- p >= h && (f += 1n), t = u ? -f : f;
457
+ let _ = g / c;
458
+ p >= h && (_ += 1n), t = u ? -_ : _;
459
459
  }
460
460
  s = e;
461
461
  const i = t < 0n, n = (i ? -t : t).toString().padStart(e + 1, "0"), a = n.slice(0, n.length - e) || "0", l = e > 0 ? "." + n.slice(n.length - e) : "";
@@ -485,7 +485,7 @@ class v {
485
485
  return e.map(v.from).reduce((t, s) => t.gt(s) ? t : s);
486
486
  }
487
487
  }
488
- function xt(r, e, t = 30) {
488
+ function bt(r, e, t = 30) {
489
489
  return new Vs(r, e, t).parse();
490
490
  }
491
491
  class Vs {
@@ -555,7 +555,7 @@ class Vs {
555
555
  for (; this._pos < this._src.length && /\s/.test(this._src[this._pos]); ) this._pos++;
556
556
  }
557
557
  }
558
- function Ge(r, e) {
558
+ function je(r, e) {
559
559
  if (r == null || r === "") return r ?? "";
560
560
  const t = typeof e == "string" ? { type: e } : e, s = t.char ?? "*";
561
561
  switch (t.type) {
@@ -577,7 +577,7 @@ function Ge(r, e) {
577
577
  case "ip":
578
578
  return Ys(r, s);
579
579
  case "partial":
580
- return Se(r, s, t.visiblePrefix ?? 0, t.visibleSuffix ?? 4);
580
+ return Ee(r, s, t.visiblePrefix ?? 0, t.visibleSuffix ?? 4);
581
581
  default:
582
582
  return r;
583
583
  }
@@ -593,11 +593,11 @@ function Ws(r, e) {
593
593
  }
594
594
  function Ks(r, e) {
595
595
  const t = r.replace(/[^0-9]/g, "");
596
- return t.length === 11 ? `${t.slice(0, 3)}-${e.repeat(4)}-${t.slice(7)}` : t.length === 10 ? t.startsWith("02") ? `${t.slice(0, 2)}-${e.repeat(4)}-${t.slice(6)}` : `${t.slice(0, 3)}-${e.repeat(3)}-${t.slice(6)}` : t.length === 9 ? `${t.slice(0, 2)}-${e.repeat(3)}-${t.slice(5)}` : Se(r, e, 3, 4);
596
+ return t.length === 11 ? `${t.slice(0, 3)}-${e.repeat(4)}-${t.slice(7)}` : t.length === 10 ? t.startsWith("02") ? `${t.slice(0, 2)}-${e.repeat(4)}-${t.slice(6)}` : `${t.slice(0, 3)}-${e.repeat(3)}-${t.slice(6)}` : t.length === 9 ? `${t.slice(0, 2)}-${e.repeat(3)}-${t.slice(5)}` : Ee(r, e, 3, 4);
597
597
  }
598
598
  function Us(r, e) {
599
599
  const t = r.indexOf("@");
600
- if (t < 0) return Se(r, e, 2, 0);
600
+ if (t < 0) return Ee(r, e, 2, 0);
601
601
  const s = r.slice(0, t), i = r.slice(t), o = Math.min(2, s.length), n = s.slice(0, o), a = Math.max(s.length - o, 3);
602
602
  return `${n}${e.repeat(a)}${i}`;
603
603
  }
@@ -613,7 +613,7 @@ function js(r, e) {
613
613
  }
614
614
  function qs(r, e, t, s) {
615
615
  const i = r.replace(/[^0-9]/g, "");
616
- if (i.length <= t + s) return Se(i, e, t, s);
616
+ if (i.length <= t + s) return Ee(i, e, t, s);
617
617
  const o = i.slice(0, t), n = i.slice(-s), a = i.length - t - s;
618
618
  return `${o}-${e.repeat(a)}-${n}`;
619
619
  }
@@ -623,23 +623,23 @@ function Gs(r, e) {
623
623
  }
624
624
  function Ys(r, e) {
625
625
  const t = r.split(".");
626
- if (t.length !== 4) return Se(r, e, 3, 0);
626
+ if (t.length !== 4) return Ee(r, e, 3, 0);
627
627
  const s = (i) => e.repeat(Math.max(i.length, 3));
628
628
  return `${t[0]}.${t[1]}.${s(t[2])}.${s(t[3])}`;
629
629
  }
630
- function Se(r, e, t, s) {
630
+ function Ee(r, e, t, s) {
631
631
  if (r.length <= t + s) return r;
632
632
  const i = r.slice(0, t), o = s > 0 ? r.slice(-s) : "", n = r.length - t - s;
633
633
  return `${i}${e.repeat(n)}${o}`;
634
634
  }
635
635
  const Xs = "#e0e0e0";
636
- class ze {
636
+ class Oe {
637
637
  constructor(e = "default", t = "default") {
638
638
  this.theme = e, this.skin = t;
639
639
  }
640
640
  }
641
- class Ye {
642
- constructor(e = new ze()) {
641
+ class qe {
642
+ constructor(e = new Oe()) {
643
643
  this._ctx = e;
644
644
  }
645
645
  get context() {
@@ -649,7 +649,7 @@ class Ye {
649
649
  return this._ctx.skin !== "default";
650
650
  }
651
651
  setSkin(e) {
652
- this._ctx = new ze(this._ctx.theme, e);
652
+ this._ctx = new Oe(this._ctx.theme, e);
653
653
  }
654
654
  _borderColorVar() {
655
655
  return `var(--og-border-color,${Xs})`;
@@ -685,18 +685,18 @@ class Ye {
685
685
  return this._skinActive() && (e == null ? void 0 : e.width) === void 0 && (e == null ? void 0 : e.style) === void 0 ? `var(--og-focus-width, 2px) var(--og-focus-style, solid) ${i}` : `${t}px ${s} ${i}`;
686
686
  }
687
687
  }
688
- const ye = new Ye(), Zs = "0 0 16 16", Xe = { "sort-up": '<path d="M3.5 12.5a.5.5 0 0 1-1 0V3.707L1.354 4.854a.5.5 0 1 1-.708-.708l2-1.999.007-.007a.5.5 0 0 1 .7.006l2 2a.5.5 0 1 1-.707.708L3.5 3.707zm3.5-9a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5M7.5 6a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z"/>', "sort-down": '<path d="M3.5 2.5a.5.5 0 0 0-1 0v8.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L3.5 11.293zm3.5 1a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5M7.5 6a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z"/>', "chevron-expand": '<path fill-rule="evenodd" d="M3.646 9.146a.5.5 0 0 1 .708 0L8 12.793l3.646-3.647a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.708m0-2.292a.5.5 0 0 0 .708 0L8 3.207l3.646 3.647a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 0 0 0 .708"/>', funnel: '<path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5zm1 .5v1.308l4.372 4.858A.5.5 0 0 1 7 8.5v5.306l2-.666V8.5a.5.5 0 0 1 .128-.334L13.5 3.308V2z"/>', "funnel-fill": '<path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5z"/>', filter: '<path d="M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5m-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5"/>', search: '<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/>', "chevron-left": '<path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"/>', "chevron-right": '<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"/>', "chevron-up": '<path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/>', "chevron-down": '<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/>', "chevron-double-left": '<path fill-rule="evenodd" d="M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"/><path fill-rule="evenodd" d="M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"/>', "chevron-double-right": '<path fill-rule="evenodd" d="M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8 3.646 2.354a.5.5 0 0 1 0-.708"/><path fill-rule="evenodd" d="M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8 7.646 2.354a.5.5 0 0 1 0-.708"/>', "arrow-up": '<path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5"/>', "arrow-down": '<path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1"/>', "arrow-left": '<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>', "arrow-right": '<path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8"/>', "arrow-clockwise": '<path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z"/><path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466"/>', "plus-lg": '<path fill-rule="evenodd" d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2"/>', "plus-circle": '<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"/>', trash3: '<path d="M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5M11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47M8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5"/>', "grip-vertical": '<path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0M7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0M7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>', "grip-horizontal": '<path d="M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/>', "pin-angle": '<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146m.122 2.112v-.002zm0-.002v.002a.5.5 0 0 1-.122.51L6.293 6.878a.5.5 0 0 1-.511.12H5.78l-.014-.004a5 5 0 0 0-.288-.076 5 5 0 0 0-.765-.116c-.422-.028-.836.008-1.175.15l5.51 5.509c.141-.34.177-.753.149-1.175a5 5 0 0 0-.192-1.054l-.004-.013v-.001a.5.5 0 0 1 .12-.512l3.536-3.535a.5.5 0 0 1 .532-.115l.096.022c.087.017.208.034.344.034q.172.002.343-.04L9.927 2.028q-.042.172-.04.343a1.8 1.8 0 0 0 .062.46z"/>', "pin-angle-fill": '<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146"/>', eye: '<path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z"/><path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0"/>', "eye-slash": '<path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7 7 0 0 0-2.79.588l.77.771A6 6 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755q-.247.248-.517.486z"/><path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829"/><path d="M3.35 5.47q-.27.24-.518.487A13 13 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7 7 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12z"/>', pencil: '<path d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325"/>', "check-lg": '<path d="M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z"/>', "x-lg": '<path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"/>', clipboard: '<path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z"/><path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z"/>', "clipboard-check": '<path fill-rule="evenodd" d="M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0"/><path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z"/><path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z"/>', eraser: '<path d="M8.086 2.207a2 2 0 0 1 2.828 0l3.879 3.879a2 2 0 0 1 0 2.828l-5.5 5.5A2 2 0 0 1 7.879 15H5.12a2 2 0 0 1-1.414-.586l-2.5-2.5a2 2 0 0 1 0-2.828zm2.121.707a1 1 0 0 0-1.414 0L4.16 7.547l5.293 5.293 4.633-4.633a1 1 0 0 0 0-1.414zM8.746 13.547 3.453 8.254 1.914 9.793a1 1 0 0 0 0 1.414l2.5 2.5a1 1 0 0 0 .707.293H7.88a1 1 0 0 0 .707-.293z"/>', square: '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/>', "check-square": '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z"/>', "dash-square": '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8"/>', "check-all": '<path d="M8.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L2.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093L8.95 4.992zm-.92 5.14.92.92a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 1 0-1.091-1.028L9.477 9.417l-.485-.486z"/>', "filetype-csv": '<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM3.517 14.841a1.13 1.13 0 0 0 .401.823q.195.162.478.252.284.091.665.091.507 0 .859-.158.354-.158.539-.44.187-.284.187-.656 0-.336-.134-.56a1 1 0 0 0-.375-.357 2 2 0 0 0-.566-.21l-.621-.144a1 1 0 0 1-.404-.176.37.37 0 0 1-.144-.299q0-.234.185-.384.188-.152.512-.152.214 0 .37.068a.6.6 0 0 1 .246.181.56.56 0 0 1 .12.258h.75a1.1 1.1 0 0 0-.2-.566 1.2 1.2 0 0 0-.5-.41 1.8 1.8 0 0 0-.78-.152q-.439 0-.776.15-.337.149-.527.421-.19.273-.19.639 0 .302.122.524.124.223.352.367.228.143.539.213l.618.144q.31.073.463.193a.39.39 0 0 1 .152.326.5.5 0 0 1-.085.29.56.56 0 0 1-.255.193q-.167.07-.413.07-.175 0-.32-.04a.8.8 0 0 1-.248-.115.58.58 0 0 1-.255-.384zM.806 13.693q0-.373.102-.633a.87.87 0 0 1 .302-.399.8.8 0 0 1 .475-.137q.225 0 .398.097a.7.7 0 0 1 .272.26.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964 1.4 1.4 0 0 0-.489-.272 1.8 1.8 0 0 0-.606-.097q-.534 0-.911.223-.375.222-.572.632-.195.41-.196.979v.498q0 .568.193.976.197.407.572.626.375.217.914.217.439 0 .785-.164t.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.8.8 0 0 1-.118.363.7.7 0 0 1-.272.25.9.9 0 0 1-.401.087.85.85 0 0 1-.478-.132.83.83 0 0 1-.299-.392 1.7 1.7 0 0 1-.102-.627zm8.239 2.238h-.953l-1.338-3.999h.917l.896 3.138h.038l.888-3.138h.879z"/>', "filetype-xlsx": '<path fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM7.86 14.841a1.13 1.13 0 0 0 .401.823q.195.162.479.252.284.091.665.091.507 0 .858-.158.355-.158.54-.44a1.17 1.17 0 0 0 .187-.656q0-.336-.135-.56a1 1 0 0 0-.375-.357 2 2 0 0 0-.565-.21l-.621-.144a1 1 0 0 1-.405-.176.37.37 0 0 1-.143-.299q0-.234.184-.384.188-.152.513-.152.214 0 .37.068a.6.6 0 0 1 .245.181.56.56 0 0 1 .12.258h.75a1.1 1.1 0 0 0-.199-.566 1.2 1.2 0 0 0-.5-.41 1.8 1.8 0 0 0-.78-.152q-.44 0-.777.15-.336.149-.527.421-.19.273-.19.639 0 .302.123.524t.351.367q.229.143.54.213l.618.144q.31.073.462.193a.39.39 0 0 1 .153.326.5.5 0 0 1-.085.29.56.56 0 0 1-.255.193q-.168.07-.413.07-.176 0-.32-.04a.8.8 0 0 1-.249-.115.58.58 0 0 1-.255-.384zm-3.726-2.909h.893l-1.274 2.007 1.254 1.992h-.908l-.85-1.415h-.035l-.853 1.415H1.5l1.24-2.016-1.228-1.983h.931l.832 1.438h.036zm1.923 3.325h1.697v.674H5.266v-3.999h.791zm7.636-3.325h.893l-1.274 2.007 1.254 1.992h-.908l-.85-1.415h-.035l-.853 1.415h-.861l1.24-2.016-1.228-1.983h.931l.832 1.438h.036z"/>', "filetype-pdf": '<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803q.43 0 .732-.173.305-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38.57.57 0 0 1-.238.241.8.8 0 0 1-.375.082H.788V12.48h.66q.327 0 .512.181.185.183.185.522m1.217-1.333v3.999h1.46q.602 0 .998-.237a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084 0-.63-.196-1.075a1.43 1.43 0 0 0-.589-.68q-.396-.234-1.005-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592 1.1 1.1 0 0 1-.196.422.8.8 0 0 1-.334.252 1.3 1.3 0 0 1-.483.082h-.563zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638z"/>', "filetype-json": '<path fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM4.151 15.29a1.2 1.2 0 0 1-.111-.449h.764a.58.58 0 0 0 .255.384q.105.073.25.114.142.041.319.041.245 0 .413-.07a.56.56 0 0 0 .255-.193.5.5 0 0 0 .084-.29.39.39 0 0 0-.152-.326q-.152-.12-.463-.193l-.618-.143a1.7 1.7 0 0 1-.539-.214 1 1 0 0 1-.352-.367 1.1 1.1 0 0 1-.123-.524q0-.366.19-.639.192-.272.528-.422.337-.15.777-.149.456 0 .779.152.326.153.5.41.18.255.2.566h-.75a.56.56 0 0 0-.12-.258.6.6 0 0 0-.246-.181.9.9 0 0 0-.37-.068q-.324 0-.512.152a.47.47 0 0 0-.185.384q0 .18.144.3a1 1 0 0 0 .404.175l.621.143q.326.075.566.211a1 1 0 0 1 .375.358q.135.222.135.56 0 .37-.188.656a1.2 1.2 0 0 1-.539.439q-.351.158-.858.158-.381 0-.665-.09a1.4 1.4 0 0 1-.478-.252 1.1 1.1 0 0 1-.29-.375m-3.104-.033a1.3 1.3 0 0 1-.082-.466h.764a.6.6 0 0 0 .074.27.5.5 0 0 0 .454.246q.285 0 .422-.164.137-.165.137-.466v-2.745h.791v2.725q0 .66-.357 1.005-.355.345-.985.345a1.6 1.6 0 0 1-.568-.094 1.15 1.15 0 0 1-.407-.266 1.1 1.1 0 0 1-.243-.39m9.091-1.585v.522q0 .384-.117.641a.86.86 0 0 1-.322.387.9.9 0 0 1-.47.126.9.9 0 0 1-.47-.126.87.87 0 0 1-.32-.387 1.55 1.55 0 0 1-.117-.641v-.522q0-.386.117-.641a.87.87 0 0 1 .32-.387.87.87 0 0 1 .47-.129q.265 0 .47.129a.86.86 0 0 1 .322.387q.117.255.117.641m.803.519v-.513q0-.565-.205-.973a1.46 1.46 0 0 0-.59-.63q-.38-.22-.916-.22-.534 0-.92.22a1.44 1.44 0 0 0-.589.628q-.205.407-.205.975v.513q0 .562.205.973.205.407.589.626.386.217.92.217.536 0 .917-.217.384-.22.589-.626.204-.41.205-.973m1.29-.935v2.675h-.746v-3.999h.662l1.752 2.66h.032v-2.66h.75v4h-.656l-1.761-2.676z"/>', printer: '<path d="M2.5 8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1"/><path d="M5 1a2 2 0 0 0-2 2v2H2a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h1v1a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-1h1a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-1V3a2 2 0 0 0-2-2zM4 3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2H4zm1 5a2 2 0 0 0-2 2v1H2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1v-1a2 2 0 0 0-2-2zm7 2v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1"/>', download: '<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"/>', upload: '<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z"/>', table: '<path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm15 2h-4v3h4zm0 4h-4v3h4zm0 4h-4v3h3a1 1 0 0 0 1-1zm-5 3v-3H6v3zm-5 0v-3H1v2a1 1 0 0 0 1 1zm-4-4h4V8H1zm0-4h4V4H1zm5-3v3h4V4zm4 4H6v3h4z"/>', "bar-chart": '<path d="M4 11H2v3h2zm5-4H7v7h2zm5-5v12h-2V2zm-2-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM6 7a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1zm-5 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1z"/>', "graph-up": '<path fill-rule="evenodd" d="M0 0h1v15h15v1H0zm14.817 3.113a.5.5 0 0 1 .07.704l-4.5 5.5a.5.5 0 0 1-.74.037L7.06 6.767l-3.656 5.027a.5.5 0 0 1-.808-.588l4-5.5a.5.5 0 0 1 .758-.06l2.609 2.61 4.15-5.073a.5.5 0 0 1 .704-.07"/>', "pie-chart": '<path d="M7.5 1.018a7 7 0 0 0-4.79 11.566L7.5 7.793zm1 0V7.5h6.482A7 7 0 0 0 8.5 1.018M14.982 8.5H8.207l-4.79 4.79A7 7 0 0 0 14.982 8.5M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8"/>', "check-circle-fill": '<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>', "exclamation-triangle-fill": '<path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5m.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/>', "x-circle-fill": '<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293z"/>', "info-circle": '<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>', "lock-fill": '<path fill-rule="evenodd" d="M8 0a4 4 0 0 1 4 4v2.05a2.5 2.5 0 0 1 2 2.45v5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 13.5v-5a2.5 2.5 0 0 1 2-2.45V4a4 4 0 0 1 4-4m0 1a3 3 0 0 0-3 3v2h6V4a3 3 0 0 0-3-3"/>', unlock: '<path fill-rule="evenodd" d="M12 0a4 4 0 0 1 4 4v2.5h-1V4a3 3 0 1 0-6 0v2h.5A2.5 2.5 0 0 1 12 8.5v5A2.5 2.5 0 0 1 9.5 16h-7A2.5 2.5 0 0 1 0 13.5v-5A2.5 2.5 0 0 1 2.5 6H8V4a4 4 0 0 1 4-4M2.5 7A1.5 1.5 0 0 0 1 8.5v5A1.5 1.5 0 0 0 2.5 15h7a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 9.5 7z"/>', asterisk: '<path d="M8 0a1 1 0 0 1 1 1v5.268l4.562-2.634a1 1 0 1 1 1 1.732L10 8l4.562 2.634a1 1 0 1 1-1 1.732L9 9.732V15a1 1 0 1 1-2 0V9.732l-4.562 2.634a1 1 0 1 1-1-1.732L6 8 1.438 5.366a1 1 0 0 1 1-1.732L7 6.268V1a1 1 0 0 1 1-1"/>', calculator: '<path d="M12 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M4 2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zm0 4a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3-6a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3-6a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"/>', gear: '<path d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492M5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0"/><path d="M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115z"/>', list: '<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/>', "three-dots-vertical": '<path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>', "three-dots": '<path d="M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/>', plus: '<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"/>', dash: '<path d="M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8"/>', "question-circle": '<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"/>', "eye-reveal": '<path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8z"/><path d="M8 5.5A2.5 2.5 0 1 0 8 10.5 2.5 2.5 0 0 0 8 5.5zm0 4A1.5 1.5 0 1 1 8 6.5a1.5 1.5 0 0 1 0 3z" fill="#fff"/>' };
689
- Object.keys(Xe).length;
690
- const Ct = { "sort.asc": "sort-up", "sort.desc": "sort-down", "sort.none": "chevron-expand", filter: "funnel", "filter.active": "funnel-fill", search: "search", "row.add": "plus-lg", "row.delete": "trash3", delete: "trash3", "row.drag": "grip-vertical", "column.drag": "grip-horizontal", expand: "chevron-right", collapse: "chevron-down", "tree.expand": "chevron-right", "tree.collapse": "chevron-down", "mask.reveal": "eye-reveal", "mask.show": "eye", "mask.hide": "eye-slash", "export.excel": "filetype-xlsx", "export.csv": "filetype-csv", "export.pdf": "filetype-pdf", "export.json": "filetype-json", export: "download", import: "upload", print: "printer", table: "table", edit: "pencil", copy: "clipboard", paste: "clipboard-check", clear: "eraser", check: "check-lg", close: "x-lg", add: "plus", remove: "dash", "select.all": "check-all", "select.none": "square", "select.check": "check-square", "select.indeterminate": "dash-square", pin: "pin-angle", "pin.active": "pin-angle-fill", "status.error": "x-circle-fill", "status.warning": "exclamation-triangle-fill", "status.success": "check-circle-fill", "status.info": "info-circle", "status.lock": "lock-fill", "status.unlock": "unlock", required: "asterisk", chart: "bar-chart", "chart.bar": "bar-chart", "chart.line": "graph-up", "chart.pie": "pie-chart", formula: "calculator", "nav.first": "chevron-double-left", "nav.prev": "chevron-left", "nav.next": "chevron-right", "nav.last": "chevron-double-right", "nav.up": "arrow-up", "nav.down": "arrow-down", refresh: "arrow-clockwise", menu: "list", more: "three-dots-vertical", "more.horizontal": "three-dots", settings: "gear", help: "question-circle" }, Qs = "";
688
+ const ye = new qe(), Zs = "0 0 16 16", Ge = { "sort-up": '<path d="M3.5 12.5a.5.5 0 0 1-1 0V3.707L1.354 4.854a.5.5 0 1 1-.708-.708l2-1.999.007-.007a.5.5 0 0 1 .7.006l2 2a.5.5 0 1 1-.707.708L3.5 3.707zm3.5-9a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5M7.5 6a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z"/>', "sort-down": '<path d="M3.5 2.5a.5.5 0 0 0-1 0v8.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L3.5 11.293zm3.5 1a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5M7.5 6a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h1a.5.5 0 0 0 0-1z"/>', "chevron-expand": '<path fill-rule="evenodd" d="M3.646 9.146a.5.5 0 0 1 .708 0L8 12.793l3.646-3.647a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.708m0-2.292a.5.5 0 0 0 .708 0L8 3.207l3.646 3.647a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 0 0 0 .708"/>', funnel: '<path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5zm1 .5v1.308l4.372 4.858A.5.5 0 0 1 7 8.5v5.306l2-.666V8.5a.5.5 0 0 1 .128-.334L13.5 3.308V2z"/>', "funnel-fill": '<path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5z"/>', filter: '<path d="M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5m-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5m-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5"/>', search: '<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/>', "chevron-left": '<path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"/>', "chevron-right": '<path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"/>', "chevron-up": '<path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/>', "chevron-down": '<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/>', "chevron-double-left": '<path fill-rule="evenodd" d="M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"/><path fill-rule="evenodd" d="M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"/>', "chevron-double-right": '<path fill-rule="evenodd" d="M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8 3.646 2.354a.5.5 0 0 1 0-.708"/><path fill-rule="evenodd" d="M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8 7.646 2.354a.5.5 0 0 1 0-.708"/>', "arrow-up": '<path fill-rule="evenodd" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5"/>', "arrow-down": '<path fill-rule="evenodd" d="M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1"/>', "arrow-left": '<path fill-rule="evenodd" d="M15 8a.5.5 0 0 0-.5-.5H2.707l3.147-3.146a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.707 8.5H14.5A.5.5 0 0 0 15 8"/>', "arrow-right": '<path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8"/>', "arrow-clockwise": '<path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z"/><path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466"/>', "plus-lg": '<path fill-rule="evenodd" d="M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2"/>', "plus-circle": '<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"/>', trash3: '<path d="M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5M11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47M8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5"/>', "grip-vertical": '<path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0M7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0M7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>', "grip-horizontal": '<path d="M2 8a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m3 3a1 1 0 1 1 0 2 1 1 0 0 1 0-2m0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/>', "pin-angle": '<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146m.122 2.112v-.002zm0-.002v.002a.5.5 0 0 1-.122.51L6.293 6.878a.5.5 0 0 1-.511.12H5.78l-.014-.004a5 5 0 0 0-.288-.076 5 5 0 0 0-.765-.116c-.422-.028-.836.008-1.175.15l5.51 5.509c.141-.34.177-.753.149-1.175a5 5 0 0 0-.192-1.054l-.004-.013v-.001a.5.5 0 0 1 .12-.512l3.536-3.535a.5.5 0 0 1 .532-.115l.096.022c.087.017.208.034.344.034q.172.002.343-.04L9.927 2.028q-.042.172-.04.343a1.8 1.8 0 0 0 .062.46z"/>', "pin-angle-fill": '<path d="M9.828.722a.5.5 0 0 1 .354.146l4.95 4.95a.5.5 0 0 1 0 .707c-.48.48-1.072.588-1.503.588-.177 0-.335-.018-.46-.039l-3.134 3.134a6 6 0 0 1 .16 1.013c.046.702-.032 1.687-.72 2.375a.5.5 0 0 1-.707 0l-2.829-2.828-3.182 3.182c-.195.195-1.219.902-1.414.707s.512-1.22.707-1.414l3.182-3.182-2.828-2.829a.5.5 0 0 1 0-.707c.688-.688 1.673-.767 2.375-.72a6 6 0 0 1 1.013.16l3.134-3.133a3 3 0 0 1-.04-.461c0-.43.108-1.022.589-1.503a.5.5 0 0 1 .353-.146"/>', eye: '<path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z"/><path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0"/>', "eye-slash": '<path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7 7 0 0 0-2.79.588l.77.771A6 6 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755q-.247.248-.517.486z"/><path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829"/><path d="M3.35 5.47q-.27.24-.518.487A13 13 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7 7 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12z"/>', pencil: '<path d="M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325"/>', "check-lg": '<path d="M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z"/>', "x-lg": '<path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"/>', clipboard: '<path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z"/><path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z"/>', "clipboard-check": '<path fill-rule="evenodd" d="M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0"/><path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z"/><path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z"/>', eraser: '<path d="M8.086 2.207a2 2 0 0 1 2.828 0l3.879 3.879a2 2 0 0 1 0 2.828l-5.5 5.5A2 2 0 0 1 7.879 15H5.12a2 2 0 0 1-1.414-.586l-2.5-2.5a2 2 0 0 1 0-2.828zm2.121.707a1 1 0 0 0-1.414 0L4.16 7.547l5.293 5.293 4.633-4.633a1 1 0 0 0 0-1.414zM8.746 13.547 3.453 8.254 1.914 9.793a1 1 0 0 0 0 1.414l2.5 2.5a1 1 0 0 0 .707.293H7.88a1 1 0 0 0 .707-.293z"/>', square: '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/>', "check-square": '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z"/>', "dash-square": '<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8"/>', "check-all": '<path d="M8.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L2.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093L8.95 4.992zm-.92 5.14.92.92a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 1 0-1.091-1.028L9.477 9.417l-.485-.486z"/>', "filetype-csv": '<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM3.517 14.841a1.13 1.13 0 0 0 .401.823q.195.162.478.252.284.091.665.091.507 0 .859-.158.354-.158.539-.44.187-.284.187-.656 0-.336-.134-.56a1 1 0 0 0-.375-.357 2 2 0 0 0-.566-.21l-.621-.144a1 1 0 0 1-.404-.176.37.37 0 0 1-.144-.299q0-.234.185-.384.188-.152.512-.152.214 0 .37.068a.6.6 0 0 1 .246.181.56.56 0 0 1 .12.258h.75a1.1 1.1 0 0 0-.2-.566 1.2 1.2 0 0 0-.5-.41 1.8 1.8 0 0 0-.78-.152q-.439 0-.776.15-.337.149-.527.421-.19.273-.19.639 0 .302.122.524.124.223.352.367.228.143.539.213l.618.144q.31.073.463.193a.39.39 0 0 1 .152.326.5.5 0 0 1-.085.29.56.56 0 0 1-.255.193q-.167.07-.413.07-.175 0-.32-.04a.8.8 0 0 1-.248-.115.58.58 0 0 1-.255-.384zM.806 13.693q0-.373.102-.633a.87.87 0 0 1 .302-.399.8.8 0 0 1 .475-.137q.225 0 .398.097a.7.7 0 0 1 .272.26.85.85 0 0 1 .12.381h.765v-.072a1.33 1.33 0 0 0-.466-.964 1.4 1.4 0 0 0-.489-.272 1.8 1.8 0 0 0-.606-.097q-.534 0-.911.223-.375.222-.572.632-.195.41-.196.979v.498q0 .568.193.976.197.407.572.626.375.217.914.217.439 0 .785-.164t.55-.454a1.27 1.27 0 0 0 .226-.674v-.076h-.764a.8.8 0 0 1-.118.363.7.7 0 0 1-.272.25.9.9 0 0 1-.401.087.85.85 0 0 1-.478-.132.83.83 0 0 1-.299-.392 1.7 1.7 0 0 1-.102-.627zm8.239 2.238h-.953l-1.338-3.999h.917l.896 3.138h.038l.888-3.138h.879z"/>', "filetype-xlsx": '<path fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM7.86 14.841a1.13 1.13 0 0 0 .401.823q.195.162.479.252.284.091.665.091.507 0 .858-.158.355-.158.54-.44a1.17 1.17 0 0 0 .187-.656q0-.336-.135-.56a1 1 0 0 0-.375-.357 2 2 0 0 0-.565-.21l-.621-.144a1 1 0 0 1-.405-.176.37.37 0 0 1-.143-.299q0-.234.184-.384.188-.152.513-.152.214 0 .37.068a.6.6 0 0 1 .245.181.56.56 0 0 1 .12.258h.75a1.1 1.1 0 0 0-.199-.566 1.2 1.2 0 0 0-.5-.41 1.8 1.8 0 0 0-.78-.152q-.44 0-.777.15-.336.149-.527.421-.19.273-.19.639 0 .302.123.524t.351.367q.229.143.54.213l.618.144q.31.073.462.193a.39.39 0 0 1 .153.326.5.5 0 0 1-.085.29.56.56 0 0 1-.255.193q-.168.07-.413.07-.176 0-.32-.04a.8.8 0 0 1-.249-.115.58.58 0 0 1-.255-.384zm-3.726-2.909h.893l-1.274 2.007 1.254 1.992h-.908l-.85-1.415h-.035l-.853 1.415H1.5l1.24-2.016-1.228-1.983h.931l.832 1.438h.036zm1.923 3.325h1.697v.674H5.266v-3.999h.791zm7.636-3.325h.893l-1.274 2.007 1.254 1.992h-.908l-.85-1.415h-.035l-.853 1.415h-.861l1.24-2.016-1.228-1.983h.931l.832 1.438h.036z"/>', "filetype-pdf": '<path fill-rule="evenodd" d="M14 4.5V14a2 2 0 0 1-2 2h-1v-1h1a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM1.6 11.85H0v3.999h.791v-1.342h.803q.43 0 .732-.173.305-.175.463-.474a1.4 1.4 0 0 0 .161-.677q0-.375-.158-.677a1.2 1.2 0 0 0-.46-.477q-.3-.18-.732-.179m.545 1.333a.8.8 0 0 1-.085.38.57.57 0 0 1-.238.241.8.8 0 0 1-.375.082H.788V12.48h.66q.327 0 .512.181.185.183.185.522m1.217-1.333v3.999h1.46q.602 0 .998-.237a1.45 1.45 0 0 0 .595-.689q.196-.45.196-1.084 0-.63-.196-1.075a1.43 1.43 0 0 0-.589-.68q-.396-.234-1.005-.234zm.791.645h.563q.371 0 .609.152a.9.9 0 0 1 .354.454q.118.302.118.753a2.3 2.3 0 0 1-.068.592 1.1 1.1 0 0 1-.196.422.8.8 0 0 1-.334.252 1.3 1.3 0 0 1-.483.082h-.563zm3.743 1.763v1.591h-.79V11.85h2.548v.653H7.896v1.117h1.606v.638z"/>', "filetype-json": '<path fill-rule="evenodd" d="M14 4.5V11h-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4a1 1 0 0 0-1 1v9H2V2a2 2 0 0 1 2-2h5.5zM4.151 15.29a1.2 1.2 0 0 1-.111-.449h.764a.58.58 0 0 0 .255.384q.105.073.25.114.142.041.319.041.245 0 .413-.07a.56.56 0 0 0 .255-.193.5.5 0 0 0 .084-.29.39.39 0 0 0-.152-.326q-.152-.12-.463-.193l-.618-.143a1.7 1.7 0 0 1-.539-.214 1 1 0 0 1-.352-.367 1.1 1.1 0 0 1-.123-.524q0-.366.19-.639.192-.272.528-.422.337-.15.777-.149.456 0 .779.152.326.153.5.41.18.255.2.566h-.75a.56.56 0 0 0-.12-.258.6.6 0 0 0-.246-.181.9.9 0 0 0-.37-.068q-.324 0-.512.152a.47.47 0 0 0-.185.384q0 .18.144.3a1 1 0 0 0 .404.175l.621.143q.326.075.566.211a1 1 0 0 1 .375.358q.135.222.135.56 0 .37-.188.656a1.2 1.2 0 0 1-.539.439q-.351.158-.858.158-.381 0-.665-.09a1.4 1.4 0 0 1-.478-.252 1.1 1.1 0 0 1-.29-.375m-3.104-.033a1.3 1.3 0 0 1-.082-.466h.764a.6.6 0 0 0 .074.27.5.5 0 0 0 .454.246q.285 0 .422-.164.137-.165.137-.466v-2.745h.791v2.725q0 .66-.357 1.005-.355.345-.985.345a1.6 1.6 0 0 1-.568-.094 1.15 1.15 0 0 1-.407-.266 1.1 1.1 0 0 1-.243-.39m9.091-1.585v.522q0 .384-.117.641a.86.86 0 0 1-.322.387.9.9 0 0 1-.47.126.9.9 0 0 1-.47-.126.87.87 0 0 1-.32-.387 1.55 1.55 0 0 1-.117-.641v-.522q0-.386.117-.641a.87.87 0 0 1 .32-.387.87.87 0 0 1 .47-.129q.265 0 .47.129a.86.86 0 0 1 .322.387q.117.255.117.641m.803.519v-.513q0-.565-.205-.973a1.46 1.46 0 0 0-.59-.63q-.38-.22-.916-.22-.534 0-.92.22a1.44 1.44 0 0 0-.589.628q-.205.407-.205.975v.513q0 .562.205.973.205.407.589.626.386.217.92.217.536 0 .917-.217.384-.22.589-.626.204-.41.205-.973m1.29-.935v2.675h-.746v-3.999h.662l1.752 2.66h.032v-2.66h.75v4h-.656l-1.761-2.676z"/>', printer: '<path d="M2.5 8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1"/><path d="M5 1a2 2 0 0 0-2 2v2H2a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h1v1a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-1h1a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-1V3a2 2 0 0 0-2-2zM4 3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2H4zm1 5a2 2 0 0 0-2 2v1H2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1v-1a2 2 0 0 0-2-2zm7 2v3a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1"/>', download: '<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"/>', upload: '<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"/><path d="M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z"/>', table: '<path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm15 2h-4v3h4zm0 4h-4v3h4zm0 4h-4v3h3a1 1 0 0 0 1-1zm-5 3v-3H6v3zm-5 0v-3H1v2a1 1 0 0 0 1 1zm-4-4h4V8H1zm0-4h4V4H1zm5-3v3h4V4zm4 4H6v3h4z"/>', "bar-chart": '<path d="M4 11H2v3h2zm5-4H7v7h2zm5-5v12h-2V2zm-2-1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM6 7a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1zm-5 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1z"/>', "graph-up": '<path fill-rule="evenodd" d="M0 0h1v15h15v1H0zm14.817 3.113a.5.5 0 0 1 .07.704l-4.5 5.5a.5.5 0 0 1-.74.037L7.06 6.767l-3.656 5.027a.5.5 0 0 1-.808-.588l4-5.5a.5.5 0 0 1 .758-.06l2.609 2.61 4.15-5.073a.5.5 0 0 1 .704-.07"/>', "pie-chart": '<path d="M7.5 1.018a7 7 0 0 0-4.79 11.566L7.5 7.793zm1 0V7.5h6.482A7 7 0 0 0 8.5 1.018M14.982 8.5H8.207l-4.79 4.79A7 7 0 0 0 14.982 8.5M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8"/>', "check-circle-fill": '<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/>', "exclamation-triangle-fill": '<path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5m.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2"/>', "x-circle-fill": '<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293z"/>', "info-circle": '<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>', "lock-fill": '<path fill-rule="evenodd" d="M8 0a4 4 0 0 1 4 4v2.05a2.5 2.5 0 0 1 2 2.45v5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 13.5v-5a2.5 2.5 0 0 1 2-2.45V4a4 4 0 0 1 4-4m0 1a3 3 0 0 0-3 3v2h6V4a3 3 0 0 0-3-3"/>', unlock: '<path fill-rule="evenodd" d="M12 0a4 4 0 0 1 4 4v2.5h-1V4a3 3 0 1 0-6 0v2h.5A2.5 2.5 0 0 1 12 8.5v5A2.5 2.5 0 0 1 9.5 16h-7A2.5 2.5 0 0 1 0 13.5v-5A2.5 2.5 0 0 1 2.5 6H8V4a4 4 0 0 1 4-4M2.5 7A1.5 1.5 0 0 0 1 8.5v5A1.5 1.5 0 0 0 2.5 15h7a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 9.5 7z"/>', asterisk: '<path d="M8 0a1 1 0 0 1 1 1v5.268l4.562-2.634a1 1 0 1 1 1 1.732L10 8l4.562 2.634a1 1 0 1 1-1 1.732L9 9.732V15a1 1 0 1 1-2 0V9.732l-4.562 2.634a1 1 0 1 1-1-1.732L6 8 1.438 5.366a1 1 0 0 1 1-1.732L7 6.268V1a1 1 0 0 1 1-1"/>', calculator: '<path d="M12 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM4 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"/><path d="M4 2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5zm0 4a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3-6a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3-6a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm0 3a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z"/>', gear: '<path d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492M5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0"/><path d="M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115z"/>', list: '<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5m0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5"/>', "three-dots-vertical": '<path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0m0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>', "three-dots": '<path d="M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/>', plus: '<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"/>', dash: '<path d="M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8"/>', "question-circle": '<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/><path d="M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"/>', "eye-reveal": '<path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8z"/><path d="M8 5.5A2.5 2.5 0 1 0 8 10.5 2.5 2.5 0 0 0 8 5.5zm0 4A1.5 1.5 0 1 1 8 6.5a1.5 1.5 0 0 1 0 3z" fill="#fff"/>' };
689
+ Object.keys(Ge).length;
690
+ const xt = { "sort.asc": "sort-up", "sort.desc": "sort-down", "sort.none": "chevron-expand", filter: "funnel", "filter.active": "funnel-fill", search: "search", "row.add": "plus-lg", "row.delete": "trash3", delete: "trash3", "row.drag": "grip-vertical", "column.drag": "grip-horizontal", expand: "chevron-right", collapse: "chevron-down", "tree.expand": "chevron-right", "tree.collapse": "chevron-down", "mask.reveal": "eye-reveal", "mask.show": "eye", "mask.hide": "eye-slash", "export.excel": "filetype-xlsx", "export.csv": "filetype-csv", "export.pdf": "filetype-pdf", "export.json": "filetype-json", export: "download", import: "upload", print: "printer", table: "table", edit: "pencil", copy: "clipboard", paste: "clipboard-check", clear: "eraser", check: "check-lg", close: "x-lg", add: "plus", remove: "dash", "select.all": "check-all", "select.none": "square", "select.check": "check-square", "select.indeterminate": "dash-square", pin: "pin-angle", "pin.active": "pin-angle-fill", "status.error": "x-circle-fill", "status.warning": "exclamation-triangle-fill", "status.success": "check-circle-fill", "status.info": "info-circle", "status.lock": "lock-fill", "status.unlock": "unlock", required: "asterisk", chart: "bar-chart", "chart.bar": "bar-chart", "chart.line": "graph-up", "chart.pie": "pie-chart", formula: "calculator", "nav.first": "chevron-double-left", "nav.prev": "chevron-left", "nav.next": "chevron-right", "nav.last": "chevron-double-right", "nav.up": "arrow-up", "nav.down": "arrow-down", refresh: "arrow-clockwise", menu: "list", more: "three-dots-vertical", "more.horizontal": "three-dots", settings: "gear", help: "question-circle" }, Qs = "";
691
691
  function Js(r) {
692
692
  return r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
693
693
  }
694
- class qe {
694
+ class Ue {
695
695
  constructor(e, t) {
696
696
  if (this._roles = /* @__PURE__ */ new Map(), this._parent = t, e) for (const [s, i] of Object.entries(e)) this.register(s, i);
697
697
  }
698
698
  register(e, t) {
699
- const s = Object.prototype.hasOwnProperty.call(Xe, t) ? Xe[t] : t;
699
+ const s = Object.prototype.hasOwnProperty.call(Ge, t) ? Ge[t] : t;
700
700
  return this._roles.set(e, s), this;
701
701
  }
702
702
  has(e) {
@@ -708,7 +708,7 @@ class qe {
708
708
  return t !== void 0 ? t : this._parent ? this._parent.resolveBody(e) : null;
709
709
  }
710
710
  child() {
711
- return new qe(void 0, this);
711
+ return new Ue(void 0, this);
712
712
  }
713
713
  render(e, t) {
714
714
  const s = this.resolveBody(e) ?? Qs, i = t == null ? void 0 : t.size, o = i != null ? ` width="${i}" height="${i}"` : "", n = t == null ? void 0 : t.title, a = n ? `<title>${Js(n)}</title>` : "", d = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${Zs}"${o} fill="currentColor"${n ? ' role="img"' : ""} style="stroke-linejoin:var(--og-icon-corner, miter)">${a}${s}</svg>`;
@@ -718,21 +718,21 @@ class qe {
718
718
  return [...this._roles.keys()];
719
719
  }
720
720
  }
721
- const ge = new qe(Ct);
721
+ const ge = new Ue(xt);
722
722
  function ei(r, e) {
723
723
  return ge.render(r, e);
724
724
  }
725
725
  function ve(r, e, t) {
726
- return r.t ? r.t(e, t) : B(e, t);
726
+ return r.t ? r.t(e, t) : $(e, t);
727
727
  }
728
- function Rt(r) {
728
+ function Ct(r) {
729
729
  if (r.hasCellFormula) return null;
730
730
  const e = r.column;
731
731
  if (!e.formula) return null;
732
732
  const t = e.formulaPrecision ?? 30;
733
733
  try {
734
734
  let s;
735
- return typeof e.formula == "function" ? s = e.formula(r.row, v) : s = xt(e.formula, r.row, t), s instanceof v ? e.precision != null ? s.toFixed(e.precision) : s.toString() : typeof s == "string" ? s : e.precision != null ? v.from(s).toFixed(e.precision) : String(s);
735
+ return typeof e.formula == "function" ? s = e.formula(r.row, v) : s = bt(e.formula, r.row, t), s instanceof v ? e.precision != null ? s.toFixed(e.precision) : s.toString() : typeof s == "string" ? s : e.precision != null ? v.from(s).toFixed(e.precision) : String(s);
736
736
  } catch (s) {
737
737
  return console.warn("[OpenGrid] Formula error:", s), "#ERR";
738
738
  }
@@ -748,10 +748,10 @@ function ti(r, e, t, s, i, o) {
748
748
  if (!e) return t != null ? n.toFixed(t) : String(n);
749
749
  const a = e.indexOf(";"), l = a >= 0 ? e.slice(a + 1) : null, d = n < 0 && l != null ? l : a >= 0 ? e.slice(0, a) : e, c = n < 0 && l != null ? Math.abs(n) : n, h = d.match(/[#0][#0,]*(?:\.[#0]+)?/);
750
750
  if (!h) return String(n);
751
- const u = h[0], g = d.slice(0, h.index), p = d.slice(h.index + u.length), f = u.includes(","), m = u.includes(".") ? u.split(".")[1].length : t ?? 0, _ = c.toLocaleString("ko-KR", { minimumFractionDigits: m, maximumFractionDigits: m, useGrouping: f });
752
- return g + _ + p;
751
+ const u = h[0], g = d.slice(0, h.index), p = d.slice(h.index + u.length), _ = u.includes(","), m = u.includes(".") ? u.split(".")[1].length : t ?? 0, f = c.toLocaleString("ko-KR", { minimumFractionDigits: m, maximumFractionDigits: m, useGrouping: _ });
752
+ return g + f + p;
753
753
  }
754
- function Mt(r, e = "yyyy-MM-dd", t, s) {
754
+ function Rt(r, e = "yyyy-MM-dd", t, s) {
755
755
  if (!r) return "";
756
756
  const i = r instanceof Date ? r : new Date(r);
757
757
  if (isNaN(i.getTime())) return String(r);
@@ -759,7 +759,7 @@ function Mt(r, e = "yyyy-MM-dd", t, s) {
759
759
  return e.replace("yyyy", String(o)).replace("MM", n).replace("dd", a);
760
760
  }
761
761
  function si(r, e, t, s) {
762
- const i = Ge(r, e.mask), o = document.createElement("span");
762
+ const i = je(r, e.mask), o = document.createElement("span");
763
763
  o.style.cssText = "display:flex;align-items:center;gap:3px;overflow:hidden;width:100%;box-sizing:border-box;";
764
764
  const n = document.createElement("span");
765
765
  n.style.cssText = "flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:monospace;letter-spacing:0.4px;color:var(--og-mask-text,#888);", n.textContent = i;
@@ -777,7 +777,7 @@ class be {
777
777
  var _a;
778
778
  const t = document.createElement("span");
779
779
  t.className = "og-cell-text";
780
- const s = Rt(e);
780
+ const s = Ct(e);
781
781
  if (s !== null) return t.textContent = s, t.style.cssText = "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;", t;
782
782
  const { value: i, column: o, rowIndex: n } = e;
783
783
  if (e.displayValue != null) return t.textContent = e.displayValue, t.style.cssText = "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;", t;
@@ -806,7 +806,7 @@ class oi {
806
806
  render(e) {
807
807
  const t = document.createElement("span");
808
808
  t.className = "og-cell-number";
809
- const s = Rt(e);
809
+ const s = Ct(e);
810
810
  if (s !== null) return t.textContent = s, t.style.cssText = "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;width:100%;text-align:right;", t;
811
811
  if (e.displayFormatter) {
812
812
  const i = e.displayFormatter(e.value, e.column.field ?? "", e.row);
@@ -820,10 +820,10 @@ class ri {
820
820
  const t = document.createElement("span");
821
821
  t.className = "og-cell-date";
822
822
  const s = e.displayFormatter ? e.displayFormatter(e.value, e.column.field ?? "", e.row) : null;
823
- return s != null ? t.textContent = s : t.textContent = Mt(e.value, e.column.format, e.column.field, e.row), t.style.cssText = "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;", t;
823
+ return s != null ? t.textContent = s : t.textContent = Rt(e.value, e.column.format, e.column.field, e.row), t.style.cssText = "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;", t;
824
824
  }
825
825
  }
826
- class kt {
826
+ class Mt {
827
827
  render(e) {
828
828
  const t = document.createElement("span");
829
829
  t.className = "og-cell-checkbox", t.style.cssText = "display:flex;align-items:center;justify-content:center;height:100%;";
@@ -946,13 +946,13 @@ class ui {
946
946
  const c = Math.max(...s, 1), h = Math.min(...s, 0), u = c - h || 1, g = s.length;
947
947
  if (a === "bar") {
948
948
  const p = i / g;
949
- s.forEach((f, m) => {
950
- const _ = (f - h) / u * (o - 2);
951
- d.fillStyle = n, d.fillRect(m * p + 1, o - _ - 1, p - 2, _);
949
+ s.forEach((_, m) => {
950
+ const f = (_ - h) / u * (o - 2);
951
+ d.fillStyle = n, d.fillRect(m * p + 1, o - f - 1, p - 2, f);
952
952
  });
953
953
  } else {
954
- const p = s.map((f, m) => ({ x: m / (g - 1 || 1) * i, y: o - (f - h) / u * (o - 4) - 2 }));
955
- a === "area" && (d.fillStyle = n + "33", d.beginPath(), d.moveTo(p[0].x, o), p.forEach((f) => d.lineTo(f.x, f.y)), d.lineTo(p[p.length - 1].x, o), d.closePath(), d.fill()), d.strokeStyle = n, d.lineWidth = 1.5, d.beginPath(), p.forEach((f, m) => m === 0 ? d.moveTo(f.x, f.y) : d.lineTo(f.x, f.y)), d.stroke();
954
+ const p = s.map((_, m) => ({ x: m / (g - 1 || 1) * i, y: o - (_ - h) / u * (o - 4) - 2 }));
955
+ a === "area" && (d.fillStyle = n + "33", d.beginPath(), d.moveTo(p[0].x, o), p.forEach((_) => d.lineTo(_.x, _.y)), d.lineTo(p[p.length - 1].x, o), d.closePath(), d.fill()), d.strokeStyle = n, d.lineWidth = 1.5, d.beginPath(), p.forEach((_, m) => m === 0 ? d.moveTo(_.x, _.y) : d.lineTo(_.x, _.y)), d.stroke();
956
956
  }
957
957
  }
958
958
  return t.appendChild(l), t;
@@ -1023,7 +1023,7 @@ class wi {
1023
1023
  }
1024
1024
  }
1025
1025
  const yi = ["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232"], vi = "2331112";
1026
- function Et(r) {
1026
+ function kt(r) {
1027
1027
  let e = "", t = true;
1028
1028
  for (const s of r) e += (t ? "1" : "0").repeat(+s), t = !t;
1029
1029
  return e;
@@ -1036,7 +1036,7 @@ function bi(r) {
1036
1036
  }
1037
1037
  let t = 104;
1038
1038
  for (let s = 1; s < e.length; s++) t += e[s] * s;
1039
- return e.push(t % 103), e.map((s) => Et(yi[s])).join("") + Et(vi) + "11";
1039
+ return e.push(t % 103), e.map((s) => kt(yi[s])).join("") + kt(vi) + "11";
1040
1040
  }
1041
1041
  class xi {
1042
1042
  render(e) {
@@ -1057,22 +1057,22 @@ function Ci(r, e) {
1057
1057
  } else l += s, a++;
1058
1058
  return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${o.toFixed(2)} ${e}" width="${o.toFixed(2)}" height="${e}" style="display:block" aria-hidden="true"><g fill="currentColor">${n.join("")}</g></svg>`;
1059
1059
  }
1060
- const St = /* @__PURE__ */ new Map();
1061
- function G(r, e) {
1062
- St.set(r, e);
1060
+ const Et = /* @__PURE__ */ new Map();
1061
+ function q(r, e) {
1062
+ Et.set(r, e);
1063
1063
  }
1064
- G("number", () => new oi()), G("date", () => new ri()), G("boolean", () => new kt()), G("checkbox", () => new kt()), G("radio", () => new fi()), G("img", () => new _i()), G("html", () => new wi()), G("barcode", () => new xi()), G("switch", () => new pi()), G("select", (r) => new ii(r.options ?? [], r.optionsFn)), G("button", (r, e) => new ni(e)), G("link", (r, e) => new li(e == null ? void 0 : e.hrefFn, e == null ? void 0 : e.target)), G("badge", (r, e) => new ai(e == null ? void 0 : e.colorMap, e ? e.labelMap ?? e.valueMap : void 0)), G("image", (r, e) => e ? new ci(e) : new be()), G("progress", (r, e) => e ? new hi(e) : new be()), G("sparkline", (r, e) => e ? new ui(e) : new be()), G("rating", (r, e) => e ? new gi(e) : new be()), G("template", (r, e) => e ? new di(e.templateFn) : new be());
1064
+ q("number", () => new oi()), q("date", () => new ri()), q("boolean", () => new Mt()), q("checkbox", () => new Mt()), q("radio", () => new fi()), q("img", () => new _i()), q("html", () => new wi()), q("barcode", () => new xi()), q("switch", () => new pi()), q("select", (r) => new ii(r.options ?? [], r.optionsFn)), q("button", (r, e) => new ni(e)), q("link", (r, e) => new li(e == null ? void 0 : e.hrefFn, e == null ? void 0 : e.target)), q("badge", (r, e) => new ai(e == null ? void 0 : e.colorMap, e ? e.labelMap ?? e.valueMap : void 0)), q("image", (r, e) => e ? new ci(e) : new be()), q("progress", (r, e) => e ? new hi(e) : new be()), q("sparkline", (r, e) => e ? new ui(e) : new be()), q("rating", (r, e) => e ? new gi(e) : new be()), q("template", (r, e) => e ? new di(e.templateFn) : new be());
1065
1065
  function Ri(r) {
1066
1066
  const e = r.renderer;
1067
1067
  let t, s;
1068
1068
  e ? typeof e == "string" ? (t = e, s = void 0) : (t = e.type, s = e) : (t = String(r.type ?? ""), s = void 0);
1069
- const i = St.get(t);
1069
+ const i = Et.get(t);
1070
1070
  return i ? i(r, s) : new be();
1071
1071
  }
1072
1072
  const Mi = { "#ERR": "formulaError.err", "#REF": "formulaError.ref", "#CYCLE": "formulaError.cycle", "#DIV0": "formulaError.div0", "#NAME": "formulaError.name", "#VALUE": "formulaError.value", "#NUM": "formulaError.num" };
1073
1073
  class ki {
1074
1074
  constructor(e, t, s, i) {
1075
- this._cellMap = /* @__PURE__ */ new Map(), this._root = e, this._opts = t, this._cbs = s, this._ap = i ?? new Ye(new ze(t.theme ?? "default")), this._header = T("div", "og-header"), this._header.style.cssText = `flex-shrink:0;overflow-x:auto;overflow-y:hidden;border:0;border-bottom:${this._ap.divider()};scrollbar-width:none;`, this._bodyWrap = T("div", "og-body-wrapper"), this._bodyWrap.style.cssText = "flex:1;overflow:auto;position:relative;", this._bodyWrap.style.setProperty("--scrollbar-size", "8px"), this._body = T("div", "og-body"), this._body.style.cssText = "position:relative;", this._bodyWrap.appendChild(this._body), e.appendChild(this._header), e.appendChild(this._bodyWrap), this._bodyWrap.addEventListener("scroll", () => {
1075
+ this._cellMap = /* @__PURE__ */ new Map(), this._root = e, this._opts = t, this._cbs = s, this._ap = i ?? new qe(new Oe(t.theme ?? "default")), this._header = T("div", "og-header"), this._header.style.cssText = `flex-shrink:0;overflow-x:auto;overflow-y:hidden;border:0;border-bottom:${this._ap.divider()};scrollbar-width:none;`, this._bodyWrap = T("div", "og-body-wrapper"), this._bodyWrap.style.cssText = "flex:1;overflow:auto;position:relative;", this._bodyWrap.style.setProperty("--scrollbar-size", "8px"), this._body = T("div", "og-body"), this._body.style.cssText = "position:relative;", this._bodyWrap.appendChild(this._body), e.appendChild(this._header), e.appendChild(this._bodyWrap), this._bodyWrap.addEventListener("scroll", () => {
1076
1076
  this._header.scrollLeft = this._bodyWrap.scrollLeft;
1077
1077
  }, { passive: true });
1078
1078
  }
@@ -1080,7 +1080,7 @@ class ki {
1080
1080
  return this._bodyWrap;
1081
1081
  }
1082
1082
  _t(e, t) {
1083
- return this._cbs.t ? this._cbs.t(e, t) : B(e, t);
1083
+ return this._cbs.t ? this._cbs.t(e, t) : $(e, t);
1084
1084
  }
1085
1085
  updateSize(e, t) {
1086
1086
  this._bodyWrap.style.height = `${e - t}px`;
@@ -1094,299 +1094,299 @@ class ki {
1094
1094
  const n = this._ap, a = o._frozenCount ?? 0, l = !!((_a = o.masterDetail) == null ? void 0 : _a.enabled) && (((_b = o.masterDetail) == null ? void 0 : _b.toggle) ?? "expander-col") === "expander-col", d = 28;
1095
1095
  let c = 0;
1096
1096
  o.stateColumn && (c += 24), o.draggable && (c += 18), o.rowNumber && (c += 44), o.checkColumn && (c += 36), l && (c += d);
1097
- const h = c + t.reduce((m, _, w) => m + (s[w] ?? o.defaultColumnWidth), 0);
1097
+ const h = c + t.reduce((m, f, w) => m + (s[w] ?? o.defaultColumnWidth), 0);
1098
1098
  this._header.style.background = "var(--og-header-bg,#f5f5f5)";
1099
1099
  const u = T("table", "og-header-table");
1100
1100
  u.setAttribute("role", "presentation"), u.style.cssText = `table-layout:fixed;border-collapse:collapse;border-spacing:0;margin:0;width:${h}px;background:var(--og-header-bg,#f5f5f5);`;
1101
1101
  const g = e.length;
1102
1102
  let p = 0;
1103
- const f = (m, _, w, y = "") => {
1103
+ const _ = (m, f, w, y = "") => {
1104
1104
  const R = T("th", `og-header-cell og-extra-col ${y}`);
1105
- R.setAttribute("rowspan", String(g)), R.textContent = w, At(R, { width: `${_}px`, minWidth: `${_}px`, textAlign: "center", borderRight: n.border(), borderBottom: n.border(), borderTop: "0", borderLeft: "0", lineHeight: "normal", verticalAlign: "middle", padding: "0", fontSize: "11px", color: "#999", userSelect: "none", boxSizing: "border-box", background: "var(--og-header-bg,#f5f5f5)" }), a > 0 && (R.style.position = "sticky", R.style.left = `${p}px`, R.style.zIndex = "4"), p += _, m.appendChild(R);
1105
+ R.setAttribute("rowspan", String(g)), R.textContent = w, Ft(R, { width: `${f}px`, minWidth: `${f}px`, textAlign: "center", borderRight: n.border(), borderBottom: n.border(), borderTop: "0", borderLeft: "0", lineHeight: "normal", verticalAlign: "middle", padding: "0", fontSize: "11px", color: "#999", userSelect: "none", boxSizing: "border-box", background: "var(--og-header-bg,#f5f5f5)" }), a > 0 && (R.style.position = "sticky", R.style.left = `${p}px`, R.style.zIndex = "4"), p += f, m.appendChild(R);
1106
1106
  };
1107
1107
  for (let m = 0; m < e.length; m++) {
1108
- const _ = T("tr", "og-header-row");
1109
- if (_.style.height = `${o.headerHeight}px`, m === 0) {
1110
- if (o.stateColumn && f(_, 24, ""), o.draggable && f(_, 18, ""), o.rowNumber && f(_, 44, "No"), o.checkColumn) {
1108
+ const f = T("tr", "og-header-row");
1109
+ if (f.style.height = `${o.headerHeight}px`, m === 0) {
1110
+ if (o.stateColumn && _(f, 24, ""), o.draggable && _(f, 18, ""), o.rowNumber && _(f, 44, "No"), o.checkColumn) {
1111
1111
  const w = T("th", "og-header-cell og-extra-col");
1112
1112
  w.setAttribute("rowspan", String(g)), w.style.cssText = `width:36px;min-width:36px;text-align:center;border-right:${n.border()};border-bottom:${n.border()};border-top:0;border-left:0;line-height:normal;vertical-align:middle;background:var(--og-header-bg,#f5f5f5);box-sizing:border-box;`, a > 0 && (w.style.position = "sticky", w.style.left = `${p}px`, w.style.zIndex = "4"), p += 36;
1113
1113
  const y = document.createElement("input");
1114
- y.type = "checkbox", y.setAttribute("aria-label", this._t("row.selectAllAria")), y.style.cssText = "width:16px;height:16px;", y.addEventListener("change", () => this._cbs.onAllCheck(y.checked)), w.appendChild(y), _.appendChild(w);
1114
+ y.type = "checkbox", y.setAttribute("aria-label", this._t("row.selectAllAria")), y.style.cssText = "width:16px;height:16px;", y.addEventListener("change", () => this._cbs.onAllCheck(y.checked)), w.appendChild(y), f.appendChild(w);
1115
1115
  }
1116
- l && f(_, d, "", "og-detail-toggle-col");
1116
+ l && _(f, d, "", "og-detail-toggle-col");
1117
1117
  }
1118
1118
  for (const w of e[m] ?? []) {
1119
1119
  const y = T("th", "og-header-cell"), R = w.column;
1120
1120
  w.colSpan > 1 && (y.colSpan = w.colSpan), w.rowSpan > 1 && (y.rowSpan = w.rowSpan);
1121
- const A = w.colSpan === 1 ? t.findIndex((M) => M.field === R.field) : -1;
1121
+ const F = w.colSpan === 1 ? t.findIndex((M) => M.field === R.field) : -1;
1122
1122
  if (w.colSpan === 1) {
1123
- const M = A >= 0 ? s[A] ?? o.defaultColumnWidth : R.width ?? o.defaultColumnWidth;
1123
+ const M = F >= 0 ? s[F] ?? o.defaultColumnWidth : R.width ?? o.defaultColumnWidth;
1124
1124
  y.style.width = `${M}px`, y.style.minWidth = `${M}px`;
1125
1125
  }
1126
- const S = i.find((M) => M.field === R.field), O = R.sortable !== false && o.sortable && w.colSpan === 1;
1127
- if (y.setAttribute("role", "columnheader"), y.setAttribute("scope", "col"), O && (y.setAttribute("aria-sort", S ? S.dir === "asc" ? "ascending" : "descending" : "none"), y.tabIndex = A === 0 ? 0 : -1, y.addEventListener("keydown", (M) => {
1126
+ const S = i.find((M) => M.field === R.field), B = R.sortable !== false && o.sortable && w.colSpan === 1;
1127
+ if (y.setAttribute("role", "columnheader"), y.setAttribute("scope", "col"), B && (y.setAttribute("aria-sort", S ? S.dir === "asc" ? "ascending" : "descending" : "none"), y.tabIndex = F === 0 ? 0 : -1, y.addEventListener("keydown", (M) => {
1128
1128
  if (M.key === "Enter" || M.key === " ") M.preventDefault(), this._cbs.onHeaderClick(R.field, M.shiftKey);
1129
1129
  else if (M.key === "ArrowRight") {
1130
1130
  M.preventDefault();
1131
- const L = y.nextElementSibling;
1132
- (L == null ? void 0 : L.tagName) === "TH" && L.focus();
1131
+ const A = y.nextElementSibling;
1132
+ (A == null ? void 0 : A.tagName) === "TH" && A.focus();
1133
1133
  } else if (M.key === "ArrowLeft") {
1134
1134
  M.preventDefault();
1135
- const L = y.previousElementSibling;
1136
- (L == null ? void 0 : L.tagName) === "TH" && L.focus();
1135
+ const A = y.previousElementSibling;
1136
+ (A == null ? void 0 : A.tagName) === "TH" && A.focus();
1137
1137
  }
1138
- })), A >= 0 && A < a) {
1138
+ })), F >= 0 && F < a) {
1139
1139
  let M = 0;
1140
1140
  o.stateColumn && (M += 24), o.draggable && (M += 18), o.rowNumber && (M += 44), o.checkColumn && (M += 36), l && (M += d);
1141
- for (let L = 0; L < A; L++) M += s[L] ?? o.defaultColumnWidth;
1142
- y.classList.add("og-frozen"), A === a - 1 && y.classList.add("og-frozen-last"), y.style.left = `${M}px`;
1141
+ for (let A = 0; A < F; A++) M += s[A] ?? o.defaultColumnWidth;
1142
+ y.classList.add("og-frozen"), F === a - 1 && y.classList.add("og-frozen-last"), y.style.left = `${M}px`;
1143
1143
  }
1144
- const z = R.header ?? R.field, $ = typeof z == "string" && z.indexOf(`
1145
- `) >= 0, C = R.headerWrap === true || $;
1146
- At(y, { padding: "4px 8px", boxSizing: "border-box", background: "var(--og-header-bg)", color: "var(--og-header-color)", lineHeight: C ? "1.3" : "normal", verticalAlign: "middle", fontSize: "var(--og-font-size)", textAlign: R.headerAlign ?? "center", borderTop: "0", borderLeft: "0", borderRight: n.border(), borderBottom: n.border(), userSelect: "none", cursor: O ? "pointer" : "default", whiteSpace: C ? "normal" : "nowrap", overflow: C ? "visible" : "hidden", textOverflow: C ? "clip" : "ellipsis", wordBreak: C ? "break-word" : "normal", position: "relative" }), y.title = (typeof R.tooltip == "string" ? R.tooltip : z) ?? "";
1147
- const E = T("span");
1148
- if (C ? (E.style.cssText = "overflow:visible;text-overflow:clip;white-space:normal;word-break:break-word;", String(z).split(`
1149
- `).forEach((L, K) => {
1150
- K > 0 && E.appendChild(document.createElement("br")), E.appendChild(document.createTextNode(L));
1151
- })) : (E.textContent = z, E.style.cssText = "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"), y.appendChild(E), S) {
1144
+ const D = R.header ?? R.field, z = typeof D == "string" && D.indexOf(`
1145
+ `) >= 0, C = R.headerWrap === true || z;
1146
+ Ft(y, { padding: "4px 8px", boxSizing: "border-box", background: "var(--og-header-bg)", color: "var(--og-header-color)", lineHeight: C ? "1.3" : "normal", verticalAlign: "middle", fontSize: "var(--og-font-size)", textAlign: R.headerAlign ?? "center", borderTop: "0", borderLeft: "0", borderRight: n.border(), borderBottom: n.border(), userSelect: "none", cursor: B ? "pointer" : "default", whiteSpace: C ? "normal" : "nowrap", overflow: C ? "visible" : "hidden", textOverflow: C ? "clip" : "ellipsis", wordBreak: C ? "break-word" : "normal", position: "relative" }), y.title = (typeof R.tooltip == "string" ? R.tooltip : D) ?? "";
1147
+ const I = T("span");
1148
+ if (C ? (I.style.cssText = "overflow:visible;text-overflow:clip;white-space:normal;word-break:break-word;", String(D).split(`
1149
+ `).forEach((A, K) => {
1150
+ K > 0 && I.appendChild(document.createElement("br")), I.appendChild(document.createTextNode(A));
1151
+ })) : (I.textContent = D, I.style.cssText = "overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"), y.appendChild(I), S) {
1152
1152
  y.classList.add("og-sorted");
1153
1153
  const M = T("span", "og-sort-icon");
1154
1154
  M.textContent = S.dir === "asc" ? " ↑" : " ↓", y.appendChild(M);
1155
1155
  }
1156
1156
  if (R.filterable !== false && o.filterable && w.colSpan === 1) {
1157
- const M = T("span", "og-filter-icon"), L = (((_d = (_c = o._activeFilters) == null ? void 0 : _c[R.field]) == null ? void 0 : _d.length) ?? 0) > 0;
1158
- M.textContent = L ? "⊿" : "▿", M.title = this._t("grid.filterTooltip"), M.style.cssText = "margin-left:3px;cursor:pointer;font-size:10px;opacity:0.6;", L && M.classList.add("og-filter-icon--active"), M.addEventListener("click", (K) => {
1157
+ const M = T("span", "og-filter-icon"), A = (((_d = (_c = o._activeFilters) == null ? void 0 : _c[R.field]) == null ? void 0 : _d.length) ?? 0) > 0;
1158
+ M.textContent = A ? "⊿" : "▿", M.title = this._t("grid.filterTooltip"), M.style.cssText = "margin-left:3px;cursor:pointer;font-size:10px;opacity:0.6;", A && M.classList.add("og-filter-icon--active"), M.addEventListener("click", (K) => {
1159
1159
  K.stopPropagation(), this._cbs.onFilterIconClick(R.field, M);
1160
1160
  }), y.appendChild(M);
1161
1161
  }
1162
1162
  if (R.resizable !== false) {
1163
1163
  const M = T("div", "og-resize-handle");
1164
1164
  M.style.cssText = "position:absolute;right:0;top:0;bottom:0;width:4px;cursor:col-resize;z-index:1;", y.appendChild(M);
1165
- const L = A;
1165
+ const A = F;
1166
1166
  Ei(M, y, (K) => {
1167
- L >= 0 && this._cbs.onColResize(L, K);
1167
+ A >= 0 && this._cbs.onColResize(A, K);
1168
1168
  });
1169
1169
  }
1170
- o.columnReorder && A >= 0 && w.colSpan === 1 && (y.draggable = true, y.addEventListener("dragstart", (M) => {
1170
+ o.columnReorder && F >= 0 && w.colSpan === 1 && (y.draggable = true, y.addEventListener("dragstart", (M) => {
1171
1171
  var _a2;
1172
- this._cbs.onColDragStart(A), y.classList.add("og-col-dragging"), (_a2 = M.dataTransfer) == null ? void 0 : _a2.setData("text/plain", String(A));
1172
+ this._cbs.onColDragStart(F), y.classList.add("og-col-dragging"), (_a2 = M.dataTransfer) == null ? void 0 : _a2.setData("text/plain", String(F));
1173
1173
  }), y.addEventListener("dragend", () => {
1174
1174
  y.classList.remove("og-col-dragging"), this._header.querySelectorAll(".og-col-drop-over").forEach((M) => M.classList.remove("og-col-drop-over"));
1175
1175
  }), y.addEventListener("dragover", (M) => {
1176
1176
  M.preventDefault();
1177
- const L = this._cbs.getColDragIdx();
1178
- L !== null && L !== A && (this._header.querySelectorAll(".og-col-drop-over").forEach((K) => K.classList.remove("og-col-drop-over")), y.classList.add("og-col-drop-over"));
1177
+ const A = this._cbs.getColDragIdx();
1178
+ A !== null && A !== F && (this._header.querySelectorAll(".og-col-drop-over").forEach((K) => K.classList.remove("og-col-drop-over")), y.classList.add("og-col-drop-over"));
1179
1179
  }), y.addEventListener("dragleave", () => {
1180
1180
  y.classList.remove("og-col-drop-over");
1181
1181
  }), y.addEventListener("drop", (M) => {
1182
- M.preventDefault(), y.classList.remove("og-col-drop-over"), this._cbs.onColDrop(A);
1183
- })), O && y.addEventListener("click", (M) => {
1182
+ M.preventDefault(), y.classList.remove("og-col-drop-over"), this._cbs.onColDrop(F);
1183
+ })), B && y.addEventListener("click", (M) => {
1184
1184
  M.target.classList.contains("og-resize-handle") || this._cbs.onHeaderClick(R.field, M.shiftKey);
1185
- }), _.appendChild(y);
1185
+ }), f.appendChild(y);
1186
1186
  }
1187
- u.appendChild(_);
1187
+ u.appendChild(f);
1188
1188
  }
1189
1189
  this._header.appendChild(u);
1190
1190
  }
1191
1191
  renderBody(e) {
1192
1192
  var _a, _b, _c, _d, _e2, _f, _g, _h, _i2, _j, _k, _l, _m, _n, _o2, _p, _q, _r2;
1193
- const { startIndex: t, endIndex: s, data: i, leaves: o, widths: n, offsetY: a, totalHeight: l, selectedRows: d, checkedRows: c, groupFlatRows: h = null, onGroupToggle: u, onTreeToggle: g, extraOpts: p = {}, mergeEngine: f, detailApi: m } = e;
1194
- let _ = e.opts;
1193
+ const { startIndex: t, endIndex: s, data: i, leaves: o, widths: n, offsetY: a, totalHeight: l, selectedRows: d, checkedRows: c, groupFlatRows: h = null, onGroupToggle: u, onTreeToggle: g, extraOpts: p = {}, mergeEngine: _, detailApi: m } = e;
1194
+ let f = e.opts;
1195
1195
  const w = this._ap;
1196
- Object.keys(p).length && (_ = { ..._, ...p }), m == null ? void 0 : m.onBeforeTeardown(), this._body.innerHTML = "", this._cellMap.clear();
1197
- const y = _.autoHeight === true;
1196
+ Object.keys(p).length && (f = { ...f, ...p }), m == null ? void 0 : m.onBeforeTeardown(), this._body.innerHTML = "", this._cellMap.clear();
1197
+ const y = f.autoHeight === true;
1198
1198
  this._body.classList.toggle("og-autoheight", y), this._body.style.height = y ? "" : `${l}px`;
1199
- const R = _._frozenCount ?? 0, A = !!m && (m.toggleMode ?? "expander-col") === "expander-col", S = 28;
1200
- let O = 0;
1201
- _.stateColumn && (O += 24), _.draggable && (O += 18), _.rowNumber && (O += 44), _.checkColumn && (O += 36), A && (O += S);
1202
- const z = O + o.reduce((C, E, W) => C + (n[W] ?? _.defaultColumnWidth), 0);
1203
- if (this._body.style.minWidth = `${z}px`, s < t) return;
1204
- const $ = document.createDocumentFragment();
1199
+ const R = f._frozenCount ?? 0, F = !!m && (m.toggleMode ?? "expander-col") === "expander-col", S = 28;
1200
+ let B = 0;
1201
+ f.stateColumn && (B += 24), f.draggable && (B += 18), f.rowNumber && (B += 44), f.checkColumn && (B += 36), F && (B += S);
1202
+ const D = B + o.reduce((C, I, ee) => C + (n[ee] ?? f.defaultColumnWidth), 0);
1203
+ if (this._body.style.minWidth = `${D}px`, s < t) return;
1204
+ const z = document.createDocumentFragment();
1205
1205
  if (h && m) for (let C = t - 1; C >= 0; C--) {
1206
- const E = h[C];
1207
- if (!(E && E._isDetailFiller === true)) {
1208
- if (E && E._isDetailHead === true && C + E._span - 1 >= t) {
1209
- const W = a + (C - t) * _.rowHeight;
1210
- this._appendDetailPanel($, E._rowId, W, E._span * _.rowHeight, z, m);
1206
+ const I = h[C];
1207
+ if (!(I && I._isDetailFiller === true)) {
1208
+ if (I && I._isDetailHead === true && C + I._span - 1 >= t) {
1209
+ const ee = a + (C - t) * f.rowHeight;
1210
+ this._appendDetailPanel(z, I._rowId, ee, I._span * f.rowHeight, D, m);
1211
1211
  }
1212
1212
  break;
1213
1213
  }
1214
1214
  }
1215
1215
  for (let C = t; C <= s; C++) {
1216
- const E = h ? h[C] : null;
1217
- if (E && E._isDetailFiller === true) continue;
1218
- if (E && E._isDetailHead === true && m) {
1219
- const x = E, F = a + (C - t) * _.rowHeight;
1220
- this._appendDetailPanel($, x._rowId, F, x._span * _.rowHeight, z, m);
1216
+ const I = h ? h[C] : null;
1217
+ if (I && I._isDetailFiller === true) continue;
1218
+ if (I && I._isDetailHead === true && m) {
1219
+ const x = I, E = a + (C - t) * f.rowHeight;
1220
+ this._appendDetailPanel(z, x._rowId, E, x._span * f.rowHeight, D, m);
1221
1221
  continue;
1222
1222
  }
1223
- if (E && E._isDetailHead === true) continue;
1224
- const W = E && E._isGroup === true, M = E && E._isTree === true;
1225
- if (W) {
1226
- const x = E, F = `__${x._groupField}:${x._groupValue}`, V = T("div", "og-group-row"), ce = a + (C - t) * _.rowHeight;
1227
- V.style.cssText = [y ? "" : `top:${ce}px;height:${_.rowHeight}px;`, "display:flex;align-items:stretch;cursor:pointer;", `padding-left:${4 + x._depth * 12}px;`, "background:var(--og-header-bg,#f5f5f5);", `border:0;border-bottom:${w.divider()};`].join(""), V.setAttribute("role", "row"), V.setAttribute("aria-expanded", x._expanded ? "true" : "false"), V.setAttribute("aria-rowindex", String(C + 1)), V.setAttribute("aria-level", String(x._depth + 1));
1228
- let U = 0;
1229
- if (_.stateColumn && (U += 24), _.draggable && (U += 18), _.rowNumber && (U += 44), _.checkColumn && (U += 36), A && (U += S), U > 0) {
1223
+ if (I && I._isDetailHead === true) continue;
1224
+ const ee = I && I._isGroup === true, M = I && I._isTree === true;
1225
+ if (ee) {
1226
+ const x = I, E = `__${x._groupField}:${x._groupValue}`, N = T("div", "og-group-row"), ce = a + (C - t) * f.rowHeight;
1227
+ N.style.cssText = [y ? "" : `top:${ce}px;height:${f.rowHeight}px;`, "display:flex;align-items:stretch;cursor:pointer;", `padding-left:${4 + x._depth * 12}px;`, "background:var(--og-header-bg,#f5f5f5);", `border:0;border-bottom:${w.divider()};`].join(""), N.setAttribute("role", "row"), N.setAttribute("aria-expanded", x._expanded ? "true" : "false"), N.setAttribute("aria-rowindex", String(C + 1)), N.setAttribute("aria-level", String(x._depth + 1));
1228
+ let W = 0;
1229
+ if (f.stateColumn && (W += 24), f.draggable && (W += 18), f.rowNumber && (W += 44), f.checkColumn && (W += 36), F && (W += S), W > 0) {
1230
1230
  const b = T("div", "og-group-state-cell");
1231
- b.style.cssText = [`width:${U}px;min-width:${U}px;flex-shrink:0;`, "display:flex;align-items:center;justify-content:center;", "font-size:10px;font-weight:700;gap:2px;", `border-right:${w.border()};`].join("");
1232
- const q = x._states ?? { added: 0, edited: 0, removed: 0 };
1233
- if (q.added > 0) {
1231
+ b.style.cssText = [`width:${W}px;min-width:${W}px;flex-shrink:0;`, "display:flex;align-items:center;justify-content:center;", "font-size:10px;font-weight:700;gap:2px;", `border-right:${w.border()};`].join("");
1232
+ const j = x._states ?? { added: 0, edited: 0, removed: 0 };
1233
+ if (j.added > 0) {
1234
1234
  const H = T("span");
1235
- H.textContent = `+${q.added}`, H.style.cssText = `color:var(--og-row-added-bg,#2e7d32);background:#e8f5e9;padding:1px 3px;border-radius:${w.radius(3)};`, b.appendChild(H);
1235
+ H.textContent = `+${j.added}`, H.style.cssText = `color:var(--og-row-added-bg,#2e7d32);background:#e8f5e9;padding:1px 3px;border-radius:${w.radius(3)};`, b.appendChild(H);
1236
1236
  }
1237
- if (q.edited > 0) {
1237
+ if (j.edited > 0) {
1238
1238
  const H = T("span");
1239
- H.textContent = `M${q.edited}`, H.style.cssText = `color:#e65100;background:#fff8e1;padding:1px 3px;border-radius:${w.radius(3)};`, b.appendChild(H);
1239
+ H.textContent = `M${j.edited}`, H.style.cssText = `color:#e65100;background:#fff8e1;padding:1px 3px;border-radius:${w.radius(3)};`, b.appendChild(H);
1240
1240
  }
1241
- if (q.removed > 0) {
1241
+ if (j.removed > 0) {
1242
1242
  const H = T("span");
1243
- H.textContent = `D${q.removed}`, H.style.cssText = `color:var(--og-row-removed-bg,#c62828);background:#ffebee;padding:1px 3px;border-radius:${w.radius(3)};`, b.appendChild(H);
1243
+ H.textContent = `D${j.removed}`, H.style.cssText = `color:var(--og-row-removed-bg,#c62828);background:#ffebee;padding:1px 3px;border-radius:${w.radius(3)};`, b.appendChild(H);
1244
1244
  }
1245
- V.appendChild(b);
1245
+ N.appendChild(b);
1246
1246
  }
1247
1247
  let le = false;
1248
1248
  for (let b = 0; b < o.length; b++) {
1249
- const q = o[b], H = n[b] ?? _.defaultColumnWidth, Ee = x._summaryFmt !== void 0 && q.field in (x._summaryFmt ?? {}), X = T("div", "og-group-cell");
1250
- if (X.style.cssText = [`width:${H}px;min-width:${H}px;flex-shrink:0;`, `padding:${w.cellPadding()};box-sizing:border-box;overflow:hidden;`, `border-right:${w.border()};`, "display:flex;align-items:center;", "white-space:nowrap;text-overflow:ellipsis;"].join(""), Ee) {
1251
- const re = x._summaryFmt[q.field];
1252
- X.textContent = re !== "" ? re : "-", X.style.justifyContent = "flex-end", X.style.color = "var(--og-primary,#1976d2)", X.style.fontWeight = "600";
1249
+ const j = o[b], H = n[b] ?? f.defaultColumnWidth, ke = x._summaryFmt !== void 0 && j.field in (x._summaryFmt ?? {}), G = T("div", "og-group-cell");
1250
+ if (G.style.cssText = [`width:${H}px;min-width:${H}px;flex-shrink:0;`, `padding:${w.cellPadding()};box-sizing:border-box;overflow:hidden;`, `border-right:${w.border()};`, "display:flex;align-items:center;", "white-space:nowrap;text-overflow:ellipsis;"].join(""), ke) {
1251
+ const re = x._summaryFmt[j.field];
1252
+ G.textContent = re !== "" ? re : "-", G.style.justifyContent = "flex-end", G.style.color = "var(--og-primary,#1976d2)", G.style.fontWeight = "600";
1253
1253
  } else if (!le) {
1254
1254
  le = true;
1255
1255
  const re = T("span", "og-group-arrow");
1256
- re.textContent = x._expanded ? "▾ " : "▸ ", re.style.cssText = "color:var(--og-primary,#1976d2);margin-right:4px;flex-shrink:0;", X.appendChild(re);
1257
- const oe = T("span", "og-group-label");
1258
- oe.textContent = this._t("group.badge", { label: x._groupLabel, count: x._childCount }), oe.style.cssText = "overflow:hidden;text-overflow:ellipsis;font-weight:600;", X.appendChild(oe), X.style.gap = "0";
1256
+ re.textContent = x._expanded ? "▾ " : "▸ ", re.style.cssText = "color:var(--og-primary,#1976d2);margin-right:4px;flex-shrink:0;", G.appendChild(re);
1257
+ const se = T("span", "og-group-label");
1258
+ se.textContent = this._t("group.badge", { label: x._groupLabel, count: x._childCount }), se.style.cssText = "overflow:hidden;text-overflow:ellipsis;font-weight:600;", G.appendChild(se), G.style.gap = "0";
1259
1259
  }
1260
- V.appendChild(X);
1260
+ N.appendChild(G);
1261
1261
  }
1262
- V.addEventListener("click", () => u == null ? void 0 : u(F)), $.appendChild(V);
1262
+ N.addEventListener("click", () => u == null ? void 0 : u(E)), z.appendChild(N);
1263
1263
  continue;
1264
1264
  }
1265
- const L = M ? E : null, K = L ? L.data : h ? E : i.getRowByIndex(C);
1265
+ const A = M ? I : null, K = A ? A.data : h ? I : i.getRowByIndex(C);
1266
1266
  if (!K) continue;
1267
- const ie = M || W ? "none" : i.getRowState(C), P = T("div", "og-row");
1268
- if (P.setAttribute("role", "row"), P.setAttribute("aria-rowindex", String(C + 1)), !y) {
1269
- const x = a + (C - t) * _.rowHeight;
1270
- P.style.top = `${x}px`, P.style.height = `${_.rowHeight}px`;
1267
+ const ie = M || ee ? "none" : i.getRowState(C), V = T("div", "og-row");
1268
+ if (V.setAttribute("role", "row"), V.setAttribute("aria-rowindex", String(C + 1)), !y) {
1269
+ const x = a + (C - t) * f.rowHeight;
1270
+ V.style.top = `${x}px`, V.style.height = `${f.rowHeight}px`;
1271
1271
  }
1272
- let Y = C % 2 === 0 ? "var(--og-row-bg,#fff)" : "var(--og-row-alt-bg,#fafafa)";
1273
- P.style.background = Y, ie === "added" && P.classList.add("og-state-added"), ie === "edited" && P.classList.add("og-state-edited"), ie === "removed" && P.classList.add("og-state-removed"), d.has(C) && P.classList.add("og-selected"), P.setAttribute("aria-selected", d.has(C) ? "true" : "false"), ie === "added" && (Y = "var(--og-row-added-bg,#e8f5e9)"), ie === "edited" && (Y = "var(--og-row-edited-bg,#fff8e1)"), ie === "removed" && (Y = "var(--og-row-removed-bg,#ffebee)"), d.has(C) && (Y = "var(--og-row-selected-bg,#bbdefb)");
1274
- const ke = C;
1275
- P.addEventListener("click", (x) => {
1276
- this._cbs.onCellClick(ke, -1, x);
1272
+ let X = C % 2 === 0 ? "var(--og-row-bg,#fff)" : "var(--og-row-alt-bg,#fafafa)";
1273
+ V.style.background = X, ie === "added" && V.classList.add("og-state-added"), ie === "edited" && V.classList.add("og-state-edited"), ie === "removed" && V.classList.add("og-state-removed"), d.has(C) && V.classList.add("og-selected"), V.setAttribute("aria-selected", d.has(C) ? "true" : "false"), ie === "added" && (X = "var(--og-row-added-bg,#e8f5e9)"), ie === "edited" && (X = "var(--og-row-edited-bg,#fff8e1)"), ie === "removed" && (X = "var(--og-row-removed-bg,#ffebee)"), d.has(C) && (X = "var(--og-row-selected-bg,#bbdefb)");
1274
+ const As = C;
1275
+ V.addEventListener("click", (x) => {
1276
+ this._cbs.onCellClick(As, -1, x);
1277
1277
  });
1278
- const Oe = /* @__PURE__ */ new Map();
1279
- let te = 0;
1280
- if (_.stateColumn) {
1281
- const x = T("div", "og-cell og-col-state"), F = { added: "✚", edited: "✎", removed: "✖", none: "" }, V = { added: "#2e7d32", edited: "#bf360c", removed: "#c62828", none: "" };
1282
- x.textContent = F[ie] ?? "", x.style.color = V[ie] ?? "", x.title = ie, R > 0 && (x.style.position = "sticky", x.style.left = `${te}px`, x.style.zIndex = "2", x.style.background = Y), te += 24, P.appendChild(x);
1278
+ const ut = /* @__PURE__ */ new Map();
1279
+ let oe = 0;
1280
+ if (f.stateColumn) {
1281
+ const x = T("div", "og-cell og-col-state"), E = { added: "✚", edited: "✎", removed: "✖", none: "" }, N = { added: "#2e7d32", edited: "#bf360c", removed: "#c62828", none: "" };
1282
+ x.textContent = E[ie] ?? "", x.style.color = N[ie] ?? "", x.title = ie, R > 0 && (x.style.position = "sticky", x.style.left = `${oe}px`, x.style.zIndex = "2", x.style.background = X), oe += 24, V.appendChild(x);
1283
1283
  }
1284
- const gt = this._cbs.getDndManager();
1285
- if (_.draggable && gt) {
1286
- const x = gt.attachHandle(P, C, _._totalRows ?? s + 1);
1287
- R > 0 && (x.style.position = "sticky", x.style.left = `${te}px`, x.style.zIndex = "2", x.style.background = Y), te += 18, P.appendChild(x);
1284
+ const pt = this._cbs.getDndManager();
1285
+ if (f.draggable && pt) {
1286
+ const x = pt.attachHandle(V, C, f._totalRows ?? s + 1);
1287
+ R > 0 && (x.style.position = "sticky", x.style.left = `${oe}px`, x.style.zIndex = "2", x.style.background = X), oe += 18, V.appendChild(x);
1288
1288
  }
1289
- if (_.rowNumber) {
1289
+ if (f.rowNumber) {
1290
1290
  const x = T("div", "og-cell og-col-rownum");
1291
- x.textContent = String(C + 1), R > 0 && (x.style.position = "sticky", x.style.left = `${te}px`, x.style.zIndex = "2", x.style.background = Y), te += 44, P.appendChild(x);
1291
+ x.textContent = String(C + 1), R > 0 && (x.style.position = "sticky", x.style.left = `${oe}px`, x.style.zIndex = "2", x.style.background = X), oe += 44, V.appendChild(x);
1292
1292
  }
1293
- if (_.checkColumn) {
1294
- const x = T("div", "og-cell og-col-check"), F = document.createElement("input");
1295
- F.type = "checkbox", F.checked = c.has(C), F.setAttribute("aria-label", this._t("row.selectAria", { n: C + 1 })), F.addEventListener("click", (V) => V.stopPropagation()), F.addEventListener("change", (V) => {
1296
- V.stopPropagation(), this._cbs.onRowCheck(C, F.checked);
1297
- }), x.appendChild(F), R > 0 && (x.style.position = "sticky", x.style.left = `${te}px`, x.style.zIndex = "2", x.style.background = Y), te += 36, P.appendChild(x);
1293
+ if (f.checkColumn) {
1294
+ const x = T("div", "og-cell og-col-check"), E = document.createElement("input");
1295
+ E.type = "checkbox", E.checked = c.has(C), E.setAttribute("aria-label", this._t("row.selectAria", { n: C + 1 })), E.addEventListener("click", (N) => N.stopPropagation()), E.addEventListener("change", (N) => {
1296
+ N.stopPropagation(), this._cbs.onRowCheck(C, E.checked);
1297
+ }), x.appendChild(E), R > 0 && (x.style.position = "sticky", x.style.left = `${oe}px`, x.style.zIndex = "2", x.style.background = X), oe += 36, V.appendChild(x);
1298
1298
  }
1299
- if (A) {
1299
+ if (F) {
1300
1300
  const x = T("div", "og-cell og-col-detail-toggle");
1301
1301
  x.style.cssText = "display:flex;align-items:center;justify-content:center;flex-shrink:0;box-sizing:border-box;";
1302
- const F = m.getRowId(K), V = !!F && m.isExpanded(F), ce = m.getGlyph(V), U = T("span", "og-detail-expander");
1303
- U.textContent = ce.glyph, U.title = ce.title, U.setAttribute("role", "button"), U.setAttribute("tabindex", "0"), U.setAttribute("aria-label", ce.ariaLabel), F && U.setAttribute("aria-controls", `og-detail-${F}`), U.style.cssText = "cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;user-select:none;line-height:1;";
1304
- const le = F, b = C, q = (H) => {
1302
+ const E = m.getRowId(K), N = !!E && m.isExpanded(E), ce = m.getGlyph(N), W = T("span", "og-detail-expander");
1303
+ W.textContent = ce.glyph, W.title = ce.title, W.setAttribute("role", "button"), W.setAttribute("tabindex", "0"), W.setAttribute("aria-label", ce.ariaLabel), E && W.setAttribute("aria-controls", `og-detail-${E}`), W.style.cssText = "cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;user-select:none;line-height:1;";
1304
+ const le = E, b = C, j = (H) => {
1305
1305
  H.stopPropagation(), le && m.onToggle(b, le);
1306
1306
  };
1307
- U.addEventListener("click", q), U.addEventListener("keydown", (H) => {
1308
- (H.key === "Enter" || H.key === " ") && (H.preventDefault(), q(H));
1309
- }), x.appendChild(U), R > 0 && (x.style.position = "sticky", x.style.left = `${te}px`, x.style.zIndex = "2", x.style.background = Y), x.style.width = `${S}px`, x.style.minWidth = `${S}px`, te += S, P.appendChild(x), F && P.setAttribute("aria-expanded", V ? "true" : "false");
1307
+ W.addEventListener("click", j), W.addEventListener("keydown", (H) => {
1308
+ (H.key === "Enter" || H.key === " ") && (H.preventDefault(), j(H));
1309
+ }), x.appendChild(W), R > 0 && (x.style.position = "sticky", x.style.left = `${oe}px`, x.style.zIndex = "2", x.style.background = X), x.style.width = `${S}px`, x.style.minWidth = `${S}px`, oe += S, V.appendChild(x), E && V.setAttribute("aria-expanded", N ? "true" : "false");
1310
1310
  }
1311
1311
  for (let x = 0; x < o.length; x++) {
1312
- const F = o[x], V = n[x] ?? _.defaultColumnWidth, ce = _.editable && F.editable !== false, U = x === 0, le = f && !f.isEmpty ? f.getInfo(C, x) : null;
1312
+ const E = o[x], N = n[x] ?? f.defaultColumnWidth, ce = f.editable && E.editable !== false, W = x === 0, le = _ && !_.isEmpty ? _.getInfo(C, x) : null;
1313
1313
  if (le == null ? void 0 : le.hidden) {
1314
1314
  const k = T("div", "og-cell og-cell--merge-ph");
1315
- k.style.cssText = `width:${V}px;min-width:${V}px;flex-shrink:0;visibility:hidden;box-sizing:border-box;`, P.appendChild(k);
1315
+ k.style.cssText = `width:${N}px;min-width:${N}px;flex-shrink:0;visibility:hidden;box-sizing:border-box;`, V.appendChild(k);
1316
1316
  continue;
1317
1317
  }
1318
1318
  const b = T("div", "og-cell");
1319
1319
  b.setAttribute("role", "gridcell"), b.setAttribute("aria-colindex", String(x + 1));
1320
- const q = (le == null ? void 0 : le.rowSpan) ?? 1, H = (le == null ? void 0 : le.colSpan) ?? 1, Ee = q > 1 ? q * _.rowHeight : _.rowHeight;
1321
- let X = V;
1322
- if (H > 1) for (let k = 1; k < H; k++) X += n[x + k] ?? _.defaultColumnWidth;
1320
+ const j = (le == null ? void 0 : le.rowSpan) ?? 1, H = (le == null ? void 0 : le.colSpan) ?? 1, ke = j > 1 ? j * f.rowHeight : f.rowHeight;
1321
+ let G = N;
1322
+ if (H > 1) for (let k = 1; k < H; k++) G += n[x + k] ?? f.defaultColumnWidth;
1323
1323
  const re = x < R;
1324
- let oe = 0;
1324
+ let se = 0;
1325
1325
  if (re) {
1326
- _.stateColumn && (oe += 24), _.draggable && (oe += 18), _.rowNumber && (oe += 44), _.checkColumn && (oe += 36), A && (oe += S);
1327
- for (let k = 0; k < x; k++) oe += n[k] ?? _.defaultColumnWidth;
1326
+ f.stateColumn && (se += 24), f.draggable && (se += 18), f.rowNumber && (se += 44), f.checkColumn && (se += 36), F && (se += S);
1327
+ for (let k = 0; k < x; k++) se += n[k] ?? f.defaultColumnWidth;
1328
1328
  b.classList.add("og-frozen-cell"), x === R - 1 && b.classList.add("og-frozen-last");
1329
1329
  }
1330
- b.style.width = `${X}px`, b.style.minWidth = `${X}px`, b.style.maxWidth = `${X}px`, q > 1 && (b.style.height = `${Ee}px`), re && (b.style.background = Y), L && U && (b.style.padding = "0"), b.style.overflow = "hidden", q > 1 ? (b.style.height = `${Ee}px`, b.style.position = "absolute", b.style.zIndex = "3", b.style.background = Y && Y !== "inherit" ? Y : "var(--og-row-bg, #fff)", b.style.borderTop = "0", b.style.borderLeft = "0", b.style.borderBottom = "1px solid var(--og-border-color, #e0e0e0)") : re && (b.style.position = "sticky", b.style.left = `${oe}px`, b.style.zIndex = "1"), F.type === "number" || F.align === "right" ? b.classList.add("og-cell--right") : F.align === "center" && b.classList.add("og-cell--center"), ce && b.classList.add("og-cell--editable"), F.wrap && b.classList.add("og-cell--wrap"), ce || b.setAttribute("aria-readonly", "true"), H > 1 && b.setAttribute("aria-colspan", String(H)), q > 1 && b.setAttribute("aria-rowspan", String(q)), ((_a = _._focusCell) == null ? void 0 : _a.ri) === C && ((_b = _._focusCell) == null ? void 0 : _b.ci) === x && (b.classList.add("og-cell-focused"), b.tabIndex = -1), ((_c = _._rangeRects) == null ? void 0 : _c.some((k) => C >= k.startRow && C <= k.endRow && x >= k.startCol && x <= k.endCol)) && (b.classList.add("og-range-selected"), b.style.background = "var(--og-range-bg, rgba(25,118,210,0.12))");
1331
- const he = K ? K[F.field] : null;
1332
- b.setAttribute("aria-label", `${F.header}: ${he == null ? "" : String(he)}`), F.tooltip != null ? b.title = typeof F.tooltip == "function" ? String(F.tooltip(he, K) ?? "") : String(F.tooltip) : _.tooltips && he != null && he !== "" && (b.title = String(he));
1333
- const ne = ((_e2 = (_d = this._cbs).getFormulaMeta) == null ? void 0 : _e2.call(_d, C, F.field)) ?? null;
1330
+ b.style.width = `${G}px`, b.style.minWidth = `${G}px`, b.style.maxWidth = `${G}px`, j > 1 && (b.style.height = `${ke}px`), re && (b.style.background = X), A && W && (b.style.padding = "0"), b.style.overflow = "hidden", j > 1 ? (b.style.height = `${ke}px`, b.style.position = "absolute", b.style.zIndex = "3", b.style.background = X && X !== "inherit" ? X : "var(--og-row-bg, #fff)", b.style.borderTop = "0", b.style.borderLeft = "0", b.style.borderBottom = "1px solid var(--og-border-color, #e0e0e0)") : re && (b.style.position = "sticky", b.style.left = `${se}px`, b.style.zIndex = "1"), E.type === "number" || E.align === "right" ? b.classList.add("og-cell--right") : E.align === "center" && b.classList.add("og-cell--center"), ce && b.classList.add("og-cell--editable"), E.wrap && b.classList.add("og-cell--wrap"), ce || b.setAttribute("aria-readonly", "true"), H > 1 && b.setAttribute("aria-colspan", String(H)), j > 1 && b.setAttribute("aria-rowspan", String(j)), ((_a = f._focusCell) == null ? void 0 : _a.ri) === C && ((_b = f._focusCell) == null ? void 0 : _b.ci) === x && (b.classList.add("og-cell-focused"), b.tabIndex = -1), ((_c = f._rangeRects) == null ? void 0 : _c.some((k) => C >= k.startRow && C <= k.endRow && x >= k.startCol && x <= k.endCol)) && (b.classList.add("og-range-selected"), b.style.background = "var(--og-range-bg, rgba(25,118,210,0.12))");
1331
+ const he = K ? K[E.field] : null;
1332
+ b.setAttribute("aria-label", `${E.header}: ${he == null ? "" : String(he)}`), E.tooltip != null ? b.title = typeof E.tooltip == "function" ? String(E.tooltip(he, K) ?? "") : String(E.tooltip) : f.tooltips && he != null && he !== "" && (b.title = String(he));
1333
+ const ne = ((_e2 = (_d = this._cbs).getFormulaMeta) == null ? void 0 : _e2.call(_d, C, E.field)) ?? null;
1334
1334
  if (ne) {
1335
1335
  const k = he == null ? this._t("cell.emptyValue") : String(he);
1336
1336
  if (ne.error) {
1337
- const j = Mi[ne.error], ae = j ? this._t(j) : this._t("formulaError.fallback");
1337
+ const U = Mi[ne.error], ae = U ? this._t(U) : this._t("formulaError.fallback");
1338
1338
  b.setAttribute("aria-label", this._t("formula.ariaError", { src: ne.src, message: ae })), b.title = `${ne.error} — ${ae}`, b.style.color = "var(--og-formula-error-color, #c62828)";
1339
1339
  } else {
1340
- const j = ne.approx ? this._t("formula.approxSuffix") : "";
1341
- b.setAttribute("aria-label", this._t("formula.ariaValue", { src: ne.src, value: k, approx: j })), b.title = `${ne.src}${j}`;
1340
+ const U = ne.approx ? this._t("formula.approxSuffix") : "";
1341
+ b.setAttribute("aria-label", this._t("formula.ariaValue", { src: ne.src, value: k, approx: U })), b.title = `${ne.src}${U}`;
1342
1342
  }
1343
- if (((_f = _.formula) == null ? void 0 : _f.cellMarker) !== false) {
1343
+ if (((_f = f.formula) == null ? void 0 : _f.cellMarker) !== false) {
1344
1344
  b.classList.add("og-formula-cell");
1345
- const j = ne.error ? "var(--og-formula-error-color, #c62828)" : "var(--og-formula-marker-color, #1976d2)", ae = b.style.background || b.style.backgroundColor;
1346
- b.style.backgroundImage = `linear-gradient(135deg, ${j} 0 6px, transparent 6px)`, b.style.backgroundRepeat = "no-repeat", b.style.backgroundPosition = "top right", b.style.backgroundSize = "8px 8px", ae && (b.style.backgroundColor = ae);
1345
+ const U = ne.error ? "var(--og-formula-error-color, #c62828)" : "var(--og-formula-marker-color, #1976d2)", ae = b.style.background || b.style.backgroundColor;
1346
+ b.style.backgroundImage = `linear-gradient(135deg, ${U} 0 6px, transparent 6px)`, b.style.backgroundRepeat = "no-repeat", b.style.backgroundPosition = "top right", b.style.backgroundSize = "8px 8px", ae && (b.style.backgroundColor = ae);
1347
1347
  }
1348
1348
  }
1349
- const ft = (_h = (_g = this._cbs).resolveRenderHook) == null ? void 0 : _h.call(_g, "cellClass", C, F.field);
1350
- ft && (b.className += " " + ft);
1351
- const _t = (_j = (_i2 = this._cbs).resolveRenderHook) == null ? void 0 : _j.call(_i2, "ariaLabel", C, F.field);
1352
- _t != null && b.setAttribute("aria-label", String(_t));
1353
- let mt = b;
1354
- if (L && U) {
1355
- const k = T("div", "og-tree-cell"), j = L._ancestorHasMore ?? [];
1356
- for (let ee = 0; ee < L._depth; ee++) {
1349
+ const gt = (_h = (_g = this._cbs).resolveRenderHook) == null ? void 0 : _h.call(_g, "cellClass", C, E.field);
1350
+ gt && (b.className += " " + gt);
1351
+ const ft = (_j = (_i2 = this._cbs).resolveRenderHook) == null ? void 0 : _j.call(_i2, "ariaLabel", C, E.field);
1352
+ ft != null && b.setAttribute("aria-label", String(ft));
1353
+ let _t = b;
1354
+ if (A && W) {
1355
+ const k = T("div", "og-tree-cell"), U = A._ancestorHasMore ?? [];
1356
+ for (let J = 0; J < A._depth; J++) {
1357
1357
  const de = T("span", "og-tree-guide");
1358
- j[ee] && de.classList.add("og-tree-guide--line"), k.appendChild(de);
1358
+ U[J] && de.classList.add("og-tree-guide--line"), k.appendChild(de);
1359
1359
  }
1360
- if (L._depth > 0) {
1361
- const ee = T("span", "og-tree-connector");
1362
- ee.classList.add(L._isLastChild ? "og-tree-connector--last" : "og-tree-connector--mid"), k.appendChild(ee);
1360
+ if (A._depth > 0) {
1361
+ const J = T("span", "og-tree-connector");
1362
+ J.classList.add(A._isLastChild ? "og-tree-connector--last" : "og-tree-connector--mid"), k.appendChild(J);
1363
1363
  }
1364
1364
  const ae = T("span", "og-tree-toggle-wrap");
1365
- if (!L._hasChildren) {
1366
- const ee = T("span", "og-tree-leaf-dot");
1367
- ae.appendChild(ee);
1365
+ if (!A._hasChildren) {
1366
+ const J = T("span", "og-tree-leaf-dot");
1367
+ ae.appendChild(J);
1368
1368
  }
1369
1369
  k.appendChild(ae);
1370
- const Q = document.createElement("i");
1371
- if (L._hasChildren) {
1372
- const ee = Ft(F.treeNodeIcon, K, true, L._expanded);
1373
- Q.className = L._expanded ? `${ee} og-tree-node-icon og-tree-node-icon--branch og-tree-node-icon--open og-tree-node-icon--toggle` : `${ee} og-tree-node-icon og-tree-node-icon--branch og-tree-node-icon--toggle`, Q.setAttribute("role", "button"), Q.setAttribute("tabindex", "0"), Q.setAttribute("aria-expanded", L._expanded ? "true" : "false"), Q.setAttribute("aria-label", this._t(L._expanded ? "tree.collapse" : "tree.expand")), Q.addEventListener("click", (de) => {
1374
- de.stopPropagation(), g == null ? void 0 : g(L._treeId);
1375
- }), Q.addEventListener("keydown", (de) => {
1376
- (de.key === "Enter" || de.key === " ") && (de.preventDefault(), de.stopPropagation(), g == null ? void 0 : g(L._treeId));
1370
+ const Z = document.createElement("i");
1371
+ if (A._hasChildren) {
1372
+ const J = St(E.treeNodeIcon, K, true, A._expanded);
1373
+ Z.className = A._expanded ? `${J} og-tree-node-icon og-tree-node-icon--branch og-tree-node-icon--open og-tree-node-icon--toggle` : `${J} og-tree-node-icon og-tree-node-icon--branch og-tree-node-icon--toggle`, Z.setAttribute("role", "button"), Z.setAttribute("tabindex", "0"), Z.setAttribute("aria-expanded", A._expanded ? "true" : "false"), Z.setAttribute("aria-label", this._t(A._expanded ? "tree.collapse" : "tree.expand")), Z.addEventListener("click", (de) => {
1374
+ de.stopPropagation(), g == null ? void 0 : g(A._treeId);
1375
+ }), Z.addEventListener("keydown", (de) => {
1376
+ (de.key === "Enter" || de.key === " ") && (de.preventDefault(), de.stopPropagation(), g == null ? void 0 : g(A._treeId));
1377
1377
  });
1378
1378
  } else {
1379
- const ee = Ft(F.treeNodeIcon, K, false, false);
1380
- Q.setAttribute("aria-hidden", "true"), Q.className = `${ee} og-tree-node-icon og-tree-node-icon--leaf`;
1379
+ const J = St(E.treeNodeIcon, K, false, false);
1380
+ Z.setAttribute("aria-hidden", "true"), Z.className = `${J} og-tree-node-icon og-tree-node-icon--leaf`;
1381
1381
  }
1382
- k.appendChild(Q), b.appendChild(k), mt = k;
1382
+ k.appendChild(Z), b.appendChild(k), _t = k;
1383
1383
  }
1384
- if (F.cellStyle) {
1385
- const k = K[F.field], j = typeof F.cellStyle == "function" ? F.cellStyle(k, K, C) : F.cellStyle;
1386
- Object.assign(b.style, j);
1384
+ if (E.cellStyle) {
1385
+ const k = K[E.field], U = typeof E.cellStyle == "function" ? E.cellStyle(k, K, C) : E.cellStyle;
1386
+ Object.assign(b.style, U);
1387
1387
  }
1388
- const Ls = Ri(F).render({ value: K[F.field], row: K, rowIndex: C, column: F, colIndex: x, isSelected: d.has(C), rowState: ie, displayValue: ((_l = (_k = this._cbs).resolveRenderHook) == null ? void 0 : _l.call(_k, "displayText", C, F.field)) ?? ((_n = (_m = this._cbs).getDisplayText) == null ? void 0 : _n.call(_m, C, F.field)) ?? null, displayFormatter: ((_p = (_o2 = this._cbs).getDisplayFormatter) == null ? void 0 : _p.call(_o2)) ?? null, hasCellFormula: ne != null, t: (k, j) => this._t(k, j) });
1389
- mt.appendChild(Ls), (_r2 = (_q = this._cbs).applyCF) == null ? void 0 : _r2.call(_q, b, C, F.field, K ? K[F.field] : void 0, X, Ee);
1388
+ const Ls = Ri(E).render({ value: K[E.field], row: K, rowIndex: C, column: E, colIndex: x, isSelected: d.has(C), rowState: ie, displayValue: ((_l = (_k = this._cbs).resolveRenderHook) == null ? void 0 : _l.call(_k, "displayText", C, E.field)) ?? ((_n = (_m = this._cbs).getDisplayText) == null ? void 0 : _n.call(_m, C, E.field)) ?? null, displayFormatter: ((_p = (_o2 = this._cbs).getDisplayFormatter) == null ? void 0 : _p.call(_o2)) ?? null, hasCellFormula: ne != null, t: (k, U) => this._t(k, U) });
1389
+ _t.appendChild(Ls), (_r2 = (_q = this._cbs).applyCF) == null ? void 0 : _r2.call(_q, b, C, E.field, K ? K[E.field] : void 0, G, ke);
1390
1390
  const ue = C, pe = x;
1391
1391
  if (b.addEventListener("click", (k) => {
1392
1392
  k.stopPropagation(), this._cbs.onCellClick(ue, pe, k);
@@ -1402,23 +1402,23 @@ class ki {
1402
1402
  k.stopPropagation(), this._cbs.onCellMouseUp(ue, pe, k);
1403
1403
  }), b.addEventListener("mousemove", (k) => {
1404
1404
  k.stopPropagation(), this._cbs.onCellMouseMove(ue, pe, k);
1405
- }), Oe.set(x, b), q > 1) {
1405
+ }), ut.set(x, b), j > 1) {
1406
1406
  const k = document.createElement("div");
1407
- k.style.cssText = [`width:${V}px;min-width:${V}px;height:${_.rowHeight}px;`, "flex-shrink:0;box-sizing:border-box;", `border-right:${w.border()};`].join(""), P.appendChild(k);
1408
- let j = 0;
1409
- _.stateColumn && (j += 24), _.draggable && (j += 18), _.rowNumber && (j += 44), _.checkColumn && (j += 36), A && (j += S);
1410
- for (let Q = 0; Q < x; Q++) j += n[Q] ?? _.defaultColumnWidth;
1411
- const ae = a + (C - t) * _.rowHeight;
1412
- b.style.left = `${j}px`, b.style.top = `${ae}px`, $.appendChild(b);
1413
- } else P.appendChild(b);
1407
+ k.style.cssText = [`width:${N}px;min-width:${N}px;height:${f.rowHeight}px;`, "flex-shrink:0;box-sizing:border-box;", `border-right:${w.border()};`].join(""), V.appendChild(k);
1408
+ let U = 0;
1409
+ f.stateColumn && (U += 24), f.draggable && (U += 18), f.rowNumber && (U += 44), f.checkColumn && (U += 36), F && (U += S);
1410
+ for (let Z = 0; Z < x; Z++) U += n[Z] ?? f.defaultColumnWidth;
1411
+ const ae = a + (C - t) * f.rowHeight;
1412
+ b.style.left = `${U}px`, b.style.top = `${ae}px`, z.appendChild(b);
1413
+ } else V.appendChild(b);
1414
1414
  }
1415
- this._cellMap.set(C, Oe), $.appendChild(P);
1415
+ this._cellMap.set(C, ut), z.appendChild(V);
1416
1416
  }
1417
1417
  if (i.rowCount === 0) {
1418
1418
  const C = T("div", "og-empty-message");
1419
- C.textContent = this._t("grid.emptyMessage"), C.style.cssText = "width:100%;", $.appendChild(C);
1419
+ C.textContent = this._t("grid.emptyMessage"), C.style.cssText = "width:100%;", z.appendChild(C);
1420
1420
  }
1421
- this._body.appendChild($);
1421
+ this._body.appendChild(z);
1422
1422
  }
1423
1423
  getCellEl(e, t) {
1424
1424
  var _a;
@@ -1434,7 +1434,7 @@ class ki {
1434
1434
  this._root.innerHTML = "";
1435
1435
  }
1436
1436
  }
1437
- function Ft(r, e, t, s) {
1437
+ function St(r, e, t, s) {
1438
1438
  let i;
1439
1439
  return r ? typeof r == "function" ? i = r(e, t, s) : t ? i = s ? r.branchOpen ?? "bi-folder2-open" : r.branch ?? "bi-folder2" : i = r.leaf ?? "bi-file-earmark" : i = t ? s ? "bi-folder2-open" : "bi-folder2" : "bi-file-earmark", i.startsWith("bi ") ? i : `bi ${i}`;
1440
1440
  }
@@ -1442,10 +1442,10 @@ function T(r, e) {
1442
1442
  const t = document.createElement(r);
1443
1443
  return e && (t.className = e), t;
1444
1444
  }
1445
- function At(r, e) {
1445
+ function Ft(r, e) {
1446
1446
  Object.assign(r.style, e);
1447
1447
  }
1448
- function Lt(r, e, t = "text/plain;charset=utf-8") {
1448
+ function At(r, e, t = "text/plain;charset=utf-8") {
1449
1449
  const s = new Blob([r], { type: t }), i = URL.createObjectURL(s), o = document.createElement("a");
1450
1450
  o.href = i, o.download = e, o.click(), URL.revokeObjectURL(i);
1451
1451
  }
@@ -1463,7 +1463,7 @@ function Ei(r, e, t) {
1463
1463
  });
1464
1464
  }
1465
1465
  const Si = /* @__PURE__ */ new Set(["--og-radius-none", "--og-radius-sm", "--og-radius-md", "--og-radius-lg", "--og-radius-pill", "--og-radius-container", "--og-radius-control", "--og-radius-widget", "--og-container-radius", "--og-border-width", "--og-border-width-strong", "--og-border-style", "--og-divider-style", "--og-divider-repeat", "--og-elevation-sm", "--og-elevation-md", "--og-elevation-lg", "--og-elevation-alpha-sm", "--og-elevation-alpha-md", "--og-elevation-alpha-lg", "--og-elevation-inset", "--og-cell-padding-x", "--og-cell-padding-y", "--og-density-row-height", "--og-density-header-height", "--og-density-footer-height", "--og-scrollbar-size", "--og-texture-bg", "--og-texture-size", "--og-texture-opacity", "--og-focus-width", "--og-focus-style", "--og-focus-offset", "--og-focus-radius", "--og-icon-size", "--og-icon-fill", "--og-icon-stroke-width", "--og-icon-corner", "--og-transition-fast", "--og-transition-base", "--og-row-accent-width"]), Fi = /#[0-9a-fA-F]{3,8}\b/, Ai = /\b(?:rgba?|hsla?)\(\s*\d/, Li = /\b(?:red|green|blue|black|white|gray|grey|yellow|orange|purple|pink|brown|cyan|magenta)\b/i;
1466
- function It(r, e) {
1466
+ function Lt(r, e) {
1467
1467
  for (const [t, s] of Object.entries(e)) {
1468
1468
  const i = t;
1469
1469
  if (!Si.has(i)) throw new Error(`[SkinRegistry] 스킨 "${r}" 의 토큰 "${i}" 은 FORM 토큰이 아닙니다. 스킨은 형태(radius/border/elevation/…)만 소유하며 색 토큰은 data-og-theme 축입니다(색⊥형태 직교성).`);
@@ -1471,26 +1471,26 @@ function It(r, e) {
1471
1471
  if (Fi.test(o) || Ai.test(o) || Li.test(o)) throw new Error(`[SkinRegistry] 스킨 "${r}" 토큰 "${i}: ${o}" 에 색 리터럴이 있습니다. 스킨 델타는 색을 담을 수 없습니다(Rule 2). 색이 필요하면 COLOR 토큰(예: var(--og-texture-ink))을 참조하세요.`);
1472
1472
  }
1473
1473
  }
1474
- function Tt(r, e) {
1474
+ function It(r, e) {
1475
1475
  const t = { ...e }, s = [], i = t["--og-focus-width"];
1476
1476
  if (i != null) {
1477
1477
  const o = parseFloat(String(i));
1478
- !Number.isNaN(o) && o < 2 && (t["--og-focus-width"] = "2px", s.push(`focus-width ${i} → 2px (가시 포커스 최소 2px, HANMS)`));
1478
+ !Number.isNaN(o) && o < 2 && (t["--og-focus-width"] = "2px", s.push(`focus-width ${i} → 2px (가시 포커스 최소 2px, 접근성 가드레일)`));
1479
1479
  }
1480
- return t["--og-focus-style"] === "none" && (t["--og-focus-style"] = "solid", s.push("focus-style none → solid (가시 포커스 비협상, HANMS)")), { delta: t, warnings: s };
1480
+ return t["--og-focus-style"] === "none" && (t["--og-focus-style"] = "solid", s.push("focus-style none → solid (가시 포커스 비협상, 접근성 가드레일)")), { delta: t, warnings: s };
1481
1481
  }
1482
- class Dt {
1482
+ class Tt {
1483
1483
  constructor() {
1484
1484
  this._skins = /* @__PURE__ */ new Map(), this._styleEl = null;
1485
1485
  }
1486
1486
  registerBuiltin(e, t) {
1487
- It(e, t);
1488
- const { delta: s } = Tt(e, t);
1487
+ Lt(e, t);
1488
+ const { delta: s } = It(e, t);
1489
1489
  this._skins.set(e, s);
1490
1490
  }
1491
1491
  define(e, t) {
1492
- It(e, t);
1493
- const s = Tt(e, t);
1492
+ Lt(e, t);
1493
+ const s = It(e, t);
1494
1494
  this._skins.set(e, s.delta);
1495
1495
  for (const i of s.warnings) typeof console < "u" && console.warn(`[SkinRegistry] "${e}": ${i}`);
1496
1496
  return this._inject(e, s.delta), s;
@@ -1516,24 +1516,24 @@ ${s}
1516
1516
  `));
1517
1517
  }
1518
1518
  }
1519
- const Ii = { "--og-radius-sm": "0", "--og-radius-md": "0", "--og-radius-lg": "0", "--og-radius-pill": "0", "--og-radius-container": "0", "--og-container-radius": "0", "--og-border-width": "1px", "--og-border-style": "solid", "--og-divider-style": "solid", "--og-elevation-sm": "none", "--og-elevation-md": "none", "--og-elevation-lg": "0 1px 2px", "--og-cell-padding-x": "6px", "--og-density-row-height": "28", "--og-density-header-height": "28", "--og-focus-width": "2px", "--og-focus-style": "solid", "--og-focus-radius": "0", "--og-icon-fill": "0", "--og-icon-corner": "miter" }, Ti = { "--og-radius-sm": "4px", "--og-radius-md": "8px", "--og-radius-lg": "12px", "--og-radius-pill": "999px", "--og-radius-container": "12px", "--og-container-radius": "12px", "--og-radius-control": "8px", "--og-radius-widget": "6px", "--og-border-width": "1px", "--og-border-style": "solid", "--og-elevation-sm": "0 1px 3px", "--og-elevation-md": "0 4px 12px", "--og-elevation-lg": "0 12px 32px", "--og-elevation-alpha-sm": "0.06", "--og-elevation-alpha-md": "0.10", "--og-elevation-alpha-lg": "0.16", "--og-cell-padding-x": "12px", "--og-cell-padding-y": "2px", "--og-density-row-height": "40", "--og-density-header-height": "42", "--og-focus-width": "2px", "--og-focus-offset": "2px", "--og-focus-radius": "8px", "--og-icon-fill": "0", "--og-icon-corner": "round" }, Di = { "--og-radius-sm": "2px", "--og-radius-md": "3px", "--og-radius-lg": "4px", "--og-container-radius": "3px", "--og-border-width": "1px", "--og-border-style": "dashed", "--og-divider-style": "dashed", "--og-divider-repeat": "2", "--og-texture-bg": "repeating-linear-gradient(45deg, rgba(var(--og-texture-ink),0.04) 0 2px, transparent 2px 6px)", "--og-texture-size": "6px 6px", "--og-texture-opacity": "1", "--og-elevation-sm": "0 1px 2px", "--og-elevation-md": "0 2px 4px", "--og-elevation-lg": "0 4px 10px", "--og-cell-padding-x": "10px", "--og-density-row-height": "36", "--og-focus-style": "dashed", "--og-icon-fill": "0", "--og-icon-corner": "round" }, Oi = { "--og-radius-sm": "2px", "--og-radius-md": "3px", "--og-radius-lg": "4px", "--og-container-radius": "4px", "--og-border-width": "1px", "--og-border-style": "solid", "--og-divider-style": "solid", "--og-elevation-sm": "none", "--og-elevation-md": "none", "--og-elevation-lg": "none", "--og-elevation-inset": "none", "--og-cell-padding-x": "10px", "--og-density-row-height": "34", "--og-focus-width": "2px", "--og-focus-style": "solid", "--og-icon-fill": "0", "--og-icon-corner": "round" }, $i = { "--og-radius-sm": "0", "--og-radius-md": "2px", "--og-radius-lg": "2px", "--og-container-radius": "2px", "--og-border-width": "2px", "--og-border-width-strong": "3px", "--og-border-style": "solid", "--og-divider-style": "solid", "--og-elevation-sm": "none", "--og-elevation-md": "0 2px 4px", "--og-elevation-lg": "0 4px 8px", "--og-elevation-alpha-md": "0.30", "--og-elevation-alpha-lg": "0.40", "--og-cell-padding-x": "10px", "--og-density-row-height": "40", "--og-focus-width": "3px", "--og-focus-style": "solid", "--og-focus-offset": "2px", "--og-focus-radius": "0", "--og-icon-size": "18px", "--og-icon-fill": "1", "--og-icon-stroke-width": "2", "--og-icon-corner": "miter" }, zi = { "--og-radius-sm": "2px", "--og-radius-md": "4px", "--og-radius-lg": "8px", "--og-container-radius": "8px", "--og-radius-control": "4px", "--og-radius-widget": "4px", "--og-border-width": "1px", "--og-border-style": "solid", "--og-divider-style": "solid", "--og-elevation-sm": "0 1px 2px", "--og-elevation-md": "0 2px 6px", "--og-elevation-lg": "0 8px 24px", "--og-elevation-alpha-sm": "0.12", "--og-elevation-alpha-md": "0.16", "--og-elevation-alpha-lg": "0.20", "--og-cell-padding-x": "8px", "--og-density-row-height": "36", "--og-focus-width": "2px", "--og-focus-style": "solid", "--og-focus-offset": "1px", "--og-icon-fill": "0", "--og-icon-corner": "round" }, Bi = [["sharp", Ii], ["rounded", Ti], ["stitch", Di], ["flat", Oi], ["high-contrast", $i], ["material", zi]], Ze = new Dt();
1520
- for (const [r, e] of Bi) Ze.registerBuiltin(r, e);
1521
- const Hi = "default", Ot = Object.freeze({ tokens: Object.freeze({}) });
1522
- function $t(r, e, t) {
1523
- for (const s of Object.keys(t)) if (!e.has(s)) throw new Error(`[AppearanceAxis:${r}] 토큰 "${s}" 은 ${r} 축 이름공간이 아닙니다. 각 축은 자기 이름공간 토큰만 소유합니다(축 오염 금지 — 이름-분리 물리 직교, 불변식 1).`);
1519
+ const Ii = { "--og-radius-sm": "0", "--og-radius-md": "0", "--og-radius-lg": "0", "--og-radius-pill": "0", "--og-radius-container": "0", "--og-container-radius": "0", "--og-border-width": "1px", "--og-border-style": "solid", "--og-divider-style": "solid", "--og-elevation-sm": "none", "--og-elevation-md": "none", "--og-elevation-lg": "0 1px 2px", "--og-cell-padding-x": "6px", "--og-density-row-height": "28", "--og-density-header-height": "28", "--og-focus-width": "2px", "--og-focus-style": "solid", "--og-focus-radius": "0", "--og-icon-fill": "0", "--og-icon-corner": "miter" }, Ti = { "--og-radius-sm": "4px", "--og-radius-md": "8px", "--og-radius-lg": "12px", "--og-radius-pill": "999px", "--og-radius-container": "12px", "--og-container-radius": "12px", "--og-radius-control": "8px", "--og-radius-widget": "6px", "--og-border-width": "1px", "--og-border-style": "solid", "--og-elevation-sm": "0 1px 3px", "--og-elevation-md": "0 4px 12px", "--og-elevation-lg": "0 12px 32px", "--og-elevation-alpha-sm": "0.06", "--og-elevation-alpha-md": "0.10", "--og-elevation-alpha-lg": "0.16", "--og-cell-padding-x": "12px", "--og-cell-padding-y": "2px", "--og-density-row-height": "40", "--og-density-header-height": "42", "--og-focus-width": "2px", "--og-focus-offset": "2px", "--og-focus-radius": "8px", "--og-icon-fill": "0", "--og-icon-corner": "round" }, Di = { "--og-radius-sm": "2px", "--og-radius-md": "3px", "--og-radius-lg": "4px", "--og-container-radius": "3px", "--og-border-width": "1px", "--og-border-style": "dashed", "--og-divider-style": "dashed", "--og-divider-repeat": "2", "--og-texture-bg": "repeating-linear-gradient(45deg, rgba(var(--og-texture-ink),0.04) 0 2px, transparent 2px 6px)", "--og-texture-size": "6px 6px", "--og-texture-opacity": "1", "--og-elevation-sm": "0 1px 2px", "--og-elevation-md": "0 2px 4px", "--og-elevation-lg": "0 4px 10px", "--og-cell-padding-x": "10px", "--og-density-row-height": "36", "--og-focus-style": "dashed", "--og-icon-fill": "0", "--og-icon-corner": "round" }, Oi = { "--og-radius-sm": "2px", "--og-radius-md": "3px", "--og-radius-lg": "4px", "--og-container-radius": "4px", "--og-border-width": "1px", "--og-border-style": "solid", "--og-divider-style": "solid", "--og-elevation-sm": "none", "--og-elevation-md": "none", "--og-elevation-lg": "none", "--og-elevation-inset": "none", "--og-cell-padding-x": "10px", "--og-density-row-height": "34", "--og-focus-width": "2px", "--og-focus-style": "solid", "--og-icon-fill": "0", "--og-icon-corner": "round" }, $i = { "--og-radius-sm": "0", "--og-radius-md": "2px", "--og-radius-lg": "2px", "--og-container-radius": "2px", "--og-border-width": "2px", "--og-border-width-strong": "3px", "--og-border-style": "solid", "--og-divider-style": "solid", "--og-elevation-sm": "none", "--og-elevation-md": "0 2px 4px", "--og-elevation-lg": "0 4px 8px", "--og-elevation-alpha-md": "0.30", "--og-elevation-alpha-lg": "0.40", "--og-cell-padding-x": "10px", "--og-density-row-height": "40", "--og-focus-width": "3px", "--og-focus-style": "solid", "--og-focus-offset": "2px", "--og-focus-radius": "0", "--og-icon-size": "18px", "--og-icon-fill": "1", "--og-icon-stroke-width": "2", "--og-icon-corner": "miter" }, zi = { "--og-radius-sm": "2px", "--og-radius-md": "4px", "--og-radius-lg": "8px", "--og-container-radius": "8px", "--og-radius-control": "4px", "--og-radius-widget": "4px", "--og-border-width": "1px", "--og-border-style": "solid", "--og-divider-style": "solid", "--og-elevation-sm": "0 1px 2px", "--og-elevation-md": "0 2px 6px", "--og-elevation-lg": "0 8px 24px", "--og-elevation-alpha-sm": "0.12", "--og-elevation-alpha-md": "0.16", "--og-elevation-alpha-lg": "0.20", "--og-cell-padding-x": "8px", "--og-density-row-height": "36", "--og-focus-width": "2px", "--og-focus-style": "solid", "--og-focus-offset": "1px", "--og-icon-fill": "0", "--og-icon-corner": "round" }, Bi = [["sharp", Ii], ["rounded", Ti], ["stitch", Di], ["flat", Oi], ["high-contrast", $i], ["material", zi]], Ye = new Tt();
1520
+ for (const [r, e] of Bi) Ye.registerBuiltin(r, e);
1521
+ const Hi = "default", Dt = Object.freeze({ tokens: Object.freeze({}) });
1522
+ function Ot(r, e, t) {
1523
+ for (const s of Object.keys(t)) if (!e.has(s)) throw new Error(`[AppearanceAxis:${r}] 토큰 "${s}" 은 ${r} 축 이름공간이 아닙니다. 각 축은 자기 이름공간 토큰만 소유합니다(축 섞임 금지 — 이름-분리 물리 직교, 불변식 1).`);
1524
1524
  }
1525
- class zt {
1525
+ class $t {
1526
1526
  constructor(e) {
1527
1527
  this._values = /* @__PURE__ */ new Map(), this.id = e.id, this.namespace = e.namespace, this._attrName = e.attrName, this._requiresRelayout = e.requiresRelayout ?? false;
1528
1528
  }
1529
1529
  registerBuiltin(e, t) {
1530
- $t(this.id, this.namespace, t), this._values.set(e, this._guardrails(e, t).delta);
1530
+ Ot(this.id, this.namespace, t), this._values.set(e, this._guardrails(e, t).delta);
1531
1531
  }
1532
1532
  _guardrails(e, t) {
1533
1533
  return { delta: t, warnings: [] };
1534
1534
  }
1535
1535
  define(e, t) {
1536
- $t(this.id, this.namespace, t);
1536
+ Ot(this.id, this.namespace, t);
1537
1537
  const s = this._guardrails(e, t);
1538
1538
  this._values.set(e, s.delta);
1539
1539
  for (const i of s.warnings) typeof console < "u" && console.warn(`[AppearanceAxis:${this.id}] "${e}": ${i}`);
@@ -1543,9 +1543,9 @@ class zt {
1543
1543
  return this._values.has(e);
1544
1544
  }
1545
1545
  resolve(e) {
1546
- if (e === Hi) return Ot;
1546
+ if (e === Hi) return Dt;
1547
1547
  const t = this._values.get(e);
1548
- if (t === void 0) return Ot;
1548
+ if (t === void 0) return Dt;
1549
1549
  const s = { tokens: t, attr: { name: this._attrName, value: e } };
1550
1550
  return this._requiresRelayout && (s.requiresRelayout = true), s;
1551
1551
  }
@@ -1553,10 +1553,10 @@ class zt {
1553
1553
  return [...this._values.keys()];
1554
1554
  }
1555
1555
  }
1556
- const Bt = /* @__PURE__ */ new Set(["--og-density-row-height", "--og-density-header-height", "--og-density-footer-height", "--og-font-size", "--og-density-touch-min"]), Qe = 44;
1557
- class Pi extends zt {
1556
+ const zt = /* @__PURE__ */ new Set(["--og-density-row-height", "--og-density-header-height", "--og-density-footer-height", "--og-font-size", "--og-density-touch-min"]), Xe = 44;
1557
+ class Pi extends $t {
1558
1558
  constructor() {
1559
- super({ id: "density", attrName: "data-og-density", namespace: Bt, requiresRelayout: true });
1559
+ super({ id: "density", attrName: "data-og-density", namespace: zt, requiresRelayout: true });
1560
1560
  }
1561
1561
  _guardrails(e, t) {
1562
1562
  const s = { ...t }, i = [];
@@ -1564,29 +1564,29 @@ class Pi extends zt {
1564
1564
  const n = s[o];
1565
1565
  if (n == null) continue;
1566
1566
  const a = parseFloat(String(n));
1567
- !Number.isNaN(a) && a < Qe && e.includes("touch") && (s[o] = `${Qe}px`, i.push(`${o} ${n} → ${Qe}px (터치 히트타깃 최소 44px, REQ-T2-018)`));
1567
+ !Number.isNaN(a) && a < Xe && e.includes("touch") && (s[o] = `${Xe}px`, i.push(`${o} ${n} → ${Xe}px (터치 히트타깃 최소 44px, REQ-T2-018)`));
1568
1568
  }
1569
1569
  return { delta: s, warnings: i };
1570
1570
  }
1571
1571
  }
1572
- const Ni = { "--og-density-row-height": "28px", "--og-density-header-height": "30px", "--og-density-footer-height": "28px", "--og-font-size": "12px" }, Vi = { "--og-density-row-height": "36px", "--og-density-header-height": "38px", "--og-density-footer-height": "36px", "--og-font-size": "13px" }, Wi = { "--og-density-row-height": "40px", "--og-density-header-height": "44px", "--og-density-footer-height": "40px", "--og-font-size": "14px" }, Ki = { "--og-density-row-height": "56px", "--og-density-header-height": "48px", "--og-density-footer-height": "48px", "--og-font-size": "15px" }, Ui = { "--og-density-row-height": "44px", "--og-density-header-height": "44px", "--og-density-footer-height": "44px", "--og-font-size": "13px" }, ji = [["compact", Ni], ["comfortable", Vi], ["spacious", Wi], ["gallery", Ki], ["compact-touch", Ui]], Ht = new Pi();
1573
- for (const [r, e] of ji) Ht.registerBuiltin(r, e);
1574
- const Pt = /* @__PURE__ */ new Set(["--og-texture-bg", "--og-texture-size", "--og-texture-opacity", "--og-texture-seam", "--og-texture-zone"]), Je = 0.1;
1575
- class qi extends zt {
1572
+ const Ni = { "--og-density-row-height": "28px", "--og-density-header-height": "30px", "--og-density-footer-height": "28px", "--og-font-size": "12px" }, Vi = { "--og-density-row-height": "36px", "--og-density-header-height": "38px", "--og-density-footer-height": "36px", "--og-font-size": "13px" }, Wi = { "--og-density-row-height": "40px", "--og-density-header-height": "44px", "--og-density-footer-height": "40px", "--og-font-size": "14px" }, Ki = { "--og-density-row-height": "56px", "--og-density-header-height": "48px", "--og-density-footer-height": "48px", "--og-font-size": "15px" }, Ui = { "--og-density-row-height": "44px", "--og-density-header-height": "44px", "--og-density-footer-height": "44px", "--og-font-size": "13px" }, ji = [["compact", Ni], ["comfortable", Vi], ["spacious", Wi], ["gallery", Ki], ["compact-touch", Ui]], Bt = new Pi();
1573
+ for (const [r, e] of ji) Bt.registerBuiltin(r, e);
1574
+ const Ht = /* @__PURE__ */ new Set(["--og-texture-bg", "--og-texture-size", "--og-texture-opacity", "--og-texture-seam", "--og-texture-zone"]), Ze = 0.1;
1575
+ class qi extends $t {
1576
1576
  constructor() {
1577
- super({ id: "texture", attrName: "data-og-texture", namespace: Pt });
1577
+ super({ id: "texture", attrName: "data-og-texture", namespace: Ht });
1578
1578
  }
1579
1579
  _guardrails(e, t) {
1580
1580
  const s = { ...t }, i = [], o = s["--og-texture-opacity"];
1581
1581
  if (o != null) {
1582
1582
  const n = parseFloat(String(o));
1583
- !Number.isNaN(n) && n > Je && (s["--og-texture-opacity"] = String(Je), i.push(`--og-texture-opacity ${o} → ${Je} (질감 알파 정직 상한, 텍스트 아래 AA 안전, §9.5)`));
1583
+ !Number.isNaN(n) && n > Ze && (s["--og-texture-opacity"] = String(Ze), i.push(`--og-texture-opacity ${o} → ${Ze} (질감 알파 정직 상한, 텍스트 아래 AA 안전, §9.5)`));
1584
1584
  }
1585
1585
  return { delta: s, warnings: i };
1586
1586
  }
1587
1587
  }
1588
- const Gi = { "--og-texture-bg": "repeating-linear-gradient(0deg, rgba(var(--og-texture-ink),0.05) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(var(--og-texture-ink),0.04) 0 1px, transparent 1px 4px)", "--og-texture-size": "4px 4px", "--og-texture-opacity": "0.06", "--og-texture-zone": "chrome" }, Yi = { "--og-texture-bg": "radial-gradient(rgba(var(--og-texture-ink),0.05) 0.5px, transparent 0.5px)", "--og-texture-size": "3px 3px", "--og-texture-opacity": "0.05", "--og-texture-zone": "chrome" }, Xi = { "--og-texture-bg": "repeating-linear-gradient(0deg, rgba(var(--og-texture-ink),0.06) 0 1px, transparent 1px 8px), repeating-linear-gradient(90deg, rgba(var(--og-texture-ink),0.06) 0 1px, transparent 1px 8px)", "--og-texture-size": "8px 8px", "--og-texture-opacity": "0.07", "--og-texture-seam": "var(--og-texture-ink)", "--og-texture-zone": "chrome" }, Zi = [["linen", Gi], ["paper-grain", Yi], ["graph", Xi]], Nt = new qi();
1589
- for (const [r, e] of Zi) Nt.registerBuiltin(r, e);
1588
+ const Gi = { "--og-texture-bg": "repeating-linear-gradient(0deg, rgba(var(--og-texture-ink),0.05) 0 1px, transparent 1px 4px), repeating-linear-gradient(90deg, rgba(var(--og-texture-ink),0.04) 0 1px, transparent 1px 4px)", "--og-texture-size": "4px 4px", "--og-texture-opacity": "0.06", "--og-texture-zone": "chrome" }, Yi = { "--og-texture-bg": "radial-gradient(rgba(var(--og-texture-ink),0.05) 0.5px, transparent 0.5px)", "--og-texture-size": "3px 3px", "--og-texture-opacity": "0.05", "--og-texture-zone": "chrome" }, Xi = { "--og-texture-bg": "repeating-linear-gradient(0deg, rgba(var(--og-texture-ink),0.06) 0 1px, transparent 1px 8px), repeating-linear-gradient(90deg, rgba(var(--og-texture-ink),0.06) 0 1px, transparent 1px 8px)", "--og-texture-size": "8px 8px", "--og-texture-opacity": "0.07", "--og-texture-seam": "var(--og-texture-ink)", "--og-texture-zone": "chrome" }, Zi = [["linen", Gi], ["paper-grain", Yi], ["graph", Xi]], Pt = new qi();
1589
+ for (const [r, e] of Zi) Pt.registerBuiltin(r, e);
1590
1590
  class Qi {
1591
1591
  constructor(e) {
1592
1592
  this._autoHeightWarned = false, this._deps = e;
@@ -1651,7 +1651,7 @@ class Qi {
1651
1651
  }
1652
1652
  }
1653
1653
  let Ji = 0;
1654
- function Vt() {
1654
+ function Nt() {
1655
1655
  return `og-r-${++Ji}`;
1656
1656
  }
1657
1657
  class eo {
@@ -1666,7 +1666,7 @@ class eo {
1666
1666
  }
1667
1667
  setData(e) {
1668
1668
  this._data = e.map((t) => {
1669
- const s = Vt(), i = { ...t, [this._idField]: s };
1669
+ const s = Nt(), i = { ...t, [this._idField]: s };
1670
1670
  return this._meta.set(s, { state: "none", rowId: s }), i;
1671
1671
  }), this._original = this._data.map((t) => ({ ...t })), this._rebuildIdMap(), this._displayIndexes = this._data.map((t, s) => s);
1672
1672
  }
@@ -1689,7 +1689,7 @@ class eo {
1689
1689
  return this._data.length;
1690
1690
  }
1691
1691
  addRow(e, t = "last") {
1692
- const s = Vt(), i = { ...e, [this._idField]: s };
1692
+ const s = Nt(), i = { ...e, [this._idField]: s };
1693
1693
  if (this._meta.set(s, { state: "added", rowId: s }), t === "last") {
1694
1694
  const o = this._data.push(i) - 1;
1695
1695
  this._idMap.set(s, o), this._displayIndexes.push(o);
@@ -1891,13 +1891,13 @@ function to(r, e) {
1891
1891
  return true;
1892
1892
  }
1893
1893
  }
1894
- function Be(r) {
1894
+ function $e(r) {
1895
1895
  return r && r._isGroup === true;
1896
1896
  }
1897
- function Wt(r, e, t = [], s = /* @__PURE__ */ new Set(), i, o) {
1898
- return e.length ? Kt(r, e, 0, t, s, "", i, o) : [];
1897
+ function Vt(r, e, t = [], s = /* @__PURE__ */ new Set(), i, o) {
1898
+ return e.length ? Wt(r, e, 0, t, s, "", i, o) : [];
1899
1899
  }
1900
- function Kt(r, e, t, s, i, o, n, a) {
1900
+ function Wt(r, e, t, s, i, o, n, a) {
1901
1901
  const l = e[t], d = /* @__PURE__ */ new Map();
1902
1902
  for (const h of r) {
1903
1903
  const u = a ? a(h, e.slice(t)) : h[l];
@@ -1906,10 +1906,10 @@ function Kt(r, e, t, s, i, o, n, a) {
1906
1906
  const c = [];
1907
1907
  for (const [h, u] of d) {
1908
1908
  const g = `${o}__${l}:${h}`, p = i.has(g);
1909
- let f;
1910
- t < e.length - 1 ? f = Kt(u, e, t + 1, s, i, g, n, a) : f = u;
1911
- const { summary: m, summaryFmt: _ } = so(u, s), w = io(u, n);
1912
- c.push({ _isGroup: true, _groupField: l, _groupValue: h, _groupLabel: h == null ? B("group.nullLabel") : String(h), _depth: t, _expanded: p, _childCount: u.length, _summary: m, _summaryFmt: _, _states: w, children: f });
1909
+ let _;
1910
+ t < e.length - 1 ? _ = Wt(u, e, t + 1, s, i, g, n, a) : _ = u;
1911
+ const { summary: m, summaryFmt: f } = so(u, s), w = io(u, n);
1912
+ c.push({ _isGroup: true, _groupField: l, _groupValue: h, _groupLabel: h == null ? $("group.nullLabel") : String(h), _depth: t, _expanded: p, _childCount: u.length, _summary: m, _summaryFmt: f, _states: w, children: _ });
1913
1913
  }
1914
1914
  return c;
1915
1915
  }
@@ -1948,25 +1948,25 @@ function oo(r, e) {
1948
1948
  const t = e.includes("#") || e.includes(","), s = e.match(/\.(\d+)$/), i = s ? parseInt(s[1], 10) : /^\d+$/.test(e) ? parseInt(e, 10) : 0, o = Math.abs(r).toFixed(i), [n = "0", a] = o.split("."), l = t ? n.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : n, d = a !== void 0 ? `${l}.${a}` : l;
1949
1949
  return r < 0 ? `-${d}` : d;
1950
1950
  }
1951
- function Ut(r) {
1951
+ function Kt(r) {
1952
1952
  const e = [];
1953
- for (const t of r) if (e.push(t), t._expanded) for (const s of t.children) Be(s) ? e.push(...Ut([s])) : e.push(s);
1953
+ for (const t of r) if (e.push(t), t._expanded) for (const s of t.children) $e(s) ? e.push(...Kt([s])) : e.push(s);
1954
1954
  return e;
1955
1955
  }
1956
- function jt(r, e = "") {
1956
+ function Ut(r, e = "") {
1957
1957
  const t = [];
1958
1958
  for (const s of r) {
1959
1959
  const i = `${e}__${s._groupField}:${s._groupValue}`;
1960
1960
  t.push(i);
1961
- const o = s.children.filter((n) => Be(n));
1962
- o.length && t.push(...jt(o, i));
1961
+ const o = s.children.filter((n) => $e(n));
1962
+ o.length && t.push(...Ut(o, i));
1963
1963
  }
1964
1964
  return t;
1965
1965
  }
1966
- function qt(r) {
1966
+ function jt(r) {
1967
1967
  return r != null && r._isTree === true;
1968
1968
  }
1969
- function et(r, e, t = /* @__PURE__ */ new Set()) {
1969
+ function Qe(r, e, t = /* @__PURE__ */ new Set()) {
1970
1970
  const { idField: s, parentIdField: i, expandOnLoad: o = false } = e, n = /* @__PURE__ */ new Map(), a = [];
1971
1971
  for (const c of r) {
1972
1972
  const h = c[s], u = { _isTree: true, _treeId: h, _treeParentId: c[i], _depth: 0, _expanded: o || t.has(h), _hasChildren: false, _childCount: 0, _isLastChild: false, _ancestorHasMore: [], data: c, children: [] };
@@ -1981,7 +1981,7 @@ function et(r, e, t = /* @__PURE__ */ new Set()) {
1981
1981
  }
1982
1982
  }
1983
1983
  function l(c, h) {
1984
- for (const u of c) u._depth = h, u._childCount = Gt(u), l(u.children, h + 1);
1984
+ for (const u of c) u._depth = h, u._childCount = qt(u), l(u.children, h + 1);
1985
1985
  }
1986
1986
  l(a, 0);
1987
1987
  function d(c, h) {
@@ -1992,22 +1992,22 @@ function et(r, e, t = /* @__PURE__ */ new Set()) {
1992
1992
  }
1993
1993
  return d(a, []), a;
1994
1994
  }
1995
- function Gt(r) {
1995
+ function qt(r) {
1996
1996
  let e = r.children.length;
1997
- for (const t of r.children) e += Gt(t);
1997
+ for (const t of r.children) e += qt(t);
1998
1998
  return e;
1999
1999
  }
2000
- function Yt(r) {
2000
+ function Gt(r) {
2001
2001
  const e = [];
2002
- for (const t of r) e.push(t), t._expanded && t.children.length > 0 && e.push(...Yt(t.children));
2002
+ for (const t of r) e.push(t), t._expanded && t.children.length > 0 && e.push(...Gt(t.children));
2003
2003
  return e;
2004
2004
  }
2005
2005
  function ro(r, e) {
2006
2006
  r.has(e) ? r.delete(e) : r.add(e);
2007
2007
  }
2008
- function tt(r) {
2008
+ function Je(r) {
2009
2009
  const e = [];
2010
- for (const t of r) e.push(t._treeId), t.children.length && e.push(...tt(t.children));
2010
+ for (const t of r) e.push(t._treeId), t.children.length && e.push(...Je(t.children));
2011
2011
  return e;
2012
2012
  }
2013
2013
  class no {
@@ -2032,8 +2032,8 @@ class no {
2032
2032
  if (t == null) return { kind: "data" };
2033
2033
  if (t._isDetailFiller === true) return { kind: "detailFiller", rowId: t._rowId };
2034
2034
  if (t._isDetailHead === true) return { kind: "detailHead", rowId: t._rowId };
2035
- if (Be(t)) return { kind: "group" };
2036
- if (qt(t)) return { kind: "tree", rowId: (_a = t.data) == null ? void 0 : _a[this._d.rowIdField] };
2035
+ if ($e(t)) return { kind: "group" };
2036
+ if (jt(t)) return { kind: "tree", rowId: (_a = t.data) == null ? void 0 : _a[this._d.rowIdField] };
2037
2037
  const s = t[this._d.rowIdField], i = this._d.getDataLayer().getDataIndexByRowId(s), o = { kind: "data", rowId: s };
2038
2038
  return i !== void 0 && (o.dataIndex = i), this._backing || (o.displayIndex = e), o;
2039
2039
  }
@@ -2059,8 +2059,8 @@ class no {
2059
2059
  const t = /* @__PURE__ */ new Map();
2060
2060
  for (let s = 0; s < e.length; s++) {
2061
2061
  const i = e[s];
2062
- if (i == null || Be(i) || i._isDetailHead === true || i._isDetailFiller === true) continue;
2063
- const n = (_a = qt(i) ? i.data : i) == null ? void 0 : _a[this._d.rowIdField];
2062
+ if (i == null || $e(i) || i._isDetailHead === true || i._isDetailFiller === true) continue;
2063
+ const n = (_a = jt(i) ? i.data : i) == null ? void 0 : _a[this._d.rowIdField];
2064
2064
  n != null && t.set(n, s);
2065
2065
  }
2066
2066
  this._revIndex = t, this._revIndexSrc = e;
@@ -2126,7 +2126,7 @@ class ao {
2126
2126
  this._selectedRows.clear(), this._checkedRows.clear();
2127
2127
  }
2128
2128
  }
2129
- function Z(r, e) {
2129
+ function Y(r, e) {
2130
2130
  return `${r}:${e}`;
2131
2131
  }
2132
2132
  function fe(r) {
@@ -2134,7 +2134,7 @@ function fe(r) {
2134
2134
  return e === -1 ? { rowId: r, field: "" } : { rowId: r.slice(0, e), field: r.slice(e + 1) };
2135
2135
  }
2136
2136
  const lo = /* @__PURE__ */ new Set(["#ERR", "#REF", "#CYCLE", "#DIV0", "#NAME", "#VALUE", "#NUM"]);
2137
- function He(r) {
2137
+ function ze(r) {
2138
2138
  return typeof r == "string" && lo.has(r) ? r : null;
2139
2139
  }
2140
2140
  const co = 500, ho = { "#REF": "formulaError.ref", "#CYCLE": "formulaError.cycle", "#VALUE": "formulaError.value", "#DIV0": "formulaError.div0", "#NAME": "formulaError.name", "#NUM": "formulaError.num" };
@@ -2215,14 +2215,14 @@ class uo {
2215
2215
  const s = this._deps.getFlatModel().resolveFlatRow(e);
2216
2216
  if (s.kind !== "data" || !s.rowId) return [];
2217
2217
  const i = this._deps.getFlatModel();
2218
- return this._deps.getRecalc().graph.getPrecedents(Z(s.rowId, t)).map(fe).map(({ rowId: o, field: n }) => ({ rowIndex: i.flatIndexOfRowId(o), field: n }));
2218
+ return this._deps.getRecalc().graph.getPrecedents(Y(s.rowId, t)).map(fe).map(({ rowId: o, field: n }) => ({ rowIndex: i.flatIndexOfRowId(o), field: n }));
2219
2219
  }
2220
2220
  recalculate() {
2221
2221
  this.afterRecalc(this._deps.getRecalc().recalculateAll());
2222
2222
  }
2223
2223
  recalculateCell(e, t) {
2224
2224
  const s = this._deps.getFlatModel().resolveFlatRow(e);
2225
- s.kind !== "data" || !s.rowId || this.afterRecalc(this._deps.getRecalc().onValuesChanged([Z(s.rowId, t)]));
2225
+ s.kind !== "data" || !s.rowId || this.afterRecalc(this._deps.getRecalc().onValuesChanged([Y(s.rowId, t)]));
2226
2226
  }
2227
2227
  offsetFormula(e, t, s, i) {
2228
2228
  return this._deps.getRecalc().offsetFormula(e, t, s, i);
@@ -2237,8 +2237,8 @@ class uo {
2237
2237
  this.afterRecalc(this._deps.getRecalc().recalcRangeBearing());
2238
2238
  }
2239
2239
  }
2240
- const st = /^[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?$/;
2241
- function Xt(r) {
2240
+ const et = /^[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?$/;
2241
+ function Yt(r) {
2242
2242
  const e = r.trim(), t = /^([+-]?)(\d*)(?:\.(\d*))?[eE]([+-]?\d+)$/.exec(e);
2243
2243
  if (!t) return e;
2244
2244
  const [, s, i, o = "", n] = t, a = i || "0", l = parseInt(n, 10);
@@ -2430,7 +2430,7 @@ class go {
2430
2430
  }
2431
2431
  const t = this.src.slice(e, this.pos);
2432
2432
  if (!t || t === ".") throw new SyntaxError(`FormulaParser: 숫자를 기대했지만 '${this.peekChar() || "EOF"}' (위치 ${e})`);
2433
- return { t: "num", v: Xt(t) };
2433
+ return { t: "num", v: Yt(t) };
2434
2434
  }
2435
2435
  }
2436
2436
  function fo(r) {
@@ -2446,7 +2446,7 @@ function _o(r) {
2446
2446
  }
2447
2447
  return t || "A";
2448
2448
  }
2449
- function it(r, e) {
2449
+ function tt(r, e) {
2450
2450
  const { accessor: t, host: s, refMode: i } = e, o = fo(r.colLetters), a = t.visibleFields()[o];
2451
2451
  if (a === void 0) return null;
2452
2452
  const l = r.row - 1, d = t.rowIdAtFlat(l);
@@ -2462,11 +2462,11 @@ function mo(r, e, t, s = "stable") {
2462
2462
  function o(n) {
2463
2463
  switch (n.t) {
2464
2464
  case "rawRef": {
2465
- const a = it(n, i);
2465
+ const a = tt(n, i);
2466
2466
  return a ? { t: "ref", ref: a } : { t: "error", code: "#REF" };
2467
2467
  }
2468
2468
  case "rawRange": {
2469
- const a = it(n.a, i), l = it(n.b, i);
2469
+ const a = tt(n.a, i), l = tt(n.b, i);
2470
2470
  return !a || !l ? { t: "error", code: "#REF" } : { t: "range", ref: { a, b: l } };
2471
2471
  }
2472
2472
  case "call":
@@ -2481,89 +2481,89 @@ function mo(r, e, t, s = "stable") {
2481
2481
  }
2482
2482
  return o(r);
2483
2483
  }
2484
- function Fe(r) {
2484
+ function Se(r) {
2485
2485
  switch (r.t) {
2486
2486
  case "range":
2487
2487
  return true;
2488
2488
  case "call":
2489
- return r.args.some(Fe);
2489
+ return r.args.some(Se);
2490
2490
  case "unary":
2491
- return Fe(r.arg);
2491
+ return Se(r.arg);
2492
2492
  case "bin":
2493
- return Fe(r.left) || Fe(r.right);
2493
+ return Se(r.left) || Se(r.right);
2494
2494
  default:
2495
2495
  return false;
2496
2496
  }
2497
2497
  }
2498
- class I extends Error {
2498
+ class L extends Error {
2499
2499
  constructor(e) {
2500
2500
  super(e), this.code = e;
2501
2501
  }
2502
2502
  }
2503
- function Zt(r, e, t, s = {}) {
2503
+ function Xt(r, e, t, s = {}) {
2504
2504
  const i = /* @__PURE__ */ new Set(), o = { v: false }, n = s.divisionPrecision ?? 30;
2505
2505
  try {
2506
- return { value: N(r, e, t, i, o, n, s.functions, s.now), error: null, approx: o.v, touched: i };
2506
+ return { value: P(r, e, t, i, o, n, s.functions, s.now), error: null, approx: o.v, touched: i };
2507
2507
  } catch (a) {
2508
- const l = a instanceof I ? a.code : "#ERR";
2508
+ const l = a instanceof L ? a.code : "#ERR";
2509
2509
  return { value: l, error: l, approx: o.v, touched: i };
2510
2510
  }
2511
2511
  }
2512
- function ot(r, e, t) {
2512
+ function st(r, e, t) {
2513
2513
  if (r.kind === "abs") return r.rowId;
2514
2514
  const s = t.flatIndexOfRowId(e.rowId);
2515
2515
  return s === -1 ? null : t.rowIdAtFlat(s + r.dRow);
2516
2516
  }
2517
2517
  function wo(r, e, t, s) {
2518
- const i = ot(r, e, t);
2519
- if (i === null || !t.hasRow(i)) throw new I("#REF");
2520
- if (!t.hasField(r.field)) throw new I("#REF");
2521
- s.add(Z(i, r.field));
2522
- const o = t.getCellValue(i, r.field), n = He(o);
2523
- if (n) throw new I(n);
2518
+ const i = st(r, e, t);
2519
+ if (i === null || !t.hasRow(i)) throw new L("#REF");
2520
+ if (!t.hasField(r.field)) throw new L("#REF");
2521
+ s.add(Y(i, r.field));
2522
+ const o = t.getCellValue(i, r.field), n = ze(o);
2523
+ if (n) throw new L(n);
2524
2524
  return o;
2525
2525
  }
2526
2526
  function yo(r, e, t, s) {
2527
- const i = ot(r.a, e, t), o = ot(r.b, e, t);
2528
- if (i === null || o === null || !t.hasRow(i) || !t.hasRow(o)) throw new I("#REF");
2529
- if (!t.hasField(r.a.field) || !t.hasField(r.b.field)) throw new I("#REF");
2527
+ const i = st(r.a, e, t), o = st(r.b, e, t);
2528
+ if (i === null || o === null || !t.hasRow(i) || !t.hasRow(o)) throw new L("#REF");
2529
+ if (!t.hasField(r.a.field) || !t.hasField(r.b.field)) throw new L("#REF");
2530
2530
  const n = t.displayedRowIds(), a = n.indexOf(i), l = n.indexOf(o);
2531
- if (a === -1 || l === -1) throw new I("#REF");
2532
- const d = Math.min(a, l), c = Math.max(a, l), h = n.slice(d, c + 1), u = t.visibleFields(), g = u.indexOf(r.a.field), p = u.indexOf(r.b.field), [f, m] = g === -1 || p === -1 ? [null, null] : [Math.min(g, p), Math.max(g, p)], _ = [];
2531
+ if (a === -1 || l === -1) throw new L("#REF");
2532
+ const d = Math.min(a, l), c = Math.max(a, l), h = n.slice(d, c + 1), u = t.visibleFields(), g = u.indexOf(r.a.field), p = u.indexOf(r.b.field), [_, m] = g === -1 || p === -1 ? [null, null] : [Math.min(g, p), Math.max(g, p)], f = [];
2533
2533
  for (const w of h) {
2534
- if (f === null || m === null) {
2535
- s.add(Z(w, r.a.field)), _.push(t.getCellValue(w, r.a.field));
2534
+ if (_ === null || m === null) {
2535
+ s.add(Y(w, r.a.field)), f.push(t.getCellValue(w, r.a.field));
2536
2536
  continue;
2537
2537
  }
2538
- for (let y = f; y <= m; y++) {
2538
+ for (let y = _; y <= m; y++) {
2539
2539
  const R = u[y];
2540
- s.add(Z(w, R)), _.push(t.getCellValue(w, R));
2540
+ s.add(Y(w, R)), f.push(t.getCellValue(w, R));
2541
2541
  }
2542
2542
  }
2543
- return _;
2543
+ return f;
2544
2544
  }
2545
- function D(r) {
2545
+ function O(r) {
2546
2546
  if (r == null || r === "") return v.zero();
2547
2547
  if (r instanceof v) return r;
2548
2548
  if (typeof r == "boolean") return v.from(r ? "1" : "0");
2549
2549
  if (typeof r == "number") return v.from(r);
2550
2550
  if (typeof r == "string") {
2551
2551
  const e = r.trim();
2552
- if (!st.test(e)) throw new I("#VALUE");
2553
- return v.from(Xt(e));
2552
+ if (!et.test(e)) throw new L("#VALUE");
2553
+ return v.from(Yt(e));
2554
2554
  }
2555
- throw new I("#VALUE");
2555
+ throw new L("#VALUE");
2556
2556
  }
2557
2557
  function xe(r) {
2558
2558
  return r == null ? "" : r instanceof v ? r.toString() : typeof r == "boolean" ? r ? "TRUE" : "FALSE" : String(r);
2559
2559
  }
2560
- function Ae(r) {
2561
- return typeof r == "boolean" ? r : r instanceof v ? !r.isZero() : typeof r == "number" ? r !== 0 : typeof r == "string" ? r.trim().toUpperCase() === "TRUE" || st.test(r.trim()) && r.trim() !== "0" : false;
2560
+ function Fe(r) {
2561
+ return typeof r == "boolean" ? r : r instanceof v ? !r.isZero() : typeof r == "number" ? r !== 0 : typeof r == "string" ? r.trim().toUpperCase() === "TRUE" || et.test(r.trim()) && r.trim() !== "0" : false;
2562
2562
  }
2563
2563
  function vo(r) {
2564
2564
  return r <= 0 ? v.from("1") : v.from("0." + "0".repeat(r - 1) + "1");
2565
2565
  }
2566
- function Qt(r, e, t) {
2566
+ function Zt(r, e, t) {
2567
2567
  const s = Math.max(e, 0), i = r.toFixed(s + 20), o = i.startsWith("-"), n = o ? i.slice(1) : i, [a, l = ""] = n.split("."), d = l.slice(0, s), c = l.slice(s), h = /[1-9]/.test(c), u = (o ? "-" : "") + a + (s > 0 ? "." + d : "");
2568
2568
  let g = v.from(u);
2569
2569
  if (h && t === "up") {
@@ -2572,15 +2572,15 @@ function Qt(r, e, t) {
2572
2572
  }
2573
2573
  return g;
2574
2574
  }
2575
- function Jt(r) {
2576
- const e = Qt(r, 0, "down");
2575
+ function Qt(r) {
2576
+ const e = Zt(r, 0, "down");
2577
2577
  return r.isNeg() && !r.eq(e) ? e.sub("1") : e;
2578
2578
  }
2579
2579
  function bo(r, e) {
2580
2580
  return v.from(r.toFixed(Math.max(e, 0)));
2581
2581
  }
2582
- function es(r, e, t, s) {
2583
- const i = Jt(e);
2582
+ function Jt(r, e, t, s) {
2583
+ const i = Qt(e);
2584
2584
  if (e.eq(i)) {
2585
2585
  const o = Number(i.toFixed(0));
2586
2586
  if (!Number.isFinite(o) || Math.abs(o) > 1e5) return s.v = true, v.from(String(Math.pow(r.toNumber(), e.toNumber())));
@@ -2588,7 +2588,7 @@ function es(r, e, t, s) {
2588
2588
  let n = v.one();
2589
2589
  for (let a = 0; a < Math.abs(o); a++) n = n.mul(r);
2590
2590
  if (o < 0) {
2591
- if (n.isZero()) throw new I("#DIV0");
2591
+ if (n.isZero()) throw new L("#DIV0");
2592
2592
  n = v.one().div(n, t);
2593
2593
  }
2594
2594
  return n;
@@ -2598,23 +2598,23 @@ function es(r, e, t, s) {
2598
2598
  function xo(r, e, t, s, i) {
2599
2599
  switch (r) {
2600
2600
  case "+":
2601
- return D(e).add(D(t));
2601
+ return O(e).add(O(t));
2602
2602
  case "-":
2603
- return D(e).sub(D(t));
2603
+ return O(e).sub(O(t));
2604
2604
  case "*":
2605
- return D(e).mul(D(t));
2605
+ return O(e).mul(O(t));
2606
2606
  case "/": {
2607
- const o = D(t);
2608
- if (o.isZero()) throw new I("#DIV0");
2609
- return D(e).div(o, s);
2607
+ const o = O(t);
2608
+ if (o.isZero()) throw new L("#DIV0");
2609
+ return O(e).div(o, s);
2610
2610
  }
2611
2611
  case "%": {
2612
- const o = D(t);
2613
- if (o.isZero()) throw new I("#DIV0");
2614
- return D(e).mod(o);
2612
+ const o = O(t);
2613
+ if (o.isZero()) throw new L("#DIV0");
2614
+ return O(e).mod(o);
2615
2615
  }
2616
2616
  case "^":
2617
- return es(D(e), D(t), s, i);
2617
+ return Jt(O(e), O(t), s, i);
2618
2618
  case "&":
2619
2619
  return xe(e) + xe(t);
2620
2620
  case "=":
@@ -2626,30 +2626,30 @@ function xo(r, e, t, s, i) {
2626
2626
  case "<=":
2627
2627
  case ">":
2628
2628
  case ">=": {
2629
- const o = D(e), n = D(t);
2629
+ const o = O(e), n = O(t);
2630
2630
  return r === "<" ? o.lt(n) : r === "<=" ? o.lte(n) : r === ">" ? o.gt(n) : o.gte(n);
2631
2631
  }
2632
2632
  default:
2633
- throw new I("#ERR");
2633
+ throw new L("#ERR");
2634
2634
  }
2635
2635
  }
2636
2636
  function Co(r, e) {
2637
2637
  try {
2638
- return D(r).eq(D(e));
2638
+ return O(r).eq(O(e));
2639
2639
  } catch {
2640
2640
  return xe(r) === xe(e);
2641
2641
  }
2642
2642
  }
2643
- function ts(r, e) {
2644
- return r.t === "range" ? yo(r.ref, e.host, e.accessor, e.touched) : [N(r, e.host, e.accessor, e.touched, e.approxBox, e.prec, e.functions, e.now)];
2643
+ function es(r, e) {
2644
+ return r.t === "range" ? yo(r.ref, e.host, e.accessor, e.touched) : [P(r, e.host, e.accessor, e.touched, e.approxBox, e.prec, e.functions, e.now)];
2645
2645
  }
2646
2646
  function _e(r, e) {
2647
2647
  const t = [];
2648
- for (const s of r) for (const i of ts(s, e)) He(i) || t.push(i);
2648
+ for (const s of r) for (const i of es(s, e)) ze(i) || t.push(i);
2649
2649
  return t;
2650
2650
  }
2651
- function Pe(r) {
2652
- return r == null || r === "" ? false : r instanceof v || typeof r == "number" ? true : typeof r == "string" ? st.test(r.trim()) : false;
2651
+ function Be(r) {
2652
+ return r == null || r === "" ? false : r instanceof v || typeof r == "number" ? true : typeof r == "string" ? et.test(r.trim()) : false;
2653
2653
  }
2654
2654
  function Ro(r, e, t) {
2655
2655
  if (t.functions) {
@@ -2659,103 +2659,103 @@ function Ro(r, e, t) {
2659
2659
  switch (r) {
2660
2660
  case "SUM": {
2661
2661
  const s = _e(e, t);
2662
- return v.sum(s.map((i) => D(i)));
2662
+ return v.sum(s.map((i) => O(i)));
2663
2663
  }
2664
2664
  case "AVG":
2665
2665
  case "AVERAGE": {
2666
- const i = _e(e, t).filter((o) => o != null && o !== "").map((o) => D(o));
2667
- if (i.length === 0) throw new I("#ERR");
2666
+ const i = _e(e, t).filter((o) => o != null && o !== "").map((o) => O(o));
2667
+ if (i.length === 0) throw new L("#ERR");
2668
2668
  return v.avg(i, t.prec);
2669
2669
  }
2670
2670
  case "MIN": {
2671
- const s = _e(e, t).filter(Pe);
2672
- if (s.length === 0) throw new I("#ERR");
2673
- return v.min(s.map((i) => D(i)));
2671
+ const s = _e(e, t).filter(Be);
2672
+ if (s.length === 0) throw new L("#ERR");
2673
+ return v.min(s.map((i) => O(i)));
2674
2674
  }
2675
2675
  case "MAX": {
2676
- const s = _e(e, t).filter(Pe);
2677
- if (s.length === 0) throw new I("#ERR");
2678
- return v.max(s.map((i) => D(i)));
2676
+ const s = _e(e, t).filter(Be);
2677
+ if (s.length === 0) throw new L("#ERR");
2678
+ return v.max(s.map((i) => O(i)));
2679
2679
  }
2680
2680
  case "COUNT": {
2681
2681
  const s = _e(e, t);
2682
- return v.from(String(s.filter(Pe).length));
2682
+ return v.from(String(s.filter(Be).length));
2683
2683
  }
2684
2684
  case "COUNTA": {
2685
2685
  const s = _e(e, t);
2686
2686
  return v.from(String(s.filter((i) => i != null && i !== "").length));
2687
2687
  }
2688
2688
  case "IF": {
2689
- if (e.length < 2) throw new I("#ERR");
2690
- const s = N(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now);
2691
- return Ae(s) ? N(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now) : e.length > 2 ? N(e[2], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now) : false;
2689
+ if (e.length < 2) throw new L("#ERR");
2690
+ const s = P(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now);
2691
+ return Fe(s) ? P(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now) : e.length > 2 ? P(e[2], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now) : false;
2692
2692
  }
2693
2693
  case "AND":
2694
- return e.every((s) => Ae(N(s, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)));
2694
+ return e.every((s) => Fe(P(s, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)));
2695
2695
  case "OR":
2696
- return e.some((s) => Ae(N(s, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)));
2696
+ return e.some((s) => Fe(P(s, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)));
2697
2697
  case "NOT":
2698
- if (e.length !== 1) throw new I("#ERR");
2699
- return !Ae(N(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now));
2698
+ if (e.length !== 1) throw new L("#ERR");
2699
+ return !Fe(P(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now));
2700
2700
  case "ROUND": {
2701
- if (e.length !== 2) throw new I("#ERR");
2702
- const s = D(N(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)), i = Number(D(N(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)).toFixed(0));
2701
+ if (e.length !== 2) throw new L("#ERR");
2702
+ const s = O(P(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)), i = Number(O(P(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)).toFixed(0));
2703
2703
  return bo(s, i);
2704
2704
  }
2705
2705
  case "ROUNDUP":
2706
2706
  case "ROUNDDOWN": {
2707
- if (e.length !== 2) throw new I("#ERR");
2708
- const s = D(N(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)), i = Number(D(N(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)).toFixed(0));
2709
- return Qt(s, i, r === "ROUNDUP" ? "up" : "down");
2707
+ if (e.length !== 2) throw new L("#ERR");
2708
+ const s = O(P(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)), i = Number(O(P(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)).toFixed(0));
2709
+ return Zt(s, i, r === "ROUNDUP" ? "up" : "down");
2710
2710
  }
2711
2711
  case "ABS": {
2712
- if (e.length !== 1) throw new I("#ERR");
2713
- return D(N(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)).abs();
2712
+ if (e.length !== 1) throw new L("#ERR");
2713
+ return O(P(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)).abs();
2714
2714
  }
2715
2715
  case "INT": {
2716
- if (e.length !== 1) throw new I("#ERR");
2717
- return Jt(D(N(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)));
2716
+ if (e.length !== 1) throw new L("#ERR");
2717
+ return Qt(O(P(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)));
2718
2718
  }
2719
2719
  case "MOD": {
2720
- if (e.length !== 2) throw new I("#ERR");
2721
- const s = D(N(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)), i = D(N(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now));
2722
- if (i.isZero()) throw new I("#DIV0");
2720
+ if (e.length !== 2) throw new L("#ERR");
2721
+ const s = O(P(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)), i = O(P(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now));
2722
+ if (i.isZero()) throw new L("#DIV0");
2723
2723
  return s.mod(i);
2724
2724
  }
2725
2725
  case "POWER": {
2726
- if (e.length !== 2) throw new I("#ERR");
2727
- const s = D(N(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)), i = D(N(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now));
2728
- return es(s, i, t.prec, t.approxBox);
2726
+ if (e.length !== 2) throw new L("#ERR");
2727
+ const s = O(P(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now)), i = O(P(e[1], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now));
2728
+ return Jt(s, i, t.prec, t.approxBox);
2729
2729
  }
2730
2730
  case "SQRT": {
2731
- if (e.length !== 1) throw new I("#ERR");
2732
- const s = D(N(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now));
2733
- if (s.isNeg()) throw new I("#NUM");
2731
+ if (e.length !== 1) throw new L("#ERR");
2732
+ const s = O(P(e[0], t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now));
2733
+ if (s.isNeg()) throw new L("#NUM");
2734
2734
  return t.approxBox.v = true, v.from(String(Math.sqrt(s.toNumber())));
2735
2735
  }
2736
2736
  case "CONCAT":
2737
- return e.map((s) => xe(N(s, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now))).join("");
2737
+ return e.map((s) => xe(P(s, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now))).join("");
2738
2738
  default:
2739
- throw new I("#NAME");
2739
+ throw new L("#NAME");
2740
2740
  }
2741
2741
  }
2742
2742
  function Mo(r, e, t) {
2743
2743
  const { min: s, max: i } = r.arity;
2744
- if (e.length < s || i !== "variadic" && e.length > i) throw new I("#ERR");
2745
- const o = e.map((a) => ({ scalar: () => N(a, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now), tryScalar: () => {
2744
+ if (e.length < s || i !== "variadic" && e.length > i) throw new L("#ERR");
2745
+ const o = e.map((a) => ({ scalar: () => P(a, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now), tryScalar: () => {
2746
2746
  try {
2747
- return { ok: true, value: N(a, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now) };
2747
+ return { ok: true, value: P(a, t.host, t.accessor, t.touched, t.approxBox, t.prec, t.functions, t.now) };
2748
2748
  } catch (l) {
2749
- return { ok: false, error: l instanceof I ? l.code : "#ERR" };
2749
+ return { ok: false, error: l instanceof L ? l.code : "#ERR" };
2750
2750
  }
2751
- }, list: () => ts(a, t) })), n = { prec: t.prec, now: t.now ?? (() => Date.now()), argCount: e.length, markApprox: () => {
2751
+ }, list: () => es(a, t) })), n = { prec: t.prec, now: t.now ?? (() => Date.now()), argCount: e.length, markApprox: () => {
2752
2752
  t.approxBox.v = true;
2753
2753
  }, fail: (a) => {
2754
- throw new I(a);
2755
- }, toNum: (a) => D(a), toBool: (a) => Ae(a), toStr: (a) => xe(a), isNumeric: (a) => Pe(a), collect: () => _e(e, t) };
2754
+ throw new L(a);
2755
+ }, toNum: (a) => O(a), toBool: (a) => Fe(a), toStr: (a) => xe(a), isNumeric: (a) => Be(a), collect: () => _e(e, t) };
2756
2756
  return r.evaluate(o, n);
2757
2757
  }
2758
- function N(r, e, t, s, i, o, n, a) {
2758
+ function P(r, e, t, s, i, o, n, a) {
2759
2759
  switch (r.t) {
2760
2760
  case "num":
2761
2761
  return v.from(r.v);
@@ -2764,33 +2764,33 @@ function N(r, e, t, s, i, o, n, a) {
2764
2764
  case "bool":
2765
2765
  return r.v;
2766
2766
  case "error":
2767
- throw new I(r.code);
2767
+ throw new L(r.code);
2768
2768
  case "field": {
2769
- if (!t.hasField(r.field)) throw new I("#REF");
2770
- s.add(Z(e.rowId, r.field));
2771
- const l = t.getCellValue(e.rowId, r.field), d = He(l);
2772
- if (d) throw new I(d);
2773
- return ss(l);
2769
+ if (!t.hasField(r.field)) throw new L("#REF");
2770
+ s.add(Y(e.rowId, r.field));
2771
+ const l = t.getCellValue(e.rowId, r.field), d = ze(l);
2772
+ if (d) throw new L(d);
2773
+ return ts(l);
2774
2774
  }
2775
2775
  case "ref": {
2776
2776
  const l = wo(r.ref, e, t, s);
2777
- return ss(l);
2777
+ return ts(l);
2778
2778
  }
2779
2779
  case "range":
2780
- throw new I("#VALUE");
2780
+ throw new L("#VALUE");
2781
2781
  case "call":
2782
2782
  return Ro(r.name, r.args, { host: e, accessor: t, touched: s, prec: o, approxBox: i, functions: n, now: a });
2783
2783
  case "unary": {
2784
- const l = D(N(r.arg, e, t, s, i, o, n, a));
2784
+ const l = O(P(r.arg, e, t, s, i, o, n, a));
2785
2785
  return r.op === "-" ? l.neg() : l;
2786
2786
  }
2787
2787
  case "bin":
2788
- return xo(r.op, N(r.left, e, t, s, i, o, n, a), N(r.right, e, t, s, i, o, n, a), o, i);
2788
+ return xo(r.op, P(r.left, e, t, s, i, o, n, a), P(r.right, e, t, s, i, o, n, a), o, i);
2789
2789
  default:
2790
- throw new I("#ERR");
2790
+ throw new L("#ERR");
2791
2791
  }
2792
2792
  }
2793
- function ss(r) {
2793
+ function ts(r) {
2794
2794
  return r == null ? null : r instanceof v || typeof r == "string" || typeof r == "boolean" ? r : typeof r == "number" ? v.from(r) : String(r);
2795
2795
  }
2796
2796
  class ko {
@@ -2798,16 +2798,16 @@ class ko {
2798
2798
  this._cells = /* @__PURE__ */ new Map();
2799
2799
  }
2800
2800
  setFormula(e, t, s) {
2801
- this._cells.set(Z(e, t), s);
2801
+ this._cells.set(Y(e, t), s);
2802
2802
  }
2803
2803
  getFormula(e, t) {
2804
- return this._cells.get(Z(e, t));
2804
+ return this._cells.get(Y(e, t));
2805
2805
  }
2806
2806
  clearFormula(e, t) {
2807
- this._cells.delete(Z(e, t));
2807
+ this._cells.delete(Y(e, t));
2808
2808
  }
2809
2809
  hasFormula(e, t) {
2810
- return this._cells.has(Z(e, t));
2810
+ return this._cells.has(Y(e, t));
2811
2811
  }
2812
2812
  getFormulaByKey(e) {
2813
2813
  return this._cells.get(e);
@@ -2906,7 +2906,7 @@ class Eo {
2906
2906
  return { order: n, cycles: l };
2907
2907
  }
2908
2908
  formulasReferencing(e, t) {
2909
- return t !== void 0 ? [...this._dependents.get(Z(e, t)) ?? []] : [...this._byRowId.get(e) ?? []];
2909
+ return t !== void 0 ? [...this._dependents.get(Y(e, t)) ?? []] : [...this._byRowId.get(e) ?? []];
2910
2910
  }
2911
2911
  formulasReferencingField(e) {
2912
2912
  return [...this._byField.get(e) ?? []];
@@ -2915,7 +2915,7 @@ class Eo {
2915
2915
  return [...this._precedents.keys()];
2916
2916
  }
2917
2917
  }
2918
- function rt(r, e, t) {
2918
+ function it(r, e, t) {
2919
2919
  let s;
2920
2920
  if (r.kind === "abs") s = r.rowId;
2921
2921
  else {
@@ -2933,9 +2933,9 @@ function So(r) {
2933
2933
  }
2934
2934
  const Fo = { "+": "+", "-": "-", "*": "*", "/": "/", "%": "%", "^": "^", "&": "&", "=": "=", "<>": "<>", "<": "<", "<=": "<=", ">": ">", ">=": ">=" };
2935
2935
  function Ao(r, e, t) {
2936
- return "=" + Le(r, e, t);
2936
+ return "=" + Ae(r, e, t);
2937
2937
  }
2938
- function Le(r, e, t) {
2938
+ function Ae(r, e, t) {
2939
2939
  switch (r.t) {
2940
2940
  case "num":
2941
2941
  return r.v;
@@ -2948,20 +2948,20 @@ function Le(r, e, t) {
2948
2948
  case "error":
2949
2949
  return "#REF!";
2950
2950
  case "ref":
2951
- return rt(r.ref, e, t);
2951
+ return it(r.ref, e, t);
2952
2952
  case "range":
2953
- return `${rt(r.ref.a, e, t)}:${rt(r.ref.b, e, t)}`;
2953
+ return `${it(r.ref.a, e, t)}:${it(r.ref.b, e, t)}`;
2954
2954
  case "call":
2955
- return `${r.name}(${r.args.map((s) => Le(s, e, t)).join(",")})`;
2955
+ return `${r.name}(${r.args.map((s) => Ae(s, e, t)).join(",")})`;
2956
2956
  case "unary":
2957
- return `${r.op}${Le(r.arg, e, t)}`;
2957
+ return `${r.op}${Ae(r.arg, e, t)}`;
2958
2958
  case "bin":
2959
- return `(${Le(r.left, e, t)}${Fo[r.op]}${Le(r.right, e, t)})`;
2959
+ return `(${Ae(r.left, e, t)}${Fo[r.op]}${Ae(r.right, e, t)})`;
2960
2960
  default:
2961
2961
  return "#REF!";
2962
2962
  }
2963
2963
  }
2964
- class is {
2964
+ class ss {
2965
2965
  constructor(e) {
2966
2966
  this.store = new ko(), this.graph = new Eo(), this._accessor = e.accessor, this._setComputedValue = e.setComputedValue, this._onFormulaError = e.onFormulaError, this._refMode = e.refMode ?? "stable", this._prec = e.divisionPrecision ?? 30, this._functions = e.functions, this._now = e.now;
2967
2967
  }
@@ -2977,12 +2977,12 @@ class is {
2977
2977
  s = { t: "error", code: "#ERR" };
2978
2978
  }
2979
2979
  const i = mo(s, t, this._accessor, this._refMode);
2980
- return { ast: i, hasRangeRef: Fe(i) };
2980
+ return { ast: i, hasRangeRef: Se(i) };
2981
2981
  }
2982
2982
  setCellFormula(e, t, s) {
2983
2983
  const i = { rowId: e, field: t }, { ast: o, hasRangeRef: n } = this.compile(s, i), a = { src: s, ast: o, hasRangeRef: n, value: null, error: null };
2984
2984
  this.store.setFormula(e, t, a);
2985
- const l = Z(e, t), d = Zt(o, i, this._accessor, this._evalOpts());
2985
+ const l = Y(e, t), d = Xt(o, i, this._accessor, this._evalOpts());
2986
2986
  return this.graph.addFormula(l, d.touched), this.onValuesChanged([l]);
2987
2987
  }
2988
2988
  getCellFormula(e, t) {
@@ -2993,7 +2993,7 @@ class is {
2993
2993
  return this.store.hasFormula(e, t);
2994
2994
  }
2995
2995
  clearCellFormula(e, t) {
2996
- const s = Z(e, t), i = this.graph.getDependents(s);
2996
+ const s = Y(e, t), i = this.graph.getDependents(s);
2997
2997
  return this.store.clearFormula(e, t), this.graph.removeFormula(s), i;
2998
2998
  }
2999
2999
  getCellError(e, t) {
@@ -3001,34 +3001,34 @@ class is {
3001
3001
  return ((_a = this.store.getFormula(e, t)) == null ? void 0 : _a.error) ?? null;
3002
3002
  }
3003
3003
  getDependents(e, t) {
3004
- return this.graph.getDependents(Z(e, t)).map(fe);
3004
+ return this.graph.getDependents(Y(e, t)).map(fe);
3005
3005
  }
3006
3006
  onValuesChanged(e) {
3007
3007
  var _a;
3008
- const t = Ne(), s = this.graph.getDependentsClosure(e), { order: i, cycles: o } = this.graph.topoOrder(s);
3008
+ const t = He(), s = this.graph.getDependentsClosure(e), { order: i, cycles: o } = this.graph.topoOrder(s);
3009
3009
  for (const n of o) {
3010
3010
  const { rowId: a, field: l } = fe(n), d = this.store.getFormula(a, l);
3011
3011
  d && (d.value = "#CYCLE", d.error = "#CYCLE"), this._setComputedValue(a, l, "#CYCLE"), (_a = this._onFormulaError) == null ? void 0 : _a.call(this, a, l, "#CYCLE");
3012
3012
  }
3013
3013
  for (const n of i) this._evaluateOne(n);
3014
- return { changed: [...i, ...o], cycles: o.length, ms: Ne() - t };
3014
+ return { changed: [...i, ...o], cycles: o.length, ms: He() - t };
3015
3015
  }
3016
3016
  _evaluateOne(e) {
3017
3017
  var _a;
3018
3018
  const { rowId: t, field: s } = fe(e), i = this.store.getFormula(t, s);
3019
3019
  if (!i) return;
3020
- const o = Zt(i.ast, { rowId: t, field: s }, this._accessor, this._evalOpts());
3020
+ const o = Xt(i.ast, { rowId: t, field: s }, this._accessor, this._evalOpts());
3021
3021
  this.graph.addFormula(e, o.touched), i.value = o.value, i.error = o.error, i.approx = o.approx, this._setComputedValue(t, s, o.value), o.error && ((_a = this._onFormulaError) == null ? void 0 : _a.call(this, t, s, o.error));
3022
3022
  }
3023
3023
  recalculateAll() {
3024
3024
  var _a;
3025
- const e = Ne(), t = this.graph.allFormulaKeys(), { order: s, cycles: i } = this.graph.topoOrder(t);
3025
+ const e = He(), t = this.graph.allFormulaKeys(), { order: s, cycles: i } = this.graph.topoOrder(t);
3026
3026
  for (const o of i) {
3027
3027
  const { rowId: n, field: a } = fe(o), l = this.store.getFormula(n, a);
3028
3028
  l && (l.value = "#CYCLE", l.error = "#CYCLE"), this._setComputedValue(n, a, "#CYCLE"), (_a = this._onFormulaError) == null ? void 0 : _a.call(this, n, a, "#CYCLE");
3029
3029
  }
3030
3030
  for (const o of s) this._evaluateOne(o);
3031
- return { changed: [...s, ...i], cycles: i.length, ms: Ne() - e };
3031
+ return { changed: [...s, ...i], cycles: i.length, ms: He() - e };
3032
3032
  }
3033
3033
  recalcRangeBearing() {
3034
3034
  return this.onValuesChanged(this.store.getRangeBearingKeys());
@@ -3092,7 +3092,7 @@ class is {
3092
3092
  return o(e);
3093
3093
  }
3094
3094
  }
3095
- function Ne() {
3095
+ function He() {
3096
3096
  return typeof performance < "u" ? performance.now() : Date.now();
3097
3097
  }
3098
3098
  class Lo {
@@ -3108,7 +3108,7 @@ class Lo {
3108
3108
  const o = t.value;
3109
3109
  if (o) {
3110
3110
  const n = o instanceof Date ? o : new Date(o);
3111
- isNaN(n.getTime()) || (this.input.value = Mt(n, "yyyy-MM-dd"));
3111
+ isNaN(n.getTime()) || (this.input.value = Rt(n, "yyyy-MM-dd"));
3112
3112
  }
3113
3113
  this.input.addEventListener("keydown", this._onKeyDown), this.input.addEventListener("blur", this._onBlur), e.appendChild(this.input);
3114
3114
  }
@@ -3125,16 +3125,16 @@ class Lo {
3125
3125
  (_a = this._container) == null ? void 0 : _a.setAttribute("aria-expanded", "false"), (_b = this.input) == null ? void 0 : _b.removeEventListener("keydown", this._onKeyDown), (_c = this.input) == null ? void 0 : _c.removeEventListener("blur", this._onBlur);
3126
3126
  }
3127
3127
  }
3128
- function os(r) {
3128
+ function is(r) {
3129
3129
  return r.map((e) => typeof e == "string" ? { label: e, value: e } : { label: e.label ?? e.text ?? String(e.value ?? ""), value: e.value });
3130
3130
  }
3131
3131
  class Io {
3132
3132
  constructor(e = [], t) {
3133
- this._options = os(e), this._optionsFn = t ?? null;
3133
+ this._options = is(e), this._optionsFn = t ?? null;
3134
3134
  }
3135
3135
  mount(e, t, s, i) {
3136
3136
  this._container = e, this._onCommit = s, this._onCancel = i, e.setAttribute("aria-haspopup", "listbox"), e.setAttribute("aria-expanded", "true"), this.select = document.createElement("select"), this.select.className = "og-cell-select", this.select.setAttribute("aria-label", t.column.header ?? ve(t, "editor.select"));
3137
- const o = this._optionsFn ? os(this._optionsFn(t.row, t.rowIndex)) : this._options;
3137
+ const o = this._optionsFn ? is(this._optionsFn(t.row, t.rowIndex)) : this._options;
3138
3138
  for (const a of o) {
3139
3139
  const l = document.createElement("option");
3140
3140
  l.value = String(a.value), l.textContent = a.label, this.select.appendChild(l);
@@ -3217,7 +3217,7 @@ class Do {
3217
3217
  (_a = this.input) == null ? void 0 : _a.removeEventListener("keydown", this._onKeyDown), (_b = this.input) == null ? void 0 : _b.removeEventListener("blur", this._onBlur);
3218
3218
  }
3219
3219
  }
3220
- class rs {
3220
+ class os {
3221
3221
  mount(e, t, s, i) {
3222
3222
  this._onCommit = s, e.style.cssText += "display:flex;align-items:center;justify-content:center;", this.chk = document.createElement("input"), this.chk.type = "checkbox", this.chk.checked = !!t.value, this.chk.style.cursor = "pointer", this.chk.addEventListener("change", () => s(this.chk.checked)), e.appendChild(this.chk);
3223
3223
  }
@@ -3232,22 +3232,22 @@ class rs {
3232
3232
  destroy() {
3233
3233
  }
3234
3234
  }
3235
- const ns = /* @__PURE__ */ new Map();
3235
+ const rs = /* @__PURE__ */ new Map();
3236
3236
  function Ce(r, e) {
3237
- ns.set(r, e);
3237
+ rs.set(r, e);
3238
3238
  }
3239
3239
  Ce("number", (r, e) => {
3240
3240
  const t = {};
3241
3241
  return e && (e.min != null && (t.min = e.min), e.max != null && (t.max = e.max), e.step != null && (t.step = e.step)), new Do(t);
3242
- }), Ce("date", () => new Lo()), Ce("boolean", () => new rs()), Ce("checkbox", () => new rs()), Ce("select", (r, e) => new Io((e ? e.options : r.options) ?? [], r.optionsFn));
3243
- function as(r) {
3242
+ }), Ce("date", () => new Lo()), Ce("boolean", () => new os()), Ce("checkbox", () => new os()), Ce("select", (r, e) => new Io((e ? e.options : r.options) ?? [], r.optionsFn));
3243
+ function ns(r) {
3244
3244
  const e = r.editor;
3245
3245
  let t, s;
3246
3246
  e ? typeof e == "string" ? (t = e, s = void 0) : (t = e.type, s = e) : (t = String(r.type ?? ""), s = void 0);
3247
- const i = ns.get(t);
3247
+ const i = rs.get(t);
3248
3248
  return i ? i(r, s) : new To();
3249
3249
  }
3250
- function Ie(r) {
3250
+ function Le(r) {
3251
3251
  const e = typeof r.renderer == "string" ? r.renderer : r.renderer && typeof r.renderer == "object" ? r.renderer.type : "";
3252
3252
  return r.type === "boolean" || r.type === "checkbox" || e === "checkbox" || e === "switch";
3253
3253
  }
@@ -3285,7 +3285,7 @@ class Oo {
3285
3285
  var _a, _b, _c, _d, _e2, _f, _g;
3286
3286
  const s = this._d.getVisibleLeaves()[t];
3287
3287
  if (!s) return;
3288
- if (Ie(s)) {
3288
+ if (Le(s)) {
3289
3289
  const c = this._d.getOptions();
3290
3290
  if (s.editable !== false && (s.editable !== void 0 || c.editable)) {
3291
3291
  const u = this._d.data.getRowByIndex(e);
@@ -3299,7 +3299,7 @@ class Oo {
3299
3299
  const o = (_a = this._d.getRenderer()) == null ? void 0 : _a.getCellEl(e, t);
3300
3300
  if (!o) return;
3301
3301
  o.innerHTML = "";
3302
- const n = as(s);
3302
+ const n = ns(s);
3303
3303
  this._activeEditor = n, this._editCell = { ri: e, ci: t };
3304
3304
  const a = { type: "editStart", rowIndex: e, columnIndex: t, field: s.field, oldValue: i == null ? void 0 : i[s.field], newValue: i == null ? void 0 : i[s.field], row: i, column: s };
3305
3305
  this._d.emit("editStart", a), (_c = (_b = this._d.getOptions()).onEditStart) == null ? void 0 : _c.call(_b, a), o.classList.add("og-editing");
@@ -3311,14 +3311,14 @@ class Oo {
3311
3311
  const i = this._d.getOptions();
3312
3312
  if (!i.editable) return;
3313
3313
  const o = this._d.getVisibleLeaves()[t];
3314
- if (!o || Ie(o)) return;
3314
+ if (!o || Le(o)) return;
3315
3315
  const n = this._d.data.getRowByIndex(e);
3316
3316
  if (o.editable === false || typeof o.editable == "function" && !o.editable(n, e) || !o.editable && !i.editable) return;
3317
3317
  this.commitEdit();
3318
3318
  const a = (_a = this._d.getRenderer()) == null ? void 0 : _a.getCellEl(e, t);
3319
3319
  if (!a) return;
3320
3320
  a.innerHTML = "";
3321
- const l = as(o);
3321
+ const l = ns(o);
3322
3322
  this._activeEditor = l, this._editCell = { ri: e, ci: t };
3323
3323
  const d = { type: "editStart", rowIndex: e, columnIndex: t, field: o.field, oldValue: n == null ? void 0 : n[o.field], newValue: n == null ? void 0 : n[o.field], row: n, column: o };
3324
3324
  this._d.emit("editStart", d), (_b = i.onEditStart) == null ? void 0 : _b.call(i, d), a.classList.add("og-editing");
@@ -3370,6 +3370,29 @@ class $o {
3370
3370
  const i = t.replace("#", "").toUpperCase();
3371
3371
  return i.length === 3 ? i[0] + i[0] + i[1] + i[1] + i[2] + i[2] : i.length === 6 ? i : "";
3372
3372
  }
3373
+ _xlsxNumFmt(e) {
3374
+ return typeof e == "string" && /^[#0,.%]+$/.test(e) ? e : void 0;
3375
+ }
3376
+ _applySheetStyle(e, t, s, i, o, n) {
3377
+ var _a, _b;
3378
+ let a = "1565C0", l = "FFFFFF", d = "FFFFFF", c = "EEF2FF", h = "212121", u = "BDBDBD", g = 10;
3379
+ if (n === "theme") {
3380
+ const f = (y) => this._hexToXlsxRgb(y);
3381
+ a = f(this._readCssVar("--og-header-bg")) || a, l = f(this._readCssVar("--og-header-color")) || l, d = f(this._readCssVar("--og-row-bg")) || d, c = f(this._readCssVar("--og-row-alt-bg")) || c, h = f(this._readCssVar("--og-row-color")) || h, u = f(this._readCssVar("--og-border-color")) || u;
3382
+ const w = this._readCssVar("--og-font-size");
3383
+ w && (g = Math.max(8, Math.round(parseFloat(w) * 0.75)));
3384
+ }
3385
+ const p = n === "none", _ = ((_b = (_a = this._d).getMeta) == null ? void 0 : _b.call(_a).exportFont) ?? "맑은 고딕", m = { hdrFont: p ? {} : { bold: true, color: { rgb: l }, sz: g, name: _ }, dataFont: p ? {} : { sz: g, color: { rgb: h }, name: _ }, hdrFill: p ? {} : { patternType: "solid", fgColor: { rgb: a } }, evenFill: p ? {} : { patternType: "solid", fgColor: { rgb: d } }, oddFill: p ? {} : { patternType: "solid", fgColor: { rgb: c } }, hdrBorder: p ? {} : { top: { style: "medium", color: { rgb: a } }, bottom: { style: "medium", color: { rgb: a } }, left: { style: "thin", color: { rgb: a } }, right: { style: "thin", color: { rgb: a } } }, dataBorder: p ? {} : { top: { style: "thin", color: { rgb: u } }, bottom: { style: "thin", color: { rgb: u } }, left: { style: "thin", color: { rgb: u } }, right: { style: "thin", color: { rgb: u } } } };
3386
+ s.forEach((f, w) => {
3387
+ const y = o && w === 0, F = (o ? w - 1 : w) % 2 === 0;
3388
+ f.forEach((S, B) => {
3389
+ const D = e.encode_cell({ r: w, c: B });
3390
+ t[D] || (t[D] = { t: "s", v: "" });
3391
+ const z = i[B], C = z.type === "number" || z.align === "right", I = y ? "center" : C ? "right" : z.align ?? "left", ee = y ? void 0 : this._xlsxNumFmt(z.format);
3392
+ ee && t[D].t === "n" && (t[D].z = ee), t[D].s = { font: y ? m.hdrFont : m.dataFont, fill: y ? m.hdrFill : F ? m.evenFill : m.oddFill, border: y ? m.hdrBorder : m.dataBorder, alignment: { horizontal: I, vertical: "center", wrapText: false }, ...ee ? { numFmt: ee } : {} };
3393
+ });
3394
+ });
3395
+ }
3373
3396
  exportExcel(e) {
3374
3397
  const t = typeof e == "string" ? { filename: e } : e ?? {};
3375
3398
  let s = t.filename ?? "export";
@@ -3379,37 +3402,19 @@ class $o {
3379
3402
  return !((_a = t.exceptFields) == null ? void 0 : _a.includes(d.field));
3380
3403
  }), a = t.includeHeader !== false, l = (this._d.getStrategy ?? ((d, c) => c))("cellSerializer", (d, c, h) => c.type === "number" && typeof d == "number" ? d : typeof d == "boolean" ? d ? "✓" : "" : typeof d == "object" ? "" : String(d));
3381
3404
  import("./xlsx.min-Bbz2ZypC.js").then((d) => d.x).then(({ utils: d, writeFile: c }) => {
3382
- var _a, _b, _c;
3405
+ var _a;
3383
3406
  const h = [];
3384
- a && h.push(n.map((E) => E.header));
3385
- for (const E of o) h.push(n.map((W) => {
3386
- const M = E[W.field];
3387
- if (t.maskOnExport && W.mask && this._d.getMaskEnabled(W.field)) return Ge(M == null ? "" : String(M), W.mask);
3388
- const L = M;
3389
- return L == null || L === "" ? "" : l(L, W, E);
3407
+ a && h.push(n.map((m) => m.header));
3408
+ for (const m of o) h.push(n.map((f) => {
3409
+ const w = m[f.field];
3410
+ if (t.maskOnExport && f.mask && this._d.getMaskEnabled(f.field)) return je(w == null ? "" : String(w), f.mask);
3411
+ const y = w;
3412
+ return y == null || y === "" ? "" : l(y, f, m);
3390
3413
  }));
3391
3414
  const u = d.aoa_to_sheet(h), g = this._d.getColWidths(), p = this._d.getColLayout();
3392
- u["!cols"] = n.map((E) => ({ wpx: g[p.getColumnIndex(E.field)] ?? 100 })), u["!rows"] = h.map((E, W) => ({ hpx: W === 0 && a ? 22 : 19 }));
3393
- const f = t.styleMode ?? "theme";
3394
- let m = "1565C0", _ = "FFFFFF", w = "FFFFFF", y = "EEF2FF", R = "212121", A = "BDBDBD", S = 10;
3395
- if (f === "theme") {
3396
- const E = (M) => this._hexToXlsxRgb(M);
3397
- m = E(this._readCssVar("--og-header-bg")) || m, _ = E(this._readCssVar("--og-header-color")) || _, w = E(this._readCssVar("--og-row-bg")) || w, y = E(this._readCssVar("--og-row-alt-bg")) || y, R = E(this._readCssVar("--og-row-color")) || R, A = E(this._readCssVar("--og-border-color")) || A;
3398
- const W = this._readCssVar("--og-font-size");
3399
- W && (S = Math.max(8, Math.round(parseFloat(W) * 0.75)));
3400
- }
3401
- const O = f === "none", z = ((_b = (_a = this._d).getMeta) == null ? void 0 : _b.call(_a).exportFont) ?? "맑은 고딕", $ = { hdrFont: O ? {} : { bold: true, color: { rgb: _ }, sz: S, name: z }, dataFont: O ? {} : { sz: S, color: { rgb: R }, name: z }, hdrFill: O ? {} : { patternType: "solid", fgColor: { rgb: m } }, evenFill: O ? {} : { patternType: "solid", fgColor: { rgb: w } }, oddFill: O ? {} : { patternType: "solid", fgColor: { rgb: y } }, hdrBorder: O ? {} : { top: { style: "medium", color: { rgb: m } }, bottom: { style: "medium", color: { rgb: m } }, left: { style: "thin", color: { rgb: m } }, right: { style: "thin", color: { rgb: m } } }, dataBorder: O ? {} : { top: { style: "thin", color: { rgb: A } }, bottom: { style: "thin", color: { rgb: A } }, left: { style: "thin", color: { rgb: A } }, right: { style: "thin", color: { rgb: A } } } };
3402
- h.forEach((E, W) => {
3403
- const M = a && W === 0, K = (a ? W - 1 : W) % 2 === 0;
3404
- E.forEach((ie, P) => {
3405
- const Y = d.encode_cell({ r: W, c: P });
3406
- u[Y] || (u[Y] = { t: "s", v: "" });
3407
- const ke = n[P], Oe = ke.type === "number" || ke.align === "right", te = M ? "center" : Oe ? "right" : ke.align ?? "left";
3408
- u[Y].s = { font: M ? $.hdrFont : $.dataFont, fill: M ? $.hdrFill : K ? $.evenFill : $.oddFill, border: M ? $.hdrBorder : $.dataBorder, alignment: { horizontal: te, vertical: "center", wrapText: false } };
3409
- });
3410
- });
3411
- const C = d.book_new();
3412
- d.book_append_sheet(C, u, i), c(C, s, { cellStyles: true }), (_c = t.onAfter) == null ? void 0 : _c.call(t, new Blob([]));
3415
+ u["!cols"] = n.map((m) => ({ wpx: g[p.getColumnIndex(m.field)] ?? 100 })), u["!rows"] = h.map((m, f) => ({ hpx: f === 0 && a ? 22 : 19 })), this._applySheetStyle(d, u, h, n, a, t.styleMode ?? "theme");
3416
+ const _ = d.book_new();
3417
+ d.book_append_sheet(_, u, i), c(_, s, { cellStyles: true }), (_a = t.onAfter) == null ? void 0 : _a.call(t, new Blob([]));
3413
3418
  }).catch(() => {
3414
3419
  console.error("Excel 내보내기 실패: xlsx 패키지를 확인하세요.");
3415
3420
  });
@@ -3417,23 +3422,23 @@ class $o {
3417
3422
  exportCsv(e) {
3418
3423
  const t = typeof e == "string" ? { filename: e } : e ?? {}, s = this._d.getData(), i = this._d.getColLayout().visibleLeaves, o = i.map((l) => `"${l.header}"`).join(","), n = s.map((l) => i.map((d) => {
3419
3424
  const c = l[d.field] ?? "";
3420
- if (t.maskOnExport && d.mask && this._d.getMaskEnabled(d.field)) return Ge(String(c), d.mask);
3425
+ if (t.maskOnExport && d.mask && this._d.getMaskEnabled(d.field)) return je(String(c), d.mask);
3421
3426
  const h = c;
3422
3427
  return typeof h == "string" && h.includes(",") ? `"${h}"` : h;
3423
3428
  }).join(",")), a = t.filename ?? "export.csv";
3424
- Lt("\uFEFF" + [o, ...n].join(`
3429
+ At("\uFEFF" + [o, ...n].join(`
3425
3430
  `), a);
3426
3431
  }
3427
3432
  exportJson(e) {
3428
3433
  const t = typeof e == "string" ? e : (e == null ? void 0 : e.filename) ?? "export.json";
3429
- Lt(JSON.stringify(this._d.getData(), null, 2), t, "application/json");
3434
+ At(JSON.stringify(this._d.getData(), null, 2), t, "application/json");
3430
3435
  }
3431
3436
  print(e) {
3432
3437
  var _a, _b;
3433
3438
  const t = (e == null ? void 0 : e.title) ?? "OPEN_GRID", s = (e == null ? void 0 : e.footerText) ?? "", i = this._d.getData(), o = this._d.getColLayout().visibleLeaves.filter((p) => {
3434
3439
  var _a2;
3435
3440
  return !((_a2 = e == null ? void 0 : e.excludeFields) == null ? void 0 : _a2.includes(p.field));
3436
- }), n = o.map((p) => `<th>${p.header ?? p.field}</th>`).join(""), a = i.map((p) => `<tr>${o.map((f) => `<td>${String(p[f.field] ?? "")}</td>`).join("")}</tr>`).join(""), l = s ? `<div class="og-print-footer">${s}</div>` : "", c = (((_b = (_a = this._d).getMeta) == null ? void 0 : _b.call(_a)) ?? { intlLocale: "ko-KR" }).intlLocale, h = this._d.t ? this._d.t("export.printSummary", { rows: i.length, cols: o.length, date: (/* @__PURE__ */ new Date()).toLocaleString(c) }) : `${i.length}행 × ${o.length}열 · ${(/* @__PURE__ */ new Date()).toLocaleString(c)}`, u = `<!DOCTYPE html>
3441
+ }), n = o.map((p) => `<th>${p.header ?? p.field}</th>`).join(""), a = i.map((p) => `<tr>${o.map((_) => `<td>${String(p[_.field] ?? "")}</td>`).join("")}</tr>`).join(""), l = s ? `<div class="og-print-footer">${s}</div>` : "", c = (((_b = (_a = this._d).getMeta) == null ? void 0 : _b.call(_a)) ?? { intlLocale: "ko-KR" }).intlLocale, h = this._d.t ? this._d.t("export.printSummary", { rows: i.length, cols: o.length, date: (/* @__PURE__ */ new Date()).toLocaleString(c) }) : `${i.length}행 × ${o.length}열 · ${(/* @__PURE__ */ new Date()).toLocaleString(c)}`, u = `<!DOCTYPE html>
3437
3442
  <html lang="${c}"><head>
3438
3443
  <meta charset="UTF-8"><title>${t}</title>
3439
3444
  <style>
@@ -3467,15 +3472,15 @@ ${l}
3467
3472
  }
3468
3473
  const s = e ?? "workbook.xlsx", i = (this._d.getStrategy ?? ((o, n) => n))("cellSerializer", (o, n, a) => typeof o == "boolean" ? o ? "✓" : "" : n.type === "number" && typeof o == "number" ? o : String(o));
3469
3474
  import("./xlsx.min-Bbz2ZypC.js").then((o) => o.x).then(({ utils: o, writeFile: n }) => {
3470
- const a = o.book_new(), l = this._d.getOptions();
3471
- for (const d of t.getNames()) {
3472
- const c = t.get(d), h = c.columns.length ? c.columns : l.columns, u = [h.map((p) => p.header)];
3473
- for (const p of c.data) u.push(h.map((f) => {
3474
- const m = p[f.field];
3475
- return m == null ? "" : i(m, f, p);
3475
+ const a = o.book_new(), l = this._d.getOptions(), d = t.getActive();
3476
+ for (const c of t.getNames()) {
3477
+ const h = t.get(c), u = h.columns.length ? h.columns : l.columns, g = c === d ? this._d.getData() : h.data, p = [u.map((m) => m.header)];
3478
+ for (const m of g) p.push(u.map((f) => {
3479
+ const w = m[f.field];
3480
+ return w == null ? "" : i(w, f, m);
3476
3481
  }));
3477
- const g = o.aoa_to_sheet(u);
3478
- g["!cols"] = h.map(() => ({ wpx: 100 })), o.book_append_sheet(a, g, d);
3482
+ const _ = o.aoa_to_sheet(p);
3483
+ _["!cols"] = u.map((m) => ({ wpx: m.width ?? 100 })), _["!rows"] = p.map((m, f) => ({ hpx: f === 0 ? 22 : 19 })), this._applySheetStyle(o, _, p, u, true, "theme"), o.book_append_sheet(a, _, c);
3479
3484
  }
3480
3485
  n(a, s.endsWith(".xlsx") ? s : s + ".xlsx", { cellStyles: true });
3481
3486
  }).catch(() => console.error("exportSheetsExcel: xlsx 패키지를 확인하세요."));
@@ -3487,15 +3492,15 @@ class zo {
3487
3492
  }
3488
3493
  fmtNum(e, t) {
3489
3494
  if (!t) return Math.round(e).toLocaleString("ko-KR");
3490
- const s = t.match(/[#0][#0,]*(?:\.[#0]+)?|\d+/), i = s ? t.slice(0, s.index) : "", o = s ? t.slice(s.index + s[0].length) : "", n = s ? s[0] : t, a = n.includes("#") || n.includes(","), l = n.match(/\.(\d+)$/), d = l ? parseInt(l[1], 10) : /^\d+$/.test(n) ? parseInt(n, 10) : 0, c = Math.abs(e).toFixed(d), [h = "0", u] = c.split("."), g = a ? h.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : h, p = u !== void 0 ? `${g}.${u}` : g, f = `${i}${p}${o}`;
3491
- return e < 0 ? `-${f}` : f;
3495
+ const s = t.match(/[#0][#0,]*(?:\.[#0]+)?|\d+/), i = s ? t.slice(0, s.index) : "", o = s ? t.slice(s.index + s[0].length) : "", n = s ? s[0] : t, a = n.includes("#") || n.includes(","), l = n.match(/\.(\d+)$/), d = l ? parseInt(l[1], 10) : /^\d+$/.test(n) ? parseInt(n, 10) : 0, c = Math.abs(e).toFixed(d), [h = "0", u] = c.split("."), g = a ? h.replace(/\B(?=(\d{3})+(?!\d))/g, ",") : h, p = u !== void 0 ? `${g}.${u}` : g, _ = `${i}${p}${o}`;
3496
+ return e < 0 ? `-${_}` : _;
3492
3497
  }
3493
3498
  computeValues() {
3494
3499
  const e = this._d.getOptions().footer;
3495
3500
  if (!e || e.length === 0) return [];
3496
3501
  const t = this._d.getData();
3497
3502
  return e.filter((s) => s.field && s.op).map((s) => {
3498
- const i = s.field, o = s.op, n = t.map((u) => u[i]).filter((u) => u != null && u !== "" && !He(u));
3503
+ const i = s.field, o = s.op, n = t.map((u) => u[i]).filter((u) => u != null && u !== "" && !ze(u));
3499
3504
  let a = null;
3500
3505
  const l = o.toUpperCase(), d = (this._d.getStrategy ?? ((u, g) => g))("summaryOp", null);
3501
3506
  if (d) {
@@ -3533,14 +3538,14 @@ class zo {
3533
3538
  for (let w = 0; w < u; w++) g += n[c + w] ?? 100;
3534
3539
  const p = o[c];
3535
3540
  c += u;
3536
- const f = document.createElement("div");
3537
- f.style.cssText = [`width:${g}px;min-width:${g}px;flex-shrink:0;`, "padding:4px 8px;box-sizing:border-box;overflow:hidden;", "border-right:1px solid var(--og-border-color,#e0e0e0);", "white-space:nowrap;text-overflow:ellipsis;"].join("");
3538
- const m = h.field, _ = m ? a.get(m) : null;
3539
- if (_) {
3540
- const w = _._formatted ?? String(_._value ?? ""), y = h.label ? `${h.label}: ` : "";
3541
- f.textContent = y + w, f.title = `${((_b = h.op) == null ? void 0 : _b.toUpperCase()) ?? ""} = ${w}`, f.style.color = "var(--og-primary,#1976d2)", f.style.textAlign = h.align ?? ((p == null ? void 0 : p.type) === "number", "right");
3542
- } else h.label && (f.textContent = h.label, f.style.textAlign = h.align ?? "left", f.style.color = "var(--og-row-color,#212121)");
3543
- l.appendChild(f);
3541
+ const _ = document.createElement("div");
3542
+ _.style.cssText = [`width:${g}px;min-width:${g}px;flex-shrink:0;`, "padding:4px 8px;box-sizing:border-box;overflow:hidden;", "border-right:1px solid var(--og-border-color,#e0e0e0);", "white-space:nowrap;text-overflow:ellipsis;"].join("");
3543
+ const m = h.field, f = m ? a.get(m) : null;
3544
+ if (f) {
3545
+ const w = f._formatted ?? String(f._value ?? ""), y = h.label ? `${h.label}: ` : "";
3546
+ _.textContent = y + w, _.title = `${((_b = h.op) == null ? void 0 : _b.toUpperCase()) ?? ""} = ${w}`, _.style.color = "var(--og-primary,#1976d2)", _.style.textAlign = h.align ?? ((p == null ? void 0 : p.type) === "number", "right");
3547
+ } else h.label && (_.textContent = h.label, _.style.textAlign = h.align ?? "left", _.style.color = "var(--og-row-color,#212121)");
3548
+ l.appendChild(_);
3544
3549
  }
3545
3550
  s.footerPosition === "top" ? e.insertBefore(l, e.firstChild) : e.appendChild(l);
3546
3551
  }
@@ -3725,7 +3730,7 @@ class Bo {
3725
3730
  for (let h = 0; h < a.length; h++) {
3726
3731
  const u = a[h].split(" ");
3727
3732
  for (let g = 0; g < u.length; g++) {
3728
- const p = o + h, f = n + g, m = l[f];
3733
+ const p = o + h, _ = n + g, m = l[_];
3729
3734
  m && p < d.rowCount && c.push({ rowIndex: p, field: m.field, value: u[g] });
3730
3735
  }
3731
3736
  }
@@ -3849,18 +3854,18 @@ class No {
3849
3854
  const a = this._d.getData().getRowByIndex(e), l = this._d.getColLayout().visibleLeaves[t];
3850
3855
  if (a && l) {
3851
3856
  const d = l.editable !== false && (l.editable !== void 0 || i.editable);
3852
- if (Ie(l) && d) {
3853
- const f = a[l.field];
3854
- this._d.writeCell(e, l.field, !f);
3857
+ if (Le(l) && d) {
3858
+ const _ = a[l.field];
3859
+ this._d.writeCell(e, l.field, !_);
3855
3860
  }
3856
3861
  if (l.type === "radio") {
3857
- const f = l.group;
3858
- for (const m of this._d.getColLayout().visibleLeaves) m.type === "radio" && m.field !== l.field && (!f || m.group === f) && this._d.getData().updateCell(e, m.field, false);
3862
+ const _ = l.group;
3863
+ for (const m of this._d.getColLayout().visibleLeaves) m.type === "radio" && m.field !== l.field && (!_ || m.group === _) && this._d.getData().updateCell(e, m.field, false);
3859
3864
  this._d.writeCell(e, l.field, true);
3860
3865
  }
3861
3866
  let c = a[l.field];
3862
3867
  if (c === void 0 && l.formula) try {
3863
- const f = l.formulaPrecision ?? 30, m = xt(l.formula, a, f);
3868
+ const _ = l.formulaPrecision ?? 30, m = bt(l.formula, a, _);
3864
3869
  c = m instanceof v ? l.precision != null ? m.toFixed(l.precision) : m.toString() : String(m);
3865
3870
  } catch {
3866
3871
  }
@@ -3869,7 +3874,7 @@ class No {
3869
3874
  const u = { type: "rowClick", rowIndex: e, row: a, target: s.target, originalEvent: s };
3870
3875
  this._d.emit("rowClick", u), (_d = i.onRowClick) == null ? void 0 : _d.call(i, u);
3871
3876
  const g = l.type === "select";
3872
- !(n.activeEditor != null && ((_e2 = n.editCell) == null ? void 0 : _e2.ri) === e && ((_f = n.editCell) == null ? void 0 : _f.ci) === t) && (i.editMode === "click" || g) && !Ie(l) && n.startEdit(e, t, s);
3877
+ !(n.activeEditor != null && ((_e2 = n.editCell) == null ? void 0 : _e2.ri) === e && ((_f = n.editCell) == null ? void 0 : _f.ci) === t) && (i.editMode === "click" || g) && !Le(l) && n.startEdit(e, t, s);
3873
3878
  }
3874
3879
  n.activeEditor && ((_g = n.editCell) == null ? void 0 : _g.ri) === e && ((_h = n.editCell) == null ? void 0 : _h.ci) === t || i.selection !== "cells" && (this._d.doRender(), this._d.emit("selectionChange", { rows: o.getSelections(), rowIndexes: [...o.selectedRows] }), (_i2 = i.onSelectionChange) == null ? void 0 : _i2.call(i, { rows: o.getSelections(), rowIndexes: [...o.selectedRows], cells: [] }));
3875
3880
  }
@@ -4082,12 +4087,12 @@ function qo(r) {
4082
4087
  }
4083
4088
  return { kind: "copy" };
4084
4089
  }
4085
- function ls(r, e, t) {
4090
+ function as(r, e, t) {
4086
4091
  return t <= 0 ? 0 : r === "down" || r === "right" ? (e - 1) % t : (t - e % t) % t;
4087
4092
  }
4088
4093
  function Go(r, e, t, s) {
4089
4094
  const i = e.length;
4090
- if (r.kind === "copy" || !r.values || !r.step) return e[ls(t, s, i)];
4095
+ if (r.kind === "copy" || !r.values || !r.step) return e[as(t, s, i)];
4091
4096
  const o = t === "down" || t === "right", n = o ? r.values[r.values.length - 1] : r.values[0], a = o ? r.step : r.step.neg(), l = n.add(a.mul(s));
4092
4097
  return r.kind === "text-suffix" ? `${r.prefix}${l.toNumber()}` : l.toNumber();
4093
4098
  }
@@ -4129,20 +4134,20 @@ function Zo(r, e, t, s, i) {
4129
4134
  a++;
4130
4135
  }, d = o ? Re(r.startCol, r.endCol) : Re(r.startRow, r.endRow);
4131
4136
  for (const c of d) {
4132
- const h = o ? i.fieldAt(c) : void 0, u = o ? Re(r.startRow, r.endRow).map((_) => ({ ri: _, ci: c })) : Re(r.startCol, r.endCol).map((_) => ({ ri: c, ci: _ })), g = u.map((_) => {
4133
- const w = o ? h : i.fieldAt(_.ci);
4134
- return w ? i.getCellValue(_.ri, w) : void 0;
4135
- }), p = s === "series" ? qo(g) : { kind: "copy" }, f = o ? Re(e.startRow, e.endRow) : Re(e.startCol, e.endCol);
4136
- (t === "down" || t === "right" ? f : [...f].reverse()).forEach((_, w) => {
4137
- const y = w + 1, R = o ? _ : c, A = o ? c : _, S = o ? h : i.fieldAt(_);
4137
+ const h = o ? i.fieldAt(c) : void 0, u = o ? Re(r.startRow, r.endRow).map((f) => ({ ri: f, ci: c })) : Re(r.startCol, r.endCol).map((f) => ({ ri: c, ci: f })), g = u.map((f) => {
4138
+ const w = o ? h : i.fieldAt(f.ci);
4139
+ return w ? i.getCellValue(f.ri, w) : void 0;
4140
+ }), p = s === "series" ? qo(g) : { kind: "copy" }, _ = o ? Re(e.startRow, e.endRow) : Re(e.startCol, e.endCol);
4141
+ (t === "down" || t === "right" ? _ : [..._].reverse()).forEach((f, w) => {
4142
+ const y = w + 1, R = o ? f : c, F = o ? c : f, S = o ? h : i.fieldAt(f);
4138
4143
  if (!S) return;
4139
4144
  if (p.kind !== "copy") {
4140
4145
  const C = Go(p, g, t, y);
4141
4146
  n.push(Yo(i, R, S, C, l));
4142
4147
  return;
4143
4148
  }
4144
- const O = ls(t, y, u.length), z = u[O], $ = o ? h : i.fieldAt(z.ci);
4145
- $ && n.push(Xo(i, R, A, S, z.ri, z.ci, $, l));
4149
+ const B = as(t, y, u.length), D = u[B], z = o ? h : i.fieldAt(D.ci);
4150
+ z && n.push(Xo(i, R, F, S, D.ri, D.ci, z, l));
4146
4151
  });
4147
4152
  }
4148
4153
  return { items: n, skippedFormula: a };
@@ -4180,12 +4185,12 @@ function tr(r, e, t) {
4180
4185
  for (let c = 0; c < a; c++) for (let h = 0; h < l; h++) {
4181
4186
  const u = e.startRow + c, g = e.startCol + h, p = t.fieldAt(g);
4182
4187
  if (!p) continue;
4183
- const f = t.resolveFlatRow(u);
4184
- if (f.kind !== "data" || !f.rowId) {
4188
+ const _ = t.resolveFlatRow(u);
4189
+ if (_.kind !== "data" || !_.rowId) {
4185
4190
  d.push({ rowIndex: u, field: p, action: "skip", reason: "non-data-row" });
4186
4191
  continue;
4187
4192
  }
4188
- if (t.isEditable && !t.isEditable(f.rowId, p)) {
4193
+ if (t.isEditable && !t.isEditable(_.rowId, p)) {
4189
4194
  d.push({ rowIndex: u, field: p, action: "skip", reason: "not-editable" });
4190
4195
  continue;
4191
4196
  }
@@ -4194,7 +4199,7 @@ function tr(r, e, t) {
4194
4199
  }
4195
4200
  return d;
4196
4201
  }
4197
- function ds(r, e) {
4202
+ function ls(r, e) {
4198
4203
  const t = [];
4199
4204
  for (let s = r.startRow; s <= r.endRow; s++) {
4200
4205
  const i = [];
@@ -4207,7 +4212,7 @@ function ds(r, e) {
4207
4212
  return t;
4208
4213
  }
4209
4214
  function sr(r, e) {
4210
- const t = ds(r, e).flat(), s = [];
4215
+ const t = ls(r, e).flat(), s = [];
4211
4216
  for (const i of t) {
4212
4217
  const o = String(i ?? "").trim();
4213
4218
  o === "" || !/^-?\d+(\.\d+)?$/.test(o) || s.push(v.from(o));
@@ -4246,7 +4251,7 @@ class ir {
4246
4251
  }
4247
4252
  getRangeValues() {
4248
4253
  const e = this.getActiveRange();
4249
- return e ? ds(e, this._queryCtx()) : [];
4254
+ return e ? ls(e, this._queryCtx()) : [];
4250
4255
  }
4251
4256
  getRangeStats() {
4252
4257
  const e = this.getActiveRange();
@@ -4345,19 +4350,19 @@ class ir {
4345
4350
  const o = this._rangeOpts(), n = o.seriesFill ? i : "copy", a = { resolveFlatRow: (p) => this._d.getFlatModel().resolveFlatRow(p), fieldAt: (p) => {
4346
4351
  var _a2;
4347
4352
  return (_a2 = this._d.getColLayout().visibleLeaves[p]) == null ? void 0 : _a2.field;
4348
- }, getCellValue: (p, f) => this._d.getData().getCellValue(p, f), isEditable: (p, f) => this._isEditable(p, f), hasCellFormula: (p, f) => {
4353
+ }, getCellValue: (p, _) => this._d.getData().getCellValue(p, _), isEditable: (p, _) => this._isEditable(p, _), hasCellFormula: (p, _) => {
4349
4354
  var _a2, _b2;
4350
- return ((_b2 = (_a2 = this._d).hasCellFormula) == null ? void 0 : _b2.call(_a2, p, f)) ?? false;
4351
- }, offsetFormula: (p, f, m, _) => {
4355
+ return ((_b2 = (_a2 = this._d).hasCellFormula) == null ? void 0 : _b2.call(_a2, p, _)) ?? false;
4356
+ }, offsetFormula: (p, _, m, f) => {
4352
4357
  var _a2, _b2;
4353
- return ((_b2 = (_a2 = this._d).offsetFormula) == null ? void 0 : _b2.call(_a2, p, f, m, _)) ?? "";
4358
+ return ((_b2 = (_a2 = this._d).offsetFormula) == null ? void 0 : _b2.call(_a2, p, _, m, f)) ?? "";
4354
4359
  }, overwriteFormula: o.fillOverwriteFormula }, l = Zo(e, t, s, n, a), d = [], c = [], h = [];
4355
4360
  for (const p of l.items) if (p.action === "value") {
4356
- const f = this._d.getData().getCellValue(p.rowIndex, p.field);
4357
- d.push({ rowIndex: p.rowIndex, field: p.field, oldValue: f, newValue: p.value }), c.push({ rowIndex: p.rowIndex, field: p.field, value: p.value });
4361
+ const _ = this._d.getData().getCellValue(p.rowIndex, p.field);
4362
+ d.push({ rowIndex: p.rowIndex, field: p.field, oldValue: _, newValue: p.value }), c.push({ rowIndex: p.rowIndex, field: p.field, value: p.value });
4358
4363
  } else if (p.action === "setFormula" && p.formula != null) {
4359
- const f = this._d.getFlatModel().resolveFlatRow(p.rowIndex);
4360
- f.kind === "data" && f.rowId && (h.push({ rowId: f.rowId, field: p.field, formula: p.formula }), d.push({ rowIndex: p.rowIndex, field: p.field, oldValue: this._d.getData().getCellValue(p.rowIndex, p.field), newValue: p.formula }));
4364
+ const _ = this._d.getFlatModel().resolveFlatRow(p.rowIndex);
4365
+ _.kind === "data" && _.rowId && (h.push({ rowId: _.rowId, field: p.field, formula: p.formula }), d.push({ rowIndex: p.rowIndex, field: p.field, oldValue: this._d.getData().getCellValue(p.rowIndex, p.field), newValue: p.formula }));
4361
4366
  }
4362
4367
  const u = { source: e, target: t, mode: n, written: d, skippedFormula: l.skippedFormula, cancel: false };
4363
4368
  if (this._d.emit("rangeFill", u), (_b = (_a = this._d.getOptions()).onRangeFill) == null ? void 0 : _b.call(_a, u), u.cancel) return;
@@ -4440,8 +4445,8 @@ class ir {
4440
4445
  if (Object.assign(this._borderEl.style, { display: "block", left: `${l}px`, top: `${d}px`, width: `${Math.max(0, c - l)}px`, height: `${Math.max(0, h - d)}px` }), this._rangeOpts().fillHandle ? Object.assign(this._handleEl.style, { display: "block", left: `${c}px`, top: `${h}px` }) : this._handleEl.style.display = "none", this._fillPreview) {
4441
4446
  const u = this._fillPreview.target, g = e.getCellEl(u.startRow, u.startCol), p = e.getCellEl(u.endRow, u.endCol);
4442
4447
  if (g && p) {
4443
- const f = g.getBoundingClientRect(), m = p.getBoundingClientRect(), _ = Math.min(f.left, m.left) - s.left, w = Math.min(f.top, m.top) - s.top, y = Math.max(f.right, m.right) - s.left, R = Math.max(f.bottom, m.bottom) - s.top;
4444
- Object.assign(this._previewEl.style, { display: "block", left: `${_}px`, top: `${w}px`, width: `${Math.max(0, y - _)}px`, height: `${Math.max(0, R - w)}px` });
4448
+ const _ = g.getBoundingClientRect(), m = p.getBoundingClientRect(), f = Math.min(_.left, m.left) - s.left, w = Math.min(_.top, m.top) - s.top, y = Math.max(_.right, m.right) - s.left, R = Math.max(_.bottom, m.bottom) - s.top;
4449
+ Object.assign(this._previewEl.style, { display: "block", left: `${f}px`, top: `${w}px`, width: `${Math.max(0, y - f)}px`, height: `${Math.max(0, R - w)}px` });
4445
4450
  return;
4446
4451
  }
4447
4452
  }
@@ -4527,8 +4532,8 @@ class or {
4527
4532
  }
4528
4533
  expandAll() {
4529
4534
  if (!this._isGroupMode) return;
4530
- const e = Wt(this._d.getData(), this._groupFields, this._getSummaryDefs(), void 0, void 0, this._groupKeyFn());
4531
- jt(e).forEach((t) => this._groupExpandedKeys.add(t)), this.rebuildGroups();
4535
+ const e = Vt(this._d.getData(), this._groupFields, this._getSummaryDefs(), void 0, void 0, this._groupKeyFn());
4536
+ Ut(e).forEach((t) => this._groupExpandedKeys.add(t)), this.rebuildGroups();
4532
4537
  }
4533
4538
  _groupKeyFn() {
4534
4539
  return this._d.getStrategy ? this._d.getStrategy("groupKeyFn", void 0) : void 0;
@@ -4544,8 +4549,8 @@ class or {
4544
4549
  const e = this._d.getData(), t = this._d.getDataLayer(), s = (n) => {
4545
4550
  const a = e.indexOf(n);
4546
4551
  return a >= 0 ? t.getRowState(a) : "none";
4547
- }, i = Wt(e, this._groupFields, this._getSummaryDefs(), this._groupExpandedKeys, s, this._groupKeyFn());
4548
- this._groupFlatRows = Ut(i), this._d.setFlatBacking(() => this._groupFlatRows);
4552
+ }, i = Vt(e, this._groupFields, this._getSummaryDefs(), this._groupExpandedKeys, s, this._groupKeyFn());
4553
+ this._groupFlatRows = Kt(i), this._d.setFlatBacking(() => this._groupFlatRows);
4549
4554
  const o = this._d.getFlatCount();
4550
4555
  (_a = this._d.getVs()) == null ? void 0 : _a.setTotalRows(o), this._d.doRenderFull(o);
4551
4556
  }
@@ -4553,8 +4558,8 @@ class or {
4553
4558
  this._isTreeMode = true, this._isGroupMode = false;
4554
4559
  const e = this._d.getOptions();
4555
4560
  if (e.expandOnLoad) {
4556
- const t = et(this._d.getData(), { idField: e.treeId, parentIdField: e.treeParentId });
4557
- tt(t).forEach((s) => this._treeExpandedKeys.add(s));
4561
+ const t = Qe(this._d.getData(), { idField: e.treeId, parentIdField: e.treeParentId });
4562
+ Je(t).forEach((s) => this._treeExpandedKeys.add(s));
4558
4563
  }
4559
4564
  this.rebuildTree();
4560
4565
  }
@@ -4568,7 +4573,7 @@ class or {
4568
4573
  this._isTreeMode && this.rebuildTree();
4569
4574
  }
4570
4575
  expandAllNodes() {
4571
- this._isTreeMode && (tt(this._treeRoots).forEach((e) => this._treeExpandedKeys.add(e)), this.rebuildTree());
4576
+ this._isTreeMode && (Je(this._treeRoots).forEach((e) => this._treeExpandedKeys.add(e)), this.rebuildTree());
4572
4577
  }
4573
4578
  collapseAllNodes() {
4574
4579
  this._isTreeMode && (this._treeExpandedKeys.clear(), this.rebuildTree());
@@ -4579,7 +4584,7 @@ class or {
4579
4584
  rebuildTree() {
4580
4585
  var _a;
4581
4586
  const e = this._d.getOptions();
4582
- this._treeRoots = et(this._d.getData(), { idField: e.treeId, parentIdField: e.treeParentId, expandOnLoad: e.expandOnLoad }, this._treeExpandedKeys), this._treeFlatRows = Yt(this._treeRoots), this._d.setFlatBacking(() => this._treeFlatRows);
4587
+ this._treeRoots = Qe(this._d.getData(), { idField: e.treeId, parentIdField: e.treeParentId, expandOnLoad: e.expandOnLoad }, this._treeExpandedKeys), this._treeFlatRows = Gt(this._treeRoots), this._d.setFlatBacking(() => this._treeFlatRows);
4583
4588
  const t = this._d.getFlatCount();
4584
4589
  (_a = this._d.getVs()) == null ? void 0 : _a.setTotalRows(t), this._d.doRenderFull(t);
4585
4590
  }
@@ -4731,7 +4736,7 @@ class pr {
4731
4736
  this._entries.clear();
4732
4737
  }
4733
4738
  }
4734
- let cs = false;
4739
+ let ds = false;
4735
4740
  class gr {
4736
4741
  constructor(e) {
4737
4742
  this._hosts = /* @__PURE__ */ new Map(), this._focusPendingRestore = null, this._d = e;
@@ -4748,7 +4753,7 @@ class gr {
4748
4753
  }
4749
4754
  n.remove();
4750
4755
  } };
4751
- this._cache = new pr(s), e.getFlatModel().registerSplice((o) => this._splice(o)), t.heightMode === "auto" && !cs && (cs = true, console.warn("[OpenGrid] masterDetail.heightMode:'auto' 는 Spike-B(가변높이 VirtualScroll) 통과 전까지 미공개 기능입니다. 'fixed' 로 동작합니다(11_design_F2_v2.md §2.2/C12.2)."));
4756
+ this._cache = new pr(s), e.getFlatModel().registerSplice((o) => this._splice(o)), t.heightMode === "auto" && !ds && (ds = true, console.warn("[OpenGrid] masterDetail.heightMode:'auto' 는 Spike-B(가변높이 VirtualScroll) 통과 전까지 미공개 기능입니다. 'fixed' 로 동작합니다(11_design_F2_v2.md §2.2/C12.2)."));
4752
4757
  }
4753
4758
  _mdOpts() {
4754
4759
  var _a;
@@ -4886,25 +4891,25 @@ class gr {
4886
4891
  function fr(r, e) {
4887
4892
  return r == null || Number.isNaN(r) ? "" : e ? e(r, { axis: "tooltip" }) : String(r);
4888
4893
  }
4889
- function hs(r, e = {}) {
4890
- const { categories: t, series: s } = r, i = ["category", ...s.map((d) => d.name)], o = t.map((d, c) => [d, ...s.map((h) => fr(h.data[c] ?? null, e.numberFormat))]), a = s.map((d) => d.name).join(", ") || B("chart.tooltipEmpty");
4891
- return { caption: e.title ? B("chart.a11ySummary", { title: e.title, categories: t.length, series: a }) : B("chart.a11ySummaryNoTitle", { categories: t.length, series: a }), colHeaders: i, rows: o };
4894
+ function cs(r, e = {}) {
4895
+ const { categories: t, series: s } = r, i = ["category", ...s.map((d) => d.name)], o = t.map((d, c) => [d, ...s.map((h) => fr(h.data[c] ?? null, e.numberFormat))]), a = s.map((d) => d.name).join(", ") || $("chart.tooltipEmpty");
4896
+ return { caption: e.title ? $("chart.a11ySummary", { title: e.title, categories: t.length, series: a }) : $("chart.a11ySummaryNoTitle", { categories: t.length, series: a }), colHeaders: i, rows: o };
4892
4897
  }
4893
4898
  const _r = 0.8, mr = 50;
4894
- function us(r) {
4899
+ function hs(r) {
4895
4900
  if (r == null || r === "") return null;
4896
4901
  if (typeof r == "number") return Number.isFinite(r) ? r : null;
4897
4902
  const e = Number(r);
4898
4903
  return Number.isFinite(e) ? e : null;
4899
4904
  }
4900
- function ps(r, e, t) {
4905
+ function us(r, e, t) {
4901
4906
  if ((r == null ? void 0 : r.type) === "number") return true;
4902
4907
  if (r == null ? void 0 : r.type) return false;
4903
4908
  let s = 0, i = 0;
4904
4909
  for (const o of e) {
4905
4910
  if (s >= mr) break;
4906
4911
  const n = o[t];
4907
- n == null || n === "" || (s++, us(n) !== null && i++);
4912
+ n == null || n === "" || (s++, hs(n) !== null && i++);
4908
4913
  }
4909
4914
  return s === 0 ? false : i / s >= _r;
4910
4915
  }
@@ -4916,11 +4921,11 @@ function yr(r, e) {
4916
4921
  }
4917
4922
  function vr(r, e) {
4918
4923
  let t = null;
4919
- for (const i of e) if (!ps(i, r, i.field)) {
4924
+ for (const i of e) if (!us(i, r, i.field)) {
4920
4925
  t = i;
4921
4926
  break;
4922
4927
  }
4923
- const s = e.filter((i) => i !== t && ps(i, r, i.field));
4928
+ const s = e.filter((i) => i !== t && us(i, r, i.field));
4924
4929
  return { categoryField: (t == null ? void 0 : t.field) ?? null, seriesCols: s };
4925
4930
  }
4926
4931
  function br(r, e, t) {
@@ -4970,34 +4975,34 @@ function Rr(r, e, t = {}) {
4970
4975
  a = t.category ?? w.categoryField, l = w.seriesCols.map((y) => y.field);
4971
4976
  }
4972
4977
  const d = new Map(n.map((w) => [w.field, w])), c = a ? s.map((w) => String(w[a] ?? "")) : s.map((w, y) => String(y + 1)), h = l.map((w) => {
4973
- const y = wr(w), R = d.get(y), A = yr(w, (R == null ? void 0 : R.header) ?? y), S = s.map((C) => us(C[y])), O = typeof w == "string" ? void 0 : w.pattern, z = typeof w == "string" ? void 0 : w.color, $ = { name: A, data: S };
4974
- return O && ($.pattern = O), z && ($.color = z), $;
4978
+ const y = wr(w), R = d.get(y), F = yr(w, (R == null ? void 0 : R.header) ?? y), S = s.map((C) => hs(C[y])), B = typeof w == "string" ? void 0 : w.pattern, D = typeof w == "string" ? void 0 : w.color, z = { name: F, data: S };
4979
+ return B && (z.pattern = B), D && (z.color = D), z;
4975
4980
  }), u = s.length;
4976
- let g = c, p = h, f, m = false;
4981
+ let g = c, p = h, _, m = false;
4977
4982
  if (t.aggregate && c.length > 0) {
4978
4983
  const w = [], y = /* @__PURE__ */ new Map();
4979
4984
  for (let R = 0; R < c.length; R++) {
4980
- const A = c[R];
4981
- y.has(A) ? y.get(A).push(R) : (y.set(A, [R]), w.push(A));
4985
+ const F = c[R];
4986
+ y.has(F) ? y.get(F).push(R) : (y.set(F, [R]), w.push(F));
4982
4987
  }
4983
- w.length < c.length && (g = w, p = h.map((R) => ({ ...R, data: w.map((A) => {
4984
- const O = y.get(A).map((z) => R.data[z]).filter((z) => z !== null);
4985
- return O.length ? br(O, A, t.aggregate) : null;
4986
- }) })), f = typeof t.aggregate == "function" ? "custom" : t.aggregate, m = true);
4988
+ w.length < c.length && (g = w, p = h.map((R) => ({ ...R, data: w.map((F) => {
4989
+ const B = y.get(F).map((D) => R.data[D]).filter((D) => D !== null);
4990
+ return B.length ? br(B, F, t.aggregate) : null;
4991
+ }) })), _ = typeof t.aggregate == "function" ? "custom" : t.aggregate, m = true);
4987
4992
  }
4988
- const _ = { categories: g, series: p, meta: { sourceKind: i, total: u, sampled: m, a11yTable: hs({ categories: g, series: p }, { title: t.title, numberFormat: t.numberFormat }) } };
4989
- return f && (_.meta.aggregatedOp = f), { model: _, rangeFallback: o };
4993
+ const f = { categories: g, series: p, meta: { sourceKind: i, total: u, sampled: m, a11yTable: cs({ categories: g, series: p }, { title: t.title, numberFormat: t.numberFormat }) } };
4994
+ return _ && (f.meta.aggregatedOp = _), { model: f, rangeFallback: o };
4990
4995
  }
4991
4996
  function Mr(r) {
4992
4997
  return r === "line" || r === "area";
4993
4998
  }
4994
- function nt(r) {
4999
+ function ot(r) {
4995
5000
  return r == null || Number.isNaN(r) ? null : r;
4996
5001
  }
4997
- function gs(r) {
5002
+ function ps(r) {
4998
5003
  let e = -1, t = -1, s = 1 / 0, i = -1 / 0;
4999
5004
  for (let n = 0; n < r.length; n++) {
5000
- const a = nt(r[n]);
5005
+ const a = ot(r[n]);
5001
5006
  a != null && (a < s && (s = a, e = n), a > i && (i = a, t = n));
5002
5007
  }
5003
5008
  const o = [];
@@ -5006,7 +5011,7 @@ function gs(r) {
5006
5011
  function kr(r, e) {
5007
5012
  const t = r.length;
5008
5013
  if (e >= t || e <= 2) return Array.from({ length: t }, (a, l) => l);
5009
- const s = (a) => nt(r[a]) ?? 0, i = [0], o = (t - 2) / (e - 2);
5014
+ const s = (a) => ot(r[a]) ?? 0, i = [0], o = (t - 2) / (e - 2);
5010
5015
  let n = 0;
5011
5016
  for (let a = 0; a < e - 2; a++) {
5012
5017
  let l = 0, d = 0;
@@ -5016,11 +5021,11 @@ function kr(r, e) {
5016
5021
  const u = h - c;
5017
5022
  for (let y = c; y < h; y++) l += y, d += s(y);
5018
5023
  u > 0 && (l /= u, d /= u);
5019
- const g = Math.floor(a * o) + 1, p = Math.floor((a + 1) * o) + 1, f = n, m = s(n);
5020
- let _ = -1, w = g;
5024
+ const g = Math.floor(a * o) + 1, p = Math.floor((a + 1) * o) + 1, _ = n, m = s(n);
5025
+ let f = -1, w = g;
5021
5026
  for (let y = g; y < p && y < t; y++) {
5022
- const R = Math.abs((f - l) * (s(y) - m) - (f - y) * (d - m)) * 0.5;
5023
- R > _ && (_ = R, w = y);
5027
+ const R = Math.abs((_ - l) * (s(y) - m) - (_ - y) * (d - m)) * 0.5;
5028
+ R > f && (f = R, w = y);
5024
5029
  }
5025
5030
  i.push(w), n = w;
5026
5031
  }
@@ -5033,7 +5038,7 @@ function Er(r, e, t, s = {}) {
5033
5038
  let o, n;
5034
5039
  if (Mr(t)) {
5035
5040
  const l = ((_a = r.series[0]) == null ? void 0 : _a.data) ?? new Array(i).fill(0), d = /* @__PURE__ */ new Set([0, i - 1]);
5036
- for (const g of r.series) for (const p of gs(g.data)) d.add(p);
5041
+ for (const g of r.series) for (const p of ps(g.data)) d.add(p);
5037
5042
  const c = new Set(d), h = kr(l, e);
5038
5043
  for (const g of h) {
5039
5044
  if (c.size >= e) break;
@@ -5041,17 +5046,17 @@ function Er(r, e, t, s = {}) {
5041
5046
  }
5042
5047
  let u = [...c].sort((g, p) => g - p);
5043
5048
  if (u.length > e) {
5044
- const g = /* @__PURE__ */ new Set([0, i - 1]), p = r.series.map((m) => gs(m.data));
5045
- let f = true;
5046
- for (; f && g.size < e; ) {
5047
- f = false;
5049
+ const g = /* @__PURE__ */ new Set([0, i - 1]), p = r.series.map((m) => ps(m.data));
5050
+ let _ = true;
5051
+ for (; _ && g.size < e; ) {
5052
+ _ = false;
5048
5053
  for (const m of p) {
5049
5054
  if (g.size >= e) break;
5050
- const _ = m.find((w) => !g.has(w));
5051
- _ !== void 0 && (g.add(_), f = true);
5055
+ const f = m.find((w) => !g.has(w));
5056
+ f !== void 0 && (g.add(f), _ = true);
5052
5057
  }
5053
5058
  }
5054
- u = [...g].sort((m, _) => m - _).slice(0, e);
5059
+ u = [...g].sort((m, f) => m - f).slice(0, e);
5055
5060
  }
5056
5061
  o = u.map((g) => r.categories[g]), n = r.series.map((g) => ({ ...g, data: u.map((p) => g.data[p]) }));
5057
5062
  } else {
@@ -5062,67 +5067,67 @@ function Er(r, e, t, s = {}) {
5062
5067
  const u = Math.floor(h * d), g = Math.min(Math.floor((h + 1) * d), i);
5063
5068
  if (u >= g) continue;
5064
5069
  c.push([u, g]);
5065
- const p = r.categories[u], f = r.categories[g - 1];
5066
- o.push(g - u > 1 ? `${p}…${f}` : p);
5070
+ const p = r.categories[u], _ = r.categories[g - 1];
5071
+ o.push(g - u > 1 ? `${p}…${_}` : p);
5067
5072
  }
5068
5073
  n = r.series.map((h) => ({ ...h, data: c.map(([u, g]) => {
5069
- let p = 0, f = false;
5074
+ let p = 0, _ = false;
5070
5075
  for (let m = u; m < g; m++) {
5071
- const _ = nt(h.data[m]);
5072
- _ != null && (p += _, f = true);
5076
+ const f = ot(h.data[m]);
5077
+ f != null && (p += f, _ = true);
5073
5078
  }
5074
- return f ? p : null;
5079
+ return _ ? p : null;
5075
5080
  }) }));
5076
5081
  }
5077
- return { model: { categories: o, series: n, meta: { ...r.meta, sampled: true, sampledFrom: i, sampledTo: o.length, a11yTable: hs({ categories: o, series: n }, { title: s.title, numberFormat: s.numberFormat }) } }, sampled: true };
5082
+ return { model: { categories: o, series: n, meta: { ...r.meta, sampled: true, sampledFrom: i, sampledTo: o.length, a11yTable: cs({ categories: o, series: n }, { title: s.title, numberFormat: s.numberFormat }) } }, sampled: true };
5078
5083
  }
5079
- const fs = ["#0072B2", "#E69F00", "#009E73", "#CC79A7", "#F0E442", "#56B4E9", "#D55E00", "#999999"], _s = ["solid", "hatch", "dot", "cross"];
5080
- function at(r) {
5084
+ const gs = ["#0072B2", "#E69F00", "#009E73", "#CC79A7", "#F0E442", "#56B4E9", "#D55E00", "#999999"], fs = ["solid", "hatch", "dot", "cross"];
5085
+ function rt(r) {
5081
5086
  return Math.min(255, Math.max(0, r));
5082
5087
  }
5083
- function Ve(r) {
5088
+ function Pe(r) {
5084
5089
  const e = r.trim(), t = e.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i);
5085
- if (t) return { r: at(+t[1]), g: at(+t[2]), b: at(+t[3]) };
5090
+ if (t) return { r: rt(+t[1]), g: rt(+t[2]), b: rt(+t[3]) };
5086
5091
  const s = e.replace("#", "");
5087
5092
  return /^[0-9a-f]{3}$/i.test(s) ? { r: parseInt(s[0] + s[0], 16), g: parseInt(s[1] + s[1], 16), b: parseInt(s[2] + s[2], 16) } : /^[0-9a-f]{6}$/i.test(s) ? { r: parseInt(s.slice(0, 2), 16), g: parseInt(s.slice(2, 4), 16), b: parseInt(s.slice(4, 6), 16) } : null;
5088
5093
  }
5089
- function lt(r) {
5094
+ function nt(r) {
5090
5095
  const e = r / 255;
5091
5096
  return e <= 0.03928 ? e / 12.92 : Math.pow((e + 0.055) / 1.055, 2.4);
5092
5097
  }
5093
- function ms(r) {
5094
- return 0.2126 * lt(r.r) + 0.7152 * lt(r.g) + 0.0722 * lt(r.b);
5098
+ function _s(r) {
5099
+ return 0.2126 * nt(r.r) + 0.7152 * nt(r.g) + 0.0722 * nt(r.b);
5095
5100
  }
5096
- function ws(r, e) {
5097
- const t = Ve(r), s = Ve(e);
5101
+ function ms(r, e) {
5102
+ const t = Pe(r), s = Pe(e);
5098
5103
  if (!t || !s) return 1;
5099
- const i = ms(t), o = ms(s), [n, a] = i >= o ? [i, o] : [o, i];
5104
+ const i = _s(t), o = _s(s), [n, a] = i >= o ? [i, o] : [o, i];
5100
5105
  return (n + 0.05) / (a + 0.05);
5101
5106
  }
5102
5107
  function Sr(r, e = {}) {
5103
5108
  var _a;
5104
- const t = (e.palette && e.palette.length ? e.palette : fs).slice();
5105
- return !((_a = e.palette) == null ? void 0 : _a.length) && e.primary && Ve(e.primary) && (t.length < 2 || ws(e.primary, t[1]) >= 3) && (t[0] = e.primary), r.map((s, i) => ({ color: s.color ?? t[i % t.length], pattern: s.pattern ?? _s[i % _s.length] }));
5109
+ const t = (e.palette && e.palette.length ? e.palette : gs).slice();
5110
+ return !((_a = e.palette) == null ? void 0 : _a.length) && e.primary && Pe(e.primary) && (t.length < 2 || ms(e.primary, t[1]) >= 3) && (t[0] = e.primary), r.map((s, i) => ({ color: s.color ?? t[i % t.length], pattern: s.pattern ?? fs[i % fs.length] }));
5106
5111
  }
5107
- function ys(r, e) {
5112
+ function ws(r, e) {
5108
5113
  if (r === 0) return 0;
5109
5114
  const t = Math.abs(r), s = Math.floor(Math.log10(t)), i = t / Math.pow(10, s);
5110
5115
  let o;
5111
5116
  return e ? i < 1.5 ? o = 1 : i < 3 ? o = 2 : i < 7 ? o = 5 : o = 10 : i <= 1 ? o = 1 : i <= 2 ? o = 2 : i <= 5 ? o = 5 : o = 10, o * Math.pow(10, s);
5112
5117
  }
5113
- function dt(r, e) {
5118
+ function at(r, e) {
5114
5119
  const t = Math.max(0, -Math.floor(Math.log10(e)) + 6), s = Math.pow(10, t), i = Math.round(r * s) / s;
5115
5120
  return i === 0 ? 0 : i;
5116
5121
  }
5117
- function vs(r, e, t = 6) {
5122
+ function ys(r, e, t = 6) {
5118
5123
  let s = r, i = e;
5119
5124
  if (s > i && ([s, i] = [i, s]), s === i) if (s === 0) s = -1, i = 1;
5120
5125
  else {
5121
5126
  const u = Math.abs(s) * 0.5;
5122
5127
  s -= u, i += u;
5123
5128
  }
5124
- const o = Math.max(2, t), n = ys(i - s, false), a = ys(n / (o - 1), true), l = dt(Math.floor(s / a) * a, a), d = dt(Math.ceil(i / a) * a, a), c = [], h = Math.round((d - l) / a) + 1;
5125
- for (let u = 0; u < h; u++) c.push(dt(l + u * a, a));
5129
+ const o = Math.max(2, t), n = ws(i - s, false), a = ws(n / (o - 1), true), l = at(Math.floor(s / a) * a, a), d = at(Math.ceil(i / a) * a, a), c = [], h = Math.round((d - l) / a) + 1;
5130
+ for (let u = 0; u < h; u++) c.push(at(l + u * a, a));
5126
5131
  return { min: l, max: d, step: a, ticks: c };
5127
5132
  }
5128
5133
  function Fr(r, e, t) {
@@ -5147,22 +5152,22 @@ function Ar(r, e, t) {
5147
5152
  }
5148
5153
  return o;
5149
5154
  }
5150
- function bs(r, e, t, s) {
5155
+ function vs(r, e, t, s) {
5151
5156
  return r.length ? s === "line" || s === "area" ? Ar(r, e, t) : Fr(r, e, t) : null;
5152
5157
  }
5153
- const xs = "position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;padding:0;margin:-1px;", Me = { top: 26, right: 14, bottom: 34, left: 52 }, Te = 3.5;
5158
+ const bs = "position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;padding:0;margin:-1px;", Me = { top: 26, right: 14, bottom: 34, left: 52 }, Ie = 3.5;
5154
5159
  let Lr = 0;
5155
- function ct(r, e, t) {
5160
+ function lt(r, e, t) {
5156
5161
  return r == null || Number.isNaN(r) ? "" : e.numberFormat ? e.numberFormat(r, { axis: t }) : String(r);
5157
5162
  }
5158
- class Cs {
5163
+ class xs {
5159
5164
  constructor() {
5160
5165
  this.id = "builtin-canvas", this._host = null, this._canvas = null, this._a11yTable = null, this._legend = null, this._tooltip = null, this._live = null, this._model = null, this._w = 480, this._h = 300, this._geoms = [], this._hidden = /* @__PURE__ */ new Set(), this._cursor = { cat: 0, series: 0 }, this._onPoint = null, this._onMouseMove = (e) => {
5161
5166
  if (this._spec.tooltip === false) return;
5162
- const { x: t, y: s } = this._localXY(e), i = bs(this._geoms, t, s, this._spec.type);
5167
+ const { x: t, y: s } = this._localXY(e), i = vs(this._geoms, t, s, this._spec.type);
5163
5168
  i ? this._showTooltip(i, t, s) : this._hideTooltip();
5164
5169
  }, this._onMouseLeave = () => this._hideTooltip(), this._onClick = (e) => {
5165
- const { x: t, y: s } = this._localXY(e), i = bs(this._geoms, t, s, this._spec.type);
5170
+ const { x: t, y: s } = this._localXY(e), i = vs(this._geoms, t, s, this._spec.type);
5166
5171
  i && this._emitPoint(i);
5167
5172
  }, this._onKeyDown = (e) => {
5168
5173
  const t = this._model;
@@ -5197,9 +5202,9 @@ class Cs {
5197
5202
  async init(e, t) {
5198
5203
  this._host = e, this._spec = t, e.classList.add("og-chart"), getComputedStyle(e).position === "static" && (e.style.position = "relative");
5199
5204
  const s = document.createElement("canvas");
5200
- s.className = "og-chart-canvas", s.style.cssText = "display:block;", s.setAttribute("role", "img"), s.tabIndex = 0, s.setAttribute("aria-label", t.title ?? B("chart.canvasDefault")), this._canvas = s;
5205
+ s.className = "og-chart-canvas", s.style.cssText = "display:block;", s.setAttribute("role", "img"), s.tabIndex = 0, s.setAttribute("aria-label", t.title ?? $("chart.canvasDefault")), this._canvas = s;
5201
5206
  const i = document.createElement("table");
5202
- i.className = "og-chart-a11y", i.style.cssText = xs;
5207
+ i.className = "og-chart-a11y", i.style.cssText = bs;
5203
5208
  const o = `og-chart-a11y-${++Lr}`;
5204
5209
  i.id = o, s.setAttribute("aria-describedby", o), this._a11yTable = i;
5205
5210
  const n = document.createElement("div");
@@ -5207,11 +5212,11 @@ class Cs {
5207
5212
  const a = document.createElement("div");
5208
5213
  a.className = "og-chart-tooltip", a.style.cssText = "position:absolute;pointer-events:none;display:none;z-index:5;padding:4px 8px;font-size:12px;border-radius:4px;background:#333;color:#fff;white-space:nowrap;", this._tooltip = a;
5209
5214
  const l = document.createElement("div");
5210
- l.className = "og-chart-live", l.setAttribute("aria-live", "polite"), l.style.cssText = xs, this._live = l, e.appendChild(s), e.appendChild(i), e.appendChild(n), e.appendChild(a), e.appendChild(l), s.addEventListener("mousemove", this._onMouseMove), s.addEventListener("mouseleave", this._onMouseLeave), s.addEventListener("click", this._onClick), s.addEventListener("keydown", this._onKeyDown);
5215
+ l.className = "og-chart-live", l.setAttribute("aria-live", "polite"), l.style.cssText = bs, this._live = l, e.appendChild(s), e.appendChild(i), e.appendChild(n), e.appendChild(a), e.appendChild(l), s.addEventListener("mousemove", this._onMouseMove), s.addEventListener("mouseleave", this._onMouseLeave), s.addEventListener("click", this._onClick), s.addEventListener("keydown", this._onKeyDown);
5211
5216
  }
5212
5217
  render(e, t) {
5213
5218
  var _a;
5214
- this._model = e, this._spec = t, this._cursor.cat = e.categories.length ? Math.min(Math.max(this._cursor.cat, 0), e.categories.length - 1) : 0, this._cursor.series = e.series.length ? Math.min(Math.max(this._cursor.series, 0), e.series.length - 1) : 0, this._canvas && this._canvas.setAttribute("aria-label", ((_a = t.a11y) == null ? void 0 : _a.caption) ?? t.title ?? B("chart.canvasDefault")), this._renderA11yTable(e, t), this._renderLegend(e, t), this._computeGeometry(e, t), this._paint(e, t), this._hideTooltip();
5219
+ this._model = e, this._spec = t, this._cursor.cat = e.categories.length ? Math.min(Math.max(this._cursor.cat, 0), e.categories.length - 1) : 0, this._cursor.series = e.series.length ? Math.min(Math.max(this._cursor.series, 0), e.series.length - 1) : 0, this._canvas && this._canvas.setAttribute("aria-label", ((_a = t.a11y) == null ? void 0 : _a.caption) ?? t.title ?? $("chart.canvasDefault")), this._renderA11yTable(e, t), this._renderLegend(e, t), this._computeGeometry(e, t), this._paint(e, t), this._hideTooltip();
5215
5220
  }
5216
5221
  resize(e, t) {
5217
5222
  this._w = Math.max(80, Math.floor(e)), this._h = Math.max(60, Math.floor(t)), this._model && this.render(this._model, this._spec);
@@ -5304,21 +5309,21 @@ class Cs {
5304
5309
  }), (!Number.isFinite(t) || !Number.isFinite(s)) && (t = 0, s = 1), (this._spec.type === "bar" || this._spec.type === "bar-stacked" || this._spec.type === "bar-grouped") && (t = Math.min(0, t), s = Math.max(0, s)), { min: t, max: s };
5305
5310
  }
5306
5311
  _computeGeometry(e, t) {
5307
- const s = [], i = this._plotRect(), n = e.categories.length || 1, { min: a, max: l } = this._valueExtent(e), d = vs(a, l, 6), c = (f) => {
5308
- const m = (f - d.min) / (d.max - d.min || 1);
5312
+ const s = [], i = this._plotRect(), n = e.categories.length || 1, { min: a, max: l } = this._valueExtent(e), d = ys(a, l, 6), c = (_) => {
5313
+ const m = (_ - d.min) / (d.max - d.min || 1);
5309
5314
  return i.y + i.h - m * i.h;
5310
- }, h = c(0 < d.min ? d.min : 0 > d.max ? d.max : 0), u = i.w / n, g = t.type === "line" || t.type === "area", p = e.series.map((f, m) => ({ s: f, si: m })).filter(({ si: f }) => !this._hidden.has(f));
5311
- if (g) for (const { s: f, si: m } of p) f.data.forEach((_, w) => {
5312
- const y = i.x + u * w + u / 2, R = _ == null ? NaN : c(_);
5313
- Number.isNaN(R) || s.push({ seriesIndex: m, categoryIndex: w, x: y - Te, y: R - Te, w: Te * 2, h: Te * 2, cx: y, cy: R });
5315
+ }, h = c(0 < d.min ? d.min : 0 > d.max ? d.max : 0), u = i.w / n, g = t.type === "line" || t.type === "area", p = e.series.map((_, m) => ({ s: _, si: m })).filter(({ si: _ }) => !this._hidden.has(_));
5316
+ if (g) for (const { s: _, si: m } of p) _.data.forEach((f, w) => {
5317
+ const y = i.x + u * w + u / 2, R = f == null ? NaN : c(f);
5318
+ Number.isNaN(R) || s.push({ seriesIndex: m, categoryIndex: w, x: y - Ie, y: R - Ie, w: Ie * 2, h: Ie * 2, cx: y, cy: R });
5314
5319
  });
5315
5320
  else {
5316
- const f = p.length || 1, m = u * 0.72, _ = m / f;
5321
+ const _ = p.length || 1, m = u * 0.72, f = m / _;
5317
5322
  p.forEach(({ s: w, si: y }, R) => {
5318
- w.data.forEach((A, S) => {
5319
- if (A == null || Number.isNaN(A)) return;
5320
- const z = i.x + u * S + (u - m) / 2 + _ * R, $ = c(A), C = Math.min($, h), E = Math.abs(h - $);
5321
- s.push({ seriesIndex: y, categoryIndex: S, x: z, y: C, w: _, h: E, cx: z + _ / 2, cy: C + E / 2 });
5323
+ w.data.forEach((F, S) => {
5324
+ if (F == null || Number.isNaN(F)) return;
5325
+ const D = i.x + u * S + (u - m) / 2 + f * R, z = c(F), C = Math.min(z, h), I = Math.abs(h - z);
5326
+ s.push({ seriesIndex: y, categoryIndex: S, x: D, y: C, w: f, h: I, cx: D + f / 2, cy: C + I / 2 });
5322
5327
  });
5323
5328
  });
5324
5329
  }
@@ -5332,33 +5337,33 @@ class Cs {
5332
5337
  const o = s.getContext ? s.getContext("2d") : null;
5333
5338
  if (!o) return;
5334
5339
  o.setTransform(i, 0, 0, i, 0, 0), o.clearRect(0, 0, this._w, this._h);
5335
- const n = t.theme, a = this._plotRect(), { min: l, max: d } = this._valueExtent(e), c = vs(l, d, 6), h = (f) => {
5336
- const m = (f - c.min) / (c.max - c.min || 1);
5340
+ const n = t.theme, a = this._plotRect(), { min: l, max: d } = this._valueExtent(e), c = ys(l, d, 6), h = (_) => {
5341
+ const m = (_ - c.min) / (c.max - c.min || 1);
5337
5342
  return a.y + a.h - m * a.h;
5338
5343
  };
5339
5344
  o.strokeStyle = (n == null ? void 0 : n.gridLine) || (n == null ? void 0 : n.border) || "#e0e0e0", o.fillStyle = (n == null ? void 0 : n.text) || "#212121", o.lineWidth = 1, o.font = `${(n == null ? void 0 : n.fontSize) || 12}px ${(n == null ? void 0 : n.fontFamily) || "sans-serif"}`, o.textAlign = "right", o.textBaseline = "middle";
5340
- for (const f of c.ticks) {
5341
- const m = h(f);
5342
- o.beginPath(), o.moveTo(a.x, m), o.lineTo(a.x + a.w, m), o.stroke(), o.fillText(ct(f, t, "y"), a.x - 6, m);
5345
+ for (const _ of c.ticks) {
5346
+ const m = h(_);
5347
+ o.beginPath(), o.moveTo(a.x, m), o.lineTo(a.x + a.w, m), o.stroke(), o.fillText(lt(_, t, "y"), a.x - 6, m);
5343
5348
  }
5344
5349
  o.textAlign = "center", o.textBaseline = "top";
5345
5350
  const u = a.w / (e.categories.length || 1);
5346
- e.categories.forEach((f, m) => {
5347
- const _ = a.x + u * m + u / 2;
5348
- o.fillText(String(f), _, a.y + a.h + 6);
5351
+ e.categories.forEach((_, m) => {
5352
+ const f = a.x + u * m + u / 2;
5353
+ o.fillText(String(_), f, a.y + a.h + 6);
5349
5354
  });
5350
5355
  const g = this._styles(e, t);
5351
5356
  if (t.type === "line" || t.type === "area") {
5352
- const f = /* @__PURE__ */ new Map();
5357
+ const _ = /* @__PURE__ */ new Map();
5353
5358
  for (const m of this._geoms) {
5354
- let _ = f.get(m.seriesIndex);
5355
- _ || (_ = [], f.set(m.seriesIndex, _)), _.push(m);
5359
+ let f = _.get(m.seriesIndex);
5360
+ f || (f = [], _.set(m.seriesIndex, f)), f.push(m);
5356
5361
  }
5357
- for (const [m, _] of f) {
5358
- _.sort((w, y) => w.categoryIndex - y.categoryIndex), o.strokeStyle = g[m].color, o.lineWidth = 2, o.setLineDash(Ir(g[m].pattern)), o.beginPath(), _.forEach((w, y) => y === 0 ? o.moveTo(w.cx, w.cy) : o.lineTo(w.cx, w.cy)), o.stroke(), o.setLineDash([]), o.fillStyle = g[m].color;
5359
- for (const w of _) o.beginPath(), o.arc(w.cx, w.cy, Te, 0, Math.PI * 2), o.fill();
5362
+ for (const [m, f] of _) {
5363
+ f.sort((w, y) => w.categoryIndex - y.categoryIndex), o.strokeStyle = g[m].color, o.lineWidth = 2, o.setLineDash(Ir(g[m].pattern)), o.beginPath(), f.forEach((w, y) => y === 0 ? o.moveTo(w.cx, w.cy) : o.lineTo(w.cx, w.cy)), o.stroke(), o.setLineDash([]), o.fillStyle = g[m].color;
5364
+ for (const w of f) o.beginPath(), o.arc(w.cx, w.cy, Ie, 0, Math.PI * 2), o.fill();
5360
5365
  }
5361
- } else for (const f of this._geoms) o.fillStyle = g[f.seriesIndex].color, o.fillRect(f.x, f.y, f.w, f.h), Tr(o, f, g[f.seriesIndex].pattern);
5366
+ } else for (const _ of this._geoms) o.fillStyle = g[_.seriesIndex].color, o.fillRect(_.x, _.y, _.w, _.h), Tr(o, _, g[_.seriesIndex].pattern);
5362
5367
  }
5363
5368
  _localXY(e) {
5364
5369
  var _a;
@@ -5373,7 +5378,7 @@ class Cs {
5373
5378
  _announceCursor() {
5374
5379
  const e = this._model;
5375
5380
  if (!e) return;
5376
- const t = e.series[this._cursor.series], s = e.categories[this._cursor.cat], i = (t == null ? void 0 : t.data[this._cursor.cat]) ?? null, o = `${(t == null ? void 0 : t.name) ?? ""}, ${s ?? ""}: ${ct(i, this._spec, "tooltip") || B("chart.tooltipEmpty")}`;
5381
+ const t = e.series[this._cursor.series], s = e.categories[this._cursor.cat], i = (t == null ? void 0 : t.data[this._cursor.cat]) ?? null, o = `${(t == null ? void 0 : t.name) ?? ""}, ${s ?? ""}: ${lt(i, this._spec, "tooltip") || $("chart.tooltipEmpty")}`;
5377
5382
  this._live && (this._live.textContent = o);
5378
5383
  const n = this._cursorPoint();
5379
5384
  n && this._showTooltip(n, n.cx, n.cy);
@@ -5391,7 +5396,7 @@ class Cs {
5391
5396
  const i = this._tooltip;
5392
5397
  if (!i || this._spec.tooltip === false) return;
5393
5398
  const o = this._pointOf(e);
5394
- i.textContent = `${o.seriesName} · ${o.category}: ${ct(o.value, this._spec, "tooltip")}`, i.style.display = "block", i.style.left = `${t + 10}px`, i.style.top = `${s + 10}px`;
5399
+ i.textContent = `${o.seriesName} · ${o.category}: ${lt(o.value, this._spec, "tooltip")}`, i.style.display = "block", i.style.left = `${t + 10}px`, i.style.top = `${s + 10}px`;
5395
5400
  }
5396
5401
  _hideTooltip() {
5397
5402
  this._tooltip && (this._tooltip.style.display = "none");
@@ -5424,7 +5429,7 @@ function Tr(r, e, t) {
5424
5429
  function Dr() {
5425
5430
  return typeof window < "u" && window.devicePixelRatio ? window.devicePixelRatio : 1;
5426
5431
  }
5427
- const Or = 500, $r = 50, zr = 100, ht = { width: 480, height: 300 };
5432
+ const Or = 500, $r = 50, zr = 100, dt = { width: 480, height: 300 };
5428
5433
  let Br = 0;
5429
5434
  class Hr {
5430
5435
  constructor(e) {
@@ -5432,11 +5437,11 @@ class Hr {
5432
5437
  }
5433
5438
  createChart(e) {
5434
5439
  var _a;
5435
- const t = `chart-${++Br}`, s = this._d.getContainer(), i = this._snapshotRange(e), { adapter: o, engineFallback: n } = this._resolveAdapter(e), { panel: a, host: l, badgeBox: d, backdrop: c } = this._buildPanel(e, s), h = { id: t, config: e, adapter: o, panel: a, badgeBox: d, host: l, backdrop: c, model: null, spec: null, snapshot: i, liveHandler: null, debounceTimer: null, resizeObserver: null, resizeDebounceTimer: null, renderSize: { ...ht }, localEvents: /* @__PURE__ */ new Map(), destroyed: false, instance: null };
5440
+ const t = `chart-${++Br}`, s = this._d.getContainer(), i = this._snapshotRange(e), { adapter: o, engineFallback: n } = this._resolveAdapter(e), { panel: a, host: l, badgeBox: d, backdrop: c } = this._buildPanel(e, s), h = { id: t, config: e, adapter: o, panel: a, badgeBox: d, host: l, backdrop: c, model: null, spec: null, snapshot: i, liveHandler: null, debounceTimer: null, resizeObserver: null, resizeDebounceTimer: null, renderSize: { ...dt }, localEvents: /* @__PURE__ */ new Map(), destroyed: false, instance: null };
5436
5441
  try {
5437
5442
  this._charts.set(t, h);
5438
5443
  const { model: u, rangeFallback: g } = this._extract(h);
5439
- h.model = u, h.spec = this._buildSpec(e, u), h.renderSize = this._resolveRenderSize(e, l), o.init(l, h.spec), o.resize(h.renderSize.width, h.renderSize.height), o.render(u, h.spec), (_a = o.onPointClick) == null ? void 0 : _a.call(o, (f) => this._onPointClick(h, f)), this._renderBadges(h, g, n), e.live !== false && this._subscribeLive(h), this._attachResizeObserver(h);
5444
+ h.model = u, h.spec = this._buildSpec(e, u), h.renderSize = this._resolveRenderSize(e, l), o.init(l, h.spec), o.resize(h.renderSize.width, h.renderSize.height), o.render(u, h.spec), (_a = o.onPointClick) == null ? void 0 : _a.call(o, (_) => this._onPointClick(h, _)), this._renderBadges(h, g, n), e.live !== false && this._subscribeLive(h), this._attachResizeObserver(h);
5440
5445
  const p = this._makeInstance(h);
5441
5446
  return this._bindOptionCallbacks(h), this._emit(h, "chartCreate", p), this._d.emit("chartCreate", p), p;
5442
5447
  } catch (u) {
@@ -5449,7 +5454,7 @@ class Hr {
5449
5454
  }
5450
5455
  _resolveRenderSize(e, t) {
5451
5456
  var _a;
5452
- const s = e.size ?? ht, i = t.clientWidth;
5457
+ const s = e.size ?? dt, i = t.clientWidth;
5453
5458
  return { width: ((_a = e.size) == null ? void 0 : _a.width) ?? (i > 0 ? i : s.width), height: s.height };
5454
5459
  }
5455
5460
  _attachResizeObserver(e) {
@@ -5511,11 +5516,11 @@ class Hr {
5511
5516
  _snapshotTheme() {
5512
5517
  var _a;
5513
5518
  const e = this._d.getContainer(), t = ((_a = this._d.getOptions()) == null ? void 0 : _a.chart) ?? {}, s = this._readVar(e, "--og-primary", "#1976d2"), i = this._readVar(e, "--og-font-size", "13px"), o = parseInt(i, 10) || 13;
5514
- return { primary: s, border: this._readVar(e, "--og-border-color", "#e0e0e0"), text: this._readVar(e, "--og-row-color", "#212121"), bg: this._readVar(e, "--og-row-bg", "#ffffff"), gridLine: this._readVar(e, "--og-border-color", "#e0e0e0"), fontFamily: getComputedStyle(e).fontFamily || "sans-serif", fontSize: o, palette: (t.palette && t.palette.length ? t.palette : fs).slice() };
5519
+ return { primary: s, border: this._readVar(e, "--og-border-color", "#e0e0e0"), text: this._readVar(e, "--og-row-color", "#212121"), bg: this._readVar(e, "--og-row-bg", "#ffffff"), gridLine: this._readVar(e, "--og-border-color", "#e0e0e0"), fontFamily: getComputedStyle(e).fontFamily || "sans-serif", fontSize: o, palette: (t.palette && t.palette.length ? t.palette : gs).slice() };
5515
5520
  }
5516
5521
  _buildPanel(e, t) {
5517
5522
  var _a, _b;
5518
- const s = e.placement ?? ((_b = (_a = this._d.getOptions()) == null ? void 0 : _a.chart) == null ? void 0 : _b.placement) ?? "docked", i = e.size ?? ht, o = document.createElement("div");
5523
+ const s = e.placement ?? ((_b = (_a = this._d.getOptions()) == null ? void 0 : _a.chart) == null ? void 0 : _b.placement) ?? "docked", i = e.size ?? dt, o = document.createElement("div");
5519
5524
  o.className = "og-chart-panel", o.setAttribute("data-placement", s), o.setAttribute("role", "group"), o.setAttribute("aria-label", e.title ?? this._d.t("chart.defaultTitle"));
5520
5525
  const n = document.createElement("div");
5521
5526
  n.className = "og-chart-badges", n.style.cssText = "display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px;";
@@ -5556,7 +5561,7 @@ class Hr {
5556
5561
  _resolveAdapter(e) {
5557
5562
  var _a, _b;
5558
5563
  const t = e.engine ?? ((_b = (_a = this._d.getOptions()) == null ? void 0 : _a.chart) == null ? void 0 : _b.defaultEngine) ?? "builtin";
5559
- return t && typeof t == "object" ? { adapter: t, engineFallback: null } : t === "chartjs" || t === "echarts" ? { adapter: new Cs(), engineFallback: t } : { adapter: new Cs(), engineFallback: null };
5564
+ return t && typeof t == "object" ? { adapter: t, engineFallback: null } : t === "chartjs" || t === "echarts" ? { adapter: new xs(), engineFallback: t } : { adapter: new xs(), engineFallback: null };
5560
5565
  }
5561
5566
  _onPointClick(e, t) {
5562
5567
  this._emit(e, "chartPointClick", { id: e.id, point: t }), this._d.emit("chartPointClick", { id: e.id, point: t });
@@ -5666,7 +5671,7 @@ class Pr {
5666
5671
  return [...this._originals.keys()];
5667
5672
  }
5668
5673
  }
5669
- const ut = "_ogRowId";
5674
+ const ct = "_ogRowId";
5670
5675
  class me {
5671
5676
  static compose(e, t, s, i) {
5672
5677
  const o = me.buildCoreServices(e, t, s), n = me.buildFormula(e, o), a = me.buildManagers(e, o, n, i), l = me.buildOverrideKernel(e, a);
@@ -5675,8 +5680,8 @@ class me {
5675
5680
  static buildCoreServices(e, t, s) {
5676
5681
  const i = typeof t == "string" ? document.querySelector(t) : t;
5677
5682
  if (!i) throw new Error(`OpenGrid: container not found: ${t}`);
5678
- if (e._container = i, e._options = { height: "100%", width: "100%", rowHeight: 32, headerHeight: 34, footerHeight: 30, autoHeight: false, fillWidth: false, defaultColumnWidth: 100, editable: false, editMode: "dblclick", history: true, historySize: 100, selection: "single", clipboard: true, sortable: true, multiSort: true, filterable: true, defaultSort: [], frozenColumns: 0, frozenRows: 0, rowNumber: false, stateColumn: false, checkColumn: false, draggable: false, crossGrid: false, crossGridMapping: "auto", mergeCells: false, groupBy: [], summary: void 0, treeMode: "auto", treeId: "id", treeParentId: "parentId", expandOnLoad: false, pagination: false, pageSize: 50, footer: void 0, footerPosition: "bottom", theme: "default", skin: "default", cssVars: {}, ariaLabel: "OPEN_GRID 데이터 그리드", ...s }, e._data = new eo(ut), e._flatModel = new no({ getDataLayer: () => e._data, rowIdField: ut }), e._rowMgr = new ao(e._data), e._colLayout = new wt(e._options.columns, e._options.frozenColumns), s.locale || s.messages) {
5679
- const o = se.child();
5683
+ if (e._container = i, e._options = { height: "100%", width: "100%", rowHeight: 32, headerHeight: 34, footerHeight: 30, autoHeight: false, fillWidth: false, defaultColumnWidth: 100, editable: false, editMode: "dblclick", history: true, historySize: 100, selection: "single", clipboard: true, sortable: true, multiSort: true, filterable: true, defaultSort: [], frozenColumns: 0, frozenRows: 0, rowNumber: false, stateColumn: false, checkColumn: false, draggable: false, crossGrid: false, crossGridMapping: "auto", mergeCells: false, groupBy: [], summary: void 0, treeMode: "auto", treeId: "id", treeParentId: "parentId", expandOnLoad: false, pagination: false, pageSize: 50, footer: void 0, footerPosition: "bottom", theme: "default", skin: "default", cssVars: {}, ariaLabel: "OPEN_GRID 데이터 그리드", ...s }, e._data = new eo(ct), e._flatModel = new no({ getDataLayer: () => e._data, rowIdField: ct }), e._rowMgr = new ao(e._data), e._colLayout = new mt(e._options.columns, e._options.frozenColumns), s.locale || s.messages) {
5684
+ const o = te.child();
5680
5685
  s.messages && o.applyOverrides(s.messages), s.locale && (o.setActive(s.locale), e._container.setAttribute("lang", o.meta().intlLocale)), e._locales = o;
5681
5686
  } else e._locales = null;
5682
5687
  return { _phase: "core" };
@@ -5685,13 +5690,13 @@ class me {
5685
5690
  var _a, _b;
5686
5691
  return e._formula = new uo({ getData: () => e._data, getColLayout: () => e._colLayout, getFlatModel: () => e._flatModel, getRecalc: () => e._recalc, getDirtySeeds: () => e._formulaDirtySeeds, getOptions: () => e._options, emit: (s, i) => {
5687
5692
  e.emit(s, i);
5688
- }, announce: (s) => e._announce(s), t: (s, i) => e.t(s, i), doRenderWindow: () => e._doRender(...e._visRange()) }), e._recalc = new is({ accessor: e._formula.buildAccessor(), setComputedValue: (s, i, o) => e._data.setComputedValueByRowId(s, i, o), onFormulaError: (s, i, o) => e._formula.handleFormulaError(s, i, o), refMode: ((_a = e._options.formula) == null ? void 0 : _a.refMode) ?? "stable", divisionPrecision: ((_b = e._options.formula) == null ? void 0 : _b.divisionPrecision) ?? 30 }), { _phase: "formula" };
5693
+ }, announce: (s) => e._announce(s), t: (s, i) => e.t(s, i), doRenderWindow: () => e._doRender(...e._visRange()) }), e._recalc = new ss({ accessor: e._formula.buildAccessor(), setComputedValue: (s, i, o) => e._data.setComputedValueByRowId(s, i, o), onFormulaError: (s, i, o) => e._formula.handleFormulaError(s, i, o), refMode: ((_a = e._options.formula) == null ? void 0 : _a.refMode) ?? "stable", divisionPrecision: ((_b = e._options.formula) == null ? void 0 : _b.divisionPrecision) ?? 30 }), { _phase: "formula" };
5689
5694
  }
5690
5695
  static buildManagers(e, t, s, i) {
5691
5696
  return e._editMgr = new Oo({ data: e._data, colLayout: e._colLayout, getRenderer: () => e._renderer, getContainer: () => e._container, getOptions: () => e._options, emit: (o, ...n) => e.emit(o, ...n), doRender: () => e._doRender(...e._visRange()), announce: (o) => e._announce(o), t: (o, n) => e.t(o, n), writeCell: (o, n, a) => e.writeCell(o, n, a), scrollToRow: (o) => {
5692
5697
  var _a;
5693
5698
  return (_a = e._vs) == null ? void 0 : _a.scrollToRow(o);
5694
- }, getVisibleLeaves: () => e._colLayout.visibleLeaves, hasCellFormula: (o, n) => e.hasCellFormula(o, n), getCellFormula: (o, n) => e.getCellFormula(o, n), setCellFormula: (o, n, a) => e.setCellFormula(o, n, a), clearCellFormula: (o, n) => e.clearCellFormula(o, n) }), e._exportMgr = new $o({ getData: () => e._data.getData(), getColLayout: () => e._colLayout, getColWidths: () => e._colWidths, getOptions: () => e._options, getContainer: () => e._container, getMaskEnabled: (o) => e.getMaskEnabled(o), getWsManager: () => e._wsManager, getStrategy: (o, n) => e._ovk.getStrategy(o, n), t: (o, n) => e.t(o, n), getMeta: () => (e._locales ?? se).meta() }), e._footerMgr = new zo({ getData: () => e._data.getData(), getColLayout: () => e._colLayout, getColWidths: () => e._colWidths, getOptions: () => e._options, getContainer: () => e._container, getStrategy: (o, n) => e._ovk.getStrategy(o, n) }), e._kbdMgr = new Bo({ getEditMgr: () => e._editMgr, getRowMgr: () => e._rowMgr, getData: () => e._data, getColLayout: () => e._colLayout, getOptions: () => e._options, setFocusCell: (o, n) => e._setFocusCell(o, n), handleRowDrop: (o, n) => e._handleRowDrop(o, n), doRender: () => e._doRender(...e._visRange()), announce: (o) => e._announce(o), t: (o, n) => e.t(o, n), emit: (o, ...n) => e.emit(o, ...n), visRange: () => e._visRange(), handleCellKeyEvt: (o, n) => e._handleCellKeyEvt(o, n), writeCells: (o) => e.writeCells(o), getRangeHooks: () => e._rangeMgr }), e._sfMgr = new Ho({ getData: () => e._data, getColLayout: () => e._colLayout, getFindFilter: () => e._findMgr.findFilter, getVs: () => e._vs, getPagination: () => e._pagination, getOptions: () => e._options, renderHeader: () => e._renderHeader(), doRender: () => e._doRender(...e._visRange()), announce: (o) => e._announce(o), t: (o, n) => e.t(o, n), emit: (o, ...n) => e.emit(o, ...n), onReproject: () => e._rangeMgr.reproject() }), e._findMgr = new Po({ getColLayout: () => e._colLayout, getData: () => e._data, getFilters: () => e._sfMgr.filters, getVs: () => e._vs, getPagination: () => e._pagination, doRender: () => e._doRender(...e._visRange()), t: (o, n) => e.t(o, n) }), e._cellEvt = new No({ getData: () => e._data, getColLayout: () => e._colLayout, getOptions: () => e._options, getEditMgr: () => e._editMgr, getRowMgr: () => e._rowMgr, emit: (o, ...n) => e.emit(o, ...n), writeCell: (o, n, a) => e.writeCell(o, n, a), doRender: () => e._doRender(...e._visRange()), getContainer: () => e._container, onCellsClick: (o, n, a) => e._rangeMgr.handleClick(o, n, a), rangeMouseDown: (o, n, a) => e._rangeMgr.handleCellMouseDown(o, n, a), rangeMouseMove: (o, n, a) => e._rangeMgr.handleCellMouseMove(o, n, a), rangeMouseUp: (o, n, a) => e._rangeMgr.handleCellMouseUp(o, n, a) }), e._rangeMgr = new ir({ getOptions: () => e._options, getData: () => e._data, getColLayout: () => e._colLayout, getFlatModel: () => e._flatModel, getRenderer: () => e._renderer, getEditMgr: () => e._editMgr, setFocusCell: (o, n) => e._setFocusCell(o, n), writeCells: (o) => e.writeCells(o), getDisplayValue: (o, n) => e.getDisplayValue(o, n), emit: (o, ...n) => e.emit(o, ...n), doRender: () => e._doRender(...e._visRange()), announce: (o) => e._announce(o), t: (o, n) => e.t(o, n), hasCellFormula: (o, n) => e._recalc.hasCellFormula(o, n), offsetFormula: (o, n, a, l) => e._recalc.offsetFormula(o, n, a, l), setCellFormulaByRowId: (o, n, a) => e._formula.setCellFormulaByRowId(o, n, a) }), e._grpMgr = new or({ getData: () => e._data.getData(), getDataLayer: () => e._data, getOptions: () => e._options, getVs: () => e._vs, doRenderFull: (o) => e._doRender(0, o - 1), doRender: () => e._doRender(...e._visRange()), getStrategy: (o, n) => e._ovk.getStrategy(o, n), setFlatBacking: (o) => e._flatModel.setBacking(o), getFlatCount: () => e._flatModel.count() }), e._detailMgr = new gr({ getOptions: () => e._options, getFlatModel: () => e._flatModel, getVs: () => e._vs, getRowId: (o) => o[ut], getRowById: (o) => e._data.getRowById(o), doRenderFull: (o) => e._doRender(0, o - 1), emit: (o, n) => e.emit(o, n), announce: (o) => e._announce(o), t: (o, n) => e.t(o, n), getDepth: () => e._options._detailDepth ?? 0, getGridInstance: () => e, createSubgrid: (o, n, a) => i.createSubgrid(o, n, a) }), e._chartMgr = new Hr({ getContainer: () => e._container, getOptions: () => e._options, getAllRows: () => e._data.getData(), getSelectedRows: () => e._rowMgr.getSelections(), getCheckedRows: () => e._rowMgr.getChecked().map((o) => o.row), getVisibleColumns: () => e._colLayout.visibleLeaves.map((o) => ({ field: o.field, header: o.header, type: o.type })), getFlatModel: () => e._flatModel, getRowById: (o) => e._data.getRowById(o), getActiveRange: () => e._rangeMgr.getActiveRange(), on: (o, n) => {
5699
+ }, getVisibleLeaves: () => e._colLayout.visibleLeaves, hasCellFormula: (o, n) => e.hasCellFormula(o, n), getCellFormula: (o, n) => e.getCellFormula(o, n), setCellFormula: (o, n, a) => e.setCellFormula(o, n, a), clearCellFormula: (o, n) => e.clearCellFormula(o, n) }), e._exportMgr = new $o({ getData: () => e._data.getData(), getColLayout: () => e._colLayout, getColWidths: () => e._colWidths, getOptions: () => e._options, getContainer: () => e._container, getMaskEnabled: (o) => e.getMaskEnabled(o), getWsManager: () => e._wsManager, getStrategy: (o, n) => e._ovk.getStrategy(o, n), t: (o, n) => e.t(o, n), getMeta: () => (e._locales ?? te).meta() }), e._footerMgr = new zo({ getData: () => e._data.getData(), getColLayout: () => e._colLayout, getColWidths: () => e._colWidths, getOptions: () => e._options, getContainer: () => e._container, getStrategy: (o, n) => e._ovk.getStrategy(o, n) }), e._kbdMgr = new Bo({ getEditMgr: () => e._editMgr, getRowMgr: () => e._rowMgr, getData: () => e._data, getColLayout: () => e._colLayout, getOptions: () => e._options, setFocusCell: (o, n) => e._setFocusCell(o, n), handleRowDrop: (o, n) => e._handleRowDrop(o, n), doRender: () => e._doRender(...e._visRange()), announce: (o) => e._announce(o), t: (o, n) => e.t(o, n), emit: (o, ...n) => e.emit(o, ...n), visRange: () => e._visRange(), handleCellKeyEvt: (o, n) => e._handleCellKeyEvt(o, n), writeCells: (o) => e.writeCells(o), getRangeHooks: () => e._rangeMgr }), e._sfMgr = new Ho({ getData: () => e._data, getColLayout: () => e._colLayout, getFindFilter: () => e._findMgr.findFilter, getVs: () => e._vs, getPagination: () => e._pagination, getOptions: () => e._options, renderHeader: () => e._renderHeader(), doRender: () => e._doRender(...e._visRange()), announce: (o) => e._announce(o), t: (o, n) => e.t(o, n), emit: (o, ...n) => e.emit(o, ...n), onReproject: () => e._rangeMgr.reproject() }), e._findMgr = new Po({ getColLayout: () => e._colLayout, getData: () => e._data, getFilters: () => e._sfMgr.filters, getVs: () => e._vs, getPagination: () => e._pagination, doRender: () => e._doRender(...e._visRange()), t: (o, n) => e.t(o, n) }), e._cellEvt = new No({ getData: () => e._data, getColLayout: () => e._colLayout, getOptions: () => e._options, getEditMgr: () => e._editMgr, getRowMgr: () => e._rowMgr, emit: (o, ...n) => e.emit(o, ...n), writeCell: (o, n, a) => e.writeCell(o, n, a), doRender: () => e._doRender(...e._visRange()), getContainer: () => e._container, onCellsClick: (o, n, a) => e._rangeMgr.handleClick(o, n, a), rangeMouseDown: (o, n, a) => e._rangeMgr.handleCellMouseDown(o, n, a), rangeMouseMove: (o, n, a) => e._rangeMgr.handleCellMouseMove(o, n, a), rangeMouseUp: (o, n, a) => e._rangeMgr.handleCellMouseUp(o, n, a) }), e._rangeMgr = new ir({ getOptions: () => e._options, getData: () => e._data, getColLayout: () => e._colLayout, getFlatModel: () => e._flatModel, getRenderer: () => e._renderer, getEditMgr: () => e._editMgr, setFocusCell: (o, n) => e._setFocusCell(o, n), writeCells: (o) => e.writeCells(o), getDisplayValue: (o, n) => e.getDisplayValue(o, n), emit: (o, ...n) => e.emit(o, ...n), doRender: () => e._doRender(...e._visRange()), announce: (o) => e._announce(o), t: (o, n) => e.t(o, n), hasCellFormula: (o, n) => e._recalc.hasCellFormula(o, n), offsetFormula: (o, n, a, l) => e._recalc.offsetFormula(o, n, a, l), setCellFormulaByRowId: (o, n, a) => e._formula.setCellFormulaByRowId(o, n, a) }), e._grpMgr = new or({ getData: () => e._data.getData(), getDataLayer: () => e._data, getOptions: () => e._options, getVs: () => e._vs, doRenderFull: (o) => e._doRender(0, o - 1), doRender: () => e._doRender(...e._visRange()), getStrategy: (o, n) => e._ovk.getStrategy(o, n), setFlatBacking: (o) => e._flatModel.setBacking(o), getFlatCount: () => e._flatModel.count() }), e._detailMgr = new gr({ getOptions: () => e._options, getFlatModel: () => e._flatModel, getVs: () => e._vs, getRowId: (o) => o[ct], getRowById: (o) => e._data.getRowById(o), doRenderFull: (o) => e._doRender(0, o - 1), emit: (o, n) => e.emit(o, n), announce: (o) => e._announce(o), t: (o, n) => e.t(o, n), getDepth: () => e._options._detailDepth ?? 0, getGridInstance: () => e, createSubgrid: (o, n, a) => i.createSubgrid(o, n, a) }), e._chartMgr = new Hr({ getContainer: () => e._container, getOptions: () => e._options, getAllRows: () => e._data.getData(), getSelectedRows: () => e._rowMgr.getSelections(), getCheckedRows: () => e._rowMgr.getChecked().map((o) => o.row), getVisibleColumns: () => e._colLayout.visibleLeaves.map((o) => ({ field: o.field, header: o.header, type: o.type })), getFlatModel: () => e._flatModel, getRowById: (o) => e._data.getRowById(o), getActiveRange: () => e._rangeMgr.getActiveRange(), on: (o, n) => {
5695
5700
  e.on(o, n);
5696
5701
  }, off: (o, n) => {
5697
5702
  e.off(o, n);
@@ -5785,10 +5790,10 @@ class Nr {
5785
5790
  return this.endBatch(), t > 0 && (this._deps.announce(this._deps.t("data.skippedCellsAnnounce", { count: t })), this._deps.emit("writeCellsSkip", { skipped: t, total: e.length })), t;
5786
5791
  }
5787
5792
  }
5788
- const We = "";
5789
- function Rs(r) {
5790
- const e = Object.entries(r).filter(([, t]) => t !== We).map(([t, s]) => ` ${JSON.stringify(t)}: src[${JSON.stringify(s)}],`);
5791
- return B("crossGrid.scriptComment") + `
5793
+ const Ne = "";
5794
+ function Cs(r) {
5795
+ const e = Object.entries(r).filter(([, t]) => t !== Ne).map(([t, s]) => ` ${JSON.stringify(t)}: src[${JSON.stringify(s)}],`);
5796
+ return $("crossGrid.scriptComment") + `
5792
5797
  function mapRow(src) {
5793
5798
  return {
5794
5799
  ` + e.join(`
@@ -5799,7 +5804,7 @@ function mapRow(src) {
5799
5804
  function Vr(r) {
5800
5805
  return (e) => {
5801
5806
  const t = {};
5802
- for (const [s, i] of Object.entries(r)) i !== We && (t[s] = e[i]);
5807
+ for (const [s, i] of Object.entries(r)) i !== Ne && (t[s] = e[i]);
5803
5808
  return t;
5804
5809
  };
5805
5810
  }
@@ -5811,71 +5816,71 @@ function Wr(r, e) {
5811
5816
  function Kr(r, e) {
5812
5817
  return new Promise((t) => {
5813
5818
  const s = new Set(r.map((S) => S.field)), i = {};
5814
- for (const S of e) i[S.field] = s.has(S.field) ? S.field : We;
5819
+ for (const S of e) i[S.field] = s.has(S.field) ? S.field : Ne;
5815
5820
  const o = document.createElement("div");
5816
- o.className = "og-mapper-overlay", o.setAttribute("role", "dialog"), o.setAttribute("aria-modal", "true"), o.setAttribute("aria-label", B("crossGrid.overlayAria")), o.style.cssText = "position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,0.45);display:flex;align-items:center;justify-content:center;font-family:var(--og-font-family,-apple-system,sans-serif);";
5821
+ o.className = "og-mapper-overlay", o.setAttribute("role", "dialog"), o.setAttribute("aria-modal", "true"), o.setAttribute("aria-label", $("crossGrid.overlayAria")), o.style.cssText = "position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,0.45);display:flex;align-items:center;justify-content:center;font-family:var(--og-font-family,-apple-system,sans-serif);";
5817
5822
  const n = document.createElement("div");
5818
5823
  n.style.cssText = "background:#fff;border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,0.3);width:min(620px,92vw);max-height:88vh;overflow:auto;color:#222;", o.appendChild(n);
5819
5824
  const a = document.createElement("div");
5820
- a.style.cssText = "padding:18px 20px 8px;", a.innerHTML = '<div style="font-size:16px;font-weight:700;">' + B("crossGrid.title") + '</div><div style="font-size:12.5px;color:#666;margin-top:4px;line-height:1.5;">' + B("crossGrid.desc1") + B("crossGrid.desc2") + "</div>", n.appendChild(a);
5825
+ a.style.cssText = "padding:18px 20px 8px;", a.innerHTML = '<div style="font-size:16px;font-weight:700;">' + $("crossGrid.title") + '</div><div style="font-size:12.5px;color:#666;margin-top:4px;line-height:1.5;">' + $("crossGrid.desc1") + $("crossGrid.desc2") + "</div>", n.appendChild(a);
5821
5826
  const l = document.createElement("div");
5822
5827
  l.style.cssText = "padding:6px 20px;";
5823
- const d = `<option value="">${B("crossGrid.emptyOption")}</option>` + r.map((S) => `<option value="${De(S.field)}">${De(S.header)} &lt;${De(S.field)}&gt;</option>`).join("");
5828
+ const d = `<option value="">${$("crossGrid.emptyOption")}</option>` + r.map((S) => `<option value="${Te(S.field)}">${Te(S.header)} &lt;${Te(S.field)}&gt;</option>`).join("");
5824
5829
  for (const S of e) {
5825
- const O = document.createElement("div");
5826
- O.style.cssText = "display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #f0f0f0;";
5827
- const z = document.createElement("div");
5828
- z.style.cssText = "flex:1;font-size:13px;min-width:0;", z.innerHTML = `<span style="font-weight:600;">${De(S.header)}</span><span style="color:#999;font-size:11.5px;"> &lt;${De(S.field)}&gt;</span>`;
5829
- const $ = document.createElement("span");
5830
- $.textContent = "←", $.style.cssText = "color:#888;flex-shrink:0;";
5830
+ const B = document.createElement("div");
5831
+ B.style.cssText = "display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #f0f0f0;";
5832
+ const D = document.createElement("div");
5833
+ D.style.cssText = "flex:1;font-size:13px;min-width:0;", D.innerHTML = `<span style="font-weight:600;">${Te(S.header)}</span><span style="color:#999;font-size:11.5px;"> &lt;${Te(S.field)}&gt;</span>`;
5834
+ const z = document.createElement("span");
5835
+ z.textContent = "←", z.style.cssText = "color:#888;flex-shrink:0;";
5831
5836
  const C = document.createElement("select");
5832
- C.style.cssText = "flex:1;min-width:0;padding:6px 8px;border:1px solid #ccc;border-radius:6px;font-size:13px;background:#fff;", C.innerHTML = d, C.value = i[S.field] ?? We, C.addEventListener("change", () => {
5833
- i[S.field] = C.value, f();
5834
- }), O.append(z, $, C), l.appendChild(O);
5837
+ C.style.cssText = "flex:1;min-width:0;padding:6px 8px;border:1px solid #ccc;border-radius:6px;font-size:13px;background:#fff;", C.innerHTML = d, C.value = i[S.field] ?? Ne, C.addEventListener("change", () => {
5838
+ i[S.field] = C.value, _();
5839
+ }), B.append(D, z, C), l.appendChild(B);
5835
5840
  }
5836
5841
  n.appendChild(l);
5837
5842
  const c = document.createElement("div");
5838
5843
  c.style.cssText = "padding:10px 20px 4px;";
5839
5844
  const h = document.createElement("div");
5840
- h.style.cssText = "display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;", h.innerHTML = '<span style="font-size:12.5px;font-weight:600;color:#444;">' + B("crossGrid.scriptTitle") + "</span>";
5845
+ h.style.cssText = "display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;", h.innerHTML = '<span style="font-size:12.5px;font-weight:600;color:#444;">' + $("crossGrid.scriptTitle") + "</span>";
5841
5846
  const u = document.createElement("button");
5842
- u.type = "button", u.textContent = B("crossGrid.copy"), u.style.cssText = "font-size:12px;padding:4px 10px;border:1px solid #ccc;border-radius:6px;background:#f7f7f7;cursor:pointer;", h.appendChild(u);
5847
+ u.type = "button", u.textContent = $("crossGrid.copy"), u.style.cssText = "font-size:12px;padding:4px 10px;border:1px solid #ccc;border-radius:6px;background:#f7f7f7;cursor:pointer;", h.appendChild(u);
5843
5848
  const g = document.createElement("pre");
5844
5849
  g.style.cssText = "margin:0;background:#0d1117;color:#c9d1d9;padding:12px;border-radius:8px;font-family:ui-monospace,Consolas,monospace;font-size:12px;line-height:1.5;overflow:auto;max-height:180px;", c.append(h, g), n.appendChild(c);
5845
5850
  function p() {
5846
- return Rs(i);
5851
+ return Cs(i);
5847
5852
  }
5848
- function f() {
5853
+ function _() {
5849
5854
  g.textContent = p();
5850
5855
  }
5851
- f(), u.addEventListener("click", () => {
5856
+ _(), u.addEventListener("click", () => {
5852
5857
  var _a;
5853
5858
  const S = p();
5854
5859
  (_a = navigator.clipboard) == null ? void 0 : _a.writeText(S).then(() => {
5855
- u.textContent = B("crossGrid.copied"), setTimeout(() => u.textContent = B("crossGrid.copy"), 1200);
5860
+ u.textContent = $("crossGrid.copied"), setTimeout(() => u.textContent = $("crossGrid.copy"), 1200);
5856
5861
  }, () => {
5857
- u.textContent = B("crossGrid.copyFailed"), setTimeout(() => u.textContent = B("crossGrid.copy"), 1200);
5862
+ u.textContent = $("crossGrid.copyFailed"), setTimeout(() => u.textContent = $("crossGrid.copy"), 1200);
5858
5863
  });
5859
5864
  });
5860
5865
  const m = document.createElement("div");
5861
5866
  m.style.cssText = "display:flex;justify-content:flex-end;gap:8px;padding:14px 20px 18px;";
5862
- const _ = document.createElement("button");
5863
- _.type = "button", _.textContent = B("crossGrid.cancel"), _.style.cssText = "font-size:13px;padding:8px 16px;border:1px solid #ccc;border-radius:7px;background:#fff;cursor:pointer;";
5867
+ const f = document.createElement("button");
5868
+ f.type = "button", f.textContent = $("crossGrid.cancel"), f.style.cssText = "font-size:13px;padding:8px 16px;border:1px solid #ccc;border-radius:7px;background:#fff;cursor:pointer;";
5864
5869
  const w = document.createElement("button");
5865
- w.type = "button", w.textContent = B("crossGrid.applyMove"), w.style.cssText = "font-size:13px;padding:8px 16px;border:0;border-radius:7px;background:#1976d2;color:#fff;cursor:pointer;font-weight:600;", m.append(_, w), n.appendChild(m);
5870
+ w.type = "button", w.textContent = $("crossGrid.applyMove"), w.style.cssText = "font-size:13px;padding:8px 16px;border:0;border-radius:7px;background:#1976d2;color:#fff;cursor:pointer;font-weight:600;", m.append(f, w), n.appendChild(m);
5866
5871
  let y = false;
5867
5872
  function R(S) {
5868
- y || (y = true, document.removeEventListener("keydown", A), o.remove(), t(S));
5873
+ y || (y = true, document.removeEventListener("keydown", F), o.remove(), t(S));
5869
5874
  }
5870
- function A(S) {
5875
+ function F(S) {
5871
5876
  S.key === "Escape" && R(null);
5872
5877
  }
5873
- _.addEventListener("click", () => R(null)), o.addEventListener("mousedown", (S) => {
5878
+ f.addEventListener("click", () => R(null)), o.addEventListener("mousedown", (S) => {
5874
5879
  S.target === o && R(null);
5875
- }), w.addEventListener("click", () => R({ mapping: { ...i }, script: p() })), document.addEventListener("keydown", A), document.body.appendChild(o), w.focus();
5880
+ }), w.addEventListener("click", () => R({ mapping: { ...i }, script: p() })), document.addEventListener("keydown", F), document.body.appendChild(o), w.focus();
5876
5881
  });
5877
5882
  }
5878
- function De(r) {
5883
+ function Te(r) {
5879
5884
  return String(r).replace(/[&<>"]/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;" })[e]);
5880
5885
  }
5881
5886
  class Ur {
@@ -5902,7 +5907,7 @@ class Ur {
5902
5907
  return !n || n === s ? null : n;
5903
5908
  }
5904
5909
  }
5905
- const Ke = new Ur(), jr = "_ogRowId";
5910
+ const Ve = new Ur(), jr = "_ogRowId";
5906
5911
  class qr {
5907
5912
  constructor(e) {
5908
5913
  this._deps = e;
@@ -5920,7 +5925,7 @@ class qr {
5920
5925
  return this._deps.getColLayout().visibleLeaves.map((e) => ({ field: e.field, header: e.header }));
5921
5926
  }
5922
5927
  handleCrossGridDrop(e, t, s) {
5923
- const i = Ke.get(t);
5928
+ const i = Ve.get(t);
5924
5929
  !i || i === this._deps.getSelf() || this.moveRowsTo(i, this._deps.dragRowSet(e), s);
5925
5930
  }
5926
5931
  async moveRowsTo(e, t, s) {
@@ -5954,7 +5959,7 @@ class qr {
5954
5959
  if (!o) return false;
5955
5960
  const n = { sourceGrid: this._deps.getSelf(), targetGrid: e.getSelf(), mapping: o.mapping, script: o.script };
5956
5961
  return this._deps.emit("gridDropMapping", n), (_b = (_a = this._deps.getOptions()).onGridDropMapping) == null ? void 0 : _b.call(_a, n), console.log(`[OpenGrid] cross-grid mapping script:
5957
- ` + Rs(o.mapping)), Vr(o.mapping);
5962
+ ` + Cs(o.mapping)), Vr(o.mapping);
5958
5963
  }
5959
5964
  fireGridDropBefore(e) {
5960
5965
  var _a, _b;
@@ -5970,12 +5975,12 @@ class qr {
5970
5975
  }
5971
5976
  }
5972
5977
  const Gr = "⊕", Yr = "⊖";
5973
- function Xr(r, e = B) {
5978
+ function Xr(r, e = $) {
5974
5979
  return { glyph: r ? Yr : Gr, ariaLabel: e(r ? "detail.collapseAria" : "detail.expandAria"), title: e("detail.glyphTooltip") };
5975
5980
  }
5976
5981
  class Zr {
5977
5982
  constructor(e, t, s, i, o, n) {
5978
- this._selects = /* @__PURE__ */ new Map(), this._selected = {}, this._config = t, this._onFilter = s, this._onReset = i, this._t = n ?? B, this._el = document.createElement("fieldset"), this._el.className = "og-filter-select";
5983
+ this._selects = /* @__PURE__ */ new Map(), this._selected = {}, this._config = t, this._onFilter = s, this._onReset = i, this._t = n ?? $, this._el = document.createElement("fieldset"), this._el.className = "og-filter-select";
5979
5984
  const a = document.createElement("legend");
5980
5985
  a.className = "og-filter-select-legend", a.textContent = t.legend ?? this._t("filter.legend"), this._el.appendChild(a);
5981
5986
  const l = document.createElement("div");
@@ -6129,7 +6134,7 @@ class sn {
6129
6134
  constructor(e, t, s, i) {
6130
6135
  this._dx = t - e.left, this._dy = s - e.top;
6131
6136
  const o = document.createElement("div");
6132
- o.className = "og-drag-ghost", o.style.cssText = `position:fixed;left:0;top:0;width:${e.width}px;height:${Math.min(e.height, 40)}px;transform:translate(${e.left}px,${e.top}px);background:rgba(25,118,210,0.12);border:2px dashed #1976d2;box-sizing:border-box;pointer-events:none;z-index:10000;border-radius:3px;opacity:0.92;display:flex;align-items:center;padding-left:10px;font-size:12px;color:#1565c0;font-weight:600;white-space:nowrap;overflow:hidden;`, i > 1 && (o.textContent = B("drag.rowCount", { count: i })), document.body.appendChild(o), this._el = o;
6137
+ o.className = "og-drag-ghost", o.style.cssText = `position:fixed;left:0;top:0;width:${e.width}px;height:${Math.min(e.height, 40)}px;transform:translate(${e.left}px,${e.top}px);background:rgba(25,118,210,0.12);border:2px dashed #1976d2;box-sizing:border-box;pointer-events:none;z-index:10000;border-radius:3px;opacity:0.92;display:flex;align-items:center;padding-left:10px;font-size:12px;color:#1565c0;font-weight:600;white-space:nowrap;overflow:hidden;`, i > 1 && (o.textContent = $("drag.rowCount", { count: i })), document.body.appendChild(o), this._el = o;
6133
6138
  }
6134
6139
  move(e, t) {
6135
6140
  this._el.style.transform = `translate(${e - this._dx}px,${t - this._dy}px)`;
@@ -6138,7 +6143,7 @@ class sn {
6138
6143
  this._el.remove();
6139
6144
  }
6140
6145
  }
6141
- class Ms {
6146
+ class Rs {
6142
6147
  constructor(e = "#1976d2") {
6143
6148
  const t = document.createElement("div");
6144
6149
  t.className = "og-drop-indicator", t.style.cssText = "position:absolute;left:0;right:0;display:none;align-items:center;pointer-events:none;z-index:9998;transform:translateY(-50%);";
@@ -6158,10 +6163,10 @@ class Ms {
6158
6163
  this._el.remove();
6159
6164
  }
6160
6165
  }
6161
- const ks = (r, e, t) => Math.max(e, Math.min(t, r));
6166
+ const Ms = (r, e, t) => Math.max(e, Math.min(t, r));
6162
6167
  class on {
6163
6168
  constructor(e, t, s, i = null, o = () => 1) {
6164
- this._bodyEl = e, this._rowHeight = t, this._onDrop = s, this._cross = i, this._getDragCount = o, this._drag = null, this._selfIndicator = new Ms("#1976d2"), this._crossIndicator = new Ms("#2e7d32"), this._onMouseMove = this._onMouseMove.bind(this), this._onMouseUp = this._onMouseUp.bind(this);
6169
+ this._bodyEl = e, this._rowHeight = t, this._onDrop = s, this._cross = i, this._getDragCount = o, this._drag = null, this._selfIndicator = new Rs("#1976d2"), this._crossIndicator = new Rs("#2e7d32"), this._onMouseMove = this._onMouseMove.bind(this), this._onMouseUp = this._onMouseUp.bind(this);
6165
6170
  }
6166
6171
  attachHandle(e, t, s) {
6167
6172
  const i = document.createElement("div");
@@ -6184,14 +6189,14 @@ class on {
6184
6189
  if (t.ghost.move(e.clientX, e.clientY), this._cross) {
6185
6190
  const o = this._cross.resolveTarget(e.clientX, e.clientY);
6186
6191
  if (o && o.bodyEl !== t.bodyEl) {
6187
- const n = o.bodyEl.getBoundingClientRect(), a = e.clientY - n.top + o.bodyEl.scrollTop, l = ks(Math.round(a / o.rowHeight), 0, o.totalRows);
6192
+ const n = o.bodyEl.getBoundingClientRect(), a = e.clientY - n.top + o.bodyEl.scrollTop, l = Ms(Math.round(a / o.rowHeight), 0, o.totalRows);
6188
6193
  t.crossTarget = { bodyEl: o.bodyEl, index: l }, this._selfIndicator.hide(), this._crossIndicator.showIn(o.bodyEl, l * o.rowHeight);
6189
6194
  return;
6190
6195
  }
6191
6196
  }
6192
6197
  t.crossTarget = null, this._crossIndicator.hide();
6193
6198
  const s = t.bodyEl.getBoundingClientRect(), i = e.clientY - s.top + t.bodyEl.scrollTop;
6194
- t.currentTarget = ks(Math.round(i / t.rowHeight), 0, t.totalRows - 1), this._selfIndicator.showIn(t.bodyEl, t.currentTarget * t.rowHeight);
6199
+ t.currentTarget = Ms(Math.round(i / t.rowHeight), 0, t.totalRows - 1), this._selfIndicator.showIn(t.bodyEl, t.currentTarget * t.rowHeight);
6195
6200
  }
6196
6201
  _onMouseUp(e) {
6197
6202
  if (document.removeEventListener("mousemove", this._onMouseMove, true), document.removeEventListener("mouseup", this._onMouseUp, true), !this._drag) return;
@@ -6356,9 +6361,9 @@ class ln {
6356
6361
  }
6357
6362
  }
6358
6363
  }
6359
- class Es {
6364
+ class ks {
6360
6365
  constructor(e, t, s) {
6361
- this._sheets = /* @__PURE__ */ new Map(), this._active = "", this._onSwitch = t, this._t = s ?? B, this._tabBar = this._buildTabBar(e);
6366
+ this._sheets = /* @__PURE__ */ new Map(), this._active = "", this._onSwitch = t, this._t = s ?? $, this._tabBar = this._buildTabBar(e);
6362
6367
  }
6363
6368
  add(e, t = [], s = []) {
6364
6369
  if (this._sheets.has(e)) throw new Error(`WorksheetManager: 시트 '${e}'이 이미 존재합니다`);
@@ -6530,13 +6535,13 @@ class hn {
6530
6535
  return [...e, ...t, ...s, ...i, ...o];
6531
6536
  }
6532
6537
  }
6533
- const Ss = "og-cf-bar", Fs = "og-cf-icon", pt = "ogCf";
6538
+ const Es = "og-cf-bar", Ss = "og-cf-icon", ht = "ogCf";
6534
6539
  function un(r) {
6535
6540
  return r === "triangleUp" ? "▲" : r === "triangleDown" ? "▼" : "●";
6536
6541
  }
6537
6542
  function pn(r) {
6538
- for (const e of Array.from(r.children)) (e.classList.contains(Ss) || e.classList.contains(Fs)) && e.remove();
6539
- r.dataset[pt] && (r.style.backgroundColor = "", r.style.color = "", r.style.textShadow = "", delete r.dataset[pt]);
6543
+ for (const e of Array.from(r.children)) (e.classList.contains(Es) || e.classList.contains(Ss)) && e.remove();
6544
+ r.dataset[ht] && (r.style.backgroundColor = "", r.style.color = "", r.style.textShadow = "", delete r.dataset[ht]);
6540
6545
  }
6541
6546
  function gn(r, e, t, s) {
6542
6547
  if (pn(r), e.length === 0) return;
@@ -6549,7 +6554,7 @@ function gn(r, e, t, s) {
6549
6554
  else {
6550
6555
  r.style.position = "relative";
6551
6556
  const c = document.createElement("div");
6552
- c.className = Ss;
6557
+ c.className = Es;
6553
6558
  const h = Math.max(0, Math.min(1, d)) * t;
6554
6559
  c.style.position = "absolute", c.style.top = "0", c.style.bottom = "0", c.style.width = `${h}px`, c.style.background = a, l === "right" ? c.style.right = "0" : c.style.left = "0", c.style.zIndex = "0", c.style.pointerEvents = "none", r.insertBefore(c, r.firstChild);
6555
6560
  }
@@ -6557,24 +6562,24 @@ function gn(r, e, t, s) {
6557
6562
  }
6558
6563
  if (n.glyph) {
6559
6564
  const { role: a, tint: l, shape: d } = n.glyph, c = document.createElement("span");
6560
- c.className = Fs, c.textContent = un(d), c.style.color = l, c.style.marginRight = "4px", c.style.display = "inline-block", c.setAttribute("role", "img"), c.setAttribute("aria-label", a), r.insertBefore(c, r.firstChild), i = true;
6565
+ c.className = Ss, c.textContent = un(d), c.style.color = l, c.style.marginRight = "4px", c.style.display = "inline-block", c.setAttribute("role", "img"), c.setAttribute("aria-label", a), r.insertBefore(c, r.firstChild), i = true;
6561
6566
  }
6562
6567
  }
6563
6568
  if (o.length > 0) {
6564
6569
  const n = r.getAttribute("aria-label") ?? "", a = o.join(" · ");
6565
6570
  r.setAttribute("aria-label", n ? `${n} — ${a}` : a), i = true;
6566
6571
  }
6567
- i && (r.dataset[pt] = "1");
6572
+ i && (r.dataset[ht] = "1");
6568
6573
  }
6569
- const Ue = (r) => r;
6574
+ const We = (r) => r;
6570
6575
  function fn(r, e, t, s) {
6571
- return { x: Ue(r), y: Ue(e), w: Ue(Math.max(0, t)), h: Ue(Math.max(0, s)) };
6576
+ return { x: We(r), y: We(e), w: We(Math.max(0, t)), h: We(Math.max(0, s)) };
6572
6577
  }
6573
- const As = "_ogRowId";
6574
- const _J = class _J extends Is {
6578
+ const Fs = "_ogRowId";
6579
+ const _Q = class _Q extends Is {
6575
6580
  constructor(e, t) {
6576
6581
  var _a;
6577
- super(), this._vs = null, this._ro = null, this._renderer = null, this._appearance = null, this._icons = null, this._locales = null, this._trigMgr = new dn(), this._destroyed = false, this._colWidths = [], this._userWidths = /* @__PURE__ */ new Map(), this._filterPanel = null, this._filterSelect = null, this._pagination = null, this._dnd = null, this._mergeEngine = new we(), this._liveRegion = null, this._ctxMenu = null, this._cmHandler = null, this._cmKbdHandler = null, this._wsManager = null, this._formulaDirtySeeds = /* @__PURE__ */ new Set(), this._cf = null, this._cfStats = /* @__PURE__ */ new Map(), this._cfRules = [], this._cfAppearance = null, this._cfComputeStats = null, this._rt = null, me.compose(this, e, t, { createSubgrid: (i, o, n) => new _J(i, { ...o, _detailDepth: n }) }), this._bindOptionEvents(), ((_a = this._options.defaultSort) == null ? void 0 : _a.length) && this._sfMgr.initSort(this._options.defaultSort), this.override = Object.assign((i, o, n) => this._ovk.override(i, o, n), { strategy: (i, o) => this._ovk.strategy(i, o) });
6582
+ super(), this._vs = null, this._ro = null, this._renderer = null, this._appearance = null, this._icons = null, this._locales = null, this._trigMgr = new dn(), this._destroyed = false, this._colWidths = [], this._userWidths = /* @__PURE__ */ new Map(), this._filterPanel = null, this._filterSelect = null, this._pagination = null, this._dnd = null, this._mergeEngine = new we(), this._liveRegion = null, this._ctxMenu = null, this._cmHandler = null, this._cmKbdHandler = null, this._wsManager = null, this._formulaDirtySeeds = /* @__PURE__ */ new Set(), this._cf = null, this._cfStats = /* @__PURE__ */ new Map(), this._cfRules = [], this._cfAppearance = null, this._cfComputeStats = null, this._rt = null, me.compose(this, e, t, { createSubgrid: (i, o, n) => new _Q(i, { ...o, _detailDepth: n }) }), this._bindOptionEvents(), ((_a = this._options.defaultSort) == null ? void 0 : _a.length) && this._sfMgr.initSort(this._options.defaultSort), this.override = Object.assign((i, o, n) => this._ovk.override(i, o, n), { strategy: (i, o) => this._ovk.strategy(i, o) });
6578
6583
  const s = this.destroy.bind(this);
6579
6584
  this.destroy = () => {
6580
6585
  try {
@@ -6583,8 +6588,8 @@ const _J = class _J extends Is {
6583
6588
  this._ovk.restoreAll();
6584
6589
  }
6585
6590
  };
6586
- for (const [i, o] of _J._defaultStrategies) this._ovk.strategy(i, o);
6587
- for (const [i, o, n] of _J._defaultOverrides) this._ovk.override(i, o, n);
6591
+ for (const [i, o] of _Q._defaultStrategies) this._ovk.strategy(i, o);
6592
+ for (const [i, o, n] of _Q._defaultOverrides) this._ovk.override(i, o, n);
6588
6593
  requestAnimationFrame(() => {
6589
6594
  var _a2, _b;
6590
6595
  this.emit("ready", this), (_b = (_a2 = this._options).onReady) == null ? void 0 : _b.call(_a2, this);
@@ -6594,23 +6599,23 @@ const _J = class _J extends Is {
6594
6599
  return this._extensions;
6595
6600
  }
6596
6601
  static defaultOverride(e, t, s = {}) {
6597
- return _J._defaultOverrides.push([e, t, s]), _J;
6602
+ return _Q._defaultOverrides.push([e, t, s]), _Q;
6598
6603
  }
6599
6604
  static registerRenderer(e, t) {
6600
- return G(e, t), _J;
6605
+ return q(e, t), _Q;
6601
6606
  }
6602
6607
  static registerEditor(e, t) {
6603
- return Ce(e, t), _J;
6608
+ return Ce(e, t), _Q;
6604
6609
  }
6605
6610
  static defineSkin(e, t) {
6606
- return Ze.define(e, t), _J;
6611
+ return Ye.define(e, t), _Q;
6607
6612
  }
6608
6613
  static defineIconSet(e) {
6609
6614
  for (const [t, s] of Object.entries(e)) ge.register(t, s);
6610
- return _J;
6615
+ return _Q;
6611
6616
  }
6612
6617
  static defineLocale(e, t, s) {
6613
- return se.register(e, t, s), _J;
6618
+ return te.register(e, t, s), _Q;
6614
6619
  }
6615
6620
  restore(e) {
6616
6621
  return this._ovk.restore(e), this;
@@ -6639,7 +6644,7 @@ const _J = class _J extends Is {
6639
6644
  const e = this._options.height, t = this._options.width;
6640
6645
  this._container.style.height = typeof e == "number" ? `${e}px` : String(e), this._container.style.width = typeof t == "number" ? `${t}px` : String(t), this._container.style.display = "flex", this._container.style.flexDirection = "column", this._container.style.overflow = "hidden", this._container.style.boxSizing = "border-box", this._container.style.border = "1px solid var(--og-border-color, #e0e0e0)", this._container.style.fontFamily = "var(--og-font-family, -apple-system, sans-serif)", this._container.style.fontSize = "var(--og-font-size, 13px)", this._container.setAttribute("data-og-theme", this._options.theme), this._container.setAttribute("data-og-skin", this._options.skin ?? "default");
6641
6646
  for (const [s, i] of Object.entries(this._options.cssVars)) this._container.style.setProperty(s, i);
6642
- this._appearance = new Ye(new ze(this._options.theme, this._options.skin ?? "default")), this._renderer = new ki(this._container, this._options, { onHeaderClick: (s, i) => this._handleSortClick(s, i), onCellClick: (s, i, o) => this._handleCellClick(s, i, o), onCellDblClick: (s, i, o) => this._handleCellDblClick(s, i, o), onCellMouseOver: (s, i, o) => this._handleCellMouseOver(s, i, o), onCellMouseOut: (s, i, o) => this._handleCellMouseOut(s, i, o), onCellMouseDown: (s, i, o) => this._handleCellMouseDown(s, i, o), onCellMouseUp: (s, i, o) => this._handleCellMouseUp(s, i, o), onCellMouseMove: (s, i, o) => this._handleCellMouseMove(s, i, o), onRowCheck: (s, i) => this._handleRowCheck(s, i), onAllCheck: (s) => this._handleAllCheck(s), onColResize: (s, i) => this._handleColResize(s, i), onFilterIconClick: (s, i) => this._handleFilterIconClick(s, i), getDndManager: () => this._dnd, onColDragStart: (s) => {
6647
+ this._appearance = new qe(new Oe(this._options.theme, this._options.skin ?? "default")), this._renderer = new ki(this._container, this._options, { onHeaderClick: (s, i) => this._handleSortClick(s, i), onCellClick: (s, i, o) => this._handleCellClick(s, i, o), onCellDblClick: (s, i, o) => this._handleCellDblClick(s, i, o), onCellMouseOver: (s, i, o) => this._handleCellMouseOver(s, i, o), onCellMouseOut: (s, i, o) => this._handleCellMouseOut(s, i, o), onCellMouseDown: (s, i, o) => this._handleCellMouseDown(s, i, o), onCellMouseUp: (s, i, o) => this._handleCellMouseUp(s, i, o), onCellMouseMove: (s, i, o) => this._handleCellMouseMove(s, i, o), onRowCheck: (s, i) => this._handleRowCheck(s, i), onAllCheck: (s) => this._handleAllCheck(s), onColResize: (s, i) => this._handleColResize(s, i), onFilterIconClick: (s, i) => this._handleFilterIconClick(s, i), getDndManager: () => this._dnd, onColDragStart: (s) => {
6643
6648
  this._editMgr.dragColIdx = s;
6644
6649
  }, onColDrop: (s) => {
6645
6650
  this._editMgr.dragColIdx !== null && this._editMgr.dragColIdx !== s && this._reorderColumn(this._editMgr.dragColIdx, s), this._editMgr.dragColIdx = null;
@@ -6655,19 +6660,19 @@ const _J = class _J extends Is {
6655
6660
  this.emit(s, i);
6656
6661
  }, announce: (s) => this._announce(s), t: (s, i) => this.t(s, i), applyFilters: () => this._applyFilters(), flushFormula: () => this._formula.flushRecalc(), doRenderWindow: () => this._doRender(...this._visRange()), doRenderFull: () => this._doRender(0, -1), resetFormulaState: () => {
6657
6662
  var _a2, _b2;
6658
- this._formulaDirtySeeds.clear(), this._recalc = new is({ accessor: this._formula.buildAccessor(), setComputedValue: (s, i, o) => this._data.setComputedValueByRowId(s, i, o), onFormulaError: (s, i, o) => this._formula.handleFormulaError(s, i, o), refMode: ((_a2 = this._options.formula) == null ? void 0 : _a2.refMode) ?? "stable", divisionPrecision: ((_b2 = this._options.formula) == null ? void 0 : _b2.divisionPrecision) ?? 30 });
6663
+ this._formulaDirtySeeds.clear(), this._recalc = new ss({ accessor: this._formula.buildAccessor(), setComputedValue: (s, i, o) => this._data.setComputedValueByRowId(s, i, o), onFormulaError: (s, i, o) => this._formula.handleFormulaError(s, i, o), refMode: ((_a2 = this._options.formula) == null ? void 0 : _a2.refMode) ?? "stable", divisionPrecision: ((_b2 = this._options.formula) == null ? void 0 : _b2.divisionPrecision) ?? 30 });
6659
6664
  }, seedFormulaDirty: (s, i) => {
6660
6665
  const o = this._flatModel.resolveFlatRow(s);
6661
- o.kind === "data" && o.rowId && this._formulaDirtySeeds.add(Z(o.rowId, i));
6666
+ o.kind === "data" && o.rowId && this._formulaDirtySeeds.add(Y(o.rowId, i));
6662
6667
  }, invalidateRemovedRows: (s) => {
6663
6668
  for (const i of s) this._formula.afterRecalc(this._recalc.invalidateRow(i), { skipRender: true });
6664
6669
  }, getRowIdAt: (s) => {
6665
6670
  var _a2;
6666
- return (_a2 = this._data.getRowByIndex(s)) == null ? void 0 : _a2[As];
6667
- } }), this._rangeMgr.mount(this._renderer.bodyWrapper), this._filterPanel = new Hs(this._container, (s, i) => this.setFilter(s, i), (s) => this.resetFilter(s), (s, i) => this.t(s, i)), this._container.setAttribute("role", "grid"), this._container.setAttribute("aria-label", this._options.ariaLabel ?? ((_a = this._options.cssVars) == null ? void 0 : _a["aria-label"]) ?? this.t("grid.containerAria")), this._container.setAttribute("aria-rowcount", "0"), this._container.setAttribute("aria-colcount", String(this._options.columns.filter((s) => !s.hidden).length)), this._liveRegion = document.createElement("div"), this._liveRegion.setAttribute("aria-live", "polite"), this._liveRegion.setAttribute("aria-atomic", "true"), this._liveRegion.className = "og-live-region", Object.assign(this._liveRegion.style, { position: "absolute", width: "1px", height: "1px", margin: "-1px", padding: "0", overflow: "hidden", clip: "rect(0,0,0,0)", whiteSpace: "nowrap", border: "0" }), this._container.appendChild(this._liveRegion), this._container.tabIndex = 0, this._container.addEventListener("keydown", (s) => this._handleKeyDown(s)), this._container.addEventListener("keyup", (s) => this._handleCellKeyEvt("cellKeyUp", s)), this._container.addEventListener("keypress", (s) => this._handleCellKeyEvt("cellKeyPress", s)), this._vs = new Ts(this._renderer.bodyWrapper, { rowHeight: this._options.rowHeight, onRender: (s, i) => this._doRender(s, i) }), Ke.register(this._renderer.bodyWrapper, this), this._cross = new qr({ getSelf: () => this, getData: () => this._data, getColLayout: () => this._colLayout, getOptions: () => this._options, emit: (s, i) => {
6671
+ return (_a2 = this._data.getRowByIndex(s)) == null ? void 0 : _a2[Fs];
6672
+ } }), this._rangeMgr.mount(this._renderer.bodyWrapper), this._filterPanel = new Hs(this._container, (s, i) => this.setFilter(s, i), (s) => this.resetFilter(s), (s, i) => this.t(s, i)), this._container.setAttribute("role", "grid"), this._container.setAttribute("aria-label", this._options.ariaLabel ?? ((_a = this._options.cssVars) == null ? void 0 : _a["aria-label"]) ?? this.t("grid.containerAria")), this._container.setAttribute("aria-rowcount", "0"), this._container.setAttribute("aria-colcount", String(this._options.columns.filter((s) => !s.hidden).length)), this._liveRegion = document.createElement("div"), this._liveRegion.setAttribute("aria-live", "polite"), this._liveRegion.setAttribute("aria-atomic", "true"), this._liveRegion.className = "og-live-region", Object.assign(this._liveRegion.style, { position: "absolute", width: "1px", height: "1px", margin: "-1px", padding: "0", overflow: "hidden", clip: "rect(0,0,0,0)", whiteSpace: "nowrap", border: "0" }), this._container.appendChild(this._liveRegion), this._container.tabIndex = 0, this._container.addEventListener("keydown", (s) => this._handleKeyDown(s)), this._container.addEventListener("keyup", (s) => this._handleCellKeyEvt("cellKeyUp", s)), this._container.addEventListener("keypress", (s) => this._handleCellKeyEvt("cellKeyPress", s)), this._vs = new Ts(this._renderer.bodyWrapper, { rowHeight: this._options.rowHeight, onRender: (s, i) => this._doRender(s, i) }), Ve.register(this._renderer.bodyWrapper, this), this._cross = new qr({ getSelf: () => this, getData: () => this._data, getColLayout: () => this._colLayout, getOptions: () => this._options, emit: (s, i) => {
6668
6673
  this.emit(s, i);
6669
6674
  }, insertRow: (s, i) => this.insertRow(s, i), deleteRow: (s) => this.deleteRow(s), getChecked: () => this._rowMgr.getChecked(), uncheckAll: () => this._rowMgr.uncheckAll(), dragRowSet: (s) => this._dragRowSet(s), getPeerController: (s) => s._cross }), this._options.draggable && (this._dnd = new on(this._renderer.bodyWrapper, this._options.rowHeight, (s, i) => this._handleRowDrop(s, i), this._options.crossGrid ? { resolveTarget: (s, i) => {
6670
- const o = Ke.resolveAt(s, i, this);
6675
+ const o = Ve.resolveAt(s, i, this);
6671
6676
  return !o || !o._options.crossGrid ? null : { bodyEl: o._crossBodyEl(), rowHeight: o._options.rowHeight, totalRows: o._data.rowCount };
6672
6677
  }, onCrossDrop: (s, i, o) => this._cross.handleCrossGridDrop(s, i, o) } : void 0, (s) => this._dragRowSet(s).length)), this._options.pagination && (this._pagination = new en(this._container, this._options.pageSize, (s) => {
6673
6678
  this.emit("pageChange", s), this._doRender(...this._visRange());
@@ -6731,17 +6736,17 @@ const _J = class _J extends Is {
6731
6736
  }
6732
6737
  _initWorksheets() {
6733
6738
  const e = this._options.worksheets;
6734
- this._wsManager = new Es(this._container, (t, s) => this._loadWorksheetState(s), (t, s) => this.t(t, s));
6739
+ this._wsManager = new ks(this._container, (t, s) => this._loadWorksheetState(s), (t, s) => this.t(t, s));
6735
6740
  for (const t of e) this._wsManager.add(t.name, t.columns ?? this._options.columns, t.data ?? []);
6736
6741
  }
6737
6742
  _loadWorksheetState(e) {
6738
6743
  var _a, _b;
6739
- this._rowMgr.reset(), this._data.setData(e.data), this._colLayout = new wt(e.columns.length ? e.columns : this._options.columns, this._options.frozenColumns), (_a = this._vs) == null ? void 0 : _a.setTotalRows(this._data.rowCount), (_b = this._pagination) == null ? void 0 : _b.setTotalRows(this._data.rowCount), this._container.setAttribute("aria-rowcount", String(this._data.rowCount)), this._container.setAttribute("aria-colcount", String(this._colLayout.visibleLeaves.length));
6744
+ this._rowMgr.reset(), this._data.setData(e.data), this._colLayout = new mt(e.columns.length ? e.columns : this._options.columns, this._options.frozenColumns), (_a = this._vs) == null ? void 0 : _a.setTotalRows(this._data.rowCount), (_b = this._pagination) == null ? void 0 : _b.setTotalRows(this._data.rowCount), this._container.setAttribute("aria-rowcount", String(this._data.rowCount)), this._container.setAttribute("aria-colcount", String(this._colLayout.visibleLeaves.length));
6740
6745
  const { width: t } = this._container.getBoundingClientRect();
6741
6746
  t && this._recalcWidths(t), this._renderHeader(), this._doRender(...this._visRange());
6742
6747
  }
6743
6748
  addWorksheet(e, t, s) {
6744
- this._wsManager || (this._wsManager = new Es(this._container, (i, o) => this._loadWorksheetState(o), (i, o) => this.t(i, o))), this._wsManager.add(e, t ?? this._options.columns, s ?? []);
6749
+ this._wsManager || (this._wsManager = new ks(this._container, (i, o) => this._loadWorksheetState(o), (i, o) => this.t(i, o))), this._wsManager.add(e, t ?? this._options.columns, s ?? []);
6745
6750
  }
6746
6751
  removeWorksheet(e) {
6747
6752
  var _a;
@@ -6784,7 +6789,7 @@ const _J = class _J extends Is {
6784
6789
  _buildDetailRenderContext() {
6785
6790
  if (!this._detailMgr.enabled) return;
6786
6791
  const e = this._options.masterDetail ?? {};
6787
- return { toggleMode: e.toggle ?? "expander-col", ariaLabel: e.ariaLabel ?? this.t("grid.detailRegion"), getRowId: (t) => t == null ? void 0 : t[As], isExpanded: (t) => this._detailMgr.isExpandedId(t), onToggle: (t, s) => this._detailMgr.toggleRow({ id: s }), getGlyph: (t) => Xr(t, (s, i) => this.t(s, i)), getPanelHost: (t) => this._detailMgr.getPanelHost(t), onBeforeTeardown: () => this._detailMgr.onBeforeTeardown() };
6792
+ return { toggleMode: e.toggle ?? "expander-col", ariaLabel: e.ariaLabel ?? this.t("grid.detailRegion"), getRowId: (t) => t == null ? void 0 : t[Fs], isExpanded: (t) => this._detailMgr.isExpandedId(t), onToggle: (t, s) => this._detailMgr.toggleRow({ id: s }), getGlyph: (t) => Xr(t, (s, i) => this.t(s, i)), getPanelHost: (t) => this._detailMgr.getPanelHost(t), onBeforeTeardown: () => this._detailMgr.onBeforeTeardown() };
6788
6793
  }
6789
6794
  _handleGroupToggle(e) {
6790
6795
  this._grpMgr.handleGroupToggle(e);
@@ -6796,7 +6801,7 @@ const _J = class _J extends Is {
6796
6801
  this._sfMgr.handleSortClick(e, t);
6797
6802
  }
6798
6803
  _isToggleCol(e) {
6799
- return Ie(e);
6804
+ return Le(e);
6800
6805
  }
6801
6806
  _handleCellClick(e, t, s) {
6802
6807
  this._cellEvt.handleCellClick(e, t, s);
@@ -6904,7 +6909,7 @@ const _J = class _J extends Is {
6904
6909
  this._cf = null, this._cfStats.clear(), this._doRender(...this._visRange());
6905
6910
  return;
6906
6911
  }
6907
- const t = await import("./index-al9Mbv3E.js");
6912
+ const t = await import("./index-Brnev66-.js");
6908
6913
  this._cf = new t.CFEngine(new t.CFRuleStore(e)), this._cfAppearance = t.staticAppearanceView(), this._cfComputeStats = t.computeColumnStats, this._recomputeCFStats(), this._doRender(...this._visRange());
6909
6914
  }
6910
6915
  _recomputeCFStats() {
@@ -7324,34 +7329,34 @@ const _J = class _J extends Is {
7324
7329
  setLocale(e) {
7325
7330
  var _a, _b;
7326
7331
  const t = this.getLocale();
7327
- (this._locales ?? (this._locales = se.child())).setActive(e), this._options.locale = e, this._container.setAttribute("lang", (this._locales ?? se).meta().intlLocale), (_a = this._pagination) == null ? void 0 : _a.refreshLabels(), (_b = this._findMgr) == null ? void 0 : _b.refreshLabels(), this._filterPanel = null, this._renderHeader(), this._doRender(...this._visRange()), this.emit("localeChange", { locale: e, prev: t });
7332
+ (this._locales ?? (this._locales = te.child())).setActive(e), this._options.locale = e, this._container.setAttribute("lang", (this._locales ?? te).meta().intlLocale), (_a = this._pagination) == null ? void 0 : _a.refreshLabels(), (_b = this._findMgr) == null ? void 0 : _b.refreshLabels(), this._filterPanel = null, this._renderHeader(), this._doRender(...this._visRange()), this.emit("localeChange", { locale: e, prev: t });
7328
7333
  }
7329
7334
  getLocale() {
7330
- return (this._locales ?? se).active();
7335
+ return (this._locales ?? te).active();
7331
7336
  }
7332
7337
  setMessage(e, t) {
7333
- return (this._locales ?? (this._locales = se.child())).setOverride(e, t), this;
7338
+ return (this._locales ?? (this._locales = te.child())).setOverride(e, t), this;
7334
7339
  }
7335
7340
  t(e, t) {
7336
- return (this._locales ?? se).t(e, t);
7341
+ return (this._locales ?? te).t(e, t);
7337
7342
  }
7338
7343
  setSkinVar(e, t) {
7339
7344
  if (/#[0-9a-fA-F]{3,8}\b/.test(t) || /\b(?:rgba?|hsla?)\(\s*\d/.test(t)) throw new Error(`[OpenGrid.setSkinVar] "${e}: ${t}" 에 색 리터럴 — 색은 setThemeVar 축입니다(색⊥형태).`);
7340
7345
  this._container.style.setProperty(e, t);
7341
7346
  }
7342
7347
  setDensity(e) {
7343
- const t = Ht.resolve(e);
7348
+ const t = Bt.resolve(e);
7344
7349
  t.attr ? this._container.setAttribute(t.attr.name, t.attr.value) : this._container.removeAttribute("data-og-density");
7345
- for (const i of Bt) this._container.style.removeProperty(i);
7350
+ for (const i of zt) this._container.style.removeProperty(i);
7346
7351
  this._container.style.removeProperty("--og-row-height");
7347
7352
  for (const [i, o] of Object.entries(t.tokens)) this._container.style.setProperty(i, o);
7348
7353
  const s = t.tokens["--og-density-row-height"];
7349
7354
  s != null && this._container.style.setProperty("--og-row-height", s), t.requiresRelayout && this._onResize();
7350
7355
  }
7351
7356
  setTexture(e) {
7352
- const t = Nt.resolve(e);
7357
+ const t = Pt.resolve(e);
7353
7358
  t.attr ? this._container.setAttribute(t.attr.name, t.attr.value) : this._container.removeAttribute("data-og-texture");
7354
- for (const s of Pt) this._container.style.removeProperty(s);
7359
+ for (const s of Ht) this._container.style.removeProperty(s);
7355
7360
  for (const [s, i] of Object.entries(t.tokens)) this._container.style.setProperty(s, i);
7356
7361
  }
7357
7362
  addTrigger(e, t) {
@@ -7371,28 +7376,28 @@ const _J = class _J extends Is {
7371
7376
  }
7372
7377
  destroy() {
7373
7378
  var _a, _b, _c, _d, _e2, _f, _g, _h, _i2, _j, _k;
7374
- this._destroyed || (this._destroyed = true, this._renderer && Ke.unregister(this._renderer.bodyWrapper), this._trigMgr.clear(), (_a = this._ro) == null ? void 0 : _a.disconnect(), (_b = this._vs) == null ? void 0 : _b.destroy(), (_c = this._rt) == null ? void 0 : _c.detach(), this._rt = null, (_d = this._chartMgr) == null ? void 0 : _d.destroyCharts(), (_e2 = this._detailMgr) == null ? void 0 : _e2.destroy(), (_f = this._filterPanel) == null ? void 0 : _f.destroy(), (_g = this._dnd) == null ? void 0 : _g.destroy(), this._cmHandler && this._container.removeEventListener("contextmenu", this._cmHandler), this._cmKbdHandler && this._container.removeEventListener("keydown", this._cmKbdHandler), this._cmHandler = this._cmKbdHandler = null, (_h = this._ctxMenu) == null ? void 0 : _h.destroy(), (_i2 = this._wsManager) == null ? void 0 : _i2.destroy(), (_j = this._renderer) == null ? void 0 : _j.destroy(), (_k = this._liveRegion) == null ? void 0 : _k.remove(), this._liveRegion = null, this._container.innerHTML = "", this._container.classList.remove("og-container"), this.removeAllListeners());
7379
+ this._destroyed || (this._destroyed = true, this._renderer && Ve.unregister(this._renderer.bodyWrapper), this._trigMgr.clear(), (_a = this._ro) == null ? void 0 : _a.disconnect(), (_b = this._vs) == null ? void 0 : _b.destroy(), (_c = this._rt) == null ? void 0 : _c.detach(), this._rt = null, (_d = this._chartMgr) == null ? void 0 : _d.destroyCharts(), (_e2 = this._detailMgr) == null ? void 0 : _e2.destroy(), (_f = this._filterPanel) == null ? void 0 : _f.destroy(), (_g = this._dnd) == null ? void 0 : _g.destroy(), this._cmHandler && this._container.removeEventListener("contextmenu", this._cmHandler), this._cmKbdHandler && this._container.removeEventListener("keydown", this._cmKbdHandler), this._cmHandler = this._cmKbdHandler = null, (_h = this._ctxMenu) == null ? void 0 : _h.destroy(), (_i2 = this._wsManager) == null ? void 0 : _i2.destroy(), (_j = this._renderer) == null ? void 0 : _j.destroy(), (_k = this._liveRegion) == null ? void 0 : _k.remove(), this._liveRegion = null, this._container.innerHTML = "", this._container.classList.remove("og-container"), this.removeAllListeners());
7375
7380
  }
7376
7381
  };
7377
- _J._defaultOverrides = [];
7378
- _J._defaultStrategies = [];
7379
- _J.defaults = { strategy(e, t) {
7380
- return _J._defaultStrategies.push([e, t]), _J;
7382
+ _Q._defaultOverrides = [];
7383
+ _Q._defaultStrategies = [];
7384
+ _Q.defaults = { strategy(e, t) {
7385
+ return _Q._defaultStrategies.push([e, t]), _Q;
7381
7386
  } };
7382
- let J = _J;
7387
+ let Q = _Q;
7383
7388
  export {
7384
- Ct as D,
7385
- qe as I,
7386
- je as L,
7387
- J as O,
7388
- Dt as S,
7389
- et as b,
7390
- ws as c,
7389
+ xt as D,
7390
+ Ue as I,
7391
+ Ke as L,
7392
+ Q as O,
7393
+ Tt as S,
7394
+ Qe as b,
7395
+ ms as c,
7391
7396
  ge as i,
7392
- se as l,
7393
- Ve as p,
7397
+ te as l,
7398
+ Pe as p,
7394
7399
  ei as r,
7395
- Ze as s,
7396
- B as t
7400
+ Ye as s,
7401
+ $ as t
7397
7402
  };
7398
- //# sourceMappingURL=OpenGrid-DACnZdEy.js.map
7403
+ //# sourceMappingURL=OpenGrid-E11B7Xa7.js.map