e-virt-table 1.2.8 → 1.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.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-stripe-color: #fafafa;--evt-placeholder-color: #cdd0dc;--evt-header-bg-color: #f8faff;--evt-body-bg-color: #fff;--evt-header-text-color: #1d2129;--evt-loading-icon-color: #4e5969;--evt-expand-icon-color: #4e5969;--evt-shrink-icon-color: #4e5969;--evt-error-tip-icon-color: red;--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: transparent;--evt-autofill-point-border-color: #fff;--evt-edit-bg-color: #fcf6ed;--evt-checkbox-color: var(--evt-color-primary);--evt-readonly-color: #fff;--evt-readonly-text-color: #4e5969;--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-line-color: #e1e6eb}.dark{--evt-border-color: #363637;--evt-header-bg-color: #141414;--evt-body-bg-color: #141414;--evt-header-text-color: #a3a6ad;--evt-scroller-color: #414243;--evt-scroller-track-color: #141414;--evt-scroller-focus-color: #a3a6ad;--evt-edit-bg-color: #141414;--evt-readonly-text-color: #cfd3dc;--evt-footer-bg-color: #262727;--evt-autofill-point-border-color: #fff;--evt-editor-bg-color: #434343;--evt-editor-text-color: #cfd3dc}.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;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:8px 24px;color:var(--evt-text-color-regular)}.e-virt-table-context-menu-item:hover{color:var(--evt-color-primary);background-color:#f5f7fa}')),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.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-stripe-color: #fafafa;--evt-placeholder-color: #cdd0dc;--evt-header-bg-color: #f8faff;--evt-body-bg-color: #fff;--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-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: transparent;--evt-autofill-point-border-color: #fff;--evt-edit-bg-color: #fcf6ed;--evt-checkbox-color: var(--evt-color-primary);--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-line-color: #e1e6eb}.dark{--evt-border-color: #363637;--evt-header-bg-color: #141414;--evt-body-bg-color: #141414;--evt-header-text-color: #a3a6ad;--evt-scroller-color: #414243;--evt-scroller-track-color: #141414;--evt-scroller-focus-color: #a3a6ad;--evt-edit-bg-color: #141414;--evt-readonly-text-color: #cfd3dc;--evt-footer-bg-color: #262727;--evt-autofill-point-border-color: #fff;--evt-editor-bg-color: #434343;--evt-editor-text-color: #cfd3dc}.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;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:8px 24px;color:var(--evt-text-color-regular)}.e-virt-table-context-menu-item:hover{color:var(--evt-color-primary);background-color:#f5f7fa}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  var be = Object.defineProperty;
3
3
  var ve = (a, t, e) => t in a ? be(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
4
4
  var l = (a, t, e) => ve(a, typeof t != "symbol" ? t + "" : t, e);
@@ -25,7 +25,7 @@ function st(a, t) {
25
25
  return i.__proto__ = s, i;
26
26
  }, st(a, t);
27
27
  }
