@fileverse-dev/dsheet 3.0.1-yjs-10 → 3.0.1-yjs-12

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.
@@ -9,7 +9,7 @@ var Wu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
9
9
  function bs(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
11
  }
12
- function hp(e) {
12
+ function gp(e) {
13
13
  if (e.__esModule) return e;
14
14
  var t = e.default;
15
15
  if (typeof t == "function") {
@@ -35,7 +35,7 @@ const hr = {}, Ra = {
35
35
  hi: () => import("./hi-Ca55EZ4A.js"),
36
36
  "zh-TW": () => import("./zh_tw-CINWHD2H.js")
37
37
  };
38
- async function pp(e) {
38
+ async function yp(e) {
39
39
  const t = e in Ra ? e : e.split("-")[0], n = t in Ra ? t : "en";
40
40
  if (hr[n]) return;
41
41
  const r = await Ra[n]();
@@ -119,7 +119,7 @@ function Ju(e) {
119
119
  function Bn(e) {
120
120
  return e == null ? !1 : typeof e != "object" ? !0 : ha(e);
121
121
  }
122
- function gp(e, t) {
122
+ function bp(e, t) {
123
123
  if (e === t) return !0;
124
124
  if (e == null || t == null) return !1;
125
125
  const n = e, r = t;
@@ -235,7 +235,7 @@ function ac(e) {
235
235
  }
236
236
  return n.push([r, a]), n;
237
237
  }
238
- function yp(e, t, n) {
238
+ function wp(e, t, n) {
239
239
  if (!(e != null && e.length)) return [];
240
240
  const r = [];
241
241
  return e.forEach((a) => {
@@ -249,7 +249,7 @@ function yp(e, t, n) {
249
249
  });
250
250
  }), Jn(r);
251
251
  }
252
- function bp(e, t, n) {
252
+ function vp(e, t, n) {
253
253
  if (!(e != null && e.length)) return [];
254
254
  const r = { ...t }, a = n.row[0] - t.row[0], l = n.column[0] - t.column[0], o = [];
255
255
  e.forEach((s) => {
@@ -418,7 +418,7 @@ function Ao(e, t) {
418
418
  }
419
419
  }
420
420
  }
421
- function wp(e) {
421
+ function _p(e) {
422
422
  var s;
423
423
  if (Array.isArray(e.data) && e.data.length > 0)
424
424
  return e.data;
@@ -462,7 +462,7 @@ function fc(e, t) {
462
462
  return !0;
463
463
  return !1;
464
464
  }
465
- function vp(e) {
465
+ function Tp(e) {
466
466
  return e.luckysheetfile;
467
467
  }
468
468
  function Ss(e, t, n) {
@@ -489,7 +489,7 @@ function Eo(e, t = {}) {
489
489
  const r = e.luckysheetfile[n];
490
490
  return r ? (a = r.data) != null && a.length ? r.data : Ss(e, n, r) : null;
491
491
  }
492
- function _p(e, t) {
492
+ function $p(e, t) {
493
493
  const n = Ee(e, t);
494
494
  e.luckysheetfile[n].hide = 1, e.luckysheetfile[n].status = 0;
495
495
  const r = e.luckysheetfile.filter(
@@ -497,7 +497,7 @@ function _p(e, t) {
497
497
  );
498
498
  e.currentSheetId = r[0].id;
499
499
  }
500
- function Tp(e, t) {
500
+ function Cp(e, t) {
501
501
  const n = Ee(e, t);
502
502
  e.luckysheetfile[n].hide = void 0;
503
503
  }
@@ -525,10 +525,10 @@ function dc(e, t) {
525
525
  } while (s.indexOf(c) !== -1);
526
526
  return c;
527
527
  }
528
- function $p(e, t) {
528
+ function Np(e, t) {
529
529
  var c, f, m, d, p;
530
530
  const n = Ee(e, t), r = e.luckysheetfile[n].order + 1, a = dc(e, t), l = h.cloneDeep(e.luckysheetfile[n]);
531
- delete l.id, delete l.status, l.celldata = To(l.data), delete l.data, Jh(
531
+ delete l.id, delete l.status, l.celldata = To(l.data), delete l.data, tp(
532
532
  e,
533
533
  void 0,
534
534
  ws(),
@@ -548,7 +548,7 @@ function $p(e, t) {
548
548
  (g) => g && typeof g == "object" && "id" in g ? { ...g, id: u } : g
549
549
  ));
550
550
  const s = {};
551
- if (s[u] = r, ep(e, s), wo(e, u), (d = e == null ? void 0 : e.hooks) != null && d.updateAllCell)
551
+ if (s[u] = r, np(e, s), wo(e, u), (d = e == null ? void 0 : e.hooks) != null && d.updateAllCell)
552
552
  e.hooks.updateAllCell(u, "duplicateSheet");
553
553
  else if ((p = e == null ? void 0 : e.hooks) != null && p.updateCellYdoc) {
554
554
  const g = [], y = i.celldata || To(i.data);
@@ -565,7 +565,7 @@ function $p(e, t) {
565
565
  }), g.length > 0 && e.hooks.updateCellYdoc(g);
566
566
  }
567
567
  }
568
- function Cp(e, t) {
568
+ function Sp(e, t) {
569
569
  var r, a, l;
570
570
  const n = Ee(e, t);
571
571
  if (e.luckysheetfile[n].data)
@@ -588,7 +588,7 @@ function Cp(e, t) {
588
588
  On(e, o, i, t);
589
589
  }
590
590
  }
591
- function Np(e, t, n) {
591
+ function kp(e, t, n) {
592
592
  var a, l, o, i, u;
593
593
  const r = Ee(e, t);
594
594
  if (e.luckysheetfile[r].data)
@@ -14478,7 +14478,7 @@ let Do = "uk";
14478
14478
  function ef(e) {
14479
14479
  return e === "us" ? "us" : "uk";
14480
14480
  }
14481
- function Sp(e) {
14481
+ function Ap(e) {
14482
14482
  Do = ef(e);
14483
14483
  }
14484
14484
  function tf() {
@@ -14512,7 +14512,7 @@ function af(e) {
14512
14512
  function of(e, t) {
14513
14513
  return af(e) ? e : Is(t);
14514
14514
  }
14515
- const Nr = "light", kp = "#EFC703", io = {
14515
+ const Nr = "light", Ep = "#EFC703", io = {
14516
14516
  light: {
14517
14517
  cellBg: "#FFFFFF",
14518
14518
  gridLine: "#e8ebec",
@@ -14565,11 +14565,11 @@ const Nr = "light", kp = "#EFC703", io = {
14565
14565
  }
14566
14566
  }, lf = (e) => io[e ?? Nr] ?? io[Nr];
14567
14567
  let sr = io[Nr], Pi = Nr;
14568
- const Ap = (e) => {
14568
+ const Mp = (e) => {
14569
14569
  const t = e ?? Nr;
14570
14570
  return t === Pi ? !1 : (Pi = t, sr = lf(t), !0);
14571
14571
  };
14572
- function Ep(e) {
14572
+ function Rp(e) {
14573
14573
  if (document.createRange)
14574
14574
  if (e.innerHTML !== e.innerText || e.innerHTML === "") {
14575
14575
  e.focus();
@@ -14661,7 +14661,7 @@ function Oa(e, t, n) {
14661
14661
  c.setStart(l, o), c.setEnd(i, u), r.removeAllRanges(), r.addRange(c);
14662
14662
  }
14663
14663
  }
14664
- function Mp(e, t, n) {
14664
+ function xp(e, t, n) {
14665
14665
  if (t >= n) return [];
14666
14666
  let r = 0, a = null, l = 0, o = null, i = 0;
14667
14667
  function u(f) {
@@ -14724,7 +14724,7 @@ function $n(e) {
14724
14724
  var t;
14725
14725
  return (e == null ? void 0 : e.t) === "inlineStr" && (((t = e == null ? void 0 : e.s) == null ? void 0 : t.length) ?? 0) > 0;
14726
14726
  }
14727
- function Rp(e, t, n) {
14727
+ function Ip(e, t, n) {
14728
14728
  const r = at(e, t, n, "ct");
14729
14729
  if ($n(r)) {
14730
14730
  const a = r.s;
@@ -15267,7 +15267,7 @@ function Ps(e) {
15267
15267
  if (!(!r || !a) && !(r.linkType !== a.linkType || r.linkAddress !== a.linkAddress))
15268
15268
  return r;
15269
15269
  }
15270
- function xp(e) {
15270
+ function qp(e) {
15271
15271
  const t = window.getSelection();
15272
15272
  if (!(t != null && t.rangeCount) || !t.anchorNode || !e.contains(t.anchorNode))
15273
15273
  return;
@@ -18101,7 +18101,7 @@ function Uf(e) {
18101
18101
  let n = 1, r = e.replace(/([\d]),([\d])/g, "$1$2").replace(/[$]/g, "").replace(/[%]/g, () => (n *= 100, ""));
18102
18102
  return t = Number(r), !Number.isNaN(t) || (r = r.replace(/[(](.*)[)]/, (a, l) => (n = -n, l)), t = Number(r), !Number.isNaN(t)) ? t / n : t;
18103
18103
  }
18104
- function Ip(e, t, n) {
18104
+ function Dp(e, t, n) {
18105
18105
  var a, l, o, i, u, s;
18106
18106
  let r = at(e, t, n, "m");
18107
18107
  return r == null ? r = at(e, t, n, "v") : Number.isNaN(Uf(r)) ? ((o = (l = (a = n[e]) == null ? void 0 : a[t]) == null ? void 0 : l.ct) == null ? void 0 : o.t) === "d" || ((s = (u = (i = n[e]) == null ? void 0 : i[t]) == null ? void 0 : u.ct) == null ? void 0 : s.t) === "b" || (r = at(e, t, n, "v")) : h.isString(r) && r.indexOf("%") > -1 || (r = at(e, t, n, "v")), r;
@@ -18158,8 +18158,8 @@ function zn(e, t) {
18158
18158
  let n = h.sortedIndex(t, e);
18159
18159
  return n >= t.length && e > 0 ? n = t.length - 1 : n === -1 && e <= 0 && (n = 0), mo(n, t);
18160
18160
  }
18161
- const zf = 15, Yf = 50, qp = 100, Dp = 300, Op = 3e4, Vf = "fortune-formula-execution-debug";
18162
- function Fp() {
18161
+ const zf = 15, Yf = 50, Op = 100, Fp = 300, Lp = 3e4, Vf = "fortune-formula-execution-debug";
18162
+ function Bp() {
18163
18163
  if (typeof window > "u") return !1;
18164
18164
  try {
18165
18165
  return localStorage.getItem(Vf) === "true";
@@ -18171,7 +18171,7 @@ function ho(e) {
18171
18171
  return !!(e.isFormulaCalculating && e.formulaAsyncEval);
18172
18172
  }
18173
18173
  const Wf = /\b(SEQUENCE|FILTER|SORT|SORTBY|UNIQUE|TRANSPOSE|ARRAYFORMULA|INDIRECT|OFFSET|INDEX|SPARKLINE)\s*\(/i;
18174
- function Lp(e) {
18174
+ function Pp(e) {
18175
18175
  return Wf.test(e);
18176
18176
  }
18177
18177
  function Gf(e, t, n, r, a) {
@@ -19069,7 +19069,7 @@ function wd(e, t, n) {
19069
19069
  o.add(t), e.formulaCache.revDepsByCell.set(l, o);
19070
19070
  });
19071
19071
  }
19072
- function Bp(e, t, n, r, a = [], l) {
19072
+ function Hp(e, t, n, r, a = [], l) {
19073
19073
  wa(e);
19074
19074
  const o = new Set(a);
19075
19075
  for (const i of t.results) {
@@ -19124,7 +19124,7 @@ function Bp(e, t, n, r, a = [], l) {
19124
19124
  });
19125
19125
  }
19126
19126
  }
19127
- function Pp(e, t, n = Yf) {
19127
+ function Up(e, t, n = Yf) {
19128
19128
  wa(e);
19129
19129
  const r = new Set(t.calcChainKeys), a = new Set(t.impactedByCircular), l = new Set(t.cycleNodes), o = Se(e), i = Math.min(t.nextIndex + n, t.formulaRunList.length);
19130
19130
  for (let s = t.nextIndex; s < i; s += 1) {
@@ -19404,7 +19404,7 @@ function vd(e, t, n) {
19404
19404
  }
19405
19405
  return null;
19406
19406
  }
19407
- function Hp(e) {
19407
+ function zp(e) {
19408
19408
  var r, a;
19409
19409
  if (e.formulaCache.func_selectedrange) return !0;
19410
19410
  const t = e.luckysheet_select_save;
@@ -19436,7 +19436,7 @@ function Td(e, t, n = -1) {
19436
19436
  if (o === n) return;
19437
19437
  const i = Hn(e, l.textContent || "");
19438
19438
  if (!(o === e.formulaCache.selectingRangeIndex || i == null) && (i.sheetId === e.currentSheetId || i.sheetId === -1 && e.formulaCache.rangetosheet === e.currentSheetId)) {
19439
- const u = Lm(
19439
+ const u = Bm(
19440
19440
  e,
19441
19441
  i.row[0],
19442
19442
  i.row[1],
@@ -19808,7 +19808,7 @@ function va(e) {
19808
19808
  const o = parseInt(l, 10);
19809
19809
  return Number.isNaN(o) ? null : o;
19810
19810
  }
19811
- function Up(e, t) {
19811
+ function Yp(e, t) {
19812
19812
  e.formulaCache.formulaEditorOwner = t;
19813
19813
  }
19814
19814
  function Uo(e) {
@@ -19897,7 +19897,7 @@ function qd(e) {
19897
19897
  function Dd(e) {
19898
19898
  e.formulaCache.rangeSelectionActive = !1, e.formulaRangeHighlight = [], e.formulaRangeSelect = void 0, e.formulaCache.selectingRangeIndex = -1, e.formulaCache.func_selectedrange = void 0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangechangeindex = void 0;
19899
19899
  }
19900
- function zp(e) {
19900
+ function Vp(e) {
19901
19901
  const t = va(e);
19902
19902
  if (t !== null) return t;
19903
19903
  const n = Ad(e);
@@ -19962,7 +19962,7 @@ function Od(e, t, n, r, a, l = !0) {
19962
19962
  }, y = a ?? g(n);
19963
19963
  let b = g(n);
19964
19964
  if ((r === 8 || r === 46) && (b = b.replace(/\n{2,}$/, `
19965
- `)), b = Wh(b), b.length > 0 && b.substring(0, 1) === "=" && (r !== 229 || b.length === 1)) {
19965
+ `)), b = jh(b), b.length > 0 && b.substring(0, 1) === "=" && (r !== 229 || b.length === 1)) {
19966
19966
  if (l || (wr = nu(n)), b = na(b), !l && wn < wr.length && (l = !0), p = na(y), wr = [], window.getSelection) {
19967
19967
  const w = window.getSelection();
19968
19968
  if (!w) return;
@@ -20023,7 +20023,7 @@ function Fd(e) {
20023
20023
  }
20024
20024
  return Ua(t);
20025
20025
  }
20026
- function Yp(e, t, n) {
20026
+ function Wp(e, t, n) {
20027
20027
  if (!n) return !1;
20028
20028
  const r = window.getSelection();
20029
20029
  if (!r || r.rangeCount === 0 || !r.anchorNode || !n.contains(r.anchorNode)) return !1;
@@ -20128,7 +20128,7 @@ function Zi(e, t, n) {
20128
20128
  }
20129
20129
  return !1;
20130
20130
  }
20131
- function Vp(e) {
20131
+ function Gp(e) {
20132
20132
  return !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start || e.formulaCache.rangeSelectionActive === !0 || xr(e);
20133
20133
  }
20134
20134
  function xr(e, t) {
@@ -20202,11 +20202,11 @@ function xr(e, t) {
20202
20202
  }
20203
20203
  return !1;
20204
20204
  }
20205
- function Wp(e) {
20205
+ function jp(e) {
20206
20206
  const t = ru(e), n = ((t == null ? void 0 : t.innerText) || "").trim(), r = !!e.formulaCache.rangestart || !!e.formulaCache.rangedrag_column_start || !!e.formulaCache.rangedrag_row_start, a = !!t && zo(t), l = r || e.formulaCache.rangeSelectionActive === !0;
20207
20207
  return n.startsWith("=") ? e.formulaCache.rangeSelectionActive === !0 && t && va(t) !== null ? !0 : /^=\s*[A-Za-z_][A-Za-z0-9_]*$/.test(n) || e.formulaCache.rangeSelectionActive === !1 ? !1 : l ? r ? !0 : a : a ? !0 : xr(e) : !1;
20208
20208
  }
20209
- function Gp(e) {
20209
+ function Xp(e) {
20210
20210
  if (e.formulaCache.rangeSelectionActive !== !1)
20211
20211
  return !1;
20212
20212
  const t = ru(e);
@@ -20290,8 +20290,8 @@ function _a(e, t, n, r) {
20290
20290
  `<div>${t.innerHTML}</div>`,
20291
20291
  "text/html"
20292
20292
  ).querySelectorAll("span"), i = o[o.length - 1], u = ((y = i == null ? void 0 : i.classList) == null ? void 0 : y.contains("fortune-formula-functionrange-cell")) ?? !1;
20293
- if (i && Gh(i == null ? void 0 : i.innerText) && !u) {
20294
- const T = jh(t.innerHTML);
20293
+ if (i && Xh(i == null ? void 0 : i.innerText) && !u) {
20294
+ const T = Zh(t.innerHTML);
20295
20295
  t.innerHTML = `${T}`, t.focus();
20296
20296
  const C = t.childNodes;
20297
20297
  e.formulaCache.rangeSetValueTo = C.length > 0 ? C[C.length - 1] : void 0;
@@ -20337,7 +20337,7 @@ function _a(e, t, n, r) {
20337
20337
  }
20338
20338
  c && (c.innerHTML = s.innerHTML);
20339
20339
  }
20340
- function jp(e) {
20340
+ function Zp(e) {
20341
20341
  if (e.formulaCache.func_selectedrange) {
20342
20342
  const {
20343
20343
  left_move: t,
@@ -20361,7 +20361,7 @@ function Yo(e, t, n, r, a) {
20361
20361
  );
20362
20362
  l != null && (l.style.left = `${t}px`, l.style.top = `${n}px`, l.style.height = `${r}px`, l.style.width = `${a}px`);
20363
20363
  }
20364
- function Xp(e, t, n, r, a, l, o) {
20364
+ function Kp(e, t, n, r, a, l, o) {
20365
20365
  e.formulaCache.rangeSelectionActive = !0;
20366
20366
  const { func_selectedrange: i } = e.formulaCache;
20367
20367
  if (!i || i.left == null || i.height == null || i.top == null || i.width == null)
@@ -20391,7 +20391,7 @@ function Xp(e, t, n, r, a, l, o) {
20391
20391
  o
20392
20392
  ), Yo(l, _, b, w, T), t.preventDefault();
20393
20393
  }
20394
- function Zp(e, t, n, r, a, l, o) {
20394
+ function Qp(e, t, n, r, a, l, o) {
20395
20395
  e.formulaCache.rangeSelectionActive = !0;
20396
20396
  const { func_selectedrange: i } = e.formulaCache;
20397
20397
  if (!i || i.left == null || i.height == null || i.top == null || i.width == null)
@@ -20419,7 +20419,7 @@ function Zp(e, t, n, r, a, l, o) {
20419
20419
  o
20420
20420
  ), Yo(l, b, d, m - d - 1, w);
20421
20421
  }
20422
- function Kp(e, t, n, r, a, l, o) {
20422
+ function Jp(e, t, n, r, a, l, o) {
20423
20423
  e.formulaCache.rangeSelectionActive = !0;
20424
20424
  const { func_selectedrange: i } = e.formulaCache;
20425
20425
  if (!i || i.left == null || i.height == null || i.top == null || i.width == null)
@@ -20678,7 +20678,7 @@ function ou(e, t, n, r) {
20678
20678
  const i = (c = a.config) == null ? void 0 : c.authority;
20679
20679
  return !(h.isNil(i) || h.isNil(i.sheet) || i.sheet === 0);
20680
20680
  }
20681
- function Qp(e, t, n, r) {
20681
+ function eg(e, t, n, r) {
20682
20682
  var u;
20683
20683
  const a = Ma(e, r);
20684
20684
  if (h.isNil(a) || h.isNil(a.config) || h.isNil(a.config.authority))
@@ -20689,7 +20689,7 @@ function Qp(e, t, n, r) {
20689
20689
  const { data: o } = a, i = (u = o == null ? void 0 : o[t]) == null ? void 0 : u[n];
20690
20690
  return i && i.lo === 0 ? !!(l.selectunLockedCells === 1 || h.isNil(l.selectunLockedCells)) : !!(l.selectLockedCells === 1 || h.isNil(l.selectLockedCells));
20691
20691
  }
20692
- function Jp(e, t) {
20692
+ function tg(e, t) {
20693
20693
  const n = Ma(e, t);
20694
20694
  if (h.isNil(n) || h.isNil(n.config) || h.isNil(n.config.authority))
20695
20695
  return !0;
@@ -20840,7 +20840,7 @@ function po(e) {
20840
20840
  return Wn(t);
20841
20841
  }
20842
20842
  }
20843
- function eg(e) {
20843
+ function ng(e) {
20844
20844
  const t = ra;
20845
20845
  if (!e || e.length === 0)
20846
20846
  return {
@@ -20967,7 +20967,7 @@ function go(e) {
20967
20967
  let a = String(e.dateValue ?? "").trim();
20968
20968
  return n !== "exact" && (a = a || po(n)), [`preset:${n}`, a, r];
20969
20969
  }
20970
- function tg(e, t, n, r, a, l, o) {
20970
+ function rg(e, t, n, r, a, l, o) {
20971
20971
  var g, y, b, w;
20972
20972
  if (!Xd(e))
20973
20973
  return;
@@ -22022,7 +22022,7 @@ function cm(e, t) {
22022
22022
  }
22023
22023
  return n;
22024
22024
  }
22025
- function ng(e, t, n, r) {
22025
+ function ag(e, t, n, r) {
22026
22026
  const a = ct(e), l = Du(e);
22027
22027
  if (!a || l) return;
22028
22028
  const o = document.getElementById(
@@ -22055,7 +22055,7 @@ function ng(e, t, n, r) {
22055
22055
  C === "en" ? T = '<span style="color:#f72626;">Failure: </span>' : C === "zh" || C === "zh-CN" || C === "zh-TW" ? T = '<span style="color:#f72626;">失效:</span>' : C === "es" ? T = '<span style="color:#f72626;">Caducidad: </span>' : C === "hi" && (T = '<span style="color:#f72626;">असफलता: </span>'), T = $ + T + fu(e, c), o.innerHTML = T, o.style.display = "block", o.style.left = `${y}px`, o.style.top = `${d}px`;
22056
22056
  }
22057
22057
  }
22058
- function rg(e, t, n) {
22058
+ function og(e, t, n) {
22059
22059
  var p, g;
22060
22060
  if (!e.luckysheet_select_save) return;
22061
22061
  const r = Se(e);
@@ -22100,12 +22100,12 @@ function rg(e, t, n) {
22100
22100
  type: "update"
22101
22101
  }
22102
22102
  ]);
22103
- const m = Qh(e, [l])[l], d = 22 * (t.split(",").length || (s == null ? void 0 : s.length)) || 22;
22104
- m < d && Kh(e, {
22103
+ const m = ep(e, [l])[l], d = 22 * (t.split(",").length || (s == null ? void 0 : s.length)) || 22;
22104
+ m < d && Jh(e, {
22105
22105
  [String(l)]: d
22106
22106
  }), Wo(e, null, void 0);
22107
22107
  }
22108
- function ag(e, t, n) {
22108
+ function lg(e, t, n) {
22109
22109
  var p, g;
22110
22110
  const r = Tr(
22111
22111
  e,
@@ -22282,7 +22282,7 @@ function mm(e, t, n = 0) {
22282
22282
  f || du(e, a, m, n, t, s, c, i, u);
22283
22283
  }
22284
22284
  }
22285
- function og(e, t) {
22285
+ function ig(e, t) {
22286
22286
  var f, m, d;
22287
22287
  if (e.allowEdit === !1) return;
22288
22288
  const n = Se(e);
@@ -22435,7 +22435,7 @@ function Rt(e, t, n = 10) {
22435
22435
  if (t in r || t === "fs" && sn(e))
22436
22436
  a || (a = "0");
22437
22437
  else if (["fc", "bg", "bc"].includes(t))
22438
- ["fc", "bc"].includes(t) && (a || (a = "#000000")), (a == null ? void 0 : a.indexOf("rgba")) > -1 && (a = Vh(a));
22438
+ ["fc", "bc"].includes(t) && (a || (a = "#000000")), (a == null ? void 0 : a.indexOf("rgba")) > -1 && (a = Gh(a));
22439
22439
  else if (t.substring(0, 2) === "bs")
22440
22440
  a || (a = "none");
22441
22441
  else if (t === "ht" || t === "vt") {
@@ -22678,7 +22678,7 @@ function It(e, t, n, r, a) {
22678
22678
  q && (l.m = q[0].toString(), [, l.ct, l.v] = q);
22679
22679
  }
22680
22680
  else if (Ge(i)) {
22681
- s && !G.includes(",") && (G = Xh(String(i), s)), i = parseFloat(i), G.includes("%") && !m.includes("%") && (!o || Z) && (i /= 100), l != null && l.ct && (l.ct = { ...l.ct, fa: G, t: "n" });
22681
+ s && !G.includes(",") && (G = Kh(String(i), s)), i = parseFloat(i), G.includes("%") && !m.includes("%") && (!o || Z) && (i /= 100), l != null && l.ct && (l.ct = { ...l.ct, fa: G, t: "n" });
22682
22682
  const q = ut(G, i);
22683
22683
  if (q === i) {
22684
22684
  const A = Yr(
@@ -22738,7 +22738,7 @@ function It(e, t, n, r, a) {
22738
22738
  }
22739
22739
  h.isNil(l.f) || (u ? (l.ct || (l.ct = { fa: "General", t: "g" }), l.ct.s = u) : l != null && l.ct && h.isPlainObject(a) && Object.prototype.hasOwnProperty.call(a, "ct") && delete l.ct.s), r[t][n] = l, e.luckysheet_selection_range && (e.luckysheet_selection_range = []);
22740
22740
  }
22741
- function lg(e, t, n, r) {
22741
+ function sg(e, t, n, r) {
22742
22742
  let a = at(e, t, n, "m");
22743
22743
  if (h.isNil(a) && (a = at(e, t, n, r), h.isNil(a))) {
22744
22744
  const l = at(e, t, n, "ct");
@@ -23156,7 +23156,7 @@ function Cm(e) {
23156
23156
  }
23157
23157
  return !1;
23158
23158
  }
23159
- function ig(e, t) {
23159
+ function ug(e, t) {
23160
23160
  const n = (t ?? "").trim();
23161
23161
  return n === "" ? !0 : Cm(n) ? !1 : Tr(e, n).length > 0;
23162
23162
  }
@@ -23310,7 +23310,7 @@ function pu(e, t, n, r) {
23310
23310
  }
23311
23311
  return "";
23312
23312
  }
23313
- function sg(e, t, n) {
23313
+ function cg(e, t, n) {
23314
23314
  let r = "";
23315
23315
  if (e.toString().indexOf("pt") > -1) {
23316
23316
  const l = parseFloat(e);
@@ -23339,7 +23339,7 @@ function Am(e, t, n) {
23339
23339
  }
23340
23340
  return l;
23341
23341
  }
23342
- function ug(e, t, n) {
23342
+ function fg(e, t, n) {
23343
23343
  var l;
23344
23344
  const r = Se(e), a = (l = r == null ? void 0 : r[t]) == null ? void 0 : l[n];
23345
23345
  (a == null ? void 0 : a.f) != null && String(a.f).trim() !== "" && Id(e), e.luckysheetCellUpdate = [t, n];
@@ -23388,7 +23388,7 @@ function Zo(e) {
23388
23388
  ...a != null && typeof a == "object" ? { ct: a } : {}
23389
23389
  } : null;
23390
23390
  }
23391
- function cg(e) {
23391
+ function dg(e) {
23392
23392
  var o;
23393
23393
  const t = Ee(e, e.currentSheetId);
23394
23394
  if (t == null) return;
@@ -23435,7 +23435,7 @@ function cg(e) {
23435
23435
  })), e.hooks.updateCellYdoc(i);
23436
23436
  }
23437
23437
  }
23438
- function fg(e) {
23438
+ function mg(e) {
23439
23439
  var i, u;
23440
23440
  const t = Ee(e, e.currentSheetId);
23441
23441
  if (t == null) return;
@@ -23482,7 +23482,7 @@ function fg(e) {
23482
23482
  })), e.hooks.updateCellYdoc(s);
23483
23483
  }
23484
23484
  }
23485
- function dg(e) {
23485
+ function hg(e) {
23486
23486
  var i;
23487
23487
  const t = Ee(e, e.currentSheetId);
23488
23488
  if (t == null) return;
@@ -23547,7 +23547,7 @@ class Mm {
23547
23547
  }
23548
23548
  }
23549
23549
  }
23550
- function mg(e, t, n, r, a) {
23550
+ function pg(e, t, n, r, a) {
23551
23551
  var Q, K, le, F, J;
23552
23552
  const l = Se(e);
23553
23553
  if (!l) return;
@@ -23601,30 +23601,49 @@ function la(e, t) {
23601
23601
  const n = e.config, r = { ...n || {}, ...t };
23602
23602
  t.cellFormatRanges == null && (n == null ? void 0 : n.cellFormatRanges) != null && (r.cellFormatRanges = n.cellFormatRanges), e.config = r;
23603
23603
  }
23604
- function xm(e) {
23604
+ function xm(e, t, n, r, a, l, o) {
23605
+ if (!t || !(n != null && n.length)) return null;
23606
+ const i = Ns(
23607
+ t.cellFormatRanges,
23608
+ n,
23609
+ r,
23610
+ a,
23611
+ l,
23612
+ o
23613
+ );
23614
+ if (!i.changed) return null;
23615
+ const u = Ee(e, e.currentSheetId);
23616
+ if (u != null) {
23617
+ const s = e.luckysheetfile[u];
23618
+ s.config || (s.config = {}), s.config.cellFormatRanges = i.ranges, t.cellFormatRanges = i.ranges, e.config = s.config;
23619
+ } else
23620
+ t.cellFormatRanges = i.ranges, e.config || (e.config = {}), e.config.cellFormatRanges = i.ranges;
23621
+ return i.ranges;
23622
+ }
23623
+ function Im(e) {
23605
23624
  const t = Ee(e, e.currentSheetId);
23606
23625
  if (t == null) return;
23607
23626
  const n = e.luckysheetfile[t];
23608
23627
  la(n, e.config), e.config = n.config, n.luckysheet_select_save = e.luckysheet_select_save, n.luckysheet_selection_range = e.luckysheet_selection_range, n.zoomRatio = e.zoomRatio;
23609
23628
  }
23610
- function Im(e) {
23611
- xm(e);
23629
+ function qm(e) {
23630
+ Im(e);
23612
23631
  }
23613
23632
  function wo(e, t, n, r, a) {
23614
23633
  var o, i, u, s;
23615
23634
  if (t === e.currentSheetId)
23616
23635
  return;
23617
23636
  const l = e.luckysheetfile[Ee(e, t)];
23618
- ((i = (o = e.hooks).beforeActivateSheet) == null ? void 0 : i.call(o, t)) !== !1 && (Im(e), e.currentSheetId = t, l.isPivotTable ? e.luckysheetcurrentisPivotTable = !0 : e.luckysheetcurrentisPivotTable = !1, e.hooks.afterActivateSheet && ((s = (u = e.hooks).afterActivateSheet) == null || s.call(u, t)));
23637
+ ((i = (o = e.hooks).beforeActivateSheet) == null ? void 0 : i.call(o, t)) !== !1 && (qm(e), e.currentSheetId = t, l.isPivotTable ? e.luckysheetcurrentisPivotTable = !0 : e.luckysheetcurrentisPivotTable = !1, e.hooks.afterActivateSheet && ((s = (u = e.hooks).afterActivateSheet) == null || s.call(u, t)));
23619
23638
  }
23620
- function qm(e, t, n = void 0, r = !1, a = void 0, l = void 0) {
23639
+ function Dm(e, t, n = void 0, r = !1, a = void 0, l = void 0) {
23621
23640
  var c, f, m, d;
23622
23641
  if (
23623
23642
  /* isEditMode() || */
23624
23643
  e.allowEdit === !1
23625
23644
  )
23626
23645
  return;
23627
- const o = e.luckysheetfile.length, i = n ?? (t == null ? void 0 : t.generateSheetId()), u = a || Yh(e.luckysheetfile, r, e);
23646
+ const o = e.luckysheetfile.length, i = n ?? (t == null ? void 0 : t.generateSheetId()), u = a || Wh(e.luckysheetfile, r, e);
23628
23647
  h.isNil(l) || (delete l.data, e.luckysheetfile.forEach((p) => (p.order = p.order < l.order ? p.order : p.order + 1, p)));
23629
23648
  const s = h.isNil(l) ? {
23630
23649
  name: a === void 0 ? u : a,
@@ -23640,7 +23659,7 @@ function qm(e, t, n = void 0, r = !1, a = void 0, l = void 0) {
23640
23659
  } : l;
23641
23660
  a !== void 0 && (s.name = a), s.id === void 0 && (s.id = ws()), ((f = (c = e.hooks).beforeAddSheet) == null ? void 0 : f.call(c, s)) !== !1 && (e.luckysheetfile.push(s), e.hooks.afterAddSheet && ((d = (m = e.hooks).afterAddSheet) == null || d.call(m, { ...s })));
23642
23661
  }
23643
- function Dm(e, t) {
23662
+ function Om(e, t) {
23644
23663
  var r, a, l, o, i;
23645
23664
  if (e.allowEdit === !1)
23646
23665
  return;
@@ -23655,7 +23674,7 @@ function Dm(e, t) {
23655
23674
  e.hooks.afterDeleteSheet && ((i = (o = e.hooks).afterDeleteSheet) == null || i.call(o, t));
23656
23675
  }
23657
23676
  }
23658
- function Om(e, t) {
23677
+ function Fm(e, t) {
23659
23678
  t.forEach((n) => {
23660
23679
  const { data: r, row: a, column: l } = n, o = Ee(e, n.id);
23661
23680
  if (r != null) {
@@ -23672,7 +23691,7 @@ function Om(e, t) {
23672
23691
  } else n.celldata != null && Ss(e, o, n);
23673
23692
  });
23674
23693
  }
23675
- function hg(e, t) {
23694
+ function gg(e, t) {
23676
23695
  var o, i;
23677
23696
  const n = Ee(e, e.currentSheetId);
23678
23697
  if (e.allowEdit === !1) {
@@ -23699,7 +23718,7 @@ function hg(e, t) {
23699
23718
  }
23700
23719
  }
23701
23720
  }
23702
- function pg(e, t, n) {
23721
+ function yg(e, t, n) {
23703
23722
  if (t <= 0 && n <= 0)
23704
23723
  return e;
23705
23724
  if (e.length + t >= 1e4)
@@ -23720,10 +23739,10 @@ function pg(e, t, n) {
23720
23739
  e.push(h.times(r + n, () => null));
23721
23740
  return e;
23722
23741
  }
23723
- const gg = {
23742
+ const bg = {
23724
23743
  isPasteAction: !1,
23725
23744
  isPasteValuesOnly: !1
23726
- }, Fm = 14e5;
23745
+ }, Lm = 14e5;
23727
23746
  function Xn(e, t, n) {
23728
23747
  var c, f, m, d;
23729
23748
  const { scrollLeft: r, scrollTop: a } = e, l = e.cellmainHeight, o = e.cellmainWidth, i = Ee(e, e.currentSheetId), u = i == null ? null : e.luckysheetfile[i];
@@ -23748,7 +23767,7 @@ function Xn(e, t, n) {
23748
23767
  }
23749
23768
  }
23750
23769
  }
23751
- function Lm(e, t, n, r, a) {
23770
+ function Bm(e, t, n, r, a) {
23752
23771
  const l = e.visibledatarow[n], o = t - 1 === -1 ? 0 : e.visibledatarow[t - 1], i = e.visibledatacolumn[a], u = r - 1 === -1 ? 0 : e.visibledatacolumn[r - 1];
23753
23772
  return h.isNumber(l) && h.isNumber(o) && h.isNumber(i) && h.isNumber(u) ? {
23754
23773
  left: u,
@@ -23757,7 +23776,7 @@ function Lm(e, t, n, r, a) {
23757
23776
  height: l - o - 1
23758
23777
  } : null;
23759
23778
  }
23760
- function Bm(e, t) {
23779
+ function Pm(e, t) {
23761
23780
  var u;
23762
23781
  const n = Math.min(t.row[0], t.row[1]), r = Math.max(t.row[0], t.row[1]), a = Math.min(t.column[0], t.column[1]), l = Math.max(t.column[0], t.column[1]);
23763
23782
  if (n === r && a === l)
@@ -23778,7 +23797,7 @@ function rs(e, t) {
23778
23797
  e.primaryCellActive = null;
23779
23798
  return;
23780
23799
  }
23781
- if (Bm(e, r)) {
23800
+ if (Pm(e, r)) {
23782
23801
  e.primaryCellActive = null;
23783
23802
  return;
23784
23803
  }
@@ -23789,7 +23808,7 @@ function rs(e, t) {
23789
23808
  e.primaryCellActive = { r: l, c: o };
23790
23809
  }
23791
23810
  }
23792
- function yg(e, t = !0) {
23811
+ function wg(e, t = !0) {
23793
23812
  const n = e.luckysheet_select_save;
23794
23813
  if (!(n != null && n.length)) return !1;
23795
23814
  const r = n[n.length - 1], a = r.row[0], l = r.row[1], o = r.column[0], i = r.column[1];
@@ -23801,10 +23820,10 @@ function yg(e, t = !0) {
23801
23820
  let y, b;
23802
23821
  return t ? d < s ? (y = d + 1, b = p) : p < f ? (y = u, b = p + 1) : (y = u, b = c) : d > u ? (y = d - 1, b = p) : p > c ? (y = s, b = p - 1) : (y = s, b = f), r.row_focus = y, r.column_focus = b, Kt(e, n), !0;
23803
23822
  }
23804
- function bg(e, t, n) {
23823
+ function vg(e, t, n) {
23805
23824
  e.primaryCellActive = { r: t, c: n };
23806
23825
  }
23807
- function wg(e, t, n) {
23826
+ function _g(e, t, n) {
23808
23827
  const r = e.luckysheet_select_save, a = r == null ? void 0 : r[r.length - 1];
23809
23828
  if (!(a != null && a.row) || a.row.length < 2 || !a.column || a.column.length < 2) {
23810
23829
  e.luckysheet_select_save = [
@@ -23827,7 +23846,7 @@ function wg(e, t, n) {
23827
23846
  }
23828
23847
  ], Kt(e, e.luckysheet_select_save));
23829
23848
  }
23830
- function vg(e) {
23849
+ function Tg(e) {
23831
23850
  var t, n, r, a;
23832
23851
  return (n = (t = e == null ? void 0 : e[0]) == null ? void 0 : t[0]) != null && n.mc && !h.isNil((r = e[0][0].mc) == null ? void 0 : r.rs) && !h.isNil((a = e[0][0].mc) == null ? void 0 : a.cs) ? [
23833
23852
  {
@@ -23854,13 +23873,13 @@ function Kt(e, t) {
23854
23873
  }
23855
23874
  return rs(e, t), t;
23856
23875
  }
23857
- function _g(e, t, n) {
23876
+ function $g(e, t, n) {
23858
23877
  const r = e || {};
23859
23878
  for (let a = t; a <= n; a += 1)
23860
23879
  a in r || (r[a] = 0);
23861
23880
  return r;
23862
23881
  }
23863
- function Tg(e) {
23882
+ function Cg(e) {
23864
23883
  const t = Object.keys(e).map(Number);
23865
23884
  t.sort((a, l) => a - l);
23866
23885
  let n, r = [];
@@ -23872,7 +23891,7 @@ function Tg(e) {
23872
23891
  n = [], n.push([t[0]]);
23873
23892
  return n;
23874
23893
  }
23875
- function Pm(e, t) {
23894
+ function Hm(e, t) {
23876
23895
  return e.row[0] === t.row[0] && e.row[1] === t.row[1] && e.column[0] === t.column[0] && e.column[1] === t.column[1];
23877
23896
  }
23878
23897
  function as(e) {
@@ -23880,7 +23899,7 @@ function as(e) {
23880
23899
  const t = h.cloneDeep(e);
23881
23900
  return delete t.cellrange, JSON.stringify(t);
23882
23901
  }
23883
- function $g(e, t) {
23902
+ function Ng(e, t) {
23884
23903
  var Y;
23885
23904
  const n = e.config;
23886
23905
  if (n.merge == null && (n.merge = {}), !t) return;
@@ -24005,28 +24024,23 @@ function $g(e, t) {
24005
24024
  v[G] = Z;
24006
24025
  }
24007
24026
  }
24008
- const F = Ns(
24009
- n.cellFormatRanges,
24027
+ const F = xm(
24028
+ e,
24029
+ n,
24010
24030
  v,
24011
24031
  f,
24012
24032
  m,
24013
24033
  d,
24014
24034
  p
24015
24035
  );
24016
- if (F.changed && (n.cellFormatRanges = F.ranges, e.config || (e.config = {}), e.config.cellFormatRanges = F.ranges), (Y = e == null ? void 0 : e.hooks) != null && Y.updateCellYdoc) {
24017
- const O = [
24018
- ..._,
24019
- ...T,
24020
- ...F.changed ? [
24021
- {
24022
- sheetId: e.currentSheetId,
24023
- path: ["config", "cellFormatRanges"],
24024
- value: n.cellFormatRanges ?? [],
24025
- type: "update"
24026
- }
24027
- ] : []
24028
- ];
24029
- O.length > 0 && e.hooks.updateCellYdoc(O);
24036
+ if ((Y = e == null ? void 0 : e.hooks) != null && Y.updateCellYdoc) {
24037
+ const O = [..._, ...T];
24038
+ F && O.push({
24039
+ sheetId: e.currentSheetId,
24040
+ path: ["config", "cellFormatRanges"],
24041
+ value: F,
24042
+ type: "update"
24043
+ }), O.length > 0 && e.hooks.updateCellYdoc(O);
24030
24044
  }
24031
24045
  const J = e.luckysheetfile[Ee(e, e.currentSheetId)];
24032
24046
  la(J, n), e.config = J.config, M != null && (J.dataVerification = M);
@@ -24056,7 +24070,7 @@ function $g(e, t) {
24056
24070
  if (A >= 0) {
24057
24071
  const P = h.cloneDeep(G[A]);
24058
24072
  Array.isArray(P.cellrange) || (P.cellrange = []), P.cellrange.some(
24059
- (Ce) => Pm(Ce, we)
24073
+ (Ce) => Hm(Ce, we)
24060
24074
  ) || P.cellrange.push({ ...we }), G[A] = P;
24061
24075
  } else {
24062
24076
  const P = h.cloneDeep(O[Z]);
@@ -24180,7 +24194,7 @@ function dn(e, t, n, r) {
24180
24194
  i = l;
24181
24195
  return [o, i];
24182
24196
  }
24183
- function Cg(e, t, n, r) {
24197
+ function Sg(e, t, n, r) {
24184
24198
  var g;
24185
24199
  const a = Se(e);
24186
24200
  if (!a) return;
@@ -24258,7 +24272,7 @@ function Cg(e, t, n, r) {
24258
24272
  }, Xn(e, s, d);
24259
24273
  }
24260
24274
  }
24261
- function Ng(e, t, n, r) {
24275
+ function kg(e, t, n, r) {
24262
24276
  let a, l, o, i;
24263
24277
  const u = Se(e);
24264
24278
  if (!h.isNil(u) && !h.isNil(e.luckysheet_select_save)) {
@@ -24466,7 +24480,7 @@ function zt(e, t) {
24466
24480
  13: "Thick"
24467
24481
  }[e.toString()], e.indexOf("Medium") > -1 ? n += "1pt " : e === "Thick" ? n += "1.5pt " : n += "0.5pt ", e === "Hair" ? n += "double " : e.indexOf("DashDotDot") > -1 ? n += "dotted " : e.indexOf("DashDot") > -1 ? n += "dashed " : e.indexOf("Dotted") > -1 ? n += "dotted " : e.indexOf("Dashed") > -1 ? n += "dashed " : n += "solid ", `${n + t};`;
24468
24482
  }
24469
- function Hm(e, t, n, r) {
24483
+ function Um(e, t, n, r) {
24470
24484
  var w, v;
24471
24485
  const a = (r == null ? void 0 : r.includeCellMetadata) ?? !1, l = (r == null ? void 0 : r.preferRichText) ?? !1, o = (r == null ? void 0 : r.respectFilterHiddenRows) ?? !1, i = su(e), u = /* @__PURE__ */ new Set();
24472
24486
  o && t === e.currentSheetId && !h.isNil(e.luckysheet_filter_save) && !h.isEmpty(e.filter) && Object.values(e.filter || {}).forEach((_) => {
@@ -24635,7 +24649,7 @@ function Hm(e, t, n, r) {
24635
24649
  }
24636
24650
  return `<table data-type="fortune-copy-action-table">${y}${p}</table>`;
24637
24651
  }
24638
- function Sg(e) {
24652
+ function Ag(e) {
24639
24653
  var g, y, b, w;
24640
24654
  const t = Se(e);
24641
24655
  e.lastInternalCopyHtmlMetadataStripped = !1, e.luckysheet_selection_range = [];
@@ -24705,7 +24719,7 @@ function Sg(e) {
24705
24719
  ) : "";
24706
24720
  f = `<table data-type="fortune-copy-action-table"><tr><td style="white-space: pre-line; ${Q}" data-fortune-cell="${le}">${K}</td></tr></table>`;
24707
24721
  } else
24708
- f = Hm(
24722
+ f = Um(
24709
24723
  e,
24710
24724
  e.currentSheetId,
24711
24725
  e.luckysheet_select_save,
@@ -24716,9 +24730,9 @@ function Sg(e) {
24716
24730
  }
24717
24731
  ), f = f === null ? f : f.replace('<td style="', '<td style="white-space: pre-line; ');
24718
24732
  let p = !1;
24719
- f && c && f.length > Fm && (p = !0, f = f.replace(/\sdata-fortune-cell="[^"]*"/g, "")), f && (e.iscopyself = !0, e.lastInternalCopyHtmlMetadataStripped = p, Mm.writeHtml(f));
24733
+ f && c && f.length > Lm && (p = !0, f = f.replace(/\sdata-fortune-cell="[^"]*"/g, "")), f && (e.iscopyself = !0, e.lastInternalCopyHtmlMetadataStripped = p, Mm.writeHtml(f));
24720
24734
  }
24721
- function kg(e) {
24735
+ function Eg(e) {
24722
24736
  var r, a, l, o, i, u, s, c;
24723
24737
  if (ct(e) === !1 || e.isFlvReadOnly)
24724
24738
  return "allowEdit";
@@ -24771,7 +24785,7 @@ function kg(e) {
24771
24785
  }
24772
24786
  return "success";
24773
24787
  }
24774
- function Ag(e) {
24788
+ function Mg(e) {
24775
24789
  var r;
24776
24790
  if (ct(e) === !1)
24777
24791
  return "allowEdit";
@@ -24809,7 +24823,7 @@ function Ag(e) {
24809
24823
  }
24810
24824
  return "success";
24811
24825
  }
24812
- function Eg(e) {
24826
+ function Rg(e) {
24813
24827
  var r, a, l;
24814
24828
  if (ct(e) === !1)
24815
24829
  return "allowEdit";
@@ -24916,7 +24930,7 @@ function Eg(e) {
24916
24930
  }
24917
24931
  return "success";
24918
24932
  }
24919
- function Mg(e) {
24933
+ function xg(e) {
24920
24934
  var r, a, l;
24921
24935
  if (ct(e) === !1)
24922
24936
  return "allowEdit";
@@ -25023,7 +25037,7 @@ function Mg(e) {
25023
25037
  }
25024
25038
  return "success";
25025
25039
  }
25026
- function Rg(e, t) {
25040
+ function Ig(e, t) {
25027
25041
  var a;
25028
25042
  if (ct(e) === !1)
25029
25043
  return "allowEdit";
@@ -25061,7 +25075,7 @@ function Rg(e, t) {
25061
25075
  }
25062
25076
  return "success";
25063
25077
  }
25064
- function xg(e) {
25078
+ function qg(e) {
25065
25079
  var r;
25066
25080
  if (ct(e) === !1)
25067
25081
  return "allowEdit";
@@ -25104,7 +25118,7 @@ function xg(e) {
25104
25118
  }
25105
25119
  return "success";
25106
25120
  }
25107
- function Ig(e) {
25121
+ function Dg(e) {
25108
25122
  var r;
25109
25123
  if (ct(e) === !1)
25110
25124
  return "allowEdit";
@@ -25146,7 +25160,7 @@ function Ig(e) {
25146
25160
  }
25147
25161
  return "success";
25148
25162
  }
25149
- function qg(e) {
25163
+ function Og(e) {
25150
25164
  var r;
25151
25165
  if (ct(e) === !1)
25152
25166
  return "allowEdit";
@@ -25189,10 +25203,10 @@ function qg(e) {
25189
25203
  }
25190
25204
  return "success";
25191
25205
  }
25192
- function Dg(e, t) {
25206
+ function Fg(e, t) {
25193
25207
  return !1;
25194
25208
  }
25195
- function Og(e) {
25209
+ function Lg(e) {
25196
25210
  const t = Se(e);
25197
25211
  t && (e.luckysheet_select_status = !1, e.luckysheet_select_save = [
25198
25212
  {
@@ -25205,7 +25219,7 @@ function Og(e) {
25205
25219
  }
25206
25220
  ], Kt(e, e.luckysheet_select_save));
25207
25221
  }
25208
- function Fg(e, t, n, r) {
25222
+ function Bg(e, t, n, r) {
25209
25223
  var u;
25210
25224
  if (!r) return {};
25211
25225
  const a = {}, { scrollTop: l } = e, o = (u = r.horizontal) == null ? void 0 : u.freezenhorizontaldata;
@@ -25216,7 +25230,7 @@ function Fg(e, t, n, r) {
25216
25230
  }
25217
25231
  return i || (a.display = "none"), a;
25218
25232
  }
25219
- function Lg(e, t, n, r) {
25233
+ function Pg(e, t, n, r) {
25220
25234
  var u;
25221
25235
  if (!r) return {};
25222
25236
  const a = {}, { scrollLeft: l } = e, o = (u = r.vertical) == null ? void 0 : u.freezenverticaldata;
@@ -25227,7 +25241,7 @@ function Lg(e, t, n, r) {
25227
25241
  }
25228
25242
  return i || (a.display = "none"), a;
25229
25243
  }
25230
- function Bg(e) {
25244
+ function Hg(e) {
25231
25245
  var u, s, c, f, m, d, p, g, y, b, w, v, _, T, C, $, S, N;
25232
25246
  const t = e.luckysheet_select_save;
25233
25247
  let n = 0, r = 0, a = 0, l = -1 / 0, o = 1 / 0;
@@ -25246,7 +25260,7 @@ function Bg(e) {
25246
25260
  const i = String(a / n);
25247
25261
  return { numberC: n, count: r, sum: a, max: l, min: o, average: i };
25248
25262
  }
25249
- function Pg(e, t, n) {
25263
+ function Ug(e, t, n) {
25250
25264
  var i, u;
25251
25265
  const r = Se(e);
25252
25266
  if (!(r != null && r.length) || !((i = r[0]) != null && i.length)) return;
@@ -25255,7 +25269,7 @@ function Pg(e, t, n) {
25255
25269
  const l = Math.max(0, Math.min(t, r.length - 1)), o = Math.max(0, Math.min(n, r[0].length - 1));
25256
25270
  a.row = [l, l], a.column = [o, o], a.row_focus = l, a.column_focus = o, a.moveXY = { x: l, y: o }, Kt(e, e.luckysheet_select_save), Xn(e, l, o);
25257
25271
  }
25258
- function Hg(e, t, n) {
25272
+ function zg(e, t, n) {
25259
25273
  var s;
25260
25274
  if (!ct(e)) return !1;
25261
25275
  const r = e.luckysheet_select_save;
@@ -25281,7 +25295,7 @@ function Hg(e, t, n) {
25281
25295
  }
25282
25296
  return !0;
25283
25297
  }
25284
- function Ug(e) {
25298
+ function Yg(e) {
25285
25299
  return {
25286
25300
  luckysheetfile: [],
25287
25301
  defaultcolumnNum: 60,
@@ -25571,7 +25585,7 @@ function Se(e, t) {
25571
25585
  const n = Ee(e, t || e.currentSheetId);
25572
25586
  return h.isNil(n) ? null : (a = (r = e.luckysheetfile) == null ? void 0 : r[n]) == null ? void 0 : a.data;
25573
25587
  }
25574
- function Um(e, t, n) {
25588
+ function zm(e, t, n) {
25575
25589
  var l, o, i, u, s, c, f, m, d, p, g;
25576
25590
  e.visibledatarow = [], e.rh_height = 0;
25577
25591
  for (let y = 0; y < t; y += 1) {
@@ -25596,7 +25610,7 @@ function Um(e, t, n) {
25596
25610
  }
25597
25611
  e.ch_width += r;
25598
25612
  }
25599
- function zg(e, t) {
25613
+ function Vg(e, t) {
25600
25614
  if ((e == null ? void 0 : e.length) > 0) {
25601
25615
  let n = !1;
25602
25616
  const r = [];
@@ -25605,7 +25619,7 @@ function zg(e, t) {
25605
25619
  }), n || (e[0].status = 1);
25606
25620
  }
25607
25621
  }
25608
- function Yg(e) {
25622
+ function Wg(e) {
25609
25623
  const t = e.luckysheetfile.filter(
25610
25624
  (n) => h.isUndefined(n.hide) || n.hide !== 1
25611
25625
  );
@@ -25616,11 +25630,11 @@ function Yg(e) {
25616
25630
  break;
25617
25631
  }
25618
25632
  }
25619
- function Vg(e, t) {
25633
+ function Gg(e, t) {
25620
25634
  const n = t.length, r = n === 0 ? 0 : t[0].length;
25621
- Um(e, n, r), Kt(e, e.luckysheet_select_save);
25635
+ zm(e, n, r), Kt(e, e.luckysheet_select_save);
25622
25636
  }
25623
- function Wg(e, t, n) {
25637
+ function jg(e, t, n) {
25624
25638
  e.luckysheetTableContentHW = [
25625
25639
  n.clientWidth,
25626
25640
  n.clientHeight
@@ -25630,7 +25644,7 @@ function Wg(e, t, n) {
25630
25644
  e.luckysheetTableContentHW[1] * e.devicePixelRatio
25631
25645
  );
25632
25646
  }
25633
- function zm(e, t, n, r, a, l) {
25647
+ function Ym(e, t, n, r, a, l) {
25634
25648
  var f, m, d, p, g, y, b, w, v, _, T, C, $, S, N, M, z, Q, K, le, F, J, j, Y, O, $e, ae, G, Z, V, ge, we, q, A, P, Ce, B, ue, E, W, D, ne, ee, U, ye, _e, me, ve, ce, te, Oe, Me, qe, Te, I, L, pe, H, x, X, ie, fe, re, be, xe, We, Ie, De, nt, Le, Be, ze, tt, Ye, Je, cn, gn, Jt, el, tl, nl, rl, al, ol, ll, il, sl, ul, cl, fl, dl, ml, hl, pl, gl, yl, bl, wl, vl, _l, Tl, $l, Cl, Nl, Sl, kl, Al, El, Ml, Rl, xl, Il, ql, Dl, Ol, Fl, Ll, Bl, Pl, Hl, Ul, zl, Yl, Vl, Wl, Gl, jl, Xl, Zl, Kl, Ql, Jl, ei, ti, ni, ri, ai, oi, li, ii, si, ui, ci, fi, di, mi, hi, pi, gi, yi, bi, wi, vi, _i, Ti, $i, Ci, Ni, Si, ki, Ai;
25635
25649
  const o = {}, i = Se(e);
25636
25650
  let u, s;
@@ -26398,7 +26412,7 @@ function Ko(e, t) {
26398
26412
  else
26399
26413
  return n;
26400
26414
  }
26401
- return n = zm(
26415
+ return n = Ym(
26402
26416
  e,
26403
26417
  0,
26404
26418
  a.length,
@@ -26445,7 +26459,7 @@ function Sa(e) {
26445
26459
  });
26446
26460
  }
26447
26461
  }
26448
- function Ym(e, t) {
26462
+ function Vm(e, t) {
26449
26463
  if (e === t) return !0;
26450
26464
  if (e == null || t == null) return !1;
26451
26465
  if (typeof e != "object" || typeof t != "object")
@@ -26481,12 +26495,12 @@ function wu(e, t, n, r, a, l) {
26481
26495
  }
26482
26496
  return o;
26483
26497
  }
26484
- function Vm(e, t, n, r, a, l) {
26498
+ function Wm(e, t, n, r, a, l) {
26485
26499
  const o = `${n}_${r}`, i = l == null ? void 0 : l.get(o), u = (l == null ? void 0 : l.has(o)) ?? !1;
26486
26500
  if (Bn(
26487
26501
  a
26488
26502
  )) {
26489
- if (u && Ym(i, a)) return;
26503
+ if (u && Vm(i, a)) return;
26490
26504
  e.push({
26491
26505
  sheetId: t,
26492
26506
  path: ["celldata"],
@@ -26504,7 +26518,7 @@ function Vm(e, t, n, r, a, l) {
26504
26518
  type: "delete"
26505
26519
  });
26506
26520
  }
26507
- function Wm(e, t, n, r, a, l, o) {
26521
+ function Gm(e, t, n, r, a, l, o) {
26508
26522
  const i = bu(t, n, r, a, l);
26509
26523
  if (!i) return [];
26510
26524
  const { rowStart: u, rowEnd: s, colStart: c, colEnd: f } = i, m = [];
@@ -26513,7 +26527,7 @@ function Wm(e, t, n, r, a, l, o) {
26513
26527
  if (!(!p && !(o != null && o.size)))
26514
26528
  for (let g = c; g <= f; g += 1) {
26515
26529
  const y = (p == null ? void 0 : p[g]) ?? null, b = `${d}_${g}`;
26516
- y == null && !(o != null && o.has(b)) && !Bn(y) || Vm(
26530
+ y == null && !(o != null && o.has(b)) && !Bn(y) || Wm(
26517
26531
  m,
26518
26532
  e,
26519
26533
  d,
@@ -26525,10 +26539,10 @@ function Wm(e, t, n, r, a, l, o) {
26525
26539
  }
26526
26540
  return m;
26527
26541
  }
26528
- function Gm(e, t, n, r, a, l, o, i) {
26542
+ function jm(e, t, n, r, a, l, o, i) {
26529
26543
  var s;
26530
26544
  if (!((s = e == null ? void 0 : e.hooks) != null && s.updateCellYdoc)) return;
26531
- const u = Wm(
26545
+ const u = Gm(
26532
26546
  t,
26533
26547
  n,
26534
26548
  r,
@@ -26539,7 +26553,7 @@ function Gm(e, t, n, r, a, l, o, i) {
26539
26553
  );
26540
26554
  u.length > 0 && e.hooks.updateCellYdoc(u);
26541
26555
  }
26542
- function jm(e, t, n, r, a, l) {
26556
+ function Xm(e, t, n, r, a, l) {
26543
26557
  const o = Math.max(0, r - 1), i = Math.max(0, a - 1);
26544
26558
  if (e === "row") {
26545
26559
  const c = n === "lefttop" ? t : t + 1, f = l ? Math.min(c, l.minR) : c;
@@ -26548,7 +26562,7 @@ function jm(e, t, n, r, a, l) {
26548
26562
  const u = n === "lefttop" ? t : t + 1, s = l ? Math.min(u, l.minC) : u;
26549
26563
  return { r1: 0, r2: o, c1: Math.max(0, s), c2: i };
26550
26564
  }
26551
- function Xm(e, t, n, r, a) {
26565
+ function Zm(e, t, n, r, a) {
26552
26566
  const l = Math.max(0, n - 1), o = Math.max(0, r - 1);
26553
26567
  if (e === "row") {
26554
26568
  const u = a ? Math.min(t, a.minR) : t;
@@ -26570,7 +26584,7 @@ const vu = (e, t) => {
26570
26584
  const t = { ...e };
26571
26585
  return delete t.v, delete t.m, delete t.f, delete t.ps, delete t.hl, t;
26572
26586
  };
26573
- function Zm(e, t, n, r) {
26587
+ function Km(e, t, n, r) {
26574
26588
  var o, i, u;
26575
26589
  const a = [], l = e[t];
26576
26590
  if (!l || !e[0]) return a;
@@ -26590,7 +26604,7 @@ function Zm(e, t, n, r) {
26590
26604
  }
26591
26605
  return a;
26592
26606
  }
26593
- function Km(e, t, n, r) {
26607
+ function Qm(e, t, n, r) {
26594
26608
  var l, o, i;
26595
26609
  const a = [];
26596
26610
  for (let u = 0; u < e.length; u += 1) {
@@ -26618,7 +26632,7 @@ const sa = (e) => {
26618
26632
  !Number.isFinite(o) || !Number.isFinite(i) || (t = Math.min(t, o), n = Math.min(n, i), r = Math.max(r, o + Math.max(1, u) - 1), a = Math.max(a, i + Math.max(1, s) - 1));
26619
26633
  }), t === 1 / 0 ? null : { minR: t, minC: n, maxR: r, maxC: a };
26620
26634
  }, ua = (e, t, n, r, a, l, o, i) => {
26621
- Gm(
26635
+ jm(
26622
26636
  e,
26623
26637
  t,
26624
26638
  n,
@@ -26658,7 +26672,7 @@ const sa = (e) => {
26658
26672
  }
26659
26673
  }
26660
26674
  };
26661
- function Qm(e, t, n = !0) {
26675
+ function Jm(e, t, n = !0) {
26662
26676
  var V, ge, we, q, A, P, Ce, B, ue, E, W, D, ne, ee, U, ye, _e, me, ve, ce, te, Oe, Me, qe, Te, I, L, pe;
26663
26677
  let { count: r, id: a } = t;
26664
26678
  const { type: l, index: o, direction: i, templateSourceRows: u, templateSourceColumns: s } = t;
@@ -26694,7 +26708,7 @@ function Qm(e, t, n = !0) {
26694
26708
  throw new Error("maxExceeded");
26695
26709
  if (l === "column" && m[0] && m[0].length + r >= 1e3)
26696
26710
  throw new Error("maxExceeded");
26697
- const v = jm(
26711
+ const v = Xm(
26698
26712
  l,
26699
26713
  o,
26700
26714
  i,
@@ -26968,7 +26982,7 @@ function Qm(e, t, n = !0) {
26968
26982
  ), h.isEqual(nt, d.cellFormatRanges) || Qr(e, a, d.cellFormatRanges);
26969
26983
  const Le = [];
26970
26984
  for (let Be = 0; Be < r; Be += 1) {
26971
- const ze = g ? b : o, tt = Zm(m, ze, r, i);
26985
+ const ze = g ? b : o, tt = Km(m, ze, r, i);
26972
26986
  Le.push(JSON.stringify(tt));
26973
26987
  let Ye = [];
26974
26988
  g ? Ye = H.filter(
@@ -27027,7 +27041,7 @@ function Qm(e, t, n = !0) {
27027
27041
  for (let Ie = 0; Ie < r; Ie += 1) {
27028
27042
  const De = y ? w : o;
27029
27043
  be.push(
27030
- Km(m, De, r, i)
27044
+ Qm(m, De, r, i)
27031
27045
  );
27032
27046
  }
27033
27047
  const xe = [];
@@ -27235,7 +27249,7 @@ function Tu(e, t) {
27235
27249
  }
27236
27250
  return;
27237
27251
  }
27238
- const f = a - r + 1, m = Xm(
27252
+ const f = a - r + 1, m = Zm(
27239
27253
  n,
27240
27254
  r,
27241
27255
  c.length,
@@ -27570,7 +27584,7 @@ function Tu(e, t) {
27570
27584
  ue.length > 0 && (e.formulaCache.execFunctionExist = ue, ln(e, null, null, null, null, Se(e)), e.formulaCache.execFunctionExist = void 0);
27571
27585
  }
27572
27586
  }
27573
- function Gg(e, t) {
27587
+ function Xg(e, t) {
27574
27588
  if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
27575
27589
  return "noMulti";
27576
27590
  const n = Ee(e, e.currentSheetId);
@@ -27592,7 +27606,7 @@ function Gg(e, t) {
27592
27606
  }
27593
27607
  return e.luckysheetfile[n].config = e.config, "";
27594
27608
  }
27595
- function jg(e, t) {
27609
+ function Zg(e, t) {
27596
27610
  if (!e.luckysheet_select_save || e.luckysheet_select_save.length > 1)
27597
27611
  return "noMulti";
27598
27612
  const n = Ee(e, e.currentSheetId);
@@ -27610,7 +27624,7 @@ function jg(e, t) {
27610
27624
  }
27611
27625
  return e.luckysheetfile[n].config = e.config, "";
27612
27626
  }
27613
- function Xg(e) {
27627
+ function Kg(e) {
27614
27628
  var t, n, r, a;
27615
27629
  if (!e.luckysheet_select_save || !e.config.colhidden && !e.config.rowhidden)
27616
27630
  return !1;
@@ -27626,7 +27640,7 @@ function Xg(e) {
27626
27640
  }
27627
27641
  return !1;
27628
27642
  }
27629
- function Zg(e, t) {
27643
+ function Qg(e, t) {
27630
27644
  let n = 1;
27631
27645
  if (!e.luckysheet_select_save) return 0;
27632
27646
  const r = e.luckysheet_select_save[0], a = e.config.rowhidden ?? {}, l = e.config.colhidden ?? {};
@@ -27671,12 +27685,12 @@ function Zg(e, t) {
27671
27685
  }
27672
27686
  return n;
27673
27687
  }
27674
- function Jm(e) {
27688
+ function eh(e) {
27675
27689
  var t;
27676
27690
  return e == null ? !1 : $n(e.ct) || !h.isEmpty(e.v) || e.f != null || // @ts-ignore
27677
27691
  e.s != null || e.ct && ((t = e.ct.s) == null ? void 0 : t.length);
27678
27692
  }
27679
- function Kg(e) {
27693
+ function Jg(e) {
27680
27694
  var n, r;
27681
27695
  const t = Se(e);
27682
27696
  if (!t || !((n = e.luckysheet_select_save) != null && n.length)) return !1;
@@ -27684,11 +27698,11 @@ function Kg(e) {
27684
27698
  const l = e.luckysheet_select_save[a].row[0], o = e.luckysheet_select_save[a].row[1], i = e.luckysheet_select_save[a].column[0], u = e.luckysheet_select_save[a].column[1];
27685
27699
  for (let s = l; s <= o; s += 1)
27686
27700
  for (let c = i; c <= u; c += 1)
27687
- if (Jm((r = t[s]) == null ? void 0 : r[c])) return !0;
27701
+ if (eh((r = t[s]) == null ? void 0 : r[c])) return !0;
27688
27702
  }
27689
27703
  return !1;
27690
27704
  }
27691
- function eh(e, t, n, r) {
27705
+ function th(e, t, n, r) {
27692
27706
  var s, c, f, m;
27693
27707
  const a = Ee(e, t);
27694
27708
  if (a == null) return;
@@ -27868,7 +27882,7 @@ function Mr(e) {
27868
27882
  `).replace(/\r/g, `
27869
27883
  `);
27870
27884
  }
27871
- function Qg(e, t, n, r, a) {
27885
+ function e1(e, t, n, r, a) {
27872
27886
  const l = Se(e);
27873
27887
  if (l == null) return;
27874
27888
  const { scrollLeft: o } = r, { scrollTop: i } = a, u = n.getBoundingClientRect();
@@ -27910,10 +27924,10 @@ function qr(e, t, n) {
27910
27924
  ((u = (i = Se(e)) == null ? void 0 : i[t]) == null ? void 0 : u[n]) ?? void 0
27911
27925
  );
27912
27926
  }
27913
- function Jg(e, t, n) {
27927
+ function t1(e, t, n) {
27914
27928
  return qr(e, t, n)[0];
27915
27929
  }
27916
- function th(e, t) {
27930
+ function nh(e, t) {
27917
27931
  var n;
27918
27932
  return ((n = e == null ? void 0 : e.ct) == null ? void 0 : n.t) !== "inlineStr" || !Array.isArray(e.ct.s) ? "" : e.ct.s.filter((r) => r.link && _n(r.link, t)).map((r) => r.v ?? "").join("");
27919
27933
  }
@@ -27922,7 +27936,7 @@ function Jo(e) {
27922
27936
  `).replace(/\r/g, `
27923
27937
  `);
27924
27938
  }
27925
- function e1(e, t) {
27939
+ function n1(e, t) {
27926
27940
  var l;
27927
27941
  if (((l = e == null ? void 0 : e.ct) == null ? void 0 : l.t) !== "inlineStr" || !Array.isArray(e.ct.s))
27928
27942
  return;
@@ -27938,7 +27952,7 @@ function e1(e, t) {
27938
27952
  if (!(r == null || a == null || r === a))
27939
27953
  return { start: r, end: a };
27940
27954
  }
27941
- function nh(e, t, n) {
27955
+ function rh(e, t, n) {
27942
27956
  var l, o, i;
27943
27957
  if (t >= n || ((l = e == null ? void 0 : e.ct) == null ? void 0 : l.t) !== "inlineStr" || !Array.isArray(e.ct.s))
27944
27958
  return;
@@ -27956,7 +27970,7 @@ function nh(e, t, n) {
27956
27970
  }
27957
27971
  return a;
27958
27972
  }
27959
- function rh(e, t) {
27973
+ function ah(e, t) {
27960
27974
  var r, a, l;
27961
27975
  if (((r = e == null ? void 0 : e.ct) == null ? void 0 : r.t) !== "inlineStr" || !Array.isArray(e.ct.s))
27962
27976
  return;
@@ -27972,7 +27986,7 @@ function Qn(e, t, n, r) {
27972
27986
  const a = `${t}_${n}`;
27973
27987
  e.hyperlink || (e.hyperlink = {}), r.length === 0 ? delete e.hyperlink[a] : r.length === 1 ? e.hyperlink[a] = r[0] : e.hyperlink[a] = r;
27974
27988
  }
27975
- function ah(e) {
27989
+ function oh(e) {
27976
27990
  var t, n, r;
27977
27991
  if (!(((t = e == null ? void 0 : e.ct) == null ? void 0 : t.t) !== "inlineStr" || !Array.isArray(e.ct.s)))
27978
27992
  for (const a of e.ct.s) {
@@ -27987,13 +28001,13 @@ function ka(e) {
27987
28001
  const t = e.ct.s.map((r) => r.v ?? "").join("");
27988
28002
  e.v = t, e.m = t;
27989
28003
  }
27990
- function oh(e) {
28004
+ function lh(e) {
27991
28005
  var t;
27992
28006
  return ((t = e == null ? void 0 : e.ct) == null ? void 0 : t.t) === "inlineStr" && Array.isArray(e.ct.s) ? Mr(
27993
28007
  e.ct.s.map((n) => (n == null ? void 0 : n.v) ?? "").join("")
27994
28008
  ) : (e == null ? void 0 : e.v) == null || Array.isArray(e.v) ? "" : Mr(`${e.v}`);
27995
28009
  }
27996
- function lh(e, t, n, r, a) {
28010
+ function ih(e, t, n, r, a) {
27997
28011
  const l = [], o = { ...a }, i = (s) => {
27998
28012
  s && l.push({ ...o, v: s });
27999
28013
  }, u = (s) => {
@@ -28007,7 +28021,7 @@ function lh(e, t, n, r, a) {
28007
28021
  };
28008
28022
  return i(e.slice(0, t)), u(e.slice(t, n)), i(e.slice(n)), l;
28009
28023
  }
28010
- function ih(e, t, n, r, a, l, o, i) {
28024
+ function sh(e, t, n, r, a, l, o, i) {
28011
28025
  var le, F;
28012
28026
  const u = (le = e.linkCard) == null ? void 0 : le.selectionOffsets;
28013
28027
  if (!u || !a || !l) return !1;
@@ -28016,12 +28030,12 @@ function ih(e, t, n, r, a, l, o, i) {
28016
28030
  const c = s;
28017
28031
  if (sn(c) && Pn(c).length > 0)
28018
28032
  return !1;
28019
- const f = String(r ?? "").trim() || String(l ?? "").trim(), m = Mr(f), d = oh(c), p = Math.max(0, Math.min(u.start, d.length)), g = Math.max(p, Math.min(u.end, d.length)), y = d.slice(p, g), b = m.length > 0 && m !== y, w = typeof ((F = e.linkCard) == null ? void 0 : F.linkInsertOffset) == "number" ? e.linkCard.linkInsertOffset : g, v = Math.max(0, Math.min(w, d.length));
28033
+ const f = String(r ?? "").trim() || String(l ?? "").trim(), m = Mr(f), d = lh(c), p = Math.max(0, Math.min(u.start, d.length)), g = Math.max(p, Math.min(u.end, d.length)), y = d.slice(p, g), b = m.length > 0 && m !== y, w = typeof ((F = e.linkCard) == null ? void 0 : F.linkInsertOffset) == "number" ? e.linkCard.linkInsertOffset : g, v = Math.max(0, Math.min(w, d.length));
28020
28034
  let _, T, C;
28021
28035
  if (b ? (_ = d.slice(0, v) + m + d.slice(v), T = v, C = v + m.length) : (_ = d, T = p, C = g), C <= T) return !1;
28022
28036
  const $ = { linkType: a, linkAddress: l }, N = { fs: c.fs || 10 };
28023
28037
  c.ff != null && (N.ff = c.ff), c.bl != null && (N.bl = c.bl), c.it != null && (N.it = c.it);
28024
- const M = lh(
28038
+ const M = ih(
28025
28039
  _,
28026
28040
  T,
28027
28041
  C,
@@ -28071,10 +28085,10 @@ function ca(e, t, n) {
28071
28085
  const i = (o.length > 0 ? o : a)[0];
28072
28086
  e.linkCard.originType = i.linkType, e.linkCard.originAddress = i.linkAddress, e.linkCard.originText = (l == null ? void 0 : l.v) != null && !Array.isArray(l.v) ? `${l.v}` : "";
28073
28087
  }
28074
- function t1(e, t, n, r, a, l, o) {
28088
+ function r1(e, t, n, r, a, l, o) {
28075
28089
  var c, f, m, d;
28076
28090
  const i = Ee(e, e.currentSheetId), u = Se(e);
28077
- if (o != null && o.applySelectionFromModel && i != null && u != null && ih(
28091
+ if (o != null && o.applySelectionFromModel && i != null && u != null && sh(
28078
28092
  e,
28079
28093
  t,
28080
28094
  n,
@@ -28140,7 +28154,7 @@ function t1(e, t, n, r, a, l, o) {
28140
28154
  ]));
28141
28155
  }
28142
28156
  }
28143
- function sh(e, t, n) {
28157
+ function uh(e, t, n) {
28144
28158
  var i, u, s, c;
28145
28159
  if (!ct(e)) return;
28146
28160
  const a = Ee(e, e.currentSheetId), l = Se(e);
@@ -28152,7 +28166,7 @@ function sh(e, t, n) {
28152
28166
  );
28153
28167
  h.set(e.luckysheetfile[a], "hyperlink", f);
28154
28168
  const m = l[t][n];
28155
- m != null && (ah(m), (i = l[t][n]) == null || delete i.hl, (u = l[t][n]) == null || delete u.un, (s = l[t][n]) == null || delete s.fc, o = l[t][n]);
28169
+ m != null && (oh(m), (i = l[t][n]) == null || delete i.hl, (u = l[t][n]) == null || delete u.un, (s = l[t][n]) == null || delete s.fc, o = l[t][n]);
28156
28170
  }
28157
28171
  if (e.linkCard = void 0, (c = e == null ? void 0 : e.hooks) != null && c.updateCellYdoc) {
28158
28172
  const f = [
@@ -28173,7 +28187,7 @@ function sh(e, t, n) {
28173
28187
  }), e.hooks.updateCellYdoc(f);
28174
28188
  }
28175
28189
  }
28176
- function n1(e, t, n, r) {
28190
+ function a1(e, t, n, r) {
28177
28191
  var m, d, p;
28178
28192
  if (!ct(e)) return;
28179
28193
  const l = Ee(e, e.currentSheetId), o = Se(e);
@@ -28191,7 +28205,7 @@ function n1(e, t, n, r) {
28191
28205
  const c = Qo((d = i.hyperlink) == null ? void 0 : d[u]), f = c.filter((g) => !_n(g, r));
28192
28206
  if (f.length !== c.length) {
28193
28207
  if (f.length === 0) {
28194
- sh(e, t, n);
28208
+ uh(e, t, n);
28195
28209
  return;
28196
28210
  }
28197
28211
  Qn(i, t, n, f), (p = e == null ? void 0 : e.hooks) != null && p.updateCellYdoc && e.hooks.updateCellYdoc([
@@ -28205,7 +28219,7 @@ function n1(e, t, n, r) {
28205
28219
  ]), ca(e, t, n);
28206
28220
  }
28207
28221
  }
28208
- function r1(e, t, n, r, a, l, o) {
28222
+ function o1(e, t, n, r, a, l, o) {
28209
28223
  var y, b, w;
28210
28224
  if (!ct(e)) return;
28211
28225
  const u = Ee(e, e.currentSheetId), s = Se(e);
@@ -28244,7 +28258,7 @@ function r1(e, t, n, r, a, l, o) {
28244
28258
  }
28245
28259
  ca(e, t, n);
28246
28260
  }
28247
- function uh(e, t, n, r, a = !1, l = !1) {
28261
+ function ch(e, t, n, r, a = !1, l = !1) {
28248
28262
  var p, g, y, b, w, v, _, T, C, $;
28249
28263
  const o = (((p = e.luckysheetCellUpdate) == null ? void 0 : p.length) ?? 0) === 2 && e.luckysheetCellUpdate[0] === t && e.luckysheetCellUpdate[1] === n, i = r == null ? void 0 : r.caretViewLink;
28250
28264
  if (o && !a && !i || (g = e.linkCard) != null && g.selectingCellRange && !a || `${t}_${n}` === ((y = e.linkCard) == null ? void 0 : y.rc) && !(r != null && r.applyToSelection) && !l && !a && !i)
@@ -28258,7 +28272,7 @@ function uh(e, t, n, r, a = !1, l = !1) {
28258
28272
  const S = n - 1 === -1 ? 0 : e.visibledatacolumn[n - 1], N = e.visibledatarow[t], M = (() => {
28259
28273
  if ((r == null ? void 0 : r.originText) !== void 0) return r.originText;
28260
28274
  if (i && c) {
28261
- const K = th(c, i);
28275
+ const K = nh(c, i);
28262
28276
  if (K.length > 0) return K;
28263
28277
  }
28264
28278
  return (c == null ? void 0 : c.v) == null ? "" : `${c.v}`;
@@ -28284,7 +28298,7 @@ function uh(e, t, n, r, a = !1, l = !1) {
28284
28298
  };
28285
28299
  }
28286
28300
  }
28287
- function a1(e, t, n, r, a, l, o) {
28301
+ function l1(e, t, n, r, a, l, o) {
28288
28302
  if (Ee(e, e.currentSheetId) != null && qr(e, t, n).length !== 0) {
28289
28303
  if (r === "webpage") {
28290
28304
  const u = String(a ?? "").trim();
@@ -28310,12 +28324,12 @@ function a1(e, t, n, r, a, l, o) {
28310
28324
  e.linkCard = void 0;
28311
28325
  }
28312
28326
  }
28313
- function o1(e, t, n) {
28327
+ function i1(e, t, n) {
28314
28328
  if (!n) return { isValid: !1, tooltip: "" };
28315
28329
  const { insertLink: r } = Et(e), a = String(n ?? "").trim();
28316
28330
  return $u(a) ? { isValid: !0, tooltip: "" } : (/^https?:\/\//i.test(n) || (n = `https://${n}`), /^(https?):\/\/[^\s$.?#].[^\s]*$/i.test(n) ? t === "cellrange" && !Dt(n) ? { isValid: !1, tooltip: r.invalidCellRangeTip } : { isValid: !0, tooltip: "" } : { isValid: !1, tooltip: r.tooltipInfo1 });
28317
28331
  }
28318
- function l1(e, t) {
28332
+ function s1(e, t) {
28319
28333
  var u;
28320
28334
  const n = (u = e.linkCard) == null ? void 0 : u.rangeSelectionModal;
28321
28335
  if (n == null) return;
@@ -28325,10 +28339,10 @@ function l1(e, t) {
28325
28339
  let { top: o, left: i } = n.initialPosition;
28326
28340
  i += t.pageX - a, o += t.pageY - l, o < 0 && (o = 0), r.style.left = `${i}px`, r.style.top = `${o}px`;
28327
28341
  }
28328
- function i1(e) {
28342
+ function u1(e) {
28329
28343
  h.set(e, "linkCard.rangeSelectionModal", void 0);
28330
28344
  }
28331
- function ch(e, t, n, r) {
28345
+ function fh(e, t, n, r) {
28332
28346
  let a = [];
28333
28347
  const l = n.row[0] - t.row[0], o = n.column[0] - t.column[0], i = e.row[0], u = e.row[1], s = e.column[0], c = e.column[1];
28334
28348
  return i >= t.row[0] && u <= t.row[1] && s >= t.column[0] && c <= t.column[1] ? r === "allPart" ? a = [
@@ -28588,7 +28602,69 @@ function ch(e, t, n, r) {
28588
28602
  }
28589
28603
  ]) : r === "allPart" ? a = [{ row: [i, u], column: [s, c] }] : r === "restPart" ? a = [{ row: [i, u], column: [s, c] }] : r === "operatePart" && (a = []), a;
28590
28604
  }
28591
- function fh(e, t, n, r, a) {
28605
+ function dh(e) {
28606
+ const t = [];
28607
+ if (e.length === 0) return t;
28608
+ let n = e[0], r = e[0];
28609
+ for (let a = 1; a < e.length; a += 1) {
28610
+ const l = e[a];
28611
+ if (l === r || l === r + 1) {
28612
+ r = l;
28613
+ continue;
28614
+ }
28615
+ t.push([n, r]), n = l, r = l;
28616
+ }
28617
+ return t.push([n, r]), t;
28618
+ }
28619
+ function c1(e, t, n) {
28620
+ if (!(e != null && e.length)) return [];
28621
+ const r = [];
28622
+ for (let a = 0; a < e.length; a += 1) {
28623
+ const l = e[a];
28624
+ if (l) {
28625
+ if (l.rangeType === "cell" && l.value) {
28626
+ const o = { ...l.value };
28627
+ if (t === "row") {
28628
+ const i = Number(o.row_index);
28629
+ Number.isFinite(i) && (o.row_index = n[i] ?? i);
28630
+ } else {
28631
+ const i = Number(o.col_index);
28632
+ Number.isFinite(i) && (o.col_index = n[i] ?? i);
28633
+ }
28634
+ r.push({ ...l, value: o });
28635
+ continue;
28636
+ }
28637
+ if (l.rangeType === "range" && Array.isArray(l.range)) {
28638
+ const o = [];
28639
+ for (let i = 0; i < l.range.length; i += 1) {
28640
+ const u = l.range[i];
28641
+ if (!(u != null && u.row) || !(u != null && u.column)) continue;
28642
+ const s = t === "row" ? u.row : u.column, c = t === "row" ? u.column : u.row;
28643
+ if (!Array.isArray(s) || s.length < 2) continue;
28644
+ let f = Number(s[0]), m = Number(s[1]);
28645
+ if (!Number.isFinite(f) || !Number.isFinite(m)) continue;
28646
+ if (f > m) {
28647
+ const p = f;
28648
+ f = m, m = p;
28649
+ }
28650
+ const d = [];
28651
+ for (let p = f; p <= m; p += 1)
28652
+ d.push(n[p] ?? p);
28653
+ d.sort((p, g) => p - g), dh(d).forEach(([p, g]) => {
28654
+ o.push(
28655
+ t === "row" ? { row: [p, g], column: c } : { row: c, column: [p, g] }
28656
+ );
28657
+ });
28658
+ }
28659
+ o.length > 0 && r.push({ ...l, range: o });
28660
+ continue;
28661
+ }
28662
+ r.push(l);
28663
+ }
28664
+ }
28665
+ return r;
28666
+ }
28667
+ function mh(e, t, n, r, a) {
28592
28668
  if (!e.length) return [];
28593
28669
  const l = [];
28594
28670
  for (let o = 0; o < e.length; o += 1) {
@@ -28598,7 +28674,7 @@ function fh(e, t, n, r, a) {
28598
28674
  let c = [];
28599
28675
  for (let f = 0; f < s.length; f += 1)
28600
28676
  c = c.concat(
28601
- ch(
28677
+ fh(
28602
28678
  s[f],
28603
28679
  { row: [t, n], column: [r, a] },
28604
28680
  { row: [t, n], column: [r, a] },
@@ -28616,7 +28692,7 @@ function fh(e, t, n, r, a) {
28616
28692
  function Nu(e, t) {
28617
28693
  let n = e ?? [];
28618
28694
  return t.forEach((r) => {
28619
- n = fh(
28695
+ n = mh(
28620
28696
  n,
28621
28697
  r.row[0],
28622
28698
  r.row[1],
@@ -28876,7 +28952,7 @@ function fa(e) {
28876
28952
  let t = e;
28877
28953
  return h.isPlainObject(t) && (t = t.v), !!(!ot(t) && Vs(t).num && (e.ct == null || e.ct.t == null || e.ct.t === "n" || e.ct.t === "g"));
28878
28954
  }
28879
- function dh(e) {
28955
+ function hh(e) {
28880
28956
  let t = e;
28881
28957
  return h.isPlainObject(t) && (t = t.v), !ot(t);
28882
28958
  }
@@ -28957,7 +29033,7 @@ function Vr(e, t, n, r, a, l, o, i, u, s, c, f, m) {
28957
29033
  let d = !0, p = !1;
28958
29034
  for (let g = o; g <= i; g += 1) {
28959
29035
  let y = null;
28960
- s === "c" ? y = r[g][l] : y = r[l][g], fa(y) ? (d = !1, p = !0) : dh(y) && (d = !1);
29036
+ s === "c" ? y = r[g][l] : y = r[l][g], fa(y) ? (d = !1, p = !0) : hh(y) && (d = !1);
28961
29037
  }
28962
29038
  if (d && m) {
28963
29039
  let g = $r(r, a, l, s);
@@ -29059,7 +29135,7 @@ function Vr(e, t, n, r, a, l, o, i, u, s, c, f, m) {
29059
29135
  }
29060
29136
  return !0;
29061
29137
  }
29062
- function mh(e, t, n, r, a) {
29138
+ function ph(e, t, n, r, a) {
29063
29139
  if (!ct(e)) return;
29064
29140
  const o = Se(e);
29065
29141
  if (o == null) return;
@@ -29191,7 +29267,7 @@ function mh(e, t, n, r, a) {
29191
29267
  i = i && i;
29192
29268
  }), i || (e.formulaCache.execFunctionExist.reverse(), ln(e, null, null, null, null, o), e.formulaCache.execFunctionGlobalData = null));
29193
29269
  }
29194
- function hh(e) {
29270
+ function gh(e) {
29195
29271
  var t;
29196
29272
  if (e.luckysheet_copy_save !== null) {
29197
29273
  if (((t = e.luckysheet_copy_save) == null ? void 0 : t.dataSheetId) === e.currentSheetId)
@@ -29210,7 +29286,7 @@ function hh(e) {
29210
29286
  }, e.luckysheetPaintModelOn = !1;
29211
29287
  }
29212
29288
  }
29213
- function ph(e, t) {
29289
+ function yh(e, t) {
29214
29290
  const n = Se(e);
29215
29291
  if (!n) return;
29216
29292
  const r = e.currency || "¥";
@@ -29222,11 +29298,11 @@ function ph(e, t) {
29222
29298
  Xs(r, 2)
29223
29299
  );
29224
29300
  }
29225
- function gh(e, t) {
29301
+ function bh(e, t) {
29226
29302
  const n = Se(e);
29227
29303
  n && Xt(e, t, n, "ct", "0.00%");
29228
29304
  }
29229
- function yh(e, t) {
29305
+ function wh(e, t) {
29230
29306
  var p;
29231
29307
  const n = Se(e);
29232
29308
  if (!n || !e.luckysheet_select_save) return;
@@ -29282,7 +29358,7 @@ function yh(e, t) {
29282
29358
  }
29283
29359
  Xt(e, t, n, "ct", d);
29284
29360
  }
29285
- function bh(e, t) {
29361
+ function vh(e, t) {
29286
29362
  const n = Se(e);
29287
29363
  if (!n || !e.luckysheet_select_save) return;
29288
29364
  const r = e.luckysheet_select_save[0].row_focus, a = e.luckysheet_select_save[0].column_focus;
@@ -29324,32 +29400,32 @@ function bh(e, t) {
29324
29400
  m.length > 0 ? d = `${c.replace(m, "")}.0${m}` : d = `${c}.0${m}`;
29325
29401
  Xt(e, t, n, "ct", d);
29326
29402
  }
29327
- function wh(e, t) {
29403
+ function _h(e, t) {
29328
29404
  Ea(e, t, "bl");
29329
29405
  }
29330
- function vh(e, t) {
29406
+ function Th(e, t) {
29331
29407
  Ea(e, t, "it");
29332
29408
  }
29333
- function _h(e, t) {
29409
+ function $h(e, t) {
29334
29410
  Ea(e, t, "cl");
29335
29411
  }
29336
- function Th(e, t) {
29412
+ function Ch(e, t) {
29337
29413
  Ea(e, t, "un");
29338
29414
  }
29339
- function s1(e, t, n) {
29415
+ function f1(e, t, n) {
29340
29416
  Dr(e, t, "ht", n);
29341
29417
  }
29342
- function u1(e, t, n) {
29418
+ function d1(e, t, n) {
29343
29419
  Dr(e, t, "vt", n);
29344
29420
  }
29345
- function $h(e) {
29421
+ function Nh(e) {
29346
29422
  if (!ct(e) || e.luckysheet_select_save == null || e.luckysheet_select_save.length === 0 || e.luckysheet_select_save.length > 1)
29347
29423
  return;
29348
29424
  let n = !1;
29349
29425
  const r = e.luckysheet_select_save[0].row[0], a = e.luckysheet_select_save[0].row[1], l = e.luckysheet_select_save[0].column[0], o = e.luckysheet_select_save[0].column[1];
29350
29426
  if (n = un(e, e.config, r, a, l, o), n)
29351
29427
  return;
29352
- hh(e), e.luckysheet_selection_range = [
29428
+ gh(e), e.luckysheet_selection_range = [
29353
29429
  {
29354
29430
  row: e.luckysheet_select_save[0].row,
29355
29431
  column: e.luckysheet_select_save[0].column
@@ -29378,7 +29454,7 @@ function $h(e) {
29378
29454
  HasMC: u
29379
29455
  }, e.luckysheetPaintModelOn = !0, e.luckysheetPaintSingle = !0;
29380
29456
  }
29381
- function Ch(e) {
29457
+ function Sh(e) {
29382
29458
  var l, o, i, u, s;
29383
29459
  if (e.allowEdit === !1) return;
29384
29460
  const t = Se(e);
@@ -29416,13 +29492,13 @@ function Ch(e) {
29416
29492
  }
29417
29493
  (u = e == null ? void 0 : e.hooks) != null && u.updateCellYdoc && (r && vo(e, ((s = e.config) == null ? void 0 : s.borderInfo) ?? []), n.length > 0 && e.hooks.updateCellYdoc(n));
29418
29494
  }
29419
- function c1(e, t, n) {
29495
+ function m1(e, t, n) {
29420
29496
  Dr(e, t, "fc", n);
29421
29497
  }
29422
- function f1(e, t, n) {
29498
+ function h1(e, t, n) {
29423
29499
  Dr(e, t, "bg", n);
29424
29500
  }
29425
- function Nh(e, t, n, r) {
29501
+ function kh(e, t, n, r) {
29426
29502
  var c;
29427
29503
  if (!ct(e)) return;
29428
29504
  t == null && (t = "border-all");
@@ -29470,7 +29546,7 @@ function Nh(e, t, n, r) {
29470
29546
  const s = Ee(e, e.currentSheetId);
29471
29547
  s != null && (la(e.luckysheetfile[s], e.config), e.config = e.luckysheetfile[s].config, vo(e, i.borderInfo));
29472
29548
  }
29473
- function Sh(e, t) {
29549
+ function Ah(e, t) {
29474
29550
  if (!ct(e)) return;
29475
29551
  if (e.config.merge != null) {
29476
29552
  let a = !1;
@@ -29483,12 +29559,12 @@ function Sh(e, t) {
29483
29559
  if (a)
29484
29560
  return;
29485
29561
  }
29486
- Se(e) && e.luckysheet_select_save && eh(e, e.currentSheetId, e.luckysheet_select_save, t);
29562
+ Se(e) && e.luckysheet_select_save && th(e, e.currentSheetId, e.luckysheet_select_save, t);
29487
29563
  }
29488
- function kh(e, t) {
29564
+ function Eh(e, t) {
29489
29565
  mm(e, t);
29490
29566
  }
29491
- function d1(e, t) {
29567
+ function p1(e, t) {
29492
29568
  var u, s;
29493
29569
  if (!ct(e)) return;
29494
29570
  const r = e.luckysheetfile[Ee(e, e.currentSheetId)];
@@ -29504,18 +29580,18 @@ function d1(e, t) {
29504
29580
  const i = (s = e.config.merge) == null ? void 0 : s[`${l}_${o}`];
29505
29581
  i && (l = i.r + i.rs - 1, o = i.c + i.cs - 1), r.frozen = { type: "both", range: { row_focus: l, column_focus: o } }, t === "freeze-row" ? r.frozen.type = "rangeRow" : t === "freeze-col" && (r.frozen.type = "rangeColumn");
29506
29582
  }
29507
- function m1(e, t, n, r) {
29583
+ function g1(e, t, n, r) {
29508
29584
  Dr(e, t, "fs", n, r);
29509
29585
  }
29510
- function h1(e, t, n, r) {
29511
- mh(e, t, n, "SUM", r);
29586
+ function y1(e, t, n, r) {
29587
+ ph(e, t, n, "SUM", r);
29512
29588
  }
29513
29589
  function Au(e) {
29514
29590
  return e.replace(/\r\n/g, `
29515
29591
  `).replace(/\r/g, `
29516
29592
  `);
29517
29593
  }
29518
- function Ah(e, t) {
29594
+ function Mh(e, t) {
29519
29595
  var a;
29520
29596
  if (!(((a = e.luckysheetCellUpdate) == null ? void 0 : a.length) === 2 && e.luckysheetCellUpdate[0] != null && e.luckysheetCellUpdate[1] != null)) return "";
29521
29597
  if (Uo(e) === "fx") {
@@ -29526,16 +29602,16 @@ function Ah(e, t) {
29526
29602
  }
29527
29603
  return (t == null ? void 0 : t.innerText) ?? "";
29528
29604
  }
29529
- function Eh(e, t) {
29605
+ function Rh(e, t) {
29530
29606
  var s, c;
29531
29607
  const n = (s = e.luckysheet_select_save) == null ? void 0 : s[0], r = Se(e);
29532
29608
  if (r == null || n == null) return !1;
29533
29609
  const a = n.row[0], l = n.column[0], o = (c = r[a]) == null ? void 0 : c[l];
29534
29610
  if ((o == null ? void 0 : o.f) != null && String(o.f).trim() !== "") return !0;
29535
- const u = Ah(e, t);
29611
+ const u = Mh(e, t);
29536
29612
  return !!(u.length > 0 && u.trimStart().startsWith("="));
29537
29613
  }
29538
- function p1(e, t, n) {
29614
+ function b1(e, t, n) {
29539
29615
  if (!n || !t) return;
29540
29616
  if (e.luckysheetCellUpdate.length !== 2) {
29541
29617
  delete n.linkEditorOpenSnapshot;
@@ -29561,10 +29637,10 @@ function p1(e, t, n) {
29561
29637
  selectedPlain: s
29562
29638
  };
29563
29639
  }
29564
- function Mh(e, t, n) {
29640
+ function xh(e, t, n) {
29565
29641
  var g, y, b, w;
29566
29642
  if (!ct(e)) return;
29567
- if (Eh(e, t)) {
29643
+ if (Rh(e, t)) {
29568
29644
  (g = n == null ? void 0 : n.onHyperlinkInsertBlocked) == null || g.call(n);
29569
29645
  return;
29570
29646
  }
@@ -29593,11 +29669,11 @@ function Mh(e, t, n) {
29593
29669
  }
29594
29670
  }
29595
29671
  }
29596
- f && p && v.substring(0, 1) !== "=" && (d = Ps(t) ?? nh(
29672
+ f && p && v.substring(0, 1) !== "=" && (d = Ps(t) ?? rh(
29597
29673
  p,
29598
29674
  f.start,
29599
29675
  f.end
29600
- ) ?? rh(
29676
+ ) ?? ah(
29601
29677
  p,
29602
29678
  f.start
29603
29679
  ));
@@ -29612,7 +29688,7 @@ function Mh(e, t, n) {
29612
29688
  const $ = qr(e, o, i)[0];
29613
29689
  T > 0 ? (f = { start: 0, end: T }, c = _, m = T) : (f = { start: 0, end: 0 }, c = "", m = 0), $ && (d = $), e.luckysheetCellUpdate = [o, i];
29614
29690
  }
29615
- uh(
29691
+ ch(
29616
29692
  e,
29617
29693
  o,
29618
29694
  i,
@@ -29627,35 +29703,35 @@ function Mh(e, t, n) {
29627
29703
  !1
29628
29704
  );
29629
29705
  }
29630
- const Rh = {
29631
- "currency-format": ph,
29632
- "percentage-format": gh,
29633
- "number-decrease": yh,
29634
- "number-increase": bh,
29635
- "sort-cell": (e) => kh(e, !0),
29636
- "merge-all": (e) => Sh(e, "merge-all"),
29637
- "border-all": (e) => Nh(e, "border-all"),
29638
- bold: wh,
29639
- italic: vh,
29640
- "strike-through": _h,
29641
- underline: Th,
29642
- "clear-format": Ch,
29643
- "format-painter": $h,
29706
+ const Ih = {
29707
+ "currency-format": yh,
29708
+ "percentage-format": bh,
29709
+ "number-decrease": wh,
29710
+ "number-increase": vh,
29711
+ "sort-cell": (e) => Eh(e, !0),
29712
+ "merge-all": (e) => Ah(e, "merge-all"),
29713
+ "border-all": (e) => kh(e, "border-all"),
29714
+ bold: _h,
29715
+ italic: Th,
29716
+ "strike-through": $h,
29717
+ underline: Ch,
29718
+ "clear-format": Sh,
29719
+ "format-painter": Nh,
29644
29720
  search: (e) => {
29645
29721
  e.showSearch = !0;
29646
29722
  },
29647
- link: (e, t, n) => Mh(e, t, n)
29648
- }, xh = {
29723
+ link: (e, t, n) => xh(e, t, n)
29724
+ }, qh = {
29649
29725
  bold: (e) => (e == null ? void 0 : e.bl) === 1,
29650
29726
  italic: (e) => (e == null ? void 0 : e.it) === 1,
29651
29727
  "strike-through": (e) => (e == null ? void 0 : e.cl) === 1,
29652
29728
  underline: (e) => (e == null ? void 0 : e.un) === 1
29653
29729
  };
29654
- function g1(e) {
29655
- return Rh[e];
29730
+ function w1(e) {
29731
+ return Ih[e];
29656
29732
  }
29657
- function y1(e) {
29658
- return xh[e];
29733
+ function v1(e) {
29734
+ return qh[e];
29659
29735
  }
29660
29736
  function Wr(e) {
29661
29737
  return `${e}px`;
@@ -29706,7 +29782,7 @@ function nn(e) {
29706
29782
  }
29707
29783
  return t + n;
29708
29784
  }
29709
- function Ih(e) {
29785
+ function Dh(e) {
29710
29786
  let t = "", n = "", r = 0, a = !0;
29711
29787
  for (; e > 0; ) {
29712
29788
  const l = e % 10;
@@ -29714,13 +29790,13 @@ function Ih(e) {
29714
29790
  }
29715
29791
  return n;
29716
29792
  }
29717
- function qh(e) {
29793
+ function Oh(e) {
29718
29794
  let t = "", n = "", r = 0, a = !1;
29719
29795
  if (e === 0)
29720
29796
  return Ke.chnNumChar2[0];
29721
29797
  for (; e > 0; ) {
29722
29798
  const l = e % 1e4;
29723
- a && (n = Ke.chnNumChar2[0] + n), t = Ih(l), t += l !== 0 ? Ke.chnUnitSection[r] : Ke.chnUnitSection[0], n = t + n, a = l < 1e3 && l > 0, e = Math.floor(e / 1e4), r += 1;
29799
+ a && (n = Ke.chnNumChar2[0] + n), t = Dh(l), t += l !== 0 ? Ke.chnUnitSection[r] : Ke.chnUnitSection[0], n = t + n, a = l < 1e3 && l > 0, e = Math.floor(e / 1e4), r += 1;
29724
29800
  }
29725
29801
  return n;
29726
29802
  }
@@ -29773,7 +29849,7 @@ function lr(e) {
29773
29849
  }
29774
29850
  return t;
29775
29851
  }
29776
- function Dh(e) {
29852
+ function Fh(e) {
29777
29853
  let t = !0;
29778
29854
  const n = e[1] / e[0];
29779
29855
  for (let r = 1; r < e.length; r += 1)
@@ -29783,7 +29859,7 @@ function Dh(e) {
29783
29859
  }
29784
29860
  return t;
29785
29861
  }
29786
- function Oh(e) {
29862
+ function Lh(e) {
29787
29863
  const t = [];
29788
29864
  for (let n = 1; n <= e; n += 1)
29789
29865
  t.push(n);
@@ -29827,13 +29903,13 @@ function xu({ width: e, height: t, top: n, left: r }, a) {
29827
29903
  );
29828
29904
  l && (l.style.left = Wr(r), l.style.width = Wr(e), l.style.top = Wr(n), l.style.height = Wr(t), l.style.display = "block");
29829
29905
  }
29830
- function Fh(e) {
29906
+ function Bh(e) {
29831
29907
  const t = e.querySelector(
29832
29908
  ".fortune-cell-selected-extend"
29833
29909
  );
29834
29910
  t && (t.style.display = "none");
29835
29911
  }
29836
- function b1(e, t, n) {
29912
+ function _1(e, t, n) {
29837
29913
  e.luckysheet_cell_selected_extend = !0, e.luckysheet_scroll_status = !0;
29838
29914
  const { scrollLeft: r, scrollTop: a } = e, l = n.getBoundingClientRect(), o = t.pageX - l.left - e.rowHeaderWidth + r, i = t.pageY - l.top - e.columnHeaderHeight + a, u = Un(i, e.visibledatarow), s = u[0], c = u[1], f = u[2], m = zn(o, e.visibledatacolumn), d = m[0], p = m[1], g = m[2];
29839
29915
  e.luckysheet_cell_selected_extend_index = [f, g], xu(
@@ -29846,7 +29922,7 @@ function b1(e, t, n) {
29846
29922
  n
29847
29923
  );
29848
29924
  }
29849
- function w1(e, t, n, r, a) {
29925
+ function T1(e, t, n, r, a) {
29850
29926
  const { scrollLeft: l } = n, { scrollTop: o } = r, i = a.getBoundingClientRect(), u = t.pageX - i.left - e.rowHeaderWidth + l, s = t.pageY - i.top - e.columnHeaderHeight + o, c = Un(s, e.visibledatarow), f = c[1], m = c[0], d = c[2], p = zn(u, e.visibledatacolumn), g = p[1], y = p[0], b = p[2], w = e.luckysheet_cell_selected_extend_index[0], v = e.luckysheet_cell_selected_extend_index[1];
29851
29927
  if (!e.luckysheet_select_save) return;
29852
29928
  let _ = e.luckysheet_select_save[0].row[0], T = e.luckysheet_select_save[0].row[1], C = e.luckysheet_select_save[0].column[0], $ = e.luckysheet_select_save[0].column[1], S = e.luckysheet_select_save[0].top_move, N = e.luckysheet_select_save[0].height_move, M = e.luckysheet_select_save[0].left_move, z = e.luckysheet_select_save[0].width_move;
@@ -29860,13 +29936,13 @@ function Yt(e, t) {
29860
29936
  }
29861
29937
  return n;
29862
29938
  }
29863
- function Lh(e, t, n) {
29939
+ function Ph(e, t, n) {
29864
29940
  const r = [], a = [];
29865
29941
  for (let l = 0; l < e.length; l += 1) {
29866
29942
  const o = h.cloneDeep(e[l]);
29867
29943
  o != null && a.push(Number(o.v));
29868
29944
  }
29869
- if (e.length > 2 && Dh(a) && e[0] != null && e[1] != null)
29945
+ if (e.length > 2 && Fh(a) && e[0] != null && e[1] != null)
29870
29946
  for (let l = 1; l <= t; l += 1) {
29871
29947
  const o = (l - 1) % e.length, i = h.cloneDeep(e[o]);
29872
29948
  if (i != null) {
@@ -29875,7 +29951,7 @@ function Lh(e, t, n) {
29875
29951
  }
29876
29952
  }
29877
29953
  else {
29878
- const l = Oh(e.length);
29954
+ const l = Lh(e.length);
29879
29955
  for (let o = 1; o <= t; o += 1) {
29880
29956
  const i = (o - 1) % e.length, u = h.cloneDeep(e[i]);
29881
29957
  if (u != null) {
@@ -29886,7 +29962,7 @@ function Lh(e, t, n) {
29886
29962
  }
29887
29963
  return r;
29888
29964
  }
29889
- function Bh(e, t, n) {
29965
+ function Hh(e, t, n) {
29890
29966
  var l;
29891
29967
  const r = [], a = /0|([1-9]+[0-9]*)/g;
29892
29968
  for (let o = 1; o <= t; o += 1) {
@@ -29937,7 +30013,7 @@ function is(e, t, n) {
29937
30013
  }
29938
30014
  return r;
29939
30015
  }
29940
- function Ph(e, t, n) {
30016
+ function Uh(e, t, n) {
29941
30017
  var a;
29942
30018
  const r = [];
29943
30019
  for (let l = 1; l <= t; l += 1) {
@@ -29952,7 +30028,7 @@ function Ph(e, t, n) {
29952
30028
  }
29953
30029
  return r;
29954
30030
  }
29955
- function Hh(e, t, n) {
30031
+ function zh(e, t, n) {
29956
30032
  var a;
29957
30033
  const r = [];
29958
30034
  for (let l = 1; l <= t; l += 1) {
@@ -29974,7 +30050,7 @@ function Hh(e, t, n) {
29974
30050
  }
29975
30051
  return r;
29976
30052
  }
29977
- function Uh(e, t, n) {
30053
+ function Yh(e, t, n) {
29978
30054
  var a;
29979
30055
  const r = [];
29980
30056
  for (let l = 1; l <= t; l += 1) {
@@ -30004,7 +30080,7 @@ function ss(e, t, n) {
30004
30080
  if (u != null && i != null) {
30005
30081
  const s = nn(`${u}`) + n * l;
30006
30082
  let c;
30007
- s <= 0 ? c = "零" : c = qh(s), i.v = c, i.m = c.toString(), r.push(i);
30083
+ s <= 0 ? c = "零" : c = Oh(s), i.v = c, i.m = c.toString(), r.push(i);
30008
30084
  }
30009
30085
  }
30010
30086
  return r;
@@ -30058,7 +30134,7 @@ function _t(e, t, n, r, a) {
30058
30134
  (n === "up" || n === "left") && e.reverse(), l = Yt(e, t);
30059
30135
  else if (r === "1")
30060
30136
  if (a === "number")
30061
- l = Lh(e, t, n);
30137
+ l = Ph(e, t, n);
30062
30138
  else if (a === "extendNumber") {
30063
30139
  const I = [];
30064
30140
  for (let L = 0; L < e.length; L += 1) {
@@ -30067,7 +30143,7 @@ function _t(e, t, n, r, a) {
30067
30143
  }
30068
30144
  if ((n === "up" || n === "left") && (e.reverse(), I.reverse()), lr(I)) {
30069
30145
  const L = I[1] - I[0];
30070
- l = Bh(e, t, L);
30146
+ l = Hh(e, t, L);
30071
30147
  } else
30072
30148
  l = Yt(e, t);
30073
30149
  } else if (a === "date") {
@@ -30097,7 +30173,7 @@ function _t(e, t, n, r, a) {
30097
30173
  if ((n === "up" || n === "left") && (e.reverse(), L.reverse()), lr(L))
30098
30174
  if (I || L[L.length - 1] < 6 && L[0] > 0 || L[0] < 6 && L[L.length - 1] > 0) {
30099
30175
  const H = L[1] - L[0];
30100
- l = Ph(e, t, H);
30176
+ l = Uh(e, t, H);
30101
30177
  } else {
30102
30178
  const H = L[1] - L[0];
30103
30179
  l = ss(e, t, H);
@@ -30117,7 +30193,7 @@ function _t(e, t, n, r, a) {
30117
30193
  }
30118
30194
  if ((n === "up" || n === "left") && (e.reverse(), I.reverse()), lr(I)) {
30119
30195
  const pe = I[1] - I[0];
30120
- l = Hh(e, t, pe);
30196
+ l = zh(e, t, pe);
30121
30197
  } else
30122
30198
  l = Yt(e, t);
30123
30199
  } else if (a === "chnWeek3") {
@@ -30133,7 +30209,7 @@ function _t(e, t, n, r, a) {
30133
30209
  }
30134
30210
  if ((n === "up" || n === "left") && (e.reverse(), I.reverse()), lr(I)) {
30135
30211
  const pe = I[1] - I[0];
30136
- l = Uh(e, t, pe);
30212
+ l = Yh(e, t, pe);
30137
30213
  } else
30138
30214
  l = Yt(e, t);
30139
30215
  } else
@@ -30342,7 +30418,7 @@ function _t(e, t, n, r, a) {
30342
30418
  I != null && delete I.ps;
30343
30419
  }), l;
30344
30420
  }
30345
- function zh(e, t, n, r, a, l) {
30421
+ function Vh(e, t, n, r, a, l) {
30346
30422
  const o = [];
30347
30423
  let i, u, s, c;
30348
30424
  l === "down" || l === "up" ? (i = r, u = a, s = t, c = n) : (i = t, u = n, s = r, c = a);
@@ -30519,7 +30595,7 @@ function qu(e) {
30519
30595
  if (a == null) return;
30520
30596
  const l = e.luckysheetfile[a], o = new Set(Object.keys(((M = l.config) == null ? void 0 : M.rowhidden) || {})), i = new Set(Object.keys(((z = l.config) == null ? void 0 : z.colhidden) || {})), u = h.cloneDeep(e.config);
30521
30597
  u.borderInfo == null && (u.borderInfo = []);
30522
- const s = Ko(e, e.currentSheetId), c = h.cloneDeep(l.dataVerification), { direction: f } = Ke, { copyRange: m } = Ke, d = m.row[0], p = m.row[1], g = m.column[0], y = m.column[1], b = zh(
30598
+ const s = Ko(e, e.currentSheetId), c = h.cloneDeep(l.dataVerification), { direction: f } = Ke, { copyRange: m } = Ke, d = m.row[0], p = m.row[1], g = m.column[0], y = m.column[1], b = Vh(
30523
30599
  t,
30524
30600
  d,
30525
30601
  p,
@@ -30888,9 +30964,9 @@ function qu(e) {
30888
30964
  }
30889
30965
  l.dataVerification = c, Wo(e, t, e.luckysheet_select_save);
30890
30966
  }
30891
- function v1(e, t, n) {
30967
+ function $1(e, t, n) {
30892
30968
  var b, w, v;
30893
- e.luckysheet_cell_selected_extend = !1, Fh(n);
30969
+ e.luckysheet_cell_selected_extend = !1, Bh(n);
30894
30970
  const { scrollLeft: r, scrollTop: a } = e, l = n.getBoundingClientRect(), o = t.pageX - l.left - e.rowHeaderWidth + r, i = t.pageY - l.top - e.columnHeaderHeight + a, u = Un(i, e.visibledatarow), s = u[0], c = u[2], f = zn(o, e.visibledatacolumn), m = f[0], d = f[2], p = e.luckysheet_cell_selected_extend_index[0], g = e.luckysheet_cell_selected_extend_index[1], y = (b = e.luckysheet_select_save) == null ? void 0 : b[e.luckysheet_select_save.length - 1];
30895
30971
  if (y && y.top != null && y.left != null && y.height != null && y.width != null && y.row_focus != null && y.column_focus != null) {
30896
30972
  let _ = y.row[0], T = y.row[1], C = y.column[0], $ = y.column[1];
@@ -30962,7 +31038,7 @@ function v1(e, t, n) {
30962
31038
  Q && (Q.style.display = "none");
30963
31039
  }
30964
31040
  }
30965
- function Yh(e, t, n) {
31041
+ function Wh(e, t, n) {
30966
31042
  let r = e.length;
30967
31043
  const a = Et(n).pivotTable, { title: l } = a;
30968
31044
  for (let o = 0; o < e.length; o += 1)
@@ -30974,7 +31050,7 @@ function Yh(e, t, n) {
30974
31050
  }
30975
31051
  return t ? l + (r + 1) : `Sheet${r + 1}`;
30976
31052
  }
30977
- function Vh(e) {
31053
+ function Gh(e) {
30978
31054
  let t;
30979
31055
  e.indexOf("rgba") > -1 ? t = e.replace("rgba(", "").replace(")", "").split(",") : t = e.replace("rgb(", "").replace(")", "").split(",");
30980
31056
  const n = Number(t[0]), r = Number(t[1]), a = Number(t[2]);
@@ -30995,7 +31071,7 @@ function qt(e) {
30995
31071
  l = r(t[o]), a += l * 26 ** (n - o - 1);
30996
31072
  return a === 0 ? NaN : a - 1;
30997
31073
  }
30998
- function Wh(e) {
31074
+ function jh(e) {
30999
31075
  return typeof e != "string" ? e : e.replace(/<script>/g, "&lt;script&gt;").replace(/<\/script>/, "&lt;/script&gt;");
31000
31076
  }
31001
31077
  function Cr(e) {
@@ -31019,7 +31095,7 @@ function Ma(e, t) {
31019
31095
  const n = Ee(e, t);
31020
31096
  return h.isNil(n) ? null : e.luckysheetfile[n];
31021
31097
  }
31022
- function _1(e) {
31098
+ function C1(e) {
31023
31099
  const t = /* @__PURE__ */ new Date(), n = t.getFullYear();
31024
31100
  let r = t.getMonth(), a = t.getDate(), l = t.getHours(), o = t.getMinutes(), i = t.getSeconds();
31025
31101
  r += 1, r < 10 && (r = `0${r}`), a < 10 && (a = `0${a}`), l < 10 && (l = `0${l}`), o < 10 && (o = `0${o}`), i < 10 && (i = `0${i}`);
@@ -31032,10 +31108,10 @@ function fs(e, t) {
31032
31108
  return typeof a < "u" ? a : n;
31033
31109
  });
31034
31110
  }
31035
- function T1(e) {
31111
+ function N1(e) {
31036
31112
  return e.replace("~*", "\\*").replace("~?", "\\?").replace(".", "\\.").replace("*", ".*").replace("?", ".");
31037
31113
  }
31038
- function $1(e) {
31114
+ function S1(e) {
31039
31115
  let a = "";
31040
31116
  for (; e >= 0; )
31041
31117
  a = String.fromCharCode(e % 26 + 97) + a, e = Math.floor(e / 26) - 1;
@@ -31075,10 +31151,10 @@ function Du(e, t) {
31075
31151
  return !0;
31076
31152
  }) && (h.isUndefined(e.isFlvReadOnly) ? !0 : e.isFlvReadOnly);
31077
31153
  }
31078
- function Gh(e) {
31154
+ function Xh(e) {
31079
31155
  return /^[a-zA-Z]\d+$/.test(e);
31080
31156
  }
31081
- function jh(e) {
31157
+ function Zh(e) {
31082
31158
  const t = document.createElement("div");
31083
31159
  t.innerHTML = e;
31084
31160
  const n = t.querySelectorAll("span");
@@ -31143,7 +31219,7 @@ function Fu(e, t, n) {
31143
31219
  }
31144
31220
  }), s || u;
31145
31221
  }
31146
- function Xh(e, t) {
31222
+ function Kh(e, t) {
31147
31223
  var l;
31148
31224
  let n = "";
31149
31225
  const r = e.includes("."), a = t;
@@ -31163,7 +31239,7 @@ const Zt = new Error("invalid params"), _o = new Error("sheet not found"), To =
31163
31239
  a != null && Bn(a) && t.push({ r: n, c: r, v: a });
31164
31240
  }
31165
31241
  return t;
31166
- }, C1 = (e, t, n, r) => {
31242
+ }, k1 = (e, t, n, r) => {
31167
31243
  const a = h.maxBy(e, "r"), l = h.maxBy(e, "c");
31168
31244
  let o = ((a == null ? void 0 : a.r) ?? 0) + 1, i = ((l == null ? void 0 : l.c) ?? 0) + 1;
31169
31245
  t != null && n != null && t > 0 && n > 0 && (o = Math.max(o, t), i = Math.max(i, n));
@@ -31188,11 +31264,11 @@ function At(e, t = {}) {
31188
31264
  throw _o;
31189
31265
  return r;
31190
31266
  }
31191
- function N1(e, t = {}) {
31267
+ function A1(e, t = {}) {
31192
31268
  const n = At(e, t);
31193
31269
  return { ...n, celldata: To(n.data) };
31194
31270
  }
31195
- function S1(e, t, n, r = {}) {
31271
+ function E1(e, t, n, r = {}) {
31196
31272
  var s;
31197
31273
  if (!h.isNumber(t) || !h.isNumber(n))
31198
31274
  throw new Error("row or column cannot be null or undefined");
@@ -31270,7 +31346,7 @@ function Lu(e, t, n, r, a, l = {}, o) {
31270
31346
  r.toString().substr(0, 1) === "=" || r.toString().substr(0, 5) === "<span" ? yo(e, t, n, a, r) : (Ft(e, t, n), It(e, t, n, u, r));
31271
31347
  o && ((m = (f = e.hooks).onLocalCellEdit) == null || m.call(f), e.hooks.afterUpdateCell && ((p = (d = e.hooks).afterUpdateCell) == null || p.call(d, t, n, null, r)));
31272
31348
  }
31273
- function Zh(e, t, n, r) {
31349
+ function Qh(e, t, n, r) {
31274
31350
  e.celldata || (e.celldata = []);
31275
31351
  const a = e.celldata.findIndex((u) => u.r === t && u.c === n);
31276
31352
  if (r == null || typeof r == "string" && r.length === 0 || r instanceof Object && !Bn(r)) {
@@ -31287,12 +31363,12 @@ function Zh(e, t, n, r) {
31287
31363
  const i = { r: t, c: n, v: o };
31288
31364
  a >= 0 ? e.celldata[a] = i : e.celldata.push(i);
31289
31365
  }
31290
- function k1(e, t, n, r, a = {}) {
31366
+ function M1(e, t, n, r, a = {}) {
31291
31367
  if (!h.isNumber(t) || !h.isNumber(n))
31292
31368
  throw new Error("row or column cannot be null or undefined");
31293
31369
  const l = At(e, a), o = a.id ?? l.id ?? e.currentSheetId, { data: i } = l;
31294
31370
  if (!i) {
31295
- if (Zh(l, t, n, r), r == null || r.toString().length === 0)
31371
+ if (Qh(l, t, n, r), r == null || r.toString().length === 0)
31296
31372
  Ft(e, t, n, o);
31297
31373
  else if (r instanceof Object)
31298
31374
  r.f != null ? On(e, t, n, o) : Ft(e, t, n, o);
@@ -31314,14 +31390,14 @@ function k1(e, t, n, r, a = {}) {
31314
31390
  const u = r.toString();
31315
31391
  u.substr(0, 1) === "=" || u.substr(0, 5) === "<span" ? (It(e, t, n, i, { f: u }), On(e, t, n, o)) : (Ft(e, t, n, o), It(e, t, n, i, r));
31316
31392
  }
31317
- function A1(e, t, n, r = {}) {
31393
+ function R1(e, t, n, r = {}) {
31318
31394
  var o, i;
31319
31395
  if (!h.isNumber(t) || !h.isNumber(n))
31320
31396
  throw new Error("row or column cannot be null or undefined");
31321
31397
  const a = At(e, r), l = (i = (o = a.data) == null ? void 0 : o[t]) == null ? void 0 : i[n];
31322
31398
  l && h.isPlainObject(l) && (delete l.m, delete l.v, l.f != null && (delete l.f, Ft(e, t, n, a.id), delete l.spl));
31323
31399
  }
31324
- function E1(e, t, n, r, a, l = {}) {
31400
+ function x1(e, t, n, r, a, l = {}) {
31325
31401
  var c;
31326
31402
  if (!h.isNumber(t) || !h.isNumber(n))
31327
31403
  throw new Error("row or column cannot be null or undefined");
@@ -31352,12 +31428,12 @@ function E1(e, t, n, r, a, l = {}) {
31352
31428
  u[r] = a;
31353
31429
  i[t][n] = u, o.config = s, e.config = s;
31354
31430
  }
31355
- function M1(e, t, n, r) {
31431
+ function I1(e, t, n, r) {
31356
31432
  Ke.copyRange = t, Ke.applyRange = n, Ke.direction = r;
31357
31433
  const a = Iu(e);
31358
31434
  !a[0] && !a[1] && !a[2] && !a[3] && !a[4] && !a[5] && !a[6] ? Ke.applyType = "0" : Ke.applyType = "1", qu(e);
31359
31435
  }
31360
- function R1(e, t, n, r = {}) {
31436
+ function q1(e, t, n, r = {}) {
31361
31437
  const a = At(e, r), o = {
31362
31438
  row: "rangeRow",
31363
31439
  column: "rangeColumn",
@@ -31372,12 +31448,12 @@ function R1(e, t, n, r = {}) {
31372
31448
  }
31373
31449
  };
31374
31450
  }
31375
- function x1(e, t, n, r, a, l = {}) {
31451
+ function D1(e, t, n, r, a, l = {}) {
31376
31452
  if (!["row", "column"].includes(t) || !h.isNumber(n) || !h.isNumber(r) || !["lefttop", "rightbottom"].includes(a))
31377
31453
  throw Zt;
31378
31454
  const o = At(e, l);
31379
31455
  try {
31380
- Qm(e, {
31456
+ Jm(e, {
31381
31457
  type: t,
31382
31458
  index: n,
31383
31459
  count: r,
@@ -31388,13 +31464,13 @@ function x1(e, t, n, r, a, l = {}) {
31388
31464
  console.error(i);
31389
31465
  }
31390
31466
  }
31391
- function I1(e, t, n, r, a = {}) {
31467
+ function O1(e, t, n, r, a = {}) {
31392
31468
  if (!["row", "column"].includes(t) || !h.isNumber(n) || !h.isNumber(r))
31393
31469
  throw Zt;
31394
31470
  const l = At(e, a);
31395
31471
  Tu(e, { type: t, start: n, end: r, id: l.id });
31396
31472
  }
31397
- function q1(e, t, n) {
31473
+ function F1(e, t, n) {
31398
31474
  if (!["row", "column"].includes(n))
31399
31475
  throw Zt;
31400
31476
  if (!e || !e.config) return;
@@ -31413,7 +31489,7 @@ function q1(e, t, n) {
31413
31489
  }
31414
31490
  e.luckysheetfile[r].config = e.config;
31415
31491
  }
31416
- function D1(e, t, n) {
31492
+ function L1(e, t, n) {
31417
31493
  if (!["row", "column"].includes(n))
31418
31494
  throw Zt;
31419
31495
  if (!e || !e.config) return;
@@ -31432,7 +31508,7 @@ function D1(e, t, n) {
31432
31508
  }
31433
31509
  e.luckysheetfile[r].config = e.config;
31434
31510
  }
31435
- function Kh(e, t, n = {}, r = !1) {
31511
+ function Jh(e, t, n = {}, r = !1) {
31436
31512
  if (!h.isPlainObject(t))
31437
31513
  throw Zt;
31438
31514
  const a = At(e, n), l = a.config || {};
@@ -31448,7 +31524,7 @@ function Kh(e, t, n = {}, r = !1) {
31448
31524
  }
31449
31525
  }), a.config = l, e.currentSheetId === a.id && (e.config = l);
31450
31526
  }
31451
- function O1(e, t, n = {}, r = !1) {
31527
+ function B1(e, t, n = {}, r = !1) {
31452
31528
  if (!h.isPlainObject(t))
31453
31529
  throw Zt;
31454
31530
  const a = At(e, n), l = a.config || {};
@@ -31464,7 +31540,7 @@ function O1(e, t, n = {}, r = !1) {
31464
31540
  }
31465
31541
  }), a.config = l, e.currentSheetId === a.id && (e.config = l);
31466
31542
  }
31467
- function Qh(e, t, n = {}) {
31543
+ function ep(e, t, n = {}) {
31468
31544
  if (!h.isArray(t) || t.length === 0)
31469
31545
  throw Zt;
31470
31546
  const l = (At(e, n).config || {}).rowlen || {}, o = {};
@@ -31475,7 +31551,7 @@ function Qh(e, t, n = {}) {
31475
31551
  }
31476
31552
  }), o;
31477
31553
  }
31478
- function F1(e, t, n = {}) {
31554
+ function P1(e, t, n = {}) {
31479
31555
  if (!h.isArray(t) || t.length === 0)
31480
31556
  throw Zt;
31481
31557
  const l = (At(e, n).config || {}).columnlen || {}, o = {};
@@ -31486,8 +31562,8 @@ function F1(e, t, n = {}) {
31486
31562
  }
31487
31563
  }), o;
31488
31564
  }
31489
- function Jh(e, t, n, r = !1, a = void 0, l = void 0) {
31490
- qm(
31565
+ function tp(e, t, n, r = !1, a = void 0, l = void 0) {
31566
+ Dm(
31491
31567
  e,
31492
31568
  t,
31493
31569
  n,
@@ -31496,22 +31572,22 @@ function Jh(e, t, n, r = !1, a = void 0, l = void 0) {
31496
31572
  l
31497
31573
  );
31498
31574
  }
31499
- function L1(e, t = {}) {
31575
+ function H1(e, t = {}) {
31500
31576
  const n = At(e, t);
31501
- Dm(e, n.id);
31577
+ Om(e, n.id);
31502
31578
  }
31503
- function B1(e, t) {
31504
- Om(e, t);
31579
+ function U1(e, t) {
31580
+ Fm(e, t);
31505
31581
  }
31506
- function P1(e, t = {}) {
31582
+ function z1(e, t = {}) {
31507
31583
  const n = At(e, t);
31508
31584
  e.currentSheetId = n.id;
31509
31585
  }
31510
- function H1(e, t, n = {}) {
31586
+ function Y1(e, t, n = {}) {
31511
31587
  const r = At(e, n);
31512
31588
  r.name = t;
31513
31589
  }
31514
- function ep(e, t) {
31590
+ function np(e, t) {
31515
31591
  var n;
31516
31592
  (n = e.luckysheetfile) == null || n.forEach((r) => {
31517
31593
  r.id in t && (r.order = t[r.id]);
@@ -31519,7 +31595,7 @@ function ep(e, t) {
31519
31595
  r.order = a;
31520
31596
  });
31521
31597
  }
31522
- function U1(e, t, n, r) {
31598
+ function V1(e, t, n, r) {
31523
31599
  if (r.scrollLeft != null) {
31524
31600
  if (!h.isNumber(r.scrollLeft))
31525
31601
  throw Zt;
@@ -31541,17 +31617,17 @@ function U1(e, t, n, r) {
31541
31617
  n && (n.scrollTop = a);
31542
31618
  }
31543
31619
  }
31544
- function tp(e) {
31620
+ function rp(e) {
31545
31621
  return Number.isFinite(Number(e)) && !Number.isNaN(Number(e));
31546
31622
  }
31547
- function np(e) {
31623
+ function ap(e) {
31548
31624
  return /^0x?[a-fA-F0-9]+$/.test(e);
31549
31625
  }
31550
31626
  const ds = "#f3f3f3", ms = 5;
31551
31627
  function Bu(e) {
31552
31628
  return typeof e != "string" ? !1 : ["price", "fully_diluted_value"].includes(e) || e.toLowerCase().includes("usd") || e.toLowerCase().includes("price_in");
31553
31629
  }
31554
- const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31630
+ const Pu = `$#,##0.${"0".repeat(2)}`, op = (e, t, n, r) => {
31555
31631
  var l;
31556
31632
  if (!n.length) return e;
31557
31633
  const a = n.map((o) => {
@@ -31571,7 +31647,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31571
31647
  {},
31572
31648
  !1
31573
31649
  ), e + n.length;
31574
- }, ap = ({
31650
+ }, lp = ({
31575
31651
  row: e,
31576
31652
  column: t,
31577
31653
  newValue: n,
@@ -31589,7 +31665,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31589
31665
  return;
31590
31666
  }
31591
31667
  let i = e;
31592
- o != null && o.length && (i = rp(
31668
+ o != null && o.length && (i = op(
31593
31669
  e,
31594
31670
  t,
31595
31671
  o,
@@ -31656,7 +31732,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31656
31732
  }
31657
31733
  }
31658
31734
  } else {
31659
- if (op({
31735
+ if (ip({
31660
31736
  row: i,
31661
31737
  column: t,
31662
31738
  apiData: r,
@@ -31717,7 +31793,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31717
31793
  var l, o, i;
31718
31794
  const r = (o = (l = n.current) == null ? void 0 : l.getSheet()) == null ? void 0 : o.data, a = (i = r == null ? void 0 : r[e]) == null ? void 0 : i[t];
31719
31795
  return a == null ? {} : typeof a == "object" ? { ...a } : { v: a };
31720
- }, $o = (e) => tp(e) && !np(e), Hu = (e) => Array.isArray(e) ? e.map((t) => ({ ...t })) : e, mr = (e, t, n) => {
31796
+ }, $o = (e) => rp(e) && !ap(e), Hu = (e) => Array.isArray(e) ? e.map((t) => ({ ...t })) : e, mr = (e, t, n) => {
31721
31797
  const r = $o(e);
31722
31798
  if (n && r && Bu(n)) {
31723
31799
  const { s: i, ...u } = t || {};
@@ -31742,7 +31818,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31742
31818
  if (!e || typeof e != "object") return e ?? {};
31743
31819
  const t = e.ct;
31744
31820
  return !t || !Array.isArray(t.s) ? { ...e } : { ...e, ct: { ...t, s: Hu(t.s) } };
31745
- }, op = ({
31821
+ }, ip = ({
31746
31822
  row: e,
31747
31823
  column: t,
31748
31824
  apiData: n,
@@ -31770,7 +31846,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31770
31846
  {},
31771
31847
  !0
31772
31848
  ), (d = r.current) == null || d.clearCellError(e, t), !0;
31773
- }, lp = (e) => e !== null && typeof e == "object" && !Array.isArray(e) && (e == null ? void 0 : e.responseType) === "smart-contract", ip = async ({
31849
+ }, sp = (e) => e !== null && typeof e == "object" && !Array.isArray(e) && (e == null ? void 0 : e.responseType) === "smart-contract", up = async ({
31774
31850
  result: e,
31775
31851
  handleSmartContractQuery: t,
31776
31852
  sheetEditorRef: n,
@@ -31785,7 +31861,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31785
31861
  row: r,
31786
31862
  column: a,
31787
31863
  newValue: l,
31788
- formulaResponseUiSync: ap
31864
+ formulaResponseUiSync: lp
31789
31865
  }, { callSignature: i } = e;
31790
31866
  await t(o)(i);
31791
31867
  }, gs = (e, t, n) => {
@@ -31795,7 +31871,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31795
31871
  } catch {
31796
31872
  return;
31797
31873
  }
31798
- }, z1 = async ({
31874
+ }, W1 = async ({
31799
31875
  functionCallString: e,
31800
31876
  sheetEditorRef: t,
31801
31877
  dataBlockRow: n,
@@ -31807,9 +31883,9 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31807
31883
  const o = await import("@fileverse-dev/formulajs"), i = e == null ? void 0 : e.match(/^(\w+)\((.*)\)$/);
31808
31884
  if (!i)
31809
31885
  throw new Error(`Invalid function call format: ${e}`);
31810
- const u = i[1].toUpperCase(), s = i[2], f = sp(s).map((m) => {
31886
+ const u = i[1].toUpperCase(), s = i[2], f = cp(s).map((m) => {
31811
31887
  if (Uu(m)) {
31812
- const d = up(m);
31888
+ const d = fp(m);
31813
31889
  return d == null ? void 0 : d.map(
31814
31890
  (g) => gs(t, g == null ? void 0 : g.row, g == null ? void 0 : g.column)
31815
31891
  );
@@ -31826,8 +31902,8 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31826
31902
  });
31827
31903
  if (typeof o[u] == "function") {
31828
31904
  const m = await o[u](...f);
31829
- if (lp(m)) {
31830
- await ip({
31905
+ if (sp(m)) {
31906
+ await up({
31831
31907
  result: m,
31832
31908
  handleSmartContractQuery: a,
31833
31909
  sheetEditorRef: t,
@@ -31848,7 +31924,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, rp = (e, t, n, r) => {
31848
31924
  return;
31849
31925
  }
31850
31926
  };
31851
- function sp(e) {
31927
+ function cp(e) {
31852
31928
  if (!(e != null && e.trim()))
31853
31929
  return [];
31854
31930
  const t = [];
@@ -31911,7 +31987,7 @@ function Co(e) {
31911
31987
  column: a
31912
31988
  };
31913
31989
  }
31914
- function up(e) {
31990
+ function fp(e) {
31915
31991
  if (!Uu(e))
31916
31992
  return null;
31917
31993
  const t = e.split(":"), n = Co(t[0]), r = Co(t[1]);
@@ -31924,7 +32000,7 @@ function up(e) {
31924
32000
  return u;
31925
32001
  }
31926
32002
  export {
31927
- ch as $,
32003
+ fh as $,
31928
32004
  ct as A,
31929
32005
  vn as B,
31930
32006
  Et as C,
@@ -31934,107 +32010,107 @@ export {
31934
32010
  ot as G,
31935
32011
  Ft as H,
31936
32012
  bn as I,
31937
- Ip as J,
32013
+ Dp as J,
31938
32014
  Tr as K,
31939
32015
  It as L,
31940
32016
  Kt as M,
31941
32017
  Xn as N,
31942
- $1 as O,
32018
+ S1 as O,
31943
32019
  wo as P,
31944
- T1 as Q,
32020
+ N1 as Q,
31945
32021
  Lt as R,
31946
- kp as S,
32022
+ Ep as S,
31947
32023
  Ir as T,
31948
32024
  Sa as U,
31949
- Vh as V,
32025
+ Gh as V,
31950
32026
  ut as W,
31951
32027
  du as X,
31952
32028
  Ks as Y,
31953
32029
  Am as Z,
31954
32030
  Ko as _,
31955
32031
  Ee as a,
31956
- Mh as a$,
32032
+ xh as a$,
31957
32033
  uu as a0,
31958
- bp as a1,
32034
+ vp as a1,
31959
32035
  tc as a2,
31960
32036
  or as a3,
31961
- Vg as a4,
32037
+ Gg as a4,
31962
32038
  zn as a5,
31963
32039
  Un as a6,
31964
32040
  At as a7,
31965
32041
  Zt as a8,
31966
- Hm as a9,
32042
+ Um as a9,
31967
32043
  Ss as aA,
31968
- x1 as aB,
31969
- mg as aC,
31970
- U1 as aD,
32044
+ D1 as aB,
32045
+ pg as aC,
32046
+ V1 as aD,
31971
32047
  Er as aE,
31972
- O1 as aF,
31973
- Kh as aG,
31974
- H1 as aH,
31975
- ep as aI,
31976
- D1 as aJ,
31977
- Tp as aK,
31978
- B1 as aL,
32048
+ B1 as aF,
32049
+ Jh as aG,
32050
+ Y1 as aH,
32051
+ np as aI,
32052
+ L1 as aJ,
32053
+ Cp as aK,
32054
+ U1 as aL,
31979
32055
  ws as aM,
31980
- hh as aN,
31981
- Dg as aO,
31982
- Sg as aP,
31983
- Pg as aQ,
31984
- Hg as aR,
31985
- _h as aS,
31986
- Nh as aT,
32056
+ gh as aN,
32057
+ Fg as aO,
32058
+ Ag as aP,
32059
+ Ug as aQ,
32060
+ zg as aR,
32061
+ $h as aS,
32062
+ kh as aT,
31987
32063
  Xt as aU,
31988
- bh as aV,
31989
- yh as aW,
31990
- Gg as aX,
31991
- gh as aY,
31992
- ph as aZ,
31993
- Rg as a_,
32064
+ vh as aV,
32065
+ wh as aW,
32066
+ Xg as aX,
32067
+ bh as aY,
32068
+ yh as aZ,
32069
+ Ig as a_,
31994
32070
  oa as aa,
31995
- E1 as ab,
32071
+ x1 as ab,
31996
32072
  Lu as ac,
31997
- eh as ad,
32073
+ th as ad,
31998
32074
  To as ae,
31999
32075
  la as af,
32000
32076
  Eo as ag,
32001
32077
  cs as ah,
32002
- P1 as ai,
32003
- Jh as aj,
32004
- k1 as ak,
32005
- M1 as al,
32006
- Np as am,
32007
- Cp as an,
32008
- C1 as ao,
32009
- A1 as ap,
32010
- $p as aq,
32011
- I1 as ar,
32012
- L1 as as,
32013
- R1 as at,
32014
- vp as au,
32015
- S1 as av,
32016
- Qh as aw,
32017
- N1 as ax,
32018
- q1 as ay,
32019
- _p as az,
32020
- wp as b,
32078
+ z1 as ai,
32079
+ tp as aj,
32080
+ M1 as ak,
32081
+ I1 as al,
32082
+ kp as am,
32083
+ Sp as an,
32084
+ k1 as ao,
32085
+ R1 as ap,
32086
+ Np as aq,
32087
+ O1 as ar,
32088
+ H1 as as,
32089
+ q1 as at,
32090
+ Tp as au,
32091
+ E1 as av,
32092
+ ep as aw,
32093
+ A1 as ax,
32094
+ F1 as ay,
32095
+ $p as az,
32096
+ _p as b,
32021
32097
  Na as b$,
32022
- qg as b0,
32023
- Ig as b1,
32024
- xg as b2,
32025
- Eg as b3,
32026
- Mg as b4,
32027
- Og as b5,
32028
- Wp as b6,
32098
+ Og as b0,
32099
+ Dg as b1,
32100
+ qg as b2,
32101
+ Rg as b3,
32102
+ xg as b4,
32103
+ Lg as b5,
32104
+ jp as b6,
32029
32105
  yo as b7,
32030
- Cg as b8,
32031
- Zg as b9,
32106
+ Sg as b8,
32107
+ Qg as b9,
32032
32108
  Bs as bA,
32033
- sg as bB,
32109
+ cg as bB,
32034
32110
  xr as bC,
32035
- ug as bD,
32036
- uh as bE,
32037
- ng as bF,
32111
+ fg as bD,
32112
+ ch as bE,
32113
+ ag as bF,
32038
32114
  Ar as bG,
32039
32115
  na as bH,
32040
32116
  hu as bI,
@@ -32042,188 +32118,190 @@ export {
32042
32118
  Sd as bK,
32043
32119
  _a as bL,
32044
32120
  _d as bM,
32045
- Qp as bN,
32046
- Jp as bO,
32047
- Lm as bP,
32121
+ eg as bN,
32122
+ tg as bO,
32123
+ Bm as bP,
32048
32124
  rs as bQ,
32049
- l1 as bR,
32050
- jp as bS,
32051
- i1 as bT,
32052
- $g as bU,
32053
- v1 as bV,
32054
- Xp as bW,
32055
- Kp as bX,
32056
- Zp as bY,
32057
- w1 as bZ,
32058
- pg as b_,
32125
+ s1 as bR,
32126
+ Zp as bS,
32127
+ u1 as bT,
32128
+ Ng as bU,
32129
+ $1 as bV,
32130
+ Kp as bW,
32131
+ Jp as bX,
32132
+ Qp as bY,
32133
+ T1 as bZ,
32134
+ yg as b_,
32059
32135
  Du as ba,
32060
32136
  Id as bb,
32061
32137
  Uo as bc,
32062
- Yp as bd,
32138
+ Wp as bd,
32063
32139
  hn as be,
32064
32140
  Dd as bf,
32065
- kg as bg,
32066
- Up as bh,
32141
+ Eg as bg,
32142
+ Yp as bh,
32067
32143
  Od as bi,
32068
- Ep as bj,
32069
- yg as bk,
32070
- Vp as bl,
32071
- _1 as bm,
32072
- wh as bn,
32073
- vh as bo,
32074
- Th as bp,
32075
- Ag as bq,
32076
- Gp as br,
32077
- Ng as bs,
32144
+ Rp as bj,
32145
+ wg as bk,
32146
+ Gp as bl,
32147
+ C1 as bm,
32148
+ _h as bn,
32149
+ Th as bo,
32150
+ Ch as bp,
32151
+ Mg as bq,
32152
+ Xp as br,
32153
+ kg as bs,
32078
32154
  va as bt,
32079
32155
  zo as bu,
32080
- Hp as bv,
32081
- gg as bw,
32082
- t1 as bx,
32156
+ zp as bv,
32157
+ bg as bw,
32158
+ r1 as bx,
32083
32159
  Qe as by,
32084
32160
  Ge as bz,
32085
32161
  Wu as c,
32086
- Sh as c$,
32162
+ f1 as c$,
32087
32163
  Rm as c0,
32088
32164
  Bn as c1,
32089
- Im as c2,
32090
- Mm as c3,
32091
- ra as c4,
32092
- Yf as c5,
32093
- zf as c6,
32094
- Dp as c7,
32095
- qp as c8,
32096
- fd as c9,
32097
- Is as cA,
32098
- Jg as cB,
32099
- qr as cC,
32100
- Qg as cD,
32101
- tf as cE,
32102
- of as cF,
32103
- im as cG,
32104
- yu as cH,
32105
- jt as cI,
32106
- zp as cJ,
32107
- xp as cK,
32108
- th as cL,
32109
- Pn as cM,
32110
- e1 as cN,
32111
- pu as cO,
32112
- Rp as cP,
32113
- Mp as cQ,
32114
- bo as cR,
32115
- rh as cS,
32116
- nh as cT,
32117
- Ps as cU,
32118
- Hn as cV,
32119
- Nd as cW,
32120
- a1 as cX,
32121
- bd as cY,
32122
- d1 as cZ,
32123
- s1 as c_,
32124
- qm as ca,
32125
- wf as cb,
32126
- Bp as cc,
32127
- mh as cd,
32128
- Xs as ce,
32129
- Bg as cf,
32130
- p1 as cg,
32131
- dg as ch,
32132
- fg as ci,
32133
- cg as cj,
32134
- ag as ck,
32135
- b1 as cl,
32136
- Ug as cm,
32137
- vg as cn,
32138
- Tu as co,
32139
- Dm as cp,
32140
- ga as cq,
32141
- Vt as cr,
32142
- hg as cs,
32143
- zg as ct,
32144
- Cr as cu,
32145
- Wh as cv,
32146
- ln as cw,
32147
- Lg as cx,
32148
- Fg as cy,
32149
- po as cz,
32165
+ xm as c2,
32166
+ qm as c3,
32167
+ Mm as c4,
32168
+ ra as c5,
32169
+ Yf as c6,
32170
+ zf as c7,
32171
+ Fp as c8,
32172
+ Op as c9,
32173
+ po as cA,
32174
+ Is as cB,
32175
+ t1 as cC,
32176
+ qr as cD,
32177
+ e1 as cE,
32178
+ tf as cF,
32179
+ of as cG,
32180
+ im as cH,
32181
+ yu as cI,
32182
+ jt as cJ,
32183
+ Vp as cK,
32184
+ qp as cL,
32185
+ nh as cM,
32186
+ Pn as cN,
32187
+ n1 as cO,
32188
+ pu as cP,
32189
+ Ip as cQ,
32190
+ xp as cR,
32191
+ bo as cS,
32192
+ ah as cT,
32193
+ rh as cU,
32194
+ Ps as cV,
32195
+ Hn as cW,
32196
+ Nd as cX,
32197
+ l1 as cY,
32198
+ bd as cZ,
32199
+ p1 as c_,
32200
+ fd as ca,
32201
+ Dm as cb,
32202
+ wf as cc,
32203
+ Hp as cd,
32204
+ ph as ce,
32205
+ Xs as cf,
32206
+ Hg as cg,
32207
+ b1 as ch,
32208
+ hg as ci,
32209
+ mg as cj,
32210
+ dg as ck,
32211
+ lg as cl,
32212
+ _1 as cm,
32213
+ Yg as cn,
32214
+ Tg as co,
32215
+ Tu as cp,
32216
+ Om as cq,
32217
+ ga as cr,
32218
+ Vt as cs,
32219
+ gg as ct,
32220
+ Vg as cu,
32221
+ Cr as cv,
32222
+ jh as cw,
32223
+ ln as cx,
32224
+ Pg as cy,
32225
+ Bg as cz,
32150
32226
  mo as d,
32151
- ic as d$,
32152
- kh as d0,
32153
- h1 as d1,
32154
- f1 as d2,
32155
- c1 as d3,
32227
+ Qs as d$,
32228
+ Ah as d0,
32229
+ Eh as d1,
32230
+ y1 as d2,
32231
+ h1 as d3,
32156
32232
  m1 as d4,
32157
- u1 as d5,
32158
- Yg as d6,
32159
- Qm as d7,
32160
- On as d8,
32161
- Pf as d9,
32162
- Bm as dA,
32163
- Sr as dB,
32164
- tg as dC,
32165
- Sp as dD,
32166
- rg as dE,
32167
- bg as dF,
32168
- af as dG,
32169
- jg as dH,
32170
- wg as dI,
32171
- mm as dJ,
32172
- og as dK,
32173
- ca as dL,
32174
- g1 as dM,
32175
- y1 as dN,
32176
- Wg as dO,
32177
- r1 as dP,
32178
- Op as dQ,
32179
- wu as dR,
32180
- yp as dS,
32181
- Gm as dT,
32182
- So as dU,
32183
- Ao as dV,
32184
- Ap as dW,
32185
- Fp as dX,
32186
- Lp as dY,
32187
- Qs as dZ,
32188
- sc as d_,
32189
- ho as da,
32190
- Eh as db,
32191
- o1 as dc,
32192
- Xg as dd,
32193
- Bf as de,
32194
- Oo as df,
32195
- ig as dg,
32196
- ya as dh,
32197
- Dt as di,
32198
- Vs as dj,
32199
- Kn as dk,
32200
- pp as dl,
32201
- Kg as dm,
32202
- ef as dn,
32203
- Rt as dp,
32204
- eg as dq,
32205
- kr as dr,
32206
- js as ds,
32207
- Yd as dt,
32208
- sh as du,
32209
- n1 as dv,
32210
- fs as dw,
32211
- Pp as dx,
32212
- _g as dy,
32213
- Tg as dz,
32214
- z1 as e,
32215
- gp as e0,
32216
- hp as e1,
32217
- np as e2,
32218
- sp as e3,
32219
- Uu as e4,
32220
- up as e5,
32221
- ma as e6,
32222
- Co as e7,
32223
- lp as e8,
32224
- ip as e9,
32225
- Pu as ea,
32226
- ap as f,
32233
+ g1 as d5,
32234
+ d1 as d6,
32235
+ Wg as d7,
32236
+ Jm as d8,
32237
+ On as d9,
32238
+ Cg as dA,
32239
+ Pm as dB,
32240
+ Sr as dC,
32241
+ rg as dD,
32242
+ Ap as dE,
32243
+ og as dF,
32244
+ vg as dG,
32245
+ af as dH,
32246
+ Zg as dI,
32247
+ _g as dJ,
32248
+ mm as dK,
32249
+ ig as dL,
32250
+ ca as dM,
32251
+ w1 as dN,
32252
+ v1 as dO,
32253
+ jg as dP,
32254
+ o1 as dQ,
32255
+ Lp as dR,
32256
+ wu as dS,
32257
+ wp as dT,
32258
+ c1 as dU,
32259
+ jm as dV,
32260
+ So as dW,
32261
+ Ao as dX,
32262
+ Mp as dY,
32263
+ Bp as dZ,
32264
+ Pp as d_,
32265
+ Pf as da,
32266
+ ho as db,
32267
+ Rh as dc,
32268
+ i1 as dd,
32269
+ Kg as de,
32270
+ Bf as df,
32271
+ Oo as dg,
32272
+ ug as dh,
32273
+ ya as di,
32274
+ Dt as dj,
32275
+ Vs as dk,
32276
+ Kn as dl,
32277
+ yp as dm,
32278
+ Jg as dn,
32279
+ ef as dp,
32280
+ Rt as dq,
32281
+ ng as dr,
32282
+ kr as ds,
32283
+ js as dt,
32284
+ Yd as du,
32285
+ uh as dv,
32286
+ a1 as dw,
32287
+ fs as dx,
32288
+ Up as dy,
32289
+ $g as dz,
32290
+ W1 as e,
32291
+ sc as e0,
32292
+ ic as e1,
32293
+ bp as e2,
32294
+ gp as e3,
32295
+ ap as e4,
32296
+ cp as e5,
32297
+ Uu as e6,
32298
+ fp as e7,
32299
+ ma as e8,
32300
+ Co as e9,
32301
+ sp as ea,
32302
+ up as eb,
32303
+ Pu as ec,
32304
+ lp as f,
32227
32305
  bs as g,
32228
32306
  Nf as h,
32229
32307
  sr as i,
@@ -32231,13 +32309,13 @@ export {
32231
32309
  rt as k,
32232
32310
  Se as l,
32233
32311
  su as m,
32234
- lg as n,
32235
- zm as o,
32312
+ sg as n,
32313
+ Ym as o,
32236
32314
  mu as p,
32237
32315
  Ys as q,
32238
32316
  fo as r,
32239
32317
  lm as s,
32240
- F1 as t,
32318
+ P1 as t,
32241
32319
  tn as u,
32242
32320
  cu as v,
32243
32321
  Vi as w,