e-virt-table 1.3.24 → 1.3.25

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.
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(":root{--evt-header-font: 12px normal Arial;--evt-body-font: 12px normal Arial;--evt-color-white: #fff;--evt-color-black: #000000;--evt-color-primary: rgb(82, 146, 247);--evt-text-color-primary: #333;--evt-text-color-regular: #666;--evt-text-color-secondary: #999;--evt-box-shadow: 0 2px 12px 0 #0000001a;--evt-editor-bg-color: #fff;--evt-editor-text-color: #333;--evt-border-color: #e1e6eb;--evt-body-bg-color: #fff;--evt-stripe-color: #fafafa;--evt-placeholder-color: #cdd0dc;--evt-header-bg-color: #f8faff;--evt-header-text-color: #1d2129;--evt-body-text-color: #4e5969;--evt-footer-text-color: #4e5969;--evt-loading-icon-color: #4e5969;--evt-expand-icon-color: #4e5969;--evt-shrink-icon-color: #4e5969;--evt-error-tip-icon-color: red;--evt-required-color: #f56c6c;--evt-cell-hover-icon-bg-color: #fff;--evt-cell-hover-icon-border-color: #dde0ea;--evt-scroller-color: #dee0e3;--evt-scroller-track-color: #fff;--evt-scroller-focus-color: #bbbec4;--evt-select-border-color: var(--evt-color-primary);--evt-select-area-color: rgba(82, 146, 247, .1);--evt-select-row-col-bg-color: rgba(82, 146, 247, .1);--evt-autofill-point-border-color: #fff;--evt-edit-bg-color: #fcf6ed;--evt-checkbox-color: var(--evt-color-primary);--evt-checkbox-uncheck-color: #dde0ea;--evt-checkbox-disabled-color: #f1f2f4;--evt-checkbox-check-disabled-color: #dde0ea;--evt-icon-edit-color: #4e5969;--evt-icon-select-color: #4e5969;--evt-readonly-color: #fff;--evt-readonly-text-color: var(--evt-body-text-color);--evt-error-tip-color: #ed3f14;--evt-footer-bg-color: #fafafa;--evt-highlight-hover-row-color: rgba(186, 203, 231, .1);--evt-highlight-selected-row-color: rgba(82, 146, 247, .1);--evt-tooltip-bg-color: #303133;--evt-tooltip-text-color: #fff;--evt-resize-row-line-color: #e1e6eb;--evt-resize-column-text-color: #fff;--evt-resize-column-text-bg-color: var(--evt-color-primary);--evt-resize-column-line-color: #e1e6eb;--evt-tree-line-color: #e1e6eb;--evt-sort-icon-color: var(--evt-color-primary);--evt-drag-tip-bg-color: rgba(82, 146, 247, .1);--evt-drag-tip-line-color: var(--evt-color-primary);--evt-context-menu-min-width: 150px;--evt-context-menu-max-width: 220px;--evt-context-menu-item-padding: 8px 12px;--evt-context-menu-bg-color: #fff;--evt-context-menu-text-color: #333;--evt-context-menu-item-hover-text-color: var(--evt-color-primary);--evt-context-menu-item-hover-bg-color: #f5f5f5;--evt-context-menu-text-size: 13px}.dark{--evt-border-color: #363637;--evt-header-bg-color: #141414;--evt-body-bg-color: #141414;--evt-header-text-color: #a3a6ad;--evt-body-text-color: #cfd3dc;--evt-readonly-text-color: #cfd3dc;--evt-footer-text-color: #cfd3dc;--evt-scroller-color: #414243;--evt-scroller-track-color: #141414;--evt-scroller-focus-color: #a3a6ad;--evt-edit-bg-color: #141414;--evt-footer-bg-color: #262727;--evt-autofill-point-border-color: #fff;--evt-editor-bg-color: #434343;--evt-editor-text-color: #cfd3dc;--evt-context-menu-bg-color: #141414;--evt-context-menu-text-color: #cfd3dc;--evt-context-menu-item-hover-text-color: var(--evt-color-primary);--evt-context-menu-item-hover-bg-color: #414243}.e-virt-table-container{position:relative;outline:none}.e-virt-table-stage{position:relative;overflow:hidden;outline:none;box-sizing:border-box;z-index:10;border-radius:8px;border:1px solid var(--evt-border-color)}.e-virt-table-canvas{position:absolute;left:0;top:0;box-sizing:border-box;background-color:var(--evt-body-bg-color);border:none;outline:none;z-index:10}.e-virt-table-editor{position:absolute;top:-10000px;left:-10000px;text-align:left;height:auto;line-height:0;z-index:100;overflow:hidden;background-color:var(--evt-editor-bg-color);border:2px solid var(--evt-color-primary);box-sizing:border-box;box-shadow:var(--evt-box-shadow);display:flex;align-items:center}.e-virt-table-overlayer{position:absolute;left:0;top:0;overflow:hidden;z-index:100;pointer-events:none}.e-virt-table-editor-textarea{width:100%;box-sizing:border-box;outline:none;font-weight:400;padding:8px;font-size:12px;color:inherit;white-space:pre-wrap;word-wrap:break-word;word-break:break-all;line-height:1.5;margin:0;border:none;vertical-align:middle;background:var(--evt-editor-bg-color);color:var(--evt-editor-text-color);overflow-y:auto;resize:none}.e-virt-table-context-menu{position:absolute;font-size:14px;color:var(--evt-text-color-regular);background-color:var(--evt-color-white);border-radius:4px;border:1px solid #e4e7ed;box-shadow:var(--evt-box-shadow);width:fit-content;padding:6px 0;z-index:9999;left:-99999px;top:-99999px}.e-virt-table-context-menu-item{cursor:pointer;padding:6px 24px;color:var(--evt-text-color-regular)}.e-virt-table-context-menu-item:hover{color:var(--evt-color-primary);background-color:#f5f7fa}.e-virt-table-loading{display:none;position:absolute;left:0;top:0;right:0;bottom:0;width:100%;height:100%;z-index:2000;background-color:#fff6;display:flex;align-items:center;justify-content:center}.e-virt-table-loading-spinner{opacity:1;display:flex;flex-direction:column;align-items:center;justify-content:center}.e-virt-table-loading-spinner svg{color:var(--evt-text-color-regular);animation:rotate 1s linear infinite}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.e-virt-table-loading-text{margin:0;font-size:12px;color:var(--evt-text-color-regular)}.e-virt-table-main-menu,.e-virt-table-submenu{position:absolute;background:var(--evt-context-menu-bg-color);border-radius:4px;box-shadow:0 2px 8px #0000001a;min-width:var(--evt-context-menu-min-width);max-width:var(--evt-context-menu-max-width);color:var(--evt-text-color-primary)}.e-virt-table-main-menu{border:1px solid var(--evt-border-color);z-index:3000;left:-99999px;top:-99999px;display:none;position:fixed;background-color:var(--evt-body-bg-color)}.e-virt-table-submenu{border:1px solid var(--evt-border-color);z-index:1000;max-height:350px;overflow-y:auto;opacity:0;visibility:hidden;transform:translate(-10px);transition:opacity .2s,visibility .2s,transform .2s;-ms-overflow-style:none;scrollbar-width:none}.e-virt-table-submenu::-webkit-scrollbar{display:none}.e-virt-table-submenu.show{opacity:1;visibility:visible;transform:translate(0)}.e-virt-table-submenu:not(.show){transition:none}.e-virt-table-menu-item,.e-virt-table-submenu-item{position:relative;-webkit-user-select:none;user-select:none;padding:var(--evt-context-menu-item-padding);cursor:pointer;display:flex;justify-content:space-between;align-items:center;transition:background .2s,color .2s;color:var(--evt-context-menu-text-color);font-size:var(--evt-context-menu-text-size)}.e-virt-table-menu-item:last-child,.e-virt-table-submenu-item:last-child{border-bottom:none}.e-virt-table-menu-item:has(.e-virt-table-menu-item-icon){padding-left:8px}.e-virt-table-menu-item-content{display:flex;align-items:center;flex:1;min-width:0}.e-virt-table-menu-item-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:8px;flex-shrink:0}.e-virt-table-menu-item-icon svg{width:100%;height:100%;fill:currentColor}.e-virt-table-menu-item-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.e-virt-table-menu-arrow{display:inline-flex;align-items:center;justify-content:center;color:var(--evt-text-color-regular);transition:color .2s}.e-virt-table-menu-arrow svg{width:20px;height:20px;fill:currentColor}.e-virt-table-submenu-item:hover,.e-virt-table-menu-item:hover,.e-virt-table-menu-item.active{background:var(--evt-context-menu-item-hover-bg-color);color:var(--evt-context-menu-item-hover-text-color)}.e-virt-table-menu-item.disabled,.e-virt-table-submenu-item.disabled{cursor:not-allowed}.e-virt-table-finder-bar{position:absolute;top:8px;right:16px;display:none;z-index:10000;background:#fff;border:1px solid #dadce0;border-radius:12px;box-shadow:0 2px 6px #0003;padding:0 8px;height:48px;min-width:250px;align-items:center;font-size:12px}.e-virt-table-finder-bar.show{display:flex}.e-virt-table-finder-bar-input-wrapper{display:flex;align-items:center;flex:1;padding:0 8px;position:relative}.e-virt-table-finder-bar-input{border:none;outline:none;flex:1;font-size:12px;background:transparent;color:#333;min-width:150px;padding-left:0;position:relative}.e-virt-table-finder-bar-nav{display:flex;flex-direction:row;gap:8px;margin:0 8px;align-items:center}.e-virt-table-finder-bar-nav-btn{border:none;background:transparent;cursor:pointer;padding:0;color:#666;border-radius:50%;display:flex;align-items:center;justify-content:center}.e-virt-table-finder-bar-nav-btn svg{width:24px;height:24px}.e-virt-table-finder-bar-nav-btn.prev-btn{transform:rotate(-90deg)}.e-virt-table-finder-bar-nav-btn.next-btn{transform:rotate(90deg)}.e-virt-table-finder-bar-nav-btn.close-btn{font-size:24px;color:#666;line-height:1;width:24px;height:24px}.e-virt-table-finder-bar-nav-btn:hover{color:#666;background-color:#f0f0f0}.e-virt-table-finder-bar-count{color:#666;font-size:12px;margin:0 8px;white-space:nowrap;flex-shrink:0}.e-virt-table-finder-bar-count.no-results{color:#999}.e-virt-table-finder-bar-loading{display:none;position:absolute;left:8px;top:0;width:16px;height:16px;flex-shrink:0;pointer-events:none;z-index:0}.e-virt-table-finder-bar-loading.show{display:block}.e-virt-table-finder-bar-loading svg{width:100%;height:100%;color:#666;animation:rotate 1s linear infinite}.e-virt-table-empty{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:14px;color:#666;z-index:15}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- var de = Object.defineProperty;
3
- var fe = (c, t, e) => t in c ? de(c, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[t] = e;
4
- var n = (c, t, e) => fe(c, typeof t != "symbol" ? t + "" : t, e);
5
- class ue {
2
+ var ue = Object.defineProperty;
3
+ var xe = (c, t, e) => t in c ? ue(c, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[t] = e;
4
+ var n = (c, t, e) => xe(c, typeof t != "symbol" ? t + "" : t, e);
5
+ class ge {
6
6
  constructor(t) {
7
7
  n(this, "rules");
8
8
  this.rules = t;
@@ -60,13 +60,13 @@ class ue {
60
60
  return e;
61
61
  }
62
62
  }
63
- function $t() {
63
+ function jt() {
64
64
  return "xxxxxxxxxxxxxxxxxx".replace(/[x]/g, function(c) {
65
65
  const t = Math.random() * 16 | 0;
66
66
  return (c === "x" ? t : t & 3 | 8).toString(16);
67
67
  });
68
68
  }
69
- function bt(c, t) {
69
+ function vt(c, t) {
70
70
  let e = 0, i;
71
71
  return function(...s) {
72
72
  const o = (/* @__PURE__ */ new Date()).getTime(), r = o - e, a = typeof t == "function" ? t() : t;
@@ -75,10 +75,10 @@ function bt(c, t) {
75
75
  }, a - r));
76
76
  };
77
77
  }
78
- function ot(c = []) {
79
- return c.length ? c.map((t) => ot(t.children) + 1).sort((t, e) => e - t)[0] : 0;
78
+ function rt(c = []) {
79
+ return c.length ? c.map((t) => rt(t.children) + 1).sort((t, e) => e - t)[0] : 0;
80
80
  }
81
- function xe(c = []) {
81
+ function we(c = []) {
82
82
  let t = [], e = [], i = [];
83
83
  return c.forEach((s) => {
84
84
  s.fixed === "left" ? t.push(s) : s.fixed === "right" ? i.push(s) : e.push(s);
@@ -88,14 +88,14 @@ function xe(c = []) {
88
88
  ...i.sort((s, o) => (s.sort ?? 0) - (o.sort ?? 0))
89
89
  ];
90
90
  }
91
- function rt(c = [], t = 1, e = 0, i = "") {
91
+ function nt(c = [], t = 1, e = 0, i = "") {
92
92
  return c.sort((s, o) => (s.sort ?? 0) - (o.sort ?? 0)).map((s) => {
93
93
  if (s.children) {
94
94
  let o = 0, r = s.fixed;
95
95
  s.children.forEach((l) => {
96
96
  l.fixed = r;
97
97
  });
98
- const a = rt(s.children, t - 1, e + 1, s.key);
98
+ const a = nt(s.children, t - 1, e + 1, s.key);
99
99
  return a && a.forEach((l) => {
100
100
  o += l.colspan ?? 0;
101
101
  }), {
@@ -117,30 +117,30 @@ function rt(c = [], t = 1, e = 0, i = "") {
117
117
  };
118
118
  });
119
119
  }
120
- function J(c = []) {
120
+ function Q(c = []) {
121
121
  let t = [];
122
122
  return c.forEach((e) => {
123
- e.children ? t = t.concat(J(e.children)) : t.push(e);
123
+ e.children ? t = t.concat(Q(e.children)) : t.push(e);
124
124
  }), t;
125
125
  }
126
- function Gt(c) {
126
+ function qt(c) {
127
127
  return c.filter((t) => !t.hide).map((t) => Array.isArray(t.children) && t.children.length > 0 ? {
128
128
  ...t,
129
- children: Gt(t.children)
129
+ children: qt(t.children)
130
130
  // 递归处理
131
131
  } : { ...t });
132
132
  }
133
- const At = /^(\r\n|\n\r|\r|\n)/, ge = /^[^\t\r\n]+/, Ht = /^\t/;
134
- function we(c) {
133
+ const Dt = /^(\r\n|\n\r|\r|\n)/, me = /^[^\t\r\n]+/, Nt = /^\t/;
134
+ function Ee(c) {
135
135
  let t = [[""]];
136
136
  if (c.length === 0)
137
137
  return t;
138
138
  let e = 0, i = 0, s;
139
139
  for (; c.length > 0 && s !== c.length; )
140
- if (s = c.length, c.match(Ht))
141
- c = c.replace(Ht, ""), e += 1, t[i][e] = "";
142
- else if (c.match(At))
143
- c = c.replace(At, ""), e = 0, i += 1, t[i] = [""];
140
+ if (s = c.length, c.match(Nt))
141
+ c = c.replace(Nt, ""), e += 1, t[i][e] = "";
142
+ else if (c.match(Dt))
143
+ c = c.replace(Dt, ""), e = 0, i += 1, t[i] = [""];
144
144
  else {
145
145
  let o = "";
146
146
  if (c.startsWith('"')) {
@@ -151,14 +151,14 @@ function we(c) {
151
151
  }
152
152
  o = o.replace(/^"/, "").replace(/"$/, "").replace(/["]*/g, (l) => new Array(Math.floor(l.length / 2)).fill('"').join(""));
153
153
  } else {
154
- const r = c.match(ge);
154
+ const r = c.match(me);
155
155
  o = r ? r[0] : "", c = c.slice(o.length);
156
156
  }
157
157
  t[i][e] = o;
158
158
  }
159
159
  return Array.isArray(t) && t.length > 1 && t[t.length - 1].length === 1 && t[t.length - 1][0] === "" && (t = t.slice(0, t.length - 1)), t;
160
160
  }
161
- function me(c) {
161
+ function pe(c) {
162
162
  let t, e, i, s, o = "", r;
163
163
  for (t = 0, e = c.length; t < e; t += 1) {
164
164
  for (s = c[t].length, i = 0; i < s; i += 1)
@@ -169,7 +169,7 @@ function me(c) {
169
169
  }
170
170
  return o;
171
171
  }
172
- function Ut(c, t, e = []) {
172
+ function Zt(c, t, e = []) {
173
173
  let i = 0;
174
174
  const s = [];
175
175
  return c.forEach((o, r) => {
@@ -181,15 +181,15 @@ function Ut(c, t, e = []) {
181
181
  }
182
182
  }), s;
183
183
  }
184
- function jt(c, t) {
184
+ function Jt(c, t) {
185
185
  let e = "", i = "";
186
186
  const s = {};
187
187
  return t.forEach((o, r) => {
188
188
  r === 0 ? (e = o.key, i = o.key, s[o.key] = 1) : c[o.key] === c[e] ? (s[o.key] = 0, s[i] += 1) : (s[o.key] = 1, e = o.key, i = o.key);
189
189
  }), s;
190
190
  }
191
- function Ee(c, t, e = []) {
192
- const { visibleRows: i, rowIndex: s, headIndex: o } = c, r = Ut(i, t, e);
191
+ function ye(c, t, e = []) {
192
+ const { visibleRows: i, rowIndex: s, headIndex: o } = c, r = Zt(i, t, e);
193
193
  return r[s - o] === 0 ? {
194
194
  rowspan: 0,
195
195
  colspan: 0,
@@ -202,10 +202,10 @@ function Ee(c, t, e = []) {
202
202
  mergeRow: !0
203
203
  };
204
204
  }
205
- function pe(c, t = []) {
205
+ function Ce(c, t = []) {
206
206
  const { column: e, row: i, visibleLeafColumns: s } = c, o = s.filter((r) => t.includes(r.key));
207
207
  if (t.includes(e.key)) {
208
- const r = jt(i, o);
208
+ const r = Jt(i, o);
209
209
  return r[e.key] === 0 ? {
210
210
  rowspan: 0,
211
211
  colspan: 0,
@@ -219,11 +219,11 @@ function pe(c, t = []) {
219
219
  };
220
220
  }
221
221
  }
222
- function ye(c, t = document.documentElement) {
222
+ function be(c, t = document.documentElement) {
223
223
  const e = c.startsWith("--") ? c : `--${c}`;
224
224
  return getComputedStyle(t).getPropertyValue(e).trim();
225
225
  }
226
- function Dt(c) {
226
+ function kt(c) {
227
227
  if (!c) return /* @__PURE__ */ new Date(0);
228
228
  if (typeof c == "number")
229
229
  return new Date(c);
@@ -277,11 +277,11 @@ function Dt(c) {
277
277
  }
278
278
  return /* @__PURE__ */ new Date(NaN);
279
279
  }
280
- function Ce(c, t) {
281
- const e = Dt(c), i = Dt(t);
280
+ function Ie(c, t) {
281
+ const e = kt(c), i = kt(t);
282
282
  return isNaN(e.getTime()) && isNaN(i.getTime()) ? 0 : isNaN(e.getTime()) ? -1 : isNaN(i.getTime()) ? 1 : e.getTime() - i.getTime();
283
283
  }
284
- class qt {
284
+ class Qt {
285
285
  constructor(t, e, i, s, o, r, a) {
286
286
  n(this, "ctx");
287
287
  n(this, "x", 0);
@@ -327,7 +327,7 @@ class qt {
327
327
  getRightFixedX() {
328
328
  }
329
329
  }
330
- class vt extends qt {
330
+ class _t extends Qt {
331
331
  constructor(e, i, s, o, r, a, l, h, d, f = "body", u = !0) {
332
332
  super(e, o, r, a, l, f, h.fixed);
333
333
  n(this, "formatter");
@@ -535,16 +535,16 @@ class vt extends qt {
535
535
  this.rowExpand = h, this.rowHasChildren = d;
536
536
  const { TREE_INDENT: x = 16, CHECKBOX_SIZE: g, TREE_ICON_SIZE: m } = this.ctx.config;
537
537
  if (r = u * x, f) {
538
- const I = this.ctx.icons.get("loading");
539
- a = "loading", o = I;
538
+ const R = this.ctx.icons.get("loading");
539
+ a = "loading", o = R;
540
540
  } else if (d) {
541
- const I = this.ctx.icons.get("expand"), _ = this.ctx.icons.get("shrink");
542
- o = h ? _ : I, a = h ? "shrink" : "expand";
541
+ const R = this.ctx.icons.get("expand"), _ = this.ctx.icons.get("shrink");
542
+ o = h ? _ : R, a = h ? "shrink" : "expand";
543
543
  }
544
544
  let w = m, E = m, p = this.drawX;
545
545
  (this.align === "center" || this.align === "right") && (p = this.drawX + (this.visibleWidth - w - 2 * e) / 2, this.align = "left");
546
- let C = p + r + e, b = this.drawY + (this.visibleHeight - E) / 2, y = r + this.drawX + w - 0.5;
547
- this.type === "selection-tree" ? (C = r + this.drawSelectionImageX + this.drawSelectionImageWidth, y = C + w - e / 2) : this.type === "tree-selection" ? y = C + g + w - e / 2 : y = C + w - e / 2, this.drawTextX = y, this.drawTextWidth = this.drawX + this.visibleWidth - y, !(C + w + e > this.drawX + this.visibleWidth) && (b + E + e > this.drawY + this.visibleHeight || (this.drawTreeImageX = C, this.drawTreeImageY = b, this.drawTreeImageWidth = w, this.drawTreeImageHeight = E, o ? (this.drawTreeImageName = a, this.drawTreeImageSource = o) : (this.drawTreeImageName = "", this.drawTreeImageSource = void 0)));
546
+ let y = p + r + e, b = this.drawY + (this.visibleHeight - E) / 2, C = r + this.drawX + w - 0.5;
547
+ this.type === "selection-tree" ? (y = r + this.drawSelectionImageX + this.drawSelectionImageWidth, C = y + w - e / 2) : this.type === "tree-selection" ? C = y + g + w - e / 2 : C = y + w - e / 2, this.drawTextX = C, this.drawTextWidth = this.drawX + this.visibleWidth - C, !(y + w + e > this.drawX + this.visibleWidth) && (b + E + e > this.drawY + this.visibleHeight || (this.drawTreeImageX = y, this.drawTreeImageY = b, this.drawTreeImageWidth = w, this.drawTreeImageHeight = E, o ? (this.drawTreeImageName = a, this.drawTreeImageSource = o) : (this.drawTreeImageName = "", this.drawTreeImageSource = void 0)));
548
548
  }
549
549
  drawTreeLine() {
550
550
  const { TREE_LINE: e, TREE_INDENT: i = 16, TREE_ICON_SIZE: s = 16, TREE_LINE_COLOR: o = "#e1e6eb" } = this.ctx.config;
@@ -623,15 +623,15 @@ class vt extends qt {
623
623
  return;
624
624
  }
625
625
  let E = "transparent";
626
- const p = this.ctx.hoverCell, C = this.ctx.currentCell;
627
- let b = this.rowIndex, y = this.rowIndex;
626
+ const p = this.ctx.hoverCell, y = this.ctx.currentCell;
627
+ let b = this.rowIndex, C = this.rowIndex;
628
628
  if (this.rowspan !== 1 && (u || d)) {
629
629
  const S = this.getSpanInfo(), { yArr: T } = S;
630
- b = T[0], y = T[1];
630
+ b = T[0], C = T[1];
631
631
  }
632
- u && p && (p.rowKey === this.rowKey && (E = x), p.rowIndex >= b && p.rowIndex <= y && (E = x)), d && C && (C.rowKey === this.rowKey && (E = f), C.rowIndex >= b && C.rowIndex <= y && (E = f)), this.drawCellSkyBgColor = E;
633
- let I = e, _ = a;
634
- if (this.ctx.database.getReadonly(this.rowKey, this.key) || (I = i, _ = r), g && (this.rowIndex % 2 ? I = m : I = e), typeof s == "function") {
632
+ u && p && (p.rowKey === this.rowKey && (E = x), p.rowIndex >= b && p.rowIndex <= C && (E = x)), d && y && (y.rowKey === this.rowKey && (E = f), y.rowIndex >= b && y.rowIndex <= C && (E = f)), this.drawCellSkyBgColor = E;
633
+ let R = e, _ = a;
634
+ if (this.ctx.database.getReadonly(this.rowKey, this.key) || (R = i, _ = r), g && (this.rowIndex % 2 ? R = m : R = e), typeof s == "function") {
635
635
  const S = s, { backgroundColor: T, color: M, font: O } = S({
636
636
  row: this.row,
637
637
  rowIndex: this.rowIndex,
@@ -640,10 +640,10 @@ class vt extends qt {
640
640
  isHasChanged: this.isHasChanged,
641
641
  value: this.getValue()
642
642
  }) || {};
643
- T && (I = T), M && (_ = M), O && (this.drawTextFont = O);
643
+ T && (R = T), M && (_ = M), O && (this.drawTextFont = O);
644
644
  }
645
- const { rowIndex: L, colIndex: R, type: v } = this.ctx.finderBar;
646
- L === this.rowIndex && R === this.colIndex && v === "body" && (I = w), this.drawCellBgColor = I, this.drawTextColor = _;
645
+ const { rowIndex: L, colIndex: v, type: I } = this.ctx.finderBar;
646
+ L === this.rowIndex && v === this.colIndex && I === "body" && (R = w), this.drawCellBgColor = R, this.drawTextColor = _;
647
647
  }
648
648
  updateSelection() {
649
649
  const { visibleWidth: e, visibleHeight: i, rowspan: s, colspan: o, cellType: r, type: a, rowIndex: l, rowKey: h } = this;
@@ -655,8 +655,8 @@ class vt extends qt {
655
655
  let g = x, m = this.drawY + (i - f) / 2;
656
656
  if (a !== "selection-tree") {
657
657
  if (a === "tree-selection") {
658
- const { TREE_INDENT: p = 16, TREE_ICON_SIZE: C } = this.ctx.config, b = this.ctx.database.getRowForRowKey(h), { level: y = 0 } = b || {}, I = y * p;
659
- g = x + C + I;
658
+ const { TREE_INDENT: p = 16, TREE_ICON_SIZE: y } = this.ctx.config, b = this.ctx.database.getRowForRowKey(h), { level: C = 0 } = b || {}, R = C * p;
659
+ g = x + y + R;
660
660
  }
661
661
  }
662
662
  let w = this.ctx.icons.get("checkbox-uncheck"), E = "checkbox-uncheck";
@@ -975,10 +975,10 @@ class vt extends qt {
975
975
  drawBorder(e) {
976
976
  const { drawX: i, drawY: s, rowIndex: o, colIndex: r, height: a, width: l } = this;
977
977
  let h = i, d = s;
978
- const { xArr: f, yArr: u, lineDash: x = [], borderWidth: g = 1, borderColor: m, fillColor: w } = e, E = f[0], p = f[1], C = u[0], b = u[1];
979
- if (r >= E && r <= p && o === C) {
980
- const y = r === p ? 1 : 0, I = r === E ? 1 : 0;
981
- this.ctx.paint.drawLine([h + I, d + 1, h + l - y, d + 1], {
978
+ const { xArr: f, yArr: u, lineDash: x = [], borderWidth: g = 1, borderColor: m, fillColor: w } = e, E = f[0], p = f[1], y = u[0], b = u[1];
979
+ if (r >= E && r <= p && o === y) {
980
+ const C = r === p ? 1 : 0, R = r === E ? 1 : 0;
981
+ this.ctx.paint.drawLine([h + R, d + 1, h + l - C, d + 1], {
982
982
  borderColor: m,
983
983
  fillColor: w,
984
984
  borderWidth: g,
@@ -987,9 +987,9 @@ class vt extends qt {
987
987
  lineDash: x
988
988
  });
989
989
  }
990
- if (r === p && o >= C && o <= b) {
991
- const y = o === C ? 1 : 0, I = o === b ? 1 : 0;
992
- this.ctx.paint.drawLine([h + l - 1, d + y, h + l - 1, d + a - I], {
990
+ if (r === p && o >= y && o <= b) {
991
+ const C = o === y ? 1 : 0, R = o === b ? 1 : 0;
992
+ this.ctx.paint.drawLine([h + l - 1, d + C, h + l - 1, d + a - R], {
993
993
  borderColor: m,
994
994
  fillColor: w,
995
995
  borderWidth: g,
@@ -999,8 +999,8 @@ class vt extends qt {
999
999
  });
1000
1000
  }
1001
1001
  if (r >= E && r <= p && o === b) {
1002
- const y = r === p ? 1 : 0, I = r === E ? 1 : 0;
1003
- this.ctx.paint.drawLine([h + I, d + a - 1, h + l - y, d + a - 1], {
1002
+ const C = r === p ? 1 : 0, R = r === E ? 1 : 0;
1003
+ this.ctx.paint.drawLine([h + R, d + a - 1, h + l - C, d + a - 1], {
1004
1004
  borderColor: m,
1005
1005
  fillColor: w,
1006
1006
  borderWidth: g,
@@ -1009,9 +1009,9 @@ class vt extends qt {
1009
1009
  lineDash: x
1010
1010
  });
1011
1011
  }
1012
- if (r === E && o >= C && o <= b) {
1013
- const y = o === b ? 1 : 0, I = o === C ? 1 : 0;
1014
- this.ctx.paint.drawLine([h + 1, d + I, h + 1, d + a - y], {
1012
+ if (r === E && o >= y && o <= b) {
1013
+ const C = o === b ? 1 : 0, R = o === y ? 1 : 0;
1014
+ this.ctx.paint.drawLine([h + 1, d + R, h + 1, d + a - C], {
1015
1015
  borderColor: m,
1016
1016
  fillColor: w,
1017
1017
  borderWidth: g,
@@ -1022,7 +1022,7 @@ class vt extends qt {
1022
1022
  }
1023
1023
  }
1024
1024
  }
1025
- class be {
1025
+ class Re {
1026
1026
  constructor(t, e) {
1027
1027
  n(this, "ctx");
1028
1028
  n(this, "data");
@@ -1068,7 +1068,7 @@ class be {
1068
1068
  // 初始化默认不忽略清空改变值和校验map
1069
1069
  init(t = !0) {
1070
1070
  this.ctx.paint.clearTextCache(), this.clearBufferData(), this.rowKeyMap.clear(), this.checkboxKeyMap.clear(), this.colIndexKeyMap.clear(), this.rowIndexRowKeyMap.clear(), this.rowKeyRowIndexMap.clear(), this.maxRowHeightCellMap.clear();
1071
- const e = this.getColumns(), i = J(e);
1071
+ const e = this.getColumns(), i = Q(e);
1072
1072
  if (this.ctx.hasSelection = i.some((s) => s.type === "selection"), this.ctx.hasTree = i.some((s) => s.type === "tree"), t) {
1073
1073
  this.originalDataMap.clear(), this.changedDataMap.clear(), this.validationErrorMap.clear();
1074
1074
  const { ROW_KEY: s } = this.ctx.config;
@@ -1097,24 +1097,24 @@ class be {
1097
1097
  TREE_CHILDREN_KEY: d
1098
1098
  } = this.ctx.config;
1099
1099
  t.forEach((f, u) => {
1100
- var C;
1100
+ var y;
1101
1101
  d !== "children" && (f.children = f[d]);
1102
- const x = f[o], g = x != null ? `${x}` : $t();
1102
+ const x = f[o], g = x != null ? `${x}` : jt();
1103
1103
  this.itemRowKeyMap.set(f, g);
1104
1104
  const m = f._height || a, w = f._readonly;
1105
1105
  let E = !0;
1106
1106
  if (typeof l == "function" && (E = l), h) {
1107
1107
  const b = f[h];
1108
1108
  if (this.checkboxKeyMap.has(b)) {
1109
- const y = this.checkboxKeyMap.get(b) || [];
1110
- y.push(g), this.checkboxKeyMap.set(b, y);
1109
+ const C = this.checkboxKeyMap.get(b) || [];
1110
+ C.push(g), this.checkboxKeyMap.set(b, C);
1111
1111
  } else
1112
1112
  this.checkboxKeyMap.set(b, [g]);
1113
1113
  }
1114
1114
  this.selectionMap.set(g, {
1115
1115
  key: h ? f[h] : g,
1116
1116
  row: f,
1117
- check: ((C = this.selectionMap.get(g)) == null ? void 0 : C.check) || !1
1117
+ check: ((y = this.selectionMap.get(g)) == null ? void 0 : y.check) || !1
1118
1118
  });
1119
1119
  const p = r || this.expandMap.get(g) || f._expand || !1;
1120
1120
  this.expandMap.set(g, p), this.rowKeyMap.set(g, {
@@ -1321,7 +1321,7 @@ class be {
1321
1321
  } else if (s === "string") {
1322
1322
  const d = String(a || ""), f = String(l || "");
1323
1323
  h = d.localeCompare(f);
1324
- } else s === "date" && (h = Ce(a, l));
1324
+ } else s === "date" && (h = Ie(a, l));
1325
1325
  return i === "asc" ? h : -h;
1326
1326
  });
1327
1327
  }
@@ -1437,17 +1437,17 @@ class be {
1437
1437
  let l = [], h = t.map((g) => {
1438
1438
  const { rowKey: m, key: w } = g;
1439
1439
  let E = g.value, p = E;
1440
- const C = this.getRowDataItemForRowKey(m), b = this.getItemValue(m, w), y = this.getVirtualBodyCellByKey(m, w);
1441
- return (y == null ? void 0 : y.type) === "number" && (["", void 0, null].includes(E) ? p = null : /^-?\d+(\.\d+)?$/.test(`${E}`) ? p = Number(E) : (p = b, l.push({
1440
+ const y = this.getRowDataItemForRowKey(m), b = this.getItemValue(m, w), C = this.getVirtualBodyCellByKey(m, w);
1441
+ return (C == null ? void 0 : C.type) === "number" && (["", void 0, null].includes(E) ? p = null : /^-?\d+(\.\d+)?$/.test(`${E}`) ? p = Number(E) : (p = b, l.push({
1442
1442
  ...g,
1443
1443
  value: p,
1444
1444
  oldValue: b,
1445
- row: C
1445
+ row: y
1446
1446
  }))), {
1447
1447
  ...g,
1448
1448
  value: p,
1449
1449
  oldValue: b,
1450
- row: C
1450
+ row: y
1451
1451
  };
1452
1452
  });
1453
1453
  if (h = h.filter((g) => !l.some((m) => g.rowKey === m.rowKey && g.key === m.key)), l.length) {
@@ -1691,8 +1691,8 @@ class be {
1691
1691
  const h = (w) => {
1692
1692
  const E = this.getTreeChildren(w);
1693
1693
  let p = [];
1694
- for (const C of E)
1695
- p.push(C), p.push(...h(C));
1694
+ for (const y of E)
1695
+ p.push(y), p.push(...h(y));
1696
1696
  return p;
1697
1697
  }, f = h(t).map((w) => this.selectionMap.get(w)), u = f.filter((w) => w == null ? void 0 : w.check).length, x = f.length, g = u > 0;
1698
1698
  r = g && !(u === x), a = s || g, s && x > 0 && u === 0 && (a = !1, r = !1);
@@ -1700,8 +1700,8 @@ class be {
1700
1700
  const h = (w) => {
1701
1701
  const E = this.getTreeChildren(w);
1702
1702
  let p = [];
1703
- for (const C of E)
1704
- p.push(C), p.push(...h(C));
1703
+ for (const y of E)
1704
+ p.push(y), p.push(...h(y));
1705
1705
  return p;
1706
1706
  }, f = h(t).map((w) => this.selectionMap.get(w)), u = f.filter((w) => w == null ? void 0 : w.check).length, x = f.length, g = u > 0, m = u === x;
1707
1707
  r = g && !m, a = s || m, s && x > 0 && u === 0 && (a = !1, r = !1);
@@ -1965,7 +1965,7 @@ class be {
1965
1965
  value: this.getItemValue(t, e),
1966
1966
  field: e,
1967
1967
  fieldValue: this.getItemValue(t, e)
1968
- }, u = new ue(h).validate(d);
1968
+ }, u = new ge(h).validate(d);
1969
1969
  this.setValidationError(t, e, u), s(u);
1970
1970
  } else
1971
1971
  this.clearValidationError(t, e), s([]);
@@ -2015,41 +2015,41 @@ class be {
2015
2015
  }
2016
2016
  ]
2017
2017
  };
2018
- let w = e, E = e, p = a, C = a, b = [], y = 0, I = 0, _ = 0, L = 0;
2018
+ let w = e, E = e, p = a, y = a, b = [], C = 0, R = 0, _ = 0, L = 0;
2019
2019
  if (d !== 1 && g) {
2020
2020
  L = u;
2021
- const R = l.reduce((v, S) => {
2021
+ const v = l.reduce((I, S) => {
2022
2022
  const T = this.getItemValue(s, S) ?? "";
2023
- return `${v}${T}`;
2023
+ return `${I}${T}`;
2024
2024
  }, "");
2025
- for (let v = e - 1; v >= 0; v--) {
2026
- const S = this.rowIndexRowKeyMap.get(v) || "", T = l.reduce((M, O) => {
2025
+ for (let I = e - 1; I >= 0; I--) {
2026
+ const S = this.rowIndexRowKeyMap.get(I) || "", T = l.reduce((M, O) => {
2027
2027
  const A = this.getItemValue(S, O) ?? "";
2028
2028
  return `${M}${A}`;
2029
2029
  }, "");
2030
- if (R === T)
2031
- w = v;
2030
+ if (v === T)
2031
+ w = I;
2032
2032
  else
2033
2033
  break;
2034
2034
  }
2035
- for (let v = e; v <= this.ctx.maxRowIndex; v++) {
2036
- const S = this.rowIndexRowKeyMap.get(v) || "", T = l.reduce((M, O) => {
2035
+ for (let I = e; I <= this.ctx.maxRowIndex; I++) {
2036
+ const S = this.rowIndexRowKeyMap.get(I) || "", T = l.reduce((M, O) => {
2037
2037
  const A = this.getItemValue(S, O) ?? "";
2038
2038
  return `${M}${A}`;
2039
2039
  }, "");
2040
- if (R === T)
2041
- E = v;
2040
+ if (v === T)
2041
+ E = I;
2042
2042
  else
2043
2043
  break;
2044
2044
  }
2045
- for (let v = w; v < e; v++) {
2046
- const { height: S } = this.positions[v];
2047
- y += S;
2045
+ for (let I = w; I < e; I++) {
2046
+ const { height: S } = this.positions[I];
2047
+ C += S;
2048
2048
  }
2049
- for (let v = w; v <= E; v++) {
2050
- const { height: S } = this.positions[v];
2049
+ for (let I = w; I <= E; I++) {
2050
+ const { height: S } = this.positions[I];
2051
2051
  _ += S;
2052
- const T = this.rowIndexRowKeyMap.get(v) || "", { item: M } = this.rowKeyMap.get(T), O = this.getItemValue(T, i);
2052
+ const T = this.rowIndexRowKeyMap.get(I) || "", { item: M } = this.rowKeyMap.get(T), O = this.getItemValue(T, i);
2053
2053
  b.push({
2054
2054
  rowKey: T,
2055
2055
  key: i,
@@ -2060,53 +2060,53 @@ class be {
2060
2060
  }
2061
2061
  if (x !== 1 && m) {
2062
2062
  _ = f;
2063
- for (let R = a - 1; R >= 0; R--) {
2064
- const v = this.getColumnByColIndex(R);
2065
- if (!v)
2063
+ for (let v = a - 1; v >= 0; v--) {
2064
+ const I = this.getColumnByColIndex(v);
2065
+ if (!I)
2066
2066
  break;
2067
- const S = this.getItemValue(s, i), T = this.getItemValue(s, v.key);
2068
- if (S === T && h.includes(v.key))
2069
- p = R;
2067
+ const S = this.getItemValue(s, i), T = this.getItemValue(s, I.key);
2068
+ if (S === T && h.includes(I.key))
2069
+ p = v;
2070
2070
  else
2071
2071
  break;
2072
2072
  }
2073
- for (let R = a; R <= this.ctx.maxColIndex; R++) {
2074
- const v = this.getColumnByColIndex(R);
2075
- if (!v)
2073
+ for (let v = a; v <= this.ctx.maxColIndex; v++) {
2074
+ const I = this.getColumnByColIndex(v);
2075
+ if (!I)
2076
2076
  break;
2077
- const S = this.getItemValue(s, i), T = this.getItemValue(s, v.key);
2078
- if (S === T && h.includes(v.key))
2079
- C = R;
2077
+ const S = this.getItemValue(s, i), T = this.getItemValue(s, I.key);
2078
+ if (S === T && h.includes(I.key))
2079
+ y = v;
2080
2080
  else
2081
2081
  break;
2082
2082
  }
2083
- for (let R = p; R < a; R++) {
2084
- const v = this.getColumnByColIndex(R);
2085
- if (!v)
2083
+ for (let v = p; v < a; v++) {
2084
+ const I = this.getColumnByColIndex(v);
2085
+ if (!I)
2086
2086
  break;
2087
- I += v.width || 100;
2087
+ R += I.width || 100;
2088
2088
  }
2089
- for (let R = p; R <= C; R++) {
2090
- const v = this.getColumnByColIndex(R);
2091
- if (!v)
2089
+ for (let v = p; v <= y; v++) {
2090
+ const I = this.getColumnByColIndex(v);
2091
+ if (!I)
2092
2092
  break;
2093
- L += v.width || 100, b.push({
2093
+ L += I.width || 100, b.push({
2094
2094
  rowKey: s,
2095
- key: v.key,
2096
- value: this.getItemValue(s, v.key),
2095
+ key: I.key,
2096
+ value: this.getItemValue(s, I.key),
2097
2097
  row: o
2098
2098
  });
2099
2099
  }
2100
2100
  }
2101
2101
  return {
2102
- xArr: [p, C],
2102
+ xArr: [p, y],
2103
2103
  yArr: [w, E],
2104
2104
  rowspan: d,
2105
2105
  colspan: x,
2106
2106
  height: _,
2107
2107
  width: L,
2108
- offsetTop: y,
2109
- offsetLeft: I,
2108
+ offsetTop: C,
2109
+ offsetLeft: R,
2110
2110
  dataList: b
2111
2111
  };
2112
2112
  }
@@ -2145,7 +2145,7 @@ class be {
2145
2145
  // 获取虚拟单元格,只针对可见的
2146
2146
  getVirtualBodyCell(t, e, i = !0) {
2147
2147
  const s = this.getColumnByColIndex(e), o = this.getRowForRowIndex(t);
2148
- return !s || !o ? void 0 : new vt(this.ctx, t, e, 0, 0, 0, 0, s, o.item, "body", i);
2148
+ return !s || !o ? void 0 : new _t(this.ctx, t, e, 0, 0, 0, 0, s, o.item, "body", i);
2149
2149
  }
2150
2150
  getVirtualBodyCellByKey(t, e) {
2151
2151
  const i = this.getRowIndexForRowKey(t), s = this.getColIndexForKey(e);
@@ -2310,7 +2310,7 @@ class ve {
2310
2310
  this.history = [], this.historyIndex = -1;
2311
2311
  }
2312
2312
  }
2313
- class Ie {
2313
+ class _e {
2314
2314
  constructor(t) {
2315
2315
  n(this, "eventTasks", /* @__PURE__ */ new Set());
2316
2316
  n(this, "ctx");
@@ -2392,7 +2392,7 @@ class Ie {
2392
2392
  }
2393
2393
  }
2394
2394
  }
2395
- class Re {
2395
+ class Se {
2396
2396
  constructor() {
2397
2397
  n(this, "events", /* @__PURE__ */ new Map());
2398
2398
  }
@@ -2430,7 +2430,7 @@ class Re {
2430
2430
  this.events.clear();
2431
2431
  }
2432
2432
  }
2433
- class _e {
2433
+ class Te {
2434
2434
  constructor(t) {
2435
2435
  n(this, "ctx");
2436
2436
  n(this, "textCacheMap", /* @__PURE__ */ new Map());
@@ -2526,7 +2526,7 @@ class _e {
2526
2526
  * @returns 是否溢出
2527
2527
  */
2528
2528
  drawText(t = "", e, i, s, o, r = {}) {
2529
- var v;
2529
+ var I;
2530
2530
  this.ctx.save();
2531
2531
  const {
2532
2532
  font: a = "12px Arial",
@@ -2541,31 +2541,31 @@ class _e {
2541
2541
  } = r;
2542
2542
  if (this.ctx.font = a, this.ctx.fillStyle = h, this.ctx.textAlign = l, ["", null, void 0].includes(t))
2543
2543
  return this.ctx.restore(), !1;
2544
- const E = parseInt(((v = a.match(/\d+/)) == null ? void 0 : v[0]) || "12") * (r.lineHeight || 1.2), p = s - d * 2 - g - m;
2545
- let C = !1;
2544
+ const E = parseInt(((I = a.match(/\d+/)) == null ? void 0 : I[0]) || "12") * (r.lineHeight || 1.2), p = s - d * 2 - g - m;
2545
+ let y = !1;
2546
2546
  const b = Math.round((o - 2 * d) / E);
2547
- let y = this.wrapText(t, p, r.cacheTextKey), I = Math.min(y.length, Math.max(b, 1));
2548
- u === "auto" && x ? I = y.length : typeof u == "number" && u < I && u !== 1 ? I = u : (u === 1 && (y = [t], I = 1), u === "auto" && b === 1 && (y = [t], I = 1));
2547
+ let C = this.wrapText(t, p, r.cacheTextKey), R = Math.min(C.length, Math.max(b, 1));
2548
+ u === "auto" && x ? R = C.length : typeof u == "number" && u < R && u !== 1 ? R = u : (u === 1 && (C = [t], R = 1), u === "auto" && b === 1 && (C = [t], R = 1));
2549
2549
  let _ = i + d;
2550
- const L = Math.round(I * E);
2550
+ const L = Math.round(R * E);
2551
2551
  f === "middle" ? _ = i + (o - L) / 2 : f === "bottom" && (_ = i + o - L - d);
2552
- let R = e + d + g;
2553
- l === "center" ? R = e + s / 2 : l === "right" && (R = e + s - d - m);
2554
- for (let S = 0; S < y.length; S++) {
2555
- const T = y[S], M = _ + S * E;
2556
- if (this.ctx.textBaseline = "top", S === I - 1) {
2557
- const A = y.slice(S).join(""), { _text: H, ellipsis: D } = this.handleEllipsis(A, s, d, a);
2558
- this.ctx.fillText(H, R, M), C = D;
2552
+ let v = e + d + g;
2553
+ l === "center" ? v = e + s / 2 : l === "right" && (v = e + s - d - m);
2554
+ for (let S = 0; S < C.length; S++) {
2555
+ const T = C[S], M = _ + S * E;
2556
+ if (this.ctx.textBaseline = "top", S === R - 1) {
2557
+ const A = C.slice(S).join(""), { _text: H, ellipsis: D } = this.handleEllipsis(A, s, d, a);
2558
+ this.ctx.fillText(H, v, M), y = D;
2559
2559
  break;
2560
2560
  }
2561
- this.ctx.fillText(T, R, M);
2561
+ this.ctx.fillText(T, v, M);
2562
2562
  }
2563
- if (r.textCallback && y.length) {
2564
- const S = y.reduce((H, D) => Math.max(H, this.ctx.measureText(D).width), 0), T = Math.round(S);
2565
- let M = R, O = R + T;
2566
- l === "center" ? (M = R - T / 2, O = R + T / 2) : l === "right" && (M = R - T, O = R);
2563
+ if (r.textCallback && C.length) {
2564
+ const S = C.reduce((H, D) => Math.max(H, this.ctx.measureText(D).width), 0), T = Math.round(S);
2565
+ let M = v, O = v + T;
2566
+ l === "center" ? (M = v - T / 2, O = v + T / 2) : l === "right" && (M = v - T, O = v);
2567
2567
  const A = {
2568
- x: R,
2568
+ x: v,
2569
2569
  y: _,
2570
2570
  width: T,
2571
2571
  height: L,
@@ -2576,7 +2576,7 @@ class _e {
2576
2576
  };
2577
2577
  r.textCallback(A);
2578
2578
  }
2579
- return this.ctx.restore(), C;
2579
+ return this.ctx.restore(), y;
2580
2580
  }
2581
2581
  /**
2582
2582
  * 将文本按宽度换行
@@ -2658,7 +2658,7 @@ class _e {
2658
2658
  };
2659
2659
  }
2660
2660
  }
2661
- class Nt {
2661
+ class Bt {
2662
2662
  constructor(t) {
2663
2663
  n(this, "_config", {});
2664
2664
  /** CSS 类名前缀 */
@@ -3019,14 +3019,14 @@ class Nt {
3019
3019
  let t = {};
3020
3020
  Object.keys(this).forEach((e) => {
3021
3021
  if (e.endsWith("_COLOR") || e.endsWith("_FONT")) {
3022
- const i = `--evt-${e.toLocaleLowerCase().replace(/_/g, "-")}`, s = ye(i);
3022
+ const i = `--evt-${e.toLocaleLowerCase().replace(/_/g, "-")}`, s = be(i);
3023
3023
  s && (t[e] = s);
3024
3024
  }
3025
3025
  }), Object.assign(this, t, this._config);
3026
3026
  }
3027
3027
  }
3028
- const nt = '<svg t="1724122015492" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4237" width="32" height="32"><path d="M401.472 316.992l159.04 217.664L591.488 512l-30.976-22.656-159.04 217.728q-2.24 3.008-3.84 6.464-1.6 3.456-2.496 7.104-0.896 3.648-1.024 7.424-0.192 3.84 0.384 7.552 0.64 3.712 1.92 7.296 1.28 3.52 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992 3.072 2.24 6.464 3.84 3.456 1.6 7.168 2.496 3.648 0.896 7.424 1.024 3.776 0.192 7.488-0.448 3.776-0.576 7.296-1.856 3.584-1.28 6.784-3.264 3.2-1.92 6.016-4.48 2.816-2.56 5.056-5.632l159.04-217.728q3.584-4.928 5.504-10.752 1.92-5.76 1.92-11.904 0-6.08-1.92-11.904-1.92-5.76-5.504-10.752L463.488 271.68q-2.24-3.072-5.056-5.632-2.752-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.52-1.28-7.296-1.856-3.712-0.576-7.488-0.448-3.84 0.192-7.424 1.088-3.712 0.896-7.168 2.496-3.392 1.6-6.4 3.84-3.136 2.176-5.696 4.992-2.56 2.752-4.48 6.016-1.984 3.2-3.264 6.784-1.28 3.52-1.92 7.296-0.576 3.712-0.384 7.488 0.128 3.84 1.024 7.488 0.896 3.648 2.496 7.04 1.6 3.456 3.84 6.528z m30.976-61.056q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.24-3.52 1.408-6.656 3.52-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.232 1.408 3.456 3.52 6.592 2.112 3.2 4.8 5.824 2.688 2.688 5.76 4.8 3.2 2.112 6.72 3.52 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.656 1.472-3.52 2.24-7.232 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.456-3.52-6.592-2.112-3.2-4.8-5.824-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.52-3.52-1.472-7.232-2.24Q436.224 256 432.448 256z m0 435.392q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.176-3.52 1.472-6.656 3.584-3.2 2.112-5.824 4.736-2.688 2.688-4.8 5.824-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.76 2.688 2.752 5.76 4.8 3.2 2.112 6.72 3.584 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.472 6.592-3.584 3.2-2.048 5.824-4.736 2.688-2.688 4.8-5.824 2.112-3.2 3.52-6.656 1.472-3.456 2.24-7.168 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.52-3.52-6.656-2.112-3.136-4.8-5.76-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704z" p-id="4238"></path></svg>', kt = '<svg t="1722595535853" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4551" width="32" height="32"><path d="M640 128H384c-170.496 0-256 85.504-256 256v256c0 170.496 85.504 256 256 256h256c170.496 0 256-85.504 256-256V384c0-170.496-85.504-256-256-256z m67.584 302.592c-2.048 4.608-4.608 8.704-8.192 12.288L506.88 634.88c-3.584 3.584-7.68 6.144-12.288 8.192-4.608 2.048-9.728 3.072-14.848 3.072s-10.24-1.024-14.848-3.072c-4.608-2.048-8.704-4.608-12.288-8.192l-96.256-96.256c-3.584-3.584-6.144-7.68-8.192-12.288-2.048-4.608-3.072-9.728-3.072-14.848 0-2.56 0-5.12 1.024-7.68 0.512-2.56 1.024-5.12 2.048-7.168 1.024-2.56 2.048-4.608 3.584-6.656 1.536-2.048 3.072-4.096 4.608-5.632 1.536-2.048 3.584-3.584 5.632-4.608 2.048-1.536 4.096-2.56 6.656-3.584 2.56-1.024 4.608-1.536 7.168-2.048 2.56-0.512 5.12-0.512 7.68-0.512 5.12 0 10.24 1.024 14.848 3.072 4.608 2.048 8.704 4.608 12.288 8.192l69.12 68.608L645.12 389.12c3.584-3.584 7.68-6.144 12.288-8.192 4.608-2.048 9.728-3.072 14.848-3.072 2.56 0 5.12 0 7.68 0.512s5.12 1.024 7.168 2.048c2.56 1.024 4.608 2.048 6.656 3.584 2.048 1.536 4.096 3.072 5.632 4.608 1.536 1.536 3.584 3.584 4.608 5.632 1.536 2.048 2.56 4.096 3.584 6.656 1.024 2.56 1.536 4.608 2.048 7.168 0.512 2.56 1.024 5.12 1.024 7.68 0 5.12-1.024 10.24-3.072 14.848z" p-id="4552"></path></svg>', Bt = '<svg t="1724122044148" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4551" width="32" height="32"><path d="M707.648 401.28L489.28 560.704l22.656 30.976 22.656-30.976L316.16 401.216q-3.072-2.24-6.464-3.84-3.456-1.536-7.104-2.432-3.712-0.896-7.488-1.088-3.776-0.128-7.488 0.448-3.776 0.64-7.296 1.92-3.584 1.28-6.784 3.2-3.2 1.984-6.016 4.544-2.816 2.56-5.056 5.632-2.176 3.072-3.84 6.464-1.536 3.456-2.432 7.104-0.896 3.712-1.088 7.488-0.128 3.776 0.448 7.488 0.64 3.776 1.92 7.296 1.28 3.584 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992l218.368 159.552q4.928 3.584 10.752 5.504 5.76 1.92 11.904 1.92 6.08 0 11.904-1.92 5.76-1.92 10.752-5.504l218.368-159.552q3.008-2.24 5.568-4.992 2.56-2.816 4.544-6.016 1.92-3.2 3.264-6.784 1.28-3.52 1.92-7.296 0.576-3.712 0.384-7.488-0.128-3.84-1.024-7.488-0.896-3.648-2.496-7.04-1.6-3.456-3.84-6.528-2.24-3.072-4.992-5.632-2.816-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.584-1.28-7.296-1.856-3.712-0.64-7.488-0.448-3.84 0.192-7.488 1.088-3.648 0.896-7.04 2.496-3.456 1.536-6.528 3.84z m61.056 30.976q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.472-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.72-3.584-3.456-1.408-7.168-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.656 3.584-3.136 2.112-5.76 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.584 6.656-1.408 3.52-2.176 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.176 7.168 1.472 3.52 3.584 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.168-2.176 3.52-1.408 6.656-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.048-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z m-436.736 0q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.408-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.592 3.584-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.24 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.24 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z" p-id="4552"></path></svg>', It = '<svg t="1755138507987" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5079" width="200" height="200"><path d="M512 938.688a42.688 42.688 0 0 1-35.072-18.432l-192-277.312A42.56 42.56 0 0 1 320 576h384a42.752 42.752 0 0 1 35.072 66.944l-192 277.312a42.688 42.688 0 0 1-35.072 18.432" fill="currentColor" p-id="2016"></path><path d="M704 448H320a42.752 42.752 0 0 1-35.072-66.944l192-277.312c16-23.04 54.208-23.04 70.144 0l192 277.312A42.56 42.56 0 0 1 704 448" fill="currentColor" p-id="2015"></path></svg>', Se = It.replace('fill="currentColor" p-id="2016"', 'fill="#bec4c7" p-id="2016"'), Te = It.replace('fill="currentColor" p-id="2015"', 'fill="#bec4c7" p-id="2015"'), Zt = '<svg t="1724133395728" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2893" width="32" height="32"><path d="M512 226.8476541a19.82487759 19.82487759 0 0 1 14.66497778 5.70304692c3.80203107 3.82918865 5.70304692 8.71751457 5.70304693 14.66497779v122.20814825a19.82487759 19.82487759 0 0 1-5.70304693 14.66497778 19.82487759 19.82487759 0 0 1-14.66497778 5.70304691 19.82487759 19.82487759 0 0 1-14.66497778-5.70304691 19.82487759 19.82487759 0 0 1-5.70304693-14.66497778v-122.20814825a19.82487759 19.82487759 0 0 1 5.70304693-14.66497779 19.82487759 19.82487759 0 0 1 14.66497778-5.70304692z m0 407.36049415a19.82487759 19.82487759 0 0 1 14.66497778 5.70304691c3.80203107 3.82918865 5.70304692 8.71751457 5.70304693 14.66497778v122.20814827a19.82487759 19.82487759 0 0 1-5.70304693 14.66497776 19.82487759 19.82487759 0 0 1-14.66497778 5.70304693 19.82487759 19.82487759 0 0 1-14.66497778-5.70304693 19.82487759 19.82487759 0 0 1-5.70304693-14.66497776v-122.20814827a19.82487759 19.82487759 0 0 1 5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 14.66497778-5.70304691zM797.1523459 512a19.82487759 19.82487759 0 0 1-5.70304692 14.66497778 19.82487759 19.82487759 0 0 1-14.66497779 5.70304693h-122.20814825a19.82487759 19.82487759 0 0 1-14.66497778-5.70304693 19.82487759 19.82487759 0 0 1-5.70304691-14.66497778 19.82487759 19.82487759 0 0 1 5.70304691-14.66497778 19.82487759 19.82487759 0 0 1 14.66497778-5.70304693h122.20814825a19.82487759 19.82487759 0 0 1 14.66497779 5.70304693c3.80203107 3.82918865 5.70304692 8.71751457 5.70304692 14.66497778z m-407.36049415 0a19.82487759 19.82487759 0 0 1-5.70304691 14.66497778 19.82487759 19.82487759 0 0 1-14.66497778 5.70304693h-122.20814827a19.82487759 19.82487759 0 0 1-14.66497776-5.70304693 19.82487759 19.82487759 0 0 1-5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 14.66497776-5.70304693h122.20814827a19.82487759 19.82487759 0 0 1 14.66497778 5.70304693c3.80203107 3.82918865 5.70304692 8.71751457 5.70304691 14.66497778zM310.22076878 310.22076878a21.29137537 21.29137537 0 0 1 14.66497779-5.70304693c5.51294514 0 10.18401235 1.90101585 14.01320099 5.70304693l86.55052591 86.57768347a20.91117183 20.91117183 0 0 1 5.73020449 14.31193182 19.28172983 19.28172983 0 0 1-6.05609289 14.013201 19.11878565 19.11878565 0 0 1-14.013201 6.05609289 20.96548698 20.96548698 0 0 1-14.31193182-5.70304692L310.22076878 338.87178998a19.06447114 19.06447114 0 0 1-5.70304693-14.01320099c0-5.54010272 1.90101585-10.42842865 5.70304693-14.66497778z m288.32975775 288.32975775a19.79772001 19.79772001 0 0 1 14.3390894-6.35482371c5.29568642 0 10.04822572 2.11827457 14.31193182 6.38198066l86.57768347 86.55052651c3.80203107 3.80203107 5.70304692 8.47309828 5.70304691 14.01320102a19.55330372 19.55330372 0 0 1-6.05609225 14.31193182 19.66193339 19.66193339 0 0 1-14.31193245 6.05609288 19.01015661 19.01015661 0 0 1-14.01320099-5.70304692l-86.55052591-86.57768347a19.79772001 19.79772001 0 0 1-6.38198129-14.31193245c0-5.29568642 2.11827457-10.07538268 6.38198129-14.33908939zM713.77923122 310.22076878c3.80203107 4.26370672 5.70304692 9.15203265 5.70304693 14.66497779s-1.90101585 10.18401235-5.70304693 14.01320099l-86.57768347 86.55052591a20.91117183 20.91117183 0 0 1-14.31193182 5.73020449 19.28172983 19.28172983 0 0 1-14.013201-6.05609289 19.11878565 19.11878565 0 0 1-6.05609289-14.013201c0-5.29568642 1.90101585-10.07538268 5.70304692-14.31193182l86.57768348-86.57768347c3.80203107-3.80203107 8.50025585-5.70304692 14.01320099-5.70304693 5.54010272 0 10.40127108 1.90101585 14.66497779 5.70304693zM425.44947347 598.57768347a19.79772001 19.79772001 0 0 1 6.35482371 14.33908939c0 5.29568642-2.11827457 10.04822572-6.38198066 14.31193245L338.89894756 713.77923122a19.06447114 19.06447114 0 0 1-14.01320099 5.70304693 19.55330372 19.55330372 0 0 1-14.31193245-6.05609227 19.68909035 19.68909035 0 0 1-6.05609227-14.31193245 19.01015661 19.01015661 0 0 1 5.70304693-14.01320099l86.57768347-86.55052591a19.79772001 19.79772001 0 0 1 14.31193182-6.38198129c5.29568642 0 10.07538268 2.11827457 14.3390894 6.38198129z" fill="#000000" fill-opacity=".65" p-id="2894"></path></svg>';
3029
- class Oe {
3028
+ const at = '<svg t="1724122015492" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4237" width="32" height="32"><path d="M401.472 316.992l159.04 217.664L591.488 512l-30.976-22.656-159.04 217.728q-2.24 3.008-3.84 6.464-1.6 3.456-2.496 7.104-0.896 3.648-1.024 7.424-0.192 3.84 0.384 7.552 0.64 3.712 1.92 7.296 1.28 3.52 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992 3.072 2.24 6.464 3.84 3.456 1.6 7.168 2.496 3.648 0.896 7.424 1.024 3.776 0.192 7.488-0.448 3.776-0.576 7.296-1.856 3.584-1.28 6.784-3.264 3.2-1.92 6.016-4.48 2.816-2.56 5.056-5.632l159.04-217.728q3.584-4.928 5.504-10.752 1.92-5.76 1.92-11.904 0-6.08-1.92-11.904-1.92-5.76-5.504-10.752L463.488 271.68q-2.24-3.072-5.056-5.632-2.752-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.52-1.28-7.296-1.856-3.712-0.576-7.488-0.448-3.84 0.192-7.424 1.088-3.712 0.896-7.168 2.496-3.392 1.6-6.4 3.84-3.136 2.176-5.696 4.992-2.56 2.752-4.48 6.016-1.984 3.2-3.264 6.784-1.28 3.52-1.92 7.296-0.576 3.712-0.384 7.488 0.128 3.84 1.024 7.488 0.896 3.648 2.496 7.04 1.6 3.456 3.84 6.528z m30.976-61.056q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.24-3.52 1.408-6.656 3.52-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.232 1.408 3.456 3.52 6.592 2.112 3.2 4.8 5.824 2.688 2.688 5.76 4.8 3.2 2.112 6.72 3.52 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.656 1.472-3.52 2.24-7.232 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.456-3.52-6.592-2.112-3.2-4.8-5.824-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.52-3.52-1.472-7.232-2.24Q436.224 256 432.448 256z m0 435.392q-3.776 0-7.488 0.704-3.712 0.768-7.168 2.176-3.52 1.472-6.656 3.584-3.2 2.112-5.824 4.736-2.688 2.688-4.8 5.824-2.112 3.2-3.52 6.656-1.472 3.52-2.176 7.232-0.768 3.712-0.768 7.488 0 3.776 0.768 7.488 0.704 3.712 2.176 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.76 2.688 2.752 5.76 4.8 3.2 2.112 6.72 3.584 3.456 1.472 7.168 2.176 3.712 0.768 7.488 0.768 3.84 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.472 6.592-3.584 3.2-2.048 5.824-4.736 2.688-2.688 4.8-5.824 2.112-3.2 3.52-6.656 1.472-3.456 2.24-7.168 0.704-3.712 0.704-7.488 0-3.84-0.704-7.488-0.768-3.712-2.24-7.232-1.408-3.52-3.52-6.656-2.112-3.136-4.8-5.76-2.624-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704z" p-id="4238"></path></svg>', Xt = '<svg t="1722595535853" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4551" width="32" height="32"><path d="M640 128H384c-170.496 0-256 85.504-256 256v256c0 170.496 85.504 256 256 256h256c170.496 0 256-85.504 256-256V384c0-170.496-85.504-256-256-256z m67.584 302.592c-2.048 4.608-4.608 8.704-8.192 12.288L506.88 634.88c-3.584 3.584-7.68 6.144-12.288 8.192-4.608 2.048-9.728 3.072-14.848 3.072s-10.24-1.024-14.848-3.072c-4.608-2.048-8.704-4.608-12.288-8.192l-96.256-96.256c-3.584-3.584-6.144-7.68-8.192-12.288-2.048-4.608-3.072-9.728-3.072-14.848 0-2.56 0-5.12 1.024-7.68 0.512-2.56 1.024-5.12 2.048-7.168 1.024-2.56 2.048-4.608 3.584-6.656 1.536-2.048 3.072-4.096 4.608-5.632 1.536-2.048 3.584-3.584 5.632-4.608 2.048-1.536 4.096-2.56 6.656-3.584 2.56-1.024 4.608-1.536 7.168-2.048 2.56-0.512 5.12-0.512 7.68-0.512 5.12 0 10.24 1.024 14.848 3.072 4.608 2.048 8.704 4.608 12.288 8.192l69.12 68.608L645.12 389.12c3.584-3.584 7.68-6.144 12.288-8.192 4.608-2.048 9.728-3.072 14.848-3.072 2.56 0 5.12 0 7.68 0.512s5.12 1.024 7.168 2.048c2.56 1.024 4.608 2.048 6.656 3.584 2.048 1.536 4.096 3.072 5.632 4.608 1.536 1.536 3.584 3.584 4.608 5.632 1.536 2.048 2.56 4.096 3.584 6.656 1.024 2.56 1.536 4.608 2.048 7.168 0.512 2.56 1.024 5.12 1.024 7.68 0 5.12-1.024 10.24-3.072 14.848z" p-id="4552"></path></svg>', Yt = '<svg t="1724122044148" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4551" width="32" height="32"><path d="M707.648 401.28L489.28 560.704l22.656 30.976 22.656-30.976L316.16 401.216q-3.072-2.24-6.464-3.84-3.456-1.536-7.104-2.432-3.712-0.896-7.488-1.088-3.776-0.128-7.488 0.448-3.776 0.64-7.296 1.92-3.584 1.28-6.784 3.2-3.2 1.984-6.016 4.544-2.816 2.56-5.056 5.632-2.176 3.072-3.84 6.464-1.536 3.456-2.432 7.104-0.896 3.712-1.088 7.488-0.128 3.776 0.448 7.488 0.64 3.776 1.92 7.296 1.28 3.584 3.2 6.784 1.984 3.2 4.544 6.016 2.56 2.752 5.632 4.992l218.368 159.552q4.928 3.584 10.752 5.504 5.76 1.92 11.904 1.92 6.08 0 11.904-1.92 5.76-1.92 10.752-5.504l218.368-159.552q3.008-2.24 5.568-4.992 2.56-2.816 4.544-6.016 1.92-3.2 3.264-6.784 1.28-3.52 1.92-7.296 0.576-3.712 0.384-7.488-0.128-3.84-1.024-7.488-0.896-3.648-2.496-7.04-1.6-3.456-3.84-6.528-2.24-3.072-4.992-5.632-2.816-2.56-6.016-4.48-3.2-1.984-6.784-3.328-3.584-1.28-7.296-1.856-3.712-0.64-7.488-0.448-3.84 0.192-7.488 1.088-3.648 0.896-7.04 2.496-3.456 1.536-6.528 3.84z m61.056 30.976q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.472-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.72-3.584-3.456-1.408-7.168-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.656 3.584-3.136 2.112-5.76 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.584 6.656-1.408 3.52-2.176 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.176 7.168 1.472 3.52 3.584 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.168-2.176 3.52-1.408 6.656-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.048-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z m-436.736 0q0-3.84-0.768-7.488-0.704-3.712-2.176-7.232-1.408-3.456-3.52-6.656-2.112-3.136-4.8-5.76-2.688-2.688-5.76-4.8-3.2-2.112-6.656-3.584-3.52-1.408-7.232-2.176-3.712-0.704-7.488-0.704-3.84 0-7.488 0.704-3.712 0.768-7.232 2.176-3.456 1.472-6.592 3.584-3.2 2.112-5.824 4.8-2.688 2.624-4.8 5.76-2.112 3.2-3.52 6.656-1.472 3.52-2.24 7.232-0.704 3.712-0.704 7.488 0 3.776 0.704 7.488 0.768 3.712 2.24 7.168 1.408 3.52 3.52 6.656 2.112 3.2 4.8 5.824 2.624 2.688 5.76 4.8 3.2 2.112 6.656 3.52 3.52 1.472 7.232 2.176 3.712 0.768 7.488 0.768 3.776 0 7.488-0.768 3.712-0.704 7.232-2.176 3.456-1.408 6.592-3.52 3.2-2.112 5.824-4.8 2.688-2.688 4.8-5.76 2.112-3.2 3.52-6.72 1.472-3.456 2.176-7.168 0.768-3.712 0.768-7.488z" p-id="4552"></path></svg>', St = '<svg t="1755138507987" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5079" width="200" height="200"><path d="M512 938.688a42.688 42.688 0 0 1-35.072-18.432l-192-277.312A42.56 42.56 0 0 1 320 576h384a42.752 42.752 0 0 1 35.072 66.944l-192 277.312a42.688 42.688 0 0 1-35.072 18.432" fill="currentColor" p-id="2016"></path><path d="M704 448H320a42.752 42.752 0 0 1-35.072-66.944l192-277.312c16-23.04 54.208-23.04 70.144 0l192 277.312A42.56 42.56 0 0 1 704 448" fill="currentColor" p-id="2015"></path></svg>', Oe = St.replace('fill="currentColor" p-id="2016"', 'fill="#bec4c7" p-id="2016"'), Le = St.replace('fill="currentColor" p-id="2015"', 'fill="#bec4c7" p-id="2015"'), te = '<svg t="1724133395728" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2893" width="32" height="32"><path d="M512 226.8476541a19.82487759 19.82487759 0 0 1 14.66497778 5.70304692c3.80203107 3.82918865 5.70304692 8.71751457 5.70304693 14.66497779v122.20814825a19.82487759 19.82487759 0 0 1-5.70304693 14.66497778 19.82487759 19.82487759 0 0 1-14.66497778 5.70304691 19.82487759 19.82487759 0 0 1-14.66497778-5.70304691 19.82487759 19.82487759 0 0 1-5.70304693-14.66497778v-122.20814825a19.82487759 19.82487759 0 0 1 5.70304693-14.66497779 19.82487759 19.82487759 0 0 1 14.66497778-5.70304692z m0 407.36049415a19.82487759 19.82487759 0 0 1 14.66497778 5.70304691c3.80203107 3.82918865 5.70304692 8.71751457 5.70304693 14.66497778v122.20814827a19.82487759 19.82487759 0 0 1-5.70304693 14.66497776 19.82487759 19.82487759 0 0 1-14.66497778 5.70304693 19.82487759 19.82487759 0 0 1-14.66497778-5.70304693 19.82487759 19.82487759 0 0 1-5.70304693-14.66497776v-122.20814827a19.82487759 19.82487759 0 0 1 5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 14.66497778-5.70304691zM797.1523459 512a19.82487759 19.82487759 0 0 1-5.70304692 14.66497778 19.82487759 19.82487759 0 0 1-14.66497779 5.70304693h-122.20814825a19.82487759 19.82487759 0 0 1-14.66497778-5.70304693 19.82487759 19.82487759 0 0 1-5.70304691-14.66497778 19.82487759 19.82487759 0 0 1 5.70304691-14.66497778 19.82487759 19.82487759 0 0 1 14.66497778-5.70304693h122.20814825a19.82487759 19.82487759 0 0 1 14.66497779 5.70304693c3.80203107 3.82918865 5.70304692 8.71751457 5.70304692 14.66497778z m-407.36049415 0a19.82487759 19.82487759 0 0 1-5.70304691 14.66497778 19.82487759 19.82487759 0 0 1-14.66497778 5.70304693h-122.20814827a19.82487759 19.82487759 0 0 1-14.66497776-5.70304693 19.82487759 19.82487759 0 0 1-5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 5.70304693-14.66497778 19.82487759 19.82487759 0 0 1 14.66497776-5.70304693h122.20814827a19.82487759 19.82487759 0 0 1 14.66497778 5.70304693c3.80203107 3.82918865 5.70304692 8.71751457 5.70304691 14.66497778zM310.22076878 310.22076878a21.29137537 21.29137537 0 0 1 14.66497779-5.70304693c5.51294514 0 10.18401235 1.90101585 14.01320099 5.70304693l86.55052591 86.57768347a20.91117183 20.91117183 0 0 1 5.73020449 14.31193182 19.28172983 19.28172983 0 0 1-6.05609289 14.013201 19.11878565 19.11878565 0 0 1-14.013201 6.05609289 20.96548698 20.96548698 0 0 1-14.31193182-5.70304692L310.22076878 338.87178998a19.06447114 19.06447114 0 0 1-5.70304693-14.01320099c0-5.54010272 1.90101585-10.42842865 5.70304693-14.66497778z m288.32975775 288.32975775a19.79772001 19.79772001 0 0 1 14.3390894-6.35482371c5.29568642 0 10.04822572 2.11827457 14.31193182 6.38198066l86.57768347 86.55052651c3.80203107 3.80203107 5.70304692 8.47309828 5.70304691 14.01320102a19.55330372 19.55330372 0 0 1-6.05609225 14.31193182 19.66193339 19.66193339 0 0 1-14.31193245 6.05609288 19.01015661 19.01015661 0 0 1-14.01320099-5.70304692l-86.55052591-86.57768347a19.79772001 19.79772001 0 0 1-6.38198129-14.31193245c0-5.29568642 2.11827457-10.07538268 6.38198129-14.33908939zM713.77923122 310.22076878c3.80203107 4.26370672 5.70304692 9.15203265 5.70304693 14.66497779s-1.90101585 10.18401235-5.70304693 14.01320099l-86.57768347 86.55052591a20.91117183 20.91117183 0 0 1-14.31193182 5.73020449 19.28172983 19.28172983 0 0 1-14.013201-6.05609289 19.11878565 19.11878565 0 0 1-6.05609289-14.013201c0-5.29568642 1.90101585-10.07538268 5.70304692-14.31193182l86.57768348-86.57768347c3.80203107-3.80203107 8.50025585-5.70304692 14.01320099-5.70304693 5.54010272 0 10.40127108 1.90101585 14.66497779 5.70304693zM425.44947347 598.57768347a19.79772001 19.79772001 0 0 1 6.35482371 14.33908939c0 5.29568642-2.11827457 10.04822572-6.38198066 14.31193245L338.89894756 713.77923122a19.06447114 19.06447114 0 0 1-14.01320099 5.70304693 19.55330372 19.55330372 0 0 1-14.31193245-6.05609227 19.68909035 19.68909035 0 0 1-6.05609227-14.31193245 19.01015661 19.01015661 0 0 1 5.70304693-14.01320099l86.57768347-86.55052591a19.79772001 19.79772001 0 0 1 14.31193182-6.38198129c5.29568642 0 10.07538268 2.11827457 14.3390894 6.38198129z" fill="#000000" fill-opacity=".65" p-id="2894"></path></svg>';
3029
+ class Me {
3030
3030
  constructor(t) {
3031
3031
  n(this, "ctx");
3032
3032
  n(this, "list", [
@@ -3034,21 +3034,21 @@ class Oe {
3034
3034
  name: "loading",
3035
3035
  configName: "LOADING_ICON_SVG",
3036
3036
  configColorName: "LOADING_ICON_COLOR",
3037
- svg: Zt,
3037
+ svg: te,
3038
3038
  color: "#4E5969"
3039
3039
  },
3040
3040
  {
3041
3041
  name: "expand",
3042
3042
  configName: "EXPAND_ICON_SVG",
3043
3043
  configColorName: "EXPAND_ICON_COLOR",
3044
- svg: nt,
3044
+ svg: at,
3045
3045
  color: "#4E5969"
3046
3046
  },
3047
3047
  {
3048
3048
  name: "shrink",
3049
3049
  configName: "SHRINK_ICON_SVG",
3050
3050
  configColorName: "SHRINK_ICON_COLOR",
3051
- svg: Bt,
3051
+ svg: Yt,
3052
3052
  color: "#4E5969"
3053
3053
  },
3054
3054
  {
@@ -3062,7 +3062,7 @@ class Oe {
3062
3062
  name: "checkbox-check",
3063
3063
  configName: "CHECKBOX_CHECK_SVG",
3064
3064
  configColorName: "CHECKBOX_COLOR",
3065
- svg: kt,
3065
+ svg: Xt,
3066
3066
  color: "rgb(82,146,247)"
3067
3067
  },
3068
3068
  {
@@ -3075,7 +3075,7 @@ class Oe {
3075
3075
  {
3076
3076
  name: "checkbox-check-disabled",
3077
3077
  configName: "CHECKBOX_CHECK_DISABLED_SVG",
3078
- svg: kt,
3078
+ svg: Xt,
3079
3079
  color: "#DDE0EA"
3080
3080
  },
3081
3081
  {
@@ -3096,27 +3096,27 @@ class Oe {
3096
3096
  name: "icon-select",
3097
3097
  configName: "ICON_SELECT_SVG",
3098
3098
  configColorName: "ICON_SELECT_COLOR",
3099
- svg: Bt,
3099
+ svg: Yt,
3100
3100
  color: "#4E5969"
3101
3101
  },
3102
3102
  {
3103
3103
  name: "sort-asc",
3104
3104
  configName: "SORT_ASC_ICON_SVG",
3105
3105
  configColorName: "SORT_ICON_COLOR",
3106
- svg: Se,
3106
+ svg: Oe,
3107
3107
  color: "rgb(82,146,247)"
3108
3108
  },
3109
3109
  {
3110
3110
  name: "sort-desc",
3111
3111
  configName: "SORT_DESC_ICON_SVG",
3112
3112
  configColorName: "SORT_ICON_COLOR",
3113
- svg: Te,
3113
+ svg: Le,
3114
3114
  color: "rgb(82,146,247)"
3115
3115
  },
3116
3116
  {
3117
3117
  name: "sort-default",
3118
3118
  configName: "SORTABLE_ICON_SVG",
3119
- svg: It,
3119
+ svg: St,
3120
3120
  color: "#bec4c7"
3121
3121
  }
3122
3122
  ]);
@@ -3179,7 +3179,7 @@ class Oe {
3179
3179
  return this.list.find((e) => e.name === t);
3180
3180
  }
3181
3181
  }
3182
- class mt extends qt {
3182
+ class yt extends Qt {
3183
3183
  constructor(e, i, s, o, r, a, l) {
3184
3184
  super(e, s, o, r, a, "header", l.fixed);
3185
3185
  n(this, "align");
@@ -3242,7 +3242,7 @@ class mt extends qt {
3242
3242
  n(this, "drawSortImageName", "");
3243
3243
  n(this, "drawSortImageSource");
3244
3244
  n(this, "renderHeaderType", "default");
3245
- this.ctx = e, this.x = s, this.y = o, this.width = r, this.height = a, this.visibleWidth = r, this.visibleHeight = a, this.colIndex = i, this.key = l.key, this.minWidth = l.minWidth, this.maxWidth = l.maxWidth, this.hide = (typeof l.hide == "function" ? l.hide(l) : l.hide) || !1, this.type = l.type || "", this.editorType = l.editorType || "text", this.hideHeaderSelection = l.hideHeaderSelection || !1, this.align = l.headerAlign || l.align || this.ctx.config.COLUMNS_ALIGN, this.verticalAlign = l.headerVerticalAlign || l.verticalAlign || this.ctx.config.COLUMNS_VERTICAL_ALIGN, this.fixed = l.fixed || "", this.level = l.level || 0, this.operation = l.operation || !1, this.text = l.title, this.column = l, this.colspan = l.colspan || 1, this.widthFillDisable = l.widthFillDisable || !1, this.rowspan = l.rowspan || 1, this.rules = l.rules, this.readonly = l.readonly || !1, this.required = l.required || !1, this.sortIconName = l.sortIconName || "sort-default", this.sortAscIconName = l.sortAscIconName || "sort-asc", this.sortDescIconName = l.sortDescIconName || "sort-desc", this.rowKey = $t(), this.overflowTooltipShow = l.overflowTooltipHeaderShow !== !1, this.hasChildren = l.children && l.children.length > 0 || !1, this.render = l.renderHeader, this.maxLineClampHeader = l.maxLineClampHeader || "auto", this.renderHeaderType = l.renderHeaderType || "default";
3245
+ this.ctx = e, this.x = s, this.y = o, this.width = r, this.height = a, this.visibleWidth = r, this.visibleHeight = a, this.colIndex = i, this.key = l.key, this.minWidth = l.minWidth, this.maxWidth = l.maxWidth, this.hide = (typeof l.hide == "function" ? l.hide(l) : l.hide) || !1, this.type = l.type || "", this.editorType = l.editorType || "text", this.hideHeaderSelection = l.hideHeaderSelection || !1, this.align = l.headerAlign || l.align || this.ctx.config.COLUMNS_ALIGN, this.verticalAlign = l.headerVerticalAlign || l.verticalAlign || this.ctx.config.COLUMNS_VERTICAL_ALIGN, this.fixed = l.fixed || "", this.level = l.level || 0, this.operation = l.operation || !1, this.text = l.title, this.column = l, this.colspan = l.colspan || 1, this.widthFillDisable = l.widthFillDisable || !1, this.rowspan = l.rowspan || 1, this.rules = l.rules, this.readonly = l.readonly || !1, this.required = l.required || !1, this.sortIconName = l.sortIconName || "sort-default", this.sortAscIconName = l.sortAscIconName || "sort-asc", this.sortDescIconName = l.sortDescIconName || "sort-desc", this.rowKey = jt(), this.overflowTooltipShow = l.overflowTooltipHeaderShow !== !1, this.hasChildren = l.children && l.children.length > 0 || !1, this.render = l.renderHeader, this.maxLineClampHeader = l.maxLineClampHeader || "auto", this.renderHeaderType = l.renderHeaderType || "default";
3246
3246
  }
3247
3247
  /**
3248
3248
  * 是否可见,覆盖基类方法,表头是跟y滚动条没有关系的所以不需要加滚动参数
@@ -3388,7 +3388,7 @@ class mt extends qt {
3388
3388
  };
3389
3389
  }
3390
3390
  }
3391
- class Le {
3391
+ class Ae {
3392
3392
  constructor(t) {
3393
3393
  n(this, "ctx");
3394
3394
  n(this, "visibleHoverCell");
@@ -3511,7 +3511,7 @@ class Le {
3511
3511
  t.drawSelectionImageWidth,
3512
3512
  t.drawSelectionImageHeight
3513
3513
  ))
3514
- if (t instanceof mt)
3514
+ if (t instanceof yt)
3515
3515
  t.drawSelectionImageName === "checkbox-uncheck" || t.drawSelectionImageName === "checkbox-indeterminate" ? this.ctx.database.toggleAllSelection() : t.drawSelectionImageName === "checkbox-check" && this.ctx.database.clearSelection(!0);
3516
3516
  else {
3517
3517
  if (!this.ctx.database.getRowSelectable(t.rowKey))
@@ -3576,7 +3576,7 @@ class Le {
3576
3576
  */
3577
3577
  imageEnterAndLeave(t, e) {
3578
3578
  const { offsetY: i, offsetX: s } = this.ctx.getOffset(e), o = i, r = s;
3579
- if (t instanceof mt) {
3579
+ if (t instanceof yt) {
3580
3580
  if (t.drawSelectionImageSource && this.isInsideElement(
3581
3581
  r,
3582
3582
  o,
@@ -3600,7 +3600,7 @@ class Le {
3600
3600
  return;
3601
3601
  }
3602
3602
  }
3603
- if (t instanceof vt) {
3603
+ if (t instanceof _t) {
3604
3604
  if (t.drawSelectionImageSource && this.isInsideElement(
3605
3605
  r,
3606
3606
  o,
@@ -3697,7 +3697,7 @@ class Le {
3697
3697
  this.resizeObserver.unobserve(this.ctx.stageElement), this.mutationObserver.disconnect();
3698
3698
  }
3699
3699
  }
3700
- class Me {
3700
+ class He {
3701
3701
  constructor(t, e) {
3702
3702
  n(this, "eventBus");
3703
3703
  n(this, "eventBrowser");
@@ -3842,10 +3842,10 @@ class Me {
3842
3842
  loadingElement: h,
3843
3843
  contextMenuElement: d
3844
3844
  } = t;
3845
- this.containerElement = i, s.tabIndex = 0, this.stageElement = s, this.canvasElement = o, this.overlayerElement = r, this.editorElement = a, this.emptyElement = l, this.loadingElement = h, this.contextMenuElement = d, this.config = new Nt(e.config || {}), this.eventBus = new Re(), this.eventBrowser = new Ie(this), this.eventTable = new Le(this), this.paint = new _e(this.canvasElement), this.database = new be(this, e), this.history = new ve(this), this.icons = new Oe(this);
3845
+ this.containerElement = i, s.tabIndex = 0, this.stageElement = s, this.canvasElement = o, this.overlayerElement = r, this.editorElement = a, this.emptyElement = l, this.loadingElement = h, this.contextMenuElement = d, this.config = new Bt(e.config || {}), this.eventBus = new Se(), this.eventBrowser = new _e(this), this.eventTable = new Ae(this), this.paint = new Te(this.canvasElement), this.database = new Re(this, e), this.history = new ve(this), this.icons = new Me(this);
3846
3846
  }
3847
3847
  setConfig(t) {
3848
- this.config = new Nt(t);
3848
+ this.config = new Bt(t);
3849
3849
  }
3850
3850
  setItemValueByEditor(t, e, i, s = !0, o = !0, r = !0) {
3851
3851
  if (this.config.ENABLE_MERGE_CELL_LINK) {
@@ -3976,7 +3976,7 @@ class Me {
3976
3976
  this.eventTable.destroy(), this.eventBrowser.destroy(), this.eventBus.destroy();
3977
3977
  }
3978
3978
  }
3979
- class Xt {
3979
+ class Kt {
3980
3980
  constructor(t, e) {
3981
3981
  n(this, "ctx");
3982
3982
  n(this, "type");
@@ -4103,7 +4103,7 @@ class Xt {
4103
4103
  }), this.ctx.scrollerFocus = this.isFocus;
4104
4104
  }
4105
4105
  }
4106
- class Ae {
4106
+ class De {
4107
4107
  // 垂直滚动定时器
4108
4108
  constructor(t) {
4109
4109
  n(this, "ctx");
@@ -4116,7 +4116,7 @@ class Ae {
4116
4116
  n(this, "timerX", 0);
4117
4117
  // 水平滚动定时器
4118
4118
  n(this, "timerY", 0);
4119
- this.ctx = t, this.verticalScrollbar = new Xt(t, "vertical"), this.horizontalScrollbar = new Xt(t, "horizontal"), this.ctx.on("wheel", (e) => this.onWheel(e)), this.ctx.on("mousedown", (e) => this.onMouseDown(e)), this.ctx.on("mousemove", (e) => this.onMouseMove(e)), this.ctx.on("mouseup", () => this.onMouseUp()), this.ctx.on("touchmove", (e) => this.onTouchmove(e)), this.ctx.on("touchstart", (e) => {
4119
+ this.ctx = t, this.verticalScrollbar = new Kt(t, "vertical"), this.horizontalScrollbar = new Kt(t, "horizontal"), this.ctx.on("wheel", (e) => this.onWheel(e)), this.ctx.on("mousedown", (e) => this.onMouseDown(e)), this.ctx.on("mousemove", (e) => this.onMouseMove(e)), this.ctx.on("mouseup", () => this.onMouseUp()), this.ctx.on("touchmove", (e) => this.onTouchmove(e)), this.ctx.on("touchstart", (e) => {
4120
4120
  this.onTouchstart(e);
4121
4121
  }), this.ctx.on("setScroll", (e, i) => {
4122
4122
  this.setScroll(e, i);
@@ -4218,7 +4218,7 @@ class Ae {
4218
4218
  t && (this.adjustPositionX = "", this.timerX && (clearInterval(this.timerX), this.timerX = 0)), e && (this.adjustPositionY = "", this.timerY && (clearInterval(this.timerY), this.timerY = 0));
4219
4219
  }
4220
4220
  }
4221
- class He {
4221
+ class Ne {
4222
4222
  constructor(t, e) {
4223
4223
  n(this, "root");
4224
4224
  n(this, "key");
@@ -4258,7 +4258,7 @@ class He {
4258
4258
  return null;
4259
4259
  }
4260
4260
  }
4261
- class De {
4261
+ class ke {
4262
4262
  constructor(t) {
4263
4263
  n(this, "ctx");
4264
4264
  // 上下文
@@ -4304,7 +4304,7 @@ class De {
4304
4304
  n(this, "renderFixedCellHeaders", []);
4305
4305
  this.ctx = t, this.ctx.on(
4306
4306
  "resetHeader",
4307
- bt(() => {
4307
+ vt(() => {
4308
4308
  this.init(), this.ctx.clearSelector(), this.ctx.emit("draw");
4309
4309
  }, 100)
4310
4310
  ), this.init(), this.initResizeColumn(), this.initDragColumn();
@@ -4317,13 +4317,13 @@ class De {
4317
4317
  const f = this.ctx.database.getColumns();
4318
4318
  this.columns = f;
4319
4319
  }
4320
- this.allCellHeaders = [], this.leafCellHeaders = [], this.fixedLeftCellHeaders = [], this.fixedRightCellHeaders = [], this.centerCellHeaders = [], this.visibleColumns = Gt(this.columns);
4321
- const s = ot(this.visibleColumns), o = J(this.visibleColumns);
4320
+ this.allCellHeaders = [], this.leafCellHeaders = [], this.fixedLeftCellHeaders = [], this.fixedRightCellHeaders = [], this.centerCellHeaders = [], this.visibleColumns = qt(this.columns);
4321
+ const s = rt(this.visibleColumns), o = Q(this.visibleColumns);
4322
4322
  this.height = e * s, this.visibleHeight = this.height, this.width = o.reduce((f, u) => {
4323
4323
  const x = u.width || 100, { maxWidth: g, minWidth: m } = u;
4324
4324
  return g && x > g ? f + g : m && x < m ? f + m : f + x;
4325
4325
  }, 0), this.columnIndex = 0, this.resizeNum = 0;
4326
- const r = xe(rt(this.visibleColumns, s));
4326
+ const r = we(nt(this.visibleColumns, s));
4327
4327
  this.render(r, 0), this.ctx.database.updateColIndexKeyMap(this.leafCellHeaders);
4328
4328
  const a = this.ctx.containerElement.getBoundingClientRect();
4329
4329
  this.resizeNum > 0 ? this.ctx.stageWidth = Math.floor(a.width) : this.ctx.stageWidth = Math.min(
@@ -4388,7 +4388,7 @@ class De {
4388
4388
  if (this.dragingCell && this.dragTarget) {
4389
4389
  const t = (h, d = {}) => (h.forEach((f, u) => {
4390
4390
  f.children && t(f.children, d), d[f.key] = u;
4391
- }), d), e = this.ctx.database.getColumns(), i = rt(e, ot(e)), s = new He(i, {
4391
+ }), d), e = this.ctx.database.getColumns(), i = nt(e, rt(e)), s = new Ne(i, {
4392
4392
  key: "key",
4393
4393
  // 节点唯一标识字段(对应我们之前的field)
4394
4394
  childrenKey: "children"
@@ -4482,7 +4482,7 @@ class De {
4482
4482
  columns: t,
4483
4483
  customHeader: e
4484
4484
  } : {
4485
- columns: rt(t, ot(t)),
4485
+ columns: nt(t, rt(t)),
4486
4486
  customHeader: e
4487
4487
  };
4488
4488
  }
@@ -4493,8 +4493,8 @@ class De {
4493
4493
  for (let r = 0; r < i; r++) {
4494
4494
  const a = t[r], l = o * (a.rowspan || 0), h = o * (a.level || 0);
4495
4495
  let { minWidth: d, maxWidth: f } = a, u = a.width || 100;
4496
- d && u < d && (u = d), f && u > f && (u = f), a.children && (u = J(a.children).reduce((m, w) => m + ((w == null ? void 0 : w.width) || 100), 0));
4497
- const x = new mt(this.ctx, this.columnIndex, s, h, u, l, a);
4496
+ d && u < d && (u = d), f && u > f && (u = f), a.children && (u = Q(a.children).reduce((m, w) => m + ((w == null ? void 0 : w.width) || 100), 0));
4497
+ const x = new yt(this.ctx, this.columnIndex, s, h, u, l, a);
4498
4498
  this.ctx.database.setHeader(a.key, x), this.allCellHeaders.push(x), a.children || (this.leafCellHeaders.push(x), x.column.widthFillDisable || this.resizeNum++), a.fixed === "left" ? this.fixedLeftCellHeaders.push(x) : a.fixed === "right" ? this.fixedRightCellHeaders.push(x) : this.centerCellHeaders.push(x), !a.children && this.columnIndex++, a.children && this.render(a.children, s), s += u;
4499
4499
  }
4500
4500
  }
@@ -4613,7 +4613,7 @@ class De {
4613
4613
  }), this.drawBottomLine(), this.drawTipLine(), this.drawDragTip();
4614
4614
  }
4615
4615
  }
4616
- class Jt {
4616
+ class ee {
4617
4617
  constructor(t, e, i = 0, s = 0, o = 0, r = 0, a, l = "body") {
4618
4618
  n(this, "ctx");
4619
4619
  n(this, "x", 0);
@@ -4634,7 +4634,7 @@ class Jt {
4634
4634
  update() {
4635
4635
  const { header: t } = this.ctx, e = [], i = [], s = [], o = [];
4636
4636
  t.renderLeafCellHeaders.forEach((r) => {
4637
- const a = new vt(
4637
+ const a = new _t(
4638
4638
  this.ctx,
4639
4639
  this.rowIndex,
4640
4640
  r.colIndex,
@@ -4677,7 +4677,7 @@ class Jt {
4677
4677
  });
4678
4678
  }
4679
4679
  }
4680
- class Ne {
4680
+ class Be {
4681
4681
  constructor(t) {
4682
4682
  n(this, "resizeTarget", null);
4683
4683
  //调整行大小的目标
@@ -4731,16 +4731,16 @@ class Ne {
4731
4731
  let w = this.height + e.height + r;
4732
4732
  w += m;
4733
4733
  let E = w;
4734
- const p = window.innerHeight, { top: C } = this.containerRect || this.ctx.containerElement.getBoundingClientRect();
4735
- if (p > C && d && !a) {
4736
- const T = p - C - f;
4734
+ const p = window.innerHeight, { top: y } = this.containerRect || this.ctx.containerElement.getBoundingClientRect();
4735
+ if (p > y && d && !a) {
4736
+ const T = p - y - f;
4737
4737
  T > e.height + r ? E = T : w > h && (E = h);
4738
4738
  } else this.data.length && a ? E = a : this.data.length && h && w > h && (E = h);
4739
4739
  E > 0 && (this.ctx.stageHeight = Math.floor(E), this.ctx.stageElement.style.height = `${this.ctx.stageHeight}px`);
4740
4740
  let b = this.ctx.stageHeight - e.height - r;
4741
4741
  o ? this.visibleHeight = b - m : this.visibleHeight = b, this.data.length || (this.height = this.visibleHeight), this.ctx.body.x = this.x, this.ctx.body.y = this.y, this.ctx.body.width = this.width, this.ctx.body.height = this.height, this.ctx.body.visibleWidth = this.visibleWidth, this.ctx.body.visibleHeight = this.visibleHeight, this.ctx.body.data = x;
4742
- const y = window.devicePixelRatio || 1, I = this.ctx.stageWidth * y, _ = this.ctx.stageHeight * y;
4743
- t.width = Math.round(I), t.height = Math.round(_);
4742
+ const C = window.devicePixelRatio || 1, R = this.ctx.stageWidth * C, _ = this.ctx.stageHeight * C;
4743
+ t.width = Math.round(R), t.height = Math.round(_);
4744
4744
  const L = this.data.length ? "not-empty" : "empty";
4745
4745
  this.ctx.emit("emptyChange", {
4746
4746
  isEmpty: L,
@@ -4751,8 +4751,8 @@ class Ne {
4751
4751
  width: this.width,
4752
4752
  height: this.data.length ? 0 : l + m
4753
4753
  });
4754
- const R = Math.round(t.width / y * 1e4) / 1e4, v = Math.round(t.height / y * 1e4) / 1e4;
4755
- this.ctx.canvasElement.setAttribute("style", `height:${v}px;width:${R}px;`), this.ctx.paint.scale(y);
4754
+ const v = Math.round(t.width / C * 1e4) / 1e4, I = Math.round(t.height / C * 1e4) / 1e4;
4755
+ this.ctx.canvasElement.setAttribute("style", `height:${I}px;width:${v}px;`), this.ctx.paint.scale(C);
4756
4756
  }
4757
4757
  // 调整行的高度
4758
4758
  initResizeRow() {
@@ -4876,7 +4876,7 @@ class Ne {
4876
4876
  this.headIndex = Math.max(0, l), this.tailIndex = Math.min(this.ctx.maxRowIndex, h + 1), this.visibleRows = r.slice(this.headIndex, this.tailIndex + 1), this.ctx.body.headIndex = this.headIndex, this.ctx.body.tailIndex = this.tailIndex, this.ctx.body.visibleRows = this.visibleRows;
4877
4877
  const d = [];
4878
4878
  for (let f = 0; f < this.visibleRows.length; f++) {
4879
- const u = this.headIndex + f, x = this.visibleRows[f], { height: g, top: m } = this.ctx.database.getPositionForRowIndex(u), w = new Jt(this.ctx, u, 0, m + this.y, t.width, g, x);
4879
+ const u = this.headIndex + f, x = this.visibleRows[f], { height: g, top: m } = this.ctx.database.getPositionForRowIndex(u), w = new ee(this.ctx, u, 0, m + this.y, t.width, g, x);
4880
4880
  d.push(w);
4881
4881
  }
4882
4882
  this.renderRows = d, this.ctx.body.renderRows = d;
@@ -4906,7 +4906,7 @@ class Ne {
4906
4906
  }), this.drawTipLine();
4907
4907
  }
4908
4908
  }
4909
- class ke {
4909
+ class Xe {
4910
4910
  constructor(t) {
4911
4911
  n(this, "ctx");
4912
4912
  n(this, "renderRows", []);
@@ -4961,7 +4961,7 @@ class ke {
4961
4961
  let e = this.y;
4962
4962
  const i = [];
4963
4963
  this.data.forEach((s, o) => {
4964
- const r = new Jt(this.ctx, o, 0, e, this.width, t, s, "footer");
4964
+ const r = new ee(this.ctx, o, 0, e, this.width, t, s, "footer");
4965
4965
  e += t, i.push(r);
4966
4966
  }), this.renderRows = i, this.ctx.footer.renderRows = this.renderRows;
4967
4967
  }
@@ -4987,7 +4987,7 @@ class ke {
4987
4987
  }), this.drawTopLine();
4988
4988
  }
4989
4989
  }
4990
- class Be {
4990
+ class Ye {
4991
4991
  constructor(t) {
4992
4992
  n(this, "isCut", !1);
4993
4993
  n(this, "isMultipleRow", !1);
@@ -4999,7 +4999,7 @@ class Be {
4999
4999
  this.moveFocus(t);
5000
5000
  }), this.ctx.on(
5001
5001
  "mousemove",
5002
- bt((t) => {
5002
+ vt((t) => {
5003
5003
  var e;
5004
5004
  (e = this.ctx.focusCellHeader) != null && e.fixed || !this.ctx.dragHeaderIng && this.ctx.selectorMove && this.ctx.startAdjustPosition(t);
5005
5005
  }, 100)
@@ -5108,17 +5108,17 @@ class Be {
5108
5108
  SELECTOR_AREA_MAX_X_OFFSET: f,
5109
5109
  SELECTOR_AREA_MAX_Y_OFFSET: u
5110
5110
  } = this.ctx.config, x = a, g = l || this.ctx.maxColIndex - f, m = h, w = d || this.ctx.maxRowIndex - u;
5111
- let [E, p] = o, [C, b] = r;
5112
- if (E < x || p > g || C < m || b > w)
5111
+ let [E, p] = o, [y, b] = r;
5112
+ if (E < x || p > g || y < m || b > w)
5113
5113
  return;
5114
5114
  if (this.ctx.config.ENABLE_MERGE_CELL_LINK) {
5115
- const I = this.adjustMergeCells(o, r);
5116
- C = I.yArr[0], b = I.yArr[1], E = I.xArr[0], p = I.xArr[1], this.ctx.onlyMergeCell = I.onlyMergeCell;
5115
+ const R = this.adjustMergeCells(o, r);
5116
+ y = R.yArr[0], b = R.yArr[1], E = R.xArr[0], p = R.xArr[1], this.ctx.onlyMergeCell = R.onlyMergeCell;
5117
5117
  }
5118
- E === p && C === b ? this.ctx.selectOnlyOne = !0 : this.ctx.selectOnlyOne = !1, o = [Math.max(x, E), Math.min(g, p)], r = [Math.max(m, C), Math.min(w, b)];
5119
- const { BEFORE_SET_SELECTOR_METHOD: y } = this.ctx.config;
5120
- if (typeof y == "function") {
5121
- const _ = y({
5118
+ E === p && y === b ? this.ctx.selectOnlyOne = !0 : this.ctx.selectOnlyOne = !1, o = [Math.max(x, E), Math.min(g, p)], r = [Math.max(m, y), Math.min(w, b)];
5119
+ const { BEFORE_SET_SELECTOR_METHOD: C } = this.ctx.config;
5120
+ if (typeof C == "function") {
5121
+ const _ = C({
5122
5122
  focusCell: this.ctx.focusCell,
5123
5123
  xArr: o,
5124
5124
  yArr: r
@@ -5127,7 +5127,7 @@ class Be {
5127
5127
  return;
5128
5128
  o = _.xArr, r = _.yArr;
5129
5129
  }
5130
- this.ctx.selector.xArr = o, this.ctx.selector.yArr = r, b === this.ctx.maxRowIndex && C === 0 ? this.ctx.selectColsIng = !0 : this.ctx.selectColsIng = !1, p === this.ctx.maxColIndex && E === 0 ? this.ctx.selectRowsIng = !0 : this.ctx.selectRowsIng = !1, this.ctx.emit("setSelector", this.ctx.selector), this.ctx.emit("drawView");
5130
+ this.ctx.selector.xArr = o, this.ctx.selector.yArr = r, b === this.ctx.maxRowIndex && y === 0 ? this.ctx.selectColsIng = !0 : this.ctx.selectColsIng = !1, p === this.ctx.maxColIndex && E === 0 ? this.ctx.selectRowsIng = !0 : this.ctx.selectRowsIng = !1, this.ctx.emit("setSelector", this.ctx.selector), this.ctx.emit("drawView");
5131
5131
  }
5132
5132
  }
5133
5133
  adjustMergeCells(t, e) {
@@ -5142,13 +5142,13 @@ class Be {
5142
5142
  let a = [], l = [];
5143
5143
  for (let m = 0; m <= e[1] - e[0]; m++)
5144
5144
  for (let w = 0; w <= t[1] - t[0]; w++) {
5145
- const E = m + e[0], p = w + t[0], C = this.ctx.database.getVirtualBodyCell(E, p);
5146
- C && ((E === i || E === s) && a.push(C), (p === o || p === r) && l.push(C));
5145
+ const E = m + e[0], p = w + t[0], y = this.ctx.database.getVirtualBodyCell(E, p);
5146
+ y && ((E === i || E === s) && a.push(y), (p === o || p === r) && l.push(y));
5147
5147
  }
5148
5148
  const h = a.reduce(
5149
5149
  (m, w) => {
5150
- const { yArr: E } = w.getSpanInfo(), [p, C] = E;
5151
- return m.minY = Math.min(m.minY, p), m.maxY = Math.max(m.maxY, C), m;
5150
+ const { yArr: E } = w.getSpanInfo(), [p, y] = E;
5151
+ return m.minY = Math.min(m.minY, p), m.maxY = Math.max(m.maxY, y), m;
5152
5152
  },
5153
5153
  {
5154
5154
  minY: i,
@@ -5156,8 +5156,8 @@ class Be {
5156
5156
  }
5157
5157
  ), d = l.reduce(
5158
5158
  (m, w) => {
5159
- const { xArr: E } = w.getSpanInfo(), [p, C] = E;
5160
- return m.minX = Math.min(m.minX, p), m.maxX = Math.max(m.maxX, C), m;
5159
+ const { xArr: E } = w.getSpanInfo(), [p, y] = E;
5160
+ return m.minX = Math.min(m.minX, p), m.maxX = Math.max(m.maxX, y), m;
5161
5161
  },
5162
5162
  {
5163
5163
  minX: o,
@@ -5294,7 +5294,7 @@ class Be {
5294
5294
  return;
5295
5295
  t = a.data;
5296
5296
  }
5297
- const o = me(t);
5297
+ const o = pe(t);
5298
5298
  navigator.clipboard ? navigator.clipboard.writeText(o).then(() => {
5299
5299
  this.ctx.selector.xArrCopy = this.ctx.selector.xArr.slice(), this.ctx.selector.yArrCopy = this.ctx.selector.yArr.slice(), this.ctx.emit("copyChange", {
5300
5300
  xArr: this.ctx.selector.xArrCopy,
@@ -5339,7 +5339,7 @@ class Be {
5339
5339
  if (this.ctx.selector.enable && t) {
5340
5340
  const e = this.ctx.selector.yArr[0], i = this.ctx.selector.xArr[0], s = /* @__PURE__ */ new Set();
5341
5341
  navigator.clipboard.readText().then(async (o) => {
5342
- let r = we(o);
5342
+ let r = Ee(o);
5343
5343
  const a = [i, i + r[0].length - 1], l = [e, e + r.length - 1], [h, d] = l, [f, u] = a, x = d - this.ctx.maxRowIndex, g = u - this.ctx.maxColIndex;
5344
5344
  (x > 0 || g > 0) && this.ctx.emit("onPastedDataOverflow", {
5345
5345
  maxY: d,
@@ -5352,25 +5352,25 @@ class Be {
5352
5352
  });
5353
5353
  const m = r.length === 1 && r[0].length === 1;
5354
5354
  if (this.ctx.config.ENABLE_MERGE_CELL_LINK && this.ctx.database.hasMergeCell(a, l) && !m) {
5355
- const C = {
5355
+ const y = {
5356
5356
  code: "ERR_MERGED_CELLS_PASTE",
5357
5357
  message: "Merged cells cannot span paste data"
5358
5358
  };
5359
- this.ctx.hasEvent("error") ? this.ctx.emit("error", C) : alert(C.message);
5359
+ this.ctx.hasEvent("error") ? this.ctx.emit("error", y) : alert(y.message);
5360
5360
  return;
5361
5361
  }
5362
5362
  let w = [];
5363
- for (let C = 0; C <= r.length - 1; C++) {
5364
- const b = r[C].length;
5365
- for (let y = 0; y <= b - 1; y++) {
5366
- const I = C + e, _ = y + i, L = r[C][y], R = this.ctx.database.getItemValueForRowIndexAndColIndex(
5367
- I,
5363
+ for (let y = 0; y <= r.length - 1; y++) {
5364
+ const b = r[y].length;
5365
+ for (let C = 0; C <= b - 1; C++) {
5366
+ const R = y + e, _ = C + i, L = r[y][C], v = this.ctx.database.getItemValueForRowIndexAndColIndex(
5367
+ R,
5368
5368
  _
5369
5369
  );
5370
- if (R) {
5371
- const { rowKey: v, key: S } = R;
5372
- this.ctx.database.getReadonly(v, S) || (s.add(v), w.push({
5373
- rowKey: v,
5370
+ if (v) {
5371
+ const { rowKey: I, key: S } = v;
5372
+ this.ctx.database.getReadonly(I, S) || (s.add(I), w.push({
5373
+ rowKey: I,
5374
5374
  key: S,
5375
5375
  value: L,
5376
5376
  row: {}
@@ -5380,34 +5380,34 @@ class Be {
5380
5380
  }
5381
5381
  }
5382
5382
  if (this.isCut) {
5383
- const C = this.clearSelectedData(
5383
+ const y = this.clearSelectedData(
5384
5384
  this.ctx.selector.xArrCopy,
5385
5385
  this.ctx.selector.yArrCopy,
5386
5386
  !0
5387
5387
  // 忽略设置,只返回数据,用于cut,实现历史回退需要返回两次问题
5388
- ), b = w.map((y) => `${y.rowKey}-${y.key}`);
5389
- C.forEach((y) => {
5390
- b.includes(`${y.rowKey}-${y.key}`) || w.unshift(y);
5388
+ ), b = w.map((C) => `${C.rowKey}-${C.key}`);
5389
+ y.forEach((C) => {
5390
+ b.includes(`${C.rowKey}-${C.key}`) || w.unshift(C);
5391
5391
  }), this.isCut = !1;
5392
5392
  }
5393
5393
  if (!w.length)
5394
5394
  return;
5395
5395
  const { BEFORE_PASTE_DATA_METHOD: E } = this.ctx.config;
5396
5396
  if (typeof E == "function") {
5397
- const C = E, b = w.map((y) => ({
5398
- rowKey: y.rowKey,
5399
- key: y.key,
5400
- value: y.value,
5401
- oldValue: this.ctx.database.getItemValue(y.rowKey, y.key),
5402
- row: this.ctx.database.getRowDataItemForRowKey(y.rowKey)
5397
+ const y = E, b = w.map((C) => ({
5398
+ rowKey: C.rowKey,
5399
+ key: C.key,
5400
+ value: C.value,
5401
+ oldValue: this.ctx.database.getItemValue(C.rowKey, C.key),
5402
+ row: this.ctx.database.getRowDataItemForRowKey(C.rowKey)
5403
5403
  }));
5404
- if (w = await C(b, a, l, r), w && !w.length)
5404
+ if (w = await y(b, a, l, r), w && !w.length)
5405
5405
  return;
5406
5406
  }
5407
5407
  this.clearCopyLine(), this.ctx.batchSetItemValueByEditor(w, !0);
5408
5408
  let p = [];
5409
- s.forEach((C) => {
5410
- p.push(this.ctx.database.getRowDataItemForRowKey(C));
5409
+ s.forEach((y) => {
5410
+ p.push(this.ctx.database.getRowDataItemForRowKey(y));
5411
5411
  }), this.ctx.emit("pasteChange", w, p), this.ctx.emit("draw");
5412
5412
  }).catch((o) => {
5413
5413
  console.error("Failed to get the clipboard content:", o);
@@ -5474,19 +5474,19 @@ class Be {
5474
5474
  if (!i)
5475
5475
  return;
5476
5476
  g && this.ctx.onlyMergeCell && i.updateSpanInfo();
5477
- const { drawX: m, drawY: w, width: E, height: p, fixed: C } = i, b = o - m + 1, y = i.drawX + E - (e - s) + 1;
5478
- let I = r.height - w, _ = p;
5477
+ const { drawX: m, drawY: w, width: E, height: p, fixed: y } = i, b = o - m + 1, C = i.drawX + E - (e - s) + 1;
5478
+ let R = r.height - w, _ = p;
5479
5479
  _ > l.visibleHeight && (_ = l.visibleHeight);
5480
5480
  let L = 0;
5481
- u && (x === "top" ? I = r.height + a.height - w : L = a.visibleHeight);
5482
- const R = w + _ - (t - L - f);
5483
- let v = h, S = d;
5484
- y > 0 && !C ? v = Math.floor(h + y) : b > 0 && !C && (v = Math.floor(h - b)), I > 0 ? S = Math.floor(d - I) : R > 0 && (S = Math.floor(d + R)), (Math.abs(h - v) > 2.5 || Math.abs(d - S) > 2.5) && this.ctx.setScroll(v, S);
5481
+ u && (x === "top" ? R = r.height + a.height - w : L = a.visibleHeight);
5482
+ const v = w + _ - (t - L - f);
5483
+ let I = h, S = d;
5484
+ C > 0 && !y ? I = Math.floor(h + C) : b > 0 && !y && (I = Math.floor(h - b)), R > 0 ? S = Math.floor(d - R) : v > 0 && (S = Math.floor(d + v)), (Math.abs(h - I) > 2.5 || Math.abs(d - S) > 2.5) && this.ctx.setScroll(I, S);
5485
5485
  }
5486
5486
  destroy() {
5487
5487
  }
5488
5488
  }
5489
- class Xe {
5489
+ class Ke {
5490
5490
  constructor(t) {
5491
5491
  n(this, "ctx");
5492
5492
  n(this, "maxColRowCell");
@@ -5539,21 +5539,21 @@ class Xe {
5539
5539
  SELECTOR_AREA_MAX_Y: x,
5540
5540
  SELECTOR_AREA_MAX_X_OFFSET: g,
5541
5541
  SELECTOR_AREA_MAX_Y_OFFSET: m
5542
- } = this.ctx.config, w = d, E = f || this.ctx.maxColIndex - g, p = u, C = x || this.ctx.maxRowIndex - m;
5543
- let [b, y] = r, [I, _] = a;
5544
- if (b < w || I < p)
5542
+ } = this.ctx.config, w = d, E = f || this.ctx.maxColIndex - g, p = u, y = x || this.ctx.maxRowIndex - m;
5543
+ let [b, C] = r, [R, _] = a;
5544
+ if (b < w || R < p)
5545
5545
  return;
5546
- r = [Math.max(w, b), Math.min(E, y)], a = [Math.max(p, I), Math.min(C, _)];
5546
+ r = [Math.max(w, b), Math.min(E, C)], a = [Math.max(p, R), Math.min(y, _)];
5547
5547
  const { BEFORE_SET_AUTOFILL_METHOD: L } = this.ctx.config;
5548
5548
  if (typeof L == "function") {
5549
- const v = L({
5549
+ const I = L({
5550
5550
  focusCell: this.ctx.focusCell,
5551
5551
  xArr: r,
5552
5552
  yArr: a
5553
5553
  });
5554
- if (!v)
5554
+ if (!I)
5555
5555
  return;
5556
- r = v.xArr, a = v.yArr;
5556
+ r = I.xArr, a = I.yArr;
5557
5557
  }
5558
5558
  this.ctx.autofill.xArr = r, this.ctx.autofill.yArr = a, this.ctx.emit("setAutofill", this.ctx.autofill), this.ctx.emit("draw");
5559
5559
  }
@@ -5580,12 +5580,12 @@ class Xe {
5580
5580
  let d = [];
5581
5581
  for (let x = 0; x <= l[1] - l[0]; x++)
5582
5582
  for (let g = 0; g <= a[1] - a[0]; g++) {
5583
- const m = g + a[0], w = x + l[0], E = s[x % r][g % o], p = this.ctx.database.getItemValueForRowIndexAndColIndex(w, m), C = `${w}-${m}`;
5584
- if (p && !i.has(C)) {
5585
- const { rowKey: b, key: y } = p;
5586
- this.ctx.database.getReadonly(b, y) || (t.add(b), d.push({
5583
+ const m = g + a[0], w = x + l[0], E = s[x % r][g % o], p = this.ctx.database.getItemValueForRowIndexAndColIndex(w, m), y = `${w}-${m}`;
5584
+ if (p && !i.has(y)) {
5585
+ const { rowKey: b, key: C } = p;
5586
+ this.ctx.database.getReadonly(b, C) || (t.add(b), d.push({
5587
5587
  rowKey: b,
5588
- key: y,
5588
+ key: C,
5589
5589
  value: E,
5590
5590
  row: {}
5591
5591
  }));
@@ -5624,62 +5624,59 @@ class Xe {
5624
5624
  destroy() {
5625
5625
  }
5626
5626
  }
5627
- const j = Math.min, z = Math.max, at = Math.round, st = Math.floor, Y = (c) => ({
5627
+ const q = Math.min, $ = Math.max, lt = Math.round, ot = Math.floor, Y = (c) => ({
5628
5628
  x: c,
5629
5629
  y: c
5630
- }), Ye = {
5630
+ }), Fe = {
5631
5631
  left: "right",
5632
5632
  right: "left",
5633
5633
  bottom: "top",
5634
5634
  top: "bottom"
5635
- }, Ke = {
5636
- start: "end",
5637
- end: "start"
5638
5635
  };
5639
- function Et(c, t, e) {
5640
- return z(c, j(t, e));
5636
+ function Ct(c, t, e) {
5637
+ return $(c, q(t, e));
5641
5638
  }
5642
- function tt(c, t) {
5639
+ function et(c, t) {
5643
5640
  return typeof c == "function" ? c(t) : c;
5644
5641
  }
5645
- function $(c) {
5642
+ function G(c) {
5646
5643
  return c.split("-")[0];
5647
5644
  }
5648
- function et(c) {
5645
+ function it(c) {
5649
5646
  return c.split("-")[1];
5650
5647
  }
5651
- function Qt(c) {
5648
+ function ie(c) {
5652
5649
  return c === "x" ? "y" : "x";
5653
5650
  }
5654
- function Rt(c) {
5651
+ function Tt(c) {
5655
5652
  return c === "y" ? "height" : "width";
5656
5653
  }
5657
- const Fe = /* @__PURE__ */ new Set(["top", "bottom"]);
5658
5654
  function V(c) {
5659
- return Fe.has($(c)) ? "y" : "x";
5655
+ const t = c[0];
5656
+ return t === "t" || t === "b" ? "y" : "x";
5660
5657
  }
5661
- function _t(c) {
5662
- return Qt(V(c));
5658
+ function Ot(c) {
5659
+ return ie(V(c));
5663
5660
  }
5664
5661
  function We(c, t, e) {
5665
5662
  e === void 0 && (e = !1);
5666
- const i = et(c), s = _t(c), o = Rt(s);
5663
+ const i = it(c), s = Ot(c), o = Tt(s);
5667
5664
  let r = s === "x" ? i === (e ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
5668
- return t.reference[o] > t.floating[o] && (r = lt(r)), [r, lt(r)];
5665
+ return t.reference[o] > t.floating[o] && (r = ht(r)), [r, ht(r)];
5669
5666
  }
5670
5667
  function Ve(c) {
5671
- const t = lt(c);
5672
- return [pt(c), t, pt(t)];
5668
+ const t = ht(c);
5669
+ return [bt(c), t, bt(t)];
5673
5670
  }
5674
- function pt(c) {
5675
- return c.replace(/start|end/g, (t) => Ke[t]);
5671
+ function bt(c) {
5672
+ return c.includes("start") ? c.replace("start", "end") : c.replace("end", "start");
5676
5673
  }
5677
- const Yt = ["left", "right"], Kt = ["right", "left"], Pe = ["top", "bottom"], ze = ["bottom", "top"];
5674
+ const Ft = ["left", "right"], Wt = ["right", "left"], Pe = ["top", "bottom"], ze = ["bottom", "top"];
5678
5675
  function $e(c, t, e) {
5679
5676
  switch (c) {
5680
5677
  case "top":
5681
5678
  case "bottom":
5682
- return e ? t ? Kt : Yt : t ? Yt : Kt;
5679
+ return e ? t ? Wt : Ft : t ? Ft : Wt;
5683
5680
  case "left":
5684
5681
  case "right":
5685
5682
  return t ? Pe : ze;
@@ -5688,12 +5685,13 @@ function $e(c, t, e) {
5688
5685
  }
5689
5686
  }
5690
5687
  function Ge(c, t, e, i) {
5691
- const s = et(c);
5692
- let o = $e($(c), e === "start", i);
5693
- return s && (o = o.map((r) => r + "-" + s), t && (o = o.concat(o.map(pt)))), o;
5688
+ const s = it(c);
5689
+ let o = $e(G(c), e === "start", i);
5690
+ return s && (o = o.map((r) => r + "-" + s), t && (o = o.concat(o.map(bt)))), o;
5694
5691
  }
5695
- function lt(c) {
5696
- return c.replace(/left|right|bottom|top/g, (t) => Ye[t]);
5692
+ function ht(c) {
5693
+ const t = G(c);
5694
+ return Fe[t] + c.slice(t.length);
5697
5695
  }
5698
5696
  function Ue(c) {
5699
5697
  return {
@@ -5704,7 +5702,7 @@ function Ue(c) {
5704
5702
  ...c
5705
5703
  };
5706
5704
  }
5707
- function te(c) {
5705
+ function se(c) {
5708
5706
  return typeof c != "number" ? Ue(c) : {
5709
5707
  top: c,
5710
5708
  right: c,
@@ -5712,7 +5710,7 @@ function te(c) {
5712
5710
  left: c
5713
5711
  };
5714
5712
  }
5715
- function ht(c) {
5713
+ function ct(c) {
5716
5714
  const {
5717
5715
  x: t,
5718
5716
  y: e,
@@ -5730,12 +5728,12 @@ function ht(c) {
5730
5728
  y: e
5731
5729
  };
5732
5730
  }
5733
- function Ft(c, t, e) {
5731
+ function Vt(c, t, e) {
5734
5732
  let {
5735
5733
  reference: i,
5736
5734
  floating: s
5737
5735
  } = c;
5738
- const o = V(t), r = _t(t), a = Rt(r), l = $(t), h = o === "y", d = i.x + i.width / 2 - s.width / 2, f = i.y + i.height / 2 - s.height / 2, u = i[a] / 2 - s[a] / 2;
5736
+ const o = V(t), r = Ot(t), a = Tt(r), l = G(t), h = o === "y", d = i.x + i.width / 2 - s.width / 2, f = i.y + i.height / 2 - s.height / 2, u = i[a] / 2 - s[a] / 2;
5739
5737
  let x;
5740
5738
  switch (l) {
5741
5739
  case "top":
@@ -5768,7 +5766,7 @@ function Ft(c, t, e) {
5768
5766
  y: i.y
5769
5767
  };
5770
5768
  }
5771
- switch (et(t)) {
5769
+ switch (it(t)) {
5772
5770
  case "start":
5773
5771
  x[r] -= u * (e && h ? -1 : 1);
5774
5772
  break;
@@ -5778,68 +5776,7 @@ function Ft(c, t, e) {
5778
5776
  }
5779
5777
  return x;
5780
5778
  }
5781
- const je = async (c, t, e) => {
5782
- const {
5783
- placement: i = "bottom",
5784
- strategy: s = "absolute",
5785
- middleware: o = [],
5786
- platform: r
5787
- } = e, a = o.filter(Boolean), l = await (r.isRTL == null ? void 0 : r.isRTL(t));
5788
- let h = await r.getElementRects({
5789
- reference: c,
5790
- floating: t,
5791
- strategy: s
5792
- }), {
5793
- x: d,
5794
- y: f
5795
- } = Ft(h, i, l), u = i, x = {}, g = 0;
5796
- for (let m = 0; m < a.length; m++) {
5797
- const {
5798
- name: w,
5799
- fn: E
5800
- } = a[m], {
5801
- x: p,
5802
- y: C,
5803
- data: b,
5804
- reset: y
5805
- } = await E({
5806
- x: d,
5807
- y: f,
5808
- initialPlacement: i,
5809
- placement: u,
5810
- strategy: s,
5811
- middlewareData: x,
5812
- rects: h,
5813
- platform: r,
5814
- elements: {
5815
- reference: c,
5816
- floating: t
5817
- }
5818
- });
5819
- d = p ?? d, f = C ?? f, x = {
5820
- ...x,
5821
- [w]: {
5822
- ...x[w],
5823
- ...b
5824
- }
5825
- }, y && g <= 50 && (g++, typeof y == "object" && (y.placement && (u = y.placement), y.rects && (h = y.rects === !0 ? await r.getElementRects({
5826
- reference: c,
5827
- floating: t,
5828
- strategy: s
5829
- }) : y.rects), {
5830
- x: d,
5831
- y: f
5832
- } = Ft(h, u, l)), m = -1);
5833
- }
5834
- return {
5835
- x: d,
5836
- y: f,
5837
- placement: u,
5838
- strategy: s,
5839
- middlewareData: x
5840
- };
5841
- };
5842
- async function ee(c, t) {
5779
+ async function je(c, t) {
5843
5780
  var e;
5844
5781
  t === void 0 && (t = {});
5845
5782
  const {
@@ -5855,7 +5792,7 @@ async function ee(c, t) {
5855
5792
  elementContext: f = "floating",
5856
5793
  altBoundary: u = !1,
5857
5794
  padding: x = 0
5858
- } = tt(t, c), g = te(x), w = a[u ? f === "floating" ? "reference" : "floating" : f], E = ht(await o.getClippingRect({
5795
+ } = et(t, c), g = se(x), w = a[u ? f === "floating" ? "reference" : "floating" : f], E = ct(await o.getClippingRect({
5859
5796
  element: (e = await (o.isElement == null ? void 0 : o.isElement(w))) == null || e ? w : w.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
5860
5797
  boundary: h,
5861
5798
  rootBoundary: d,
@@ -5865,26 +5802,90 @@ async function ee(c, t) {
5865
5802
  y: s,
5866
5803
  width: r.floating.width,
5867
5804
  height: r.floating.height
5868
- } : r.reference, C = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)), b = await (o.isElement == null ? void 0 : o.isElement(C)) ? await (o.getScale == null ? void 0 : o.getScale(C)) || {
5805
+ } : r.reference, y = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)), b = await (o.isElement == null ? void 0 : o.isElement(y)) ? await (o.getScale == null ? void 0 : o.getScale(y)) || {
5869
5806
  x: 1,
5870
5807
  y: 1
5871
5808
  } : {
5872
5809
  x: 1,
5873
5810
  y: 1
5874
- }, y = ht(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
5811
+ }, C = ct(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
5875
5812
  elements: a,
5876
5813
  rect: p,
5877
- offsetParent: C,
5814
+ offsetParent: y,
5878
5815
  strategy: l
5879
5816
  }) : p);
5880
5817
  return {
5881
- top: (E.top - y.top + g.top) / b.y,
5882
- bottom: (y.bottom - E.bottom + g.bottom) / b.y,
5883
- left: (E.left - y.left + g.left) / b.x,
5884
- right: (y.right - E.right + g.right) / b.x
5818
+ top: (E.top - C.top + g.top) / b.y,
5819
+ bottom: (C.bottom - E.bottom + g.bottom) / b.y,
5820
+ left: (E.left - C.left + g.left) / b.x,
5821
+ right: (C.right - E.right + g.right) / b.x
5885
5822
  };
5886
5823
  }
5887
- const qe = (c) => ({
5824
+ const qe = 50, Ze = async (c, t, e) => {
5825
+ const {
5826
+ placement: i = "bottom",
5827
+ strategy: s = "absolute",
5828
+ middleware: o = [],
5829
+ platform: r
5830
+ } = e, a = r.detectOverflow ? r : {
5831
+ ...r,
5832
+ detectOverflow: je
5833
+ }, l = await (r.isRTL == null ? void 0 : r.isRTL(t));
5834
+ let h = await r.getElementRects({
5835
+ reference: c,
5836
+ floating: t,
5837
+ strategy: s
5838
+ }), {
5839
+ x: d,
5840
+ y: f
5841
+ } = Vt(h, i, l), u = i, x = 0;
5842
+ const g = {};
5843
+ for (let m = 0; m < o.length; m++) {
5844
+ const w = o[m];
5845
+ if (!w)
5846
+ continue;
5847
+ const {
5848
+ name: E,
5849
+ fn: p
5850
+ } = w, {
5851
+ x: y,
5852
+ y: b,
5853
+ data: C,
5854
+ reset: R
5855
+ } = await p({
5856
+ x: d,
5857
+ y: f,
5858
+ initialPlacement: i,
5859
+ placement: u,
5860
+ strategy: s,
5861
+ middlewareData: g,
5862
+ rects: h,
5863
+ platform: a,
5864
+ elements: {
5865
+ reference: c,
5866
+ floating: t
5867
+ }
5868
+ });
5869
+ d = y ?? d, f = b ?? f, g[E] = {
5870
+ ...g[E],
5871
+ ...C
5872
+ }, R && x < qe && (x++, typeof R == "object" && (R.placement && (u = R.placement), R.rects && (h = R.rects === !0 ? await r.getElementRects({
5873
+ reference: c,
5874
+ floating: t,
5875
+ strategy: s
5876
+ }) : R.rects), {
5877
+ x: d,
5878
+ y: f
5879
+ } = Vt(h, u, l)), m = -1);
5880
+ }
5881
+ return {
5882
+ x: d,
5883
+ y: f,
5884
+ placement: u,
5885
+ strategy: s,
5886
+ middlewareData: g
5887
+ };
5888
+ }, Je = (c) => ({
5888
5889
  name: "arrow",
5889
5890
  options: c,
5890
5891
  async fn(t) {
@@ -5899,16 +5900,16 @@ const qe = (c) => ({
5899
5900
  } = t, {
5900
5901
  element: h,
5901
5902
  padding: d = 0
5902
- } = tt(c, t) || {};
5903
+ } = et(c, t) || {};
5903
5904
  if (h == null)
5904
5905
  return {};
5905
- const f = te(d), u = {
5906
+ const f = se(d), u = {
5906
5907
  x: e,
5907
5908
  y: i
5908
- }, x = _t(s), g = Rt(x), m = await r.getDimensions(h), w = x === "y", E = w ? "top" : "left", p = w ? "bottom" : "right", C = w ? "clientHeight" : "clientWidth", b = o.reference[g] + o.reference[x] - u[x] - o.floating[g], y = u[x] - o.reference[x], I = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(h));
5909
- let _ = I ? I[C] : 0;
5910
- (!_ || !await (r.isElement == null ? void 0 : r.isElement(I))) && (_ = a.floating[C] || o.floating[g]);
5911
- const L = b / 2 - y / 2, R = _ / 2 - m[g] / 2 - 1, v = j(f[E], R), S = j(f[p], R), T = v, M = _ - m[g] - S, O = _ / 2 - m[g] / 2 + L, A = Et(T, O, M), H = !l.arrow && et(s) != null && O !== A && o.reference[g] / 2 - (O < T ? v : S) - m[g] / 2 < 0, D = H ? O < T ? O - T : O - M : 0;
5909
+ }, x = Ot(s), g = Tt(x), m = await r.getDimensions(h), w = x === "y", E = w ? "top" : "left", p = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", b = o.reference[g] + o.reference[x] - u[x] - o.floating[g], C = u[x] - o.reference[x], R = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(h));
5910
+ let _ = R ? R[y] : 0;
5911
+ (!_ || !await (r.isElement == null ? void 0 : r.isElement(R))) && (_ = a.floating[y] || o.floating[g]);
5912
+ const L = b / 2 - C / 2, v = _ / 2 - m[g] / 2 - 1, I = q(f[E], v), S = q(f[p], v), T = I, M = _ - m[g] - S, O = _ / 2 - m[g] / 2 + L, A = Ct(T, O, M), H = !l.arrow && it(s) != null && O !== A && o.reference[g] / 2 - (O < T ? I : S) - m[g] / 2 < 0, D = H ? O < T ? O - T : O - M : 0;
5912
5913
  return {
5913
5914
  [x]: u[x] + D,
5914
5915
  data: {
@@ -5921,7 +5922,7 @@ const qe = (c) => ({
5921
5922
  reset: H
5922
5923
  };
5923
5924
  }
5924
- }), Ze = function(c) {
5925
+ }), Qe = function(c) {
5925
5926
  return c === void 0 && (c = {}), {
5926
5927
  name: "flip",
5927
5928
  options: c,
@@ -5942,49 +5943,49 @@ const qe = (c) => ({
5942
5943
  fallbackAxisSideDirection: g = "none",
5943
5944
  flipAlignment: m = !0,
5944
5945
  ...w
5945
- } = tt(c, t);
5946
+ } = et(c, t);
5946
5947
  if ((e = o.arrow) != null && e.alignmentOffset)
5947
5948
  return {};
5948
- const E = $(s), p = V(a), C = $(a) === a, b = await (l.isRTL == null ? void 0 : l.isRTL(h.floating)), y = u || (C || !m ? [lt(a)] : Ve(a)), I = g !== "none";
5949
- !u && I && y.push(...Ge(a, m, g, b));
5950
- const _ = [a, ...y], L = await ee(t, w), R = [];
5951
- let v = ((i = o.flip) == null ? void 0 : i.overflows) || [];
5952
- if (d && R.push(L[E]), f) {
5949
+ const E = G(s), p = V(a), y = G(a) === a, b = await (l.isRTL == null ? void 0 : l.isRTL(h.floating)), C = u || (y || !m ? [ht(a)] : Ve(a)), R = g !== "none";
5950
+ !u && R && C.push(...Ge(a, m, g, b));
5951
+ const _ = [a, ...C], L = await l.detectOverflow(t, w), v = [];
5952
+ let I = ((i = o.flip) == null ? void 0 : i.overflows) || [];
5953
+ if (d && v.push(L[E]), f) {
5953
5954
  const O = We(s, r, b);
5954
- R.push(L[O[0]], L[O[1]]);
5955
+ v.push(L[O[0]], L[O[1]]);
5955
5956
  }
5956
- if (v = [...v, {
5957
+ if (I = [...I, {
5957
5958
  placement: s,
5958
- overflows: R
5959
- }], !R.every((O) => O <= 0)) {
5959
+ overflows: v
5960
+ }], !v.every((O) => O <= 0)) {
5960
5961
  var S, T;
5961
5962
  const O = (((S = o.flip) == null ? void 0 : S.index) || 0) + 1, A = _[O];
5962
5963
  if (A && (!(f === "alignment" ? p !== V(A) : !1) || // We leave the current main axis only if every placement on that axis
5963
5964
  // overflows the main axis.
5964
- v.every((k) => V(k.placement) === p ? k.overflows[0] > 0 : !0)))
5965
+ I.every((k) => V(k.placement) === p ? k.overflows[0] > 0 : !0)))
5965
5966
  return {
5966
5967
  data: {
5967
5968
  index: O,
5968
- overflows: v
5969
+ overflows: I
5969
5970
  },
5970
5971
  reset: {
5971
5972
  placement: A
5972
5973
  }
5973
5974
  };
5974
- let H = (T = v.filter((D) => D.overflows[0] <= 0).sort((D, k) => D.overflows[1] - k.overflows[1])[0]) == null ? void 0 : T.placement;
5975
+ let H = (T = I.filter((D) => D.overflows[0] <= 0).sort((D, k) => D.overflows[1] - k.overflows[1])[0]) == null ? void 0 : T.placement;
5975
5976
  if (!H)
5976
5977
  switch (x) {
5977
5978
  case "bestFit": {
5978
5979
  var M;
5979
- const D = (M = v.filter((k) => {
5980
- if (I) {
5980
+ const D = (M = I.filter((k) => {
5981
+ if (R) {
5981
5982
  const W = V(k.placement);
5982
5983
  return W === p || // Create a bias to the `y` side axis due to horizontal
5983
5984
  // reading directions favoring greater width.
5984
5985
  W === "y";
5985
5986
  }
5986
5987
  return !0;
5987
- }).map((k) => [k.placement, k.overflows.filter((W) => W > 0).reduce((W, ce) => W + ce, 0)]).sort((k, W) => k[1] - W[1])[0]) == null ? void 0 : M[0];
5988
+ }).map((k) => [k.placement, k.overflows.filter((W) => W > 0).reduce((W, fe) => W + fe, 0)]).sort((k, W) => k[1] - W[1])[0]) == null ? void 0 : M[0];
5988
5989
  D && (H = D);
5989
5990
  break;
5990
5991
  }
@@ -6002,13 +6003,13 @@ const qe = (c) => ({
6002
6003
  return {};
6003
6004
  }
6004
6005
  };
6005
- }, Je = /* @__PURE__ */ new Set(["left", "top"]);
6006
- async function Qe(c, t) {
6006
+ }, ti = /* @__PURE__ */ new Set(["left", "top"]);
6007
+ async function ei(c, t) {
6007
6008
  const {
6008
6009
  placement: e,
6009
6010
  platform: i,
6010
6011
  elements: s
6011
- } = c, o = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), r = $(e), a = et(e), l = V(e) === "y", h = Je.has(r) ? -1 : 1, d = o && l ? -1 : 1, f = tt(t, c);
6012
+ } = c, o = await (i.isRTL == null ? void 0 : i.isRTL(s.floating)), r = G(e), a = it(e), l = V(e) === "y", h = ti.has(r) ? -1 : 1, d = o && l ? -1 : 1, f = et(t, c);
6012
6013
  let {
6013
6014
  mainAxis: u,
6014
6015
  crossAxis: x,
@@ -6030,7 +6031,7 @@ async function Qe(c, t) {
6030
6031
  y: x * d
6031
6032
  };
6032
6033
  }
6033
- const ti = function(c) {
6034
+ const ii = function(c) {
6034
6035
  return c === void 0 && (c = 0), {
6035
6036
  name: "offset",
6036
6037
  options: c,
@@ -6041,7 +6042,7 @@ const ti = function(c) {
6041
6042
  y: o,
6042
6043
  placement: r,
6043
6044
  middlewareData: a
6044
- } = t, l = await Qe(t, c);
6045
+ } = t, l = await ei(t, c);
6045
6046
  return r === ((e = a.offset) == null ? void 0 : e.placement) && (i = a.arrow) != null && i.alignmentOffset ? {} : {
6046
6047
  x: s + l.x,
6047
6048
  y: o + l.y,
@@ -6052,7 +6053,7 @@ const ti = function(c) {
6052
6053
  };
6053
6054
  }
6054
6055
  };
6055
- }, ei = function(c) {
6056
+ }, si = function(c) {
6056
6057
  return c === void 0 && (c = {}), {
6057
6058
  name: "shift",
6058
6059
  options: c,
@@ -6060,132 +6061,133 @@ const ti = function(c) {
6060
6061
  const {
6061
6062
  x: e,
6062
6063
  y: i,
6063
- placement: s
6064
+ placement: s,
6065
+ platform: o
6064
6066
  } = t, {
6065
- mainAxis: o = !0,
6066
- crossAxis: r = !1,
6067
- limiter: a = {
6068
- fn: (w) => {
6067
+ mainAxis: r = !0,
6068
+ crossAxis: a = !1,
6069
+ limiter: l = {
6070
+ fn: (E) => {
6069
6071
  let {
6070
- x: E,
6071
- y: p
6072
- } = w;
6072
+ x: p,
6073
+ y
6074
+ } = E;
6073
6075
  return {
6074
- x: E,
6075
- y: p
6076
+ x: p,
6077
+ y
6076
6078
  };
6077
6079
  }
6078
6080
  },
6079
- ...l
6080
- } = tt(c, t), h = {
6081
+ ...h
6082
+ } = et(c, t), d = {
6081
6083
  x: e,
6082
6084
  y: i
6083
- }, d = await ee(t, l), f = V($(s)), u = Qt(f);
6084
- let x = h[u], g = h[f];
6085
- if (o) {
6086
- const w = u === "y" ? "top" : "left", E = u === "y" ? "bottom" : "right", p = x + d[w], C = x - d[E];
6087
- x = Et(p, x, C);
6088
- }
6085
+ }, f = await o.detectOverflow(t, h), u = V(G(s)), x = ie(u);
6086
+ let g = d[x], m = d[u];
6089
6087
  if (r) {
6090
- const w = f === "y" ? "top" : "left", E = f === "y" ? "bottom" : "right", p = g + d[w], C = g - d[E];
6091
- g = Et(p, g, C);
6088
+ const E = x === "y" ? "top" : "left", p = x === "y" ? "bottom" : "right", y = g + f[E], b = g - f[p];
6089
+ g = Ct(y, g, b);
6090
+ }
6091
+ if (a) {
6092
+ const E = u === "y" ? "top" : "left", p = u === "y" ? "bottom" : "right", y = m + f[E], b = m - f[p];
6093
+ m = Ct(y, m, b);
6092
6094
  }
6093
- const m = a.fn({
6095
+ const w = l.fn({
6094
6096
  ...t,
6095
- [u]: x,
6096
- [f]: g
6097
+ [x]: g,
6098
+ [u]: m
6097
6099
  });
6098
6100
  return {
6099
- ...m,
6101
+ ...w,
6100
6102
  data: {
6101
- x: m.x - e,
6102
- y: m.y - i,
6103
+ x: w.x - e,
6104
+ y: w.y - i,
6103
6105
  enabled: {
6104
- [u]: o,
6105
- [f]: r
6106
+ [x]: r,
6107
+ [u]: a
6106
6108
  }
6107
6109
  }
6108
6110
  };
6109
6111
  }
6110
6112
  };
6111
6113
  };
6112
- function ut() {
6114
+ function xt() {
6113
6115
  return typeof window < "u";
6114
6116
  }
6115
- function Z(c) {
6116
- return ie(c) ? (c.nodeName || "").toLowerCase() : "#document";
6117
+ function J(c) {
6118
+ return oe(c) ? (c.nodeName || "").toLowerCase() : "#document";
6117
6119
  }
6118
6120
  function N(c) {
6119
6121
  var t;
6120
6122
  return (c == null || (t = c.ownerDocument) == null ? void 0 : t.defaultView) || window;
6121
6123
  }
6122
- function F(c) {
6124
+ function K(c) {
6123
6125
  var t;
6124
- return (t = (ie(c) ? c.ownerDocument : c.document) || window.document) == null ? void 0 : t.documentElement;
6126
+ return (t = (oe(c) ? c.ownerDocument : c.document) || window.document) == null ? void 0 : t.documentElement;
6125
6127
  }
6126
- function ie(c) {
6127
- return ut() ? c instanceof Node || c instanceof N(c).Node : !1;
6128
+ function oe(c) {
6129
+ return xt() ? c instanceof Node || c instanceof N(c).Node : !1;
6128
6130
  }
6129
6131
  function B(c) {
6130
- return ut() ? c instanceof Element || c instanceof N(c).Element : !1;
6132
+ return xt() ? c instanceof Element || c instanceof N(c).Element : !1;
6131
6133
  }
6132
- function K(c) {
6133
- return ut() ? c instanceof HTMLElement || c instanceof N(c).HTMLElement : !1;
6134
+ function F(c) {
6135
+ return xt() ? c instanceof HTMLElement || c instanceof N(c).HTMLElement : !1;
6134
6136
  }
6135
- function Wt(c) {
6136
- return !ut() || typeof ShadowRoot > "u" ? !1 : c instanceof ShadowRoot || c instanceof N(c).ShadowRoot;
6137
+ function Pt(c) {
6138
+ return !xt() || typeof ShadowRoot > "u" ? !1 : c instanceof ShadowRoot || c instanceof N(c).ShadowRoot;
6137
6139
  }
6138
- const ii = /* @__PURE__ */ new Set(["inline", "contents"]);
6139
- function it(c) {
6140
+ function st(c) {
6140
6141
  const {
6141
6142
  overflow: t,
6142
6143
  overflowX: e,
6143
6144
  overflowY: i,
6144
6145
  display: s
6145
6146
  } = X(c);
6146
- return /auto|scroll|overlay|hidden|clip/.test(t + i + e) && !ii.has(s);
6147
+ return /auto|scroll|overlay|hidden|clip/.test(t + i + e) && s !== "inline" && s !== "contents";
6147
6148
  }
6148
- const si = /* @__PURE__ */ new Set(["table", "td", "th"]);
6149
6149
  function oi(c) {
6150
- return si.has(Z(c));
6150
+ return /^(table|td|th)$/.test(J(c));
6151
6151
  }
6152
- const ri = [":popover-open", ":modal"];
6153
- function xt(c) {
6154
- return ri.some((t) => {
6155
- try {
6156
- return c.matches(t);
6157
- } catch {
6158
- return !1;
6159
- }
6160
- });
6152
+ function gt(c) {
6153
+ try {
6154
+ if (c.matches(":popover-open"))
6155
+ return !0;
6156
+ } catch {
6157
+ }
6158
+ try {
6159
+ return c.matches(":modal");
6160
+ } catch {
6161
+ return !1;
6162
+ }
6161
6163
  }
6162
- const ni = ["transform", "translate", "scale", "rotate", "perspective"], ai = ["transform", "translate", "scale", "rotate", "perspective", "filter"], li = ["paint", "layout", "strict", "content"];
6163
- function St(c) {
6164
- const t = Tt(), e = B(c) ? X(c) : c;
6165
- return ni.some((i) => e[i] ? e[i] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ai.some((i) => (e.willChange || "").includes(i)) || li.some((i) => (e.contain || "").includes(i));
6164
+ const ri = /transform|translate|scale|rotate|perspective|filter/, ni = /paint|layout|strict|content/, z = (c) => !!c && c !== "none";
6165
+ let Et;
6166
+ function Lt(c) {
6167
+ const t = B(c) ? X(c) : c;
6168
+ return z(t.transform) || z(t.translate) || z(t.scale) || z(t.rotate) || z(t.perspective) || !Mt() && (z(t.backdropFilter) || z(t.filter)) || ri.test(t.willChange || "") || ni.test(t.contain || "");
6166
6169
  }
6167
- function hi(c) {
6170
+ function ai(c) {
6168
6171
  let t = P(c);
6169
- for (; K(t) && !q(t); ) {
6170
- if (St(t))
6172
+ for (; F(t) && !Z(t); ) {
6173
+ if (Lt(t))
6171
6174
  return t;
6172
- if (xt(t))
6175
+ if (gt(t))
6173
6176
  return null;
6174
6177
  t = P(t);
6175
6178
  }
6176
6179
  return null;
6177
6180
  }
6178
- function Tt() {
6179
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
6181
+ function Mt() {
6182
+ return Et == null && (Et = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Et;
6180
6183
  }
6181
- const ci = /* @__PURE__ */ new Set(["html", "body", "#document"]);
6182
- function q(c) {
6183
- return ci.has(Z(c));
6184
+ function Z(c) {
6185
+ return /^(html|body|#document)$/.test(J(c));
6184
6186
  }
6185
6187
  function X(c) {
6186
6188
  return N(c).getComputedStyle(c);
6187
6189
  }
6188
- function gt(c) {
6190
+ function wt(c) {
6189
6191
  return B(c) ? {
6190
6192
  scrollLeft: c.scrollLeft,
6191
6193
  scrollTop: c.scrollTop
@@ -6195,130 +6197,126 @@ function gt(c) {
6195
6197
  };
6196
6198
  }
6197
6199
  function P(c) {
6198
- if (Z(c) === "html")
6200
+ if (J(c) === "html")
6199
6201
  return c;
6200
6202
  const t = (
6201
6203
  // Step into the shadow DOM of the parent of a slotted node.
6202
6204
  c.assignedSlot || // DOM Element detected.
6203
6205
  c.parentNode || // ShadowRoot detected.
6204
- Wt(c) && c.host || // Fallback.
6205
- F(c)
6206
+ Pt(c) && c.host || // Fallback.
6207
+ K(c)
6206
6208
  );
6207
- return Wt(t) ? t.host : t;
6209
+ return Pt(t) ? t.host : t;
6208
6210
  }
6209
- function se(c) {
6211
+ function re(c) {
6210
6212
  const t = P(c);
6211
- return q(t) ? c.ownerDocument ? c.ownerDocument.body : c.body : K(t) && it(t) ? t : se(t);
6213
+ return Z(t) ? c.ownerDocument ? c.ownerDocument.body : c.body : F(t) && st(t) ? t : re(t);
6212
6214
  }
6213
- function Q(c, t, e) {
6215
+ function tt(c, t, e) {
6214
6216
  var i;
6215
6217
  t === void 0 && (t = []), e === void 0 && (e = !0);
6216
- const s = se(c), o = s === ((i = c.ownerDocument) == null ? void 0 : i.body), r = N(s);
6218
+ const s = re(c), o = s === ((i = c.ownerDocument) == null ? void 0 : i.body), r = N(s);
6217
6219
  if (o) {
6218
- const a = yt(r);
6219
- return t.concat(r, r.visualViewport || [], it(s) ? s : [], a && e ? Q(a) : []);
6220
- }
6221
- return t.concat(s, Q(s, [], e));
6220
+ const a = It(r);
6221
+ return t.concat(r, r.visualViewport || [], st(s) ? s : [], a && e ? tt(a) : []);
6222
+ } else
6223
+ return t.concat(s, tt(s, [], e));
6222
6224
  }
6223
- function yt(c) {
6225
+ function It(c) {
6224
6226
  return c.parent && Object.getPrototypeOf(c.parent) ? c.frameElement : null;
6225
6227
  }
6226
- function oe(c) {
6228
+ function ne(c) {
6227
6229
  const t = X(c);
6228
6230
  let e = parseFloat(t.width) || 0, i = parseFloat(t.height) || 0;
6229
- const s = K(c), o = s ? c.offsetWidth : e, r = s ? c.offsetHeight : i, a = at(e) !== o || at(i) !== r;
6231
+ const s = F(c), o = s ? c.offsetWidth : e, r = s ? c.offsetHeight : i, a = lt(e) !== o || lt(i) !== r;
6230
6232
  return a && (e = o, i = r), {
6231
6233
  width: e,
6232
6234
  height: i,
6233
6235
  $: a
6234
6236
  };
6235
6237
  }
6236
- function Ot(c) {
6238
+ function At(c) {
6237
6239
  return B(c) ? c : c.contextElement;
6238
6240
  }
6239
- function U(c) {
6240
- const t = Ot(c);
6241
- if (!K(t))
6241
+ function j(c) {
6242
+ const t = At(c);
6243
+ if (!F(t))
6242
6244
  return Y(1);
6243
6245
  const e = t.getBoundingClientRect(), {
6244
6246
  width: i,
6245
6247
  height: s,
6246
6248
  $: o
6247
- } = oe(t);
6248
- let r = (o ? at(e.width) : e.width) / i, a = (o ? at(e.height) : e.height) / s;
6249
+ } = ne(t);
6250
+ let r = (o ? lt(e.width) : e.width) / i, a = (o ? lt(e.height) : e.height) / s;
6249
6251
  return (!r || !Number.isFinite(r)) && (r = 1), (!a || !Number.isFinite(a)) && (a = 1), {
6250
6252
  x: r,
6251
6253
  y: a
6252
6254
  };
6253
6255
  }
6254
- const di = /* @__PURE__ */ Y(0);
6255
- function re(c) {
6256
+ const li = /* @__PURE__ */ Y(0);
6257
+ function ae(c) {
6256
6258
  const t = N(c);
6257
- return !Tt() || !t.visualViewport ? di : {
6259
+ return !Mt() || !t.visualViewport ? li : {
6258
6260
  x: t.visualViewport.offsetLeft,
6259
6261
  y: t.visualViewport.offsetTop
6260
6262
  };
6261
6263
  }
6262
- function fi(c, t, e) {
6264
+ function hi(c, t, e) {
6263
6265
  return t === void 0 && (t = !1), !e || t && e !== N(c) ? !1 : t;
6264
6266
  }
6265
- function G(c, t, e, i) {
6267
+ function U(c, t, e, i) {
6266
6268
  t === void 0 && (t = !1), e === void 0 && (e = !1);
6267
- const s = c.getBoundingClientRect(), o = Ot(c);
6269
+ const s = c.getBoundingClientRect(), o = At(c);
6268
6270
  let r = Y(1);
6269
- t && (i ? B(i) && (r = U(i)) : r = U(c));
6270
- const a = fi(o, e, i) ? re(o) : Y(0);
6271
+ t && (i ? B(i) && (r = j(i)) : r = j(c));
6272
+ const a = hi(o, e, i) ? ae(o) : Y(0);
6271
6273
  let l = (s.left + a.x) / r.x, h = (s.top + a.y) / r.y, d = s.width / r.x, f = s.height / r.y;
6272
6274
  if (o) {
6273
6275
  const u = N(o), x = i && B(i) ? N(i) : i;
6274
- let g = u, m = yt(g);
6276
+ let g = u, m = It(g);
6275
6277
  for (; m && i && x !== g; ) {
6276
- const w = U(m), E = m.getBoundingClientRect(), p = X(m), C = E.left + (m.clientLeft + parseFloat(p.paddingLeft)) * w.x, b = E.top + (m.clientTop + parseFloat(p.paddingTop)) * w.y;
6277
- l *= w.x, h *= w.y, d *= w.x, f *= w.y, l += C, h += b, g = N(m), m = yt(g);
6278
+ const w = j(m), E = m.getBoundingClientRect(), p = X(m), y = E.left + (m.clientLeft + parseFloat(p.paddingLeft)) * w.x, b = E.top + (m.clientTop + parseFloat(p.paddingTop)) * w.y;
6279
+ l *= w.x, h *= w.y, d *= w.x, f *= w.y, l += y, h += b, g = N(m), m = It(g);
6278
6280
  }
6279
6281
  }
6280
- return ht({
6282
+ return ct({
6281
6283
  width: d,
6282
6284
  height: f,
6283
6285
  x: l,
6284
6286
  y: h
6285
6287
  });
6286
6288
  }
6287
- function Lt(c, t) {
6288
- const e = gt(c).scrollLeft;
6289
- return t ? t.left + e : G(F(c)).left + e;
6289
+ function mt(c, t) {
6290
+ const e = wt(c).scrollLeft;
6291
+ return t ? t.left + e : U(K(c)).left + e;
6290
6292
  }
6291
- function ne(c, t, e) {
6292
- e === void 0 && (e = !1);
6293
- const i = c.getBoundingClientRect(), s = i.left + t.scrollLeft - (e ? 0 : (
6294
- // RTL <body> scrollbar.
6295
- Lt(c, i)
6296
- )), o = i.top + t.scrollTop;
6293
+ function le(c, t) {
6294
+ const e = c.getBoundingClientRect(), i = e.left + t.scrollLeft - mt(c, e), s = e.top + t.scrollTop;
6297
6295
  return {
6298
- x: s,
6299
- y: o
6296
+ x: i,
6297
+ y: s
6300
6298
  };
6301
6299
  }
6302
- function ui(c) {
6300
+ function ci(c) {
6303
6301
  let {
6304
6302
  elements: t,
6305
6303
  rect: e,
6306
6304
  offsetParent: i,
6307
6305
  strategy: s
6308
6306
  } = c;
6309
- const o = s === "fixed", r = F(i), a = t ? xt(t.floating) : !1;
6307
+ const o = s === "fixed", r = K(i), a = t ? gt(t.floating) : !1;
6310
6308
  if (i === r || a && o)
6311
6309
  return e;
6312
6310
  let l = {
6313
6311
  scrollLeft: 0,
6314
6312
  scrollTop: 0
6315
6313
  }, h = Y(1);
6316
- const d = Y(0), f = K(i);
6317
- if ((f || !f && !o) && ((Z(i) !== "body" || it(r)) && (l = gt(i)), K(i))) {
6318
- const x = G(i);
6319
- h = U(i), d.x = x.x + i.clientLeft, d.y = x.y + i.clientTop;
6314
+ const d = Y(0), f = F(i);
6315
+ if ((f || !f && !o) && ((J(i) !== "body" || st(r)) && (l = wt(i)), f)) {
6316
+ const x = U(i);
6317
+ h = j(i), d.x = x.x + i.clientLeft, d.y = x.y + i.clientTop;
6320
6318
  }
6321
- const u = r && !f && !o ? ne(r, l, !0) : Y(0);
6319
+ const u = r && !f && !o ? le(r, l) : Y(0);
6322
6320
  return {
6323
6321
  width: e.width * h.x,
6324
6322
  height: e.height * h.y,
@@ -6326,28 +6324,34 @@ function ui(c) {
6326
6324
  y: e.y * h.y - l.scrollTop * h.y + d.y + u.y
6327
6325
  };
6328
6326
  }
6329
- function xi(c) {
6327
+ function di(c) {
6330
6328
  return Array.from(c.getClientRects());
6331
6329
  }
6332
- function gi(c) {
6333
- const t = F(c), e = gt(c), i = c.ownerDocument.body, s = z(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), o = z(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
6334
- let r = -e.scrollLeft + Lt(c);
6330
+ function fi(c) {
6331
+ const t = K(c), e = wt(c), i = c.ownerDocument.body, s = $(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), o = $(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
6332
+ let r = -e.scrollLeft + mt(c);
6335
6333
  const a = -e.scrollTop;
6336
- return X(i).direction === "rtl" && (r += z(t.clientWidth, i.clientWidth) - s), {
6334
+ return X(i).direction === "rtl" && (r += $(t.clientWidth, i.clientWidth) - s), {
6337
6335
  width: s,
6338
6336
  height: o,
6339
6337
  x: r,
6340
6338
  y: a
6341
6339
  };
6342
6340
  }
6343
- function wi(c, t) {
6344
- const e = N(c), i = F(c), s = e.visualViewport;
6341
+ const zt = 25;
6342
+ function ui(c, t) {
6343
+ const e = N(c), i = K(c), s = e.visualViewport;
6345
6344
  let o = i.clientWidth, r = i.clientHeight, a = 0, l = 0;
6346
6345
  if (s) {
6347
6346
  o = s.width, r = s.height;
6348
- const h = Tt();
6349
- (!h || h && t === "fixed") && (a = s.offsetLeft, l = s.offsetTop);
6350
- }
6347
+ const d = Mt();
6348
+ (!d || d && t === "fixed") && (a = s.offsetLeft, l = s.offsetTop);
6349
+ }
6350
+ const h = mt(i);
6351
+ if (h <= 0) {
6352
+ const d = i.ownerDocument, f = d.body, u = getComputedStyle(f), x = d.compatMode === "CSS1Compat" && parseFloat(u.marginLeft) + parseFloat(u.marginRight) || 0, g = Math.abs(i.clientWidth - f.clientWidth - x);
6353
+ g <= zt && (o -= g);
6354
+ } else h <= zt && (o += h);
6351
6355
  return {
6352
6356
  width: o,
6353
6357
  height: r,
@@ -6355,9 +6359,8 @@ function wi(c, t) {
6355
6359
  y: l
6356
6360
  };
6357
6361
  }
6358
- const mi = /* @__PURE__ */ new Set(["absolute", "fixed"]);
6359
- function Ei(c, t) {
6360
- const e = G(c, !0, t === "fixed"), i = e.top + c.clientTop, s = e.left + c.clientLeft, o = K(c) ? U(c) : Y(1), r = c.clientWidth * o.x, a = c.clientHeight * o.y, l = s * o.x, h = i * o.y;
6362
+ function xi(c, t) {
6363
+ const e = U(c, !0, t === "fixed"), i = e.top + c.clientTop, s = e.left + c.clientLeft, o = F(c) ? j(c) : Y(1), r = c.clientWidth * o.x, a = c.clientHeight * o.y, l = s * o.x, h = i * o.y;
6361
6364
  return {
6362
6365
  width: r,
6363
6366
  height: a,
@@ -6365,16 +6368,16 @@ function Ei(c, t) {
6365
6368
  y: h
6366
6369
  };
6367
6370
  }
6368
- function Vt(c, t, e) {
6371
+ function $t(c, t, e) {
6369
6372
  let i;
6370
6373
  if (t === "viewport")
6371
- i = wi(c, e);
6374
+ i = ui(c, e);
6372
6375
  else if (t === "document")
6373
- i = gi(F(c));
6376
+ i = fi(K(c));
6374
6377
  else if (B(t))
6375
- i = Ei(t, e);
6378
+ i = xi(t, e);
6376
6379
  else {
6377
- const s = re(c);
6380
+ const s = ae(c);
6378
6381
  i = {
6379
6382
  x: t.x - s.x,
6380
6383
  y: t.y - s.y,
@@ -6382,70 +6385,72 @@ function Vt(c, t, e) {
6382
6385
  height: t.height
6383
6386
  };
6384
6387
  }
6385
- return ht(i);
6388
+ return ct(i);
6386
6389
  }
6387
- function ae(c, t) {
6390
+ function he(c, t) {
6388
6391
  const e = P(c);
6389
- return e === t || !B(e) || q(e) ? !1 : X(e).position === "fixed" || ae(e, t);
6392
+ return e === t || !B(e) || Z(e) ? !1 : X(e).position === "fixed" || he(e, t);
6390
6393
  }
6391
- function pi(c, t) {
6394
+ function gi(c, t) {
6392
6395
  const e = t.get(c);
6393
6396
  if (e)
6394
6397
  return e;
6395
- let i = Q(c, [], !1).filter((a) => B(a) && Z(a) !== "body"), s = null;
6398
+ let i = tt(c, [], !1).filter((a) => B(a) && J(a) !== "body"), s = null;
6396
6399
  const o = X(c).position === "fixed";
6397
6400
  let r = o ? P(c) : c;
6398
- for (; B(r) && !q(r); ) {
6399
- const a = X(r), l = St(r);
6400
- !l && a.position === "fixed" && (s = null), (o ? !l && !s : !l && a.position === "static" && !!s && mi.has(s.position) || it(r) && !l && ae(c, r)) ? i = i.filter((d) => d !== r) : s = a, r = P(r);
6401
+ for (; B(r) && !Z(r); ) {
6402
+ const a = X(r), l = Lt(r);
6403
+ !l && a.position === "fixed" && (s = null), (o ? !l && !s : !l && a.position === "static" && !!s && (s.position === "absolute" || s.position === "fixed") || st(r) && !l && he(c, r)) ? i = i.filter((d) => d !== r) : s = a, r = P(r);
6401
6404
  }
6402
6405
  return t.set(c, i), i;
6403
6406
  }
6404
- function yi(c) {
6407
+ function wi(c) {
6405
6408
  let {
6406
6409
  element: t,
6407
6410
  boundary: e,
6408
6411
  rootBoundary: i,
6409
6412
  strategy: s
6410
6413
  } = c;
6411
- const r = [...e === "clippingAncestors" ? xt(t) ? [] : pi(t, this._c) : [].concat(e), i], a = r[0], l = r.reduce((h, d) => {
6412
- const f = Vt(t, d, s);
6413
- return h.top = z(f.top, h.top), h.right = j(f.right, h.right), h.bottom = j(f.bottom, h.bottom), h.left = z(f.left, h.left), h;
6414
- }, Vt(t, a, s));
6414
+ const r = [...e === "clippingAncestors" ? gt(t) ? [] : gi(t, this._c) : [].concat(e), i], a = $t(t, r[0], s);
6415
+ let l = a.top, h = a.right, d = a.bottom, f = a.left;
6416
+ for (let u = 1; u < r.length; u++) {
6417
+ const x = $t(t, r[u], s);
6418
+ l = $(x.top, l), h = q(x.right, h), d = q(x.bottom, d), f = $(x.left, f);
6419
+ }
6415
6420
  return {
6416
- width: l.right - l.left,
6417
- height: l.bottom - l.top,
6418
- x: l.left,
6419
- y: l.top
6421
+ width: h - f,
6422
+ height: d - l,
6423
+ x: f,
6424
+ y: l
6420
6425
  };
6421
6426
  }
6422
- function Ci(c) {
6427
+ function mi(c) {
6423
6428
  const {
6424
6429
  width: t,
6425
6430
  height: e
6426
- } = oe(c);
6431
+ } = ne(c);
6427
6432
  return {
6428
6433
  width: t,
6429
6434
  height: e
6430
6435
  };
6431
6436
  }
6432
- function bi(c, t, e) {
6433
- const i = K(t), s = F(t), o = e === "fixed", r = G(c, !0, o, t);
6437
+ function Ei(c, t, e) {
6438
+ const i = F(t), s = K(t), o = e === "fixed", r = U(c, !0, o, t);
6434
6439
  let a = {
6435
6440
  scrollLeft: 0,
6436
6441
  scrollTop: 0
6437
6442
  };
6438
6443
  const l = Y(0);
6439
6444
  function h() {
6440
- l.x = Lt(s);
6445
+ l.x = mt(s);
6441
6446
  }
6442
6447
  if (i || !i && !o)
6443
- if ((Z(t) !== "body" || it(s)) && (a = gt(t)), i) {
6444
- const x = G(t, !0, o, t);
6448
+ if ((J(t) !== "body" || st(s)) && (a = wt(t)), i) {
6449
+ const x = U(t, !0, o, t);
6445
6450
  l.x = x.x + t.clientLeft, l.y = x.y + t.clientTop;
6446
6451
  } else s && h();
6447
6452
  o && !i && s && h();
6448
- const d = s && !i && !o ? ne(s, a) : Y(0), f = r.left + a.scrollLeft - l.x - d.x, u = r.top + a.scrollTop - l.y - d.y;
6453
+ const d = s && !i && !o ? le(s, a) : Y(0), f = r.left + a.scrollLeft - l.x - d.x, u = r.top + a.scrollTop - l.y - d.y;
6449
6454
  return {
6450
6455
  x: f,
6451
6456
  y: u,
@@ -6453,39 +6458,39 @@ function bi(c, t, e) {
6453
6458
  height: r.height
6454
6459
  };
6455
6460
  }
6456
- function wt(c) {
6461
+ function pt(c) {
6457
6462
  return X(c).position === "static";
6458
6463
  }
6459
- function Pt(c, t) {
6460
- if (!K(c) || X(c).position === "fixed")
6464
+ function Gt(c, t) {
6465
+ if (!F(c) || X(c).position === "fixed")
6461
6466
  return null;
6462
6467
  if (t)
6463
6468
  return t(c);
6464
6469
  let e = c.offsetParent;
6465
- return F(c) === e && (e = e.ownerDocument.body), e;
6470
+ return K(c) === e && (e = e.ownerDocument.body), e;
6466
6471
  }
6467
- function le(c, t) {
6472
+ function ce(c, t) {
6468
6473
  const e = N(c);
6469
- if (xt(c))
6474
+ if (gt(c))
6470
6475
  return e;
6471
- if (!K(c)) {
6476
+ if (!F(c)) {
6472
6477
  let s = P(c);
6473
- for (; s && !q(s); ) {
6474
- if (B(s) && !wt(s))
6478
+ for (; s && !Z(s); ) {
6479
+ if (B(s) && !pt(s))
6475
6480
  return s;
6476
6481
  s = P(s);
6477
6482
  }
6478
6483
  return e;
6479
6484
  }
6480
- let i = Pt(c, t);
6481
- for (; i && oi(i) && wt(i); )
6482
- i = Pt(i, t);
6483
- return i && q(i) && wt(i) && !St(i) ? e : i || hi(c) || e;
6485
+ let i = Gt(c, t);
6486
+ for (; i && oi(i) && pt(i); )
6487
+ i = Gt(i, t);
6488
+ return i && Z(i) && pt(i) && !Lt(i) ? e : i || ai(c) || e;
6484
6489
  }
6485
- const vi = async function(c) {
6486
- const t = this.getOffsetParent || le, e = this.getDimensions, i = await e(c.floating);
6490
+ const pi = async function(c) {
6491
+ const t = this.getOffsetParent || ce, e = this.getDimensions, i = await e(c.floating);
6487
6492
  return {
6488
- reference: bi(c.reference, await t(c.floating), c.strategy),
6493
+ reference: Ei(c.reference, await t(c.floating), c.strategy),
6489
6494
  floating: {
6490
6495
  x: 0,
6491
6496
  y: 0,
@@ -6494,27 +6499,27 @@ const vi = async function(c) {
6494
6499
  }
6495
6500
  };
6496
6501
  };
6497
- function Ii(c) {
6502
+ function yi(c) {
6498
6503
  return X(c).direction === "rtl";
6499
6504
  }
6500
- const Ri = {
6501
- convertOffsetParentRelativeRectToViewportRelativeRect: ui,
6502
- getDocumentElement: F,
6503
- getClippingRect: yi,
6504
- getOffsetParent: le,
6505
- getElementRects: vi,
6506
- getClientRects: xi,
6507
- getDimensions: Ci,
6508
- getScale: U,
6505
+ const Ci = {
6506
+ convertOffsetParentRelativeRectToViewportRelativeRect: ci,
6507
+ getDocumentElement: K,
6508
+ getClippingRect: wi,
6509
+ getOffsetParent: ce,
6510
+ getElementRects: pi,
6511
+ getClientRects: di,
6512
+ getDimensions: mi,
6513
+ getScale: j,
6509
6514
  isElement: B,
6510
- isRTL: Ii
6515
+ isRTL: yi
6511
6516
  };
6512
- function he(c, t) {
6517
+ function de(c, t) {
6513
6518
  return c.x === t.x && c.y === t.y && c.width === t.width && c.height === t.height;
6514
6519
  }
6515
- function _i(c, t) {
6520
+ function bi(c, t) {
6516
6521
  let e = null, i;
6517
- const s = F(c);
6522
+ const s = K(c);
6518
6523
  function o() {
6519
6524
  var a;
6520
6525
  clearTimeout(i), (a = e) == null || a.disconnect(), e = null;
@@ -6529,13 +6534,13 @@ function _i(c, t) {
6529
6534
  } = h;
6530
6535
  if (a || t(), !u || !x)
6531
6536
  return;
6532
- const g = st(f), m = st(s.clientWidth - (d + u)), w = st(s.clientHeight - (f + x)), E = st(d), C = {
6537
+ const g = ot(f), m = ot(s.clientWidth - (d + u)), w = ot(s.clientHeight - (f + x)), E = ot(d), y = {
6533
6538
  rootMargin: -g + "px " + -m + "px " + -w + "px " + -E + "px",
6534
- threshold: z(0, j(1, l)) || 1
6539
+ threshold: $(0, q(1, l)) || 1
6535
6540
  };
6536
6541
  let b = !0;
6537
- function y(I) {
6538
- const _ = I[0].intersectionRatio;
6542
+ function C(R) {
6543
+ const _ = R[0].intersectionRatio;
6539
6544
  if (_ !== l) {
6540
6545
  if (!b)
6541
6546
  return r();
@@ -6543,22 +6548,22 @@ function _i(c, t) {
6543
6548
  r(!1, 1e-7);
6544
6549
  }, 1e3);
6545
6550
  }
6546
- _ === 1 && !he(h, c.getBoundingClientRect()) && r(), b = !1;
6551
+ _ === 1 && !de(h, c.getBoundingClientRect()) && r(), b = !1;
6547
6552
  }
6548
6553
  try {
6549
- e = new IntersectionObserver(y, {
6550
- ...C,
6554
+ e = new IntersectionObserver(C, {
6555
+ ...y,
6551
6556
  // Handle <iframe>s
6552
6557
  root: s.ownerDocument
6553
6558
  });
6554
6559
  } catch {
6555
- e = new IntersectionObserver(y, C);
6560
+ e = new IntersectionObserver(C, y);
6556
6561
  }
6557
6562
  e.observe(c);
6558
6563
  }
6559
6564
  return r(!0), o;
6560
6565
  }
6561
- function Ct(c, t, e, i) {
6566
+ function Rt(c, t, e, i) {
6562
6567
  i === void 0 && (i = {});
6563
6568
  const {
6564
6569
  ancestorScroll: s = !0,
@@ -6566,26 +6571,26 @@ function Ct(c, t, e, i) {
6566
6571
  elementResize: r = typeof ResizeObserver == "function",
6567
6572
  layoutShift: a = typeof IntersectionObserver == "function",
6568
6573
  animationFrame: l = !1
6569
- } = i, h = Ot(c), d = s || o ? [...h ? Q(h) : [], ...Q(t)] : [];
6574
+ } = i, h = At(c), d = s || o ? [...h ? tt(h) : [], ...t ? tt(t) : []] : [];
6570
6575
  d.forEach((E) => {
6571
6576
  s && E.addEventListener("scroll", e, {
6572
6577
  passive: !0
6573
6578
  }), o && E.addEventListener("resize", e);
6574
6579
  });
6575
- const f = h && a ? _i(h, e) : null;
6580
+ const f = h && a ? bi(h, e) : null;
6576
6581
  let u = -1, x = null;
6577
6582
  r && (x = new ResizeObserver((E) => {
6578
6583
  let [p] = E;
6579
- p && p.target === h && x && (x.unobserve(t), cancelAnimationFrame(u), u = requestAnimationFrame(() => {
6580
- var C;
6581
- (C = x) == null || C.observe(t);
6584
+ p && p.target === h && x && t && (x.unobserve(t), cancelAnimationFrame(u), u = requestAnimationFrame(() => {
6585
+ var y;
6586
+ (y = x) == null || y.observe(t);
6582
6587
  })), e();
6583
- }), h && !l && x.observe(h), x.observe(t));
6584
- let g, m = l ? G(c) : null;
6588
+ }), h && !l && x.observe(h), t && x.observe(t));
6589
+ let g, m = l ? U(c) : null;
6585
6590
  l && w();
6586
6591
  function w() {
6587
- const E = G(c);
6588
- m && !he(m, E) && e(), m = E, g = requestAnimationFrame(w);
6592
+ const E = U(c);
6593
+ m && !de(m, E) && e(), m = E, g = requestAnimationFrame(w);
6589
6594
  }
6590
6595
  return e(), () => {
6591
6596
  var E;
@@ -6594,20 +6599,20 @@ function Ct(c, t, e, i) {
6594
6599
  }), f == null || f(), (E = x) == null || E.disconnect(), x = null, l && cancelAnimationFrame(g);
6595
6600
  };
6596
6601
  }
6597
- const ct = ti, dt = ei, Mt = Ze, Si = qe, ft = (c, t, e) => {
6602
+ const dt = ii, ft = si, Ht = Qe, Ii = Je, ut = (c, t, e) => {
6598
6603
  const i = /* @__PURE__ */ new Map(), s = {
6599
- platform: Ri,
6604
+ platform: Ci,
6600
6605
  ...e
6601
6606
  }, o = {
6602
6607
  ...s.platform,
6603
6608
  _c: i
6604
6609
  };
6605
- return je(c, t, {
6610
+ return Ze(c, t, {
6606
6611
  ...s,
6607
6612
  platform: o
6608
6613
  });
6609
6614
  };
6610
- let Ti = class {
6615
+ let Ri = class {
6611
6616
  constructor(t) {
6612
6617
  n(this, "ctx");
6613
6618
  n(this, "enable", !1);
@@ -6677,7 +6682,7 @@ let Ti = class {
6677
6682
  return;
6678
6683
  this.enable = !0, this.contentEl.style.maxWidth = `${t.overflowTooltipMaxWidth || 500}px`, this.contentEl.style.minWidth = "100px", this.contentEl.style.width = "100%", this.contentEl.style.display = "inline-block", this.contentEl.style.wordBreak = "break-all", this.contentEl.style.lineHeight = "1.5", this.contentEl.innerText = i;
6679
6684
  const o = t.drawX + s.x, r = t.drawY + s.y;
6680
- ft({
6685
+ ut({
6681
6686
  getBoundingClientRect() {
6682
6687
  return {
6683
6688
  width: t.visibleWidth,
@@ -6692,7 +6697,7 @@ let Ti = class {
6692
6697
  }
6693
6698
  }, this.floatingEl, {
6694
6699
  placement: t.overflowTooltipPlacement,
6695
- middleware: [dt(), Mt(), ct(6), Si({ element: this.arrowEl })]
6700
+ middleware: [ft(), Ht(), dt(6), Ii({ element: this.arrowEl })]
6696
6701
  }).then((l) => {
6697
6702
  const { x: h, y: d, placement: f, middlewareData: u } = l;
6698
6703
  if (Object.assign(this.floatingEl.style, {
@@ -6731,7 +6736,7 @@ let Ti = class {
6731
6736
  this.contentEl.remove(), this.arrowEl.remove(), this.floatingEl.remove();
6732
6737
  }
6733
6738
  };
6734
- class Oi {
6739
+ class vi {
6735
6740
  constructor(t) {
6736
6741
  n(this, "editorEl");
6737
6742
  n(this, "inputEl");
@@ -6759,17 +6764,17 @@ class Oi {
6759
6764
  if (!this.ctx.isTarget(t) || !this.ctx.focusCell || this.ctx.finding)
6760
6765
  return;
6761
6766
  const { focusCell: e } = this.ctx;
6762
- if (e.isVerticalVisible() && e.isHorizontalVisible() || this.ctx.emit("scrollToIndex", e.rowIndex, e.colIndex), t.code === "Escape" && this.ctx.editing) {
6767
+ if (t.code === "Escape" && this.ctx.editing) {
6763
6768
  this.cancel = !0;
6764
- const { focusCell: f } = this.ctx;
6765
- f && (this.ctx.emit("setSelectorCell", f), this.cellTarget = f), this.doneEdit();
6769
+ const { focusCell: d } = this.ctx;
6770
+ d && (this.ctx.emit("setSelectorCell", d), this.cellTarget = d), this.doneEdit();
6766
6771
  return;
6767
6772
  }
6768
6773
  if ((t.altKey || t.metaKey) && t.key === "Enter" && this.ctx.editing && this.inputEl) {
6769
6774
  t.preventDefault();
6770
- const f = this.inputEl.selectionStart, u = this.inputEl.value.substring(0, f), x = this.inputEl.value.substring(f);
6771
- this.inputEl.value = u + `
6772
- ` + x, this.inputEl.selectionStart = this.inputEl.selectionEnd = f + 1, this.autoSize();
6775
+ const d = this.inputEl.selectionStart, f = this.inputEl.value.substring(0, d), u = this.inputEl.value.substring(d);
6776
+ this.inputEl.value = f + `
6777
+ ` + u, this.inputEl.selectionStart = this.inputEl.selectionEnd = d + 1, this.autoSize();
6773
6778
  return;
6774
6779
  }
6775
6780
  if (t.code === "Tab" && this.ctx.editing) {
@@ -6792,9 +6797,10 @@ class Oi {
6792
6797
  t.preventDefault(), this.startEdit();
6793
6798
  return;
6794
6799
  }
6795
- const s = t.key, o = t.ctrlKey, r = t.altKey, a = t.shiftKey, l = t.metaKey;
6796
- if (o || r || a || l || [
6800
+ const i = t.key, s = t.ctrlKey, o = t.altKey, r = t.shiftKey, a = t.metaKey;
6801
+ if (s || o || r || a || [
6797
6802
  "Enter",
6803
+ "CapsLock",
6798
6804
  "Escape",
6799
6805
  "Tab",
6800
6806
  "Backspace",
@@ -6820,7 +6826,7 @@ class Oi {
6820
6826
  "F10",
6821
6827
  "F11",
6822
6828
  "F12"
6823
- ].includes(s))
6829
+ ].includes(i))
6824
6830
  return;
6825
6831
  if (!(document.activeElement === this.inputEl) && e.editorType === "text") {
6826
6832
  t.preventDefault();
@@ -6901,24 +6907,23 @@ class Oi {
6901
6907
  if (!e)
6902
6908
  return;
6903
6909
  const i = this.ctx.focusCell;
6904
- if (!i || ["index", "index-selection", "selection"].includes(i.type) || this.enable || !(i.isVerticalVisible() && i.isHorizontalVisible()))
6905
- return;
6906
- const { rowKey: o, key: r } = i, a = this.ctx.database.getReadonly(o, r);
6907
- i && !a && (this.enable = !0, this.ctx.editing = !0, this.cellTarget = i, this.startEditByInput(this.cellTarget, t), this.ctx.emit("startEdit", this.cellTarget), this.ctx.emit("draw"));
6908
- }
6909
- editCell(t, e) {
6910
- const i = this.ctx.body.renderRows.find((h) => h.rowIndex === t);
6911
6910
  if (!i)
6912
6911
  return;
6913
- const s = i.cells.find((h) => h.colIndex === e);
6912
+ i.isVerticalVisible() && i.isHorizontalVisible() || this.ctx.emit("scrollToIndex", i.rowIndex, i.colIndex), this.editCell(i.rowIndex, i.colIndex, t);
6913
+ }
6914
+ editCell(t, e, i = !1) {
6915
+ const s = this.ctx.body.renderRows.find((f) => f.rowIndex === t);
6914
6916
  if (!s)
6915
6917
  return;
6916
- this.ctx.emit("setSelectorCell", s);
6917
- const o = this.ctx.focusCell;
6918
- if (!o || ["index", "index-selection", "selection"].includes(o.type) || this.enable)
6918
+ const o = s.cells.find((f) => f.colIndex === e);
6919
+ if (!o || !(o.isVerticalVisible() && o.isHorizontalVisible()))
6920
+ return;
6921
+ this.ctx.emit("setSelectorCell", o);
6922
+ const a = this.ctx.focusCell;
6923
+ if (!a || ["index", "index-selection", "selection"].includes(a.type) || this.enable)
6919
6924
  return;
6920
- const { rowKey: r, key: a } = o, l = this.ctx.database.getReadonly(r, a);
6921
- o && !l && (this.enable = !0, this.ctx.editing = !0, this.cellTarget = o, this.startEditByInput(this.cellTarget), this.ctx.emit("startEdit", this.cellTarget), this.ctx.emit("draw"));
6925
+ const { rowKey: l, key: h } = a, d = this.ctx.database.getReadonly(l, h);
6926
+ a && !d && (this.enable = !0, this.ctx.editing = !0, this.cellTarget = a, this.startEditByInput(this.cellTarget, i), this.ctx.emit("startEdit", this.cellTarget), this.ctx.emit("draw"));
6922
6927
  }
6923
6928
  doneEdit() {
6924
6929
  this.enable && (this.doneEditByInput(), this.ctx.emit("cellHideTooltip"), this.ctx.emit("doneEdit", this.cellTarget), this.enable = !1, this.ctx.editing = !1, this.resetEditorStyle(), setTimeout(() => {
@@ -6937,7 +6942,7 @@ class Oi {
6937
6942
  (t = this.editorEl) == null || t.remove();
6938
6943
  }
6939
6944
  }
6940
- let Li = class {
6945
+ let _i = class {
6941
6946
  constructor(t) {
6942
6947
  n(this, "ctx");
6943
6948
  n(this, "emptyEl");
@@ -6956,7 +6961,7 @@ let Li = class {
6956
6961
  this.emptyEl.remove();
6957
6962
  }
6958
6963
  };
6959
- class Mi {
6964
+ class Si {
6960
6965
  constructor(t) {
6961
6966
  n(this, "ctx");
6962
6967
  n(this, "observer");
@@ -6970,7 +6975,7 @@ class Mi {
6970
6975
  }
6971
6976
  init() {
6972
6977
  this.observer = new MutationObserver(
6973
- bt(() => {
6978
+ vt(() => {
6974
6979
  const t = this.ctx.overlayerElement.querySelectorAll('[data-auto-height="true"]'), e = /* @__PURE__ */ new Map();
6975
6980
  t.forEach((o) => {
6976
6981
  const r = Number(o.getAttribute("data-row-index")), a = Number(o.getAttribute("data-col-index"));
@@ -7197,7 +7202,7 @@ class Mi {
7197
7202
  };
7198
7203
  }
7199
7204
  }
7200
- class zt {
7205
+ class Ut {
7201
7206
  constructor(t, e = [], i = {}) {
7202
7207
  n(this, "container");
7203
7208
  n(this, "menuData");
@@ -7231,7 +7236,7 @@ class zt {
7231
7236
  const o = this.createElement("span", "e-virt-table-menu-item-text");
7232
7237
  if (o.textContent = t.label, s.appendChild(o), i.appendChild(s), (r = t.children) != null && r.length) {
7233
7238
  const a = this.createElement("span", "e-virt-table-menu-arrow");
7234
- a.innerHTML = nt, i.appendChild(a);
7239
+ a.innerHTML = at, i.appendChild(a);
7235
7240
  const l = this.createSubmenu(t.children);
7236
7241
  i._submenu = l, this.container.appendChild(l);
7237
7242
  }
@@ -7285,10 +7290,10 @@ class zt {
7285
7290
  async showSubmenu(t, e) {
7286
7291
  if (this.activeSubmenus.has(e)) return;
7287
7292
  this.activeSubmenus.add(e), e.classList.add("show");
7288
- const i = Ct(t, e, async () => {
7289
- const s = this.container.getBoundingClientRect(), o = window.innerWidth, r = e.offsetWidth || 200, a = o - s.right, l = s.left, h = a >= r || a >= l ? "right-start" : "left-start", { x: d, y: f } = await ft(t, e, {
7293
+ const i = Rt(t, e, async () => {
7294
+ const s = this.container.getBoundingClientRect(), o = window.innerWidth, r = e.offsetWidth || 200, a = o - s.right, l = s.left, h = a >= r || a >= l ? "right-start" : "left-start", { x: d, y: f } = await ut(t, e, {
7290
7295
  placement: h,
7291
- middleware: [ct(8), dt({ padding: 8 })]
7296
+ middleware: [dt(8), ft({ padding: 8 })]
7292
7297
  });
7293
7298
  Object.assign(e.style, {
7294
7299
  left: `${d}px`,
@@ -7355,10 +7360,10 @@ class zt {
7355
7360
  }),
7356
7361
  contextElement: document.body
7357
7362
  };
7358
- Ct(e, this.container, () => {
7359
- ft(e, this.container, {
7363
+ Rt(e, this.container, () => {
7364
+ ut(e, this.container, {
7360
7365
  placement: "right-start",
7361
- middleware: [ct(), dt(), Mt()]
7366
+ middleware: [dt(), ft(), Ht()]
7362
7367
  }).then(({ x: i, y: s }) => {
7363
7368
  this.container && Object.assign(this.container.style, {
7364
7369
  left: `${i}px`,
@@ -7420,7 +7425,7 @@ class zt {
7420
7425
  }), t.remove();
7421
7426
  }
7422
7427
  }
7423
- class Ai {
7428
+ class Ti {
7424
7429
  constructor(t) {
7425
7430
  n(this, "ctx");
7426
7431
  n(this, "contextMenuEl");
@@ -7441,7 +7446,7 @@ class Ai {
7441
7446
  if (r && (a = await r({ list: a, cell: t, hide: this.hide.bind(this) })), !i || a.length === 0) return;
7442
7447
  e.preventDefault();
7443
7448
  const { xArr: l, yArr: h } = this.ctx.selector, [d, f] = l, [u, x] = h, { rowIndex: g, colIndex: m } = t;
7444
- g >= u && g <= x && m >= d && m <= f || this.ctx.emit("setSelectorCell", t, e), this.currentDOMTreeMenu && this.currentDOMTreeMenu.destroy(), this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new zt(this.contextMenuEl, a, {
7449
+ g >= u && g <= x && m >= d && m <= f || this.ctx.emit("setSelectorCell", t, e), this.currentDOMTreeMenu && this.currentDOMTreeMenu.destroy(), this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new Ut(this.contextMenuEl, a, {
7445
7450
  onClick: (E, p) => {
7446
7451
  p === "copy" ? (this.ctx.emit("contextMenuCopy"), this.hide()) : p === "paste" ? (this.ctx.emit("contextMenuPaste"), this.hide()) : p === "cut" ? (this.ctx.emit("contextMenuCut"), this.hide()) : p === "clearSelected" ? (this.ctx.emit("contextMenuClearSelected"), this.hide()) : E.event && E.event(e, {
7447
7452
  hide: this.hide.bind(this),
@@ -7463,33 +7468,33 @@ class Ai {
7463
7468
  e.preventDefault();
7464
7469
  const { xArr: x } = this.ctx.selector, [g, m] = x, { colIndex: w } = t;
7465
7470
  w >= g && w <= m || (this.ctx.focusCellHeader = t, this.ctx.emit("selectCols", t)), this.currentDOMTreeMenu && this.currentDOMTreeMenu.destroy();
7466
- const p = this.ctx.database.getColumns(), C = u.map((b) => b.value === "visible" ? {
7471
+ const p = this.ctx.database.getColumns(), y = u.map((b) => b.value === "visible" ? {
7467
7472
  ...b,
7468
7473
  children: this.filterColumns(p)
7469
7474
  } : b);
7470
- this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new zt(this.contextMenuEl, C, {
7471
- onClick: (b, y) => {
7472
- const { xArr: I } = this.ctx.selector, [_, L] = I;
7473
- if (y === "fixedLeft" || y === "fixedRight" || y === "fixedNone") {
7474
- const R = this.ctx.header.allCellHeaders.filter((v) => v.colIndex >= _ && v.colIndex <= L).filter((v) => v.level === 0).filter((v) => !v.column.fixedDisabled).map((v) => v.key);
7475
+ this.ctx.contextMenuIng = !0, this.currentDOMTreeMenu = new Ut(this.contextMenuEl, y, {
7476
+ onClick: (b, C) => {
7477
+ const { xArr: R } = this.ctx.selector, [_, L] = R;
7478
+ if (C === "fixedLeft" || C === "fixedRight" || C === "fixedNone") {
7479
+ const v = this.ctx.header.allCellHeaders.filter((I) => I.colIndex >= _ && I.colIndex <= L).filter((I) => I.level === 0).filter((I) => !I.column.fixedDisabled).map((I) => I.key);
7475
7480
  this.ctx.database.setCustomHeaderFixedData(
7476
- R,
7477
- y === "fixedLeft" ? "left" : y === "fixedRight" ? "right" : ""
7481
+ v,
7482
+ C === "fixedLeft" ? "left" : C === "fixedRight" ? "right" : ""
7478
7483
  ), this.hide();
7479
- } else if (y === "hide") {
7480
- const R = this.ctx.header.leafCellHeaders.filter((v) => v.colIndex >= _ && v.colIndex <= L).filter((v) => !v.children.length).filter((v) => !v.column.hideDisabled).map((v) => v.key);
7481
- R.length > 0 && this.ctx.database.setCustomHeaderHideData(R, !0), this.hide();
7482
- } else if (y !== "visible") if (y.startsWith("visible_")) {
7484
+ } else if (C === "hide") {
7485
+ const v = this.ctx.header.leafCellHeaders.filter((I) => I.colIndex >= _ && I.colIndex <= L).filter((I) => !I.children.length).filter((I) => !I.column.hideDisabled).map((I) => I.key);
7486
+ v.length > 0 && this.ctx.database.setCustomHeaderHideData(v, !0), this.hide();
7487
+ } else if (C !== "visible") if (C.startsWith("visible_")) {
7483
7488
  if (!b.key) return;
7484
7489
  if (b.children) {
7485
7490
  const T = this.getLeafKeys(b.children);
7486
7491
  this.ctx.database.setCustomHeaderHideData(T, !1);
7487
7492
  } else
7488
7493
  this.ctx.database.setCustomHeaderHideData([b.key], !1);
7489
- this.currentDOMTreeMenu && this.currentDOMTreeMenu.removeSubMenuItem(y);
7490
- const R = this.ctx.database.getColumns();
7491
- J(R).filter((T) => T.hide).length === 0 && this.hide();
7492
- } else y === "resetHeader" ? (this.ctx.database.resetCustomHeader(), this.hide()) : b.event && b.event(e, {
7494
+ this.currentDOMTreeMenu && this.currentDOMTreeMenu.removeSubMenuItem(C);
7495
+ const v = this.ctx.database.getColumns();
7496
+ Q(v).filter((T) => T.hide).length === 0 && this.hide();
7497
+ } else C === "resetHeader" ? (this.ctx.database.resetCustomHeader(), this.hide()) : b.event && b.event(e, {
7493
7498
  hide: this.hide.bind(this),
7494
7499
  cell: t
7495
7500
  });
@@ -7513,10 +7518,10 @@ class Ai {
7513
7518
  }),
7514
7519
  contextElement: document.body
7515
7520
  };
7516
- Ct(e, this.contextMenuEl, () => {
7517
- ft(e, this.contextMenuEl, {
7521
+ Rt(e, this.contextMenuEl, () => {
7522
+ ut(e, this.contextMenuEl, {
7518
7523
  placement: "right-start",
7519
- middleware: [ct(), dt(), Mt()]
7524
+ middleware: [dt(), ft(), Ht()]
7520
7525
  }).then(({ x: i, y: s }) => {
7521
7526
  this.contextMenuEl && Object.assign(this.contextMenuEl.style, {
7522
7527
  left: `${i}px`,
@@ -7552,7 +7557,7 @@ class Ai {
7552
7557
  this.hide(), (t = this.contextMenuEl) == null || t.remove();
7553
7558
  }
7554
7559
  }
7555
- class Hi {
7560
+ class Oi {
7556
7561
  constructor(t) {
7557
7562
  n(this, "ctx");
7558
7563
  n(this, "loadingEl");
@@ -7582,7 +7587,7 @@ class Hi {
7582
7587
  this.loadingEl.remove();
7583
7588
  }
7584
7589
  }
7585
- class Di {
7590
+ class Li {
7586
7591
  constructor(t) {
7587
7592
  n(this, "ctx");
7588
7593
  n(this, "container");
@@ -7656,10 +7661,10 @@ class Di {
7656
7661
  t.className = "e-virt-table-finder-bar";
7657
7662
  const e = document.createElement("div");
7658
7663
  e.className = "e-virt-table-finder-bar-input-wrapper", this.input = document.createElement("input"), this.input.type = "text", this.input.className = "e-virt-table-finder-bar-input", this.input.placeholder = "", e.appendChild(this.input), this.loadingEl = document.createElement("div"), this.loadingEl.className = "e-virt-table-finder-bar-loading";
7659
- const i = Zt;
7664
+ const i = te;
7660
7665
  this.loadingEl.innerHTML = i, e.appendChild(this.loadingEl), this.countEl = document.createElement("span"), this.countEl.className = "e-virt-table-finder-bar-count";
7661
7666
  const s = document.createElement("div");
7662
- return s.className = "e-virt-table-finder-bar-nav", this.prevBtn = document.createElement("button"), this.prevBtn.className = "e-virt-table-finder-bar-nav-btn prev-btn", this.prevBtn.innerHTML = nt, this.nextBtn = document.createElement("button"), this.nextBtn.className = "e-virt-table-finder-bar-nav-btn next-btn", this.nextBtn.innerHTML = nt, s.appendChild(this.prevBtn), s.appendChild(this.nextBtn), this.closeBtn = document.createElement("button"), this.closeBtn.className = "e-virt-table-finder-bar-nav-btn close-btn", this.closeBtn.innerHTML = "×", t.appendChild(e), t.appendChild(this.countEl), t.appendChild(s), t.appendChild(this.closeBtn), t;
7667
+ return s.className = "e-virt-table-finder-bar-nav", this.prevBtn = document.createElement("button"), this.prevBtn.className = "e-virt-table-finder-bar-nav-btn prev-btn", this.prevBtn.innerHTML = at, this.nextBtn = document.createElement("button"), this.nextBtn.className = "e-virt-table-finder-bar-nav-btn next-btn", this.nextBtn.innerHTML = at, s.appendChild(this.prevBtn), s.appendChild(this.nextBtn), this.closeBtn = document.createElement("button"), this.closeBtn.className = "e-virt-table-finder-bar-nav-btn close-btn", this.closeBtn.innerHTML = "×", t.appendChild(e), t.appendChild(this.countEl), t.appendChild(s), t.appendChild(this.closeBtn), t;
7663
7668
  }
7664
7669
  bindEvents() {
7665
7670
  this.input.addEventListener("input", () => {
@@ -7741,7 +7746,7 @@ class Di {
7741
7746
  this.hide(), this.container.remove();
7742
7747
  }
7743
7748
  }
7744
- class Xi {
7749
+ class Di {
7745
7750
  constructor(t, e) {
7746
7751
  n(this, "options");
7747
7752
  n(this, "scroller");
@@ -7767,7 +7772,7 @@ class Xi {
7767
7772
  o,
7768
7773
  r
7769
7774
  );
7770
- this.ctx = new Me(a, this.options), this.header = new De(this.ctx), this.footer = new ke(this.ctx), this.body = new Ne(this.ctx), this.scroller = new Ae(this.ctx), this.selector = new Be(this.ctx), this.autofill = new Xe(this.ctx), this.tooltip = new Ti(this.ctx), this.empty = new Li(this.ctx), this.editor = new Oi(this.ctx), this.overlayer = new Mi(this.ctx), this.contextMenu = new Ai(this.ctx), this.loading = new Hi(this.ctx), this.finderBar = new Di(this.ctx), this.ctx.on("draw", () => {
7775
+ this.ctx = new He(a, this.options), this.header = new ke(this.ctx), this.footer = new Xe(this.ctx), this.body = new Be(this.ctx), this.scroller = new De(this.ctx), this.selector = new Ye(this.ctx), this.autofill = new Ke(this.ctx), this.tooltip = new Ri(this.ctx), this.empty = new _i(this.ctx), this.editor = new vi(this.ctx), this.overlayer = new Si(this.ctx), this.contextMenu = new Ti(this.ctx), this.loading = new Oi(this.ctx), this.finderBar = new Li(this.ctx), this.ctx.on("draw", () => {
7771
7776
  this.draw();
7772
7777
  }), this.ctx.on("drawView", () => {
7773
7778
  this.draw(!0);
@@ -8033,10 +8038,10 @@ class Xi {
8033
8038
  }
8034
8039
  getUtils() {
8035
8040
  return {
8036
- mergeColCell: pe,
8037
- mergeRowCell: Ee,
8038
- getSpanArrByRow: Ut,
8039
- getSpanObjByColumn: jt
8041
+ mergeColCell: Ce,
8042
+ mergeRowCell: ye,
8043
+ getSpanArrByRow: Zt,
8044
+ getSpanObjByColumn: Jt
8040
8045
  };
8041
8046
  }
8042
8047
  getColumnByKey(t) {
@@ -8057,6 +8062,6 @@ class Xi {
8057
8062
  }
8058
8063
  }
8059
8064
  export {
8060
- Xi as default
8065
+ Di as default
8061
8066
  };
8062
8067
  //# sourceMappingURL=index.es.js.map