28
- function Ie() {
28
+ function _e() {
29
29
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
30
30
  if (typeof Proxy == "function") return !0;
31
31
  try {
@@ -36,20 +36,20 @@ function Ie() {
36
36
  }
37
37
  }
38
38
  function dt(a, t, e) {
39
- return Ie() ? dt = Reflect.construct.bind() : dt = function(s, r, o) {
39
+ return _e() ? dt = Reflect.construct.bind() : dt = function(s, r, o) {
40
40
  var n = [null];
41
41
  n.push.apply(n, r);
42
42
  var h = Function.bind.apply(s, n), c = new h();
43
43
  return o && st(c, o.prototype), c;
44
44
  }, dt.apply(null, arguments);
45
45
  }
46
- function _e(a) {
46
+ function Ie(a) {
47
47
  return Function.toString.call(a).indexOf("[native code]") !== -1;
48
48
  }
49
49
  function Ct(a) {
50
50
  var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
51
51
  return Ct = function(i) {
52
- if (i === null || !_e(i)) return i;
52
+ if (i === null || !Ie(i)) return i;
53
53
  if (typeof i != "function")
54
54
  throw new TypeError("Super expression must either be null or a function");
55
55
  if (typeof t < "u") {
@@ -131,7 +131,7 @@ function Se(a, t, e) {
131
131
  t(n, o);
132
132
  });
133
133
  }
134
- function Xt(a, t, e) {
134
+ function Nt(a, t, e) {
135
135
  var i = 0, s = a.length;
136
136
  function r(o) {
137
137
  if (o && o.length) {
@@ -143,7 +143,7 @@ function Xt(a, t, e) {
143
143
  }
144
144
  r([]);
145
145
  }
146
- function Ae(a) {
146
+ function Te(a) {
147
147
  var t = [];
148
148
  return Object.keys(a).forEach(function(e) {
149
149
  t.push.apply(t, a[e] || []);
@@ -157,26 +157,26 @@ var Ft = /* @__PURE__ */ function(a) {
157
157
  }
158
158
  return t;
159
159
  }(/* @__PURE__ */ Ct(Error));
160
- function Te(a, t, e, i, s) {
160
+ function Ae(a, t, e, i, s) {
161
161
  if (t.first) {
162
162
  var r = new Promise(function(x, g) {
163
- var p = function(m) {
164
- return i(m), m.length ? g(new Ft(m, bt(m))) : x(s);
165
- }, u = Ae(a);
166
- Xt(u, e, p);
163
+ var m = function(p) {
164
+ return i(p), p.length ? g(new Ft(p, bt(p))) : x(s);
165
+ }, u = Te(a);
166
+ Nt(u, e, m);
167
167
  });
168
168
  return r.catch(function(x) {
169
169
  return x;
170
170
  }), r;
171
171
  }
172
172
  var o = t.firstFields === !0 ? Object.keys(a) : t.firstFields || [], n = Object.keys(a), h = n.length, c = 0, d = [], f = new Promise(function(x, g) {
173
- var p = function(w) {
173
+ var m = function(w) {
174
174
  if (d.push.apply(d, w), c++, c === h)
175
175
  return i(d), d.length ? g(new Ft(d, bt(d))) : x(s);
176
176
  };
177
177
  n.length || (i(d), x(s)), n.forEach(function(u) {
178
178
  var w = a[u];
179
- o.indexOf(u) !== -1 ? Xt(w, e, p) : Se(w, e, p);
179
+ o.indexOf(u) !== -1 ? Nt(w, e, m) : Se(w, e, m);
180
180
  });
181
181
  });
182
182
  return f.catch(function(x) {
@@ -218,7 +218,7 @@ var Zt = function(t, e, i, s, r, o) {
218
218
  t.required && (!i.hasOwnProperty(t.field) || H(e, o || t.type)) && s.push(D(r.messages.required, t.fullField));
219
219
  }, De = function(t, e, i, s, r) {
220
220
  (/^\s+$/.test(e) || e === "") && s.push(D(r.messages.whitespace, t.fullField));
221
- }, ct, Ne = function() {
221
+ }, ct, Xe = function() {
222
222
  if (ct)
223
223
  return ct;
224
224
  var a = "[a-fA-F\\d:]", t = function(b) {
@@ -242,7 +242,7 @@ var Zt = function(t, e, i, s, r, o) {
242
242
  }, h.v6 = function(y) {
243
243
  return y && y.exact ? n : new RegExp("" + t(y) + s + t(y), "g");
244
244
  };
245
- var c = "(?:(?:[a-z]+:)?//)", d = "(?:\\S+(?::\\S*)?@)?", f = h.v4().source, x = h.v6().source, g = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", p = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", u = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", w = "(?::\\d{2,5})?", m = '(?:[/?#][^\\s"]*)?', C = "(?:" + c + "|www\\.)" + d + "(?:localhost|" + f + "|" + x + "|" + g + p + u + ")" + w + m;
245
+ var c = "(?:(?:[a-z]+:)?//)", d = "(?:\\S+(?::\\S*)?@)?", f = h.v4().source, x = h.v6().source, g = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", m = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", u = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", w = "(?::\\d{2,5})?", p = '(?:[/?#][^\\s"]*)?', C = "(?:" + c + "|www\\.)" + d + "(?:localhost|" + f + "|" + x + "|" + g + m + u + ")" + w + p;
246
246
  return ct = new RegExp("(?:^" + C + "$)", "i"), ct;
247
247
  }, Kt = {
248
248
  // http://emailregex.com/
@@ -287,12 +287,12 @@ var Zt = function(t, e, i, s, r, o) {
287
287
  return typeof t == "string" && t.length <= 320 && !!t.match(Kt.email);
288
288
  },
289
289
  url: function(t) {
290
- return typeof t == "string" && t.length <= 2048 && !!t.match(Ne());
290
+ return typeof t == "string" && t.length <= 2048 && !!t.match(Xe());
291
291
  },
292
292
  hex: function(t) {
293
293
  return typeof t == "string" && !!t.match(Kt.hex);
294
294
  }
295
- }, Xe = function(t, e, i, s, r) {
295
+ }, Ne = function(t, e, i, s, r) {
296
296
  if (t.required && e === void 0) {
297
297
  Zt(t, e, i, s, r);
298
298
  return;
@@ -300,10 +300,10 @@ var Zt = function(t, e, i, s, r, o) {
300
300
  var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], n = t.type;
301
301
  o.indexOf(n) > -1 ? et[n](e) || s.push(D(r.messages.types[n], t.fullField, t.type)) : n && typeof e !== t.type && s.push(D(r.messages.types[n], t.fullField, t.type));
302
302
  }, Fe = function(t, e, i, s, r) {
303
- var o = typeof t.len == "number", n = typeof t.min == "number", h = typeof t.max == "number", c = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, d = e, f = null, x = typeof e == "number", g = typeof e == "string", p = Array.isArray(e);
304
- if (x ? f = "number" : g ? f = "string" : p && (f = "array"), !f)
303
+ var o = typeof t.len == "number", n = typeof t.min == "number", h = typeof t.max == "number", c = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, d = e, f = null, x = typeof e == "number", g = typeof e == "string", m = Array.isArray(e);
304
+ if (x ? f = "number" : g ? f = "string" : m && (f = "array"), !f)
305
305
  return !1;
306
- p && (d = e.length), g && (d = e.replace(c, "_").length), o ? d !== t.len && s.push(D(r.messages[f].len, t.fullField, t.len)) : n && !h && d < t.min ? s.push(D(r.messages[f].min, t.fullField, t.min)) : h && !n && d > t.max ? s.push(D(r.messages[f].max, t.fullField, t.max)) : n && h && (d < t.min || d > t.max) && s.push(D(r.messages[f].range, t.fullField, t.min, t.max));
306
+ m && (d = e.length), g && (d = e.replace(c, "_").length), o ? d !== t.len && s.push(D(r.messages[f].len, t.fullField, t.len)) : n && !h && d < t.min ? s.push(D(r.messages[f].min, t.fullField, t.min)) : h && !n && d > t.max ? s.push(D(r.messages[f].max, t.fullField, t.max)) : n && h && (d < t.min || d > t.max) && s.push(D(r.messages[f].range, t.fullField, t.min, t.max));
307
307
  }, j = "enum", Be = function(t, e, i, s, r) {
308
308
  t[j] = Array.isArray(t[j]) ? t[j] : [], t[j].indexOf(e) === -1 && s.push(D(r.messages[j], t.fullField, t[j].join(", ")));
309
309
  }, ke = function(t, e, i, s, r) {
@@ -315,10 +315,10 @@ var Zt = function(t, e, i, s, r, o) {
315
315
  o.test(e) || s.push(D(r.messages.pattern.mismatch, t.fullField, e, t.pattern));
316
316
  }
317
317
  }
318
- }, O = {
318
+ }, L = {
319
319
  required: Zt,
320
320
  whitespace: De,
321
- type: Xe,
321
+ type: Ne,
322
322
  range: Fe,
323
323
  enum: Be,
324
324
  pattern: ke
@@ -327,7 +327,7 @@ var Zt = function(t, e, i, s, r, o) {
327
327
  if (n) {
328
328
  if (H(e, "string") && !t.required)
329
329
  return i();
330
- O.required(t, e, s, o, r, "string"), H(e, "string") || (O.type(t, e, s, o, r), O.range(t, e, s, o, r), O.pattern(t, e, s, o, r), t.whitespace === !0 && O.whitespace(t, e, s, o, r));
330
+ L.required(t, e, s, o, r, "string"), H(e, "string") || (L.type(t, e, s, o, r), L.range(t, e, s, o, r), L.pattern(t, e, s, o, r), t.whitespace === !0 && L.whitespace(t, e, s, o, r));
331
331
  }
332
332
  i(o);
333
333
  }, Ye = function(t, e, i, s, r) {
@@ -335,7 +335,7 @@ var Zt = function(t, e, i, s, r, o) {
335
335
  if (n) {
336
336
  if (H(e) && !t.required)
337
337
  return i();
338
- O.required(t, e, s, o, r), e !== void 0 && O.type(t, e, s, o, r);
338
+ L.required(t, e, s, o, r), e !== void 0 && L.type(t, e, s, o, r);
339
339
  }
340
340
  i(o);
341
341
  }, Ve = function(t, e, i, s, r) {
@@ -343,7 +343,7 @@ var Zt = function(t, e, i, s, r, o) {
343
343
  if (n) {
344
344
  if (e === "" && (e = void 0), H(e) && !t.required)
345
345
  return i();
346
- O.required(t, e, s, o, r), e !== void 0 && (O.type(t, e, s, o, r), O.range(t, e, s, o, r));
346
+ L.required(t, e, s, o, r), e !== void 0 && (L.type(t, e, s, o, r), L.range(t, e, s, o, r));
347
347
  }
348
348
  i(o);
349
349
  }, We = function(t, e, i, s, r) {
@@ -351,7 +351,7 @@ var Zt = function(t, e, i, s, r, o) {
351
351
  if (n) {
352
352
  if (H(e) && !t.required)
353
353
  return i();
354
- O.required(t, e, s, o, r), e !== void 0 && O.type(t, e, s, o, r);
354
+ L.required(t, e, s, o, r), e !== void 0 && L.type(t, e, s, o, r);
355
355
  }
356
356
  i(o);
357
357
  }, Pe = function(t, e, i, s, r) {
@@ -359,7 +359,7 @@ var Zt = function(t, e, i, s, r, o) {
359
359
  if (n) {
360
360
  if (H(e) && !t.required)
361
361
  return i();
362
- O.required(t, e, s, o, r), H(e) || O.type(t, e, s, o, r);
362
+ L.required(t, e, s, o, r), H(e) || L.type(t, e, s, o, r);
363
363
  }
364
364
  i(o);
365
365
  }, ze = function(t, e, i, s, r) {
@@ -367,7 +367,7 @@ var Zt = function(t, e, i, s, r, o) {
367
367
  if (n) {
368
368
  if (H(e) && !t.required)
369
369
  return i();
370
- O.required(t, e, s, o, r), e !== void 0 && (O.type(t, e, s, o, r), O.range(t, e, s, o, r));
370
+ L.required(t, e, s, o, r), e !== void 0 && (L.type(t, e, s, o, r), L.range(t, e, s, o, r));
371
371
  }
372
372
  i(o);
373
373
  }, $e = function(t, e, i, s, r) {
@@ -375,7 +375,7 @@ var Zt = function(t, e, i, s, r, o) {
375
375
  if (n) {
376
376
  if (H(e) && !t.required)
377
377
  return i();
378
- O.required(t, e, s, o, r), e !== void 0 && (O.type(t, e, s, o, r), O.range(t, e, s, o, r));
378
+ L.required(t, e, s, o, r), e !== void 0 && (L.type(t, e, s, o, r), L.range(t, e, s, o, r));
379
379
  }
380
380
  i(o);
381
381
  }, qe = function(t, e, i, s, r) {
@@ -383,7 +383,7 @@ var Zt = function(t, e, i, s, r, o) {
383
383
  if (n) {
384
384
  if (e == null && !t.required)
385
385
  return i();
386
- O.required(t, e, s, o, r, "array"), e != null && (O.type(t, e, s, o, r), O.range(t, e, s, o, r));
386
+ L.required(t, e, s, o, r, "array"), e != null && (L.type(t, e, s, o, r), L.range(t, e, s, o, r));
387
387
  }
388
388
  i(o);
389
389
  }, Ge = function(t, e, i, s, r) {
@@ -391,7 +391,7 @@ var Zt = function(t, e, i, s, r, o) {
391
391
  if (n) {
392
392
  if (H(e) && !t.required)
393
393
  return i();
394
- O.required(t, e, s, o, r), e !== void 0 && O.type(t, e, s, o, r);
394
+ L.required(t, e, s, o, r), e !== void 0 && L.type(t, e, s, o, r);
395
395
  }
396
396
  i(o);
397
397
  }, je = "enum", Ue = function(t, e, i, s, r) {
@@ -399,7 +399,7 @@ var Zt = function(t, e, i, s, r, o) {
399
399
  if (n) {
400
400
  if (H(e) && !t.required)
401
401
  return i();
402
- O.required(t, e, s, o, r), e !== void 0 && O[je](t, e, s, o, r);
402
+ L.required(t, e, s, o, r), e !== void 0 && L[je](t, e, s, o, r);
403
403
  }
404
404
  i(o);
405
405
  }, Ze = function(t, e, i, s, r) {
@@ -407,7 +407,7 @@ var Zt = function(t, e, i, s, r, o) {
407
407
  if (n) {
408
408
  if (H(e, "string") && !t.required)
409
409
  return i();
410
- O.required(t, e, s, o, r), H(e, "string") || O.pattern(t, e, s, o, r);
410
+ L.required(t, e, s, o, r), H(e, "string") || L.pattern(t, e, s, o, r);
411
411
  }
412
412
  i(o);
413
413
  }, Je = function(t, e, i, s, r) {
@@ -415,21 +415,21 @@ var Zt = function(t, e, i, s, r, o) {
415
415
  if (n) {
416
416
  if (H(e, "date") && !t.required)
417
417
  return i();
418
- if (O.required(t, e, s, o, r), !H(e, "date")) {
418
+ if (L.required(t, e, s, o, r), !H(e, "date")) {
419
419
  var h;
420
- e instanceof Date ? h = e : h = new Date(e), O.type(t, h, s, o, r), h && O.range(t, h.getTime(), s, o, r);
420
+ e instanceof Date ? h = e : h = new Date(e), L.type(t, h, s, o, r), h && L.range(t, h.getTime(), s, o, r);
421
421
  }
422
422
  }
423
423
  i(o);
424
424
  }, Qe = function(t, e, i, s, r) {
425
425
  var o = [], n = Array.isArray(e) ? "array" : typeof e;
426
- O.required(t, e, s, o, r, n), i(o);
426
+ L.required(t, e, s, o, r, n), i(o);
427
427
  }, mt = function(t, e, i, s, r) {
428
428
  var o = t.type, n = [], h = t.required || !t.required && s.hasOwnProperty(t.field);
429
429
  if (h) {
430
430
  if (H(e, o) && !t.required)
431
431
  return i();
432
- O.required(t, e, s, n, r, o), H(e, o) || O.type(t, e, s, n, r);
432
+ L.required(t, e, s, n, r, o), H(e, o) || L.type(t, e, s, n, r);
433
433
  }
434
434
  i(n);
435
435
  }, ti = function(t, e, i, s, r) {
@@ -437,7 +437,7 @@ var Zt = function(t, e, i, s, r, o) {
437
437
  if (n) {
438
438
  if (H(e) && !t.required)
439
439
  return i();
440
- O.required(t, e, s, o, r);
440
+ L.required(t, e, s, o, r);
441
441
  }
442
442
  i(o);
443
443
  }, it = {
@@ -537,7 +537,7 @@ var Rt = vt(), nt = /* @__PURE__ */ function() {
537
537
  if (typeof h == "function" && (c = h, h = {}), !this.rules || Object.keys(this.rules).length === 0)
538
538
  return c && c(null, n), Promise.resolve(n);
539
539
  function d(u) {
540
- var w = [], m = {};
540
+ var w = [], p = {};
541
541
  function C(b) {
542
542
  if (Array.isArray(b)) {
543
543
  var E;
@@ -547,7 +547,7 @@ var Rt = vt(), nt = /* @__PURE__ */ function() {
547
547
  }
548
548
  for (var y = 0; y < u.length; y++)
549
549
  C(u[y]);
550
- w.length ? (m = bt(w), c(w, m)) : c(null, n);
550
+ w.length ? (p = bt(w), c(w, p)) : c(null, n);
551
551
  }
552
552
  if (h.messages) {
553
553
  var f = this.messages();
@@ -556,74 +556,74 @@ var Rt = vt(), nt = /* @__PURE__ */ function() {
556
556
  h.messages = this.messages();
557
557
  var x = {}, g = h.keys || Object.keys(this.rules);
558
558
  g.forEach(function(u) {
559
- var w = o.rules[u], m = n[u];
559
+ var w = o.rules[u], p = n[u];
560
560
  w.forEach(function(C) {
561
561
  var y = C;
562
- typeof y.transform == "function" && (n === i && (n = q({}, n)), m = n[u] = y.transform(m)), typeof y == "function" ? y = {
562
+ typeof y.transform == "function" && (n === i && (n = q({}, n)), p = n[u] = y.transform(p)), typeof y == "function" ? y = {
563
563
  validator: y
564
564
  } : y = q({}, y), y.validator = o.getValidationMethod(y), y.validator && (y.field = u, y.fullField = y.fullField || u, y.type = o.getType(y), x[u] = x[u] || [], x[u].push({
565
565
  rule: y,
566
- value: m,
566
+ value: p,
567
567
  source: n,
568
568
  field: u
569
569
  }));
570
570
  });
571
571
  });
572
- var p = {};
573
- return Te(x, h, function(u, w) {
574
- var m = u.rule, C = (m.type === "object" || m.type === "array") && (typeof m.fields == "object" || typeof m.defaultField == "object");
575
- C = C && (m.required || !m.required && u.value), m.field = u.field;
576
- function y(v, _) {
577
- return q({}, _, {
578
- fullField: m.fullField + "." + v,
579
- fullFields: m.fullFields ? [].concat(m.fullFields, [v]) : [v]
572
+ var m = {};
573
+ return Ae(x, h, function(u, w) {
574
+ var p = u.rule, C = (p.type === "object" || p.type === "array") && (typeof p.fields == "object" || typeof p.defaultField == "object");
575
+ C = C && (p.required || !p.required && u.value), p.field = u.field;
576
+ function y(R, O) {
577
+ return q({}, O, {
578
+ fullField: p.fullField + "." + R,
579
+ fullFields: p.fullFields ? [].concat(p.fullFields, [R]) : [R]
580
580
  });
581
581
  }
582
- function b(v) {
583
- v === void 0 && (v = []);
584
- var _ = Array.isArray(v) ? v : [v];
585
- !h.suppressWarning && _.length && a.warning("async-validator:", _), _.length && m.message !== void 0 && (_ = [].concat(m.message));
586
- var L = _.map(Bt(m, n));
587
- if (h.first && L.length)
588
- return p[m.field] = 1, w(L);
582
+ function b(R) {
583
+ R === void 0 && (R = []);
584
+ var O = Array.isArray(R) ? R : [R];
585
+ !h.suppressWarning && O.length && a.warning("async-validator:", O), O.length && p.message !== void 0 && (O = [].concat(p.message));
586
+ var I = O.map(Bt(p, n));
587
+ if (h.first && I.length)
588
+ return m[p.field] = 1, w(I);
589
589
  if (!C)
590
- w(L);
590
+ w(I);
591
591
  else {
592
- if (m.required && !u.value)
593
- return m.message !== void 0 ? L = [].concat(m.message).map(Bt(m, n)) : h.error && (L = [h.error(m, D(h.messages.required, m.field))]), w(L);
594
- var I = {};
595
- m.defaultField && Object.keys(u.value).map(function(S) {
596
- I[S] = m.defaultField;
597
- }), I = q({}, I, u.rule.fields);
598
- var R = {};
599
- Object.keys(I).forEach(function(S) {
600
- var M = I[S], T = Array.isArray(M) ? M : [M];
601
- R[S] = T.map(y.bind(null, S));
592
+ if (p.required && !u.value)
593
+ return p.message !== void 0 ? I = [].concat(p.message).map(Bt(p, n)) : h.error && (I = [h.error(p, D(h.messages.required, p.field))]), w(I);
594
+ var _ = {};
595
+ p.defaultField && Object.keys(u.value).map(function(T) {
596
+ _[T] = p.defaultField;
597
+ }), _ = q({}, _, u.rule.fields);
598
+ var v = {};
599
+ Object.keys(_).forEach(function(T) {
600
+ var M = _[T], A = Array.isArray(M) ? M : [M];
601
+ v[T] = A.map(y.bind(null, T));
602
602
  });
603
- var A = new a(R);
604
- A.messages(h.messages), u.rule.options && (u.rule.options.messages = h.messages, u.rule.options.error = h.error), A.validate(u.value, u.rule.options || h, function(S) {
603
+ var S = new a(v);
604
+ S.messages(h.messages), u.rule.options && (u.rule.options.messages = h.messages, u.rule.options.error = h.error), S.validate(u.value, u.rule.options || h, function(T) {
605
605
  var M = [];
606
- L && L.length && M.push.apply(M, L), S && S.length && M.push.apply(M, S), w(M.length ? M : null);
606
+ I && I.length && M.push.apply(M, I), T && T.length && M.push.apply(M, T), w(M.length ? M : null);
607
607
  });
608
608
  }
609
609
  }
610
610
  var E;
611
- if (m.asyncValidator)
612
- E = m.asyncValidator(m, u.value, b, u.source, h);
613
- else if (m.validator) {
611
+ if (p.asyncValidator)
612
+ E = p.asyncValidator(p, u.value, b, u.source, h);
613
+ else if (p.validator) {
614
614
  try {
615
- E = m.validator(m, u.value, b, u.source, h);
616
- } catch (v) {
617
- console.error == null || console.error(v), h.suppressValidatorError || setTimeout(function() {
618
- throw v;
619
- }, 0), b(v.message);
615
+ E = p.validator(p, u.value, b, u.source, h);
616
+ } catch (R) {
617
+ console.error == null || console.error(R), h.suppressValidatorError || setTimeout(function() {
618
+ throw R;
619
+ }, 0), b(R.message);
620
620
  }
621
- E === !0 ? b() : E === !1 ? b(typeof m.message == "function" ? m.message(m.fullField || m.field) : m.message || (m.fullField || m.field) + " fails") : E instanceof Array ? b(E) : E instanceof Error && b(E.message);
621
+ E === !0 ? b() : E === !1 ? b(typeof p.message == "function" ? p.message(p.fullField || p.field) : p.message || (p.fullField || p.field) + " fails") : E instanceof Array ? b(E) : E instanceof Error && b(E.message);
622
622
  }
623
623
  E && E.then && E.then(function() {
624
624
  return b();
625
- }, function(v) {
626
- return b(v);
625
+ }, function(R) {
626
+ return b(R);
627
627
  });
628
628
  }, function(u) {
629
629
  d(u);
@@ -702,10 +702,10 @@ function ee(a = [], t = 1, e = 0) {
702
702
  };
703
703
  });
704
704
  }
705
- function It(a = []) {
705
+ function _t(a = []) {
706
706
  let t = [];
707
707
  return a.forEach((e) => {
708
- e.children ? t = t.concat(It(e.children)) : t.push(e);
708
+ e.children ? t = t.concat(_t(e.children)) : t.push(e);
709
709
  }), t;
710
710
  }
711
711
  const Yt = /^(\r\n|\n\r|\r|\n)/, ii = /^[^\t\r\n]+/, Vt = /^\t/;
@@ -847,7 +847,7 @@ class re {
847
847
  getRightFixedX() {
848
848
  }
849
849
  }
850
- class Tt extends re {
850
+ class At extends re {
851
851
  constructor(e, i, s, r, o, n, h, c, d, f = "body") {
852
852
  super(e, r, o, n, h, f, c.fixed);
853
853
  l(this, "formatter");
@@ -1028,10 +1028,10 @@ class Tt extends re {
1028
1028
  r = c ? w : u, n = c ? "shrink" : "expand", o = x * 8;
1029
1029
  } else
1030
1030
  o = x * 8;
1031
- let g = 20, p = 20;
1031
+ let g = 20, m = 20;
1032
1032
  if (r) {
1033
- let u = this.drawX + o + e, w = this.drawY + (this.visibleHeight - p) / 2;
1034
- this.ctx.paint.drawImage(r, u, w, g, p), this.drawImageX = u, this.drawImageY = w, this.drawImageWidth = g, this.drawImageHeight = p, this.drawImageName = n, this.drawImageSource = r;
1033
+ let u = this.drawX + o + e, w = this.drawY + (this.visibleHeight - m) / 2;
1034
+ this.ctx.paint.drawImage(r, u, w, g, m), this.drawImageX = u, this.drawImageY = w, this.drawImageWidth = g, this.drawImageHeight = m, this.drawImageName = n, this.drawImageSource = r;
1035
1035
  }
1036
1036
  this.align = "left", this.drawTextX = o + this.drawX + g - 0.5;
1037
1037
  }
@@ -1043,40 +1043,42 @@ class Tt extends re {
1043
1043
  BODY_CELL_STYLE_METHOD: s,
1044
1044
  FOOTER_CELL_STYLE_METHOD: r,
1045
1045
  READONLY_TEXT_COLOR: o,
1046
- FOOTER_BG_COLOR: n,
1047
- HIGHLIGHT_SELECTED_ROW: h,
1048
- HIGHLIGHT_SELECTED_ROW_COLOR: c,
1049
- HIGHLIGHT_HOVER_ROW: d,
1050
- HIGHLIGHT_HOVER_ROW_COLOR: f,
1051
- STRIPE: x,
1052
- STRIPE_COLOR: g
1046
+ BODY_TEXT_COLOR: n,
1047
+ FOOTER_TEXT_COLOR: h,
1048
+ FOOTER_BG_COLOR: c,
1049
+ HIGHLIGHT_SELECTED_ROW: d,
1050
+ HIGHLIGHT_SELECTED_ROW_COLOR: f,
1051
+ HIGHLIGHT_HOVER_ROW: x,
1052
+ HIGHLIGHT_HOVER_ROW_COLOR: g,
1053
+ STRIPE: m,
1054
+ STRIPE_COLOR: u
1053
1055
  } = this.ctx.config;
1054
1056
  if (this.cellType === "footer") {
1055
- let E = n, v = o;
1057
+ let O = c, I = h;
1056
1058
  if (typeof r == "function") {
1057
- const _ = r, { backgroundColor: L, color: I } = _({
1059
+ const _ = r, { backgroundColor: v, color: S } = _({
1058
1060
  row: this.row,
1059
1061
  rowIndex: this.rowIndex,
1060
1062
  colIndex: this.colIndex,
1061
1063
  column: this.column,
1062
1064
  value: this.getValue()
1063
1065
  }) || {};
1064
- L && (E = L), I && (v = I);
1066
+ v && (O = v), S && (I = S);
1065
1067
  }
1066
- this.drawCellSkyBgColor = "transparent", this.drawCellBgColor = E, this.drawTextColor = v;
1068
+ this.drawCellSkyBgColor = "transparent", this.drawCellBgColor = O, this.drawTextColor = I;
1067
1069
  return;
1068
1070
  }
1069
- let p = "transparent";
1070
- const u = this.ctx.focusCell, w = this.ctx.hoverCell;
1071
- let m = this.rowIndex, C = this.rowIndex;
1072
- if (this.rowspan !== 1 && (d || h)) {
1073
- const E = this.getSpanInfo(), { yArr: v } = E;
1074
- m = v[0], C = v[1];
1071
+ let w = "transparent";
1072
+ const p = this.ctx.focusCell, C = this.ctx.hoverCell;
1073
+ let y = this.rowIndex, b = this.rowIndex;
1074
+ if (this.rowspan !== 1 && (x || d)) {
1075
+ const O = this.getSpanInfo(), { yArr: I } = O;
1076
+ y = I[0], b = I[1];
1075
1077
  }
1076
- d && w && (w.rowKey === this.rowKey && (p = f), w.rowIndex >= m && w.rowIndex <= C && (p = f)), h && u && (u.rowKey === this.rowKey && (p = c), u.rowIndex >= m && u.rowIndex <= C && (p = c)), this.drawCellSkyBgColor = p;
1077
- let y = e, b = o;
1078
- if (this.ctx.database.getReadonly(this.rowKey, this.key) || (y = i, b = o), x && (this.rowIndex % 2 ? y = g : y = e), typeof s == "function") {
1079
- const E = s, { backgroundColor: v, color: _ } = E({
1078
+ x && C && (C.rowKey === this.rowKey && (w = g), C.rowIndex >= y && C.rowIndex <= b && (w = g)), d && p && (p.rowKey === this.rowKey && (w = f), p.rowIndex >= y && p.rowIndex <= b && (w = f)), this.drawCellSkyBgColor = w;
1079
+ let E = e, R = n;
1080
+ if (this.ctx.database.getReadonly(this.rowKey, this.key) || (E = i, R = o), m && (this.rowIndex % 2 ? E = u : E = e), typeof s == "function") {
1081
+ const O = s, { backgroundColor: I, color: _ } = O({
1080
1082
  row: this.row,
1081
1083
  rowIndex: this.rowIndex,
1082
1084
  colIndex: this.colIndex,
@@ -1084,16 +1086,16 @@ class Tt extends re {
1084
1086
  isHasChanged: this.isHasChanged,
1085
1087
  value: this.getValue()
1086
1088
  }) || {};
1087
- v && (y = v), _ && (b = _);
1089
+ I && (E = I), _ && (R = _);
1088
1090
  }
1089
- this.drawCellBgColor = y, this.drawTextColor = b;
1091
+ this.drawCellBgColor = E, this.drawTextColor = R;
1090
1092
  }
1091
1093
  updateSelection() {
1092
1094
  const { visibleWidth: e, visibleHeight: i, rowspan: s, colspan: r, cellType: o, type: n, rowIndex: h, rowKey: c } = this;
1093
1095
  if (!(s === 0 || r === 0) && o !== "footer" && ["index-selection", "selection"].includes(n)) {
1094
- const d = this.ctx.database.getRowSelection(c), f = this.ctx.database.getRowSelectable(c), { CHECKBOX_SIZE: x = 0 } = this.ctx.config, g = this.drawX + (e - x) / 2, p = this.drawY + (i - x) / 2;
1096
+ const d = this.ctx.database.getRowSelection(c), f = this.ctx.database.getRowSelectable(c), { CHECKBOX_SIZE: x = 0 } = this.ctx.config, g = this.drawX + (e - x) / 2, m = this.drawY + (i - x) / 2;
1095
1097
  let u = this.ctx.icons.get("checkbox-uncheck"), w = "checkbox-uncheck";
1096
- d && f ? (u = this.ctx.icons.get("checkbox-check"), w = "checkbox-check") : d && f ? (u = this.ctx.icons.get("checkbox-check-disabled"), w = "checkbox-check-disabled") : !d && f ? (u = this.ctx.icons.get("checkbox-uncheck"), w = "checkbox-uncheck") : (u = this.ctx.icons.get("checkbox-disabled"), w = "checkbox-disabled"), u && n == "index-selection" ? (this.ctx.hoverCell && this.ctx.hoverCell.rowIndex === h || ["checkbox-disabled", "checkbox-check"].includes(w)) && (this.drawImageX = g, this.drawImageY = p, this.drawImageWidth = x, this.drawImageHeight = x, this.drawImageName = w, this.drawImageSource = u) : u && n === "selection" && (this.drawImageX = g, this.drawImageY = p, this.drawImageWidth = x, this.drawImageHeight = x, this.drawImageName = w, this.drawImageSource = u);
1098
+ d && f ? (u = this.ctx.icons.get("checkbox-check"), w = "checkbox-check") : d && f ? (u = this.ctx.icons.get("checkbox-check-disabled"), w = "checkbox-check-disabled") : !d && f ? (u = this.ctx.icons.get("checkbox-uncheck"), w = "checkbox-uncheck") : (u = this.ctx.icons.get("checkbox-disabled"), w = "checkbox-disabled"), u && n == "index-selection" ? (this.ctx.hoverCell && this.ctx.hoverCell.rowIndex === h || ["checkbox-disabled", "checkbox-check"].includes(w)) && (this.drawImageX = g, this.drawImageY = m, this.drawImageWidth = x, this.drawImageHeight = x, this.drawImageName = w, this.drawImageSource = u) : u && n === "selection" && (this.drawImageX = g, this.drawImageY = m, this.drawImageWidth = x, this.drawImageHeight = x, this.drawImageName = w, this.drawImageSource = u);
1097
1099
  }
1098
1100
  }
1099
1101
  updateHoverIcon() {
@@ -1114,10 +1116,10 @@ class Tt extends re {
1114
1116
  if (this.hoverIconName && !this.ctx.editing && n) {
1115
1117
  let h = 0, c = 0;
1116
1118
  if (n.rowKey === this.rowKey && (h = this.drawX + this.width - s - r, c = this.drawY + (this.height - s) / 2), this.rowspan !== 1 && o) {
1117
- const f = this.getSpanInfo(), { yArr: x } = f, g = x[0], p = x[1];
1118
- if (n.rowIndex >= g && n.rowIndex <= p) {
1119
- const { width: u, height: w, offsetTop: m, offsetLeft: C } = f;
1120
- h = this.drawX - C + u - s - r, c = this.drawY - m + (w - s) / 2;
1119
+ const f = this.getSpanInfo(), { yArr: x } = f, g = x[0], m = x[1];
1120
+ if (n.rowIndex >= g && n.rowIndex <= m) {
1121
+ const { width: u, height: w, offsetTop: p, offsetLeft: C } = f;
1122
+ h = this.drawX - C + u - s - r, c = this.drawY - p + (w - s) / 2;
1121
1123
  }
1122
1124
  }
1123
1125
  const d = this.ctx.icons.get(this.hoverIconName);
@@ -1346,46 +1348,46 @@ class Tt extends re {
1346
1348
  drawBorder(e) {
1347
1349
  const { drawX: i, drawY: s, rowIndex: r, colIndex: o, height: n, width: h } = this;
1348
1350
  let c = i, d = s;
1349
- const { xArr: f, yArr: x, lineDash: g = [], borderWidth: p = 1, borderColor: u, fillColor: w } = e, m = f[0], C = f[1], y = x[0], b = x[1];
1350
- if (o >= m && o <= C && r === y) {
1351
- const E = o === C ? 1 : 0, v = o === m ? 1 : 0;
1352
- this.ctx.paint.drawLine([c + v, d + 1, c + h - E, d + 1], {
1351
+ const { xArr: f, yArr: x, lineDash: g = [], borderWidth: m = 1, borderColor: u, fillColor: w } = e, p = f[0], C = f[1], y = x[0], b = x[1];
1352
+ if (o >= p && o <= C && r === y) {
1353
+ const E = o === C ? 1 : 0, R = o === p ? 1 : 0;
1354
+ this.ctx.paint.drawLine([c + R, d + 1, c + h - E, d + 1], {
1353
1355
  borderColor: u,
1354
1356
  fillColor: w,
1355
- borderWidth: p,
1357
+ borderWidth: m,
1356
1358
  lineCap: "round",
1357
1359
  lineJoin: "round",
1358
1360
  lineDash: g
1359
1361
  });
1360
1362
  }
1361
1363
  if (o === C && r >= y && r <= b) {
1362
- const E = r === y ? 1 : 0, v = r === b ? 1 : 0;
1363
- this.ctx.paint.drawLine([c + h - 1, d + E, c + h - 1, d + n - v], {
1364
+ const E = r === y ? 1 : 0, R = r === b ? 1 : 0;
1365
+ this.ctx.paint.drawLine([c + h - 1, d + E, c + h - 1, d + n - R], {
1364
1366
  borderColor: u,
1365
1367
  fillColor: w,
1366
- borderWidth: p,
1368
+ borderWidth: m,
1367
1369
  lineCap: "round",
1368
1370
  lineJoin: "round",
1369
1371
  lineDash: g
1370
1372
  });
1371
1373
  }
1372
- if (o >= m && o <= C && r === b) {
1373
- const E = o === C ? 1 : 0, v = o === m ? 1 : 0;
1374
- this.ctx.paint.drawLine([c + v, d + n - 1, c + h - E, d + n - 1], {
1374
+ if (o >= p && o <= C && r === b) {
1375
+ const E = o === C ? 1 : 0, R = o === p ? 1 : 0;
1376
+ this.ctx.paint.drawLine([c + R, d + n - 1, c + h - E, d + n - 1], {
1375
1377
  borderColor: u,
1376
1378
  fillColor: w,
1377
- borderWidth: p,
1379
+ borderWidth: m,
1378
1380
  lineCap: "round",
1379
1381
  lineJoin: "round",
1380
1382
  lineDash: g
1381
1383
  });
1382
1384
  }
1383
- if (o === m && r >= y && r <= b) {
1384
- const E = r === b ? 1 : 0, v = r === y ? 1 : 0;
1385
- this.ctx.paint.drawLine([c + 1, d + v, c + 1, d + n - E], {
1385
+ if (o === p && r >= y && r <= b) {
1386
+ const E = r === b ? 1 : 0, R = r === y ? 1 : 0;
1387
+ this.ctx.paint.drawLine([c + 1, d + R, c + 1, d + n - E], {
1386
1388
  borderColor: u,
1387
1389
  fillColor: w,
1388
- borderWidth: p,
1390
+ borderWidth: m,
1389
1391
  lineCap: "round",
1390
1392
  lineJoin: "round",
1391
1393
  lineDash: g
@@ -1449,22 +1451,22 @@ class li {
1449
1451
  Array.isArray(i.children) && i.children.length && (r = !0, this.initData(i.children, e + 1));
1450
1452
  const { ROW_KEY: o = "", DEFAULT_EXPAND_ALL: n, CELL_HEIGHT: h, SELECTABLE_METHOD: c, CHECKBOX_KEY: d } = this.ctx.config, f = i[o], x = f != null ? `${f}` : Jt();
1451
1453
  this.itemRowKeyMap.set(i, x);
1452
- const g = i._height || h, p = i._readonly;
1454
+ const g = i._height || h, m = i._readonly;
1453
1455
  let u = !0;
1454
1456
  if (typeof c == "function" && (u = c), d) {
1455
- const m = i[d];
1456
- if (this.checkboxKeyMap.has(m)) {
1457
- const C = this.checkboxKeyMap.get(m) || [];
1458
- C.push(x), this.checkboxKeyMap.set(m, C);
1457
+ const p = i[d];
1458
+ if (this.checkboxKeyMap.has(p)) {
1459
+ const C = this.checkboxKeyMap.get(p) || [];
1460
+ C.push(x), this.checkboxKeyMap.set(p, C);
1459
1461
  } else
1460
- this.checkboxKeyMap.set(m, [x]);
1462
+ this.checkboxKeyMap.set(p, [x]);
1461
1463
  }
1462
1464
  this.selectionMap.set(x, {
1463
1465
  key: d ? i[d] : x,
1464
1466
  row: i,
1465
1467
  check: ((w = this.selectionMap.get(x)) == null ? void 0 : w.check) || !1
1466
1468
  }), this.rowKeyMap.set(x, {
1467
- readonly: p,
1469
+ readonly: m,
1468
1470
  index: s,
1469
1471
  rowIndex: s,
1470
1472
  level: e,
@@ -1683,16 +1685,16 @@ class li {
1683
1685
  const s = /* @__PURE__ */ new Set();
1684
1686
  let r = [], o = t.map((d) => {
1685
1687
  const { rowKey: f, key: x } = d;
1686
- let g = d.value, p = g;
1687
- const u = this.getRowDataItemForRowKey(f), w = this.getItemValue(f, x), m = this.getVirtualBodyCellByKey(f, x);
1688
- return (m == null ? void 0 : m.type) === "number" && (["", void 0, null].includes(g) ? p = null : /^-?\d+(\.\d+)?$/.test(`${g}`) ? p = Number(g) : (p = w, r.push({
1688
+ let g = d.value, m = g;
1689
+ const u = this.getRowDataItemForRowKey(f), w = this.getItemValue(f, x), p = this.getVirtualBodyCellByKey(f, x);
1690
+ return (p == null ? void 0 : p.type) === "number" && (["", void 0, null].includes(g) ? m = null : /^-?\d+(\.\d+)?$/.test(`${g}`) ? m = Number(g) : (m = w, r.push({
1689
1691
  ...d,
1690
- value: p,
1692
+ value: m,
1691
1693
  oldValue: w,
1692
1694
  row: u
1693
1695
  }))), {
1694
1696
  ...d,
1695
- value: p,
1697
+ value: m,
1696
1698
  oldValue: w,
1697
1699
  row: u
1698
1700
  };
@@ -1709,11 +1711,11 @@ class li {
1709
1711
  return;
1710
1712
  const { BEFORE_VALUE_CHANGE_METHOD: n } = this.ctx.config;
1711
1713
  typeof n == "function" && (o = await n(o)), o.forEach((d) => {
1712
- const { value: f, rowKey: x, key: g, oldValue: p } = d;
1714
+ const { value: f, rowKey: x, key: g, oldValue: m } = d;
1713
1715
  s.add(x), this.setItemValue(x, g, f), i.push({
1714
1716
  rowKey: x,
1715
1717
  key: g,
1716
- oldValue: p,
1718
+ oldValue: m,
1717
1719
  newValue: f
1718
1720
  });
1719
1721
  });
@@ -1784,9 +1786,9 @@ class li {
1784
1786
  oldValue: h,
1785
1787
  newValue: h
1786
1788
  };
1787
- const { BEFORE_VALUE_CHANGE_METHOD: p } = this.ctx.config;
1788
- if (typeof p == "function") {
1789
- const m = await p([
1789
+ const { BEFORE_VALUE_CHANGE_METHOD: m } = this.ctx.config;
1790
+ if (typeof m == "function") {
1791
+ const p = await m([
1790
1792
  {
1791
1793
  rowKey: t,
1792
1794
  key: e,
@@ -1795,7 +1797,7 @@ class li {
1795
1797
  row: x
1796
1798
  }
1797
1799
  ]);
1798
- m && m.length && (c = m[0].value);
1800
+ p && p.length && (c = p[0].value);
1799
1801
  }
1800
1802
  this.changedDataMap.set(d, c), n[e] = c;
1801
1803
  const u = {
@@ -1956,11 +1958,11 @@ class li {
1956
1958
  this.rowKeyMap.forEach((x, g) => {
1957
1959
  var u;
1958
1960
  (u = this.selectionMap.get(g)) != null && u.check && (s += 1);
1959
- let p = x.selectable;
1960
- typeof p == "function" && (p = p({
1961
+ let m = x.selectable;
1962
+ typeof m == "function" && (m = m({
1961
1963
  row: x.item,
1962
1964
  rowIndex: x.rowIndex
1963
- })), p && (r += 1);
1965
+ })), m && (r += 1);
1964
1966
  });
1965
1967
  const h = o > i && s === 0 && n, c = r && r > s && s > 0 || h, d = r !== 0, f = !!r && r === s;
1966
1968
  return this.bufferCheckState = {
@@ -2120,8 +2122,8 @@ class li {
2120
2122
  new nt(c).validate(d).then(() => {
2121
2123
  this.clearValidationError(t, e), i([]);
2122
2124
  }).catch(({ errors: x }) => {
2123
- const g = x.map((p) => ({
2124
- ...p,
2125
+ const g = x.map((m) => ({
2126
+ ...m,
2125
2127
  column: n,
2126
2128
  key: e,
2127
2129
  row: s.item,
@@ -2155,7 +2157,7 @@ class li {
2155
2157
  height: f,
2156
2158
  width: x,
2157
2159
  colspan: g,
2158
- mergeRow: p,
2160
+ mergeRow: m,
2159
2161
  mergeCol: u
2160
2162
  } = t;
2161
2163
  if (d === 1 && g === 1)
@@ -2177,98 +2179,98 @@ class li {
2177
2179
  }
2178
2180
  ]
2179
2181
  };
2180
- let w = e, m = e, C = n, y = n, b = [], E = 0, v = 0, _ = 0, L = 0;
2181
- if (d !== 1 && p) {
2182
- L = x;
2183
- const I = h.reduce((R, A) => {
2184
- const S = this.getItemValue(s, A) ?? "";
2185
- return `${R}${S}`;
2182
+ let w = e, p = e, C = n, y = n, b = [], E = 0, R = 0, O = 0, I = 0;
2183
+ if (d !== 1 && m) {
2184
+ I = x;
2185
+ const _ = h.reduce((v, S) => {
2186
+ const T = this.getItemValue(s, S) ?? "";
2187
+ return `${v}${T}`;
2186
2188
  }, "");
2187
- for (let R = e - 1; R >= 0; R--) {
2188
- const A = this.rowIndexRowKeyMap.get(R) || "", S = h.reduce((M, T) => {
2189
- const B = this.getItemValue(A, T) ?? "";
2189
+ for (let v = e - 1; v >= 0; v--) {
2190
+ const S = this.rowIndexRowKeyMap.get(v) || "", T = h.reduce((M, A) => {
2191
+ const B = this.getItemValue(S, A) ?? "";
2190
2192
  return `${M}${B}`;
2191
2193
  }, "");
2192
- if (I === S)
2193
- w = R;
2194
+ if (_ === T)
2195
+ w = v;
2194
2196
  else
2195
2197
  break;
2196
2198
  }
2197
- for (let R = e; R <= this.ctx.maxRowIndex; R++) {
2198
- const A = this.rowIndexRowKeyMap.get(R) || "", S = h.reduce((M, T) => {
2199
- const B = this.getItemValue(A, T) ?? "";
2199
+ for (let v = e; v <= this.ctx.maxRowIndex; v++) {
2200
+ const S = this.rowIndexRowKeyMap.get(v) || "", T = h.reduce((M, A) => {
2201
+ const B = this.getItemValue(S, A) ?? "";
2200
2202
  return `${M}${B}`;
2201
2203
  }, "");
2202
- if (I === S)
2203
- m = R;
2204
+ if (_ === T)
2205
+ p = v;
2204
2206
  else
2205
2207
  break;
2206
2208
  }
2207
- for (let R = w; R < e; R++) {
2208
- const { height: A } = this.positions[R];
2209
- E += A;
2209
+ for (let v = w; v < e; v++) {
2210
+ const { height: S } = this.positions[v];
2211
+ E += S;
2210
2212
  }
2211
- for (let R = w; R <= m; R++) {
2212
- const { height: A } = this.positions[R];
2213
- _ += A;
2214
- const S = this.rowIndexRowKeyMap.get(R) || "", { item: M } = this.rowKeyMap.get(S), T = this.getItemValue(S, i);
2213
+ for (let v = w; v <= p; v++) {
2214
+ const { height: S } = this.positions[v];
2215
+ O += S;
2216
+ const T = this.rowIndexRowKeyMap.get(v) || "", { item: M } = this.rowKeyMap.get(T), A = this.getItemValue(T, i);
2215
2217
  b.push({
2216
- rowKey: S,
2218
+ rowKey: T,
2217
2219
  key: i,
2218
- value: T,
2220
+ value: A,
2219
2221
  row: M
2220
2222
  });
2221
2223
  }
2222
2224
  }
2223
2225
  if (g !== 1 && u) {
2224
- _ = f;
2225
- for (let I = n - 1; I >= 0; I--) {
2226
- const R = this.getColumnByColIndex(I);
2227
- if (!R)
2226
+ O = f;
2227
+ for (let _ = n - 1; _ >= 0; _--) {
2228
+ const v = this.getColumnByColIndex(_);
2229
+ if (!v)
2228
2230
  break;
2229
- const A = this.getItemValue(s, i), S = this.getItemValue(s, R.key);
2230
- if (A === S && c.includes(R.key))
2231
- C = I;
2231
+ const S = this.getItemValue(s, i), T = this.getItemValue(s, v.key);
2232
+ if (S === T && c.includes(v.key))
2233
+ C = _;
2232
2234
  else
2233
2235
  break;
2234
2236
  }
2235
- for (let I = n; I <= this.ctx.maxColIndex; I++) {
2236
- const R = this.getColumnByColIndex(I);
2237
- if (!R)
2237
+ for (let _ = n; _ <= this.ctx.maxColIndex; _++) {
2238
+ const v = this.getColumnByColIndex(_);
2239
+ if (!v)
2238
2240
  break;
2239
- const A = this.getItemValue(s, i), S = this.getItemValue(s, R.key);
2240
- if (A === S && c.includes(R.key))
2241
- y = I;
2241
+ const S = this.getItemValue(s, i), T = this.getItemValue(s, v.key);
2242
+ if (S === T && c.includes(v.key))
2243
+ y = _;
2242
2244
  else
2243
2245
  break;
2244
2246
  }
2245
- for (let I = C; I < n; I++) {
2246
- const R = this.getColumnByColIndex(I);
2247
- if (!R)
2247
+ for (let _ = C; _ < n; _++) {
2248
+ const v = this.getColumnByColIndex(_);
2249
+ if (!v)
2248
2250
  break;
2249
- v += R.width || 100;
2251
+ R += v.width || 100;
2250
2252
  }
2251
- for (let I = C; I <= y; I++) {
2252
- const R = this.getColumnByColIndex(I);
2253
- if (!R)
2253
+ for (let _ = C; _ <= y; _++) {
2254
+ const v = this.getColumnByColIndex(_);
2255
+ if (!v)
2254
2256
  break;
2255
- L += R.width || 100, b.push({
2257
+ I += v.width || 100, b.push({
2256
2258
  rowKey: s,
2257
- key: R.key,
2258
- value: this.getItemValue(s, R.key),
2259
+ key: v.key,
2260
+ value: this.getItemValue(s, v.key),
2259
2261
  row: r
2260
2262
  });
2261
2263
  }
2262
2264
  }
2263
2265
  return {
2264
2266
  xArr: [C, y],
2265
- yArr: [w, m],
2267
+ yArr: [w, p],
2266
2268
  rowspan: d,
2267
2269
  colspan: g,
2268
- height: _,
2269
- width: L,
2270
+ height: O,
2271
+ width: I,
2270
2272
  offsetTop: E,
2271
- offsetLeft: v,
2273
+ offsetLeft: R,
2272
2274
  dataList: b
2273
2275
  };
2274
2276
  }
@@ -2301,7 +2303,7 @@ class li {
2301
2303
  // 获取虚拟单元格
2302
2304
  getVirtualBodyCell(t, e) {
2303
2305
  const i = this.getColumnByColIndex(e), s = this.getRowForRowIndex(t);
2304
- return !i || !s ? void 0 : new Tt(this.ctx, t, e, 0, 0, 0, 0, i, s.item, "body");
2306
+ return !i || !s ? void 0 : new At(this.ctx, t, e, 0, 0, 0, 0, i, s.item, "body");
2305
2307
  }
2306
2308
  getVirtualBodyCellByKey(t, e) {
2307
2309
  const i = this.getRowIndexForRowKey(t), s = this.getColIndexForKey(e);
@@ -2585,8 +2587,8 @@ class fi {
2585
2587
  f === "top" ? x = i + d : f === "bottom" ? x = i + r - d : x = i + (r + 1) / 2;
2586
2588
  let g = 0;
2587
2589
  h === "left" ? g = e + d : h === "right" ? g = e + s - d : g = e + s / 2;
2588
- const { _text: p, ellipsis: u } = this.handleEllipsis(t, s, d, n);
2589
- return this.ctx.fillText(p, g, x), this.ctx.restore(), u;
2590
+ const { _text: m, ellipsis: u } = this.handleEllipsis(t, s, d, n);
2591
+ return this.ctx.fillText(m, g, x), this.ctx.restore(), u;
2590
2592
  }
2591
2593
  handleEllipsis(t, e, i = 0, s = "12px Arial") {
2592
2594
  let r = !1, o = t;
@@ -2646,6 +2648,8 @@ class Wt {
2646
2648
  l(this, "HEADER_BG_COLOR", "#F8FAFF");
2647
2649
  l(this, "BODY_BG_COLOR", "#FFF");
2648
2650
  l(this, "HEADER_TEXT_COLOR", "#1D2129");
2651
+ l(this, "BODY_TEXT_COLOR", "#4E5969");
2652
+ l(this, "FOOTER_TEXT_COLOR", "#4E5969");
2649
2653
  l(this, "LOADING_ICON_SVG", "");
2650
2654
  l(this, "LOADING_ICON_COLOR", "#4E5969");
2651
2655
  l(this, "EXPAND_ICON_SVG", "");
@@ -2765,12 +2769,13 @@ class Wt {
2765
2769
  }
2766
2770
  // 同步css 样式变量
2767
2771
  updateCssVar() {
2768
- Object.keys(this).forEach((t) => {
2769
- if (t.endsWith("_COLOR")) {
2770
- const e = `--evt-${t.toLocaleLowerCase().replace(/_/g, "-")}`, i = ai(e);
2771
- this[t] = i;
2772
+ let t = {};
2773
+ Object.keys(this).forEach((e) => {
2774
+ if (e.endsWith("_COLOR") || e.endsWith("_FONT")) {
2775
+ const i = `--evt-${e.toLocaleLowerCase().replace(/_/g, "-")}`, s = ai(i);
2776
+ t[e] = s;
2772
2777
  }
2773
- }), Object.assign(this, this._config);
2778
+ }), Object.assign(this, t, this._config);
2774
2779
  }
2775
2780
  }
2776
2781
  const Pt = '<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>';
@@ -3165,7 +3170,7 @@ class ui {
3165
3170
  }
3166
3171
  selectionEnterAndLeave(t, e) {
3167
3172
  const { offsetY: i, offsetX: s } = this.ctx.getOffset(e), r = i, o = s;
3168
- o > t.drawImageX && o < t.drawImageX + t.drawImageWidth && r > t.drawImageY && r < t.drawImageY + t.drawImageHeight && t instanceof Tt && ["selection", "index-selection"].includes(t.type) && (this.ctx.stageElement.style.cursor = "pointer", this.ctx.isPointer = !0, this.ctx.database.getRowSelectable(t.rowKey) || (this.ctx.stageElement.style.cursor = "not-allowed"));
3173
+ o > t.drawImageX && o < t.drawImageX + t.drawImageWidth && r > t.drawImageY && r < t.drawImageY + t.drawImageHeight && t instanceof At && ["selection", "index-selection"].includes(t.type) && (this.ctx.stageElement.style.cursor = "pointer", this.ctx.isPointer = !0, this.ctx.database.getRowSelectable(t.rowKey) || (this.ctx.stageElement.style.cursor = "not-allowed"));
3169
3174
  }
3170
3175
  isBusy(t) {
3171
3176
  const { offsetY: e, offsetX: i } = this.ctx.getOffset(t), s = e, r = i;
@@ -3531,8 +3536,8 @@ class zt {
3531
3536
  } = this.ctx, h = s, c = i, d = e.height, f = e.width, x = t.height, g = this.ctx.footer.height;
3532
3537
  if (this.type === "vertical") {
3533
3538
  this.visibleDistance = c - r - d, this.distance = x - this.visibleDistance + g, this.trackX = h - r, this.trackY = 0, this.splitPoints = [this.trackX, d, this.trackX + r, d], this.trackWidth = r, this.trackHeight = c, this.barX = this.trackX - 1 + (r - o) / 2, this.barWidth = o;
3534
- const p = this.distance ? this.visibleDistance / (x + g) : 0;
3535
- let u = Math.floor(p * this.visibleDistance);
3539
+ const m = this.distance ? this.visibleDistance / (x + g) : 0;
3540
+ let u = Math.floor(m * this.visibleDistance);
3536
3541
  u < 30 ? u = 30 : u > this.visibleDistance && (u = 0), this.barHeight = u, this.barY = d + this.scroll / this.distance * (this.visibleDistance - this.barHeight), this.scroll = Math.max(0, Math.min(this.scroll, this.distance));
3537
3542
  } else {
3538
3543
  this.visibleDistance = h - r, this.distance = f - this.visibleDistance, this.splitPoints = [
@@ -3541,8 +3546,8 @@ class zt {
3541
3546
  h - r,
3542
3547
  c
3543
3548
  ];
3544
- const p = n ? 0 : 0.5;
3545
- this.trackX = 0, this.trackY = c - r + p, this.trackWidth = h, this.trackHeight = r;
3549
+ const m = n ? 0 : 0.5;
3550
+ this.trackX = 0, this.trackY = c - r + m, this.trackWidth = h, this.trackHeight = r;
3546
3551
  const u = this.distance ? this.visibleDistance / f : 0;
3547
3552
  let w = Math.floor(u * this.visibleDistance);
3548
3553
  this.barY = this.trackY - 1 + (r - o) / 2, w < 30 ? w = 30 : w >= this.visibleDistance && (w = 0), this.barWidth = w, this.barHeight = o, this.barX = this.scroll / this.distance * (this.visibleDistance - this.barWidth), this.scroll = Math.max(0, Math.min(this.scroll, this.distance));
@@ -3682,7 +3687,7 @@ class pi {
3682
3687
  config: { HEADER_HEIGHT: t, SCROLLER_TRACK_SIZE: e }
3683
3688
  } = this.ctx, i = this.ctx.database.getColumns();
3684
3689
  this.columns = i, this.allCellHeaders = [], this.leafCellHeaders = [], this.fixedLeftCellHeaders = [], this.fixedRightCellHeaders = [], this.centerCellHeaders = [];
3685
- const s = te(i), r = It(i);
3690
+ const s = te(i), r = _t(i);
3686
3691
  this.height = t * s, this.width = r.reduce((f, x) => f + ((x == null ? void 0 : x.width) || 100), 0), this.visibleHeight = this.height;
3687
3692
  const o = ei(ee(i, s));
3688
3693
  this.columnIndex = 0, this.resizeNum = 0, this.render(o, 0), this.ctx.database.updateColIndexKeyMap(this.leafCellHeaders);
@@ -3785,7 +3790,7 @@ class pi {
3785
3790
  for (let o = 0; o < i; o++) {
3786
3791
  const n = t[o], h = r * (n.rowspan || 0), c = r * (n.level || 0);
3787
3792
  let d = n.width || 100;
3788
- n.children && (d = It(n.children).reduce((g, p) => g + ((p == null ? void 0 : p.width) || 100), 0));
3793
+ n.children && (d = _t(n.children).reduce((g, m) => g + ((m == null ? void 0 : m.width) || 100), 0));
3789
3794
  const f = new oe(this.ctx, this.columnIndex, s, c, d, h, n);
3790
3795
  this.ctx.database.setHeader(n.key, f), this.allCellHeaders.push(f), n.children || (this.leafCellHeaders.push(f), f.column.widthFillDisable || this.resizeNum++), n.fixed === "left" ? this.fixedLeftCellHeaders.push(f) : n.fixed === "right" ? this.fixedRightCellHeaders.push(f) : this.centerCellHeaders.push(f), !n.children && this.columnIndex++, n.children && this.render(n.children, s), s += d;
3791
3796
  }
@@ -3879,7 +3884,7 @@ class ne {
3879
3884
  update() {
3880
3885
  const { header: t } = this.ctx, e = [], i = [], s = [];
3881
3886
  t.renderLeafCellHeaders.forEach((r) => {
3882
- const o = new Tt(
3887
+ const o = new At(
3883
3888
  this.ctx,
3884
3889
  this.rowIndex,
3885
3890
  r.colIndex,
@@ -3962,27 +3967,27 @@ class mi {
3962
3967
  if (!e.width)
3963
3968
  return;
3964
3969
  this.x = 0, x === "top" && r ? this.y = e.height + i.height : this.y = e.height;
3965
- const { data: g, sumHeight: p } = s.getData();
3966
- this.height = p, this.data = g, this.width = e.width, this.visibleWidth = this.ctx.stageWidth - o;
3970
+ const { data: g, sumHeight: m } = s.getData();
3971
+ this.height = m, this.data = g, this.width = e.width, this.visibleWidth = this.ctx.stageWidth - o;
3967
3972
  const u = this.ctx.footer.height;
3968
3973
  !this.data.length && !n ? this.height = h : !this.data.length && n && (this.height = n - e.height - u - o);
3969
3974
  let w = this.height + e.height + o;
3970
3975
  w += u;
3971
- let m = w;
3976
+ let p = w;
3972
3977
  const C = window.innerHeight, { top: y } = this.containerRect || this.ctx.containerElement.getBoundingClientRect();
3973
3978
  if (C > y && d && !n) {
3974
- const R = C - y - f;
3975
- R > e.height + o ? m = R : w > c && (m = c);
3976
- } else this.data.length && n ? m = n : this.data.length && c && w > c && (m = c);
3977
- m > 0 && (this.ctx.stageHeight = Math.floor(m), this.ctx.stageElement.style.height = `${this.ctx.stageHeight - 0.5}px`);
3979
+ const v = C - y - f;
3980
+ v > e.height + o ? p = v : w > c && (p = c);
3981
+ } else this.data.length && n ? p = n : this.data.length && c && w > c && (p = c);
3982
+ p > 0 && (this.ctx.stageHeight = Math.floor(p), this.ctx.stageElement.style.height = `${this.ctx.stageHeight - 0.5}px`);
3978
3983
  let b = this.ctx.stageHeight - e.height - o;
3979
3984
  r ? this.visibleHeight = b - u : 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 = g;
3980
- const E = window.devicePixelRatio || 1, v = this.ctx.stageWidth * E, _ = this.ctx.stageHeight * E;
3981
- t.width = Math.floor(v), t.height = Math.floor(_);
3982
- const L = this.data.length ? "not-empty" : "empty";
3985
+ const E = window.devicePixelRatio || 1, R = this.ctx.stageWidth * E, O = this.ctx.stageHeight * E;
3986
+ t.width = Math.floor(R), t.height = Math.floor(O);
3987
+ const I = this.data.length ? "not-empty" : "empty";
3983
3988
  this.ctx.emit("emptyChange", {
3984
- isEmpty: L,
3985
- type: L,
3989
+ isEmpty: I,
3990
+ type: I,
3986
3991
  headerHeight: e.height,
3987
3992
  bodyHeight: this.height,
3988
3993
  footerHeight: u,
@@ -4032,8 +4037,8 @@ class mi {
4032
4037
  for (let f = 0; f < this.renderRows.length; f++) {
4033
4038
  const x = this.renderRows[f];
4034
4039
  if (r > x.y - c + x.height - 1.5 && r < x.y - c + x.height + 1.5 && r < h - 4)
4035
- for (let p = 0; p < x.cells.length; p++) {
4036
- const u = x.cells[p];
4040
+ for (let m = 0; m < x.cells.length; m++) {
4041
+ const u = x.cells[m];
4037
4042
  o > u.drawX + 10 && o < u.drawX + u.width - 10 && u.rowspan === 1 && (this.ctx.stageElement.style.cursor = "row-resize", this.resizeTarget = x);
4038
4043
  }
4039
4044
  }
@@ -4117,7 +4122,7 @@ class mi {
4117
4122
  this.headIndex = Math.max(0, h), this.tailIndex = Math.min(this.ctx.maxRowIndex, c + 1), this.visibleRows = o.slice(this.headIndex, this.tailIndex + 1), this.ctx.body.headIndex = this.headIndex, this.ctx.body.tailIndex = this.tailIndex, this.ctx.body.visibleRows = this.visibleRows;
4118
4123
  const d = [];
4119
4124
  for (let f = 0; f < this.visibleRows.length; f++) {
4120
- const x = this.headIndex + f, g = this.visibleRows[f], { height: p, top: u } = this.ctx.database.getPositionForRowIndex(x), w = new ne(this.ctx, x, 0, u + this.y, t.width, p, g);
4125
+ const x = this.headIndex + f, g = this.visibleRows[f], { height: m, top: u } = this.ctx.database.getPositionForRowIndex(x), w = new ne(this.ctx, x, 0, u + this.y, t.width, m, g);
4121
4126
  d.push(w);
4122
4127
  }
4123
4128
  this.renderRows = d, this.ctx.body.renderRows = d;
@@ -4335,41 +4340,41 @@ class Ei {
4335
4340
  SELECTOR_AREA_MAX_Y: d,
4336
4341
  SELECTOR_AREA_MAX_X_OFFSET: f,
4337
4342
  SELECTOR_AREA_MAX_Y_OFFSET: x
4338
- } = this.ctx.config, g = n, p = h || this.ctx.maxColIndex - f, u = c, w = d || this.ctx.maxRowIndex - x;
4339
- let [m, C] = r, [y, b] = o;
4340
- if (m < g || C > p || y < u || b > w)
4343
+ } = this.ctx.config, g = n, m = h || this.ctx.maxColIndex - f, u = c, w = d || this.ctx.maxRowIndex - x;
4344
+ let [p, C] = r, [y, b] = o;
4345
+ if (p < g || C > m || y < u || b > w)
4341
4346
  return;
4342
4347
  if (this.ctx.stageElement.focus({ preventScroll: !0 }), this.ctx.config.ENABLE_MERGE_CELL_LINK) {
4343
- const v = this.adjustMergeCells(r, o);
4344
- y = v.yArr[0], b = v.yArr[1], m = v.xArr[0], C = v.xArr[1], this.ctx.onlyMergeCell = v.onlyMergeCell;
4348
+ const R = this.adjustMergeCells(r, o);
4349
+ y = R.yArr[0], b = R.yArr[1], p = R.xArr[0], C = R.xArr[1], this.ctx.onlyMergeCell = R.onlyMergeCell;
4345
4350
  }
4346
- m === C && y === b ? this.ctx.selectOnlyOne = !0 : this.ctx.selectOnlyOne = !1, r = [Math.max(g, m), Math.min(p, C)], o = [Math.max(u, y), Math.min(w, b)];
4351
+ p === C && y === b ? this.ctx.selectOnlyOne = !0 : this.ctx.selectOnlyOne = !1, r = [Math.max(g, p), Math.min(m, C)], o = [Math.max(u, y), Math.min(w, b)];
4347
4352
  const { BEFORE_SET_SELECTOR_METHOD: E } = this.ctx.config;
4348
4353
  if (typeof E == "function") {
4349
- const _ = E({
4354
+ const O = E({
4350
4355
  focusCell: this.ctx.focusCell,
4351
4356
  xArr: r,
4352
4357
  yArr: o
4353
4358
  });
4354
- if (!_)
4359
+ if (!O)
4355
4360
  return;
4356
- r = _.xArr, o = _.yArr;
4361
+ r = O.xArr, o = O.yArr;
4357
4362
  }
4358
4363
  this.ctx.selector.xArr = r, this.ctx.selector.yArr = o, this.ctx.emit("setSelector", this.ctx.selector), this.ctx.emit("drawView");
4359
4364
  }
4360
4365
  }
4361
4366
  adjustMergeCells(t, e) {
4362
- var p;
4367
+ var m;
4363
4368
  const [i, s] = e, [r, o] = t;
4364
4369
  let n = [], h = [];
4365
4370
  for (let u = 0; u <= e[1] - e[0]; u++)
4366
4371
  for (let w = 0; w <= t[1] - t[0]; w++) {
4367
- const m = u + e[0], C = w + t[0], y = this.ctx.database.getVirtualBodyCell(m, C);
4368
- y && ((m === i || m === s) && n.push(y), (C === r || C === o) && h.push(y));
4372
+ const p = u + e[0], C = w + t[0], y = this.ctx.database.getVirtualBodyCell(p, C);
4373
+ y && ((p === i || p === s) && n.push(y), (C === r || C === o) && h.push(y));
4369
4374
  }
4370
4375
  const c = n.reduce(
4371
4376
  (u, w) => {
4372
- const { yArr: m } = w.getSpanInfo(), [C, y] = m;
4377
+ const { yArr: p } = w.getSpanInfo(), [C, y] = p;
4373
4378
  return u.minY = Math.min(u.minY, C), u.maxY = Math.max(u.maxY, y), u;
4374
4379
  },
4375
4380
  {
@@ -4378,7 +4383,7 @@ class Ei {
4378
4383
  }
4379
4384
  ), d = h.reduce(
4380
4385
  (u, w) => {
4381
- const { xArr: m } = w.getSpanInfo(), [C, y] = m;
4386
+ const { xArr: p } = w.getSpanInfo(), [C, y] = p;
4382
4387
  return u.minX = Math.min(u.minX, C), u.maxX = Math.max(u.maxX, y), u;
4383
4388
  },
4384
4389
  {
@@ -4388,7 +4393,7 @@ class Ei {
4388
4393
  ), f = [d.minX, d.maxX], x = [c.minY, c.maxY];
4389
4394
  let g = !1;
4390
4395
  if (d.minX !== d.maxX || c.minY !== c.maxY) {
4391
- const u = JSON.stringify(f) + JSON.stringify(x), w = (p = this.ctx.focusCell) == null ? void 0 : p.getSpanInfo();
4396
+ const u = JSON.stringify(f) + JSON.stringify(x), w = (m = this.ctx.focusCell) == null ? void 0 : m.getSpanInfo();
4392
4397
  g = (w && JSON.stringify(w.xArr) + JSON.stringify(w.yArr)) === u;
4393
4398
  }
4394
4399
  return {
@@ -4431,8 +4436,8 @@ class Ei {
4431
4436
  SELECTOR_AREA_MAX_Y: o,
4432
4437
  SELECTOR_AREA_MAX_X_OFFSET: n,
4433
4438
  SELECTOR_AREA_MAX_Y_OFFSET: h
4434
- } = this.ctx.config, c = i, d = s || this.ctx.maxColIndex - n, f = r, x = o || this.ctx.maxRowIndex - h, g = [c, d], p = [f, x];
4435
- this.setSelector(g, p);
4439
+ } = this.ctx.config, c = i, d = s || this.ctx.maxColIndex - n, f = r, x = o || this.ctx.maxRowIndex - h, g = [c, d], m = [f, x];
4440
+ this.setSelector(g, m);
4436
4441
  }
4437
4442
  }
4438
4443
  selectRows(t, e = !0) {
@@ -4569,14 +4574,14 @@ class Ei {
4569
4574
  const e = this.ctx.selector.yArr[0], i = this.ctx.selector.xArr[0], s = /* @__PURE__ */ new Set();
4570
4575
  navigator.clipboard.readText().then(async (r) => {
4571
4576
  let o = si(r);
4572
- const n = [i, i + o[0].length - 1], h = [e, e + o.length - 1], [c, d] = h, [f, x] = n, g = d - this.ctx.maxRowIndex, p = x - this.ctx.maxColIndex;
4573
- (g > 0 || p > 0) && this.ctx.emit("onPastedDataOverflow", {
4577
+ const n = [i, i + o[0].length - 1], h = [e, e + o.length - 1], [c, d] = h, [f, x] = n, g = d - this.ctx.maxRowIndex, m = x - this.ctx.maxColIndex;
4578
+ (g > 0 || m > 0) && this.ctx.emit("onPastedDataOverflow", {
4574
4579
  maxY: d,
4575
4580
  maxX: x,
4576
4581
  minY: c,
4577
4582
  minX: f,
4578
4583
  overflowRowCount: g,
4579
- overflowColCount: p,
4584
+ overflowColCount: m,
4580
4585
  textArr: o
4581
4586
  });
4582
4587
  const u = o.length === 1 && o[0].length === 1;
@@ -4592,16 +4597,16 @@ class Ei {
4592
4597
  for (let y = 0; y <= o.length - 1; y++) {
4593
4598
  const b = o[y].length;
4594
4599
  for (let E = 0; E <= b - 1; E++) {
4595
- const v = y + e, _ = E + i, L = o[y][E], I = this.ctx.database.getItemValueForRowIndexAndColIndex(
4596
- v,
4597
- _
4600
+ const R = y + e, O = E + i, I = o[y][E], _ = this.ctx.database.getItemValueForRowIndexAndColIndex(
4601
+ R,
4602
+ O
4598
4603
  );
4599
- if (I) {
4600
- const { rowKey: R, key: A } = I;
4601
- this.ctx.database.getReadonly(R, A) || (s.add(R), w.push({
4602
- rowKey: R,
4603
- key: A,
4604
- value: L,
4604
+ if (_) {
4605
+ const { rowKey: v, key: S } = _;
4606
+ this.ctx.database.getReadonly(v, S) || (s.add(v), w.push({
4607
+ rowKey: v,
4608
+ key: S,
4609
+ value: I,
4605
4610
  row: {}
4606
4611
  //内部有设置
4607
4612
  }));
@@ -4621,9 +4626,9 @@ class Ei {
4621
4626
  }
4622
4627
  if (!w.length)
4623
4628
  return;
4624
- const { BEFORE_PASTE_DATA_METHOD: m } = this.ctx.config;
4625
- if (typeof m == "function") {
4626
- const y = m, b = w.map((E) => ({
4629
+ const { BEFORE_PASTE_DATA_METHOD: p } = this.ctx.config;
4630
+ if (typeof p == "function") {
4631
+ const y = p, b = w.map((E) => ({
4627
4632
  rowKey: E.rowKey,
4628
4633
  key: E.key,
4629
4634
  value: E.value,
@@ -4726,19 +4731,19 @@ class Ei {
4726
4731
  body: h,
4727
4732
  scrollX: c,
4728
4733
  scrollY: d,
4729
- config: { SCROLLER_TRACK_SIZE: f, FOOTER_FIXED: x, FOOTER_POSITION: g, ENABLE_MERGE_CELL_LINK: p }
4734
+ config: { SCROLLER_TRACK_SIZE: f, FOOTER_FIXED: x, FOOTER_POSITION: g, ENABLE_MERGE_CELL_LINK: m }
4730
4735
  } = this.ctx;
4731
4736
  if (!i)
4732
4737
  return;
4733
- p && this.ctx.onlyMergeCell && i.updateSpanInfo();
4734
- const { drawX: u, drawY: w, width: m, height: C, fixed: y } = i, b = r - u + 1, E = i.drawX + m - (e - s) + 1;
4735
- let v = o.height - w, _ = C;
4736
- _ > h.visibleHeight && (_ = h.visibleHeight);
4737
- let L = 0;
4738
- x && (g === "top" ? v = o.height + n.height - w : L = n.visibleHeight);
4739
- const I = w + _ - (t - L - f);
4740
- let R = c, A = d;
4741
- E > 0 && !y ? R = Math.floor(c + E) : b > 0 && !y && (R = Math.floor(c - b)), v > 0 ? A = Math.floor(d - v) : I > 0 && (A = Math.floor(d + I)), (Math.abs(c - R) > 2 || Math.abs(d - A) > 2) && (this.ctx.adjustPositioning = !0, this.ctx.setScroll(R, A), this.ctx.emit("adjustBoundaryPosition", i));
4738
+ m && this.ctx.onlyMergeCell && i.updateSpanInfo();
4739
+ const { drawX: u, drawY: w, width: p, height: C, fixed: y } = i, b = r - u + 1, E = i.drawX + p - (e - s) + 1;
4740
+ let R = o.height - w, O = C;
4741
+ O > h.visibleHeight && (O = h.visibleHeight);
4742
+ let I = 0;
4743
+ x && (g === "top" ? R = o.height + n.height - w : I = n.visibleHeight);
4744
+ const _ = w + O - (t - I - f);
4745
+ let v = c, S = d;
4746
+ E > 0 && !y ? v = Math.floor(c + E) : b > 0 && !y && (v = Math.floor(c - b)), R > 0 ? S = Math.floor(d - R) : _ > 0 && (S = Math.floor(d + _)), (Math.abs(c - v) > 2 || Math.abs(d - S) > 2) && (this.ctx.adjustPositioning = !0, this.ctx.setScroll(v, S), this.ctx.emit("adjustBoundaryPosition", i));
4742
4747
  }
4743
4748
  destroy() {
4744
4749
  this.timerX && (clearTimeout(this.timerX), this.timerX = 0), this.timerY && (clearTimeout(this.timerY), this.timerY = 0);
@@ -4802,21 +4807,21 @@ class Ci {
4802
4807
  SELECTOR_AREA_MAX_Y: f,
4803
4808
  SELECTOR_AREA_MAX_X_OFFSET: x,
4804
4809
  SELECTOR_AREA_MAX_Y_OFFSET: g
4805
- } = this.ctx.config, p = h, u = c || this.ctx.maxColIndex - x, w = d, m = f || this.ctx.maxRowIndex - g;
4810
+ } = this.ctx.config, m = h, u = c || this.ctx.maxColIndex - x, w = d, p = f || this.ctx.maxRowIndex - g;
4806
4811
  let [C, y] = o, [b, E] = n;
4807
- if (C < p || b < w)
4812
+ if (C < m || b < w)
4808
4813
  return;
4809
- o = [Math.max(p, C), Math.min(u, y)], n = [Math.max(w, b), Math.min(m, E)];
4810
- const { BEFORE_SET_AUTOFILL_METHOD: v } = this.ctx.config;
4811
- if (typeof v == "function") {
4812
- const L = v({
4814
+ o = [Math.max(m, C), Math.min(u, y)], n = [Math.max(w, b), Math.min(p, E)];
4815
+ const { BEFORE_SET_AUTOFILL_METHOD: R } = this.ctx.config;
4816
+ if (typeof R == "function") {
4817
+ const I = R({
4813
4818
  focusCell: this.ctx.focusCell,
4814
4819
  xArr: o,
4815
4820
  yArr: n
4816
4821
  });
4817
- if (!L)
4822
+ if (!I)
4818
4823
  return;
4819
- o = L.xArr, n = L.yArr;
4824
+ o = I.xArr, n = I.yArr;
4820
4825
  }
4821
4826
  this.ctx.autofill.xArr = o, this.ctx.autofill.yArr = n, this.ctx.emit("setAutofill", this.ctx.autofill), this.ctx.emit("draw");
4822
4827
  }
@@ -4827,8 +4832,8 @@ class Ci {
4827
4832
  async autofillData() {
4828
4833
  const t = /* @__PURE__ */ new Set(), e = this.ctx.getSelectedData(), i = /* @__PURE__ */ new Map();
4829
4834
  for (let g = 0; g <= e.yArr[1] - e.yArr[0]; g++)
4830
- for (let p = 0; p <= e.xArr[1] - e.xArr[0]; p++) {
4831
- const u = g + e.yArr[0], w = p + e.xArr[0];
4835
+ for (let m = 0; m <= e.xArr[1] - e.xArr[0]; m++) {
4836
+ const u = g + e.yArr[0], w = m + e.xArr[0];
4832
4837
  i.set(`${u}-${w}`, !0);
4833
4838
  }
4834
4839
  const { value: s } = e, r = s[0].length, o = s.length, n = this.ctx.autofill.xArr, h = this.ctx.autofill.yArr, c = r === 1 && o === 1;
@@ -4842,14 +4847,14 @@ class Ci {
4842
4847
  }
4843
4848
  let d = [];
4844
4849
  for (let g = 0; g <= h[1] - h[0]; g++)
4845
- for (let p = 0; p <= n[1] - n[0]; p++) {
4846
- const u = p + n[0], w = g + h[0], m = s[g % o][p % r], C = this.ctx.database.getItemValueForRowIndexAndColIndex(w, u), y = `${w}-${u}`;
4850
+ for (let m = 0; m <= n[1] - n[0]; m++) {
4851
+ const u = m + n[0], w = g + h[0], p = s[g % o][m % r], C = this.ctx.database.getItemValueForRowIndexAndColIndex(w, u), y = `${w}-${u}`;
4847
4852
  if (C && !i.has(y)) {
4848
4853
  const { rowKey: b, key: E } = C;
4849
4854
  this.ctx.database.getReadonly(b, E) || (t.add(b), d.push({
4850
4855
  rowKey: b,
4851
4856
  key: E,
4852
- value: m,
4857
+ value: p,
4853
4858
  row: {}
4854
4859
  }));
4855
4860
  }
@@ -4859,14 +4864,14 @@ class Ci {
4859
4864
  this.ctx.selector.xArr = this.ctx.autofill.xArr, this.ctx.selector.yArr = this.ctx.autofill.yArr;
4860
4865
  const { BEFORE_AUTOFILL_DATA_METHOD: f } = this.ctx.config;
4861
4866
  if (typeof f == "function") {
4862
- const g = f, p = d.map((u) => ({
4867
+ const g = f, m = d.map((u) => ({
4863
4868
  rowKey: u.rowKey,
4864
4869
  key: u.key,
4865
4870
  value: u.value,
4866
4871
  oldValue: this.ctx.database.getItemValue(u.rowKey, u.key),
4867
4872
  row: this.ctx.database.getRowDataItemForRowKey(u.rowKey)
4868
4873
  }));
4869
- if (d = await g(p, n, h), d && !d.length)
4874
+ if (d = await g(m, n, h), d && !d.length)
4870
4875
  return;
4871
4876
  }
4872
4877
  this.ctx.batchSetItemValueByEditor(d, !0);
@@ -4899,7 +4904,7 @@ const rt = Math.min, U = Math.max, ft = Math.round, z = (a) => ({
4899
4904
  start: "end",
4900
4905
  end: "start"
4901
4906
  };
4902
- function _t(a, t, e) {
4907
+ function It(a, t, e) {
4903
4908
  return U(a, rt(t, e));
4904
4909
  }
4905
4910
  function at(a, t) {
@@ -4929,14 +4934,14 @@ function Ri(a, t, e) {
4929
4934
  let o = s === "x" ? i === (e ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
4930
4935
  return t.reference[r] > t.floating[r] && (o = xt(o)), [o, xt(o)];
4931
4936
  }
4932
- function Ii(a) {
4937
+ function _i(a) {
4933
4938
  const t = xt(a);
4934
4939
  return [Ot(a), t, Ot(t)];
4935
4940
  }
4936
4941
  function Ot(a) {
4937
4942
  return a.replace(/start|end/g, (t) => vi[t]);
4938
4943
  }
4939
- function _i(a, t, e) {
4944
+ function Ii(a, t, e) {
4940
4945
  const i = ["left", "right"], s = ["right", "left"], r = ["top", "bottom"], o = ["bottom", "top"];
4941
4946
  switch (a) {
4942
4947
  case "top":
@@ -4951,7 +4956,7 @@ function _i(a, t, e) {
4951
4956
  }
4952
4957
  function Oi(a, t, e, i) {
4953
4958
  const s = lt(a);
4954
- let r = _i(G(a), e === "start", i);
4959
+ let r = Ii(G(a), e === "start", i);
4955
4960
  return s && (r = r.map((o) => o + "-" + s), t && (r = r.concat(r.map(Ot)))), r;
4956
4961
  }
4957
4962
  function xt(a) {
@@ -5054,17 +5059,17 @@ const Si = async (a, t, e) => {
5054
5059
  }), {
5055
5060
  x: d,
5056
5061
  y: f
5057
- } = $t(c, i, h), x = i, g = {}, p = 0;
5062
+ } = $t(c, i, h), x = i, g = {}, m = 0;
5058
5063
  for (let u = 0; u < n.length; u++) {
5059
5064
  const {
5060
5065
  name: w,
5061
- fn: m
5066
+ fn: p
5062
5067
  } = n[u], {
5063
5068
  x: C,
5064
5069
  y,
5065
5070
  data: b,
5066
5071
  reset: E
5067
- } = await m({
5072
+ } = await p({
5068
5073
  x: d,
5069
5074
  y: f,
5070
5075
  initialPlacement: i,
@@ -5084,7 +5089,7 @@ const Si = async (a, t, e) => {
5084
5089
  ...g[w],
5085
5090
  ...b
5086
5091
  }
5087
- }, E && p <= 50 && (p++, typeof E == "object" && (E.placement && (x = E.placement), E.rects && (c = E.rects === !0 ? await o.getElementRects({
5092
+ }, E && m <= 50 && (m++, typeof E == "object" && (E.placement && (x = E.placement), E.rects && (c = E.rects === !0 ? await o.getElementRects({
5088
5093
  reference: a,
5089
5094
  floating: t,
5090
5095
  strategy: s
@@ -5117,7 +5122,7 @@ async function he(a, t) {
5117
5122
  elementContext: f = "floating",
5118
5123
  altBoundary: x = !1,
5119
5124
  padding: g = 0
5120
- } = at(t, a), p = le(g), w = n[x ? f === "floating" ? "reference" : "floating" : f], m = ut(await r.getClippingRect({
5125
+ } = at(t, a), m = le(g), w = n[x ? f === "floating" ? "reference" : "floating" : f], p = ut(await r.getClippingRect({
5121
5126
  element: (e = await (r.isElement == null ? void 0 : r.isElement(w))) == null || e ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(n.floating)),
5122
5127
  boundary: c,
5123
5128
  rootBoundary: d,
@@ -5140,13 +5145,13 @@ async function he(a, t) {
5140
5145
  strategy: h
5141
5146
  }) : C);
5142
5147
  return {
5143
- top: (m.top - E.top + p.top) / b.y,
5144
- bottom: (E.bottom - m.bottom + p.bottom) / b.y,
5145
- left: (m.left - E.left + p.left) / b.x,
5146
- right: (E.right - m.right + p.right) / b.x
5148
+ top: (p.top - E.top + m.top) / b.y,
5149
+ bottom: (E.bottom - p.bottom + m.bottom) / b.y,
5150
+ left: (p.left - E.left + m.left) / b.x,
5151
+ right: (E.right - p.right + m.right) / b.x
5147
5152
  };
5148
5153
  }
5149
- const Ai = (a) => ({
5154
+ const Ti = (a) => ({
5150
5155
  name: "arrow",
5151
5156
  options: a,
5152
5157
  async fn(t) {
@@ -5167,15 +5172,15 @@ const Ai = (a) => ({
5167
5172
  const f = le(d), x = {
5168
5173
  x: e,
5169
5174
  y: i
5170
- }, g = Ht(s), p = Mt(g), u = await o.getDimensions(c), w = g === "y", m = w ? "top" : "left", C = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", b = r.reference[p] + r.reference[g] - x[g] - r.floating[p], E = x[g] - r.reference[g], v = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
5171
- let _ = v ? v[y] : 0;
5172
- (!_ || !await (o.isElement == null ? void 0 : o.isElement(v))) && (_ = n.floating[y] || r.floating[p]);
5173
- const L = b / 2 - E / 2, I = _ / 2 - u[p] / 2 - 1, R = rt(f[m], I), A = rt(f[C], I), S = R, M = _ - u[p] - A, T = _ / 2 - u[p] / 2 + L, B = _t(S, T, M), Y = !h.arrow && lt(s) != null && T !== B && r.reference[p] / 2 - (T < S ? R : A) - u[p] / 2 < 0, k = Y ? T < S ? T - S : T - M : 0;
5175
+ }, g = Ht(s), m = Mt(g), u = await o.getDimensions(c), w = g === "y", p = w ? "top" : "left", C = w ? "bottom" : "right", y = w ? "clientHeight" : "clientWidth", b = r.reference[m] + r.reference[g] - x[g] - r.floating[m], E = x[g] - r.reference[g], R = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
5176
+ let O = R ? R[y] : 0;
5177
+ (!O || !await (o.isElement == null ? void 0 : o.isElement(R))) && (O = n.floating[y] || r.floating[m]);
5178
+ const I = b / 2 - E / 2, _ = O / 2 - u[m] / 2 - 1, v = rt(f[p], _), S = rt(f[C], _), T = v, M = O - u[m] - S, A = O / 2 - u[m] / 2 + I, B = It(T, A, M), Y = !h.arrow && lt(s) != null && A !== B && r.reference[m] / 2 - (A < T ? v : S) - u[m] / 2 < 0, k = Y ? A < T ? A - T : A - M : 0;
5174
5179
  return {
5175
5180
  [g]: x[g] + k,
5176
5181
  data: {
5177
5182
  [g]: B,
5178
- centerOffset: T - B - k,
5183
+ centerOffset: A - B - k,
5179
5184
  ...Y && {
5180
5185
  alignmentOffset: k
5181
5186
  }
@@ -5183,7 +5188,7 @@ const Ai = (a) => ({
5183
5188
  reset: Y
5184
5189
  };
5185
5190
  }
5186
- }), Ti = function(a) {
5191
+ }), Ai = function(a) {
5187
5192
  return a === void 0 && (a = {}), {
5188
5193
  name: "flip",
5189
5194
  options: a,
@@ -5201,43 +5206,43 @@ const Ai = (a) => ({
5201
5206
  crossAxis: f = !0,
5202
5207
  fallbackPlacements: x,
5203
5208
  fallbackStrategy: g = "bestFit",
5204
- fallbackAxisSideDirection: p = "none",
5209
+ fallbackAxisSideDirection: m = "none",
5205
5210
  flipAlignment: u = !0,
5206
5211
  ...w
5207
5212
  } = at(a, t);
5208
5213
  if ((e = r.arrow) != null && e.alignmentOffset)
5209
5214
  return {};
5210
- const m = G(s), C = J(n), y = G(n) === n, b = await (h.isRTL == null ? void 0 : h.isRTL(c.floating)), E = x || (y || !u ? [xt(n)] : Ii(n)), v = p !== "none";
5211
- !x && v && E.push(...Oi(n, u, p, b));
5212
- const _ = [n, ...E], L = await he(t, w), I = [];
5213
- let R = ((i = r.flip) == null ? void 0 : i.overflows) || [];
5214
- if (d && I.push(L[m]), f) {
5215
- const T = Ri(s, o, b);
5216
- I.push(L[T[0]], L[T[1]]);
5215
+ const p = G(s), C = J(n), y = G(n) === n, b = await (h.isRTL == null ? void 0 : h.isRTL(c.floating)), E = x || (y || !u ? [xt(n)] : _i(n)), R = m !== "none";
5216
+ !x && R && E.push(...Oi(n, u, m, b));
5217
+ const O = [n, ...E], I = await he(t, w), _ = [];
5218
+ let v = ((i = r.flip) == null ? void 0 : i.overflows) || [];
5219
+ if (d && _.push(I[p]), f) {
5220
+ const A = Ri(s, o, b);
5221
+ _.push(I[A[0]], I[A[1]]);
5217
5222
  }
5218
- if (R = [...R, {
5223
+ if (v = [...v, {
5219
5224
  placement: s,
5220
- overflows: I
5221
- }], !I.every((T) => T <= 0)) {
5222
- var A, S;
5223
- const T = (((A = r.flip) == null ? void 0 : A.index) || 0) + 1, B = _[T];
5225
+ overflows: _
5226
+ }], !_.every((A) => A <= 0)) {
5227
+ var S, T;
5228
+ const A = (((S = r.flip) == null ? void 0 : S.index) || 0) + 1, B = O[A];
5224
5229
  if (B)
5225
5230
  return {
5226
5231
  data: {
5227
- index: T,
5228
- overflows: R
5232
+ index: A,
5233
+ overflows: v
5229
5234
  },
5230
5235
  reset: {
5231
5236
  placement: B
5232
5237
  }
5233
5238
  };
5234
- let Y = (S = R.filter((k) => k.overflows[0] <= 0).sort((k, W) => k.overflows[1] - W.overflows[1])[0]) == null ? void 0 : S.placement;
5239
+ let Y = (T = v.filter((k) => k.overflows[0] <= 0).sort((k, W) => k.overflows[1] - W.overflows[1])[0]) == null ? void 0 : T.placement;
5235
5240
  if (!Y)
5236
5241
  switch (g) {
5237
5242
  case "bestFit": {
5238
5243
  var M;
5239
- const k = (M = R.filter((W) => {
5240
- if (v) {
5244
+ const k = (M = v.filter((W) => {
5245
+ if (R) {
5241
5246
  const P = J(W.placement);
5242
5247
  return P === C || // Create a bias to the `y` side axis due to horizontal
5243
5248
  // reading directions favoring greater width.
@@ -5272,7 +5277,7 @@ async function Mi(a, t) {
5272
5277
  let {
5273
5278
  mainAxis: x,
5274
5279
  crossAxis: g,
5275
- alignmentAxis: p
5280
+ alignmentAxis: m
5276
5281
  } = typeof f == "number" ? {
5277
5282
  mainAxis: f,
5278
5283
  crossAxis: 0,
@@ -5282,7 +5287,7 @@ async function Mi(a, t) {
5282
5287
  crossAxis: f.crossAxis || 0,
5283
5288
  alignmentAxis: f.alignmentAxis
5284
5289
  };
5285
- return n && typeof p == "number" && (g = n === "end" ? p * -1 : p), h ? {
5290
+ return n && typeof m == "number" && (g = n === "end" ? m * -1 : m), h ? {
5286
5291
  x: g * d,
5287
5292
  y: x * c
5288
5293
  } : {
@@ -5327,11 +5332,11 @@ const Hi = function(a) {
5327
5332
  limiter: n = {
5328
5333
  fn: (w) => {
5329
5334
  let {
5330
- x: m,
5335
+ x: p,
5331
5336
  y: C
5332
5337
  } = w;
5333
5338
  return {
5334
- x: m,
5339
+ x: p,
5335
5340
  y: C
5336
5341
  };
5337
5342
  }
@@ -5341,19 +5346,19 @@ const Hi = function(a) {
5341
5346
  x: e,
5342
5347
  y: i
5343
5348
  }, d = await he(t, h), f = J(G(s)), x = ae(f);
5344
- let g = c[x], p = c[f];
5349
+ let g = c[x], m = c[f];
5345
5350
  if (r) {
5346
- const w = x === "y" ? "top" : "left", m = x === "y" ? "bottom" : "right", C = g + d[w], y = g - d[m];
5347
- g = _t(C, g, y);
5351
+ const w = x === "y" ? "top" : "left", p = x === "y" ? "bottom" : "right", C = g + d[w], y = g - d[p];
5352
+ g = It(C, g, y);
5348
5353
  }
5349
5354
  if (o) {
5350
- const w = f === "y" ? "top" : "left", m = f === "y" ? "bottom" : "right", C = p + d[w], y = p - d[m];
5351
- p = _t(C, p, y);
5355
+ const w = f === "y" ? "top" : "left", p = f === "y" ? "bottom" : "right", C = m + d[w], y = m - d[p];
5356
+ m = It(C, m, y);
5352
5357
  }
5353
5358
  const u = n.fn({
5354
5359
  ...t,
5355
5360
  [x]: g,
5356
- [f]: p
5361
+ [f]: m
5357
5362
  });
5358
5363
  return {
5359
5364
  ...u,
@@ -5375,7 +5380,7 @@ function gt() {
5375
5380
  function tt(a) {
5376
5381
  return ce(a) ? (a.nodeName || "").toLowerCase() : "#document";
5377
5382
  }
5378
- function N(a) {
5383
+ function X(a) {
5379
5384
  var t;
5380
5385
  return (a == null || (t = a.ownerDocument) == null ? void 0 : t.defaultView) || window;
5381
5386
  }
@@ -5384,16 +5389,16 @@ function V(a) {
5384
5389
  return (t = (ce(a) ? a.ownerDocument : a.document) || window.document) == null ? void 0 : t.documentElement;
5385
5390
  }
5386
5391
  function ce(a) {
5387
- return gt() ? a instanceof Node || a instanceof N(a).Node : !1;
5392
+ return gt() ? a instanceof Node || a instanceof X(a).Node : !1;
5388
5393
  }
5389
- function X(a) {
5390
- return gt() ? a instanceof Element || a instanceof N(a).Element : !1;
5394
+ function N(a) {
5395
+ return gt() ? a instanceof Element || a instanceof X(a).Element : !1;
5391
5396
  }
5392
5397
  function K(a) {
5393
- return gt() ? a instanceof HTMLElement || a instanceof N(a).HTMLElement : !1;
5398
+ return gt() ? a instanceof HTMLElement || a instanceof X(a).HTMLElement : !1;
5394
5399
  }
5395
5400
  function qt(a) {
5396
- return !gt() || typeof ShadowRoot > "u" ? !1 : a instanceof ShadowRoot || a instanceof N(a).ShadowRoot;
5401
+ return !gt() || typeof ShadowRoot > "u" ? !1 : a instanceof ShadowRoot || a instanceof X(a).ShadowRoot;
5397
5402
  }
5398
5403
  function ht(a) {
5399
5404
  const {
@@ -5404,7 +5409,7 @@ function ht(a) {
5404
5409
  } = F(a);
5405
5410
  return /auto|scroll|overlay|hidden|clip/.test(t + i + e) && !["inline", "contents"].includes(s);
5406
5411
  }
5407
- function Ni(a) {
5412
+ function Xi(a) {
5408
5413
  return ["table", "td", "th"].includes(tt(a));
5409
5414
  }
5410
5415
  function wt(a) {
@@ -5417,10 +5422,10 @@ function wt(a) {
5417
5422
  });
5418
5423
  }
5419
5424
  function Dt(a) {
5420
- const t = Nt(), e = X(a) ? F(a) : a;
5425
+ const t = Xt(), e = N(a) ? F(a) : a;
5421
5426
  return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((i) => (e.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (e.contain || "").includes(i));
5422
5427
  }
5423
- function Xi(a) {
5428
+ function Ni(a) {
5424
5429
  let t = $(a);
5425
5430
  for (; K(t) && !Q(t); ) {
5426
5431
  if (Dt(t))
@@ -5431,17 +5436,17 @@ function Xi(a) {
5431
5436
  }
5432
5437
  return null;
5433
5438
  }
5434
- function Nt() {
5439
+ function Xt() {
5435
5440
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
5436
5441
  }
5437
5442
  function Q(a) {
5438
5443
  return ["html", "body", "#document"].includes(tt(a));
5439
5444
  }
5440
5445
  function F(a) {
5441
- return N(a).getComputedStyle(a);
5446
+ return X(a).getComputedStyle(a);
5442
5447
  }
5443
5448
  function pt(a) {
5444
- return X(a) ? {
5449
+ return N(a) ? {
5445
5450
  scrollLeft: a.scrollLeft,
5446
5451
  scrollTop: a.scrollTop
5447
5452
  } : {
@@ -5468,7 +5473,7 @@ function de(a) {
5468
5473
  function Lt(a, t, e) {
5469
5474
  var i;
5470
5475
  t === void 0 && (t = []), e === void 0 && (e = !0);
5471
- const s = de(a), r = s === ((i = a.ownerDocument) == null ? void 0 : i.body), o = N(s);
5476
+ const s = de(a), r = s === ((i = a.ownerDocument) == null ? void 0 : i.body), o = X(s);
5472
5477
  if (r) {
5473
5478
  const n = St(o);
5474
5479
  return t.concat(o, o.visualViewport || [], ht(s) ? s : [], n && e ? Lt(n) : []);
@@ -5489,7 +5494,7 @@ function fe(a) {
5489
5494
  };
5490
5495
  }
5491
5496
  function xe(a) {
5492
- return X(a) ? a : a.contextElement;
5497
+ return N(a) ? a : a.contextElement;
5493
5498
  }
5494
5499
  function Z(a) {
5495
5500
  const t = xe(a);
@@ -5508,28 +5513,28 @@ function Z(a) {
5508
5513
  }
5509
5514
  const Fi = /* @__PURE__ */ z(0);
5510
5515
  function ue(a) {
5511
- const t = N(a);
5512
- return !Nt() || !t.visualViewport ? Fi : {
5516
+ const t = X(a);
5517
+ return !Xt() || !t.visualViewport ? Fi : {
5513
5518
  x: t.visualViewport.offsetLeft,
5514
5519
  y: t.visualViewport.offsetTop
5515
5520
  };
5516
5521
  }
5517
5522
  function Bi(a, t, e) {
5518
- return t === void 0 && (t = !1), !e || t && e !== N(a) ? !1 : t;
5523
+ return t === void 0 && (t = !1), !e || t && e !== X(a) ? !1 : t;
5519
5524
  }
5520
5525
  function ot(a, t, e, i) {
5521
5526
  t === void 0 && (t = !1), e === void 0 && (e = !1);
5522
5527
  const s = a.getBoundingClientRect(), r = xe(a);
5523
5528
  let o = z(1);
5524
- t && (i ? X(i) && (o = Z(i)) : o = Z(a));
5529
+ t && (i ? N(i) && (o = Z(i)) : o = Z(a));
5525
5530
  const n = Bi(r, e, i) ? ue(r) : z(0);
5526
5531
  let h = (s.left + n.x) / o.x, c = (s.top + n.y) / o.y, d = s.width / o.x, f = s.height / o.y;
5527
5532
  if (r) {
5528
- const x = N(r), g = i && X(i) ? N(i) : i;
5529
- let p = x, u = St(p);
5530
- for (; u && i && g !== p; ) {
5531
- const w = Z(u), m = u.getBoundingClientRect(), C = F(u), y = m.left + (u.clientLeft + parseFloat(C.paddingLeft)) * w.x, b = m.top + (u.clientTop + parseFloat(C.paddingTop)) * w.y;
5532
- h *= w.x, c *= w.y, d *= w.x, f *= w.y, h += y, c += b, p = N(u), u = St(p);
5533
+ const x = X(r), g = i && N(i) ? X(i) : i;
5534
+ let m = x, u = St(m);
5535
+ for (; u && i && g !== m; ) {
5536
+ const w = Z(u), p = u.getBoundingClientRect(), C = F(u), y = p.left + (u.clientLeft + parseFloat(C.paddingLeft)) * w.x, b = p.top + (u.clientTop + parseFloat(C.paddingTop)) * w.y;
5537
+ h *= w.x, c *= w.y, d *= w.x, f *= w.y, h += y, c += b, m = X(u), u = St(m);
5533
5538
  }
5534
5539
  }
5535
5540
  return ut({
@@ -5568,13 +5573,13 @@ function ki(a) {
5568
5573
  function Ki(a) {
5569
5574
  return Array.from(a.getClientRects());
5570
5575
  }
5571
- function At(a, t) {
5576
+ function Tt(a, t) {
5572
5577
  const e = pt(a).scrollLeft;
5573
5578
  return t ? t.left + e : ot(V(a)).left + e;
5574
5579
  }
5575
5580
  function Yi(a) {
5576
5581
  const t = V(a), e = pt(a), i = a.ownerDocument.body, s = U(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), r = U(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight);
5577
- let o = -e.scrollLeft + At(a);
5582
+ let o = -e.scrollLeft + Tt(a);
5578
5583
  const n = -e.scrollTop;
5579
5584
  return F(i).direction === "rtl" && (o += U(t.clientWidth, i.clientWidth) - s), {
5580
5585
  width: s,
@@ -5584,11 +5589,11 @@ function Yi(a) {
5584
5589
  };
5585
5590
  }
5586
5591
  function Vi(a, t) {
5587
- const e = N(a), i = V(a), s = e.visualViewport;
5592
+ const e = X(a), i = V(a), s = e.visualViewport;
5588
5593
  let r = i.clientWidth, o = i.clientHeight, n = 0, h = 0;
5589
5594
  if (s) {
5590
5595
  r = s.width, o = s.height;
5591
- const c = Nt();
5596
+ const c = Xt();
5592
5597
  (!c || c && t === "fixed") && (n = s.offsetLeft, h = s.offsetTop);
5593
5598
  }
5594
5599
  return {
@@ -5613,7 +5618,7 @@ function Gt(a, t, e) {
5613
5618
  i = Vi(a, e);
5614
5619
  else if (t === "document")
5615
5620
  i = Yi(V(a));
5616
- else if (X(t))
5621
+ else if (N(t))
5617
5622
  i = Wi(t, e);
5618
5623
  else {
5619
5624
  const s = ue(a);
@@ -5627,16 +5632,16 @@ function Gt(a, t, e) {
5627
5632
  }
5628
5633
  function ge(a, t) {
5629
5634
  const e = $(a);
5630
- return e === t || !X(e) || Q(e) ? !1 : F(e).position === "fixed" || ge(e, t);
5635
+ return e === t || !N(e) || Q(e) ? !1 : F(e).position === "fixed" || ge(e, t);
5631
5636
  }
5632
5637
  function Pi(a, t) {
5633
5638
  const e = t.get(a);
5634
5639
  if (e)
5635
5640
  return e;
5636
- let i = Lt(a, [], !1).filter((n) => X(n) && tt(n) !== "body"), s = null;
5641
+ let i = Lt(a, [], !1).filter((n) => N(n) && tt(n) !== "body"), s = null;
5637
5642
  const r = F(a).position === "fixed";
5638
5643
  let o = r ? $(a) : a;
5639
- for (; X(o) && !Q(o); ) {
5644
+ for (; N(o) && !Q(o); ) {
5640
5645
  const n = F(o), h = Dt(o);
5641
5646
  !h && n.position === "fixed" && (s = null), (r ? !h && !s : !h && n.position === "static" && !!s && ["absolute", "fixed"].includes(s.position) || ht(o) && !h && ge(a, o)) ? i = i.filter((d) => d !== o) : s = n, o = $(o);
5642
5647
  }
@@ -5681,12 +5686,12 @@ function qi(a, t, e) {
5681
5686
  if ((tt(t) !== "body" || ht(s)) && (n = pt(t)), i) {
5682
5687
  const g = ot(t, !0, r, t);
5683
5688
  h.x = g.x + t.clientLeft, h.y = g.y + t.clientTop;
5684
- } else s && (h.x = At(s));
5689
+ } else s && (h.x = Tt(s));
5685
5690
  let c = 0, d = 0;
5686
5691
  if (s && !i && !r) {
5687
5692
  const g = s.getBoundingClientRect();
5688
5693
  d = g.top + n.scrollTop, c = g.left + n.scrollLeft - // RTL <body> scrollbar.
5689
- At(s, g);
5694
+ Tt(s, g);
5690
5695
  }
5691
5696
  const f = o.left + n.scrollLeft - h.x - c, x = o.top + n.scrollTop - h.y - d;
5692
5697
  return {
@@ -5708,22 +5713,22 @@ function jt(a, t) {
5708
5713
  return V(a) === e && (e = e.ownerDocument.body), e;
5709
5714
  }
5710
5715
  function we(a, t) {
5711
- const e = N(a);
5716
+ const e = X(a);
5712
5717
  if (wt(a))
5713
5718
  return e;
5714
5719
  if (!K(a)) {
5715
5720
  let s = $(a);
5716
5721
  for (; s && !Q(s); ) {
5717
- if (X(s) && !yt(s))
5722
+ if (N(s) && !yt(s))
5718
5723
  return s;
5719
5724
  s = $(s);
5720
5725
  }
5721
5726
  return e;
5722
5727
  }
5723
5728
  let i = jt(a, t);
5724
- for (; i && Ni(i) && yt(i); )
5729
+ for (; i && Xi(i) && yt(i); )
5725
5730
  i = jt(i, t);
5726
- return i && Q(i) && yt(i) && !Dt(i) ? e : i || Xi(a) || e;
5731
+ return i && Q(i) && yt(i) && !Dt(i) ? e : i || Ni(a) || e;
5727
5732
  }
5728
5733
  const Gi = async function(a) {
5729
5734
  const t = this.getOffsetParent || we, e = this.getDimensions, i = await e(a.floating);
@@ -5749,9 +5754,9 @@ const Ui = {
5749
5754
  getClientRects: Ki,
5750
5755
  getDimensions: $i,
5751
5756
  getScale: Z,
5752
- isElement: X,
5757
+ isElement: N,
5753
5758
  isRTL: ji
5754
- }, pe = Hi, me = Di, ye = Ti, Zi = Ai, Ee = (a, t, e) => {
5759
+ }, pe = Hi, me = Di, ye = Ai, Zi = Ti, Ee = (a, t, e) => {
5755
5760
  const i = /* @__PURE__ */ new Map(), s = {
5756
5761
  platform: Ui,
5757
5762
  ...e
@@ -6156,7 +6161,7 @@ class es {
6156
6161
  height: `${o}px`
6157
6162
  },
6158
6163
  cells: h
6159
- }, p = {
6164
+ }, m = {
6160
6165
  key: "right",
6161
6166
  style: {
6162
6167
  position: "absolute",
@@ -6177,15 +6182,15 @@ class es {
6177
6182
  width: `${r}px`,
6178
6183
  height: `${o}px`
6179
6184
  },
6180
- views: [x, g, p]
6185
+ views: [x, g, m]
6181
6186
  };
6182
6187
  }
6183
6188
  getBody() {
6184
6189
  const t = [], e = [], i = [];
6185
6190
  let s = this.ctx.body.renderRows;
6186
6191
  this.ctx.config.FOOTER_FIXED || (s = s.concat(this.ctx.footer.renderRows)), s.forEach((w) => {
6187
- w.cells.forEach((m) => {
6188
- m.cellType === "footer" && (m.render = m.renderFooter), m.render && (m.fixed === "left" ? e.push(m) : m.fixed === "right" ? i.push(m) : t.push(m));
6192
+ w.cells.forEach((p) => {
6193
+ p.cellType === "footer" && (p.render = p.renderFooter), p.render && (p.fixed === "left" ? e.push(p) : p.fixed === "right" ? i.push(p) : t.push(p));
6189
6194
  });
6190
6195
  });
6191
6196
  const {
@@ -6214,7 +6219,7 @@ class es {
6214
6219
  height: `${d}px`
6215
6220
  },
6216
6221
  cells: t
6217
- }, p = {
6222
+ }, m = {
6218
6223
  key: "right",
6219
6224
  style: {
6220
6225
  position: "absolute",
@@ -6235,7 +6240,7 @@ class es {
6235
6240
  width: `${c}px`,
6236
6241
  height: `${d}px`
6237
6242
  },
6238
- views: [x, g, p]
6243
+ views: [x, g, m]
6239
6244
  };
6240
6245
  }
6241
6246
  getFooter() {
@@ -6325,8 +6330,8 @@ class is {
6325
6330
  Ee(x, this.contextMenuEl, {
6326
6331
  placement: "right-start",
6327
6332
  middleware: [pe(), me(), ye()]
6328
- }).then(({ x: g, y: p }) => {
6329
- this.show(g, p);
6333
+ }).then(({ x: g, y: m }) => {
6334
+ this.show(g, m);
6330
6335
  });
6331
6336
  }), this.ctx.on("click", this.hide.bind(this)), this.ctx.on("onScroll", this.hide.bind(this)), this.ctx.on("resize", this.hide.bind(this));
6332
6337
  }