@fileverse-dev/dsheet 3.0.1-yjs-13 → 3.0.1-yjs-14

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.
@@ -4,8 +4,8 @@ var Xe = (e, t, n) => Yu(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import h, { isPlainObject as Mi } from "lodash";
5
5
  import Ne from "dayjs";
6
6
  import * as jr from "@fileverse-dev/formulajs";
7
- import { F as Vu } from "./crypto-constants-CqpCRs86.js";
8
- var Wu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
+ import { F as Wu } from "./crypto-constants-CqpCRs86.js";
8
+ var Vu = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function bs(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
11
  }
@@ -629,7 +629,7 @@ var ks = { exports: {} };
629
629
  (function(e) {
630
630
  (function(t, n) {
631
631
  e.exports ? e.exports = n() : t.numeral = n();
632
- })(Wu, function() {
632
+ })(Vu, function() {
633
633
  var t, n, r = "2.0.6", a = {}, l = {}, o = {
634
634
  currentLocale: "en",
635
635
  zeroFormat: null,
@@ -1169,7 +1169,7 @@ const Cc = Object.keys(jr), Rs = {
1169
1169
  cannotSelectMultiple: "Cannot select multiple selections"
1170
1170
  },
1171
1171
  functionlist: [
1172
- ...Vu,
1172
+ ...Wu,
1173
1173
  {
1174
1174
  n: "SUMIF",
1175
1175
  t: 0,
@@ -14253,11 +14253,11 @@ Io.Parser = qo;
14253
14253
  function Yc(e, t = 1) {
14254
14254
  return e = e.substring(t, e.length - t), e;
14255
14255
  }
14256
- function Vc(e) {
14256
+ function Wc(e) {
14257
14257
  let t = parseInt(e, 10);
14258
14258
  return isNaN(t) ? t = -1 : t = Math.max(t - 1, -1), t;
14259
14259
  }
14260
- function Wc(e) {
14260
+ function Vc(e) {
14261
14261
  let t = "";
14262
14262
  return e >= 0 && (t = `${e + 1}`), t;
14263
14263
  }
@@ -14288,7 +14288,7 @@ function Da(e) {
14288
14288
  const o = t == null ? null : e.slice(0, t.length).replace(/^'|'$/g, "").replace(/''/g, "'");
14289
14289
  return [
14290
14290
  {
14291
- index: Vc(l),
14291
+ index: Wc(l),
14292
14292
  label: l,
14293
14293
  isAbsolute: a === "$"
14294
14294
  },
@@ -14301,7 +14301,7 @@ function Da(e) {
14301
14301
  ];
14302
14302
  }
14303
14303
  function Bi(e, t) {
14304
- const n = (e.isAbsolute ? "$" : "") + Wc(e.index);
14304
+ const n = (e.isAbsolute ? "$" : "") + Vc(e.index);
14305
14305
  return (t.isAbsolute ? "$" : "") + jc(t.index) + n;
14306
14306
  }
14307
14307
  function Qc(e) {
@@ -15326,7 +15326,7 @@ function Cf(e, t) {
15326
15326
  function Nf(e) {
15327
15327
  return `normal normal normal ${e}pt "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif`;
15328
15328
  }
15329
- function Vi(e, t, n) {
15329
+ function Wi(e, t, n) {
15330
15330
  if (h.isPlainObject(e)) {
15331
15331
  const r = [];
15332
15332
  e.it === "0" || e.it === 0 || h.isNil(e.it) ? r.push("normal") : r.push("italic"), r.push("normal"), e.bl === "0" || e.bl === 0 || h.isNil(e.bl) ? r.push("normal") : r.push("bold"), e.fs ? r.push(`${Math.ceil(e.fs)}pt`) : r.push(`${t}pt`);
@@ -15337,7 +15337,7 @@ function Vi(e, t, n) {
15337
15337
  a = `${l[0]},${a}`;
15338
15338
  else {
15339
15339
  let o = null;
15340
- n && (Vs(e.ff).num ? o = l[parseInt(e.ff, 10)] : (o = e.ff, o = o.replace(/"/g, "").replace(/'/g, ""), o.indexOf(" ") > -1 && (o = `"${o}"`))), a = `${o},${a}`;
15340
+ n && (Ws(e.ff).num ? o = l[parseInt(e.ff, 10)] : (o = e.ff, o = o.replace(/"/g, "").replace(/'/g, ""), o.indexOf(" ") > -1 && (o = `"${o}"`))), a = `${o},${a}`;
15341
15341
  }
15342
15342
  }
15343
15343
  return `${r.join(" ")} ${a}`;
@@ -15416,14 +15416,14 @@ function Ys(e, t, n, r, a) {
15416
15416
  const K = e.ct.s;
15417
15417
  let le = 0;
15418
15418
  for (let F = 0; F < K.length; F += 1) {
15419
- const J = K[F], j = Vi(J, n.defaultFontSize, a), { fc: Y } = J, { cl: O } = J, { un: $e } = J, ae = !!((M = J == null ? void 0 : J.link) != null && M.linkAddress);
15419
+ const J = K[F], j = Wi(J, n.defaultFontSize, a), { fc: Y } = J, { cl: O } = J, { un: $e } = J, ae = !!((M = J == null ? void 0 : J.link) != null && M.linkAddress);
15420
15420
  let { v: G } = J;
15421
15421
  const { fs: Z } = J;
15422
15422
  G = G.replace(/\r\n/g, "_x000D_").replace(/&#13;&#10;/g, "_x000D_").replace(/\r/g, "_x000D_").replace(/\n/g, "_x000D_");
15423
- const V = G.split("_x000D_");
15424
- for (let ge = 0; ge < V.length; ge += 1) {
15425
- const we = V[ge];
15426
- if (we === "" && ge !== V.length - 1)
15423
+ const W = G.split("_x000D_");
15424
+ for (let ge = 0; ge < W.length; ge += 1) {
15425
+ const we = W[ge];
15426
+ if (we === "" && ge !== W.length - 1)
15427
15427
  N.push({
15428
15428
  fontset: j,
15429
15429
  fc: Y || sr.cellText,
@@ -15463,7 +15463,7 @@ function Ys(e, t, n, r, a) {
15463
15463
  });
15464
15464
  }
15465
15465
  }
15466
- ge !== V.length - 1 && (N.push({
15466
+ ge !== W.length - 1 && (N.push({
15467
15467
  fontset: j,
15468
15468
  fc: Y || sr.cellText,
15469
15469
  cl: O || 0,
@@ -15477,7 +15477,7 @@ function Ys(e, t, n, r, a) {
15477
15477
  }
15478
15478
  $ = !0;
15479
15479
  } else {
15480
- if (v = Vi(e, n.defaultFontSize, a), t.font = v, _ = Rt(e, "cl"), T = Rt(e, "un"), C = Rt(e, "fs"), e instanceof Object ? (S = e.m, h.isNil(S) && (S = e.v)) : S = e, h.isEmpty(S))
15480
+ if (v = Wi(e, n.defaultFontSize, a), t.font = v, _ = Rt(e, "cl"), T = Rt(e, "un"), C = Rt(e, "fs"), e instanceof Object ? (S = e.m, h.isNil(S) && (S = e.v)) : S = e, h.isEmpty(S))
15481
15481
  return null;
15482
15482
  const K = (z = e == null ? void 0 : e.ct) == null ? void 0 : z.fa;
15483
15483
  if (h.isString(S) && h.isString(K) && (S = $f(
@@ -15499,13 +15499,13 @@ function Ys(e, t, n, r, a) {
15499
15499
  let ae = null;
15500
15500
  for (let G = 0; G < N.length; G += 1) {
15501
15501
  const Z = N[G];
15502
- let V = Z.v, ge = Z.v;
15503
- if (Z.wrap === !0 && (V = "M", ge = "", !h.isNil(ae) && ae.wrap !== !0 && G < N.length - 1)) {
15502
+ let W = Z.v, ge = Z.v;
15503
+ if (Z.wrap === !0 && (W = "M", ge = "", !h.isNil(ae) && ae.wrap !== !0 && G < N.length - 1)) {
15504
15504
  Y.push(J), J = 0, F += 1, ae = Z;
15505
15505
  continue;
15506
15506
  }
15507
15507
  const we = En(
15508
- V,
15508
+ W,
15509
15509
  t,
15510
15510
  n,
15511
15511
  Z.fontset
@@ -15531,9 +15531,9 @@ function Ys(e, t, n, r, a) {
15531
15531
  S = S.toString();
15532
15532
  let Z = [];
15533
15533
  S.length > 1 ? Z = S.split("") : Z.push(S);
15534
- const V = En(Z[0], t, n).width;
15534
+ const W = En(Z[0], t, n).width;
15535
15535
  for (let ge = 0; ge < Z.length; ge += 1) {
15536
- const we = V + c, q = G + f;
15536
+ const we = W + c, q = G + f;
15537
15537
  J += q, p === "2" && J > o && !h.isNil(j[F]) && (Y.push(J - q), J = q, F += 1), ge === Z.length - 1 && Y.push(J), h.isNil(j[F]) && (j[F] = []), j[F].push({
15538
15538
  content: Z[ge],
15539
15539
  style: v,
@@ -15550,21 +15550,21 @@ function Ys(e, t, n, r, a) {
15550
15550
  const O = [];
15551
15551
  for (let ae = 0; ae < Y.length; ae += 1) {
15552
15552
  const G = Y[ae], Z = j[ae];
15553
- let V = 0;
15553
+ let W = 0;
15554
15554
  for (let ge = 0; ge < Z.length; ge += 1) {
15555
15555
  const we = Z[ge];
15556
- V = Math.max(V, we.width);
15556
+ W = Math.max(W, we.width);
15557
15557
  }
15558
- O.push(V), K += V, le = Math.max(le, G);
15558
+ O.push(W), K += W, le = Math.max(le, G);
15559
15559
  }
15560
15560
  if (w.type = "verticalWrap", w.textWidthAll = K, w.textHeightAll = le, i === "onlyWidth")
15561
15561
  return w;
15562
15562
  let $e = 0;
15563
15563
  for (let ae = 0; ae < Y.length; ae += 1) {
15564
- const G = Y[ae], Z = O[ae], V = j[ae];
15564
+ const G = Y[ae], Z = O[ae], W = j[ae];
15565
15565
  let ge = 0;
15566
- for (let we = 0; we < V.length; we += 1) {
15567
- const q = V[we];
15566
+ for (let we = 0; we < W.length; we += 1) {
15567
+ const q = W[we];
15568
15568
  let A = c + $e;
15569
15569
  m === "0" ? A = l / 2 + $e - K / 2 + c * Y.length : m === "2" && (A = l + $e - K + c);
15570
15570
  let P = o - f + ge - G;
@@ -15586,12 +15586,12 @@ function Ys(e, t, n, r, a) {
15586
15586
  let le = 0, F = 0, J = 0, j = 0;
15587
15587
  const Y = {};
15588
15588
  w.rotate = y, y = Math.abs(y);
15589
- let O = 0, $e, ae, G, Z, V = 1, ge = null, we = null;
15589
+ let O = 0, $e, ae, G, Z, W = 1, ge = null, we = null;
15590
15590
  if ($)
15591
- for (; V <= N.length; ) {
15592
- const ee = N.slice(O, V);
15591
+ for (; W <= N.length; ) {
15592
+ const ee = N.slice(O, W);
15593
15593
  if (ee[ee.length - 1].wrap === !0) {
15594
- if (O = V, ee.length > 1)
15594
+ if (O = W, ee.length > 1)
15595
15595
  for (let ce = 0; ce < ee.length - 1; ce += 1) {
15596
15596
  const te = ee[ce], Oe = {
15597
15597
  content: te.v,
@@ -15630,7 +15630,7 @@ function Ys(e, t, n, r, a) {
15630
15630
  fs: ce.fs
15631
15631
  });
15632
15632
  }
15633
- j += 1, V += 1;
15633
+ j += 1, W += 1;
15634
15634
  continue;
15635
15635
  }
15636
15636
  let U = 0, ye = 0;
@@ -15646,9 +15646,9 @@ function Ys(e, t, n, r, a) {
15646
15646
  );
15647
15647
  }
15648
15648
  const _e = U * Math.cos(y * Math.PI / 180) + ye * Math.sin(y * Math.PI / 180), me = U * Math.sin(y * Math.PI / 180) + ye * Math.cos(y * Math.PI / 180), ve = ee[ee.length - 1];
15649
- if ((ve.v === " " || Yi(ve.v) === 2) && (we = V), y !== 0)
15649
+ if ((ve.v === " " || Yi(ve.v) === 2) && (we = W), y !== 0)
15650
15650
  if (me + f > o && !h.isNil(Y[j]) && p === "2")
15651
- if (!h.isNil(we) && we < V) {
15651
+ if (!h.isNil(we) && we < W) {
15652
15652
  for (let ce = 0; ce < we - O; ce += 1) {
15653
15653
  const te = ee[ce];
15654
15654
  Y[j].push({
@@ -15665,9 +15665,9 @@ function Ys(e, t, n, r, a) {
15665
15665
  fs: te.fs
15666
15666
  });
15667
15667
  }
15668
- O = we, V = we + 1, j += 1, we = null;
15668
+ O = we, W = we + 1, j += 1, we = null;
15669
15669
  } else {
15670
- O = V - 1;
15670
+ O = W - 1;
15671
15671
  for (let ce = 0; ce < ee.length - 1; ce += 1) {
15672
15672
  const te = ee[ce];
15673
15673
  Y[j].push({
@@ -15686,7 +15686,7 @@ function Ys(e, t, n, r, a) {
15686
15686
  }
15687
15687
  j += 1;
15688
15688
  }
15689
- else if (V === N.length) {
15689
+ else if (W === N.length) {
15690
15690
  h.isNil(Y[j]) && (Y[j] = []);
15691
15691
  for (let ce = 0; ce < ee.length; ce += 1) {
15692
15692
  const te = ee[ce];
@@ -15706,9 +15706,9 @@ function Ys(e, t, n, r, a) {
15706
15706
  }
15707
15707
  break;
15708
15708
  } else
15709
- h.isNil(Y[j]) && (Y[j] = []), V += 1;
15709
+ h.isNil(Y[j]) && (Y[j] = []), W += 1;
15710
15710
  else if (_e + c > l && !h.isNil(Y[j]) && p === "2")
15711
- if (!h.isNil(we) && we < V) {
15711
+ if (!h.isNil(we) && we < W) {
15712
15712
  for (let ce = 0; ce < we - O; ce += 1) {
15713
15713
  const te = ee[ce];
15714
15714
  Y[j].push({
@@ -15725,9 +15725,9 @@ function Ys(e, t, n, r, a) {
15725
15725
  fs: te.fs
15726
15726
  });
15727
15727
  }
15728
- O = we, V = we + 1, j += 1, we = null;
15728
+ O = we, W = we + 1, j += 1, we = null;
15729
15729
  } else {
15730
- O = V - 1;
15730
+ O = W - 1;
15731
15731
  for (let ce = 0; ce < ee.length - 1; ce += 1) {
15732
15732
  const te = ee[ce];
15733
15733
  Y[j].push({
@@ -15746,7 +15746,7 @@ function Ys(e, t, n, r, a) {
15746
15746
  }
15747
15747
  j += 1;
15748
15748
  }
15749
- else if (V === N.length) {
15749
+ else if (W === N.length) {
15750
15750
  h.isNil(Y[j]) && (Y[j] = []);
15751
15751
  for (let ce = 0; ce < ee.length; ce += 1) {
15752
15752
  const te = ee[ce];
@@ -15766,13 +15766,13 @@ function Ys(e, t, n, r, a) {
15766
15766
  }
15767
15767
  break;
15768
15768
  } else
15769
- h.isNil(Y[j]) && (Y[j] = []), V += 1;
15769
+ h.isNil(Y[j]) && (Y[j] = []), W += 1;
15770
15770
  }
15771
15771
  else
15772
- for (S = S.toString(); V <= S.length; ) {
15773
- const ee = S.substring(O, V), U = En(ee, t, n), ye = U.width, _e = U.actualBoundingBoxAscent + U.actualBoundingBoxDescent, me = ye * Math.cos(y * Math.PI / 180) + _e * Math.sin(y * Math.PI / 180), ve = ye * Math.sin(y * Math.PI / 180) + _e * Math.cos(y * Math.PI / 180), ce = ee.substr(ee.length - 1, 1);
15772
+ for (S = S.toString(); W <= S.length; ) {
15773
+ const ee = S.substring(O, W), U = En(ee, t, n), ye = U.width, _e = U.actualBoundingBoxAscent + U.actualBoundingBoxDescent, me = ye * Math.cos(y * Math.PI / 180) + _e * Math.sin(y * Math.PI / 180), ve = ye * Math.sin(y * Math.PI / 180) + _e * Math.cos(y * Math.PI / 180), ce = ee.substr(ee.length - 1, 1);
15774
15774
  if ((ce === " " || Yi(ce) === 2) && (ge = {
15775
- index: V,
15775
+ index: W,
15776
15776
  str: ee,
15777
15777
  width: me,
15778
15778
  height: ve,
@@ -15780,7 +15780,7 @@ function Ys(e, t, n, r, a) {
15780
15780
  desc: U.actualBoundingBoxDescent
15781
15781
  }), y !== 0)
15782
15782
  if (ve + f > o && !h.isNil(Y[j]))
15783
- !h.isNil(ge) && ge.index < V ? (O = ge.index, V = ge.index + 1, Y[j].push({
15783
+ !h.isNil(ge) && ge.index < W ? (O = ge.index, W = ge.index + 1, Y[j].push({
15784
15784
  content: ge.str,
15785
15785
  style: v,
15786
15786
  width: ge.width,
@@ -15791,7 +15791,7 @@ function Ys(e, t, n, r, a) {
15791
15791
  asc: ge.asc,
15792
15792
  desc: ge.desc,
15793
15793
  fs: C
15794
- }), j += 1, ge = null) : (O = V - 1, Y[j].push({
15794
+ }), j += 1, ge = null) : (O = W - 1, Y[j].push({
15795
15795
  content: $e,
15796
15796
  style: v,
15797
15797
  left: 0,
@@ -15803,7 +15803,7 @@ function Ys(e, t, n, r, a) {
15803
15803
  desc: U.actualBoundingBoxDescent,
15804
15804
  fs: C
15805
15805
  }), j += 1);
15806
- else if (V === S.length) {
15806
+ else if (W === S.length) {
15807
15807
  h.isNil(Y[j]) && (Y[j] = []), Y[j].push({
15808
15808
  content: ee,
15809
15809
  style: v,
@@ -15818,9 +15818,9 @@ function Ys(e, t, n, r, a) {
15818
15818
  });
15819
15819
  break;
15820
15820
  } else
15821
- h.isNil(Y[j]) && (Y[j] = []), V += 1;
15821
+ h.isNil(Y[j]) && (Y[j] = []), W += 1;
15822
15822
  else if (me + c > l && !h.isNil(Y[j]))
15823
- !h.isNil(ge) && ge.index < V ? (O = ge.index, V = ge.index + 1, Y[j].push({
15823
+ !h.isNil(ge) && ge.index < W ? (O = ge.index, W = ge.index + 1, Y[j].push({
15824
15824
  content: ge.str,
15825
15825
  style: v,
15826
15826
  width: ge.width,
@@ -15831,7 +15831,7 @@ function Ys(e, t, n, r, a) {
15831
15831
  asc: ge.asc,
15832
15832
  desc: ge.desc,
15833
15833
  fs: C
15834
- }), j += 1, ge = null) : (ge = null, O = V - 1, Y[j].push({
15834
+ }), j += 1, ge = null) : (ge = null, O = W - 1, Y[j].push({
15835
15835
  content: $e,
15836
15836
  style: v,
15837
15837
  width: G,
@@ -15843,7 +15843,7 @@ function Ys(e, t, n, r, a) {
15843
15843
  desc: Z.actualBoundingBoxDescent,
15844
15844
  fs: C
15845
15845
  }), j += 1);
15846
- else if (V === S.length) {
15846
+ else if (W === S.length) {
15847
15847
  h.isNil(Y[j]) && (Y[j] = []), Y[j].push({
15848
15848
  content: ee,
15849
15849
  style: v,
@@ -15858,7 +15858,7 @@ function Ys(e, t, n, r, a) {
15858
15858
  });
15859
15859
  break;
15860
15860
  } else
15861
- h.isNil(Y[j]) && (Y[j] = []), V += 1;
15861
+ h.isNil(Y[j]) && (Y[j] = []), W += 1;
15862
15862
  $e = ee, ae = _e, G = ye, Z = U;
15863
15863
  }
15864
15864
  const q = [], A = Object.keys(Y).length;
@@ -15887,9 +15887,9 @@ function Ys(e, t, n, r, a) {
15887
15887
  let P = 0, Ce = 0;
15888
15888
  const B = y * Math.PI / 180, ue = q[A - 1], E = ue.lineHeight;
15889
15889
  F = F - E + ue.desc;
15890
- const W = F / Math.sin(B) + J * Math.cos(B), D = J * Math.sin(B);
15890
+ const V = F / Math.sin(B) + J * Math.cos(B), D = J * Math.sin(B);
15891
15891
  let ne = 0;
15892
- if (y !== 0 ? (A === 1 ? (le = J + 2 * (F / Math.tan(B)), ne = F / Math.tan(B)) : le = J + F / Math.tan(B), w.textWidthAll = W, w.textHeightAll = D) : (w.textWidthAll = le, w.textHeightAll = F), i === "onlyWidth")
15892
+ if (y !== 0 ? (A === 1 ? (le = J + 2 * (F / Math.tan(B)), ne = F / Math.tan(B)) : le = J + F / Math.tan(B), w.textWidthAll = V, w.textHeightAll = D) : (w.textWidthAll = le, w.textHeightAll = F), i === "onlyWidth")
15893
15893
  return w;
15894
15894
  if (y !== 0 && Number(b) === 1) {
15895
15895
  t.textAlign = "end";
@@ -15904,7 +15904,7 @@ function Ys(e, t, n, r, a) {
15904
15904
  let ve, ce;
15905
15905
  if (y !== 0) {
15906
15906
  const te = P + ye.asc, Oe = P / Math.tan(B) - Ce + J;
15907
- m === "0" ? d === "0" ? (ve = Oe + l / 2 - le / 2 + E * Math.cos(B) / 2, ce = te + o / 2 - F / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe + l / 2 - le / 2, ce = te - (F / 2 - D / 2)) : d === "2" && (ve = Oe + l / 2 - le / 2 + E * Math.cos(B), ce = te + o - D / 2 - F / 2 - E * Math.cos(B)) : m === "1" ? d === "0" ? (ve = Oe - D * Math.sin(B) / 2 + E * Math.cos(B) / 2, ce = te + o / 2 + D * Math.cos(B) / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe - D * Math.sin(B), ce = te + D * Math.cos(B)) : d === "2" && (ve = Oe + E * Math.cos(B), ce = te + o - E * Math.cos(B)) : m === "2" && (d === "0" ? (ve = Oe + l - W / 2 - (J / 2 + F / 2 / Math.tan(B)) + E * Math.cos(B) / 2, ce = te + o / 2 - F / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe + l - le + ne, ce = te - F) : d === "2" && (ve = Oe + l - W * Math.cos(B) + E * Math.cos(B), ce = te + o - W * Math.sin(B) - E * Math.cos(B)));
15907
+ m === "0" ? d === "0" ? (ve = Oe + l / 2 - le / 2 + E * Math.cos(B) / 2, ce = te + o / 2 - F / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe + l / 2 - le / 2, ce = te - (F / 2 - D / 2)) : d === "2" && (ve = Oe + l / 2 - le / 2 + E * Math.cos(B), ce = te + o - D / 2 - F / 2 - E * Math.cos(B)) : m === "1" ? d === "0" ? (ve = Oe - D * Math.sin(B) / 2 + E * Math.cos(B) / 2, ce = te + o / 2 + D * Math.cos(B) / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe - D * Math.sin(B), ce = te + D * Math.cos(B)) : d === "2" && (ve = Oe + E * Math.cos(B), ce = te + o - E * Math.cos(B)) : m === "2" && (d === "0" ? (ve = Oe + l - V / 2 - (J / 2 + F / 2 / Math.tan(B)) + E * Math.cos(B) / 2, ce = te + o / 2 - F / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe + l - le + ne, ce = te - F) : d === "2" && (ve = Oe + l - V * Math.cos(B) + E * Math.cos(B), ce = te + o - V * Math.sin(B) - E * Math.cos(B)));
15908
15908
  }
15909
15909
  me.left = ve, me.top = ce, ar(me, _, T, {
15910
15910
  width: me.width,
@@ -15930,7 +15930,7 @@ function Ys(e, t, n, r, a) {
15930
15930
  let ve, ce;
15931
15931
  if (y !== 0) {
15932
15932
  const te = P + ye.asc, Oe = (F - P) / Math.tan(B) + Ce;
15933
- m === "0" ? d === "0" ? (ve = Oe + l / 2 - le / 2 - E * Math.cos(B) / 2, ce = te + o / 2 - F / 2 + E * Math.cos(B) / 2) : d === "1" ? (ve = Oe + l / 2 - le / 2 - E * Math.cos(B) / 2, ce = te - (F / 2 - D / 2) + E * Math.cos(B) / 2) : d === "2" && (ve = Oe + l / 2 - le / 2 - E * Math.cos(B), ce = te + o - D / 2 - F / 2 - E * Math.cos(B)) : m === "1" ? d === "0" ? (ve = Oe - D * Math.sin(B) / 2 - E * Math.cos(B) / 2, ce = te - F + o / 2 - D * Math.cos(B) / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe, ce = te - F) : d === "2" && (ve = Oe - D * Math.sin(B) - E * Math.cos(B), ce = te - F + o - D * Math.cos(B) - E * Math.cos(B)) : m === "2" && (d === "0" ? (ve = Oe + l - W / 2 - le / 2 - E * Math.cos(B) / 2, ce = te + o / 2 - F / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe + l - W * Math.cos(B), ce = te + D * Math.cos(B)) : d === "2" && (ve = Oe + l - le - E * Math.cos(B) + ne, ce = te + o - E * Math.cos(B))), ar(me, _, T, {
15933
+ m === "0" ? d === "0" ? (ve = Oe + l / 2 - le / 2 - E * Math.cos(B) / 2, ce = te + o / 2 - F / 2 + E * Math.cos(B) / 2) : d === "1" ? (ve = Oe + l / 2 - le / 2 - E * Math.cos(B) / 2, ce = te - (F / 2 - D / 2) + E * Math.cos(B) / 2) : d === "2" && (ve = Oe + l / 2 - le / 2 - E * Math.cos(B), ce = te + o - D / 2 - F / 2 - E * Math.cos(B)) : m === "1" ? d === "0" ? (ve = Oe - D * Math.sin(B) / 2 - E * Math.cos(B) / 2, ce = te - F + o / 2 - D * Math.cos(B) / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe, ce = te - F) : d === "2" && (ve = Oe - D * Math.sin(B) - E * Math.cos(B), ce = te - F + o - D * Math.cos(B) - E * Math.cos(B)) : m === "2" && (d === "0" ? (ve = Oe + l - V / 2 - le / 2 - E * Math.cos(B) / 2, ce = te + o / 2 - F / 2 - E * Math.cos(B) / 2) : d === "1" ? (ve = Oe + l - V * Math.cos(B), ce = te + D * Math.cos(B)) : d === "2" && (ve = Oe + l - le - E * Math.cos(B) + ne, ce = te + o - E * Math.cos(B))), ar(me, _, T, {
15934
15934
  width: me.width,
15935
15935
  height: me.height,
15936
15936
  left: ve,
@@ -15953,16 +15953,16 @@ function Ys(e, t, n, r, a) {
15953
15953
  }
15954
15954
  P += ye.height;
15955
15955
  }
15956
- w.type = "plainWrap", y !== 0 && (m === "0" ? (w.textLeftAll = l / 2, d === "0" ? w.textTopAll = o / 2 : d === "1" ? w.textTopAll = D / 2 : d === "2" && (w.textTopAll = o - D / 2)) : m === "1" ? d === "0" ? (w.textLeftAll = 0, w.textTopAll = o / 2) : d === "1" ? (w.textLeftAll = 0, w.textTopAll = 0) : d === "2" && (w.textLeftAll = 0, w.textTopAll = o) : m === "2" && (d === "0" ? (w.textLeftAll = l - W / 2, w.textTopAll = o / 2) : d === "1" ? (w.textLeftAll = l, w.textTopAll = 0) : d === "2" && (w.textLeftAll = l, w.textTopAll = o)));
15956
+ w.type = "plainWrap", y !== 0 && (m === "0" ? (w.textLeftAll = l / 2, d === "0" ? w.textTopAll = o / 2 : d === "1" ? w.textTopAll = D / 2 : d === "2" && (w.textTopAll = o - D / 2)) : m === "1" ? d === "0" ? (w.textLeftAll = 0, w.textTopAll = o / 2) : d === "1" ? (w.textLeftAll = 0, w.textTopAll = 0) : d === "2" && (w.textLeftAll = 0, w.textTopAll = o) : m === "2" && (d === "0" ? (w.textLeftAll = l - V / 2, w.textTopAll = o / 2) : d === "1" ? (w.textLeftAll = l, w.textTopAll = 0) : d === "2" && (w.textLeftAll = l, w.textTopAll = o)));
15957
15957
  } else {
15958
15958
  const le = En(S, t, n), F = le.width, J = le.actualBoundingBoxDescent + le.actualBoundingBoxAscent;
15959
15959
  w.rotate = y, y = Math.abs(y);
15960
15960
  const j = y * Math.PI / 180, Y = F * Math.cos(j) + J * Math.sin(j), O = F * Math.sin(j) + J * Math.cos(j);
15961
15961
  if (y !== 0 ? w.textHeightAll = O : w.textHeightAll = O + J / 2 - le.actualBoundingBoxDescent - f, w.textWidthAll = Y, i === "onlyWidth")
15962
15962
  return w;
15963
- const $e = Y, ae = O, G = r.originCellWidth ?? l, V = !(h.isObject(e) && !h.isNil(e.ht)) && m === "2" && $e > G ? "1" : m;
15963
+ const $e = Y, ae = O, G = r.originCellWidth ?? l, W = !(h.isObject(e) && !h.isNil(e.ht)) && m === "2" && $e > G ? "1" : m;
15964
15964
  let ge = c + J * Math.sin(j) * b;
15965
- V === "0" ? ge = l / 2 - $e / 2 + J * Math.sin(j) * b : V === "2" && (ge = l - c - $e + J * Math.sin(j) * b);
15965
+ W === "0" ? ge = l / 2 - $e / 2 + J * Math.sin(j) * b : W === "2" && (ge = l - c - $e + J * Math.sin(j) * b);
15966
15966
  let we = o - f - ae + le.actualBoundingBoxAscent * Math.cos(j) + F * Math.sin(j) * b;
15967
15967
  d === "0" ? we = o / 2 - ae / 2 + le.actualBoundingBoxAscent * Math.cos(j) + F * Math.sin(j) * b : d === "1" && (we = f + le.actualBoundingBoxAscent * Math.cos(j) + F * Math.sin(j) * b), w.type = "plain";
15968
15968
  const q = {
@@ -16058,7 +16058,7 @@ const kt = {
16058
16058
  oct: 10,
16059
16059
  nov: 11,
16060
16060
  dec: 12
16061
- }, Mn = "january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|jun|jul|aug|sep|oct|nov|dec", mn = "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec", Vn = new Set(mn.split("|")), Ba = "monday|tuesday|wednesday|thursday|friday|saturday|sunday", Ur = "mon|tue|wed|thu|fri|sat|sun";
16061
+ }, Mn = "january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|jun|jul|aug|sep|oct|nov|dec", mn = "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec", Wn = new Set(mn.split("|")), Ba = "monday|tuesday|wednesday|thursday|friday|saturday|sunday", Ur = "mon|tue|wed|thu|fri|sat|sun";
16062
16062
  function zr(e) {
16063
16063
  return 2e3 + Number(e);
16064
16064
  }
@@ -16206,7 +16206,7 @@ function ga(e) {
16206
16206
  ), a) {
16207
16207
  const l = kt[a[1].toLowerCase()], o = +a[2], i = +a[3];
16208
16208
  if (l && Ze(i, l, o)) {
16209
- const u = Vn.has(a[1].toLowerCase());
16209
+ const u = Wn.has(a[1].toLowerCase());
16210
16210
  return {
16211
16211
  year: i,
16212
16212
  month: l,
@@ -16223,7 +16223,7 @@ function ga(e) {
16223
16223
  ), a) {
16224
16224
  const l = +a[1], o = kt[a[2].toLowerCase()], i = +a[3];
16225
16225
  if (o && Ze(i, o, l)) {
16226
- const u = Vn.has(a[2].toLowerCase());
16226
+ const u = Wn.has(a[2].toLowerCase());
16227
16227
  return {
16228
16228
  year: i,
16229
16229
  month: o,
@@ -16318,7 +16318,7 @@ function ga(e) {
16318
16318
  if (a = new RegExp(`^(${Mn})\\s+(\\d{4})$`, "i").exec(t), a) {
16319
16319
  const l = kt[a[1].toLowerCase()], o = +a[2];
16320
16320
  if (l && Ze(o, l, 1)) {
16321
- const i = Vn.has(a[1].toLowerCase());
16321
+ const i = Wn.has(a[1].toLowerCase());
16322
16322
  return {
16323
16323
  year: o,
16324
16324
  month: l,
@@ -16333,7 +16333,7 @@ function ga(e) {
16333
16333
  if (a = new RegExp(`^(${Mn})\\s+(\\d{1,2})$`, "i").exec(t), a) {
16334
16334
  const l = kt[a[1].toLowerCase()], o = +a[2];
16335
16335
  if (l && Ze(n, l, o)) {
16336
- const i = Vn.has(a[1].toLowerCase());
16336
+ const i = Wn.has(a[1].toLowerCase());
16337
16337
  return {
16338
16338
  year: n,
16339
16339
  month: l,
@@ -16486,7 +16486,7 @@ function ga(e) {
16486
16486
  ).exec(t), a) {
16487
16487
  const l = kt[a[1].toLowerCase()], o = +a[2], i = +a[3];
16488
16488
  if (l && Ze(i, l, o)) {
16489
- const u = Vn.has(a[1].toLowerCase());
16489
+ const u = Wn.has(a[1].toLowerCase());
16490
16490
  return {
16491
16491
  year: i,
16492
16492
  month: l,
@@ -16504,7 +16504,7 @@ function ga(e) {
16504
16504
  ).exec(t), a) {
16505
16505
  const l = +a[1], o = kt[a[2].toLowerCase()], i = +a[3];
16506
16506
  if (o && Ze(i, o, l)) {
16507
- const u = Vn.has(a[2].toLowerCase());
16507
+ const u = Wn.has(a[2].toLowerCase());
16508
16508
  return {
16509
16509
  year: i,
16510
16510
  month: o,
@@ -16604,10 +16604,10 @@ function Rf(e) {
16604
16604
  function Kn(e) {
16605
16605
  return e === null || e.toString().length < 5 ? !1 : !!Rf(e);
16606
16606
  }
16607
- function Vt(e, t) {
16607
+ function Wt(e, t) {
16608
16608
  return Ne(e).diff(Ne(t));
16609
16609
  }
16610
- function Vs(e) {
16610
+ function Ws(e) {
16611
16611
  const t = {};
16612
16612
  return Kn(e) && (t.date = !0), !Number.isNaN(parseFloat(e)) && !Hs(e) && (t.num = !0), t;
16613
16613
  }
@@ -16715,15 +16715,15 @@ const xf = function(t) {
16715
16715
  var w = [];
16716
16716
  w[5] = w[63] = '"$"#,##0_);\\("$"#,##0\\)', w[6] = w[64] = '"$"#,##0_);[Red]\\("$"#,##0\\)', w[7] = w[65] = '"$"#,##0.00_);\\("$"#,##0.00\\)', w[8] = w[66] = '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', w[41] = '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', w[42] = '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', w[43] = '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', w[44] = '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)';
16717
16717
  function v(q, A, P) {
16718
- for (var Ce = q < 0 ? -1 : 1, B = q * Ce, ue = 0, E = 1, W = 0, D = 1, ne = 0, ee = 0, U = Math.floor(B); ne < A && (U = Math.floor(B), W = U * E + ue, ee = U * ne + D, !(B - U < 5e-8)); )
16719
- B = 1 / (B - U), ue = E, E = W, D = ne, ne = ee;
16720
- if (ee > A && (ne > A ? (ee = D, W = ue) : (ee = ne, W = E)), !P) return [0, Ce * W, ee];
16721
- var ye = Math.floor(Ce * W / ee);
16722
- return [ye, Ce * W - ye * ee, ee];
16718
+ for (var Ce = q < 0 ? -1 : 1, B = q * Ce, ue = 0, E = 1, V = 0, D = 1, ne = 0, ee = 0, U = Math.floor(B); ne < A && (U = Math.floor(B), V = U * E + ue, ee = U * ne + D, !(B - U < 5e-8)); )
16719
+ B = 1 / (B - U), ue = E, E = V, D = ne, ne = ee;
16720
+ if (ee > A && (ne > A ? (ee = D, V = ue) : (ee = ne, V = E)), !P) return [0, Ce * V, ee];
16721
+ var ye = Math.floor(Ce * V / ee);
16722
+ return [ye, Ce * V - ye * ee, ee];
16723
16723
  }
16724
16724
  function _(q, A, P) {
16725
16725
  if (q > 2958465 || q < 0) return null;
16726
- var Ce = q | 0, B = Math.floor(86400 * (q - Ce)), ue = 0, E = [], W = {
16726
+ var Ce = q | 0, B = Math.floor(86400 * (q - Ce)), ue = 0, E = [], V = {
16727
16727
  D: Ce,
16728
16728
  T: B,
16729
16729
  u: 86400 * (q - Ce) - B,
@@ -16735,7 +16735,7 @@ const xf = function(t) {
16735
16735
  S: 0,
16736
16736
  q: 0
16737
16737
  };
16738
- if (Math.abs(W.u) < 1e-6 && (W.u = 0), A && A.date1904 && (Ce += 1462), W.u > 0.9999 && (W.u = 0, ++B == 86400 && (W.T = B = 0, ++Ce, ++W.D)), Ce === 60)
16738
+ if (Math.abs(V.u) < 1e-6 && (V.u = 0), A && A.date1904 && (Ce += 1462), V.u > 0.9999 && (V.u = 0, ++B == 86400 && (V.T = B = 0, ++Ce, ++V.D)), Ce === 60)
16739
16739
  E = P ? [1317, 10, 29] : [1900, 2, 29], ue = 3;
16740
16740
  else if (Ce === 0)
16741
16741
  E = P ? [1317, 8, 29] : [1900, 1, 0], ue = 6;
@@ -16744,7 +16744,7 @@ const xf = function(t) {
16744
16744
  var D = new Date(1900, 0, 1);
16745
16745
  D.setDate(D.getDate() + Ce - 1), E = [D.getFullYear(), D.getMonth() + 1, D.getDate()], ue = D.getDay(), Ce < 60 && (ue = (ue + 6) % 7), P && (ue = Q(D, E));
16746
16746
  }
16747
- return W.y = E[0], W.m = E[1], W.d = E[2], W.S = B % 60, B = Math.floor(B / 60), W.M = B % 60, B = Math.floor(B / 60), W.H = B, W.q = ue, W;
16747
+ return V.y = E[0], V.m = E[1], V.d = E[2], V.S = B % 60, B = Math.floor(B / 60), V.M = B % 60, B = Math.floor(B / 60), V.H = B, V.q = ue, V;
16748
16748
  }
16749
16749
  t.parse_date_code = _;
16750
16750
  var T = new Date(1899, 11, 31, 0, 0, 0), C = T.getTime(), $ = new Date(1900, 2, 1, 0, 0, 0);
@@ -16765,10 +16765,10 @@ const xf = function(t) {
16765
16765
  function ue(U) {
16766
16766
  return U.indexOf("E") == -1 ? U : U.replace(Ce, "$1E").replace(B, "$10$2");
16767
16767
  }
16768
- var E = 999999999999997, W = 1e15;
16768
+ var E = 999999999999997, V = 1e15;
16769
16769
  function D(U) {
16770
16770
  var ye = U < 0 ? 12 : 11, _e = Math.abs(U);
16771
- if (_e <= E || _e >= W) {
16771
+ if (_e <= E || _e >= V) {
16772
16772
  var me = P(U.toFixed(12));
16773
16773
  return me.length <= ye || (me = U.toPrecision(10), me.length <= ye) ? me : P(U.toFixed(12));
16774
16774
  }
@@ -16777,7 +16777,7 @@ const xf = function(t) {
16777
16777
  }
16778
16778
  function ne(U) {
16779
16779
  var ye = Math.abs(U), _e = P(U.toFixed(11));
16780
- return ye <= E || ye >= W ? _e : _e.length > (U < 0 ? 12 : 11) || _e === "0" || _e === "-0" ? U.toPrecision(6) : _e;
16780
+ return ye <= E || ye >= V ? _e : _e.length > (U < 0 ? 12 : 11) || _e === "0" || _e === "-0" ? U.toPrecision(6) : _e;
16781
16781
  }
16782
16782
  function ee(U) {
16783
16783
  var ye = Math.floor(Math.log(Math.abs(U)) * Math.LOG10E), _e;
@@ -16810,18 +16810,18 @@ const xf = function(t) {
16810
16810
  return q < 60 && (P = (P + 6) % 7), P;
16811
16811
  }
16812
16812
  function K(q, A, P, Ce) {
16813
- var B = "", ue = 0, E = 0, W = P.y, D, ne = 0;
16813
+ var B = "", ue = 0, E = 0, V = P.y, D, ne = 0;
16814
16814
  switch (q) {
16815
16815
  case 98:
16816
- W = P.y + 543;
16816
+ V = P.y + 543;
16817
16817
  case 121:
16818
16818
  switch (A.length) {
16819
16819
  case 1:
16820
16820
  case 2:
16821
- D = W % 100, ne = 2;
16821
+ D = V % 100, ne = 2;
16822
16822
  break;
16823
16823
  default:
16824
- D = W % 1e4, ne = 4;
16824
+ D = V % 1e4, ne = 4;
16825
16825
  break;
16826
16826
  }
16827
16827
  break;
@@ -16905,7 +16905,7 @@ const xf = function(t) {
16905
16905
  ne = A.length === 3 ? 1 : 2;
16906
16906
  break;
16907
16907
  case 101:
16908
- D = W, ne = 1;
16908
+ D = V, ne = 1;
16909
16909
  break;
16910
16910
  }
16911
16911
  var ee = ne > 0 ? a(D, ne) : "";
@@ -16959,7 +16959,7 @@ const xf = function(t) {
16959
16959
  var pe = parseInt(Te[4], 10), H = Math.round(I * pe), x = Math.floor(H / pe), X = H - x * pe, ie = pe;
16960
16960
  return L + (x === 0 ? "" : "" + x) + " " + (X === 0 ? r(" ", Te[1].length + 1 + Te[4].length) : l(X, Te[1].length) + Te[2] + "/" + Te[3] + a(ie, Te[4].length));
16961
16961
  }
16962
- function W(Te, I, L) {
16962
+ function V(Te, I, L) {
16963
16963
  return L + (I === 0 ? "" : "" + I) + r(" ", Te[1].length + 2 + Te[4].length);
16964
16964
  }
16965
16965
  var D = /^#*0*\.([0#]+)/, ne = /\).*[0#]/, ee = /\(###\) ###\\?-####/;
@@ -17040,8 +17040,8 @@ const xf = function(t) {
17040
17040
  return H = c(L, 0), I.length <= H.length ? H : U(I.substr(0, I.length - H.length)) + H;
17041
17041
  if (x = I.match(/^([#0?]+)\.([#0]+)$/)) {
17042
17042
  H = "" + L.toFixed(Math.min(x[2].length, 10)).replace(/([^0])0+$/, "$1"), X = H.indexOf(".");
17043
- var xe = I.indexOf(".") - X, We = I.length - H.length - xe;
17044
- return U(I.substr(0, xe) + H + I.substr(I.length - We));
17043
+ var xe = I.indexOf(".") - X, Ve = I.length - H.length - xe;
17044
+ return U(I.substr(0, xe) + H + I.substr(I.length - Ve));
17045
17045
  }
17046
17046
  if (x = I.match(/^00,000\.([#0]*0)$/))
17047
17047
  return X = _e(L, x[1].length), L < 0 ? "-" + ce(Te, I, -L) : le(ve(L)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(De) {
@@ -17109,7 +17109,7 @@ const xf = function(t) {
17109
17109
  if (I.match(/^00+$/)) return re + a(fe, I.length);
17110
17110
  if (I.match(/^[#?]+$/))
17111
17111
  return H = "" + L, L === 0 && (H = ""), H.length > I.length ? H : U(I.substr(0, I.length - H.length)) + H;
17112
- if (x = I.match(ue)) return W(x, fe, re);
17112
+ if (x = I.match(ue)) return V(x, fe, re);
17113
17113
  if (I.match(/^#+0+$/))
17114
17114
  return re + a(fe, I.length - I.indexOf("0"));
17115
17115
  if (x = I.match(D))
@@ -17141,8 +17141,8 @@ const xf = function(t) {
17141
17141
  return H = "" + L, I.length <= H.length ? H : U(I.substr(0, I.length - H.length)) + H;
17142
17142
  if (x = I.match(/^([#0]+)\.([#0]+)$/)) {
17143
17143
  H = "" + L.toFixed(Math.min(x[2].length, 10)).replace(/([^0])0+$/, "$1"), X = H.indexOf(".");
17144
- var xe = I.indexOf(".") - X, We = I.length - H.length - xe;
17145
- return U(I.substr(0, xe) + H + I.substr(I.length - We));
17144
+ var xe = I.indexOf(".") - X, Ve = I.length - H.length - xe;
17145
+ return U(I.substr(0, xe) + H + I.substr(I.length - Ve));
17146
17146
  }
17147
17147
  if (x = I.match(/^00,000\.([#0]*0)$/))
17148
17148
  return L < 0 ? "-" + qe(Te, I, -L) : le("" + L).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(De) {
@@ -17279,11 +17279,11 @@ const xf = function(t) {
17279
17279
  }
17280
17280
  t.is_date = Y;
17281
17281
  function O(q, A, P, Ce) {
17282
- for (var B = [], ue = "", E = 0, W = "", D = "t", ne, ee, U, ye = "H"; E < q.length; )
17283
- switch (W = q.charAt(E)) {
17282
+ for (var B = [], ue = "", E = 0, V = "", D = "t", ne, ee, U, ye = "H"; E < q.length; )
17283
+ switch (V = q.charAt(E)) {
17284
17284
  case "G":
17285
17285
  if (!f(q, E))
17286
- throw new Error("unrecognized character " + W + " in " + q);
17286
+ throw new Error("unrecognized character " + V + " in " + q);
17287
17287
  B[B.length] = {
17288
17288
  t: "G",
17289
17289
  v: "General"
@@ -17324,7 +17324,7 @@ const xf = function(t) {
17324
17324
  B[B.length] = {
17325
17325
  t: "X",
17326
17326
  v: q.substr(E, 2)
17327
- }, D = W, E += 2;
17327
+ }, D = V, E += 2;
17328
17328
  break;
17329
17329
  }
17330
17330
  case "M":
@@ -17333,7 +17333,7 @@ const xf = function(t) {
17333
17333
  case "H":
17334
17334
  case "S":
17335
17335
  case "E":
17336
- W = W.toLowerCase();
17336
+ V = V.toLowerCase();
17337
17337
  case "m":
17338
17338
  case "d":
17339
17339
  case "y":
@@ -17344,24 +17344,24 @@ const xf = function(t) {
17344
17344
  if (A < 0) return "";
17345
17345
  if (ne == null && (ne = _(A, P), ne == null))
17346
17346
  return A;
17347
- for (ue = W; ++E < q.length && q.charAt(E).toLowerCase() === W; ) ue += W;
17348
- W === "m" && D.toLowerCase() === "h" && (W = "M"), W === "h" && (W = ye), B[B.length] = {
17349
- t: W,
17347
+ for (ue = V; ++E < q.length && q.charAt(E).toLowerCase() === V; ) ue += V;
17348
+ V === "m" && D.toLowerCase() === "h" && (V = "M"), V === "h" && (V = ye), B[B.length] = {
17349
+ t: V,
17350
17350
  v: ue
17351
- }, D = W;
17351
+ }, D = V;
17352
17352
  break;
17353
17353
  case "A":
17354
17354
  case "a":
17355
17355
  case "上":
17356
17356
  var ve = {
17357
- t: W,
17358
- v: W
17357
+ t: V,
17358
+ v: V
17359
17359
  };
17360
17360
  if (ne == null && (ne = _(A, P)), q.substr(E, 3).toUpperCase() === "A/P" ? (ne != null && (ve.v = ne.H >= 12 ? "P" : "A"), ve.t = "T", ye = "h", E += 3) : q.substr(E, 5).toUpperCase() === "AM/PM" ? (ne != null && (ve.v = ne.H >= 12 ? "PM" : "AM"), ve.t = "T", E += 5, ye = "h") : q.substr(E, 5).toUpperCase() === "上午/下午" ? (ne != null && (ve.v = ne.H >= 12 ? "下午" : "上午"), ve.t = "T", E += 5, ye = "h") : (ve.t = "t", ++E), ne == null && ve.t === "T") return "";
17361
- B[B.length] = ve, D = W;
17361
+ B[B.length] = ve, D = V;
17362
17362
  break;
17363
17363
  case "[":
17364
- for (ue = W; q.charAt(E++) !== "]" && E < q.length; ) ue += q.charAt(E);
17364
+ for (ue = V; q.charAt(E++) !== "]" && E < q.length; ) ue += q.charAt(E);
17365
17365
  if (ue.slice(-1) !== "]") throw 'unterminated "[" block: |' + ue + "|";
17366
17366
  if (ue.match(j)) {
17367
17367
  if (ne == null && (ne = _(A, P), ne == null))
@@ -17377,7 +17377,7 @@ const xf = function(t) {
17377
17377
  break;
17378
17378
  case ".":
17379
17379
  if (ne != null) {
17380
- for (ue = W; ++E < q.length && (W = q.charAt(E)) === "0"; ) ue += W;
17380
+ for (ue = V; ++E < q.length && (V = q.charAt(E)) === "0"; ) ue += V;
17381
17381
  B[B.length] = {
17382
17382
  t: "s",
17383
17383
  v: ue
@@ -17386,19 +17386,19 @@ const xf = function(t) {
17386
17386
  }
17387
17387
  case "0":
17388
17388
  case "#":
17389
- for (ue = W; ++E < q.length && "0#?.,E+-%".indexOf(W = q.charAt(E)) > -1; )
17390
- ue += W;
17389
+ for (ue = V; ++E < q.length && "0#?.,E+-%".indexOf(V = q.charAt(E)) > -1; )
17390
+ ue += V;
17391
17391
  B[B.length] = {
17392
17392
  t: "n",
17393
17393
  v: ue
17394
17394
  };
17395
17395
  break;
17396
17396
  case "?":
17397
- for (ue = W; q.charAt(++E) === W; ) ue += W;
17397
+ for (ue = V; q.charAt(++E) === V; ) ue += V;
17398
17398
  B[B.length] = {
17399
- t: W,
17399
+ t: V,
17400
17400
  v: ue
17401
- }, D = W;
17401
+ }, D = V;
17402
17402
  break;
17403
17403
  case "*":
17404
17404
  ++E, (q.charAt(E) == " " || q.charAt(E) == "*") && ++E;
@@ -17406,8 +17406,8 @@ const xf = function(t) {
17406
17406
  case "(":
17407
17407
  case ")":
17408
17408
  B[B.length] = {
17409
- t: Ce === 1 ? "t" : W,
17410
- v: W
17409
+ t: Ce === 1 ? "t" : V,
17410
+ v: V
17411
17411
  }, ++E;
17412
17412
  break;
17413
17413
  case "1":
@@ -17419,7 +17419,7 @@ const xf = function(t) {
17419
17419
  case "7":
17420
17420
  case "8":
17421
17421
  case "9":
17422
- for (ue = W; E < q.length && "0123456789".indexOf(q.charAt(++E)) > -1; )
17422
+ for (ue = V; E < q.length && "0123456789".indexOf(q.charAt(++E)) > -1; )
17423
17423
  ue += q.charAt(E);
17424
17424
  B[B.length] = {
17425
17425
  t: "D",
@@ -17428,8 +17428,8 @@ const xf = function(t) {
17428
17428
  break;
17429
17429
  case " ":
17430
17430
  B[B.length] = {
17431
- t: W,
17432
- v: W
17431
+ t: V,
17432
+ v: V
17433
17433
  }, ++E;
17434
17434
  break;
17435
17435
  case "$":
@@ -17440,12 +17440,12 @@ const xf = function(t) {
17440
17440
  break;
17441
17441
  default:
17442
17442
  if ("¤฿BsBr₵₡₫ƒFtRs.₭kr£₤Lm₥₦₱PQRSkRp৲৳R$S/.〒₮₩¥NT¥zł₴₪៛руб€₹$,$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP$¥LekdinAf$dhAflRial?£BirrKzMOPPGKRsGsB/R$ррlevkrKMzBsPNuFBuKPkrRD$NfkCFA?CVEGMDFrCDHTGNAfLFdjKGSFGGHSRielKCFknKshLSLL£LtRFRONArRfMWKRMMURsMROS/KMDLMTnRC$kr€GELCHFSLLSCRDbSZLSDGSOSSomFCFPTShT$VUVQUGXгрнsomWSTNT$FtDramRpZMWFCFA".indexOf(
17443
- W
17443
+ V
17444
17444
  ) === -1)
17445
- throw new Error("unrecognized character " + W + " in " + q);
17445
+ throw new Error("unrecognized character " + V + " in " + q);
17446
17446
  B[B.length] = {
17447
17447
  t: "t",
17448
- v: W
17448
+ v: V
17449
17449
  }, ++E;
17450
17450
  break;
17451
17451
  }
@@ -17507,7 +17507,7 @@ const xf = function(t) {
17507
17507
  break;
17508
17508
  case "n":
17509
17509
  case "?":
17510
- for (qe = E + 1; B[qe] != null && ((W = B[qe].t) === "?" || W === "D" || (W === " " || W === "t") && B[qe + 1] != null && (B[qe + 1].t === "?" || B[qe + 1].t === "t" && B[qe + 1].v === "/") || B[E].t === "(" && (W === " " || W === "n" || W === ")") || W === "t" && (B[qe].v === "/" || B[qe].v === " " && B[qe + 1] != null && B[qe + 1].t == "?")); )
17510
+ for (qe = E + 1; B[qe] != null && ((V = B[qe].t) === "?" || V === "D" || (V === " " || V === "t") && B[qe + 1] != null && (B[qe + 1].t === "?" || B[qe + 1].t === "t" && B[qe + 1].v === "/") || B[E].t === "(" && (V === " " || V === "n" || V === ")") || V === "t" && (B[qe].v === "/" || B[qe].v === " " && B[qe + 1] != null && B[qe + 1].t == "?")); )
17511
17511
  B[E].v += B[qe].v, B[qe] = {
17512
17512
  v: "",
17513
17513
  t: ";"
@@ -17601,12 +17601,12 @@ const xf = function(t) {
17601
17601
  if (P[0].indexOf("[") === -1 && P[1].indexOf("[") === -1)
17602
17602
  return [Ce, ue];
17603
17603
  if (P[0].match($e) != null || P[1].match($e) != null) {
17604
- var E = P[0].match(ae), W = P[1].match(ae);
17605
- return G(A, E) ? [Ce, P[0]] : G(A, W) ? [Ce, P[1]] : [Ce, P[E != null && W != null ? 2 : 1]];
17604
+ var E = P[0].match(ae), V = P[1].match(ae);
17605
+ return G(A, E) ? [Ce, P[0]] : G(A, V) ? [Ce, P[1]] : [Ce, P[E != null && V != null ? 2 : 1]];
17606
17606
  }
17607
17607
  return [Ce, ue];
17608
17608
  }
17609
- function V(q) {
17609
+ function W(q) {
17610
17610
  if (typeof q != "number" || !Number.isFinite(q) || !Number.isInteger(q) || q < 0) return null;
17611
17611
  const A = 1e5, P = 4102444800, Ce = A * 1e3, B = P * 1e3;
17612
17612
  return q >= A && q <= P ? "seconds" : q >= Ce && q <= B ? "milliseconds" : null;
@@ -17623,15 +17623,15 @@ const xf = function(t) {
17623
17623
  break;
17624
17624
  }
17625
17625
  if (typeof A == "number" && Y && Y(Ce)) {
17626
- var B = V(A);
17626
+ var B = W(A);
17627
17627
  B === "seconds" ? A = new Date(A * 1e3) : B === "milliseconds" && (A = new Date(A));
17628
17628
  }
17629
17629
  var ue = /^(w|W)((0?)|(0\.0+))$/;
17630
17630
  if (Ce.match(ue)) {
17631
17631
  if (isNaN(A))
17632
17632
  return A;
17633
- var E = Ce.slice(1), W = !1;
17634
- !isNaN(A) && Number(A) < 0 && (W = !0, A = Math.abs(A));
17633
+ var E = Ce.slice(1), V = !1;
17634
+ !isNaN(A) && Number(A) < 0 && (V = !0, A = Math.abs(A));
17635
17635
  var D = parseInt(A), ne = D.toString().length;
17636
17636
  if (ne > 4) {
17637
17637
  if (ne > 8) {
@@ -17703,7 +17703,7 @@ const xf = function(t) {
17703
17703
  }
17704
17704
  } else
17705
17705
  E != "" && (A = rn(A).format(E));
17706
- return W ? "-" + A : A;
17706
+ return V ? "-" + A : A;
17707
17707
  }
17708
17708
  if (f(Ce, 0)) return z(A, P);
17709
17709
  A instanceof Date && (A = S(A, P.date1904));
@@ -17743,7 +17743,7 @@ const If = new Date(1900, 2, 1, 0, 0, 0), qf = 999999999999997, Fo = 1e15;
17743
17743
  function Lo(e) {
17744
17744
  return Number.isFinite(e) && e > qf && e < Fo;
17745
17745
  }
17746
- function Ws(e) {
17746
+ function Vs(e) {
17747
17747
  if (typeof e != "string") return !1;
17748
17748
  const t = e.trim().replace(/,/g, "");
17749
17749
  return /^-?\d+$/.test(t) ? (t.startsWith("-") ? t.slice(1) : t).length >= 16 : !1;
@@ -17829,7 +17829,7 @@ function Qe(e) {
17829
17829
  e
17830
17830
  ))
17831
17831
  t = e.toString(), n = { fa: "@", t: "s" };
17832
- else if (Ws(e)) {
17832
+ else if (Vs(e)) {
17833
17833
  const a = e.trim().replace(/,/g, "");
17834
17834
  t = a, r = a, n = { fa: "General", t: "g" };
17835
17835
  } else if (Ge(e) && Math.abs(parseFloat(e)) > 0 && (Math.abs(parseFloat(e)) < 1e-9 || Lo(Math.abs(parseFloat(e))))) {
@@ -18158,11 +18158,11 @@ 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, Op = 100, Fp = 300, Lp = 3e4, Vf = "fortune-formula-execution-debug";
18161
+ const zf = 15, Yf = 50, Op = 100, Fp = 300, Lp = 3e4, Wf = "fortune-formula-execution-debug";
18162
18162
  function Bp() {
18163
18163
  if (typeof window > "u") return !1;
18164
18164
  try {
18165
- return localStorage.getItem(Vf) === "true";
18165
+ return localStorage.getItem(Wf) === "true";
18166
18166
  } catch {
18167
18167
  return !1;
18168
18168
  }
@@ -18170,9 +18170,9 @@ function Bp() {
18170
18170
  function ho(e) {
18171
18171
  return !!(e.isFormulaCalculating && e.formulaAsyncEval);
18172
18172
  }
18173
- const Wf = /\b(SEQUENCE|FILTER|SORT|SORTBY|UNIQUE|TRANSPOSE|ARRAYFORMULA|INDIRECT|OFFSET|INDEX|SPARKLINE)\s*\(/i;
18173
+ const Vf = /\b(SEQUENCE|FILTER|SORT|SORTBY|UNIQUE|TRANSPOSE|ARRAYFORMULA|INDIRECT|OFFSET|INDEX|SPARKLINE)\s*\(/i;
18174
18174
  function Pp(e) {
18175
- return Wf.test(e);
18175
+ return Vf.test(e);
18176
18176
  }
18177
18177
  function Gf(e, t, n, r, a) {
18178
18178
  return `${e}:${t}:${n}:${r}:${a}`;
@@ -18224,9 +18224,9 @@ const Qf = {
18224
18224
  "/": 1,
18225
18225
  "+": 2,
18226
18226
  "-": 2
18227
- }, Wi = "==|!=|<>|<=|>=|=|+|-|>|<|/|*|%|&|^".split("|"), it = {};
18228
- for (let e = 0; e < Wi.length; e += 1)
18229
- it[Wi[e].toString()] = 1;
18227
+ }, Vi = "==|!=|<>|<=|>=|=|+|-|>|<|/|*|%|&|^".split("|"), it = {};
18228
+ for (let e = 0; e < Vi.length; e += 1)
18229
+ it[Vi[e].toString()] = 1;
18230
18230
  const Ha = "​", an = (e) => (e || "").replace(/\u00a0/g, " ").replace(/\u200b/g, ""), Jf = "[A-Za-z0-9_À-ʯ]+", ed = "'(?:(?!').|'')*'", td = `(${Jf}|${ed})!`, nd = "[$]?[A-Za-z]+[$]?[0-9]+", rd = "[$]?[A-Za-z]+", ad = "[$]?[0-9]+", od = `(?:${nd}|${rd}|${ad})`, Gi = `(?:${td})?(${od})`, ld = new RegExp(
18231
18231
  `^${Gi}(?:[:]${Gi})?$`
18232
18232
  );
@@ -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 Vp(e) {
19900
+ function Wp(e) {
19901
19901
  const t = va(e);
19902
19902
  if (t !== null) return t;
19903
19903
  const n = Ad(e);
@@ -20023,7 +20023,7 @@ function Fd(e) {
20023
20023
  }
20024
20024
  return Ua(t);
20025
20025
  }
20026
- function Wp(e, t, n) {
20026
+ function Vp(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;
@@ -20531,18 +20531,18 @@ function Yd(e, t, n, r) {
20531
20531
  }
20532
20532
  );
20533
20533
  }
20534
- function Vd(e) {
20534
+ function Wd(e) {
20535
20535
  const t = e.match(/^(\$?)([A-Za-z]+)(\$?)(\d+)$/);
20536
20536
  if (!t) return null;
20537
20537
  const n = t[1] === "$", r = It(t[2]), a = t[3] === "$", l = parseInt(t[4], 10) - 1;
20538
20538
  return Number.isNaN(l) || Number.isNaN(r) ? null : { colAbs: n, rowAbs: a, col: r, row: l };
20539
20539
  }
20540
- function Wd(e) {
20540
+ function Vd(e) {
20541
20541
  return `${e.colAbs ? "$" : ""}${rt(e.col)}${e.rowAbs ? "$" : ""}${e.row + 1}`;
20542
20542
  }
20543
20543
  function za(e, t, n, r) {
20544
- const a = Vd(e);
20545
- return !a || !(a.row >= t.rowStart && a.row <= t.rowEnd && a.col >= t.colStart && a.col <= t.colEnd) ? e : Wd({
20544
+ const a = Wd(e);
20545
+ return !a || !(a.row >= t.rowStart && a.row <= t.rowEnd && a.col >= t.colStart && a.col <= t.colEnd) ? e : Vd({
20546
20546
  ...a,
20547
20547
  row: n + (a.row - t.rowStart),
20548
20548
  col: r + (a.col - t.colStart)
@@ -20759,7 +20759,7 @@ function Ji(e, t) {
20759
20759
  const n = new Date(e.getTime());
20760
20760
  return n.setDate(n.getDate() + t), n;
20761
20761
  }
20762
- function Wn(e) {
20762
+ function Vn(e) {
20763
20763
  return `${aa(e.getDate())}/${aa(e.getMonth() + 1)}/${e.getFullYear()}`;
20764
20764
  }
20765
20765
  function Kd(e) {
@@ -20780,7 +20780,7 @@ function kr(e) {
20780
20780
  const o = new Date(l, a, r);
20781
20781
  return o.getFullYear() !== l || o.getMonth() !== a || o.getDate() !== r ? null : Rr(o, 0);
20782
20782
  }
20783
- function Vo(e, t = !1) {
20783
+ function Wo(e, t = !1) {
20784
20784
  var n, r;
20785
20785
  if (!e) return "";
20786
20786
  if (((n = e.ct) == null ? void 0 : n.t) === "inlineStr" && Array.isArray((r = e.ct) == null ? void 0 : r.s)) {
@@ -20798,10 +20798,10 @@ function Vo(e, t = !1) {
20798
20798
  return e.v != null && !ot(e.v) && typeof e.v != "string" ? String(e.v) : "";
20799
20799
  }
20800
20800
  function Ya(e) {
20801
- return h.isNil(e) ? !0 : !(Vo(e, !0) !== "" || !h.isNil(e.v) && !ot(e.v));
20801
+ return h.isNil(e) ? !0 : !(Wo(e, !0) !== "" || !h.isNil(e.v) && !ot(e.v));
20802
20802
  }
20803
20803
  function Jd(e) {
20804
- return Vo(e, !0);
20804
+ return Wo(e, !0);
20805
20805
  }
20806
20806
  function es(e) {
20807
20807
  var r, a;
@@ -20825,19 +20825,19 @@ function po(e) {
20825
20825
  const t = lu();
20826
20826
  switch (e) {
20827
20827
  case "today":
20828
- return Wn(t);
20828
+ return Vn(t);
20829
20829
  case "tomorrow":
20830
- return Wn(Ji(t, 1));
20830
+ return Vn(Ji(t, 1));
20831
20831
  case "yesterday":
20832
- return Wn(Ji(t, -1));
20832
+ return Vn(Ji(t, -1));
20833
20833
  case "pastWeek":
20834
20834
  case "pastMonth":
20835
20835
  case "pastYear":
20836
- return Wn(t);
20836
+ return Vn(t);
20837
20837
  case "exact":
20838
20838
  return "";
20839
20839
  default:
20840
- return Wn(t);
20840
+ return Vn(t);
20841
20841
  }
20842
20842
  }
20843
20843
  function ng(e) {
@@ -20865,7 +20865,7 @@ function ng(e) {
20865
20865
  const a = $a(r);
20866
20866
  return a != null ? {
20867
20867
  preset: "exact",
20868
- snapshotOrExact: Wn(
20868
+ snapshotOrExact: Vn(
20869
20869
  Qd(a)
20870
20870
  ),
20871
20871
  format: t
@@ -21116,7 +21116,7 @@ function rg(e, t, n, r, a, l, o) {
21116
21116
  projectValue: a.projectValue || "10"
21117
21117
  };
21118
21118
  }
21119
- function Va(e, t, n, r, a) {
21119
+ function Wa(e, t, n, r, a) {
21120
21120
  const l = e.split(","), o = parseInt(l[0].split("(")[1], 10), i = parseInt(l[1], 10), u = parseInt(l[2].split(")")[0], 10), s = t.split(","), c = parseInt(s[0].split("(")[1], 10), f = parseInt(s[1], 10), m = parseInt(s[2].split(")")[0], 10), d = n - r, p = n - a, g = Math.round(o - (o - c) / d * p), y = Math.round(i - (i - f) / d * p), b = Math.round(u - (u - m) / d * p);
21121
21121
  return `rgb(${g}, ${y}, ${b})`;
21122
21122
  }
@@ -21214,7 +21214,7 @@ function rm(e, t, n) {
21214
21214
  !h.isNil(y) && tn(y) && !h.isNil(y.v) && (parseInt(`${y.v}`, 10) === s ? `${p}_${g}` in r || (r[`${p}_${g}`] = {
21215
21215
  cellColor: i.cellColor
21216
21216
  }) : parseInt(`${y.v}`, 10) > s && parseInt(`${y.v}`, 10) < m ? `${p}_${g}` in r || (r[`${p}_${g}`] = {
21217
- cellColor: Va(
21217
+ cellColor: Wa(
21218
21218
  i[2],
21219
21219
  i[1],
21220
21220
  s,
@@ -21222,7 +21222,7 @@ function rm(e, t, n) {
21222
21222
  parseInt(`${y.v}`, 10)
21223
21223
  )
21224
21224
  }) : parseInt(`${y.v}`, 10) === m ? `${p}_${g}` in r || (r[`${p}_${g}`] = { cellColor: i[1] }) : parseInt(`${y.v}`, 10) > m && parseInt(`${y.v}`, 10) < u ? `${p}_${g}` in r || (r[`${p}_${g}`] = {
21225
- cellColor: Va(
21225
+ cellColor: Wa(
21226
21226
  i[1],
21227
21227
  i[0],
21228
21228
  m,
@@ -21239,7 +21239,7 @@ function rm(e, t, n) {
21239
21239
  continue;
21240
21240
  const g = n[d][p];
21241
21241
  !h.isNil(g) && tn(g) && !h.isNil(g.v) && (parseInt(`${g.v}`, 10) === s ? `${d}_${p}` in r || (r[`${d}_${p}`] = { cellColor: i[1] }) : parseInt(`${g.v}`, 10) > s && parseInt(`${g.v}`, 10) < u ? `${d}_${p}` in r || (r[`${d}_${p}`] = {
21242
- cellColor: Va(
21242
+ cellColor: Wa(
21243
21243
  i[1],
21244
21244
  i[0],
21245
21245
  s,
@@ -21259,7 +21259,7 @@ function rm(e, t, n) {
21259
21259
  for (let v = o[b].column[0]; v <= o[b].column[1]; v += 1) {
21260
21260
  if (h.isNil(n[w]) || h.isNil(n[w][v]))
21261
21261
  continue;
21262
- const _ = n[w][v], T = Ya(_), C = Vo(_), $ = T || h.isNil(_ == null ? void 0 : _.v) || ot(_.v) ? C || null : _.v, S = s == null ? "" : String(s), N = C.toLowerCase(), M = S.toLowerCase();
21262
+ const _ = n[w][v], T = Ya(_), C = Wo(_), $ = T || h.isNil(_ == null ? void 0 : _.v) || ot(_.v) ? C || null : _.v, S = s == null ? "" : String(s), N = C.toLowerCase(), M = S.toLowerCase();
21263
21263
  T && u !== "textDoesNotContain" || (u === "greaterThan" && Ki($, s, ">") && !(`${w}_${v}` in r) ? r[`${w}_${v}`] = {
21264
21264
  textColor: f,
21265
21265
  cellColor: m,
@@ -21948,7 +21948,7 @@ function cu(e, t, n) {
21948
21948
  if (n = n.toString().length, r = Number(r), a = Number(a), o === "between" && (n < r || n > a) || o === "notBetween" && n >= r && n <= a || o === "equal" && n !== r || o === "notEqualTo" && n === r || o === "moreThanThe" && n <= r || o === "lessThan" && n >= r || o === "greaterOrEqualTo" && n < r || o === "lessThanOrEqualTo" && n > r)
21949
21949
  return !1;
21950
21950
  } else if (l === "date") {
21951
- if (!Kn(n) || o === "between" && (Vt(n, r) < 0 || Vt(n, a) > 0) || o === "notBetween" && Vt(n, r) >= 0 && Vt(n, a) <= 0 || o === "equal" && Vt(n, r) !== 0 || o === "notEqualTo" && Vt(n, r) === 0 || o === "earlierThan" && Vt(n, r) >= 0 || o === "noEarlierThan" && Vt(n, r) < 0 || o === "laterThan" && Vt(n, r) <= 0 || o === "noLaterThan" && Vt(n, r) > 0)
21951
+ if (!Kn(n) || o === "between" && (Wt(n, r) < 0 || Wt(n, a) > 0) || o === "notBetween" && Wt(n, r) >= 0 && Wt(n, a) <= 0 || o === "equal" && Wt(n, r) !== 0 || o === "notEqualTo" && Wt(n, r) === 0 || o === "earlierThan" && Wt(n, r) >= 0 || o === "noEarlierThan" && Wt(n, r) < 0 || o === "laterThan" && Wt(n, r) <= 0 || o === "noLaterThan" && Wt(n, r) > 0)
21952
21952
  return !1;
21953
21953
  } else if (l === "validity" && (o === "identificationNumber" && !sm(e, n) || o === "phoneNumber" && !/^1[3456789]\d{9}$/.test(n)))
21954
21954
  return !1;
@@ -22103,7 +22103,7 @@ function og(e, t, n) {
22103
22103
  const m = ep(e, [l])[l], d = 22 * (t.split(",").length || (s == null ? void 0 : s.length)) || 22;
22104
22104
  m < d && Jh(e, {
22105
22105
  [String(l)]: d
22106
- }), Wo(e, null, void 0);
22106
+ }), Vo(e, null, void 0);
22107
22107
  }
22108
22108
  function lg(e, t, n) {
22109
22109
  var p, g;
@@ -22156,7 +22156,7 @@ function lg(e, t, n) {
22156
22156
  if (f === "between" || f === "notBetween") {
22157
22157
  if (!Kn(c))
22158
22158
  return e.warnDialog = n.tooltipInfo6, !1;
22159
- if (Vt(s, c) > 0)
22159
+ if (Wt(s, c) > 0)
22160
22160
  return e.warnDialog = n.tooltipInfo7, !1;
22161
22161
  }
22162
22162
  }
@@ -22170,7 +22170,7 @@ function fm(e, t, n, r) {
22170
22170
  e.formulaCache.execFunctionExist.push({ r: l, c: o, i: n });
22171
22171
  e.formulaCache.execFunctionExist.reverse(), ln(e, null, null, null, null, r), ho(e) || (e.formulaCache.execFunctionGlobalData = null);
22172
22172
  }
22173
- function Wo(e, t, n, r = !0) {
22173
+ function Vo(e, t, n, r = !0) {
22174
22174
  t == null && (t = Se(e)), !(n == null && (n = e.luckysheet_select_save, n == null)) && r && fm(e, n, e.currentSheetId, t);
22175
22175
  }
22176
22176
  function dm(e, t, n) {
@@ -22182,7 +22182,7 @@ function dm(e, t, n) {
22182
22182
  if (ot(f))
22183
22183
  return e ? -1 : 1;
22184
22184
  if (Kn(c) && Kn(f))
22185
- return Vt(c, f);
22185
+ return Wt(c, f);
22186
22186
  if (Ge(c) && Ge(f)) {
22187
22187
  const m = rn(f).value(), d = rn(c).value();
22188
22188
  return m == null || d == null ? null : d - m;
@@ -22226,7 +22226,7 @@ function du(e, t, n, r, a, l, o, i, u) {
22226
22226
  if ((g = d == null ? void 0 : d.calcChain) == null || g.forEach((b) => {
22227
22227
  const w = f[b.r];
22228
22228
  h.isNil(w) || (b.r = w);
22229
- }), Wo(e, t, [{ row: [l, o], column: [i, u] }]), (y = e == null ? void 0 : e.hooks) != null && y.updateCellYdoc) {
22229
+ }), Vo(e, t, [{ row: [l, o], column: [i, u] }]), (y = e == null ? void 0 : e.hooks) != null && y.updateCellYdoc) {
22230
22230
  const b = [];
22231
22231
  for (let w = l; w <= o; w += 1) {
22232
22232
  const v = t[w] || [];
@@ -22598,7 +22598,7 @@ function Lt(e, t, n, r, a) {
22598
22598
  l.ct = { fa: "0%", t: "n" }, l.v = m.substring(0, m.length - 1) / 100, l.m = i;
22599
22599
  else if (co(i))
22600
22600
  l.m = m, h.isNil(l.ct) ? l.ct = { fa: "General", t: "e" } : l.ct.t = "e", l.v = i;
22601
- else if (Ws(m) && h.isNil(l.f)) {
22601
+ else if (Vs(m) && h.isNil(l.f)) {
22602
22602
  const G = m.trim().replace(/,/g, "");
22603
22603
  l.m = G, l.v = G, ((T = l.ct) == null ? void 0 : T.fa) === "@" ? l.ct = { fa: "@", t: "s" } : l.ct = { fa: "General", t: "g" };
22604
22604
  } else if (!h.isNil(l.f) && Array.isArray(i))
@@ -22607,7 +22607,7 @@ function Lt(e, t, n, r, a) {
22607
22607
  m
22608
22608
  )) {
22609
22609
  if (l.v = i, h.isNil(l.ct) ? l.ct = { fa: "General", t: "g" } : ((l.ct.fa == null || l.ct.fa === "") && (l.ct = { ...l.ct, fa: "General" }), (l.ct.t == null || l.ct.t === "") && (l.ct = { ...l.ct, t: "g" })), Ge(i) && /^[\d.,]+$/.test(m.replace(/\s/g, "")) && h.isNil(l.qp) && ((C = l.ct) == null ? void 0 : C.fa) !== "@") {
22610
- const Z = Se(e), V = ($ = Ou(l == null ? void 0 : l.f)) == null ? void 0 : $.split(","), ge = V == null ? void 0 : V.map((q) => q.trim().toUpperCase()), we = Fu(ge, r, Z);
22610
+ const Z = Se(e), W = ($ = Ou(l == null ? void 0 : l.f)) == null ? void 0 : $.split(","), ge = W == null ? void 0 : W.map((q) => q.trim().toUpperCase()), we = Fu(ge, r, Z);
22611
22611
  we && (l.ct.fa = we, ya(we) ? l.ct.t = "d" : l.ct.t = "n");
22612
22612
  }
22613
22613
  if (l.v === 1 / 0 || l.v === -1 / 0)
@@ -22619,18 +22619,18 @@ function Lt(e, t, n, r, a) {
22619
22619
  else if (l.v.toString().toLowerCase().indexOf("e") > -1)
22620
22620
  l.m = ur(l.v);
22621
22621
  else if (h.isNil(l.ct)) {
22622
- const V = Qe(Z);
22623
- V != null && (l.m = V[0].toString());
22622
+ const W = Qe(Z);
22623
+ W != null && (l.m = W[0].toString());
22624
22624
  } else {
22625
- const V = ut(l.ct.fa, Z);
22626
- l.m = V.toString();
22625
+ const W = ut(l.ct.fa, Z);
22626
+ l.m = W.toString();
22627
22627
  }
22628
22628
  }
22629
22629
  if (sd(l.f, l.v) && (((S = l.ct) == null ? void 0 : S.fa) === "General" || ((N = l.ct) == null ? void 0 : N.t) === "g" || ((M = l.ct) == null ? void 0 : M.t) === "n" && (!((z = l.ct) != null && z.fa) || ((Q = l.ct) == null ? void 0 : Q.fa) === "General"))) {
22630
- const Z = /\bNOW\s*\(/i.test(l.f), V = Is(Z);
22631
- l.ct = { fa: V, t: "d" };
22630
+ const Z = /\bNOW\s*\(/i.test(l.f), W = Is(Z);
22631
+ l.ct = { fa: W, t: "d" };
22632
22632
  const ge = Math.round(l.v * 1e9) / 1e9;
22633
- l.m = String(ut(V, ge));
22633
+ l.m = String(ut(W, ge));
22634
22634
  }
22635
22635
  } else if (!h.isNil(l.ct) && l.ct.fa === "@")
22636
22636
  l.m = m, l.v = i;
@@ -22641,7 +22641,7 @@ function Lt(e, t, n, r, a) {
22641
22641
  else {
22642
22642
  const Z = ga(i);
22643
22643
  if (Z) {
22644
- const V = new Date(
22644
+ const W = new Date(
22645
22645
  Z.year,
22646
22646
  Z.month - 1,
22647
22647
  Z.day,
@@ -22649,12 +22649,12 @@ function Lt(e, t, n, r, a) {
22649
22649
  Z.minutes,
22650
22650
  Z.seconds
22651
22651
  );
22652
- l.v = Rr(V), l.m = ut(l.ct.fa, l.v);
22652
+ l.v = Rr(W), l.m = ut(l.ct.fa, l.v);
22653
22653
  } else G && ([l.m, l.ct, l.v] = G);
22654
22654
  }
22655
22655
  } else if (!h.isNil(l.ct) && !h.isNil(l.ct.fa) && l.ct.fa !== "General") {
22656
22656
  let { fa: G } = l.ct;
22657
- const Z = ((J = (F = (le = e.getRefs) == null ? void 0 : le.call(e)) == null ? void 0 : F.globalCache) == null ? void 0 : J.enteredEditByTyping) === !0, V = e.luckysheetCellUpdate.length > 0 && !Z, ge = Z && G.includes("%") && !m.includes("%") && !Ge(i), we = V && G.includes("%") && !m.includes("%");
22657
+ const Z = ((J = (F = (le = e.getRefs) == null ? void 0 : le.call(e)) == null ? void 0 : F.globalCache) == null ? void 0 : J.enteredEditByTyping) === !0, W = e.luckysheetCellUpdate.length > 0 && !Z, ge = Z && G.includes("%") && !m.includes("%") && !Ge(i), we = W && G.includes("%") && !m.includes("%");
22658
22658
  if (ge) {
22659
22659
  const q = Qe(i);
22660
22660
  if (q) {
@@ -22712,7 +22712,7 @@ function Lt(e, t, n, r, a) {
22712
22712
  } else if (Ge(i) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(
22713
22713
  i
22714
22714
  )) {
22715
- typeof i == "string" && (i.split("").every((V) => V === "0" || V === ".") || /^0+\d/.test(i)) && (i = parseFloat(i)), l.v = i;
22715
+ typeof i == "string" && (i.split("").every((W) => W === "0" || W === ".") || /^0+\d/.test(i)) && (i = parseFloat(i)), l.v = i;
22716
22716
  const G = (Y = l.ct) == null ? void 0 : Y.dp;
22717
22717
  l.ct = { fa: "General", t: "g" }, G != null && typeof G == "number" && (l.ct.dp = G), a.m ? l.m = a.m : br(l);
22718
22718
  } else {
@@ -22730,8 +22730,8 @@ function Lt(e, t, n, r, a) {
22730
22730
  else if (typeof G == "number") {
22731
22731
  const Z = (ae = l == null ? void 0 : l.ct) == null ? void 0 : ae.fa;
22732
22732
  if (Z && Z !== "General" && Number.isFinite(G)) {
22733
- const V = Math.round(G * 1e9) / 1e9;
22734
- l.m = String(ut(Z, V));
22733
+ const W = Math.round(G * 1e9) / 1e9;
22734
+ l.m = String(ut(Z, W));
22735
22735
  } else
22736
22736
  br(l);
22737
22737
  } else typeof G == "boolean" ? l.m = G ? "TRUE" : "FALSE" : ot(G) ? l.m = "" : l.m = String(G);
@@ -22846,8 +22846,8 @@ function yo(e, t, n, r, a, l) {
22846
22846
  `), Z = (re) => {
22847
22847
  re.ct || (re.ct = {}), re.f && Array.isArray(re.ct.s) && re.ct.s.length > 0 && ((re.ct.fa == null || re.ct.fa === "") && (re.ct.fa = "General"), (re.ct.t == null || re.ct.t === "") && (re.ct.t = "g"));
22848
22848
  };
22849
- let V = "";
22850
- const ge = (re, be = V) => {
22849
+ let W = "";
22850
+ const ge = (re, be = W) => {
22851
22851
  const xe = O ?? "";
22852
22852
  return xe.length > 0 ? G(
22853
22853
  ae(xe) + be
@@ -22859,7 +22859,7 @@ function yo(e, t, n, r, a, l) {
22859
22859
  we != null && we.startsWith("=") && (we = ae(we).replace(/[\r\n]/g, ""));
22860
22860
  const q = r == null ? void 0 : r.innerHTML, A = !!q && (/<br\s*\/?>/i.test(q) || /[\r\n]/.test(q)), P = !!O && /[\r\n]/.test(O), Ce = !!q && !!O && $e.startsWith("=") && (A || P), B = Se(e);
22861
22861
  if (!B) return;
22862
- const ue = Ee(e, e.currentSheetId), { dataVerification: E } = e.luckysheetfile[ue], W = e.luckysheetfile[ue];
22862
+ const ue = Ee(e, e.currentSheetId), { dataVerification: E } = e.luckysheetfile[ue], V = e.luckysheetfile[ue];
22863
22863
  if (!h.isNil(E)) {
22864
22864
  const re = E[`${t}_${n}`];
22865
22865
  if (!h.isNil(re) && re.prohibitInput && !cu(e, re, we)) {
@@ -22896,12 +22896,12 @@ function yo(e, t, n, r, a, l) {
22896
22896
  }
22897
22897
  if (a = a || we, h.isString(a) && a.startsWith("=") && (a = ae(a)), h.isString(a) && a.startsWith("=") && a.length > 1) {
22898
22898
  const re = ts(a);
22899
- Ce && (O ?? "").startsWith("=") && re.length > a.length && (V = re.slice(a.length)), a = re;
22899
+ Ce && (O ?? "").startsWith("=") && re.length > a.length && (W = re.slice(a.length)), a = re;
22900
22900
  } else if (h.isPlainObject(a) && h.isString(a.f) && a.f.startsWith("=") && a.f.length > 1) {
22901
22901
  const re = a.f, be = ts(re);
22902
- Ce && (O ?? "").startsWith("=") && be.length > re.length && (V = be.slice(re.length)), a.f = be;
22902
+ Ce && (O ?? "").startsWith("=") && be.length > re.length && (W = be.slice(re.length)), a.f = be;
22903
22903
  }
22904
- const ve = Ce && V.length === 0;
22904
+ const ve = Ce && W.length === 0;
22905
22905
  if ((U != null && U.f ? U.f !== a : (U == null ? void 0 : U.v) !== a) && bn(e, t, n), ((f = (c = e.hooks).beforeUpdateCell) == null ? void 0 : f.call(c, t, n, a)) === !1) {
22906
22906
  hn(e);
22907
22907
  return;
@@ -22989,13 +22989,13 @@ function yo(e, t, n, r, a, l) {
22989
22989
  fs: a.fs || 10
22990
22990
  }
22991
22991
  ], Z(a)) : (_ = a.ct) == null || delete _.s, wm(a.v)) {
22992
- const be = (T = Ou(a == null ? void 0 : a.f)) == null ? void 0 : T.split(","), xe = be == null ? void 0 : be.map((Ie) => Ie.trim().toUpperCase()), We = Fu(xe, Me, B);
22993
- if (We) {
22992
+ const be = (T = Ou(a == null ? void 0 : a.f)) == null ? void 0 : T.split(","), xe = be == null ? void 0 : be.map((Ie) => Ie.trim().toUpperCase()), Ve = Fu(xe, Me, B);
22993
+ if (Ve) {
22994
22994
  const Ie = typeof a.v == "number" ? a.v : Number(String(a.v).replace(/,/g, ""));
22995
- a.m = Number.isFinite(Ie) ? String(ut(We, Ie)) : String(a.v), a.ct = {
22995
+ a.m = Number.isFinite(Ie) ? String(ut(Ve, Ie)) : String(a.v), a.ct = {
22996
22996
  ...a.ct,
22997
- fa: We,
22998
- t: ya(We) ? "d" : "n"
22997
+ fa: Ve,
22998
+ t: ya(Ve) ? "d" : "n"
22999
22999
  };
23000
23000
  }
23001
23001
  }
@@ -23060,12 +23060,12 @@ function yo(e, t, n, r, a, l) {
23060
23060
  }
23061
23061
  } catch {
23062
23062
  }
23063
- const pe = `${t}_${n}`, H = (le = W.hyperlink) == null ? void 0 : le[pe];
23063
+ const pe = `${t}_${n}`, H = (le = V.hyperlink) == null ? void 0 : le[pe];
23064
23064
  if (typeof a == "object" && a && ((F = a.ct) == null ? void 0 : F.t) === "inlineStr") {
23065
23065
  const re = Pn(a);
23066
- W.hyperlink || (W.hyperlink = {}), re.length === 0 ? delete W.hyperlink[pe] : W.hyperlink[pe] = re.length === 1 ? re[0] : re, typeof a == "object" && a && "hl" in a && delete a.hl;
23066
+ V.hyperlink || (V.hyperlink = {}), re.length === 0 ? delete V.hyperlink[pe] : V.hyperlink[pe] = re.length === 1 ? re[0] : re, typeof a == "object" && a && "hl" in a && delete a.hl;
23067
23067
  } else
23068
- H && W.hyperlink && delete W.hyperlink[pe], typeof a == "object" && a && "hl" in a && delete a.hl;
23068
+ H && V.hyperlink && delete V.hyperlink[pe], typeof a == "object" && a && "hl" in a && delete a.hl;
23069
23069
  Lt(e, t, n, Me, a), hn(e);
23070
23070
  const x = e.luckysheetfile[Ee(e, e.currentSheetId)].config || {}, X = (U == null ? void 0 : U.tb) === "2" && !h.isNil(U == null ? void 0 : U.v) && (U == null ? void 0 : U.v) !== "" || sn(U), ie = Me[t][n], fe = (ie == null ? void 0 : ie.tb) === "2" && !h.isNil(ie == null ? void 0 : ie.v) && (ie == null ? void 0 : ie.v) !== "" || sn(ie);
23071
23071
  if ((X || fe) && !((J = x.customHeight) != null && J[t]) && l && Go(e, t, Me, l), e.hooks.afterUpdateCell) {
@@ -23588,11 +23588,11 @@ function bn(e, t, n) {
23588
23588
  (a = r == null ? void 0 : r[t]) != null && a[n] && delete r[t][n].error;
23589
23589
  }
23590
23590
  function Rm(e) {
23591
- const t = e.hooks;
23592
- !(t != null && t.dataVerificationChange) && !(t != null && t.conditionFormatChange) && !(t != null && t.hyperlinkChange) || requestAnimationFrame(() => {
23591
+ var a, l, o;
23592
+ const t = (a = e.hooks) == null ? void 0 : a.dataVerificationChange, n = (l = e.hooks) == null ? void 0 : l.conditionFormatChange, r = (o = e.hooks) == null ? void 0 : o.hyperlinkChange;
23593
+ !t && !n && !r || requestAnimationFrame(() => {
23593
23594
  requestAnimationFrame(() => {
23594
- var n, r, a;
23595
- (n = t.dataVerificationChange) == null || n.call(t), (r = t.conditionFormatChange) == null || r.call(t), (a = t.hyperlinkChange) == null || a.call(t);
23595
+ t == null || t(), n == null || n(), r == null || r();
23596
23596
  });
23597
23597
  });
23598
23598
  }
@@ -23643,7 +23643,7 @@ function Dm(e, t, n = void 0, r = !1, a = void 0, l = void 0) {
23643
23643
  e.allowEdit === !1
23644
23644
  )
23645
23645
  return;
23646
- const o = e.luckysheetfile.length, i = n ?? (t == null ? void 0 : t.generateSheetId()), u = a || Wh(e.luckysheetfile, r, e);
23646
+ const o = e.luckysheetfile.length, i = n ?? (t == null ? void 0 : t.generateSheetId()), u = a || Vh(e.luckysheetfile, r, e);
23647
23647
  h.isNil(l) || (delete l.data, e.luckysheetfile.forEach((p) => (p.order = p.order < l.order ? p.order : p.order + 1, p)));
23648
23648
  const s = h.isNil(l) ? {
23649
23649
  name: a === void 0 ? u : a,
@@ -23943,26 +23943,26 @@ function Ng(e, t) {
23943
23943
  if (G == null || v[G] == null) return;
23944
23944
  let Z = [];
23945
23945
  Z = v[G];
23946
- for (let V = Q; V < K; V += 1) {
23947
- if (S[`${l + G - z}_${i + V - Q}`]) {
23946
+ for (let W = Q; W < K; W += 1) {
23947
+ if (S[`${l + G - z}_${i + W - Q}`]) {
23948
23948
  const we = {
23949
23949
  rangeType: "cell",
23950
23950
  value: {
23951
23951
  row_index: G,
23952
- col_index: V,
23953
- l: S[`${l + G - z}_${i + V - Q}`].l,
23954
- r: S[`${l + G - z}_${i + V - Q}`].r,
23955
- t: S[`${l + G - z}_${i + V - Q}`].t,
23956
- b: S[`${l + G - z}_${i + V - Q}`].b
23952
+ col_index: W,
23953
+ l: S[`${l + G - z}_${i + W - Q}`].l,
23954
+ r: S[`${l + G - z}_${i + W - Q}`].r,
23955
+ t: S[`${l + G - z}_${i + W - Q}`].t,
23956
+ b: S[`${l + G - z}_${i + W - Q}`].b
23957
23957
  }
23958
23958
  };
23959
23959
  n.borderInfo == null && (n.borderInfo = []), n.borderInfo.push(we);
23960
- } else if (S[`${G}_${V}`]) {
23960
+ } else if (S[`${G}_${W}`]) {
23961
23961
  const we = {
23962
23962
  rangeType: "cell",
23963
23963
  value: {
23964
23964
  row_index: G,
23965
- col_index: V,
23965
+ col_index: W,
23966
23966
  l: null,
23967
23967
  r: null,
23968
23968
  t: null,
@@ -23971,22 +23971,22 @@ function Ng(e, t) {
23971
23971
  };
23972
23972
  n.borderInfo == null && (n.borderInfo = []), n.borderInfo.push(we);
23973
23973
  }
23974
- if (N[`${l + G - z}_${i + V - Q}`]) {
23974
+ if (N[`${l + G - z}_${i + W - Q}`]) {
23975
23975
  M == null && (M = h.cloneDeep(
23976
23976
  e.luckysheetfile[Ee(e, e.currentSheetId)].dataVerification
23977
23977
  ));
23978
- const we = N[`${l + G - z}_${i + V - Q}`];
23979
- M[`${G}_${V}`] = we, T.push({
23978
+ const we = N[`${l + G - z}_${i + W - Q}`];
23979
+ M[`${G}_${W}`] = we, T.push({
23980
23980
  sheetId: e.currentSheetId,
23981
23981
  path: ["dataVerification"],
23982
- key: `${G}_${V}`,
23982
+ key: `${G}_${W}`,
23983
23983
  value: JSON.parse(JSON.stringify(we)),
23984
23984
  type: "update"
23985
23985
  });
23986
23986
  }
23987
- Mi(Z[V]) && Z[V].mc && (Z[V].mc.rs && delete n.merge[`${Z[V].mc.r}_${Z[V].mc.c}`], delete Z[V].mc);
23987
+ Mi(Z[W]) && Z[W].mc && (Z[W].mc.rs && delete n.merge[`${Z[W].mc.r}_${Z[W].mc.c}`], delete Z[W].mc);
23988
23988
  let ge = null;
23989
- if (s[G - z] != null && s[G - z][V - Q] != null && (ge = s[G - z][V - Q]), Mi(Z[V]) ? Z[V].ct && Z[V].ct.t === "inlineStr" && ge ? delete ge.ct : [
23989
+ if (s[G - z] != null && s[G - z][W - Q] != null && (ge = s[G - z][W - Q]), Mi(Z[W]) ? Z[W].ct && Z[W].ct.t === "inlineStr" && ge ? delete ge.ct : [
23990
23990
  "bg",
23991
23991
  "fc",
23992
23992
  "ct",
@@ -24000,24 +24000,24 @@ function Ng(e, t) {
24000
24000
  "ff",
24001
24001
  "tb"
24002
24002
  ].forEach((q) => {
24003
- Reflect.deleteProperty(Z[V], q);
24004
- }) : Z[V] = { v: Z[V] }, ge != null && (delete ge.v, delete ge.m, delete ge.f, delete ge.spl, ge.ct && ge.ct.t === "inlineStr" && delete ge.ct, Z[V] = h.assign(Z[V], h.cloneDeep(ge)), Z[V].ct && Z[V].ct.t === "inlineStr" && Z[V].ct.s.forEach((we) => h.assign(we, ge)), r && Z[V].mc && (Z[V].mc.rs != null ? (Z[V].mc.r = G, Z[V].mc.rs + G >= le && (Z[V].mc.rs = le - G), Z[V].mc.c = V, Z[V].mc.cs + V >= K && (Z[V].mc.cs = K - V), n.merge[`${Z[V].mc.r}_${Z[V].mc.c}`] = Z[V].mc, ae[`${ge.mc.r}_${ge.mc.c}`] = [
24005
- Z[V].mc.r,
24006
- Z[V].mc.c
24007
- ]) : Z[V] = {
24003
+ Reflect.deleteProperty(Z[W], q);
24004
+ }) : Z[W] = { v: Z[W] }, ge != null && (delete ge.v, delete ge.m, delete ge.f, delete ge.spl, ge.ct && ge.ct.t === "inlineStr" && delete ge.ct, Z[W] = h.assign(Z[W], h.cloneDeep(ge)), Z[W].ct && Z[W].ct.t === "inlineStr" && Z[W].ct.s.forEach((we) => h.assign(we, ge)), r && Z[W].mc && (Z[W].mc.rs != null ? (Z[W].mc.r = G, Z[W].mc.rs + G >= le && (Z[W].mc.rs = le - G), Z[W].mc.c = W, Z[W].mc.cs + W >= K && (Z[W].mc.cs = K - W), n.merge[`${Z[W].mc.r}_${Z[W].mc.c}`] = Z[W].mc, ae[`${ge.mc.r}_${ge.mc.c}`] = [
24005
+ Z[W].mc.r,
24006
+ Z[W].mc.c
24007
+ ]) : Z[W] = {
24008
24008
  mc: {
24009
24009
  r: ae[`${ge.mc.r}_${ge.mc.c}`][0],
24010
24010
  c: ae[`${ge.mc.r}_${ge.mc.c}`][1]
24011
24011
  }
24012
- }), Z[V].v != null && ge.ct != null && ge.ct.fa != null)) {
24013
- const we = ut(ge.ct.fa, Z[V].v);
24014
- Z[V].m = we;
24012
+ }), Z[W].v != null && ge.ct != null && ge.ct.fa != null)) {
24013
+ const we = ut(ge.ct.fa, Z[W].v);
24014
+ Z[W].m = we;
24015
24015
  }
24016
24016
  _.push({
24017
24017
  sheetId: e.currentSheetId,
24018
24018
  path: ["celldata"],
24019
- value: { r: G, c: V, v: Z[V] ?? null },
24020
- key: `${G}_${V}`,
24019
+ value: { r: G, c: W, v: Z[W] ?? null },
24020
+ key: `${G}_${W}`,
24021
24021
  type: "update"
24022
24022
  });
24023
24023
  }
@@ -24052,11 +24052,11 @@ function Ng(e, t) {
24052
24052
  if (!h.isNil(O) && O.length > 0) {
24053
24053
  const $e = Ee(e, e.currentSheetId), ae = e.luckysheetfile[$e].luckysheet_conditionformat_save, G = h.cloneDeep(ae) ?? [];
24054
24054
  for (let Z = 0; Z < O.length; Z += 1) {
24055
- const V = O[Z].cellrange;
24055
+ const W = O[Z].cellrange;
24056
24056
  let ge = [];
24057
- for (let we = 0; we < V.length; we += 1) {
24057
+ for (let we = 0; we < W.length; we += 1) {
24058
24058
  const q = uu(
24059
- V[we],
24059
+ W[we],
24060
24060
  { row: [l, o], column: [i, u] },
24061
24061
  { row: [f, m], column: [d, p] },
24062
24062
  "operatePart"
@@ -24086,7 +24086,7 @@ function Ng(e, t) {
24086
24086
  function gu(e, t) {
24087
24087
  e == null && (e = t.luckysheet_selection_range), e = JSON.parse(JSON.stringify(e));
24088
24088
  }
24089
- function Wt(e, t, n, r) {
24089
+ function Vt(e, t, n, r) {
24090
24090
  let a = !1;
24091
24091
  const l = Se(e);
24092
24092
  if (h.isNil(l) || h.isNil(l[t])) return !1;
@@ -24127,7 +24127,7 @@ function fn(e, t, n, r) {
24127
24127
  (h.isNil(o) || f.r < o) && (o = f.r);
24128
24128
  }
24129
24129
  }
24130
- if (!h.isNil(o) && Wt(e, o - 1, n, r) && o > 0)
24130
+ if (!h.isNil(o) && Vt(e, o - 1, n, r) && o > 0)
24131
24131
  u = o;
24132
24132
  else
24133
24133
  break;
@@ -24144,7 +24144,7 @@ function fn(e, t, n, r) {
24144
24144
  (h.isNil(i) || f.r + f.rs - 1 > i) && (i = f.r + f.rs - 1);
24145
24145
  }
24146
24146
  }
24147
- if (!h.isNil(i) && Wt(e, i + 1, n, r) && i < l)
24147
+ if (!h.isNil(i) && Vt(e, i + 1, n, r) && i < l)
24148
24148
  u = i;
24149
24149
  else
24150
24150
  break;
@@ -24283,16 +24283,16 @@ function kg(e, t, n, r) {
24283
24283
  if (h.isNil(p) || h.isNil(g)) return;
24284
24284
  const y = u.length, b = u[0].length;
24285
24285
  if (t === "down") {
24286
- if (Wt(e, p, m, d)) {
24286
+ if (Vt(e, p, m, d)) {
24287
24287
  const T = fn(e, p, m, d), C = T[0], $ = T[1];
24288
24288
  if (!h.isNil(C) && C > c && $ === f) {
24289
- if (n > 0 && Wt(e, c, m, d)) {
24289
+ if (n > 0 && Vt(e, c, m, d)) {
24290
24290
  const S = fn(e, c, m, d)[1];
24291
24291
  h.isNil(S) || (c = S);
24292
24292
  }
24293
24293
  c += n;
24294
24294
  } else if (!h.isNil($) && $ < f && C === c) {
24295
- if (n < 0 && Wt(e, f, m, d)) {
24295
+ if (n < 0 && Vt(e, f, m, d)) {
24296
24296
  const S = fn(e, c, m, d)[0];
24297
24297
  h.isNil(S) || (f = S);
24298
24298
  }
@@ -24300,13 +24300,13 @@ function kg(e, t, n, r) {
24300
24300
  } else
24301
24301
  n > 0 ? f += n : c += n;
24302
24302
  } else if (p > c && p === f) {
24303
- if (n > 0 && Wt(e, c, m, d)) {
24303
+ if (n > 0 && Vt(e, c, m, d)) {
24304
24304
  const T = fn(e, c, m, d)[1];
24305
24305
  h.isNil(T) || (c = T);
24306
24306
  }
24307
24307
  c += n;
24308
24308
  } else if (p < f && p === c) {
24309
- if (n < 0 && Wt(e, f, m, d)) {
24309
+ if (n < 0 && Vt(e, f, m, d)) {
24310
24310
  const T = fn(e, f, m, d)[0];
24311
24311
  h.isNil(T) || (f = T);
24312
24312
  }
@@ -24370,29 +24370,29 @@ function kg(e, t, n, r) {
24370
24370
  let c = s.row[0], f = s.row[1], m = s.column[0], d = s.column[1];
24371
24371
  const p = s.row_focus, g = s.column_focus, y = u.length, b = u[0].length;
24372
24372
  if (t === "down") {
24373
- if (!h.isNil(p) && Wt(e, p, m, d)) {
24373
+ if (!h.isNil(p) && Vt(e, p, m, d)) {
24374
24374
  const N = fn(e, p, m, d), M = N[0], z = N[1];
24375
24375
  if (!h.isNil(M) && M > c && z === f) {
24376
- if (n > 0 && Wt(e, c, m, d)) {
24376
+ if (n > 0 && Vt(e, c, m, d)) {
24377
24377
  const Q = fn(e, c, m, d)[1];
24378
24378
  h.isNil(Q) || (c = Q);
24379
24379
  }
24380
24380
  c += n;
24381
24381
  } else if (!h.isNil(z) && z < f && M === c) {
24382
- if (n < 0 && Wt(e, f, m, d)) {
24382
+ if (n < 0 && Vt(e, f, m, d)) {
24383
24383
  const Q = fn(e, f, m, d)[0];
24384
24384
  h.isNil(Q) || (f = Q), f += n;
24385
24385
  }
24386
24386
  } else
24387
24387
  n > 0 ? f += n : c += n;
24388
24388
  } else if (!h.isNil(p) && p > c && p === f) {
24389
- if (n > 0 && Wt(e, c, m, d)) {
24389
+ if (n > 0 && Vt(e, c, m, d)) {
24390
24390
  const N = fn(e, c, m, d)[1];
24391
24391
  h.isNil(N) || (c = N);
24392
24392
  }
24393
24393
  c += n;
24394
24394
  } else if (!h.isNil(p) && p < f && p === c) {
24395
- if (n < 0 && Wt(e, f, m, d)) {
24395
+ if (n < 0 && Vt(e, f, m, d)) {
24396
24396
  const N = fn(e, f, m, d)[0];
24397
24397
  h.isNil(N) || (f = N);
24398
24398
  }
@@ -24529,29 +24529,29 @@ function Um(e, t, n, r) {
24529
24529
  for (let G = T; G < T + N.mc.rs; G += 1)
24530
24530
  for (let Z = $; Z < $ + N.mc.cs; Z += 1) {
24531
24531
  if (G === T && d[`${G}_${Z}`] && d[`${G}_${Z}`].t) {
24532
- const V = d[`${G}_${Z}`].t.style, ge = d[`${G}_${Z}`].t.color;
24533
- h.isNil(Y.style[V]) ? Y.style[V] = 1 : Y.style[V] += 1, h.isNil(Y.color[ge]) ? Y.color[ge] = 1 : Y.color[ge] += 1;
24532
+ const W = d[`${G}_${Z}`].t.style, ge = d[`${G}_${Z}`].t.color;
24533
+ h.isNil(Y.style[W]) ? Y.style[W] = 1 : Y.style[W] += 1, h.isNil(Y.color[ge]) ? Y.color[ge] = 1 : Y.color[ge] += 1;
24534
24534
  }
24535
24535
  if (G === T + N.mc.rs - 1 && d[`${G}_${Z}`] && d[`${G}_${Z}`].b) {
24536
- const V = d[`${G}_${Z}`].b.style, ge = d[`${G}_${Z}`].b.color;
24537
- h.isNil(O.style[V]) ? O.style[V] = 1 : O.style[V] += 1, h.isNil(O.color[ge]) ? O.color[ge] = 1 : O.color[ge] += 1;
24536
+ const W = d[`${G}_${Z}`].b.style, ge = d[`${G}_${Z}`].b.color;
24537
+ h.isNil(O.style[W]) ? O.style[W] = 1 : O.style[W] += 1, h.isNil(O.color[ge]) ? O.color[ge] = 1 : O.color[ge] += 1;
24538
24538
  }
24539
24539
  if (Z === $ && d[`${G}_${Z}`] && d[`${G}_${Z}`].l) {
24540
- const V = d[`${T}_${$}`].l.style, ge = d[`${G}_${Z}`].l.color;
24541
- h.isNil(J.style[V]) ? J.style[V] = 1 : J.style[V] += 1, h.isNil(J.color[ge]) ? J.color[ge] = 1 : J.color[ge] += 1;
24540
+ const W = d[`${T}_${$}`].l.style, ge = d[`${G}_${Z}`].l.color;
24541
+ h.isNil(J.style[W]) ? J.style[W] = 1 : J.style[W] += 1, h.isNil(J.color[ge]) ? J.color[ge] = 1 : J.color[ge] += 1;
24542
24542
  }
24543
24543
  if (Z === $ + N.mc.cs - 1 && d[`${G}_${Z}`] && d[`${G}_${Z}`].r) {
24544
- const V = d[`${G}_${Z}`].r.style, ge = d[`${G}_${Z}`].r.color;
24545
- h.isNil(j.style[V]) ? j.style[V] = 1 : j.style[V] += 1, h.isNil(j.color[ge]) ? j.color[ge] = 1 : j.color[ge] += 1;
24544
+ const W = d[`${G}_${Z}`].r.style, ge = d[`${G}_${Z}`].r.color;
24545
+ h.isNil(j.style[W]) ? j.style[W] = 1 : j.style[W] += 1, h.isNil(j.color[ge]) ? j.color[ge] = 1 : j.color[ge] += 1;
24546
24546
  }
24547
24547
  }
24548
24548
  const $e = N.mc.rs, ae = N.mc.cs;
24549
24549
  if (JSON.stringify(J).length > 23) {
24550
24550
  let G = null, Z = null;
24551
- Object.keys(J.color).forEach((V) => {
24552
- J.color[V] >= $e / 2 && (G = V);
24553
- }), Object.keys(J.style).forEach((V) => {
24554
- J.style[V] >= $e / 2 && (Z = V);
24551
+ Object.keys(J.color).forEach((W) => {
24552
+ J.color[W] >= $e / 2 && (G = W);
24553
+ }), Object.keys(J.style).forEach((W) => {
24554
+ J.style[W] >= $e / 2 && (Z = W);
24555
24555
  }), !h.isNil(G) && !h.isNil(Z) && (M += `border-left:${zt(
24556
24556
  Z,
24557
24557
  G
@@ -24559,10 +24559,10 @@ function Um(e, t, n, r) {
24559
24559
  }
24560
24560
  if (JSON.stringify(j).length > 23) {
24561
24561
  let G = null, Z = null;
24562
- Object.keys(j.color).forEach((V) => {
24563
- j.color[V] >= $e / 2 && (G = V);
24564
- }), Object.keys(j.style).forEach((V) => {
24565
- j.style[V] >= $e / 2 && (Z = V);
24562
+ Object.keys(j.color).forEach((W) => {
24563
+ j.color[W] >= $e / 2 && (G = W);
24564
+ }), Object.keys(j.style).forEach((W) => {
24565
+ j.style[W] >= $e / 2 && (Z = W);
24566
24566
  }), !h.isNil(G) && !h.isNil(Z) && (M += `border-right:${zt(
24567
24567
  Z,
24568
24568
  G
@@ -24570,10 +24570,10 @@ function Um(e, t, n, r) {
24570
24570
  }
24571
24571
  if (JSON.stringify(Y).length > 23) {
24572
24572
  let G = null, Z = null;
24573
- Object.keys(Y.color).forEach((V) => {
24574
- Y.color[V] >= ae / 2 && (G = V);
24575
- }), Object.keys(Y.style).forEach((V) => {
24576
- Y.style[V] >= ae / 2 && (Z = V);
24573
+ Object.keys(Y.color).forEach((W) => {
24574
+ Y.color[W] >= ae / 2 && (G = W);
24575
+ }), Object.keys(Y.style).forEach((W) => {
24576
+ Y.style[W] >= ae / 2 && (Z = W);
24577
24577
  }), !h.isNil(G) && !h.isNil(Z) && (M += `border-top:${zt(
24578
24578
  Z,
24579
24579
  G
@@ -24581,10 +24581,10 @@ function Um(e, t, n, r) {
24581
24581
  }
24582
24582
  if (JSON.stringify(O).length > 23) {
24583
24583
  let G = null, Z = null;
24584
- Object.keys(O.color).forEach((V) => {
24585
- O.color[V] >= ae / 2 && (G = V);
24586
- }), Object.keys(O.style).forEach((V) => {
24587
- O.style[V] >= ae / 2 && (Z = V);
24584
+ Object.keys(O.color).forEach((W) => {
24585
+ O.color[W] >= ae / 2 && (G = W);
24586
+ }), Object.keys(O.style).forEach((W) => {
24587
+ O.style[W] >= ae / 2 && (Z = W);
24588
24588
  }), !h.isNil(G) && !h.isNil(Z) && (M += `border-bottom:${zt(
24589
24589
  Z,
24590
24590
  G
@@ -25610,7 +25610,7 @@ function zm(e, t, n) {
25610
25610
  }
25611
25611
  e.ch_width += r;
25612
25612
  }
25613
- function Vg(e, t) {
25613
+ function Wg(e, t) {
25614
25614
  if ((e == null ? void 0 : e.length) > 0) {
25615
25615
  let n = !1;
25616
25616
  const r = [];
@@ -25619,7 +25619,7 @@ function Vg(e, t) {
25619
25619
  }), n || (e[0].status = 1);
25620
25620
  }
25621
25621
  }
25622
- function Wg(e) {
25622
+ function Vg(e) {
25623
25623
  const t = e.luckysheetfile.filter(
25624
25624
  (n) => h.isUndefined(n.hide) || n.hide !== 1
25625
25625
  );
@@ -25645,7 +25645,7 @@ function jg(e, t, n) {
25645
25645
  );
25646
25646
  }
25647
25647
  function Ym(e, t, n, r, a, l) {
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;
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, W, ge, we, q, A, P, Ce, B, ue, E, V, 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, Ve, 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, Wl, Vl, 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;
25649
25649
  const o = {}, i = Se(e);
25650
25650
  let u, s;
25651
25651
  if (!l)
@@ -25665,8 +25665,8 @@ function Ym(e, t, n, r, a, l) {
25665
25665
  if (Ei === "range") {
25666
25666
  const { borderType: Ae } = c[Pt], de = c[Pt].color, he = c[Pt].style, Pe = c[Pt].range;
25667
25667
  for (let He = 0; He < Pe.length; He += 1) {
25668
- let ke = Pe[He].row[0], Re = Pe[He].row[1], Ve = Pe[He].column[0], je = Pe[He].column[1];
25669
- if (ke < t && (ke = t), Re > n && (Re = n), Ve < r && (Ve = r), je > a && (je = a), Ae === "border-slash") {
25668
+ let ke = Pe[He].row[0], Re = Pe[He].row[1], We = Pe[He].column[0], je = Pe[He].column[1];
25669
+ if (ke < t && (ke = t), Re > n && (Re = n), We < r && (We = r), je > a && (je = a), Ae === "border-slash") {
25670
25670
  const k = Pe[0].row_focus, R = Pe[0].column_focus;
25671
25671
  if (!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[k]) || R < r || R > a || k < t || k > n) continue;
25672
25672
  o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), o[`${k}_${R}`].s = {
@@ -25678,11 +25678,11 @@ function Ym(e, t, n, r, a, l) {
25678
25678
  for (let k = ke; k <= Re; k += 1) {
25679
25679
  if (!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[k]))
25680
25680
  continue;
25681
- o[`${k}_${Ve}`] === void 0 && (o[`${k}_${Ve}`] = {}), o[`${k}_${Ve}`].l = {
25681
+ o[`${k}_${We}`] === void 0 && (o[`${k}_${We}`] = {}), o[`${k}_${We}`].l = {
25682
25682
  color: de,
25683
25683
  style: he
25684
25684
  };
25685
- const R = Ve - 1;
25685
+ const R = We - 1;
25686
25686
  if (R >= 0 && o[`${k}_${R}`])
25687
25687
  if (h.isNil((m = (f = s[k]) == null ? void 0 : f[R]) == null ? void 0 : m.mc))
25688
25688
  o[`${k}_${R}`].r = {
@@ -25699,7 +25699,7 @@ function Ym(e, t, n, r, a, l) {
25699
25699
  const se = u.merge || {};
25700
25700
  Object.keys(se).forEach((oe) => {
25701
25701
  const { c: Fe, r: en, cs: Nn, rs: Sn } = se[oe];
25702
- Ve <= Fe + Nn - 1 && Ve > Fe && k >= en && k <= en + Sn - 1 && (o[`${k}_${Ve}`].l = null);
25702
+ We <= Fe + Nn - 1 && We > Fe && k >= en && k <= en + Sn - 1 && (o[`${k}_${We}`].l = null);
25703
25703
  });
25704
25704
  }
25705
25705
  else if (Ae === "border-right")
@@ -25733,7 +25733,7 @@ function Ym(e, t, n, r, a, l) {
25733
25733
  else if (Ae === "border-top") {
25734
25734
  if (!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[ke]))
25735
25735
  continue;
25736
- for (let k = Ve; k <= je; k += 1) {
25736
+ for (let k = We; k <= je; k += 1) {
25737
25737
  o[`${ke}_${k}`] === void 0 && (o[`${ke}_${k}`] = {}), o[`${ke}_${k}`].t = {
25738
25738
  color: de,
25739
25739
  style: he
@@ -25761,7 +25761,7 @@ function Ym(e, t, n, r, a, l) {
25761
25761
  } else if (Ae === "border-bottom") {
25762
25762
  if (!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[Re]))
25763
25763
  continue;
25764
- for (let k = Ve; k <= je; k += 1) {
25764
+ for (let k = We; k <= je; k += 1) {
25765
25765
  o[`${Re}_${k}`] === void 0 && (o[`${Re}_${k}`] = {}), o[`${Re}_${k}`].b = {
25766
25766
  color: de,
25767
25767
  style: he
@@ -25789,7 +25789,7 @@ function Ym(e, t, n, r, a, l) {
25789
25789
  } else if (Ae === "border-all") {
25790
25790
  for (let k = ke; k <= Re; k += 1)
25791
25791
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[k])))
25792
- for (let R = Ve; R <= je; R += 1) {
25792
+ for (let R = We; R <= je; R += 1) {
25793
25793
  if (h.isNil((J = (F = s[k]) == null ? void 0 : F[R]) == null ? void 0 : J.mc))
25794
25794
  o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), o[`${k}_${R}`].l = {
25795
25795
  color: de,
@@ -25829,7 +25829,7 @@ function Ym(e, t, n, r, a, l) {
25829
25829
  style: he
25830
25830
  };
25831
25831
  else {
25832
- const oe = s[se][R], Fe = (V = u.merge) == null ? void 0 : V[`${(G = oe == null ? void 0 : oe.mc) == null ? void 0 : G.r}_${(Z = oe == null ? void 0 : oe.mc) == null ? void 0 : Z.c}`];
25832
+ const oe = s[se][R], Fe = (W = u.merge) == null ? void 0 : W[`${(G = oe == null ? void 0 : oe.mc) == null ? void 0 : G.r}_${(Z = oe == null ? void 0 : oe.mc) == null ? void 0 : Z.c}`];
25833
25833
  Fe && Fe.r + Fe.rs - 1 === se && (o[`${se}_${R}`].b = {
25834
25834
  color: de,
25835
25835
  style: he
@@ -25852,8 +25852,8 @@ function Ym(e, t, n, r, a, l) {
25852
25852
  });
25853
25853
  }
25854
25854
  }
25855
- if (R === Ve) {
25856
- const se = Ve - 1;
25855
+ if (R === We) {
25856
+ const se = We - 1;
25857
25857
  if (se >= 0 && o[`${k}_${se}`])
25858
25858
  if (h.isNil((B = (Ce = s[k]) == null ? void 0 : Ce[se]) == null ? void 0 : B.mc))
25859
25859
  o[`${k}_${se}`].r = {
@@ -25861,7 +25861,7 @@ function Ym(e, t, n, r, a, l) {
25861
25861
  style: he
25862
25862
  };
25863
25863
  else {
25864
- const oe = s[k][se], Fe = (W = u.merge) == null ? void 0 : W[`${(ue = oe == null ? void 0 : oe.mc) == null ? void 0 : ue.r}_${(E = oe == null ? void 0 : oe.mc) == null ? void 0 : E.c}`];
25864
+ const oe = s[k][se], Fe = (V = u.merge) == null ? void 0 : V[`${(ue = oe == null ? void 0 : oe.mc) == null ? void 0 : ue.r}_${(E = oe == null ? void 0 : oe.mc) == null ? void 0 : E.c}`];
25865
25865
  Fe && Fe.c + Fe.cs - 1 === se && (o[`${k}_${se}`].r = {
25866
25866
  color: de,
25867
25867
  style: he
@@ -25888,8 +25888,8 @@ function Ym(e, t, n, r, a, l) {
25888
25888
  } else if (Ae === "border-outside") {
25889
25889
  for (let k = ke; k <= Re; k += 1)
25890
25890
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[k]))) {
25891
- for (let R = Ve; R <= je; R += 1)
25892
- if (k === ke || k === Re || R === Ve || R === je) {
25891
+ for (let R = We; R <= je; R += 1)
25892
+ if (k === ke || k === Re || R === We || R === je) {
25893
25893
  if (k === ke) {
25894
25894
  o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), o[`${k}_${R}`].t = {
25895
25895
  color: de,
@@ -25930,12 +25930,12 @@ function Ym(e, t, n, r, a, l) {
25930
25930
  });
25931
25931
  }
25932
25932
  }
25933
- if (R === Ve) {
25933
+ if (R === We) {
25934
25934
  o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), o[`${k}_${R}`].l = {
25935
25935
  color: de,
25936
25936
  style: he
25937
25937
  };
25938
- const se = Ve - 1;
25938
+ const se = We - 1;
25939
25939
  if (se >= 0 && o[`${k}_${se}`])
25940
25940
  if (h.isNil((pe = (L = s[k]) == null ? void 0 : L[se]) == null ? void 0 : pe.mc))
25941
25941
  o[`${k}_${se}`].r = {
@@ -25975,16 +25975,16 @@ function Ym(e, t, n, r, a, l) {
25975
25975
  } else if (Ae === "border-inside") {
25976
25976
  for (let k = ke; k <= Re; k += 1)
25977
25977
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[k])))
25978
- for (let R = Ve; R <= je; R += 1)
25979
- if (k === ke && R === Ve)
25980
- h.isNil((Ie = (We = s[k]) == null ? void 0 : We[R]) == null ? void 0 : Ie.mc) && (o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), !k === Re && (o[`${k}_${R}`].r = {
25978
+ for (let R = We; R <= je; R += 1)
25979
+ if (k === ke && R === We)
25980
+ h.isNil((Ie = (Ve = s[k]) == null ? void 0 : Ve[R]) == null ? void 0 : Ie.mc) && (o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), !k === Re && (o[`${k}_${R}`].r = {
25981
25981
  color: de,
25982
25982
  style: he
25983
25983
  }), !R === je && (o[`${k}_${R}`].b = {
25984
25984
  color: de,
25985
25985
  style: he
25986
25986
  }));
25987
- else if (k === Re && R === Ve)
25987
+ else if (k === Re && R === We)
25988
25988
  h.isNil((nt = (De = s[k]) == null ? void 0 : De[R]) == null ? void 0 : nt.mc) && (o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), !k === Re && (o[`${k}_${R}`].r = {
25989
25989
  color: de,
25990
25990
  style: he
@@ -26052,7 +26052,7 @@ function Ym(e, t, n, r, a, l) {
26052
26052
  style: he
26053
26053
  }));
26054
26054
  }
26055
- else if (R === Ve)
26055
+ else if (R === We)
26056
26056
  if (h.isNil((ll = (ol = s[k]) == null ? void 0 : ol[R]) == null ? void 0 : ll.mc))
26057
26057
  o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), !k === Re && (o[`${k}_${R}`].r = {
26058
26058
  color: de,
@@ -26129,7 +26129,7 @@ function Ym(e, t, n, r, a, l) {
26129
26129
  } else if (Ae === "border-horizontal") {
26130
26130
  for (let k = ke; k <= Re; k += 1)
26131
26131
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[k])))
26132
- for (let R = Ve; R <= je; R += 1)
26132
+ for (let R = We; R <= je; R += 1)
26133
26133
  if (k === ke)
26134
26134
  h.isNil((_l = (vl = s[k]) == null ? void 0 : vl[R]) == null ? void 0 : _l.mc) && (o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), o[`${k}_${R}`].b = {
26135
26135
  color: de,
@@ -26161,8 +26161,8 @@ function Ym(e, t, n, r, a, l) {
26161
26161
  } else if (Ae === "border-vertical") {
26162
26162
  for (let k = ke; k <= Re; k += 1)
26163
26163
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[k])))
26164
- for (let R = Ve; R <= je; R += 1)
26165
- if (R === Ve)
26164
+ for (let R = We; R <= je; R += 1)
26165
+ if (R === We)
26166
26166
  h.isNil((Ml = (El = s[k]) == null ? void 0 : El[R]) == null ? void 0 : Ml.mc) && (o[`${k}_${R}`] === void 0 && (o[`${k}_${R}`] = {}), o[`${k}_${R}`].r = {
26167
26167
  color: de,
26168
26168
  style: he
@@ -26193,7 +26193,7 @@ function Ym(e, t, n, r, a, l) {
26193
26193
  } else if (Ae === "border-none") {
26194
26194
  for (let k = ke; k <= Re; k += 1)
26195
26195
  if (!(!h.isNil(u.rowhidden) && !h.isNil(u.rowhidden[k])))
26196
- for (let R = Ve; R <= je; R += 1) {
26196
+ for (let R = We; R <= je; R += 1) {
26197
26197
  if (h.isNil(o[`${k}_${R}`]) || delete o[`${k}_${R}`], k === ke) {
26198
26198
  const se = ke - 1;
26199
26199
  se >= 0 && o[`${se}_${R}`] && delete o[`${se}_${R}`].b;
@@ -26202,8 +26202,8 @@ function Ym(e, t, n, r, a, l) {
26202
26202
  const se = Re + 1;
26203
26203
  se < s.length && o[`${se}_${R}`] && delete o[`${se}_${R}`].t;
26204
26204
  }
26205
- if (R === Ve) {
26206
- const se = Ve - 1;
26205
+ if (R === We) {
26206
+ const se = We - 1;
26207
26207
  se >= 0 && o[`${k}_${se}`] && delete o[`${k}_${se}`].r;
26208
26208
  }
26209
26209
  if (R === je) {
@@ -26321,8 +26321,8 @@ function Ym(e, t, n, r, a, l) {
26321
26321
  style: Ae.l.style
26322
26322
  };
26323
26323
  else {
26324
- const Re = s[de][ke], Ve = (Gl = u.merge) == null ? void 0 : Gl[`${(Vl = Re == null ? void 0 : Re.mc) == null ? void 0 : Vl.r}_${(Wl = Re == null ? void 0 : Re.mc) == null ? void 0 : Wl.c}`];
26325
- Ve && Ve.c + Ve.cs - 1 === ke && (o[`${de}_${ke}`].r = {
26324
+ const Re = s[de][ke], We = (Gl = u.merge) == null ? void 0 : Gl[`${(Wl = Re == null ? void 0 : Re.mc) == null ? void 0 : Wl.r}_${(Vl = Re == null ? void 0 : Re.mc) == null ? void 0 : Vl.c}`];
26325
+ We && We.c + We.cs - 1 === ke && (o[`${de}_${ke}`].r = {
26326
26326
  color: Ae.l.color,
26327
26327
  style: Ae.l.style
26328
26328
  });
@@ -26342,8 +26342,8 @@ function Ym(e, t, n, r, a, l) {
26342
26342
  style: Ae.r.style
26343
26343
  };
26344
26344
  else {
26345
- const Re = s[de][ke], Ve = (Ql = u.merge) == null ? void 0 : Ql[`${(Zl = Re == null ? void 0 : Re.mc) == null ? void 0 : Zl.r}_${(Kl = Re == null ? void 0 : Re.mc) == null ? void 0 : Kl.c}`];
26346
- (Ve == null ? void 0 : Ve.c) === ke && (o[`${de}_${ke}`].l = {
26345
+ const Re = s[de][ke], We = (Ql = u.merge) == null ? void 0 : Ql[`${(Zl = Re == null ? void 0 : Re.mc) == null ? void 0 : Zl.r}_${(Kl = Re == null ? void 0 : Re.mc) == null ? void 0 : Kl.c}`];
26346
+ (We == null ? void 0 : We.c) === ke && (o[`${de}_${ke}`].l = {
26347
26347
  color: Ae.r.color,
26348
26348
  style: Ae.r.style
26349
26349
  });
@@ -26363,8 +26363,8 @@ function Ym(e, t, n, r, a, l) {
26363
26363
  style: Ae.t.style
26364
26364
  };
26365
26365
  else {
26366
- const Re = s[ke][he], Ve = (ri = u.merge) == null ? void 0 : ri[`${(ti = Re == null ? void 0 : Re.mc) == null ? void 0 : ti.r}_${(ni = Re == null ? void 0 : Re.mc) == null ? void 0 : ni.c}`];
26367
- Ve && Ve.r + Ve.rs - 1 === ke && (o[`${ke}_${he}`].b = {
26366
+ const Re = s[ke][he], We = (ri = u.merge) == null ? void 0 : ri[`${(ti = Re == null ? void 0 : Re.mc) == null ? void 0 : ti.r}_${(ni = Re == null ? void 0 : Re.mc) == null ? void 0 : ni.c}`];
26367
+ We && We.r + We.rs - 1 === ke && (o[`${ke}_${he}`].b = {
26368
26368
  color: Ae.t.color,
26369
26369
  style: Ae.t.style
26370
26370
  });
@@ -26384,8 +26384,8 @@ function Ym(e, t, n, r, a, l) {
26384
26384
  style: Ae.b.style
26385
26385
  };
26386
26386
  else {
26387
- const Re = s[ke][he], Ve = (si = u.merge) == null ? void 0 : si[`${(li = Re == null ? void 0 : Re.mc) == null ? void 0 : li.r}_${(ii = Re == null ? void 0 : Re.mc) == null ? void 0 : ii.c}`];
26388
- (Ve == null ? void 0 : Ve.r) === ke && (o[`${ke}_${he}`].t = {
26387
+ const Re = s[ke][he], We = (si = u.merge) == null ? void 0 : si[`${(li = Re == null ? void 0 : Re.mc) == null ? void 0 : li.r}_${(ii = Re == null ? void 0 : Re.mc) == null ? void 0 : ii.c}`];
26388
+ (We == null ? void 0 : We.r) === ke && (o[`${ke}_${he}`].t = {
26389
26389
  color: Ae.b.color,
26390
26390
  style: Ae.b.style
26391
26391
  });
@@ -26459,7 +26459,7 @@ function Sa(e) {
26459
26459
  });
26460
26460
  }
26461
26461
  }
26462
- function Vm(e, t) {
26462
+ function Wm(e, t) {
26463
26463
  if (e === t) return !0;
26464
26464
  if (e == null || t == null) return !1;
26465
26465
  if (typeof e != "object" || typeof t != "object")
@@ -26495,12 +26495,12 @@ function wu(e, t, n, r, a, l) {
26495
26495
  }
26496
26496
  return o;
26497
26497
  }
26498
- function Wm(e, t, n, r, a, l) {
26498
+ function Vm(e, t, n, r, a, l) {
26499
26499
  const o = `${n}_${r}`, i = l == null ? void 0 : l.get(o), u = (l == null ? void 0 : l.has(o)) ?? !1;
26500
26500
  if (Bn(
26501
26501
  a
26502
26502
  )) {
26503
- if (u && Vm(i, a)) return;
26503
+ if (u && Wm(i, a)) return;
26504
26504
  e.push({
26505
26505
  sheetId: t,
26506
26506
  path: ["celldata"],
@@ -26527,7 +26527,7 @@ function Gm(e, t, n, r, a, l, o) {
26527
26527
  if (!(!p && !(o != null && o.size)))
26528
26528
  for (let g = c; g <= f; g += 1) {
26529
26529
  const y = (p == null ? void 0 : p[g]) ?? null, b = `${d}_${g}`;
26530
- y == null && !(o != null && o.has(b)) && !Bn(y) || Wm(
26530
+ y == null && !(o != null && o.has(b)) && !Bn(y) || Vm(
26531
26531
  m,
26532
26532
  e,
26533
26533
  d,
@@ -26673,7 +26673,7 @@ const sa = (e) => {
26673
26673
  }
26674
26674
  };
26675
26675
  function Jm(e, t, n = !0) {
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;
26676
+ var W, ge, we, q, A, P, Ce, B, ue, E, V, D, ne, ee, U, ye, _e, me, ve, ce, te, Oe, Me, qe, Te, I, L, pe;
26677
26677
  let { count: r, id: a } = t;
26678
26678
  const { type: l, index: o, direction: i, templateSourceRows: u, templateSourceColumns: s } = t;
26679
26679
  a = a || e.currentSheetId;
@@ -26694,7 +26694,7 @@ function Jm(e, t, n = !0) {
26694
26694
  if (n) {
26695
26695
  if (l === "row") {
26696
26696
  if (g) {
26697
- if ((V = d.rowReadOnly) != null && V[b])
26697
+ if ((W = d.rowReadOnly) != null && W[b])
26698
26698
  throw new Error("readOnly");
26699
26699
  } else if ((ge = d.rowReadOnly) != null && ge[o])
26700
26700
  throw new Error("readOnly");
@@ -26762,47 +26762,47 @@ function Jm(e, t, n = !0) {
26762
26762
  continue;
26763
26763
  const { calcChain: x } = e.luckysheetfile[H], { data: X } = e.luckysheetfile[H];
26764
26764
  for (let ie = 0; ie < x.length; ie += 1) {
26765
- const fe = h.cloneDeep(x[ie]), re = fe.r, be = fe.c, xe = fe.id, We = jo(e, re, be, xe);
26765
+ const fe = h.cloneDeep(x[ie]), re = fe.r, be = fe.c, xe = fe.id, Ve = jo(e, re, be, xe);
26766
26766
  if (l === "row" && H === c) {
26767
26767
  const Ie = `=${xt(
26768
- We,
26768
+ Ve,
26769
26769
  "add",
26770
26770
  "row",
26771
26771
  i,
26772
26772
  o,
26773
26773
  r
26774
26774
  )}`;
26775
- ((Ce = (P = m[re]) == null ? void 0 : P[be]) == null ? void 0 : Ce.f) === We && (m[re][be].f = Ie), i === "lefttop" ? re >= o && (fe.r += r) : i === "rightbottom" && re > o && (fe.r += r), S.push(fe);
26775
+ ((Ce = (P = m[re]) == null ? void 0 : P[be]) == null ? void 0 : Ce.f) === Ve && (m[re][be].f = Ie), i === "lefttop" ? re >= o && (fe.r += r) : i === "rightbottom" && re > o && (fe.r += r), S.push(fe);
26776
26776
  } else if (l === "row") {
26777
26777
  const Ie = `=${xt(
26778
- We,
26778
+ Ve,
26779
26779
  "add",
26780
26780
  "row",
26781
26781
  i,
26782
26782
  o,
26783
26783
  r
26784
26784
  )}`;
26785
- ((ue = (B = X[re]) == null ? void 0 : B[be]) == null ? void 0 : ue.f) === We && (X[re][be].f = Ie);
26785
+ ((ue = (B = X[re]) == null ? void 0 : B[be]) == null ? void 0 : ue.f) === Ve && (X[re][be].f = Ie);
26786
26786
  } else if (l === "column" && H === c) {
26787
26787
  const Ie = `=${xt(
26788
- We,
26788
+ Ve,
26789
26789
  "add",
26790
26790
  "col",
26791
26791
  i,
26792
26792
  o,
26793
26793
  r
26794
26794
  )}`;
26795
- ((W = (E = m[re]) == null ? void 0 : E[be]) == null ? void 0 : W.f) === We && (m[re][be].f = Ie), i === "lefttop" ? be >= o && (fe.c += r) : i === "rightbottom" && be > o && (fe.c += r), S.push(fe);
26795
+ ((V = (E = m[re]) == null ? void 0 : E[be]) == null ? void 0 : V.f) === Ve && (m[re][be].f = Ie), i === "lefttop" ? be >= o && (fe.c += r) : i === "rightbottom" && be > o && (fe.c += r), S.push(fe);
26796
26796
  } else if (l === "column") {
26797
26797
  const Ie = `=${xt(
26798
- We,
26798
+ Ve,
26799
26799
  "add",
26800
26800
  "col",
26801
26801
  i,
26802
26802
  o,
26803
26803
  r
26804
26804
  )}`;
26805
- ((ne = (D = X[re]) == null ? void 0 : D[be]) == null ? void 0 : ne.f) === We && (X[re][be].f = Ie);
26805
+ ((ne = (D = X[re]) == null ? void 0 : D[be]) == null ? void 0 : ne.f) === Ve && (X[re][be].f = Ie);
26806
26806
  }
26807
26807
  }
26808
26808
  _u(
@@ -26822,7 +26822,7 @@ function Jm(e, t, n = !0) {
26822
26822
  let H = N.row[0], x = N.row[1], X = N.column[0], ie = N.column[1];
26823
26823
  l === "row" ? (H < o ? (x === o && i === "lefttop" || x > o) && (x += r) : H === o ? i === "lefttop" ? (H += r, x += r) : i === "rightbottom" && x > o && (x += r) : (H += r, x += r), M != null && (z.filter = {}, h.forEach(M, (fe, re) => {
26824
26824
  const be = M[re].rowhidden, xe = {};
26825
- h.forEach(be, (We, Ie) => {
26825
+ h.forEach(be, (Ve, Ie) => {
26826
26826
  const De = parseFloat(Ie);
26827
26827
  De < o ? xe[De] = 0 : De === o ? i === "lefttop" ? xe[De + r] = 0 : i === "rightbottom" && (xe[De] = 0) : xe[De + r] = 0;
26828
26828
  }), z.filter[re] = h.cloneDeep(M[re]), z.filter[re].rowhidden = xe, z.filter[re].str = H, z.filter[re].edr = x;
@@ -26842,8 +26842,8 @@ function Jm(e, t, n = !0) {
26842
26842
  for (let H = 0; H < K.length; H += 1) {
26843
26843
  const x = K[H].cellrange, X = [];
26844
26844
  for (let fe = 0; fe < x.length; fe += 1) {
26845
- let re = x[fe].row[0], be = x[fe].row[1], xe = x[fe].column[0], We = x[fe].column[1];
26846
- l === "row" ? re < o ? (be === o && i === "lefttop" || be > o) && (be += r) : re === o ? (i === "lefttop" || i === "rightbottom" && be >= o) && (be += r) : (re += r, be += r) : l === "column" && (xe < o ? (We === o && i === "lefttop" || We > o) && (We += r) : xe === o ? (i === "lefttop" || i === "rightbottom" && We >= o) && (We += r) : (xe += r, We += r)), X.push({ row: [re, be], column: [xe, We] });
26845
+ let re = x[fe].row[0], be = x[fe].row[1], xe = x[fe].column[0], Ve = x[fe].column[1];
26846
+ l === "row" ? re < o ? (be === o && i === "lefttop" || be > o) && (be += r) : re === o ? (i === "lefttop" || i === "rightbottom" && be >= o) && (be += r) : (re += r, be += r) : l === "column" && (xe < o ? (Ve === o && i === "lefttop" || Ve > o) && (Ve += r) : xe === o ? (i === "lefttop" || i === "rightbottom" && Ve >= o) && (Ve += r) : (xe += r, Ve += r)), X.push({ row: [re, be], column: [xe, Ve] });
26847
26847
  }
26848
26848
  const ie = h.clone(K[H]);
26849
26849
  ie.cellrange = X, le.push(ie);
@@ -26932,11 +26932,11 @@ function Jm(e, t, n = !0) {
26932
26932
  }
26933
26933
  const be = jt(
26934
26934
  f.filter
26935
- ), xe = d.rowhidden_manual ?? h.omit(d.rowhidden || {}, h.keys(be)), We = {};
26935
+ ), xe = d.rowhidden_manual ?? h.omit(d.rowhidden || {}, h.keys(be)), Ve = {};
26936
26936
  h.forEach(xe, (Be, ze) => {
26937
26937
  const tt = parseFloat(ze);
26938
- tt < o ? We[tt] = xe[tt] : tt === o ? i === "lefttop" ? We[tt + r] = xe[tt] : i === "rightbottom" && (We[tt] = xe[tt]) : We[tt + r] = xe[tt];
26939
- }), d.rowhidden_manual = We;
26938
+ tt < o ? Ve[tt] = xe[tt] : tt === o ? i === "lefttop" ? Ve[tt + r] = xe[tt] : i === "rightbottom" && (Ve[tt] = xe[tt]) : Ve[tt + r] = xe[tt];
26939
+ }), d.rowhidden_manual = Ve;
26940
26940
  const Ie = (z == null ? void 0 : z.filter) != null ? jt(z.filter) : jt(M);
26941
26941
  d.rowhidden_filter = Ie, d.rowhidden = h.assign({}, d.rowhidden_manual, Ie);
26942
26942
  const De = [];
@@ -27077,14 +27077,14 @@ function Jm(e, t, n = !0) {
27077
27077
  }
27078
27078
  d.borderInfo = Ie;
27079
27079
  }
27080
- const We = d.cellFormatRanges;
27080
+ const Ve = d.cellFormatRanges;
27081
27081
  d.cellFormatRanges = Ii(
27082
27082
  d.cellFormatRanges,
27083
27083
  "column",
27084
27084
  o,
27085
27085
  r,
27086
27086
  i
27087
- ), h.isEqual(We, d.cellFormatRanges) || Qr(e, a, d.cellFormatRanges);
27087
+ ), h.isEqual(Ve, d.cellFormatRanges) || Qr(e, a, d.cellFormatRanges);
27088
27088
  for (let Ie = 0; Ie < r; Ie += 1) {
27089
27089
  const De = y ? w : o;
27090
27090
  let nt = [];
@@ -27196,7 +27196,7 @@ function Jm(e, t, n = !0) {
27196
27196
  }
27197
27197
  }
27198
27198
  function Tu(e, t) {
27199
- var F, J, j, Y, O, $e, ae, G, Z, V, ge, we, q, A, P, Ce, B;
27199
+ var F, J, j, Y, O, $e, ae, G, Z, W, ge, we, q, A, P, Ce, B;
27200
27200
  const { type: n } = t;
27201
27201
  let { start: r, end: a, id: l } = t;
27202
27202
  l = l || e.currentSheetId;
@@ -27227,16 +27227,16 @@ function Tu(e, t) {
27227
27227
  ((j = u.rowhidden) == null ? void 0 : j[ne]) == null && ue.push(ne);
27228
27228
  if (ue.length === 0) return;
27229
27229
  const E = [];
27230
- let W = ue[0], D = ue[0];
27230
+ let V = ue[0], D = ue[0];
27231
27231
  for (let ne = 1; ne < ue.length; ne += 1) {
27232
27232
  const ee = ue[ne];
27233
27233
  if (ee === D + 1) {
27234
27234
  D = ee;
27235
27235
  continue;
27236
27236
  }
27237
- E.push({ start: W, end: D }), W = ee, D = ee;
27237
+ E.push({ start: V, end: D }), V = ee, D = ee;
27238
27238
  }
27239
- E.push({ start: W, end: D });
27239
+ E.push({ start: V, end: D });
27240
27240
  for (let ne = E.length - 1; ne >= 0; ne -= 1) {
27241
27241
  const ee = E[ne];
27242
27242
  Tu(e, {
@@ -27266,24 +27266,24 @@ function Tu(e, t) {
27266
27266
  u.merge == null && (u.merge = {});
27267
27267
  const p = {};
27268
27268
  h.forEach(u.merge, (ue) => {
27269
- const { r: E } = ue, { c: W } = ue, { rs: D } = ue, { cs: ne } = ue;
27270
- n === "row" ? E < r ? E + D - 1 < r ? p[`${E}_${W}`] = { r: E, c: W, rs: D, cs: ne } : E + D - 1 >= r && E + D - 1 < a ? p[`${E}_${W}`] = { r: E, c: W, rs: r - E, cs: ne } : E + D - 1 >= a && (p[`${E}_${W}`] = { r: E, c: W, rs: D - f, cs: ne }) : E >= r && E <= a ? E + D - 1 > a && (p[`${r}_${W}`] = {
27269
+ const { r: E } = ue, { c: V } = ue, { rs: D } = ue, { cs: ne } = ue;
27270
+ n === "row" ? E < r ? E + D - 1 < r ? p[`${E}_${V}`] = { r: E, c: V, rs: D, cs: ne } : E + D - 1 >= r && E + D - 1 < a ? p[`${E}_${V}`] = { r: E, c: V, rs: r - E, cs: ne } : E + D - 1 >= a && (p[`${E}_${V}`] = { r: E, c: V, rs: D - f, cs: ne }) : E >= r && E <= a ? E + D - 1 > a && (p[`${r}_${V}`] = {
27271
27271
  r,
27272
- c: W,
27272
+ c: V,
27273
27273
  rs: E + D - 1 - a,
27274
27274
  cs: ne
27275
- }) : E > a && (p[`${E - f}_${W}`] = { r: E - f, c: W, rs: D, cs: ne }) : n === "column" && (W < r ? W + ne - 1 < r ? p[`${E}_${W}`] = { r: E, c: W, rs: D, cs: ne } : W + ne - 1 >= r && W + ne - 1 < a ? p[`${E}_${W}`] = { r: E, c: W, rs: D, cs: r - W } : W + ne - 1 >= a && (p[`${E}_${W}`] = { r: E, c: W, rs: D, cs: ne - f }) : W >= r && W <= a ? W + ne - 1 > a && (p[`${E}_${r}`] = {
27275
+ }) : E > a && (p[`${E - f}_${V}`] = { r: E - f, c: V, rs: D, cs: ne }) : n === "column" && (V < r ? V + ne - 1 < r ? p[`${E}_${V}`] = { r: E, c: V, rs: D, cs: ne } : V + ne - 1 >= r && V + ne - 1 < a ? p[`${E}_${V}`] = { r: E, c: V, rs: D, cs: r - V } : V + ne - 1 >= a && (p[`${E}_${V}`] = { r: E, c: V, rs: D, cs: ne - f }) : V >= r && V <= a ? V + ne - 1 > a && (p[`${E}_${r}`] = {
27276
27276
  r: E,
27277
27277
  c: r,
27278
27278
  rs: D,
27279
- cs: W + ne - 1 - a
27280
- }) : W > a && (p[`${E}_${W - f}`] = { r: E, c: W - f, rs: D, cs: ne }));
27279
+ cs: V + ne - 1 - a
27280
+ }) : V > a && (p[`${E}_${V - f}`] = { r: E, c: V - f, rs: D, cs: ne }));
27281
27281
  }), u.merge = p;
27282
27282
  const g = [];
27283
27283
  for (let ue = 0; ue < e.luckysheetfile.length; ue += 1) {
27284
27284
  if (h.isNil(e.luckysheetfile[ue].calcChain) || e.luckysheetfile.length === 0)
27285
27285
  continue;
27286
- const { calcChain: E } = e.luckysheetfile[ue], { data: W } = e.luckysheetfile[ue];
27286
+ const { calcChain: E } = e.luckysheetfile[ue], { data: V } = e.luckysheetfile[ue];
27287
27287
  for (let D = 0; D < E.length; D += 1) {
27288
27288
  const ne = h.cloneDeep(E[D]), ee = ne.r, U = ne.c, ye = ne.id, _e = jo(e, ee, U, ye);
27289
27289
  if (n === "row" && ue === o) {
@@ -27296,7 +27296,7 @@ function Tu(e, t) {
27296
27296
  r,
27297
27297
  f
27298
27298
  )}`;
27299
- (($e = (O = W[ee]) == null ? void 0 : O[U]) == null ? void 0 : $e.f) === _e && (W[ee][U].f = me, me.includes("#REF!") && fr(W[ee][U])), ee > a && (ne.r = ee - f), g.push(ne);
27299
+ (($e = (O = V[ee]) == null ? void 0 : O[U]) == null ? void 0 : $e.f) === _e && (V[ee][U].f = me, me.includes("#REF!") && fr(V[ee][U])), ee > a && (ne.r = ee - f), g.push(ne);
27300
27300
  }
27301
27301
  } else if (n === "row") {
27302
27302
  const me = `=${xt(
@@ -27307,7 +27307,7 @@ function Tu(e, t) {
27307
27307
  r,
27308
27308
  f
27309
27309
  )}`;
27310
- ((G = (ae = W[ee]) == null ? void 0 : ae[U]) == null ? void 0 : G.f) === _e && (W[ee][U].f = me, me === "=#REF!" && fr(W[ee][U]));
27310
+ ((G = (ae = V[ee]) == null ? void 0 : ae[U]) == null ? void 0 : G.f) === _e && (V[ee][U].f = me, me === "=#REF!" && fr(V[ee][U]));
27311
27311
  } else if (n === "column" && ue === o) {
27312
27312
  if (U < r || U > a) {
27313
27313
  const me = `=${xt(
@@ -27318,7 +27318,7 @@ function Tu(e, t) {
27318
27318
  r,
27319
27319
  f
27320
27320
  )}`;
27321
- ((V = (Z = W[ee]) == null ? void 0 : Z[U]) == null ? void 0 : V.f) === _e && (W[ee][U].f = me, me.includes("#REF!") && fr(W[ee][U])), U > a && (ne.c = U - f), g.push(ne);
27321
+ ((W = (Z = V[ee]) == null ? void 0 : Z[U]) == null ? void 0 : W.f) === _e && (V[ee][U].f = me, me.includes("#REF!") && fr(V[ee][U])), U > a && (ne.c = U - f), g.push(ne);
27322
27322
  }
27323
27323
  } else if (n === "column") {
27324
27324
  const me = `=${xt(
@@ -27329,7 +27329,7 @@ function Tu(e, t) {
27329
27329
  r,
27330
27330
  f
27331
27331
  )}`;
27332
- ((we = (ge = W[ee]) == null ? void 0 : ge[U]) == null ? void 0 : we.f) === _e && (W[ee][U].f = me, me === "=#REF!" && fr(W[ee][U]));
27332
+ ((we = (ge = V[ee]) == null ? void 0 : ge[U]) == null ? void 0 : we.f) === _e && (V[ee][U].f = me, me === "=#REF!" && fr(V[ee][U]));
27333
27333
  }
27334
27334
  }
27335
27335
  _u(
@@ -27346,31 +27346,31 @@ function Tu(e, t) {
27346
27346
  let w = null;
27347
27347
  if (!h.isEmpty(y) && y != null) {
27348
27348
  w = { filter_select: null, filter: null };
27349
- let ue = y.row[0], E = y.row[1], W = y.column[0], D = y.column[1];
27349
+ let ue = y.row[0], E = y.row[1], V = y.column[0], D = y.column[1];
27350
27350
  n === "row" ? (ue > a ? (ue -= f, E -= f, w.filter_select = {
27351
27351
  row: [ue, E],
27352
- column: [W, D]
27352
+ column: [V, D]
27353
27353
  }) : ue < r && (E < r || (E <= a ? E = r - 1 : E -= f), w.filter_select = {
27354
27354
  row: [ue, E],
27355
- column: [W, D]
27355
+ column: [V, D]
27356
27356
  }), w.filter_select != null && b != null && h.forEach(b, (ne, ee) => {
27357
27357
  const U = b[ee].rowhidden, ye = {};
27358
27358
  h.forEach(U, (_e, me) => {
27359
27359
  const ve = parseFloat(me);
27360
27360
  ve < r ? ye[ve] = 0 : ve > a && (ye[ve - f] = 0);
27361
27361
  }), h.isEmpty(ye) || (w.filter == null && (w.filter = {}), w.filter[ee] = h.cloneDeep(b[ee]), w.filter[ee].rowhidden = ye, w.filter[ee].str = ue, w.filter[ee].edr = E);
27362
- })) : n === "column" && (W > a ? (W -= f, D -= f, w.filter_select = {
27362
+ })) : n === "column" && (V > a ? (V -= f, D -= f, w.filter_select = {
27363
27363
  row: [ue, E],
27364
- column: [W, D]
27365
- }) : W < r ? (D < r || (D <= a ? D = r - 1 : D -= f), w.filter_select = {
27364
+ column: [V, D]
27365
+ }) : V < r ? (D < r || (D <= a ? D = r - 1 : D -= f), w.filter_select = {
27366
27366
  row: [ue, E],
27367
- column: [W, D]
27368
- }) : D > a && (W = r, D -= f, w.filter_select = {
27367
+ column: [V, D]
27368
+ }) : D > a && (V = r, D -= f, w.filter_select = {
27369
27369
  row: [ue, E],
27370
- column: [W, D]
27370
+ column: [V, D]
27371
27371
  }), w.filter_select != null && b != null && h.forEach(b, (ne, ee) => {
27372
27372
  let U = b[ee].cindex;
27373
- U < r ? (w.filter == null && (w.filter = {}), w.filter[U - W] = h.cloneDeep(b[ee]), w.filter[U - W].edc = D) : U > a && (U -= f, w.filter == null && (w.filter = {}), w.filter[U - W] = h.cloneDeep(b[ee]), w.filter[U - W].cindex = U, w.filter[U - W].stc = W, w.filter[U - W].edc = D);
27373
+ U < r ? (w.filter == null && (w.filter = {}), w.filter[U - V] = h.cloneDeep(b[ee]), w.filter[U - V].edc = D) : U > a && (U -= f, w.filter == null && (w.filter = {}), w.filter[U - V] = h.cloneDeep(b[ee]), w.filter[U - V].cindex = U, w.filter[U - V].stc = V, w.filter[U - V].edc = D);
27374
27374
  }));
27375
27375
  }
27376
27376
  const v = (w == null ? void 0 : w.filter) != null ? jt(w.filter) : jt(b);
@@ -27382,41 +27382,41 @@ function Tu(e, t) {
27382
27382
  const _ = i.luckysheet_conditionformat_save, T = [];
27383
27383
  if (_ != null && _.length > 0)
27384
27384
  for (let ue = 0; ue < _.length; ue += 1) {
27385
- const E = _[ue].cellrange, W = [];
27385
+ const E = _[ue].cellrange, V = [];
27386
27386
  for (let D = 0; D < E.length; D += 1) {
27387
27387
  let ne = E[D].row[0], ee = E[D].row[1], U = E[D].column[0], ye = E[D].column[1];
27388
- n === "row" ? ne >= r && ee <= a || (ne > a ? (ne -= f, ee -= f) : ne < r ? ee < r || (ee <= a ? ee = r - 1 : ee -= f) : ee > a && (ne = r, ee -= f), W.push({ row: [ne, ee], column: [U, ye] })) : n === "column" && (U >= r && ye <= a || (U > a ? (U -= f, ye -= f) : U < r ? ye < r || (ye <= a ? ye = r - 1 : ye -= f) : ye > a && (U = r, ye -= f), W.push({ row: [ne, ee], column: [U, ye] })));
27388
+ n === "row" ? ne >= r && ee <= a || (ne > a ? (ne -= f, ee -= f) : ne < r ? ee < r || (ee <= a ? ee = r - 1 : ee -= f) : ee > a && (ne = r, ee -= f), V.push({ row: [ne, ee], column: [U, ye] })) : n === "column" && (U >= r && ye <= a || (U > a ? (U -= f, ye -= f) : U < r ? ye < r || (ye <= a ? ye = r - 1 : ye -= f) : ye > a && (U = r, ye -= f), V.push({ row: [ne, ee], column: [U, ye] })));
27389
27389
  }
27390
- if (W.length > 0) {
27390
+ if (V.length > 0) {
27391
27391
  const D = h.clone(_[ue]);
27392
- D.cellrange = W, T.push(D);
27392
+ D.cellrange = V, T.push(D);
27393
27393
  }
27394
27394
  }
27395
27395
  const C = i.luckysheet_alternateformat_save, $ = [];
27396
27396
  if (C != null && C.length > 0)
27397
27397
  for (let ue = 0; ue < C.length; ue += 1) {
27398
- let E = C[ue].cellrange.row[0], W = C[ue].cellrange.row[1], D = C[ue].cellrange.column[0], ne = C[ue].cellrange.column[1];
27398
+ let E = C[ue].cellrange.row[0], V = C[ue].cellrange.row[1], D = C[ue].cellrange.column[0], ne = C[ue].cellrange.column[1];
27399
27399
  if (n === "row") {
27400
- if (!(E >= r && W <= a)) {
27400
+ if (!(E >= r && V <= a)) {
27401
27401
  const ee = h.clone(C[ue]);
27402
- E > a ? (E -= f, W -= f) : E < r ? W < r || (W <= a ? W = r - 1 : W -= f) : W > a && (E = r, W -= f), ee.cellrange = { row: [E, W], column: [D, ne] }, $.push(ee);
27402
+ E > a ? (E -= f, V -= f) : E < r ? V < r || (V <= a ? V = r - 1 : V -= f) : V > a && (E = r, V -= f), ee.cellrange = { row: [E, V], column: [D, ne] }, $.push(ee);
27403
27403
  }
27404
27404
  } else if (n === "column" && !(D >= r && ne <= a)) {
27405
27405
  const ee = h.clone(C[ue]);
27406
- D > a ? (D -= f, ne -= f) : D < r ? ne < r || (ne <= a ? ne = r - 1 : ne -= f) : ne > a && (D = r, ne -= f), ee.cellrange = { row: [E, W], column: [D, ne] }, $.push(ee);
27406
+ D > a ? (D -= f, ne -= f) : D < r ? ne < r || (ne <= a ? ne = r - 1 : ne -= f) : ne > a && (D = r, ne -= f), ee.cellrange = { row: [E, V], column: [D, ne] }, $.push(ee);
27407
27407
  }
27408
27408
  }
27409
27409
  const { frozen: S } = i;
27410
27410
  S && (n === "row" && (S.type === "rangeRow" || S.type === "rangeBoth") && (((q = S.range) == null ? void 0 : q.row_focus) ?? -1) >= r && (S.range.row_focus -= Math.min(a, S.range.row_focus) - r + 1), n === "column" && (S.type === "rangeColumn" || S.type === "rangeBoth") && (((A = S.range) == null ? void 0 : A.column_focus) ?? -1) >= r && (S.range.column_focus -= Math.min(a, S.range.column_focus) - r + 1));
27411
27411
  const { dataVerification: N } = i, M = {};
27412
27412
  N != null && h.forEach(N, (ue, E) => {
27413
- const W = Number(E.split("_")[0]), D = Number(E.split("_")[1]), ne = N[E];
27414
- n === "row" ? W < r ? M[`${W}_${D}`] = ne : W > a && (M[`${W - f}_${D}`] = ne) : n === "column" && (D < r ? M[`${W}_${D}`] = ne : D > a && (M[`${W}_${D - f}`] = ne));
27413
+ const V = Number(E.split("_")[0]), D = Number(E.split("_")[1]), ne = N[E];
27414
+ n === "row" ? V < r ? M[`${V}_${D}`] = ne : V > a && (M[`${V - f}_${D}`] = ne) : n === "column" && (D < r ? M[`${V}_${D}`] = ne : D > a && (M[`${V}_${D - f}`] = ne));
27415
27415
  });
27416
27416
  const { hyperlink: z } = i, Q = {};
27417
27417
  if (z != null && h.forEach(z, (ue, E) => {
27418
- const W = Number(E.split("_")[0]), D = Number(E.split("_")[1]), ne = z[E];
27419
- n === "row" ? W < r ? Q[`${W}_${D}`] = ne : W > a && (Q[`${W - f}_${D}`] = ne) : n === "column" && (D < r ? Q[`${W}_${D}`] = ne : D > a && (Q[`${W}_${D - f}`] = ne));
27418
+ const V = Number(E.split("_")[0]), D = Number(E.split("_")[1]), ne = z[E];
27419
+ n === "row" ? V < r ? Q[`${V}_${D}`] = ne : V > a && (Q[`${V - f}_${D}`] = ne) : n === "column" && (D < r ? Q[`${V}_${D}`] = ne : D > a && (Q[`${V}_${D - f}`] = ne));
27420
27420
  }), n === "row") {
27421
27421
  u.rowlen == null && (u.rowlen = {});
27422
27422
  const ue = {}, E = {};
@@ -27427,11 +27427,11 @@ function Tu(e, t) {
27427
27427
  const U = parseFloat(ee);
27428
27428
  U < r ? E[U] = u.rowReadOnly[U] : U > a && (E[U - f] = u.rowReadOnly[U]);
27429
27429
  }), u.rowlen = ue, u.rowReadOnly = E;
27430
- const W = {};
27430
+ const V = {};
27431
27431
  h.forEach(u.rowhidden_manual || {}, (ne, ee) => {
27432
27432
  const U = parseFloat(ee);
27433
- U < r ? W[U] = u.rowhidden_manual[U] : U > a && (W[U - f] = u.rowhidden_manual[U]);
27434
- }), u.rowhidden_manual = W;
27433
+ U < r ? V[U] = u.rowhidden_manual[U] : U > a && (V[U - f] = u.rowhidden_manual[U]);
27434
+ }), u.rowhidden_manual = V;
27435
27435
  const D = (w == null ? void 0 : w.filter) != null ? jt(w.filter) : jt(b);
27436
27436
  if (u.rowhidden_filter = D, u.rowhidden = h.assign({}, u.rowhidden_manual, D), u.customHeight == null) {
27437
27437
  u.customHeight = {};
@@ -27500,11 +27500,11 @@ function Tu(e, t) {
27500
27500
  }), u.customWidth = D;
27501
27501
  }
27502
27502
  u.colReadOnly = E, u.colhidden == null && (u.colhidden = {});
27503
- const W = {};
27503
+ const V = {};
27504
27504
  if (h.forEach(u.colhidden, (D, ne) => {
27505
27505
  const ee = parseFloat(ne);
27506
- ee < r ? W[ee] = u.colhidden[ee] : ee > a && (W[ee - f] = u.colhidden[ee]);
27507
- }), u.colhidden = W, u.borderInfo && u.borderInfo.length > 0) {
27506
+ ee < r ? V[ee] = u.colhidden[ee] : ee > a && (V[ee - f] = u.colhidden[ee]);
27507
+ }), u.colhidden = V, u.borderInfo && u.borderInfo.length > 0) {
27508
27508
  const D = [];
27509
27509
  for (let ne = 0; ne < u.borderInfo.length; ne += 1) {
27510
27510
  const { rangeType: ee } = u.borderInfo[ne];
@@ -28746,7 +28746,7 @@ function os(e, t, n, r, a, l, o, i) {
28746
28746
  });
28747
28747
  }
28748
28748
  function ku(e, t, n, r, a, l, o, i, u) {
28749
- var s, c, 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;
28749
+ var s, c, 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, W, ge, we, q, A, P, Ce, B, ue, E, V, D, ne, ee;
28750
28750
  if (!(h.isNil(t) || h.isNil(n)))
28751
28751
  if (n === "ct") {
28752
28752
  const U = [];
@@ -28793,7 +28793,7 @@ function ku(e, t, n, r, a, l, o, i, u) {
28793
28793
  }
28794
28794
  (r === "General" || r === 0) && (Oe = Ge(Me) ? "n" : "g");
28795
28795
  const qe = ut(r, Me);
28796
- te && h.isPlainObject(te) ? (te.m = `${qe}`, h.isNil(te.ct) && (te.ct = {}), delete te.ct.dp, te.ct.fa = r, te.ct.t = Oe, te.v = typeof Me == "number" ? Me : String(Me), te.fc = te.fc || ((M = (N = (S = te.ct) == null ? void 0 : S.s) == null ? void 0 : N[0]) == null ? void 0 : M.fc), te.bl = te.bl || ((K = (Q = (z = te.ct) == null ? void 0 : z.s) == null ? void 0 : Q[0]) == null ? void 0 : K.bl), te.it = te.it || ((J = (F = (le = te.ct) == null ? void 0 : le.s) == null ? void 0 : F[0]) == null ? void 0 : J.it), te.un = te.un || ((O = (Y = (j = te.ct) == null ? void 0 : j.s) == null ? void 0 : Y[0]) == null ? void 0 : O.un), te.fs = te.fs || ((G = (ae = ($e = te.ct) == null ? void 0 : $e.s) == null ? void 0 : ae[0]) == null ? void 0 : G.fs), te.cl = te.cl || ((ge = (V = (Z = te.ct) == null ? void 0 : Z.s) == null ? void 0 : V[0]) == null ? void 0 : ge.cl)) : t[ve][ce] = {
28796
+ te && h.isPlainObject(te) ? (te.m = `${qe}`, h.isNil(te.ct) && (te.ct = {}), delete te.ct.dp, te.ct.fa = r, te.ct.t = Oe, te.v = typeof Me == "number" ? Me : String(Me), te.fc = te.fc || ((M = (N = (S = te.ct) == null ? void 0 : S.s) == null ? void 0 : N[0]) == null ? void 0 : M.fc), te.bl = te.bl || ((K = (Q = (z = te.ct) == null ? void 0 : z.s) == null ? void 0 : Q[0]) == null ? void 0 : K.bl), te.it = te.it || ((J = (F = (le = te.ct) == null ? void 0 : le.s) == null ? void 0 : F[0]) == null ? void 0 : J.it), te.un = te.un || ((O = (Y = (j = te.ct) == null ? void 0 : j.s) == null ? void 0 : Y[0]) == null ? void 0 : O.un), te.fs = te.fs || ((G = (ae = ($e = te.ct) == null ? void 0 : $e.s) == null ? void 0 : ae[0]) == null ? void 0 : G.fs), te.cl = te.cl || ((ge = (W = (Z = te.ct) == null ? void 0 : Z.s) == null ? void 0 : W[0]) == null ? void 0 : ge.cl)) : t[ve][ce] = {
28797
28797
  ct: { fa: r, t: Oe },
28798
28798
  v: Me,
28799
28799
  m: qe
@@ -28882,7 +28882,7 @@ function ku(e, t, n, r, a, l, o, i, u) {
28882
28882
  if (!(!h.isNil(e.config.rowhidden) && !h.isNil(e.config.rowhidden[me]))) {
28883
28883
  if (r === "2") {
28884
28884
  const ve = (ue = (B = e.luckysheetfile) == null ? void 0 : B[U]) == null ? void 0 : ue.config;
28885
- (E = ve == null ? void 0 : ve.customHeight) != null && E[me] && delete ve.customHeight[me], (D = (W = e.config) == null ? void 0 : W.customHeight) != null && D[me] && delete e.config.customHeight[me];
28885
+ (E = ve == null ? void 0 : ve.customHeight) != null && E[me] && delete ve.customHeight[me], (D = (V = e.config) == null ? void 0 : V.customHeight) != null && D[me] && delete e.config.customHeight[me];
28886
28886
  }
28887
28887
  Go(e, me, t, u);
28888
28888
  }
@@ -28950,7 +28950,7 @@ function Dr(e, t, n, r, a) {
28950
28950
  }
28951
28951
  function fa(e) {
28952
28952
  let t = e;
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"));
28953
+ return h.isPlainObject(t) && (t = t.v), !!(!ot(t) && Ws(t).num && (e.ct == null || e.ct.t == null || e.ct.t === "n" || e.ct.t === "g"));
28954
28954
  }
28955
28955
  function hh(e) {
28956
28956
  let t = e;
@@ -29028,7 +29028,7 @@ function Tn(e, t, n, r, a, l, o) {
29028
29028
  i: o.currentSheetId
29029
29029
  });
29030
29030
  }
29031
- function Vr(e, t, n, r, a, l, o, i, u, s, c, f, m) {
29031
+ function Wr(e, t, n, r, a, l, o, i, u, s, c, f, m) {
29032
29032
  s == null && (s = "r"), f == null && (f = !0), m == null && (m = !0);
29033
29033
  let d = !0, p = !1;
29034
29034
  for (let g = o; g <= i; g += 1) {
@@ -29200,7 +29200,7 @@ function ph(e, t, n, r, a) {
29200
29200
  }
29201
29201
  m - 1 >= 0 && fa(o[m - 1][d]) ? s(o, f, m, d, p, r) : p - 1 >= 0 && fa(o[f][p - 1]) ? u(o, f, m, d, p, r) : s(o, f, m, d, p, r);
29202
29202
  } else if (f === m)
29203
- i = Vr(
29203
+ i = Wr(
29204
29204
  t,
29205
29205
  n,
29206
29206
  e,
@@ -29214,7 +29214,7 @@ function ph(e, t, n, r, a) {
29214
29214
  a
29215
29215
  );
29216
29216
  else if (d === p)
29217
- i = Vr(
29217
+ i = Wr(
29218
29218
  t,
29219
29219
  n,
29220
29220
  e,
@@ -29230,7 +29230,7 @@ function ph(e, t, n, r, a) {
29230
29230
  else {
29231
29231
  let b = !0;
29232
29232
  for (let v = f; v <= m; v += 1)
29233
- b = Vr(
29233
+ b = Wr(
29234
29234
  t,
29235
29235
  n,
29236
29236
  e,
@@ -29247,7 +29247,7 @@ function ph(e, t, n, r, a) {
29247
29247
  ) && b;
29248
29248
  let w = !0;
29249
29249
  for (let v = d; v <= p; v += 1)
29250
- w = Vr(
29250
+ w = Wr(
29251
29251
  t,
29252
29252
  n,
29253
29253
  e,
@@ -29733,7 +29733,7 @@ function w1(e) {
29733
29733
  function v1(e) {
29734
29734
  return qh[e];
29735
29735
  }
29736
- function Wr(e) {
29736
+ function Vr(e) {
29737
29737
  return `${e}px`;
29738
29738
  }
29739
29739
  const Ke = {
@@ -29901,7 +29901,7 @@ function xu({ width: e, height: t, top: n, left: r }, a) {
29901
29901
  const l = a.querySelector(
29902
29902
  ".fortune-cell-selected-extend"
29903
29903
  );
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");
29904
+ l && (l.style.left = Vr(r), l.style.width = Vr(e), l.style.top = Vr(n), l.style.height = Vr(t), l.style.display = "block");
29905
29905
  }
29906
29906
  function Bh(e) {
29907
29907
  const t = e.querySelector(
@@ -29976,7 +29976,7 @@ function Hh(e, t, n) {
29976
29976
  }
29977
29977
  return r;
29978
29978
  }
29979
- function Wa(e, t, n) {
29979
+ function Va(e, t, n) {
29980
29980
  var a;
29981
29981
  const r = [];
29982
29982
  for (let l = 1; l <= t; l += 1) {
@@ -30127,7 +30127,7 @@ function xn(e, t, n) {
30127
30127
  return r;
30128
30128
  }
30129
30129
  function _t(e, t, n, r, a) {
30130
- var o, i, u, s, c, 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;
30130
+ var o, i, u, s, c, 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, W, ge, we, q, A, P, Ce, B, ue, E, V, D, ne, ee, U, ye, _e, me, ve, ce, te, Oe, Me, qe, Te;
30131
30131
  e = h.cloneDeep(e);
30132
30132
  let l = [];
30133
30133
  if (r === "0" || e.length === 1)
@@ -30154,7 +30154,7 @@ function _t(e, t, n, r, a) {
30154
30154
  l = Gr(e, t, L);
30155
30155
  } else if (!I[0] && I[2]) {
30156
30156
  const L = Ne((s = e[1]) == null ? void 0 : s.m).diff(Ne((c = e[0]) == null ? void 0 : c.m), "days");
30157
- l = Wa(e, t, L);
30157
+ l = Va(e, t, L);
30158
30158
  } else
30159
30159
  l = Yt(e, t);
30160
30160
  } else if (a === "chnNumber" && ((f = e[0]) == null ? void 0 : f.m) != null) {
@@ -30218,7 +30218,7 @@ function _t(e, t, n, r, a) {
30218
30218
  if (e.length === 2) {
30219
30219
  (n === "up" || n === "left") && e.reverse();
30220
30220
  const I = Ne((y = e[1]) == null ? void 0 : y.m).diff(Ne((b = e[0]) == null ? void 0 : b.m), "days");
30221
- l = Wa(e, t, I);
30221
+ l = Va(e, t, I);
30222
30222
  } else {
30223
30223
  (n === "up" || n === "left") && e.reverse();
30224
30224
  const I = ir(e);
@@ -30227,7 +30227,7 @@ function _t(e, t, n, r, a) {
30227
30227
  l = Gr(e, t, L);
30228
30228
  } else if (!I[0] && I[2]) {
30229
30229
  const L = Ne((_ = e[1]) == null ? void 0 : _.m).diff(Ne((T = e[0]) == null ? void 0 : T.m), "days");
30230
- l = Wa(e, t, L);
30230
+ l = Va(e, t, L);
30231
30231
  } else
30232
30232
  l = Yt(e, t);
30233
30233
  }
@@ -30298,7 +30298,7 @@ function _t(e, t, n, r, a) {
30298
30298
  x === 0 && (pe = Ne(X.m).add(L * ie, "months").diff(Ne(X.m), "days"));
30299
30299
  const fe = Ne(X.m).add(pe, "days").day();
30300
30300
  let re;
30301
- fe === 0 ? re = Ne(X.m).add(pe, "days").subtract(2, "days").format("YYYY-MM-DD") : fe === 6 ? re = Ne(X.m).add(pe, "days").subtract(1, "days").format("YYYY-MM-DD") : re = Ne(X.m).add(pe, "days").format("YYYY-MM-DD"), X.m = re, X.v = (V = Qe(re)) == null ? void 0 : V[2], l.push(X);
30301
+ fe === 0 ? re = Ne(X.m).add(pe, "days").subtract(2, "days").format("YYYY-MM-DD") : fe === 6 ? re = Ne(X.m).add(pe, "days").subtract(1, "days").format("YYYY-MM-DD") : re = Ne(X.m).add(pe, "days").format("YYYY-MM-DD"), X.m = re, X.v = (W = Qe(re)) == null ? void 0 : W[2], l.push(X);
30302
30302
  }
30303
30303
  }
30304
30304
  } else {
@@ -30343,7 +30343,7 @@ function _t(e, t, n, r, a) {
30343
30343
  const I = ir(e);
30344
30344
  if (I[0] && I[3]) {
30345
30345
  (n === "up" || n === "left") && e.reverse();
30346
- const L = Ne((E = e[1]) == null ? void 0 : E.m).diff(Ne((W = e[0]) == null ? void 0 : W.m), "months");
30346
+ const L = Ne((E = e[1]) == null ? void 0 : E.m).diff(Ne((V = e[0]) == null ? void 0 : V.m), "months");
30347
30347
  l = Gr(e, t, L);
30348
30348
  } else if (!I[0] && I[2]) {
30349
30349
  let L;
@@ -30418,7 +30418,7 @@ function _t(e, t, n, r, a) {
30418
30418
  I != null && delete I.ps;
30419
30419
  }), l;
30420
30420
  }
30421
- function Vh(e, t, n, r, a, l) {
30421
+ function Wh(e, t, n, r, a, l) {
30422
30422
  const o = [];
30423
30423
  let i, u, s, c;
30424
30424
  l === "down" || l === "up" ? (i = r, u = a, s = t, c = n) : (i = t, u = n, s = r, c = a);
@@ -30595,7 +30595,7 @@ function qu(e) {
30595
30595
  if (a == null) return;
30596
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);
30597
30597
  u.borderInfo == null && (u.borderInfo = []);
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(
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 = Wh(
30599
30599
  t,
30600
30600
  d,
30601
30601
  p,
@@ -30622,15 +30622,15 @@ function qu(e) {
30622
30622
  O.f,
30623
30623
  "down",
30624
30624
  Y - _ + 1
30625
- )}`, V = Ft(e, Z, Y, F);
30626
- ln(e, Y, F, V[1], void 0, t), [, O.v, O.f] = V;
30625
+ )}`, W = Ft(e, Z, Y, F);
30626
+ ln(e, Y, F, W[1], void 0, t), [, O.v, O.f] = W;
30627
30627
  const { afterUpdateCell: ge } = e.hooks;
30628
30628
  if (ge && (ge(Y, F, null, {
30629
30629
  ...O,
30630
- v: V[1] instanceof Promise ? V[1] : O.v,
30631
- m: V[1] instanceof Promise ? "[object Promise]" : V[1]
30630
+ v: W[1] instanceof Promise ? W[1] : O.v,
30631
+ m: W[1] instanceof Promise ? "[object Promise]" : W[1]
30632
30632
  }), $e = !0), O.spl != null)
30633
- O.spl = V[3].data;
30633
+ O.spl = W[3].data;
30634
30634
  else if (O.v != null)
30635
30635
  if (Ge(O.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(
30636
30636
  `${O.v}`
@@ -30703,15 +30703,15 @@ function qu(e) {
30703
30703
  O.f,
30704
30704
  "up",
30705
30705
  T - Y + 1
30706
- )}`, V = Ft(e, Z, Y, F);
30707
- ln(e, Y, F, V[1], void 0, t), [, O.v, O.f] = V;
30706
+ )}`, W = Ft(e, Z, Y, F);
30707
+ ln(e, Y, F, W[1], void 0, t), [, O.v, O.f] = W;
30708
30708
  const { afterUpdateCell: ge } = e.hooks;
30709
30709
  if (ge && (ge(Y, F, null, {
30710
30710
  ...O,
30711
- v: V[1] instanceof Promise ? V[1] : O.v,
30712
- m: V[1] instanceof Promise ? "[object Promise]" : V[1]
30711
+ v: W[1] instanceof Promise ? W[1] : O.v,
30712
+ m: W[1] instanceof Promise ? "[object Promise]" : W[1]
30713
30713
  }), $e = !0), O.spl != null)
30714
- O.spl = V[3].data;
30714
+ O.spl = W[3].data;
30715
30715
  else if (O.v != null)
30716
30716
  if (Ge(O.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(
30717
30717
  `${O.v}`
@@ -30788,15 +30788,15 @@ function qu(e) {
30788
30788
  O.f,
30789
30789
  "right",
30790
30790
  Y - C + 1
30791
- )}`, V = Ft(e, Z, F, Y);
30792
- ln(e, Y, F, V[1], void 0, t), [, O.v, O.f] = V;
30791
+ )}`, W = Ft(e, Z, F, Y);
30792
+ ln(e, Y, F, W[1], void 0, t), [, O.v, O.f] = W;
30793
30793
  const { afterUpdateCell: ge } = e.hooks;
30794
30794
  if (ge && (ge(F, Y, null, {
30795
30795
  ...O,
30796
- v: V[1] instanceof Promise ? V[1] : O.v,
30797
- m: V[1] instanceof Promise ? "[object Promise]" : V[1]
30796
+ v: W[1] instanceof Promise ? W[1] : O.v,
30797
+ m: W[1] instanceof Promise ? "[object Promise]" : W[1]
30798
30798
  }), $e = !0), O.spl != null)
30799
- O.spl = V[3].data;
30799
+ O.spl = W[3].data;
30800
30800
  else if (O.v != null)
30801
30801
  if (Ge(O.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(
30802
30802
  `${O.v}`
@@ -30867,15 +30867,15 @@ function qu(e) {
30867
30867
  O.f,
30868
30868
  "left",
30869
30869
  $ - Y + 1
30870
- )}`, V = Ft(e, Z, F, Y);
30871
- ln(e, Y, F, V[1], void 0, t), [, O.v, O.f] = V;
30870
+ )}`, W = Ft(e, Z, F, Y);
30871
+ ln(e, Y, F, W[1], void 0, t), [, O.v, O.f] = W;
30872
30872
  const { afterUpdateCell: ge } = e.hooks;
30873
30873
  if (ge && (ge(F, Y, null, {
30874
30874
  ...O,
30875
- v: V[1] instanceof Promise ? V[1] : O.v,
30876
- m: V[1] instanceof Promise ? "[object Promise]" : V[1]
30875
+ v: W[1] instanceof Promise ? W[1] : O.v,
30876
+ m: W[1] instanceof Promise ? "[object Promise]" : W[1]
30877
30877
  }), $e = !0), O.spl != null)
30878
- O.spl = V[3].data;
30878
+ O.spl = W[3].data;
30879
30879
  else if (O.v != null)
30880
30880
  if (Ge(O.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(
30881
30881
  `${O.v}`
@@ -30962,7 +30962,7 @@ function qu(e) {
30962
30962
  }
30963
30963
  J.length > 0 && N[le].cellrange.push(v);
30964
30964
  }
30965
- l.dataVerification = c, Wo(e, t, e.luckysheet_select_save);
30965
+ l.dataVerification = c, Vo(e, t, e.luckysheet_select_save);
30966
30966
  }
30967
30967
  function $1(e, t, n) {
30968
30968
  var b, w, v;
@@ -31038,7 +31038,7 @@ function $1(e, t, n) {
31038
31038
  Q && (Q.style.display = "none");
31039
31039
  }
31040
31040
  }
31041
- function Wh(e, t, n) {
31041
+ function Vh(e, t, n) {
31042
31042
  let r = e.length;
31043
31043
  const a = Et(n).pivotTable, { title: l } = a;
31044
31044
  for (let o = 0; o < e.length; o += 1)
@@ -31595,7 +31595,7 @@ function np(e, t) {
31595
31595
  r.order = a;
31596
31596
  });
31597
31597
  }
31598
- function V1(e, t, n, r) {
31598
+ function W1(e, t, n, r) {
31599
31599
  if (r.scrollLeft != null) {
31600
31600
  if (!h.isNumber(r.scrollLeft))
31601
31601
  throw Zt;
@@ -31871,7 +31871,7 @@ const Pu = `$#,##0.${"0".repeat(2)}`, op = (e, t, n, r) => {
31871
31871
  } catch {
31872
31872
  return;
31873
31873
  }
31874
- }, W1 = async ({
31874
+ }, V1 = async ({
31875
31875
  functionCallString: e,
31876
31876
  sheetEditorRef: t,
31877
31877
  dataBlockRow: n,
@@ -32004,7 +32004,7 @@ export {
32004
32004
  ct as A,
32005
32005
  vn as B,
32006
32006
  Et as C,
32007
- Wo as D,
32007
+ Vo as D,
32008
32008
  Go as E,
32009
32009
  at as F,
32010
32010
  ot as G,
@@ -32043,7 +32043,7 @@ export {
32043
32043
  Ss as aA,
32044
32044
  D1 as aB,
32045
32045
  pg as aC,
32046
- V1 as aD,
32046
+ W1 as aD,
32047
32047
  Er as aE,
32048
32048
  B1 as aF,
32049
32049
  Jh as aG,
@@ -32135,7 +32135,7 @@ export {
32135
32135
  Du as ba,
32136
32136
  Id as bb,
32137
32137
  Uo as bc,
32138
- Wp as bd,
32138
+ Vp as bd,
32139
32139
  hn as be,
32140
32140
  Dd as bf,
32141
32141
  Eg as bg,
@@ -32158,7 +32158,7 @@ export {
32158
32158
  r1 as bx,
32159
32159
  Qe as by,
32160
32160
  Ge as bz,
32161
- Wu as c,
32161
+ Vu as c,
32162
32162
  f1 as c$,
32163
32163
  Rm as c0,
32164
32164
  Bn as c1,
@@ -32180,7 +32180,7 @@ export {
32180
32180
  im as cH,
32181
32181
  yu as cI,
32182
32182
  jt as cJ,
32183
- Vp as cK,
32183
+ Wp as cK,
32184
32184
  qp as cL,
32185
32185
  nh as cM,
32186
32186
  Pn as cN,
@@ -32215,9 +32215,9 @@ export {
32215
32215
  Tu as cp,
32216
32216
  Om as cq,
32217
32217
  ga as cr,
32218
- Vt as cs,
32218
+ Wt as cs,
32219
32219
  gg as ct,
32220
- Vg as cu,
32220
+ Wg as cu,
32221
32221
  Cr as cv,
32222
32222
  jh as cw,
32223
32223
  ln as cx,
@@ -32232,7 +32232,7 @@ export {
32232
32232
  m1 as d4,
32233
32233
  g1 as d5,
32234
32234
  d1 as d6,
32235
- Wg as d7,
32235
+ Vg as d7,
32236
32236
  Jm as d8,
32237
32237
  On as d9,
32238
32238
  Cg as dA,
@@ -32272,7 +32272,7 @@ export {
32272
32272
  ug as dh,
32273
32273
  ya as di,
32274
32274
  qt as dj,
32275
- Vs as dk,
32275
+ Ws as dk,
32276
32276
  Kn as dl,
32277
32277
  yp as dm,
32278
32278
  Jg as dn,
@@ -32287,7 +32287,7 @@ export {
32287
32287
  fs as dx,
32288
32288
  Up as dy,
32289
32289
  $g as dz,
32290
- W1 as e,
32290
+ V1 as e,
32291
32291
  sc as e0,
32292
32292
  ic as e1,
32293
32293
  bp as e2,
@@ -32318,7 +32318,7 @@ export {
32318
32318
  P1 as t,
32319
32319
  tn as u,
32320
32320
  cu as v,
32321
- Vi as w,
32321
+ Wi as w,
32322
32322
  sn as x,
32323
32323
  zs as y,
32324
32324
  un as z