@fileverse-dev/dsheet 2.1.1 → 2.1.2-dropIn-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/editor/components/comments/comment-actions-dropdown.d.ts +19 -0
  2. package/dist/editor/components/comments/comment-cell-popup.d.ts +4 -0
  3. package/dist/editor/components/comments/comment-input.d.ts +4 -0
  4. package/dist/editor/components/comments/comment-item.d.ts +4 -0
  5. package/dist/editor/components/comments/comment-sidebar-empty.d.ts +4 -0
  6. package/dist/editor/components/comments/comment-sidebar.d.ts +4 -0
  7. package/dist/editor/components/comments/ens/ens-cache.d.ts +10 -0
  8. package/dist/editor/components/comments/ens/use-ens-status.d.ts +10 -0
  9. package/dist/editor/components/comments/use-comment-cell-popup.d.ts +12 -0
  10. package/dist/editor/components/comments/use-comment-permissions.d.ts +15 -0
  11. package/dist/editor/components/editor-workbook.d.ts +4 -9
  12. package/dist/editor/components/sidebar/editor-right-sidebar.d.ts +20 -0
  13. package/dist/editor/components/sidebar/right-sidebar.d.ts +14 -0
  14. package/dist/editor/components/sidebar/sidebar-context.d.ts +17 -0
  15. package/dist/editor/components/sidebar/use-right-panels.d.ts +12 -0
  16. package/dist/editor/components/sidebars/conditional-format.d.ts +2 -0
  17. package/dist/editor/components/sidebars/data-verification.d.ts +2 -0
  18. package/dist/editor/components/sidebars/function/function-categories-logic.d.ts +11 -0
  19. package/dist/editor/components/sidebars/function/function-categories.d.ts +6 -0
  20. package/dist/editor/components/sidebars/function/function-metadata.d.ts +7 -0
  21. package/dist/editor/components/sidebars/function/functionList.d.ts +8 -0
  22. package/dist/editor/components/sidebars/function/types.d.ts +24 -0
  23. package/dist/editor/components/sidebars/function/use-functions.d.ts +20 -0
  24. package/dist/editor/components/sidebars/function-content.d.ts +8 -0
  25. package/dist/editor/components/sidebars/template-ui.d.ts +22 -0
  26. package/dist/editor/components/sidebars/templates.d.ts +9 -0
  27. package/dist/editor/contexts/editor-context.d.ts +2 -2
  28. package/dist/editor/dsheet-editor.d.ts +1 -1
  29. package/dist/editor/types/comments.d.ts +131 -0
  30. package/dist/editor/types.d.ts +19 -5
  31. package/dist/editor/utils/api-keys-local-storage.d.ts +17 -0
  32. package/dist/editor/utils/cell-comment-marker.d.ts +29 -0
  33. package/dist/editor/utils/comment-key-utils.d.ts +7 -0
  34. package/dist/editor/utils/sheet-editor-safe.d.ts +26 -0
  35. package/dist/{executeStringFunction-tdvZ0KTi.js → executeStringFunction-CGbxAbbw.js} +436 -423
  36. package/dist/formula.js +1 -1
  37. package/dist/{index-D_IxoHMJ.js → index-CDtU1CMG.js} +21867 -19311
  38. package/dist/index.d.ts +8 -1
  39. package/dist/index.es.js +55 -48
  40. package/dist/sheet-engine/core/events/keyboard-shortcut-utils.d.ts +2 -0
  41. package/dist/sheet-engine/core/index.d.ts +2 -1
  42. package/dist/sheet-engine/core/locale/en.d.ts +13 -0
  43. package/dist/sheet-engine/core/modules/index.d.ts +2 -0
  44. package/dist/sheet-engine/core/modules/removeDuplicates.d.ts +29 -0
  45. package/dist/sheet-engine/react/components/RemoveDuplicates/index.d.ts +12 -0
  46. package/dist/style.css +1 -1
  47. package/dist/{use-xlsx-import-impl-AI2QDZt1.js → use-xlsx-import-impl-BLkzBn-k.js} +2 -2
  48. package/dist/{xlsx-export-impl-Buly1jC6.js → xlsx-export-impl-DxWsBfuJ.js} +2 -2
  49. package/package.json +3 -2
@@ -4,8 +4,8 @@ var Ye = (e, t, r) => Hl(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import h, { isPlainObject as uo } from "lodash";
5
5
  import fo from "dayjs";
6
6
  import * as rr from "@fileverse-dev/formulajs";
7
- import { F as Ul } from "./crypto-constants-CqpCRs86.js";
8
- var zl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
+ import { F as zl } from "./crypto-constants-CqpCRs86.js";
8
+ var Ul = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function Yo(e) {
10
10
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
11
  }
@@ -59,7 +59,7 @@ var jo = { exports: {} };
59
59
  (function(e) {
60
60
  (function(t, r) {
61
61
  e.exports ? e.exports = r() : t.numeral = r();
62
- })(zl, function() {
62
+ })(Ul, function() {
63
63
  var t, r, a = "2.0.6", n = {}, o = {}, i = {
64
64
  currentLocale: "en",
65
65
  zeroFormat: null,
@@ -599,7 +599,7 @@ const ts = Object.keys(rr), Qo = {
599
599
  cannotSelectMultiple: "Cannot select multiple selections"
600
600
  },
601
601
  functionlist: [
602
- ...Ul,
602
+ ...zl,
603
603
  {
604
604
  n: "SUMIF",
605
605
  t: 0,
@@ -12175,6 +12175,19 @@ If the value is FALSE, return the accrued interest from the first interest accru
12175
12175
  allowOptionText: "Optional",
12176
12176
  selectCategory: "Or select a category"
12177
12177
  },
12178
+ removeDuplicates: {
12179
+ title: "Remove duplicates",
12180
+ dataHasHeaderRow: "Data has header row",
12181
+ columnsToAnalyze: "Columns to analyze",
12182
+ selectAll: "Select all",
12183
+ removeDuplicates: "Remove duplicates",
12184
+ result: "{removed} duplicate rows found and removed. {remaining} unique rows remain.",
12185
+ noMulti: "Cannot perform this operation on multiple selection areas, please select a single area",
12186
+ noMerge: "This operation cannot be performed on merged cells",
12187
+ noColumns: "Select at least one column to analyze",
12188
+ noSelection: "Please select the scope of the operation",
12189
+ readOnly: "Cannot remove duplicates in read-only mode"
12190
+ },
12178
12191
  drag: {
12179
12192
  noMerge: "Cannot perform this operation on merged cells",
12180
12193
  affectPivot: "This change cannot be made to the selected cell because it will affect the pivot table!",
@@ -12358,15 +12371,15 @@ function sr(e) {
12358
12371
  sr.isFactory = !0;
12359
12372
  sr.SYMBOL = rs;
12360
12373
  const as = ">";
12361
- function Ur(e, t) {
12374
+ function zr(e, t) {
12362
12375
  return e > t;
12363
12376
  }
12364
- Ur.SYMBOL = as;
12377
+ zr.SYMBOL = as;
12365
12378
  const is = ">=";
12366
- function zr(e, t) {
12379
+ function Ur(e, t) {
12367
12380
  return e >= t;
12368
12381
  }
12369
- zr.SYMBOL = is;
12382
+ Ur.SYMBOL = is;
12370
12383
  const os = "<";
12371
12384
  function Wr(e, t) {
12372
12385
  return e < t;
@@ -12429,8 +12442,8 @@ _t(Pr.SYMBOL, Pr);
12429
12442
  _t(Hr.SYMBOL, Hr);
12430
12443
  _t(Xr.SYMBOL, Xr);
12431
12444
  _t(sr.SYMBOL, sr);
12432
- _t(Ur.SYMBOL, Ur);
12433
12445
  _t(zr.SYMBOL, zr);
12446
+ _t(Ur.SYMBOL, Ur);
12434
12447
  _t(Wr.SYMBOL, Wr);
12435
12448
  _t(Vr.SYMBOL, Vr);
12436
12449
  _t(Yr.SYMBOL, Yr);
@@ -14021,7 +14034,7 @@ function Hf(e, t, r) {
14021
14034
  u.setStart(o, i), u.setEnd(l, c), a.removeAllRanges(), a.addRange(u);
14022
14035
  }
14023
14036
  }
14024
- function Uf(e, t, r) {
14037
+ function zf(e, t, r) {
14025
14038
  if (t >= r) return [];
14026
14039
  let a = 0, n = null, o = 0, i = null, l = 0;
14027
14040
  function c(f) {
@@ -14059,7 +14072,7 @@ const wo = {
14059
14072
  fc: "color",
14060
14073
  cl: "text-decoration",
14061
14074
  un: "border-bottom"
14062
- }, zf = {
14075
+ }, Uf = {
14063
14076
  bl: 1,
14064
14077
  it: 1,
14065
14078
  ff: 1,
@@ -14146,7 +14159,7 @@ function Hs(e) {
14146
14159
  function Vf(e) {
14147
14160
  typeof e.fc == "string" && Hs(e.fc) && delete e.fc, e.un === 1 && delete e.un;
14148
14161
  }
14149
- function Us(e, t) {
14162
+ function zs(e, t) {
14150
14163
  var o, i, l, c;
14151
14164
  const r = [];
14152
14165
  let a = null, n = null;
@@ -14196,7 +14209,7 @@ function _o(e, t) {
14196
14209
  }
14197
14210
  return "";
14198
14211
  }
14199
- function zs(e, t, r) {
14212
+ function Us(e, t, r) {
14200
14213
  const a = e.split(";");
14201
14214
  let n = "";
14202
14215
  if (t == null || t.length === 0)
@@ -14240,7 +14253,7 @@ function Wt(e, t, r) {
14240
14253
  if (e = Ws(e, t), h.isEmpty(n))
14241
14254
  return e;
14242
14255
  const o = h.kebabCase(Object.keys(n)[0]), i = Object.values(n)[0];
14243
- return e = zs(e, o, i), e;
14256
+ return e = Us(e, o, i), e;
14244
14257
  }
14245
14258
  function pn(e, t, r = !0) {
14246
14259
  const a = e.split(";"), n = t.split(";");
@@ -15229,11 +15242,11 @@ function tc(e, t, r, a, n) {
15229
15242
  continue;
15230
15243
  let ve = 0, we = 0, Te = 0, Se = 0, me = 0, fe = 0;
15231
15244
  for (let He = 0; He < te.length; He += 1) {
15232
- const Ue = te[He];
15233
- ve += Ue.width, we = Math.max(
15245
+ const ze = te[He];
15246
+ ve += ze.width, we = Math.max(
15234
15247
  we,
15235
- Ue.height - (V ? Ue.desc : 0)
15236
- ), Te = Math.max(Te, V ? Ue.desc : 0), Se = Math.max(Se, Ue.asc), fe += 1;
15248
+ ze.height - (V ? ze.desc : 0)
15249
+ ), Te = Math.max(Te, V ? ze.desc : 0), Se = Math.max(Se, ze.asc), fe += 1;
15237
15250
  }
15238
15251
  me = we / 2, g !== 0 ? (we += me, Q = Math.max(Q, ve), G += we) : (we += me, ne = Math.max(ne, ve), G += we), q.push({
15239
15252
  width: ve,
@@ -15247,9 +15260,9 @@ function tc(e, t, r, a, n) {
15247
15260
  let A = 0, B = 0;
15248
15261
  const x = g * Math.PI / 180, Y = q[$ - 1], E = Y.lineHeight;
15249
15262
  G = G - E + Y.desc;
15250
- const U = G / Math.sin(x) + Q * Math.cos(x), L = Q * Math.sin(x);
15263
+ const z = G / Math.sin(x) + Q * Math.cos(x), L = Q * Math.sin(x);
15251
15264
  let pe = 0;
15252
- if (g !== 0 ? ($ === 1 ? (ne = Q + 2 * (G / Math.tan(x)), pe = G / Math.tan(x)) : ne = Q + G / Math.tan(x), w.textWidthAll = U, w.textHeightAll = L) : (w.textWidthAll = ne, w.textHeightAll = G), l === "onlyWidth")
15265
+ if (g !== 0 ? ($ === 1 ? (ne = Q + 2 * (G / Math.tan(x)), pe = G / Math.tan(x)) : ne = Q + G / Math.tan(x), w.textWidthAll = z, w.textHeightAll = L) : (w.textWidthAll = ne, w.textHeightAll = G), l === "onlyWidth")
15253
15266
  return w;
15254
15267
  if (g !== 0 && Number(b) === 1) {
15255
15268
  t.textAlign = "end";
@@ -15264,7 +15277,7 @@ function tc(e, t, r, a, n) {
15264
15277
  let Se, me;
15265
15278
  if (g !== 0) {
15266
15279
  const fe = A + ve.asc, He = A / Math.tan(x) - B + Q;
15267
- m === "0" ? d === "0" ? (Se = He + o / 2 - ne / 2 + E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o / 2 - ne / 2, me = fe - (G / 2 - L / 2)) : d === "2" && (Se = He + o / 2 - ne / 2 + E * Math.cos(x), me = fe + i - L / 2 - G / 2 - E * Math.cos(x)) : m === "1" ? d === "0" ? (Se = He - L * Math.sin(x) / 2 + E * Math.cos(x) / 2, me = fe + i / 2 + L * Math.cos(x) / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He - L * Math.sin(x), me = fe + L * Math.cos(x)) : d === "2" && (Se = He + E * Math.cos(x), me = fe + i - E * Math.cos(x)) : m === "2" && (d === "0" ? (Se = He + o - U / 2 - (Q / 2 + G / 2 / Math.tan(x)) + E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o - ne + pe, me = fe - G) : d === "2" && (Se = He + o - U * Math.cos(x) + E * Math.cos(x), me = fe + i - U * Math.sin(x) - E * Math.cos(x)));
15280
+ m === "0" ? d === "0" ? (Se = He + o / 2 - ne / 2 + E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o / 2 - ne / 2, me = fe - (G / 2 - L / 2)) : d === "2" && (Se = He + o / 2 - ne / 2 + E * Math.cos(x), me = fe + i - L / 2 - G / 2 - E * Math.cos(x)) : m === "1" ? d === "0" ? (Se = He - L * Math.sin(x) / 2 + E * Math.cos(x) / 2, me = fe + i / 2 + L * Math.cos(x) / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He - L * Math.sin(x), me = fe + L * Math.cos(x)) : d === "2" && (Se = He + E * Math.cos(x), me = fe + i - E * Math.cos(x)) : m === "2" && (d === "0" ? (Se = He + o - z / 2 - (Q / 2 + G / 2 / Math.tan(x)) + E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o - ne + pe, me = fe - G) : d === "2" && (Se = He + o - z * Math.cos(x) + E * Math.cos(x), me = fe + i - z * Math.sin(x) - E * Math.cos(x)));
15268
15281
  }
15269
15282
  Te.left = Se, Te.top = me, qn(Te, T, v, {
15270
15283
  width: Te.width,
@@ -15290,7 +15303,7 @@ function tc(e, t, r, a, n) {
15290
15303
  let Se, me;
15291
15304
  if (g !== 0) {
15292
15305
  const fe = A + ve.asc, He = (G - A) / Math.tan(x) + B;
15293
- m === "0" ? d === "0" ? (Se = He + o / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 + E * Math.cos(x) / 2) : d === "1" ? (Se = He + o / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe - (G / 2 - L / 2) + E * Math.cos(x) / 2) : d === "2" && (Se = He + o / 2 - ne / 2 - E * Math.cos(x), me = fe + i - L / 2 - G / 2 - E * Math.cos(x)) : m === "1" ? d === "0" ? (Se = He - L * Math.sin(x) / 2 - E * Math.cos(x) / 2, me = fe - G + i / 2 - L * Math.cos(x) / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He, me = fe - G) : d === "2" && (Se = He - L * Math.sin(x) - E * Math.cos(x), me = fe - G + i - L * Math.cos(x) - E * Math.cos(x)) : m === "2" && (d === "0" ? (Se = He + o - U / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o - U * Math.cos(x), me = fe + L * Math.cos(x)) : d === "2" && (Se = He + o - ne - E * Math.cos(x) + pe, me = fe + i - E * Math.cos(x))), qn(Te, T, v, {
15306
+ m === "0" ? d === "0" ? (Se = He + o / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 + E * Math.cos(x) / 2) : d === "1" ? (Se = He + o / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe - (G / 2 - L / 2) + E * Math.cos(x) / 2) : d === "2" && (Se = He + o / 2 - ne / 2 - E * Math.cos(x), me = fe + i - L / 2 - G / 2 - E * Math.cos(x)) : m === "1" ? d === "0" ? (Se = He - L * Math.sin(x) / 2 - E * Math.cos(x) / 2, me = fe - G + i / 2 - L * Math.cos(x) / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He, me = fe - G) : d === "2" && (Se = He - L * Math.sin(x) - E * Math.cos(x), me = fe - G + i - L * Math.cos(x) - E * Math.cos(x)) : m === "2" && (d === "0" ? (Se = He + o - z / 2 - ne / 2 - E * Math.cos(x) / 2, me = fe + i / 2 - G / 2 - E * Math.cos(x) / 2) : d === "1" ? (Se = He + o - z * Math.cos(x), me = fe + L * Math.cos(x)) : d === "2" && (Se = He + o - ne - E * Math.cos(x) + pe, me = fe + i - E * Math.cos(x))), qn(Te, T, v, {
15294
15307
  width: Te.width,
15295
15308
  height: Te.height,
15296
15309
  left: Se,
@@ -15313,7 +15326,7 @@ function tc(e, t, r, a, n) {
15313
15326
  }
15314
15327
  A += ve.height;
15315
15328
  }
15316
- w.type = "plainWrap", g !== 0 && (m === "0" ? (w.textLeftAll = o / 2, d === "0" ? w.textTopAll = i / 2 : d === "1" ? w.textTopAll = L / 2 : d === "2" && (w.textTopAll = i - L / 2)) : m === "1" ? d === "0" ? (w.textLeftAll = 0, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = 0, w.textTopAll = 0) : d === "2" && (w.textLeftAll = 0, w.textTopAll = i) : m === "2" && (d === "0" ? (w.textLeftAll = o - U / 2, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = o, w.textTopAll = 0) : d === "2" && (w.textLeftAll = o, w.textTopAll = i)));
15329
+ w.type = "plainWrap", g !== 0 && (m === "0" ? (w.textLeftAll = o / 2, d === "0" ? w.textTopAll = i / 2 : d === "1" ? w.textTopAll = L / 2 : d === "2" && (w.textTopAll = i - L / 2)) : m === "1" ? d === "0" ? (w.textLeftAll = 0, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = 0, w.textTopAll = 0) : d === "2" && (w.textLeftAll = 0, w.textTopAll = i) : m === "2" && (d === "0" ? (w.textLeftAll = o - z / 2, w.textTopAll = i / 2) : d === "1" ? (w.textLeftAll = o, w.textTopAll = 0) : d === "2" && (w.textLeftAll = o, w.textTopAll = i)));
15317
15330
  } else {
15318
15331
  const ne = un(D, t, r), G = ne.width, Q = ne.actualBoundingBoxDescent + ne.actualBoundingBoxAscent;
15319
15332
  w.rotate = g, g = Math.abs(g);
@@ -15418,7 +15431,7 @@ const gt = {
15418
15431
  oct: 10,
15419
15432
  nov: 11,
15420
15433
  dec: 12
15421
- }, fn = "january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|jun|jul|aug|sep|oct|nov|dec", zt = "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec", vn = new Set(zt.split("|")), qr = "monday|tuesday|wednesday|thursday|friday|saturday|sunday", er = "mon|tue|wed|thu|fri|sat|sun";
15434
+ }, fn = "january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|jun|jul|aug|sep|oct|nov|dec", Ut = "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec", vn = new Set(Ut.split("|")), qr = "monday|tuesday|wednesday|thursday|friday|saturday|sunday", er = "mon|tue|wed|thu|fri|sat|sun";
15422
15435
  function tr(e) {
15423
15436
  return 2e3 + Number(e);
15424
15437
  }
@@ -15595,7 +15608,7 @@ function pa(e) {
15595
15608
  };
15596
15609
  }
15597
15610
  }
15598
- if (n = new RegExp(`^(${zt})-(\\d{1,2})-(\\d{4})$`, "i").exec(t), n) {
15611
+ if (n = new RegExp(`^(${Ut})-(\\d{1,2})-(\\d{4})$`, "i").exec(t), n) {
15599
15612
  const o = gt[n[1].toLowerCase()], i = +n[2], l = +n[3];
15600
15613
  if (o && Ve(l, o, i))
15601
15614
  return {
@@ -15608,7 +15621,7 @@ function pa(e) {
15608
15621
  formatType: "named-abbr-dashes"
15609
15622
  };
15610
15623
  }
15611
- if (n = new RegExp(`^(\\d{1,2})-(${zt})-(\\d{4})$`, "i").exec(t), n) {
15624
+ if (n = new RegExp(`^(\\d{1,2})-(${Ut})-(\\d{4})$`, "i").exec(t), n) {
15612
15625
  const o = +n[1], i = gt[n[2].toLowerCase()], l = +n[3];
15613
15626
  if (i && Ve(l, i, o))
15614
15627
  return {
@@ -15621,7 +15634,7 @@ function pa(e) {
15621
15634
  formatType: "d-mmm-yyyy"
15622
15635
  };
15623
15636
  }
15624
- if (n = new RegExp(`^(\\d{1,2})-(${zt})-(\\d{2})$`, "i").exec(t), n) {
15637
+ if (n = new RegExp(`^(\\d{1,2})-(${Ut})-(\\d{2})$`, "i").exec(t), n) {
15625
15638
  const o = +n[1], i = gt[n[2].toLowerCase()], l = tr(n[3]);
15626
15639
  if (i && Ve(l, i, o))
15627
15640
  return {
@@ -15705,7 +15718,7 @@ function pa(e) {
15705
15718
  };
15706
15719
  }
15707
15720
  }
15708
- if (n = new RegExp(`^(${zt})[-\\s](\\d{2})$`, "i").exec(t), n) {
15721
+ if (n = new RegExp(`^(${Ut})[-\\s](\\d{2})$`, "i").exec(t), n) {
15709
15722
  const o = gt[n[1].toLowerCase()], i = tr(n[2]);
15710
15723
  if (o && Ve(i, o, 1))
15711
15724
  return {
@@ -15775,7 +15788,7 @@ function pa(e) {
15775
15788
  }
15776
15789
  }
15777
15790
  if (n = new RegExp(
15778
- `^(${zt})\\s+(\\d{1,2}),\\s*(\\d{4})\\s+(\\d{1,2}):(\\d{2})\\s?(AM|PM)$`,
15791
+ `^(${Ut})\\s+(\\d{1,2}),\\s*(\\d{4})\\s+(\\d{1,2}):(\\d{2})\\s?(AM|PM)$`,
15779
15792
  "i"
15780
15793
  ).exec(t), n) {
15781
15794
  const o = gt[n[1].toLowerCase()], i = +n[2], l = +n[3], c = +n[4], s = +n[5], u = n[6].toUpperCase();
@@ -15793,7 +15806,7 @@ function pa(e) {
15793
15806
  }
15794
15807
  }
15795
15808
  if (n = new RegExp(
15796
- `^(\\d{1,2})-(${zt})-(\\d{4})\\s+(\\d{1,2}):(\\d{2})\\s?(AM|PM)$`,
15809
+ `^(\\d{1,2})-(${Ut})-(\\d{4})\\s+(\\d{1,2}):(\\d{2})\\s?(AM|PM)$`,
15797
15810
  "i"
15798
15811
  ).exec(t), n) {
15799
15812
  const o = +n[1], i = gt[n[2].toLowerCase()], l = +n[3], c = +n[4], s = +n[5], u = n[6].toUpperCase();
@@ -15893,7 +15906,7 @@ function pa(e) {
15893
15906
  };
15894
15907
  }
15895
15908
  if (n = new RegExp(
15896
- `^(?:${er}),?\\s+(${zt})\\s+(\\d{1,2}),\\s*(\\d{4})$`,
15909
+ `^(?:${er}),?\\s+(${Ut})\\s+(\\d{1,2}),\\s*(\\d{4})$`,
15897
15910
  "i"
15898
15911
  ).exec(t), n) {
15899
15912
  const o = gt[n[1].toLowerCase()], i = +n[2], l = +n[3];
@@ -15909,7 +15922,7 @@ function pa(e) {
15909
15922
  };
15910
15923
  }
15911
15924
  if (n = new RegExp(
15912
- `^(?:${er}),\\s+(${zt})\\s+(\\d{1,2})$`,
15925
+ `^(?:${er}),\\s+(${Ut})\\s+(\\d{1,2})$`,
15913
15926
  "i"
15914
15927
  ).exec(t), n) {
15915
15928
  const o = gt[n[1].toLowerCase()], i = +n[2];
@@ -15925,7 +15938,7 @@ function pa(e) {
15925
15938
  };
15926
15939
  }
15927
15940
  if (n = new RegExp(
15928
- `^(?:${er}),\\s+(\\d{1,2})\\s+(${zt})\\s+(\\d{4})$`,
15941
+ `^(?:${er}),\\s+(\\d{1,2})\\s+(${Ut})\\s+(\\d{4})$`,
15929
15942
  "i"
15930
15943
  ).exec(t), n) {
15931
15944
  const o = +n[1], i = gt[n[2].toLowerCase()], l = +n[3];
@@ -16075,15 +16088,15 @@ const sc = function(t) {
16075
16088
  var w = [];
16076
16089
  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\\);_("$"* "-"??_);_(@_)';
16077
16090
  function _(q, $, A) {
16078
- for (var B = q < 0 ? -1 : 1, x = q * B, Y = 0, E = 1, U = 0, L = 1, pe = 0, de = 0, te = Math.floor(x); pe < $ && (te = Math.floor(x), U = te * E + Y, de = te * pe + L, !(x - te < 5e-8)); )
16079
- x = 1 / (x - te), Y = E, E = U, L = pe, pe = de;
16080
- if (de > $ && (pe > $ ? (de = L, U = Y) : (de = pe, U = E)), !A) return [0, B * U, de];
16081
- var ve = Math.floor(B * U / de);
16082
- return [ve, B * U - ve * de, de];
16091
+ for (var B = q < 0 ? -1 : 1, x = q * B, Y = 0, E = 1, z = 0, L = 1, pe = 0, de = 0, te = Math.floor(x); pe < $ && (te = Math.floor(x), z = te * E + Y, de = te * pe + L, !(x - te < 5e-8)); )
16092
+ x = 1 / (x - te), Y = E, E = z, L = pe, pe = de;
16093
+ if (de > $ && (pe > $ ? (de = L, z = Y) : (de = pe, z = E)), !A) return [0, B * z, de];
16094
+ var ve = Math.floor(B * z / de);
16095
+ return [ve, B * z - ve * de, de];
16083
16096
  }
16084
16097
  function T(q, $, A) {
16085
16098
  if (q > 2958465 || q < 0) return null;
16086
- var B = q | 0, x = Math.floor(86400 * (q - B)), Y = 0, E = [], U = {
16099
+ var B = q | 0, x = Math.floor(86400 * (q - B)), Y = 0, E = [], z = {
16087
16100
  D: B,
16088
16101
  T: x,
16089
16102
  u: 86400 * (q - B) - x,
@@ -16095,7 +16108,7 @@ const sc = function(t) {
16095
16108
  S: 0,
16096
16109
  q: 0
16097
16110
  };
16098
- if (Math.abs(U.u) < 1e-6 && (U.u = 0), $ && $.date1904 && (B += 1462), U.u > 0.9999 && (U.u = 0, ++x == 86400 && (U.T = x = 0, ++B, ++U.D)), B === 60)
16111
+ if (Math.abs(z.u) < 1e-6 && (z.u = 0), $ && $.date1904 && (B += 1462), z.u > 0.9999 && (z.u = 0, ++x == 86400 && (z.T = x = 0, ++B, ++z.D)), B === 60)
16099
16112
  E = A ? [1317, 10, 29] : [1900, 2, 29], Y = 3;
16100
16113
  else if (B === 0)
16101
16114
  E = A ? [1317, 8, 29] : [1900, 1, 0], Y = 6;
@@ -16104,7 +16117,7 @@ const sc = function(t) {
16104
16117
  var L = new Date(1900, 0, 1);
16105
16118
  L.setDate(L.getDate() + B - 1), E = [L.getFullYear(), L.getMonth() + 1, L.getDate()], Y = L.getDay(), B < 60 && (Y = (Y + 6) % 7), A && (Y = j(L, E));
16106
16119
  }
16107
- return U.y = E[0], U.m = E[1], U.d = E[2], U.S = x % 60, x = Math.floor(x / 60), U.M = x % 60, x = Math.floor(x / 60), U.H = x, U.q = Y, U;
16120
+ return z.y = E[0], z.m = E[1], z.d = E[2], z.S = x % 60, x = Math.floor(x / 60), z.M = x % 60, x = Math.floor(x / 60), z.H = x, z.q = Y, z;
16108
16121
  }
16109
16122
  t.parse_date_code = T;
16110
16123
  var v = new Date(1899, 11, 31, 0, 0, 0), N = v.getTime(), C = new Date(1900, 2, 1, 0, 0, 0);
@@ -16125,10 +16138,10 @@ const sc = function(t) {
16125
16138
  function Y(te) {
16126
16139
  return te.indexOf("E") == -1 ? te : te.replace(B, "$1E").replace(x, "$10$2");
16127
16140
  }
16128
- var E = 999999999999997, U = 1e15;
16141
+ var E = 999999999999997, z = 1e15;
16129
16142
  function L(te) {
16130
16143
  var ve = te < 0 ? 12 : 11, we = Math.abs(te);
16131
- if (we <= E || we >= U) {
16144
+ if (we <= E || we >= z) {
16132
16145
  var Te = A(te.toFixed(12));
16133
16146
  return Te.length <= ve || (Te = te.toPrecision(10), Te.length <= ve) ? Te : A(te.toFixed(12));
16134
16147
  }
@@ -16137,7 +16150,7 @@ const sc = function(t) {
16137
16150
  }
16138
16151
  function pe(te) {
16139
16152
  var ve = Math.abs(te), we = A(te.toFixed(11));
16140
- return ve <= E || ve >= U ? we : we.length > (te < 0 ? 12 : 11) || we === "0" || we === "-0" ? te.toPrecision(6) : we;
16153
+ return ve <= E || ve >= z ? we : we.length > (te < 0 ? 12 : 11) || we === "0" || we === "-0" ? te.toPrecision(6) : we;
16141
16154
  }
16142
16155
  function de(te) {
16143
16156
  var ve = Math.floor(Math.log(Math.abs(te)) * Math.LOG10E), we;
@@ -16170,18 +16183,18 @@ const sc = function(t) {
16170
16183
  return q < 60 && (A = (A + 6) % 7), A;
16171
16184
  }
16172
16185
  function V(q, $, A, B) {
16173
- var x = "", Y = 0, E = 0, U = A.y, L, pe = 0;
16186
+ var x = "", Y = 0, E = 0, z = A.y, L, pe = 0;
16174
16187
  switch (q) {
16175
16188
  case 98:
16176
- U = A.y + 543;
16189
+ z = A.y + 543;
16177
16190
  case 121:
16178
16191
  switch ($.length) {
16179
16192
  case 1:
16180
16193
  case 2:
16181
- L = U % 100, pe = 2;
16194
+ L = z % 100, pe = 2;
16182
16195
  break;
16183
16196
  default:
16184
- L = U % 1e4, pe = 4;
16197
+ L = z % 1e4, pe = 4;
16185
16198
  break;
16186
16199
  }
16187
16200
  break;
@@ -16265,7 +16278,7 @@ const sc = function(t) {
16265
16278
  pe = $.length === 3 ? 1 : 2;
16266
16279
  break;
16267
16280
  case 101:
16268
- L = U, pe = 1;
16281
+ L = z, pe = 1;
16269
16282
  break;
16270
16283
  }
16271
16284
  var de = pe > 0 ? n(L, pe) : "";
@@ -16299,27 +16312,27 @@ const sc = function(t) {
16299
16312
  if (I < 0) return "-" + x(ge, -I);
16300
16313
  var H = ge.indexOf(".");
16301
16314
  H === -1 && (H = ge.indexOf("E"));
16302
- var z = Math.floor(Math.log(I) * Math.LOG10E) % H;
16303
- if (z < 0 && (z += H), R = (I / Math.pow(10, z)).toPrecision(
16304
- X + 1 + (H + z) % H
16315
+ var U = Math.floor(Math.log(I) * Math.LOG10E) % H;
16316
+ if (U < 0 && (U += H), R = (I / Math.pow(10, U)).toPrecision(
16317
+ X + 1 + (H + U) % H
16305
16318
  ), R.indexOf("e") === -1) {
16306
16319
  var he = Math.floor(Math.log(I) * Math.LOG10E);
16307
- for (R.indexOf(".") === -1 ? R = R.charAt(0) + "." + R.substr(1) + "E+" + (he - R.length + z) : R += "E+" + (he - z); R.substr(0, 2) === "0."; )
16320
+ for (R.indexOf(".") === -1 ? R = R.charAt(0) + "." + R.substr(1) + "E+" + (he - R.length + U) : R += "E+" + (he - U); R.substr(0, 2) === "0."; )
16308
16321
  R = R.charAt(0) + R.substr(2, H) + "." + R.substr(2 + H), R = R.replace(/^0+([1-9])/, "$1").replace(/^0+\./, "0.");
16309
16322
  R = R.replace(/\+-/, "-");
16310
16323
  }
16311
16324
  R = R.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/, function(_e, Ne, Z, le) {
16312
- return Ne + Z + le.substr(0, (H + z) % H) + "." + le.substr(z) + "E";
16325
+ return Ne + Z + le.substr(0, (H + U) % H) + "." + le.substr(U) + "E";
16313
16326
  });
16314
16327
  } else R = Number(I).toExponential(X);
16315
16328
  return ge.match(/E\+00$/) && R.match(/e[+-]\d$/) && (R = R.substr(0, R.length - 1) + "0" + R.charAt(R.length - 1)), ge.match(/E\-/) && R.match(/e\+/) && (R = R.replace(/e\+/, "e")), R.replace("e", "E");
16316
16329
  }
16317
16330
  var Y = /# (\?+)( ?)\/( ?)(\d+)/;
16318
16331
  function E(ge, I, R) {
16319
- var X = parseInt(ge[4], 10), H = Math.round(I * X), z = Math.floor(H / X), he = H - z * X, _e = X;
16320
- return R + (z === 0 ? "" : "" + z) + " " + (he === 0 ? a(" ", ge[1].length + 1 + ge[4].length) : o(he, ge[1].length) + ge[2] + "/" + ge[3] + n(_e, ge[4].length));
16332
+ var X = parseInt(ge[4], 10), H = Math.round(I * X), U = Math.floor(H / X), he = H - U * X, _e = X;
16333
+ return R + (U === 0 ? "" : "" + U) + " " + (he === 0 ? a(" ", ge[1].length + 1 + ge[4].length) : o(he, ge[1].length) + ge[2] + "/" + ge[3] + n(_e, ge[4].length));
16321
16334
  }
16322
- function U(ge, I, R) {
16335
+ function z(ge, I, R) {
16323
16336
  return R + (I === 0 ? "" : "" + I) + a(" ", ge[1].length + 2 + ge[4].length);
16324
16337
  }
16325
16338
  var L = /^#*0*\.([0#]+)/, pe = /\).*[0#]/, de = /\(###\) ###\\?-####/;
@@ -16364,26 +16377,26 @@ const sc = function(t) {
16364
16377
  if (I.indexOf("E") !== -1) return x(I, R);
16365
16378
  if (I.charCodeAt(0) === 36)
16366
16379
  return "$" + me(ge, I.substr(I.charAt(1) == " " ? 2 : 1), R);
16367
- var H, z, he, _e, Ne = Math.abs(R), Z = R < 0 ? "-" : "";
16380
+ var H, U, he, _e, Ne = Math.abs(R), Z = R < 0 ? "-" : "";
16368
16381
  if (I.match(/^00+$/)) return Z + u(Ne, I.length);
16369
16382
  if (I.match(/^[#?]+$/))
16370
16383
  return H = u(R, 0), H === "0" && (H = ""), H.length > I.length ? H : te(I.substr(0, I.length - H.length)) + H;
16371
- if (z = I.match(Y)) return E(z, Ne, Z);
16384
+ if (U = I.match(Y)) return E(U, Ne, Z);
16372
16385
  if (I.match(/^#+0+$/))
16373
16386
  return Z + u(Ne, I.length - I.indexOf("0"));
16374
- if (z = I.match(L))
16375
- return H = ve(R, z[1].length).replace(/^([^\.]+)$/, "$1." + te(z[1])).replace(/\.$/, "." + te(z[1])).replace(/\.(\d*)$/, function(ke, We) {
16376
- return "." + We + a("0", te(z[1]).length - We.length);
16387
+ if (U = I.match(L))
16388
+ return H = ve(R, U[1].length).replace(/^([^\.]+)$/, "$1." + te(U[1])).replace(/\.$/, "." + te(U[1])).replace(/\.(\d*)$/, function(ke, We) {
16389
+ return "." + We + a("0", te(U[1]).length - We.length);
16377
16390
  }), I.indexOf("0.") !== -1 ? H : H.replace(/^0\./, ".");
16378
- if (I = I.replace(/^#+([0.])/, "$1"), z = I.match(/^(0*)\.(#*)$/))
16379
- return Z + ve(Ne, z[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, z[1].length ? "0." : ".");
16380
- if (z = I.match(/^#{1,3},##0(\.?)$/))
16391
+ if (I = I.replace(/^#+([0.])/, "$1"), U = I.match(/^(0*)\.(#*)$/))
16392
+ return Z + ve(Ne, U[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, U[1].length ? "0." : ".");
16393
+ if (U = I.match(/^#{1,3},##0(\.?)$/))
16381
16394
  return Z + ne(u(Ne, 0));
16382
- if (z = I.match(/^#,##0\.([#0]*0)$/))
16383
- return R < 0 ? "-" + me(ge, I, -R) : ne("" + (Math.floor(R) + Te(R, z[1].length))) + "." + n(we(R, z[1].length), z[1].length);
16384
- if (z = I.match(/^#,#*,#0/))
16395
+ if (U = I.match(/^#,##0\.([#0]*0)$/))
16396
+ return R < 0 ? "-" + me(ge, I, -R) : ne("" + (Math.floor(R) + Te(R, U[1].length))) + "." + n(we(R, U[1].length), U[1].length);
16397
+ if (U = I.match(/^#,#*,#0/))
16385
16398
  return me(ge, I.replace(/^#,#*,/, ""), R);
16386
- if (z = I.match(/^([0#]+)(\\?-([0#]+))+$/))
16399
+ if (U = I.match(/^([0#]+)(\\?-([0#]+))+$/))
16387
16400
  return H = r(me(ge, I.replace(/[\\-]/g, ""), R)), he = 0, r(
16388
16401
  r(I.replace(/\\/g, "")).replace(/[0#]/g, function(ke) {
16389
16402
  return he < H.length ? H.charAt(he++) : ke === "0" ? "0" : "";
@@ -16392,21 +16405,21 @@ const sc = function(t) {
16392
16405
  if (I.match(de))
16393
16406
  return H = me(ge, "##########", R), "(" + H.substr(0, 3) + ") " + H.substr(3, 3) + "-" + H.substr(6);
16394
16407
  var le = "";
16395
- if (z = I.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
16396
- return he = Math.min(z[4].length, 7), _e = _(Ne, Math.pow(10, he) - 1, !1), H = "" + Z, le = G("n", z[1], _e[1]), le.charAt(le.length - 1) == " " && (le = le.substr(0, le.length - 1) + "0"), H += le + z[2] + "/" + z[3], le = i(_e[2], he), le.length < z[4].length && (le = te(z[4].substr(z[4].length - le.length)) + le), H += le, H;
16397
- if (z = I.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
16398
- return he = Math.min(Math.max(z[1].length, z[4].length), 7), _e = _(Ne, Math.pow(10, he) - 1, !0), Z + (_e[0] || (_e[1] ? "" : "0")) + " " + (_e[1] ? o(_e[1], he) + z[2] + "/" + z[3] + i(_e[2], he) : a(" ", 2 * he + 1 + z[2].length + z[3].length));
16399
- if (z = I.match(/^[#0?]+$/))
16408
+ if (U = I.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
16409
+ return he = Math.min(U[4].length, 7), _e = _(Ne, Math.pow(10, he) - 1, !1), H = "" + Z, le = G("n", U[1], _e[1]), le.charAt(le.length - 1) == " " && (le = le.substr(0, le.length - 1) + "0"), H += le + U[2] + "/" + U[3], le = i(_e[2], he), le.length < U[4].length && (le = te(U[4].substr(U[4].length - le.length)) + le), H += le, H;
16410
+ if (U = I.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
16411
+ return he = Math.min(Math.max(U[1].length, U[4].length), 7), _e = _(Ne, Math.pow(10, he) - 1, !0), Z + (_e[0] || (_e[1] ? "" : "0")) + " " + (_e[1] ? o(_e[1], he) + U[2] + "/" + U[3] + i(_e[2], he) : a(" ", 2 * he + 1 + U[2].length + U[3].length));
16412
+ if (U = I.match(/^[#0?]+$/))
16400
16413
  return H = u(R, 0), I.length <= H.length ? H : te(I.substr(0, I.length - H.length)) + H;
16401
- if (z = I.match(/^([#0?]+)\.([#0]+)$/)) {
16402
- H = "" + R.toFixed(Math.min(z[2].length, 10)).replace(/([^0])0+$/, "$1"), he = H.indexOf(".");
16414
+ if (U = I.match(/^([#0?]+)\.([#0]+)$/)) {
16415
+ H = "" + R.toFixed(Math.min(U[2].length, 10)).replace(/([^0])0+$/, "$1"), he = H.indexOf(".");
16403
16416
  var Re = I.indexOf(".") - he, Ae = I.length - H.length - Re;
16404
16417
  return te(I.substr(0, Re) + H + I.substr(I.length - Ae));
16405
16418
  }
16406
- if (z = I.match(/^00,000\.([#0]*0)$/))
16407
- return he = we(R, z[1].length), R < 0 ? "-" + me(ge, I, -R) : ne(Se(R)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(ke) {
16419
+ if (U = I.match(/^00,000\.([#0]*0)$/))
16420
+ return he = we(R, U[1].length), R < 0 ? "-" + me(ge, I, -R) : ne(Se(R)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(ke) {
16408
16421
  return "00," + (ke.length < 3 ? n(0, 3 - ke.length) : "") + ke;
16409
- }) + "." + n(he, z[1].length);
16422
+ }) + "." + n(he, U[1].length);
16410
16423
  switch (I) {
16411
16424
  case "###,##0.00":
16412
16425
  return me(ge, "#,##0.00", R);
@@ -16434,22 +16447,22 @@ const sc = function(t) {
16434
16447
  var X = I.replace($, ""), H = I.length - X.length;
16435
16448
  return G(ge, X, R * Math.pow(10, 2 * H)) + a("%", H);
16436
16449
  }
16437
- function Ue(ge, I) {
16450
+ function ze(ge, I) {
16438
16451
  var R, X = ge.indexOf("E") - ge.indexOf(".") - 1;
16439
16452
  if (ge.match(/^#+0.0E\+0$/)) {
16440
16453
  if (I == 0) return "0.0E+0";
16441
- if (I < 0) return "-" + Ue(ge, -I);
16454
+ if (I < 0) return "-" + ze(ge, -I);
16442
16455
  var H = ge.indexOf(".");
16443
16456
  H === -1 && (H = ge.indexOf("E"));
16444
- var z = Math.floor(Math.log(I) * Math.LOG10E) % H;
16445
- if (z < 0 && (z += H), R = (I / Math.pow(10, z)).toPrecision(
16446
- X + 1 + (H + z) % H
16457
+ var U = Math.floor(Math.log(I) * Math.LOG10E) % H;
16458
+ if (U < 0 && (U += H), R = (I / Math.pow(10, U)).toPrecision(
16459
+ X + 1 + (H + U) % H
16447
16460
  ), !R.match(/[Ee]/)) {
16448
16461
  var he = Math.floor(Math.log(I) * Math.LOG10E);
16449
- R.indexOf(".") === -1 ? R = R.charAt(0) + "." + R.substr(1) + "E+" + (he - R.length + z) : R += "E+" + (he - z), R = R.replace(/\+-/, "-");
16462
+ R.indexOf(".") === -1 ? R = R.charAt(0) + "." + R.substr(1) + "E+" + (he - R.length + U) : R += "E+" + (he - U), R = R.replace(/\+-/, "-");
16450
16463
  }
16451
16464
  R = R.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/, function(_e, Ne, Z, le) {
16452
- return Ne + Z + le.substr(0, (H + z) % H) + "." + le.substr(z) + "E";
16465
+ return Ne + Z + le.substr(0, (H + U) % H) + "." + le.substr(U) + "E";
16453
16466
  });
16454
16467
  } else R = Number(I).toExponential(X);
16455
16468
  return ge.match(/E\+00$/) && R.match(/e[+-]\d$/) && (R = R.substr(0, R.length - 1) + "0" + R.charAt(R.length - 1)), ge.match(/E\-/) && R.match(/e\+/) && (R = R.replace(/e\+/, "e")), R.replace("e", "E");
@@ -16462,29 +16475,29 @@ const sc = function(t) {
16462
16475
  if (I.charCodeAt(I.length - 1) === 44)
16463
16476
  return fe(ge, I, R);
16464
16477
  if (I.indexOf("%") !== -1) return He(ge, I, R);
16465
- if (I.indexOf("E") !== -1) return Ue(I, R);
16478
+ if (I.indexOf("E") !== -1) return ze(I, R);
16466
16479
  if (I.charCodeAt(0) === 36)
16467
16480
  return "$" + qe(ge, I.substr(I.charAt(1) == " " ? 2 : 1), R);
16468
- var H, z, he, _e, Ne = Math.abs(R), Z = R < 0 ? "-" : "";
16481
+ var H, U, he, _e, Ne = Math.abs(R), Z = R < 0 ? "-" : "";
16469
16482
  if (I.match(/^00+$/)) return Z + n(Ne, I.length);
16470
16483
  if (I.match(/^[#?]+$/))
16471
16484
  return H = "" + R, R === 0 && (H = ""), H.length > I.length ? H : te(I.substr(0, I.length - H.length)) + H;
16472
- if (z = I.match(Y)) return U(z, Ne, Z);
16485
+ if (U = I.match(Y)) return z(U, Ne, Z);
16473
16486
  if (I.match(/^#+0+$/))
16474
16487
  return Z + n(Ne, I.length - I.indexOf("0"));
16475
- if (z = I.match(L))
16476
- return H = ("" + R).replace(/^([^\.]+)$/, "$1." + te(z[1])).replace(/\.$/, "." + te(z[1])), H = H.replace(/\.(\d*)$/, function(ke, We) {
16477
- return "." + We + a("0", te(z[1]).length - We.length);
16488
+ if (U = I.match(L))
16489
+ return H = ("" + R).replace(/^([^\.]+)$/, "$1." + te(U[1])).replace(/\.$/, "." + te(U[1])), H = H.replace(/\.(\d*)$/, function(ke, We) {
16490
+ return "." + We + a("0", te(U[1]).length - We.length);
16478
16491
  }), I.indexOf("0.") !== -1 ? H : H.replace(/^0\./, ".");
16479
- if (I = I.replace(/^#+([0.])/, "$1"), z = I.match(/^(0*)\.(#*)$/))
16480
- return Z + ("" + Ne).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, z[1].length ? "0." : ".");
16481
- if (z = I.match(/^#{1,3},##0(\.?)$/))
16492
+ if (I = I.replace(/^#+([0.])/, "$1"), U = I.match(/^(0*)\.(#*)$/))
16493
+ return Z + ("" + Ne).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, U[1].length ? "0." : ".");
16494
+ if (U = I.match(/^#{1,3},##0(\.?)$/))
16482
16495
  return Z + ne("" + Ne);
16483
- if (z = I.match(/^#,##0\.([#0]*0)$/))
16484
- return R < 0 ? "-" + qe(ge, I, -R) : ne("" + R) + "." + a("0", z[1].length);
16485
- if (z = I.match(/^#,#*,#0/))
16496
+ if (U = I.match(/^#,##0\.([#0]*0)$/))
16497
+ return R < 0 ? "-" + qe(ge, I, -R) : ne("" + R) + "." + a("0", U[1].length);
16498
+ if (U = I.match(/^#,#*,#0/))
16486
16499
  return qe(ge, I.replace(/^#,#*,/, ""), R);
16487
- if (z = I.match(/^([0#]+)(\\?-([0#]+))+$/))
16500
+ if (U = I.match(/^([0#]+)(\\?-([0#]+))+$/))
16488
16501
  return H = r(qe(ge, I.replace(/[\\-]/g, ""), R)), he = 0, r(
16489
16502
  r(I.replace(/\\/g, "")).replace(/[0#]/g, function(ke) {
16490
16503
  return he < H.length ? H.charAt(he++) : ke === "0" ? "0" : "";
@@ -16493,21 +16506,21 @@ const sc = function(t) {
16493
16506
  if (I.match(de))
16494
16507
  return H = qe(ge, "##########", R), "(" + H.substr(0, 3) + ") " + H.substr(3, 3) + "-" + H.substr(6);
16495
16508
  var le = "";
16496
- if (z = I.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
16497
- return he = Math.min(z[4].length, 7), _e = _(Ne, Math.pow(10, he) - 1, !1), H = "" + Z, le = G("n", z[1], _e[1]), le.charAt(le.length - 1) == " " && (le = le.substr(0, le.length - 1) + "0"), H += le + z[2] + "/" + z[3], le = i(_e[2], he), le.length < z[4].length && (le = te(z[4].substr(z[4].length - le.length)) + le), H += le, H;
16498
- if (z = I.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
16499
- return he = Math.min(Math.max(z[1].length, z[4].length), 7), _e = _(Ne, Math.pow(10, he) - 1, !0), Z + (_e[0] || (_e[1] ? "" : "0")) + " " + (_e[1] ? o(_e[1], he) + z[2] + "/" + z[3] + i(_e[2], he) : a(" ", 2 * he + 1 + z[2].length + z[3].length));
16500
- if (z = I.match(/^[#0?]+$/))
16509
+ if (U = I.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
16510
+ return he = Math.min(U[4].length, 7), _e = _(Ne, Math.pow(10, he) - 1, !1), H = "" + Z, le = G("n", U[1], _e[1]), le.charAt(le.length - 1) == " " && (le = le.substr(0, le.length - 1) + "0"), H += le + U[2] + "/" + U[3], le = i(_e[2], he), le.length < U[4].length && (le = te(U[4].substr(U[4].length - le.length)) + le), H += le, H;
16511
+ if (U = I.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
16512
+ return he = Math.min(Math.max(U[1].length, U[4].length), 7), _e = _(Ne, Math.pow(10, he) - 1, !0), Z + (_e[0] || (_e[1] ? "" : "0")) + " " + (_e[1] ? o(_e[1], he) + U[2] + "/" + U[3] + i(_e[2], he) : a(" ", 2 * he + 1 + U[2].length + U[3].length));
16513
+ if (U = I.match(/^[#0?]+$/))
16501
16514
  return H = "" + R, I.length <= H.length ? H : te(I.substr(0, I.length - H.length)) + H;
16502
- if (z = I.match(/^([#0]+)\.([#0]+)$/)) {
16503
- H = "" + R.toFixed(Math.min(z[2].length, 10)).replace(/([^0])0+$/, "$1"), he = H.indexOf(".");
16515
+ if (U = I.match(/^([#0]+)\.([#0]+)$/)) {
16516
+ H = "" + R.toFixed(Math.min(U[2].length, 10)).replace(/([^0])0+$/, "$1"), he = H.indexOf(".");
16504
16517
  var Re = I.indexOf(".") - he, Ae = I.length - H.length - Re;
16505
16518
  return te(I.substr(0, Re) + H + I.substr(I.length - Ae));
16506
16519
  }
16507
- if (z = I.match(/^00,000\.([#0]*0)$/))
16520
+ if (U = I.match(/^00,000\.([#0]*0)$/))
16508
16521
  return R < 0 ? "-" + qe(ge, I, -R) : ne("" + R).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(ke) {
16509
16522
  return "00," + (ke.length < 3 ? n(0, 3 - ke.length) : "") + ke;
16510
- }) + "." + n(0, z[1].length);
16523
+ }) + "." + n(0, U[1].length);
16511
16524
  switch (I) {
16512
16525
  case "###,###":
16513
16526
  case "##,###":
@@ -16639,11 +16652,11 @@ const sc = function(t) {
16639
16652
  }
16640
16653
  t.is_date = ae;
16641
16654
  function se(q, $, A, B) {
16642
- for (var x = [], Y = "", E = 0, U = "", L = "t", pe, de, te, ve = "H"; E < q.length; )
16643
- switch (U = q.charAt(E)) {
16655
+ for (var x = [], Y = "", E = 0, z = "", L = "t", pe, de, te, ve = "H"; E < q.length; )
16656
+ switch (z = q.charAt(E)) {
16644
16657
  case "G":
16645
16658
  if (!f(q, E))
16646
- throw new Error("unrecognized character " + U + " in " + q);
16659
+ throw new Error("unrecognized character " + z + " in " + q);
16647
16660
  x[x.length] = {
16648
16661
  t: "G",
16649
16662
  v: "General"
@@ -16684,7 +16697,7 @@ const sc = function(t) {
16684
16697
  x[x.length] = {
16685
16698
  t: "X",
16686
16699
  v: q.substr(E, 2)
16687
- }, L = U, E += 2;
16700
+ }, L = z, E += 2;
16688
16701
  break;
16689
16702
  }
16690
16703
  case "M":
@@ -16693,7 +16706,7 @@ const sc = function(t) {
16693
16706
  case "H":
16694
16707
  case "S":
16695
16708
  case "E":
16696
- U = U.toLowerCase();
16709
+ z = z.toLowerCase();
16697
16710
  case "m":
16698
16711
  case "d":
16699
16712
  case "y":
@@ -16704,24 +16717,24 @@ const sc = function(t) {
16704
16717
  if ($ < 0) return "";
16705
16718
  if (pe == null && (pe = T($, A), pe == null))
16706
16719
  return $;
16707
- for (Y = U; ++E < q.length && q.charAt(E).toLowerCase() === U; ) Y += U;
16708
- U === "m" && L.toLowerCase() === "h" && (U = "M"), U === "h" && (U = ve), x[x.length] = {
16709
- t: U,
16720
+ for (Y = z; ++E < q.length && q.charAt(E).toLowerCase() === z; ) Y += z;
16721
+ z === "m" && L.toLowerCase() === "h" && (z = "M"), z === "h" && (z = ve), x[x.length] = {
16722
+ t: z,
16710
16723
  v: Y
16711
- }, L = U;
16724
+ }, L = z;
16712
16725
  break;
16713
16726
  case "A":
16714
16727
  case "a":
16715
16728
  case "上":
16716
16729
  var Se = {
16717
- t: U,
16718
- v: U
16730
+ t: z,
16731
+ v: z
16719
16732
  };
16720
16733
  if (pe == null && (pe = T($, A)), q.substr(E, 3).toUpperCase() === "A/P" ? (pe != null && (Se.v = pe.H >= 12 ? "P" : "A"), Se.t = "T", ve = "h", E += 3) : q.substr(E, 5).toUpperCase() === "AM/PM" ? (pe != null && (Se.v = pe.H >= 12 ? "PM" : "AM"), Se.t = "T", E += 5, ve = "h") : q.substr(E, 5).toUpperCase() === "上午/下午" ? (pe != null && (Se.v = pe.H >= 12 ? "下午" : "上午"), Se.t = "T", E += 5, ve = "h") : (Se.t = "t", ++E), pe == null && Se.t === "T") return "";
16721
- x[x.length] = Se, L = U;
16734
+ x[x.length] = Se, L = z;
16722
16735
  break;
16723
16736
  case "[":
16724
- for (Y = U; q.charAt(E++) !== "]" && E < q.length; ) Y += q.charAt(E);
16737
+ for (Y = z; q.charAt(E++) !== "]" && E < q.length; ) Y += q.charAt(E);
16725
16738
  if (Y.slice(-1) !== "]") throw 'unterminated "[" block: |' + Y + "|";
16726
16739
  if (Y.match(F)) {
16727
16740
  if (pe == null && (pe = T($, A), pe == null))
@@ -16737,7 +16750,7 @@ const sc = function(t) {
16737
16750
  break;
16738
16751
  case ".":
16739
16752
  if (pe != null) {
16740
- for (Y = U; ++E < q.length && (U = q.charAt(E)) === "0"; ) Y += U;
16753
+ for (Y = z; ++E < q.length && (z = q.charAt(E)) === "0"; ) Y += z;
16741
16754
  x[x.length] = {
16742
16755
  t: "s",
16743
16756
  v: Y
@@ -16746,19 +16759,19 @@ const sc = function(t) {
16746
16759
  }
16747
16760
  case "0":
16748
16761
  case "#":
16749
- for (Y = U; ++E < q.length && "0#?.,E+-%".indexOf(U = q.charAt(E)) > -1; )
16750
- Y += U;
16762
+ for (Y = z; ++E < q.length && "0#?.,E+-%".indexOf(z = q.charAt(E)) > -1; )
16763
+ Y += z;
16751
16764
  x[x.length] = {
16752
16765
  t: "n",
16753
16766
  v: Y
16754
16767
  };
16755
16768
  break;
16756
16769
  case "?":
16757
- for (Y = U; q.charAt(++E) === U; ) Y += U;
16770
+ for (Y = z; q.charAt(++E) === z; ) Y += z;
16758
16771
  x[x.length] = {
16759
- t: U,
16772
+ t: z,
16760
16773
  v: Y
16761
- }, L = U;
16774
+ }, L = z;
16762
16775
  break;
16763
16776
  case "*":
16764
16777
  ++E, (q.charAt(E) == " " || q.charAt(E) == "*") && ++E;
@@ -16766,8 +16779,8 @@ const sc = function(t) {
16766
16779
  case "(":
16767
16780
  case ")":
16768
16781
  x[x.length] = {
16769
- t: B === 1 ? "t" : U,
16770
- v: U
16782
+ t: B === 1 ? "t" : z,
16783
+ v: z
16771
16784
  }, ++E;
16772
16785
  break;
16773
16786
  case "1":
@@ -16779,7 +16792,7 @@ const sc = function(t) {
16779
16792
  case "7":
16780
16793
  case "8":
16781
16794
  case "9":
16782
- for (Y = U; E < q.length && "0123456789".indexOf(q.charAt(++E)) > -1; )
16795
+ for (Y = z; E < q.length && "0123456789".indexOf(q.charAt(++E)) > -1; )
16783
16796
  Y += q.charAt(E);
16784
16797
  x[x.length] = {
16785
16798
  t: "D",
@@ -16788,8 +16801,8 @@ const sc = function(t) {
16788
16801
  break;
16789
16802
  case " ":
16790
16803
  x[x.length] = {
16791
- t: U,
16792
- v: U
16804
+ t: z,
16805
+ v: z
16793
16806
  }, ++E;
16794
16807
  break;
16795
16808
  case "$":
@@ -16800,12 +16813,12 @@ const sc = function(t) {
16800
16813
  break;
16801
16814
  default:
16802
16815
  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(
16803
- U
16816
+ z
16804
16817
  ) === -1)
16805
- throw new Error("unrecognized character " + U + " in " + q);
16818
+ throw new Error("unrecognized character " + z + " in " + q);
16806
16819
  x[x.length] = {
16807
16820
  t: "t",
16808
- v: U
16821
+ v: z
16809
16822
  }, ++E;
16810
16823
  break;
16811
16824
  }
@@ -16842,7 +16855,7 @@ const sc = function(t) {
16842
16855
  pe.u >= 0.5 && (pe.u = 0, ++pe.S), pe.S >= 60 && (pe.S = 0, ++pe.M);
16843
16856
  break;
16844
16857
  }
16845
- var Ue = "", qe;
16858
+ var ze = "", qe;
16846
16859
  for (E = 0; E < x.length; ++E)
16847
16860
  switch (x[E].t) {
16848
16861
  case "t":
@@ -16867,20 +16880,20 @@ const sc = function(t) {
16867
16880
  break;
16868
16881
  case "n":
16869
16882
  case "?":
16870
- for (qe = E + 1; x[qe] != null && ((U = x[qe].t) === "?" || U === "D" || (U === " " || U === "t") && x[qe + 1] != null && (x[qe + 1].t === "?" || x[qe + 1].t === "t" && x[qe + 1].v === "/") || x[E].t === "(" && (U === " " || U === "n" || U === ")") || U === "t" && (x[qe].v === "/" || x[qe].v === " " && x[qe + 1] != null && x[qe + 1].t == "?")); )
16883
+ for (qe = E + 1; x[qe] != null && ((z = x[qe].t) === "?" || z === "D" || (z === " " || z === "t") && x[qe + 1] != null && (x[qe + 1].t === "?" || x[qe + 1].t === "t" && x[qe + 1].v === "/") || x[E].t === "(" && (z === " " || z === "n" || z === ")") || z === "t" && (x[qe].v === "/" || x[qe].v === " " && x[qe + 1] != null && x[qe + 1].t == "?")); )
16871
16884
  x[E].v += x[qe].v, x[qe] = {
16872
16885
  v: "",
16873
16886
  t: ";"
16874
16887
  }, ++qe;
16875
- Ue += x[E].v, E = qe - 1;
16888
+ ze += x[E].v, E = qe - 1;
16876
16889
  break;
16877
16890
  case "G":
16878
16891
  x[E].t = "t", x[E].v = P($, A);
16879
16892
  break;
16880
16893
  }
16881
16894
  var ge = "", I, R;
16882
- if (Ue.length > 0) {
16883
- Ue.charCodeAt(0) == 40 ? (I = $ < 0 && Ue.charCodeAt(0) === 45 ? -$ : $, R = G("n", Ue, I)) : (I = $ < 0 && B > 1 ? -$ : $, R = G("n", Ue, I), I < 0 && x[0] && x[0].t == "t" && (R = R.substr(1), x[0].v = "-" + x[0].v)), qe = R.length - 1;
16895
+ if (ze.length > 0) {
16896
+ ze.charCodeAt(0) == 40 ? (I = $ < 0 && ze.charCodeAt(0) === 45 ? -$ : $, R = G("n", ze, I)) : (I = $ < 0 && B > 1 ? -$ : $, R = G("n", ze, I), I < 0 && x[0] && x[0].t == "t" && (R = R.substr(1), x[0].v = "-" + x[0].v)), qe = R.length - 1;
16884
16897
  var X = x.length;
16885
16898
  for (E = 0; E < x.length; ++E)
16886
16899
  if (x[E] != null && x[E].t != "t" && x[E].v.indexOf(".") > -1) {
@@ -16909,9 +16922,9 @@ const sc = function(t) {
16909
16922
  }
16910
16923
  for (E = 0; E < x.length; ++E)
16911
16924
  x[E] != null && "n?".indexOf(x[E].t) > -1 && (I = B > 1 && $ < 0 && E > 0 && x[E - 1].v === "-" ? -$ : $, x[E].v = G(x[E].t, x[E].v, I), x[E].t = "t");
16912
- var z = "";
16913
- for (E = 0; E !== x.length; ++E) x[E] != null && (z += x[E].v);
16914
- return z;
16925
+ var U = "";
16926
+ for (E = 0; E !== x.length; ++E) x[E] != null && (U += x[E].v);
16927
+ return U;
16915
16928
  }
16916
16929
  t._eval = se;
16917
16930
  var ue = /\[[=<>]/, be = /\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;
@@ -16961,8 +16974,8 @@ const sc = function(t) {
16961
16974
  if (A[0].indexOf("[") === -1 && A[1].indexOf("[") === -1)
16962
16975
  return [B, Y];
16963
16976
  if (A[0].match(ue) != null || A[1].match(ue) != null) {
16964
- var E = A[0].match(be), U = A[1].match(be);
16965
- return J($, E) ? [B, A[0]] : J($, U) ? [B, A[1]] : [B, A[E != null && U != null ? 2 : 1]];
16977
+ var E = A[0].match(be), z = A[1].match(be);
16978
+ return J($, E) ? [B, A[0]] : J($, z) ? [B, A[1]] : [B, A[E != null && z != null ? 2 : 1]];
16966
16979
  }
16967
16980
  return [B, Y];
16968
16981
  }
@@ -16990,8 +17003,8 @@ const sc = function(t) {
16990
17003
  if (B.match(Y)) {
16991
17004
  if (isNaN($))
16992
17005
  return $;
16993
- var E = B.slice(1), U = !1;
16994
- !isNaN($) && Number($) < 0 && (U = !0, $ = Math.abs($));
17006
+ var E = B.slice(1), z = !1;
17007
+ !isNaN($) && Number($) < 0 && (z = !0, $ = Math.abs($));
16995
17008
  var L = parseInt($), pe = L.toString().length;
16996
17009
  if (pe > 4) {
16997
17010
  if (pe > 8) {
@@ -17063,7 +17076,7 @@ const sc = function(t) {
17063
17076
  }
17064
17077
  } else
17065
17078
  E != "" && ($ = Ft($).format(E));
17066
- return U ? "-" + $ : $;
17079
+ return z ? "-" + $ : $;
17067
17080
  }
17068
17081
  if (f(B, 0)) return P($, A);
17069
17082
  $ instanceof Date && ($ = D($, A.date1904));
@@ -17518,7 +17531,7 @@ function $a(e, t) {
17518
17531
  let r = h.sortedIndex(t, e);
17519
17532
  return r >= t.length && e > 0 ? r = t.length - 1 : r === -1 && e <= 0 && (r = 0), $c(r, t);
17520
17533
  }
17521
- let Kt = 0, Un = [];
17534
+ let Kt = 0, zn = [];
17522
17535
  const Cc = {
17523
17536
  "^": 0,
17524
17537
  "%": 1,
@@ -18032,7 +18045,7 @@ function Hc(e) {
18032
18045
  }
18033
18046
  return o -= l, i -= c, o === i;
18034
18047
  }
18035
- function Uc(e, t, r, a, n) {
18048
+ function zc(e, t, r, a, n) {
18036
18049
  h.isNil(a) && (a = e.currentSheetId);
18037
18050
  const { luckysheetfile: o } = e, i = Fe(e, a);
18038
18051
  if (h.isNil(i))
@@ -18054,7 +18067,7 @@ function Uc(e, t, r, a, n) {
18054
18067
  };
18055
18068
  c.push(s), l.calcChain = c, e.luckysheetfile = o;
18056
18069
  }
18057
- function zc(e) {
18070
+ function Uc(e) {
18058
18071
  if (!e.startsWith("=")) return e;
18059
18072
  const t = e.indexOf("(");
18060
18073
  return t === -1 ? e : `=${e.substring(1, t).replace(/\./g, "_")}${e.substring(t)}`;
@@ -18062,7 +18075,7 @@ function zc(e) {
18062
18075
  function Tn(e, t, r, a, n, o, i, l) {
18063
18076
  var N;
18064
18077
  const c = t;
18065
- if ((t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = zc(t)), t.indexOf(Nn.r) > -1)
18078
+ if ((t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = Uc(t)), t.indexOf(Nn.r) > -1)
18066
18079
  return [!1, Nn.r, t];
18067
18080
  Hc(t) || (t += ")"), h.isNil(n) && (n = e.currentSheetId), e.calculateSheetId = n;
18068
18081
  const s = n || e.currentSheetId, u = `${s}:${r}:${a}`, f = /* @__PURE__ */ new Set();
@@ -18118,7 +18131,7 @@ function Tn(e, t, r, a, n, o, i, l) {
18118
18131
  n
18119
18132
  );
18120
18133
  }
18121
- l || Uc(e, r, a, n, o);
18134
+ l || zc(e, r, a, n, o);
18122
18135
  }
18123
18136
  let w = b;
18124
18137
  e.formulaCache.parser.cryptoDenomination && e.formulaCache.parser.cryptoDenomination !== "" && (typeof b == "number" || typeof b == "string") && (w = `${Number(b).toFixed(
@@ -18713,7 +18726,7 @@ function dn(e) {
18713
18726
  n += s;
18714
18727
  }
18715
18728
  if (vt(h.trim(l))) {
18716
- const d = Un.length > Kt ? Un[Kt] : Kt;
18729
+ const d = zn.length > Kt ? zn[Kt] : Kt;
18717
18730
  n += `<span class="fortune-formula-functionrange-cell" rangeindex="${d}" dir="auto" style="color:${_a[d]};">${l}</span>`, Kt += 1;
18718
18731
  } else if (c > 0)
18719
18732
  n += `${l}</span>`;
@@ -19013,7 +19026,7 @@ function ou(e, t, r, a, n, o = !0) {
19013
19026
  let b = y(r);
19014
19027
  if ((a === 8 || a === 46) && (b = b.replace(/\n{2,}$/, `
19015
19028
  `)), b = hf(b), b.length > 0 && b.substring(0, 1) === "=" && (a !== 229 || b.length === 1)) {
19016
- if (o || (Un = dl(r)), b = ta(b), !o && Kt < Un.length && (o = !0), p = ta(g), Un = [], window.getSelection) {
19029
+ if (o || (zn = dl(r)), b = ta(b), !o && Kt < zn.length && (o = !0), p = ta(g), zn = [], window.getSelection) {
19017
19030
  const w = window.getSelection();
19018
19031
  if (!w) return;
19019
19032
  if (((i = w.anchorNode) == null ? void 0 : i.nodeName.toLowerCase()) === "div") {
@@ -20005,7 +20018,7 @@ function hd(e, t, r, a, n, o, i) {
20005
20018
  const l = n.rulesType, c = [], s = [];
20006
20019
  if (l === "greaterThan" || l === "greaterThanOrEqual" || l === "lessThan" || l === "lessThanOrEqual" || l === "equal" || l === "notEqual" || l === "textContains" || l === "textDoesNotContain" || l === "textStartsWith" || l === "textEndsWith" || l === "textExactly") {
20007
20020
  let _ = n.rulesValue;
20008
- const T = zn(e, _);
20021
+ const T = Un(e, _);
20009
20022
  if (T.length > 1) {
20010
20023
  const v = T[0].row[0], N = T[0].row[1], C = T[0].column[0], D = T[0].column[1];
20011
20024
  if (v === N && C === D) {
@@ -20030,7 +20043,7 @@ function hd(e, t, r, a, n, o, i) {
20030
20043
  }
20031
20044
  } else if (l === "between" || l === "notBetween") {
20032
20045
  let _ = n.betweenValue.value1, T = n.betweenValue.value2;
20033
- const v = zn(e, _);
20046
+ const v = Un(e, _);
20034
20047
  if (v.length > 1) {
20035
20048
  e.warnDialog = a.onlySingleCell;
20036
20049
  return;
@@ -20055,7 +20068,7 @@ function hd(e, t, r, a, n, o, i) {
20055
20068
  }
20056
20069
  s.push(_);
20057
20070
  }
20058
- const N = zn(e, T);
20071
+ const N = Un(e, T);
20059
20072
  if (N.length > 1) {
20060
20073
  e.warnDialog = a.onlySingleCell;
20061
20074
  return;
@@ -21138,7 +21151,7 @@ function gd(e, t, r) {
21138
21151
  }
21139
21152
  function yd(e, t, r) {
21140
21153
  var p, y;
21141
- const a = zn(
21154
+ const a = Un(
21142
21155
  e,
21143
21156
  (y = (p = e.dataVerification) == null ? void 0 : p.dataRegulation) == null ? void 0 : y.rangeTxt
21144
21157
  );
@@ -21808,7 +21821,7 @@ function tn(e, t, r, a) {
21808
21821
  }
21809
21822
  return null;
21810
21823
  }
21811
- function Uu(e, t, r, a, n, o, i, l, c) {
21824
+ function zu(e, t, r, a, n, o, i, l, c) {
21812
21825
  const s = t.r, u = t.r + t.rs - 1, f = t.c, m = t.c + t.cs - 1;
21813
21826
  let d = !1;
21814
21827
  if (r[0] = Math.min(r[0], r[1]), a[0] = Math.min(a[0], a[1]), r[0] <= f && r[1] >= m && a[0] <= s && a[1] >= u || !(r[1] < f || r[0] > m) && !(a[1] < s || a[0] > u)) {
@@ -21836,7 +21849,7 @@ function Yn(e, t, r, a, n, o, i, l) {
21836
21849
  const d = s[m], p = c[d];
21837
21850
  if (d in f)
21838
21851
  continue;
21839
- const y = Uu(
21852
+ const y = zu(
21840
21853
  e,
21841
21854
  p,
21842
21855
  t,
@@ -21858,7 +21871,7 @@ function xl(e) {
21858
21871
  function jt(e) {
21859
21872
  xl(e), e.luckysheetCellUpdate = [], e.formulaRangeHighlight = [], e.functionHint = null, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangeSelectionActive = null, e.formulaCache.keyboardRangeSelectionLock = !1, e.formulaCache.formulaEditorOwner = null;
21860
21873
  }
21861
- function zu(e) {
21874
+ function Uu(e) {
21862
21875
  return typeof e == "number" ? Number.isFinite(e) : typeof e != "string" ? !1 : /^[\d.,]+$/.test(e.replace(/\s/g, ""));
21863
21876
  }
21864
21877
  function Wu(e) {
@@ -21890,7 +21903,7 @@ function Vu(e, t, r, a, n, o) {
21890
21903
  ye != null && ye.startsWith("=") && (ye = be(ye).replace(/[\r\n]/g, ""));
21891
21904
  const q = a == null ? void 0 : a.innerHTML, $ = !!q && (/<br\s*\/?>/i.test(q) || /[\r\n]/.test(q)), A = !!se && /[\r\n]/.test(se), B = !!q && !!se && ue.startsWith("=") && ($ || A), x = Ie(e);
21892
21905
  if (!x) return;
21893
- const Y = Fe(e, e.currentSheetId), { dataVerification: E } = e.luckysheetfile[Y], U = e.luckysheetfile[Y];
21906
+ const Y = Fe(e, e.currentSheetId), { dataVerification: E } = e.luckysheetfile[Y], z = e.luckysheetfile[Y];
21894
21907
  if (!h.isNil(E)) {
21895
21908
  const Z = E[`${t}_${r}`];
21896
21909
  if (!h.isNil(Z) && Z.prohibitInput && !vl(e, Z, ye)) {
@@ -21915,7 +21928,7 @@ function Vu(e, t, r, a, n, o) {
21915
21928
  else if (we) {
21916
21929
  h.isPlainObject(L) || (L = {}), L || (L = {});
21917
21930
  const Z = L.fs || 10;
21918
- L.ct || (L.ct = {}, L.ct.fa = "General", L.tb = "1"), L.ct.t = "inlineStr", Hu(a), L.ct.s = Us(
21931
+ L.ct || (L.ct = {}, L.ct.fa = "General", L.tb = "1"), L.ct.t = "inlineStr", Hu(a), L.ct.s = zs(
21919
21932
  a.querySelectorAll("span"),
21920
21933
  L
21921
21934
  ), delete L.fs, delete L.f, delete L._formulaEditHtml, delete L.v, delete L.m, L.fs = Z, Te && (L.ct.s = [
@@ -21961,13 +21974,13 @@ function Vu(e, t, r, a, n, o) {
21961
21974
  h.isString(n) && n.slice(0, 1) === "=" && n.length > 1 || h.isPlainObject(L) && L && L.ct && L.ct.fa && L.ct.fa !== "@" && !Je(n) && (delete L.m, L.f && (delete L.f, delete L._formulaEditHtml, delete L.spl));
21962
21975
  }
21963
21976
  let He = !0;
21964
- const Ue = x;
21977
+ const ze = x;
21965
21978
  let qe = null;
21966
21979
  if (h.isPlainObject(L)) {
21967
21980
  if (!we)
21968
21981
  if (h.isString(n) && n.slice(0, 1) === "=" && n.length > 1) {
21969
21982
  const Z = Tn(e, n, t, r, void 0, void 0, !0);
21970
- if (He = !1, L = h.cloneDeep(((d = Ue == null ? void 0 : Ue[t]) == null ? void 0 : d[r]) || {}), [, L.v, L.f] = Z, L.ct || (L.ct = {}), B ? (L.ct.s = [
21983
+ if (He = !1, L = h.cloneDeep(((d = ze == null ? void 0 : ze[t]) == null ? void 0 : d[r]) || {}), [, L.v, L.f] = Z, L.ct || (L.ct = {}), B ? (L.ct.s = [
21971
21984
  {
21972
21985
  v: ce(L.f),
21973
21986
  fs: L.fs || 10
@@ -21989,7 +22002,7 @@ function Vu(e, t, r, a, n, o) {
21989
22002
  void 0,
21990
22003
  !0
21991
22004
  );
21992
- if (He = !1, L = h.cloneDeep(((p = Ue == null ? void 0 : Ue[t]) == null ? void 0 : p[r]) || {}), [, L.v, L.f] = le, L.ct || (L.ct = {}), B ? (L.ct.s = [
22005
+ if (He = !1, L = h.cloneDeep(((p = ze == null ? void 0 : ze[t]) == null ? void 0 : p[r]) || {}), [, L.v, L.f] = le, L.ct || (L.ct = {}), B ? (L.ct.s = [
21993
22006
  {
21994
22007
  v: ce(L.f),
21995
22008
  fs: L.fs || 10
@@ -22004,7 +22017,7 @@ function Vu(e, t, r, a, n, o) {
22004
22017
  L[le] = n[le];
22005
22018
  }), en(e, t, r);
22006
22019
  } else {
22007
- en(e, t, r), ea(e, t, r), L = h.cloneDeep(((y = Ue == null ? void 0 : Ue[t]) == null ? void 0 : y[r]) || {}), L.v = n, delete L.f, delete L._formulaEditHtml, delete L.spl;
22020
+ en(e, t, r), ea(e, t, r), L = h.cloneDeep(((y = ze == null ? void 0 : ze[t]) == null ? void 0 : y[r]) || {}), L.v = n, delete L.f, delete L._formulaEditHtml, delete L.spl;
22008
22021
  const Z = (g = te == null ? void 0 : te.m) != null && g.toString().includes(".") ? (w = (b = te == null ? void 0 : te.m) == null ? void 0 : b.toString().split(" ")[0].split(".")[1]) == null ? void 0 : w.length : 0, le = (_ = te == null ? void 0 : te.m) == null ? void 0 : _.toString().split(" ")[1];
22009
22022
  typeof L == "object" && (L != null && L.baseValue) && (te != null && te.baseCurrencyPrice) && (L.m = `${(parseFloat(n) / te.baseCurrencyPrice).toFixed(Z || 2)} ${le}`, L.baseValue = n), Vn(e, t, r, L), He = !1, L.qp === 1 && `${n}`.substring(0, 1) !== "'" && (L.qp = 0, L.ct && (L.ct.fa = "General", L.ct.t = "n"));
22010
22023
  }
@@ -22019,8 +22032,8 @@ function Vu(e, t, r, a, n, o) {
22019
22032
  v: ce(n.f),
22020
22033
  fs: n.fs || 10
22021
22034
  }
22022
- ], K(n)) : (T = n.ct) == null || delete T.s, zu(n.v)) {
22023
- const le = (v = Il(n == null ? void 0 : n.f)) == null ? void 0 : v.split(","), Re = le == null ? void 0 : le.map((Ee) => Ee.trim().toUpperCase()), Ae = Dl(Re, Ue, x);
22035
+ ], K(n)) : (T = n.ct) == null || delete T.s, Uu(n.v)) {
22036
+ const le = (v = Il(n == null ? void 0 : n.f)) == null ? void 0 : v.split(","), Re = le == null ? void 0 : le.map((Ee) => Ee.trim().toUpperCase()), Ae = Dl(Re, ze, x);
22024
22037
  if (Ae) {
22025
22038
  const Ee = typeof n.v == "number" ? n.v : Number(String(n.v).replace(/,/g, ""));
22026
22039
  n.m = Number.isFinite(Ee) ? String(kt(Ae, Ee)) : String(n.v), n.ct = {
@@ -22076,9 +22089,9 @@ function Vu(e, t, r, a, n, o) {
22076
22089
  } : typeof n == "object" && !n.tb && (n.tb = "1");
22077
22090
  const R = Array.isArray((P = n == null ? void 0 : n.v) == null ? void 0 : P[0]);
22078
22091
  try {
22079
- if (R && Cl(e, t, r, n, Ue)) {
22092
+ if (R && Cl(e, t, r, n, ze)) {
22080
22093
  if (jt(e), e.hooks.afterUpdateCell) {
22081
- const Z = h.cloneDeep(Ue[t][r]);
22094
+ const Z = h.cloneDeep(ze[t][r]);
22082
22095
  (V = (j = e.hooks).onLocalCellEdit) == null || V.call(j), setTimeout(
22083
22096
  () => {
22084
22097
  var le, Re;
@@ -22091,15 +22104,15 @@ function Vu(e, t, r, a, n, o) {
22091
22104
  }
22092
22105
  } catch {
22093
22106
  }
22094
- const X = `${t}_${r}`, H = (ne = U.hyperlink) == null ? void 0 : ne[X];
22107
+ const X = `${t}_${r}`, H = (ne = z.hyperlink) == null ? void 0 : ne[X];
22095
22108
  if (typeof n == "object" && n && ((G = n.ct) == null ? void 0 : G.t) === "inlineStr") {
22096
22109
  const Z = Bs(n);
22097
- U.hyperlink || (U.hyperlink = {}), Z.length === 0 ? delete U.hyperlink[X] : U.hyperlink[X] = Z.length === 1 ? Z[0] : Z, typeof n == "object" && n && "hl" in n && delete n.hl;
22110
+ z.hyperlink || (z.hyperlink = {}), Z.length === 0 ? delete z.hyperlink[X] : z.hyperlink[X] = Z.length === 1 ? Z[0] : Z, typeof n == "object" && n && "hl" in n && delete n.hl;
22098
22111
  } else
22099
- H && U.hyperlink && delete U.hyperlink[X], typeof n == "object" && n && "hl" in n && delete n.hl;
22100
- bn(e, t, r, Ue, n), jt(e);
22101
- const z = e.luckysheetfile[Fe(e, e.currentSheetId)].config || {}, he = (te == null ? void 0 : te.tb) === "2" && !h.isNil(te == null ? void 0 : te.v) && (te == null ? void 0 : te.v) !== "" || Vt(te), _e = Ue[t][r], Ne = (_e == null ? void 0 : _e.tb) === "2" && !h.isNil(_e == null ? void 0 : _e.v) && (_e == null ? void 0 : _e.v) !== "" || Vt(_e);
22102
- if ((he || Ne) && !((Q = z.customHeight) != null && Q[t]) && o && Nl(e, t, Ue, o), e.hooks.afterUpdateCell) {
22112
+ H && z.hyperlink && delete z.hyperlink[X], typeof n == "object" && n && "hl" in n && delete n.hl;
22113
+ bn(e, t, r, ze, n), jt(e);
22114
+ const U = e.luckysheetfile[Fe(e, e.currentSheetId)].config || {}, he = (te == null ? void 0 : te.tb) === "2" && !h.isNil(te == null ? void 0 : te.v) && (te == null ? void 0 : te.v) !== "" || Vt(te), _e = ze[t][r], Ne = (_e == null ? void 0 : _e.tb) === "2" && !h.isNil(_e == null ? void 0 : _e.v) && (_e == null ? void 0 : _e.v) !== "" || Vt(_e);
22115
+ if ((he || Ne) && !((Q = U.customHeight) != null && Q[t]) && o && Nl(e, t, ze, o), e.hooks.afterUpdateCell) {
22103
22116
  const Z = h.cloneDeep(x[t][r]), { afterUpdateCell: le } = e.hooks;
22104
22117
  (ae = (F = e.hooks).onLocalCellEdit) == null || ae.call(F), setTimeout(() => {
22105
22118
  le == null || le(t, r, te, Z);
@@ -22155,7 +22168,7 @@ function Io(e, t, r, a) {
22155
22168
  c
22156
22169
  )}` : l == null && c == null ? `${n + (o + 1)}:${i + 1}` : l === c && o === i ? n + Ze(l) + (o + 1) : `${n + Ze(l) + (o + 1)}:${Ze(c)}${i + 1}`;
22157
22170
  }
22158
- function zn(e, t) {
22171
+ function Un(e, t) {
22159
22172
  let r = [];
22160
22173
  if (t.indexOf(",") !== -1) {
22161
22174
  const a = t.split(",");
@@ -22189,7 +22202,7 @@ function Xu(e) {
22189
22202
  }
22190
22203
  function Td(e, t) {
22191
22204
  const r = (t ?? "").trim();
22192
- return r === "" ? !0 : Xu(r) ? !1 : zn(e, r).length > 0;
22205
+ return r === "" ? !0 : Xu(r) ? !1 : Un(e, r).length > 0;
22193
22206
  }
22194
22207
  function $d(e, t, r) {
22195
22208
  if (!h.isEmpty(e.luckysheetCellUpdate)) {
@@ -22972,7 +22985,7 @@ function Ht(e, t, r, a) {
22972
22985
  l = o;
22973
22986
  return [i, l];
22974
22987
  }
22975
- function Ut(e, t, r, a) {
22988
+ function zt(e, t, r, a) {
22976
22989
  const n = Ie(e);
22977
22990
  if (h.isNil(n))
22978
22991
  return [null, null];
@@ -23134,16 +23147,16 @@ function Pd(e, t, r, a) {
23134
23147
  f >= g && (f = g - 1), f < 0 && (f = 0), u >= g && (u = g - 1), u < 0 && (u = 0);
23135
23148
  } else {
23136
23149
  if (Et(e, y, u, f)) {
23137
- const v = Ut(e, y, u, f), N = v[0], C = v[1];
23150
+ const v = zt(e, y, u, f), N = v[0], C = v[1];
23138
23151
  if (!h.isNil(N) && N > m && C === d) {
23139
23152
  if (r > 0 && Et(e, m, u, f)) {
23140
- const D = Ut(e, m, u, f)[1];
23153
+ const D = zt(e, m, u, f)[1];
23141
23154
  h.isNil(D) || (m = D), m += r;
23142
23155
  }
23143
23156
  m += r;
23144
23157
  } else if (!h.isNil(C) && C < d && N === m) {
23145
23158
  if (r < 0 && Et(e, d, u, f)) {
23146
- const D = Ut(e, d, u, f)[0];
23159
+ const D = zt(e, d, u, f)[0];
23147
23160
  h.isNil(D) || (d = D);
23148
23161
  }
23149
23162
  d += r;
@@ -23151,13 +23164,13 @@ function Pd(e, t, r, a) {
23151
23164
  r > 0 ? d += r : m += r;
23152
23165
  } else if (y > m && y === d) {
23153
23166
  if (r > 0 && Et(e, m, u, f)) {
23154
- const v = Ut(e, m, u, f)[1];
23167
+ const v = zt(e, m, u, f)[1];
23155
23168
  h.isNil(v) || (m = v), m += r;
23156
23169
  }
23157
23170
  m += r;
23158
23171
  } else if (y < d && y === m) {
23159
23172
  if (r < 0 && Et(e, d, u, f)) {
23160
- const v = Ut(e, d, u, f)[0];
23173
+ const v = zt(e, d, u, f)[0];
23161
23174
  h.isNil(v) || (d = v);
23162
23175
  }
23163
23176
  d += r;
@@ -23220,16 +23233,16 @@ function Pd(e, t, r, a) {
23220
23233
  f >= g && (f = g - 1), f < 0 && (f = 0), u >= g && (u = g - 1), u < 0 && (u = 0);
23221
23234
  } else {
23222
23235
  if (!h.isNil(y) && Et(e, y, u, f)) {
23223
- const k = Ut(e, y, u, f), O = k[0], P = k[1];
23236
+ const k = zt(e, y, u, f), O = k[0], P = k[1];
23224
23237
  if (!h.isNil(O) && O > m && P === d) {
23225
23238
  if (r > 0 && Et(e, m, u, f)) {
23226
- const j = Ut(e, m, u, f)[1];
23239
+ const j = zt(e, m, u, f)[1];
23227
23240
  h.isNil(j) || (m = j);
23228
23241
  }
23229
23242
  m += r;
23230
23243
  } else if (!h.isNil(P) && P < d && O === m) {
23231
23244
  if (r < 0 && Et(e, d, u, f)) {
23232
- const j = Ut(e, d, u, f)[0];
23245
+ const j = zt(e, d, u, f)[0];
23233
23246
  h.isNil(j) || (d = j);
23234
23247
  }
23235
23248
  d += r;
@@ -23237,13 +23250,13 @@ function Pd(e, t, r, a) {
23237
23250
  r > 0 ? d += r : m += r;
23238
23251
  } else if (!h.isNil(y) && y > m && y === d) {
23239
23252
  if (r > 0 && Et(e, m, u, f)) {
23240
- const k = Ut(e, m, u, f)[1];
23253
+ const k = zt(e, m, u, f)[1];
23241
23254
  h.isNil(k) || (m = k);
23242
23255
  }
23243
23256
  m += r;
23244
23257
  } else if (!h.isNil(y) && y < d && y === m) {
23245
23258
  if (r < 0 && Et(e, d, u, f)) {
23246
- const k = Ut(e, d, u, f)[0];
23259
+ const k = zt(e, d, u, f)[0];
23247
23260
  h.isNil(k) || (d = k);
23248
23261
  }
23249
23262
  d += r;
@@ -23551,7 +23564,7 @@ function Hd(e) {
23551
23564
  let p = !1;
23552
23565
  f && u && f.length > nf && (p = !0, f = f.replace(/\sdata-fortune-cell="[^"]*"/g, "")), f && (e.iscopyself = !0, e.lastInternalCopyHtmlMetadataStripped = p, ef.writeHtml(f));
23553
23566
  }
23554
- function Ud(e) {
23567
+ function zd(e) {
23555
23568
  var a, n, o, i, l, c, s, u;
23556
23569
  if (Gt(e) === !1 || e.isFlvReadOnly)
23557
23570
  return "allowEdit";
@@ -23604,7 +23617,7 @@ function Ud(e) {
23604
23617
  }
23605
23618
  return "success";
23606
23619
  }
23607
- function zd(e) {
23620
+ function Ud(e) {
23608
23621
  var a;
23609
23622
  if (Gt(e) === !1)
23610
23623
  return "allowEdit";
@@ -24462,7 +24475,7 @@ function lm(e, t, r) {
24462
24475
  );
24463
24476
  }
24464
24477
  function cf(e, t, r, a, n, o) {
24465
- var f, m, d, p, y, g, b, w, _, T, v, N, C, D, k, O, P, j, V, ne, G, Q, F, ae, se, ue, be, J, K, W, ce, ye, q, $, A, B, x, Y, E, U, L, pe, de, te, ve, we, Te, Se, me, fe, He, Ue, qe, ge, I, R, X, H, z, he, _e, Ne, Z, le, Re, Ae, Ee, ke, We, Be, Ge, Pt, Yt, Ot, ka, Ma, qa, Ra, Ia, Da, Oa, La, Fa, Ba, Pa, Ha, Ua, za, Wa, Va, Ga, Ya, ja, Xa, Za, Ka, Qa, Ja, ei, ti, ni, ri, ai, ii, oi, li, si, ci, ui, fi, di, mi, hi, pi, gi, yi, bi, wi, vi, _i, Ti, $i, Ci, Ni, xi, Ai, Si, Ei, ki, Mi, qi, Ri, Ii, Di, Oi, Li, Fi, Bi, Pi, Hi, Ui, zi, Wi, Vi, Gi, Yi, ji, Xi, Zi, Ki, Qi, Ji, eo, to, no, ro, ao, io, oo, lo, so;
24478
+ var f, m, d, p, y, g, b, w, _, T, v, N, C, D, k, O, P, j, V, ne, G, Q, F, ae, se, ue, be, J, K, W, ce, ye, q, $, A, B, x, Y, E, z, L, pe, de, te, ve, we, Te, Se, me, fe, He, ze, qe, ge, I, R, X, H, U, he, _e, Ne, Z, le, Re, Ae, Ee, ke, We, Be, Ge, Pt, Yt, Ot, ka, Ma, qa, Ra, Ia, Da, Oa, La, Fa, Ba, Pa, Ha, za, Ua, Wa, Va, Ga, Ya, ja, Xa, Za, Ka, Qa, Ja, ei, ti, ni, ri, ai, ii, oi, li, si, ci, ui, fi, di, mi, hi, pi, gi, yi, bi, wi, vi, _i, Ti, $i, Ci, Ni, xi, Ai, Si, Ei, ki, Mi, qi, Ri, Ii, Di, Oi, Li, Fi, Bi, Pi, Hi, zi, Ui, Wi, Vi, Gi, Yi, ji, Xi, Zi, Ki, Qi, Ji, eo, to, no, ro, ao, io, oo, lo, so;
24466
24479
  const i = {}, l = Ie(e);
24467
24480
  let c, s;
24468
24481
  if (!o)
@@ -24482,8 +24495,8 @@ function cf(e, t, r, a, n, o) {
24482
24495
  if (co === "range") {
24483
24496
  const { borderType: Ce } = u[Tt], ie = u[Tt].color, oe = u[Tt].style, De = u[Tt].range;
24484
24497
  for (let Oe = 0; Oe < De.length; Oe += 1) {
24485
- let $e = De[Oe].row[0], xe = De[Oe].row[1], Pe = De[Oe].column[0], ze = De[Oe].column[1];
24486
- if ($e < t && ($e = t), xe > r && (xe = r), Pe < a && (Pe = a), ze > n && (ze = n), Ce === "border-slash") {
24498
+ let $e = De[Oe].row[0], xe = De[Oe].row[1], Pe = De[Oe].column[0], Ue = De[Oe].column[1];
24499
+ if ($e < t && ($e = t), xe > r && (xe = r), Pe < a && (Pe = a), Ue > n && (Ue = n), Ce === "border-slash") {
24487
24500
  const S = De[0].row_focus, M = De[0].column_focus;
24488
24501
  if (!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S]) || M < a || M > n || S < t || S > r) continue;
24489
24502
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].s = {
@@ -24523,11 +24536,11 @@ function cf(e, t, r, a, n, o) {
24523
24536
  for (let S = $e; S <= xe; S += 1) {
24524
24537
  if (!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S]))
24525
24538
  continue;
24526
- i[`${S}_${ze}`] === void 0 && (i[`${S}_${ze}`] = {}), i[`${S}_${ze}`].r = {
24539
+ i[`${S}_${Ue}`] === void 0 && (i[`${S}_${Ue}`] = {}), i[`${S}_${Ue}`].r = {
24527
24540
  color: ie,
24528
24541
  style: oe
24529
24542
  };
24530
- const M = ze + 1;
24543
+ const M = Ue + 1;
24531
24544
  if (M < s[0].length && i[`${S}_${M}`])
24532
24545
  if (h.isNil((b = (g = s[S]) == null ? void 0 : g[M]) == null ? void 0 : b.mc))
24533
24546
  i[`${S}_${M}`].l = {
@@ -24544,13 +24557,13 @@ function cf(e, t, r, a, n, o) {
24544
24557
  const re = c.merge || {};
24545
24558
  Object.keys(re).forEach((ee) => {
24546
24559
  const { c: Me, r: Lt, cs: on, rs: ln } = re[ee];
24547
- ze < Me + on - 1 && ze >= Me && S >= Lt && S <= Lt + ln - 1 && (i[`${S}_${ze}`].r = null);
24560
+ Ue < Me + on - 1 && Ue >= Me && S >= Lt && S <= Lt + ln - 1 && (i[`${S}_${Ue}`].r = null);
24548
24561
  });
24549
24562
  }
24550
24563
  else if (Ce === "border-top") {
24551
24564
  if (!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[$e]))
24552
24565
  continue;
24553
- for (let S = Pe; S <= ze; S += 1) {
24566
+ for (let S = Pe; S <= Ue; S += 1) {
24554
24567
  i[`${$e}_${S}`] === void 0 && (i[`${$e}_${S}`] = {}), i[`${$e}_${S}`].t = {
24555
24568
  color: ie,
24556
24569
  style: oe
@@ -24578,7 +24591,7 @@ function cf(e, t, r, a, n, o) {
24578
24591
  } else if (Ce === "border-bottom") {
24579
24592
  if (!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[xe]))
24580
24593
  continue;
24581
- for (let S = Pe; S <= ze; S += 1) {
24594
+ for (let S = Pe; S <= Ue; S += 1) {
24582
24595
  i[`${xe}_${S}`] === void 0 && (i[`${xe}_${S}`] = {}), i[`${xe}_${S}`].b = {
24583
24596
  color: ie,
24584
24597
  style: oe
@@ -24606,7 +24619,7 @@ function cf(e, t, r, a, n, o) {
24606
24619
  } else if (Ce === "border-all") {
24607
24620
  for (let S = $e; S <= xe; S += 1)
24608
24621
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
24609
- for (let M = Pe; M <= ze; M += 1) {
24622
+ for (let M = Pe; M <= Ue; M += 1) {
24610
24623
  if (h.isNil((Q = (G = s[S]) == null ? void 0 : G[M]) == null ? void 0 : Q.mc))
24611
24624
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24612
24625
  color: ie,
@@ -24678,15 +24691,15 @@ function cf(e, t, r, a, n, o) {
24678
24691
  style: oe
24679
24692
  };
24680
24693
  else {
24681
- const ee = s[S][re], Me = (U = c.merge) == null ? void 0 : U[`${(Y = ee == null ? void 0 : ee.mc) == null ? void 0 : Y.r}_${(E = ee == null ? void 0 : ee.mc) == null ? void 0 : E.c}`];
24694
+ const ee = s[S][re], Me = (z = c.merge) == null ? void 0 : z[`${(Y = ee == null ? void 0 : ee.mc) == null ? void 0 : Y.r}_${(E = ee == null ? void 0 : ee.mc) == null ? void 0 : E.c}`];
24682
24695
  Me && Me.c + Me.cs - 1 === re && (i[`${S}_${re}`].r = {
24683
24696
  color: ie,
24684
24697
  style: oe
24685
24698
  });
24686
24699
  }
24687
24700
  }
24688
- if (M === ze) {
24689
- const re = ze + 1;
24701
+ if (M === Ue) {
24702
+ const re = Ue + 1;
24690
24703
  if (re < s[0].length && i[`${S}_${re}`])
24691
24704
  if (h.isNil((pe = (L = s[S]) == null ? void 0 : L[re]) == null ? void 0 : pe.mc))
24692
24705
  i[`${S}_${re}`].l = {
@@ -24705,8 +24718,8 @@ function cf(e, t, r, a, n, o) {
24705
24718
  } else if (Ce === "border-outside") {
24706
24719
  for (let S = $e; S <= xe; S += 1)
24707
24720
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S]))) {
24708
- for (let M = Pe; M <= ze; M += 1)
24709
- if (S === $e || S === xe || M === Pe || M === ze) {
24721
+ for (let M = Pe; M <= Ue; M += 1)
24722
+ if (S === $e || S === xe || M === Pe || M === Ue) {
24710
24723
  if (S === $e) {
24711
24724
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24712
24725
  color: ie,
@@ -24734,7 +24747,7 @@ function cf(e, t, r, a, n, o) {
24734
24747
  };
24735
24748
  const re = xe + 1;
24736
24749
  if (re < s.length && i[`${re}_${M}`])
24737
- if (h.isNil((Ue = (He = s[re]) == null ? void 0 : He[M]) == null ? void 0 : Ue.mc))
24750
+ if (h.isNil((ze = (He = s[re]) == null ? void 0 : He[M]) == null ? void 0 : ze.mc))
24738
24751
  i[`${re}_${M}`].t = {
24739
24752
  color: ie,
24740
24753
  style: oe
@@ -24760,19 +24773,19 @@ function cf(e, t, r, a, n, o) {
24760
24773
  style: oe
24761
24774
  };
24762
24775
  else {
24763
- const ee = s[S][re], Me = (he = c.merge) == null ? void 0 : he[`${(H = ee == null ? void 0 : ee.mc) == null ? void 0 : H.r}_${(z = ee == null ? void 0 : ee.mc) == null ? void 0 : z.c}`];
24776
+ const ee = s[S][re], Me = (he = c.merge) == null ? void 0 : he[`${(H = ee == null ? void 0 : ee.mc) == null ? void 0 : H.r}_${(U = ee == null ? void 0 : ee.mc) == null ? void 0 : U.c}`];
24764
24777
  Me && Me.c + Me.cs - 1 === re && (i[`${S}_${re}`].r = {
24765
24778
  color: ie,
24766
24779
  style: oe
24767
24780
  });
24768
24781
  }
24769
24782
  }
24770
- if (M === ze) {
24783
+ if (M === Ue) {
24771
24784
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].r = {
24772
24785
  color: ie,
24773
24786
  style: oe
24774
24787
  };
24775
- const re = ze + 1;
24788
+ const re = Ue + 1;
24776
24789
  if (re < s[0].length && i[`${S}_${re}`])
24777
24790
  if (h.isNil((Ne = (_e = s[S]) == null ? void 0 : _e[re]) == null ? void 0 : Ne.mc))
24778
24791
  i[`${S}_${re}`].l = {
@@ -24792,12 +24805,12 @@ function cf(e, t, r, a, n, o) {
24792
24805
  } else if (Ce === "border-inside") {
24793
24806
  for (let S = $e; S <= xe; S += 1)
24794
24807
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
24795
- for (let M = Pe; M <= ze; M += 1)
24808
+ for (let M = Pe; M <= Ue; M += 1)
24796
24809
  if (S === $e && M === Pe)
24797
24810
  h.isNil((Ee = (Ae = s[S]) == null ? void 0 : Ae[M]) == null ? void 0 : Ee.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !S === xe && (i[`${S}_${M}`].r = {
24798
24811
  color: ie,
24799
24812
  style: oe
24800
- }), !M === ze && (i[`${S}_${M}`].b = {
24813
+ }), !M === Ue && (i[`${S}_${M}`].b = {
24801
24814
  color: ie,
24802
24815
  style: oe
24803
24816
  }));
@@ -24809,15 +24822,15 @@ function cf(e, t, r, a, n, o) {
24809
24822
  color: ie,
24810
24823
  style: oe
24811
24824
  });
24812
- else if (S === $e && M === ze)
24825
+ else if (S === $e && M === Ue)
24813
24826
  h.isNil((Ge = (Be = s[S]) == null ? void 0 : Be[M]) == null ? void 0 : Ge.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24814
24827
  color: ie,
24815
24828
  style: oe
24816
- }, !M === ze && (i[`${S}_${M}`].b = {
24829
+ }, !M === Ue && (i[`${S}_${M}`].b = {
24817
24830
  color: ie,
24818
24831
  style: oe
24819
24832
  }));
24820
- else if (S === xe && M === ze)
24833
+ else if (S === xe && M === Ue)
24821
24834
  h.isNil((Yt = (Pt = s[S]) == null ? void 0 : Pt[M]) == null ? void 0 : Yt.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24822
24835
  color: ie,
24823
24836
  style: oe
@@ -24833,7 +24846,7 @@ function cf(e, t, r, a, n, o) {
24833
24846
  }, !S === xe && (i[`${S}_${M}`].r = {
24834
24847
  color: ie,
24835
24848
  style: oe
24836
- }), !M === ze && (i[`${S}_${M}`].b = {
24849
+ }), !M === Ue && (i[`${S}_${M}`].b = {
24837
24850
  color: ie,
24838
24851
  style: oe
24839
24852
  });
@@ -24877,21 +24890,21 @@ function cf(e, t, r, a, n, o) {
24877
24890
  }), i[`${S}_${M}`].t = {
24878
24891
  color: ie,
24879
24892
  style: oe
24880
- }, !M === ze && (i[`${S}_${M}`].b = {
24893
+ }, !M === Ue && (i[`${S}_${M}`].b = {
24881
24894
  color: ie,
24882
24895
  style: oe
24883
24896
  });
24884
24897
  else {
24885
- const re = s[S][M], ee = (za = c.merge) == null ? void 0 : za[`${(Ha = re == null ? void 0 : re.mc) == null ? void 0 : Ha.r}_${(Ua = re == null ? void 0 : re.mc) == null ? void 0 : Ua.c}`];
24898
+ const re = s[S][M], ee = (Ua = c.merge) == null ? void 0 : Ua[`${(Ha = re == null ? void 0 : re.mc) == null ? void 0 : Ha.r}_${(za = re == null ? void 0 : re.mc) == null ? void 0 : za.c}`];
24886
24899
  (ee == null ? void 0 : ee.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24887
24900
  color: ie,
24888
24901
  style: oe
24889
- }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === ze && (i[`${S}_${M}`].b = {
24902
+ }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === Ue && (i[`${S}_${M}`].b = {
24890
24903
  color: ie,
24891
24904
  style: oe
24892
24905
  }));
24893
24906
  }
24894
- else if (M === ze)
24907
+ else if (M === Ue)
24895
24908
  if (h.isNil((Va = (Wa = s[S]) == null ? void 0 : Wa[M]) == null ? void 0 : Va.mc))
24896
24909
  i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24897
24910
  color: ie,
@@ -24899,7 +24912,7 @@ function cf(e, t, r, a, n, o) {
24899
24912
  }, i[`${S}_${M}`].t = {
24900
24913
  color: ie,
24901
24914
  style: oe
24902
- }, !M === ze && (i[`${S}_${M}`].b = {
24915
+ }, !M === Ue && (i[`${S}_${M}`].b = {
24903
24916
  color: ie,
24904
24917
  style: oe
24905
24918
  });
@@ -24908,7 +24921,7 @@ function cf(e, t, r, a, n, o) {
24908
24921
  (ee == null ? void 0 : ee.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24909
24922
  color: ie,
24910
24923
  style: oe
24911
- }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === ze && (i[`${S}_${M}`].b = {
24924
+ }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === Ue && (i[`${S}_${M}`].b = {
24912
24925
  color: ie,
24913
24926
  style: oe
24914
24927
  }));
@@ -24923,7 +24936,7 @@ function cf(e, t, r, a, n, o) {
24923
24936
  }), i[`${S}_${M}`].t = {
24924
24937
  color: ie,
24925
24938
  style: oe
24926
- }, !M === ze && (i[`${S}_${M}`].b = {
24939
+ }, !M === Ue && (i[`${S}_${M}`].b = {
24927
24940
  color: ie,
24928
24941
  style: oe
24929
24942
  });
@@ -24932,7 +24945,7 @@ function cf(e, t, r, a, n, o) {
24932
24945
  (ee == null ? void 0 : ee.r) === S ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].t = {
24933
24946
  color: ie,
24934
24947
  style: oe
24935
- }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === ze && (i[`${S}_${M}`].b = {
24948
+ }) : ee && ee.r + ee.rs - 1 === S && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), !M === Ue && (i[`${S}_${M}`].b = {
24936
24949
  color: ie,
24937
24950
  style: oe
24938
24951
  })), (ee == null ? void 0 : ee.c) === M ? (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
@@ -24946,7 +24959,7 @@ function cf(e, t, r, a, n, o) {
24946
24959
  } else if (Ce === "border-horizontal") {
24947
24960
  for (let S = $e; S <= xe; S += 1)
24948
24961
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
24949
- for (let M = Pe; M <= ze; M += 1)
24962
+ for (let M = Pe; M <= Ue; M += 1)
24950
24963
  if (S === $e)
24951
24964
  h.isNil((ti = (ei = s[S]) == null ? void 0 : ei[M]) == null ? void 0 : ti.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].b = {
24952
24965
  color: ie,
@@ -24978,13 +24991,13 @@ function cf(e, t, r, a, n, o) {
24978
24991
  } else if (Ce === "border-vertical") {
24979
24992
  for (let S = $e; S <= xe; S += 1)
24980
24993
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
24981
- for (let M = Pe; M <= ze; M += 1)
24994
+ for (let M = Pe; M <= Ue; M += 1)
24982
24995
  if (M === Pe)
24983
24996
  h.isNil((ui = (ci = s[S]) == null ? void 0 : ci[M]) == null ? void 0 : ui.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].r = {
24984
24997
  color: ie,
24985
24998
  style: oe
24986
24999
  });
24987
- else if (M === ze)
25000
+ else if (M === Ue)
24988
25001
  h.isNil((di = (fi = s[S]) == null ? void 0 : fi[M]) == null ? void 0 : di.mc) && (i[`${S}_${M}`] === void 0 && (i[`${S}_${M}`] = {}), i[`${S}_${M}`].l = {
24989
25002
  color: ie,
24990
25003
  style: oe
@@ -25010,7 +25023,7 @@ function cf(e, t, r, a, n, o) {
25010
25023
  } else if (Ce === "border-none") {
25011
25024
  for (let S = $e; S <= xe; S += 1)
25012
25025
  if (!(!h.isNil(c.rowhidden) && !h.isNil(c.rowhidden[S])))
25013
- for (let M = Pe; M <= ze; M += 1) {
25026
+ for (let M = Pe; M <= Ue; M += 1) {
25014
25027
  if (h.isNil(i[`${S}_${M}`]) || delete i[`${S}_${M}`], S === $e) {
25015
25028
  const re = $e - 1;
25016
25029
  re >= 0 && i[`${re}_${M}`] && delete i[`${re}_${M}`].b;
@@ -25023,8 +25036,8 @@ function cf(e, t, r, a, n, o) {
25023
25036
  const re = Pe - 1;
25024
25037
  re >= 0 && i[`${S}_${re}`] && delete i[`${S}_${re}`].r;
25025
25038
  }
25026
- if (M === ze) {
25027
- const re = ze + 1;
25039
+ if (M === Ue) {
25040
+ const re = Ue + 1;
25028
25041
  re < s[0].length && i[`${S}_${re}`] && delete i[`${S}_${re}`].l;
25029
25042
  }
25030
25043
  }
@@ -25045,7 +25058,7 @@ function cf(e, t, r, a, n, o) {
25045
25058
  };
25046
25059
  const De = oe - 1;
25047
25060
  if (De >= 0 && i[`${ie}_${De}`])
25048
- if (h.isNil((Wi = (zi = s[ie]) == null ? void 0 : zi[De]) == null ? void 0 : Wi.mc))
25061
+ if (h.isNil((Wi = (Ui = s[ie]) == null ? void 0 : Ui[De]) == null ? void 0 : Wi.mc))
25049
25062
  i[`${ie}_${De}`].r = {
25050
25063
  color: Ce.l.color,
25051
25064
  style: Ce.l.style
@@ -25201,7 +25214,7 @@ function cf(e, t, r, a, n, o) {
25201
25214
  style: Ce.b.style
25202
25215
  };
25203
25216
  else {
25204
- const xe = s[$e][oe], Pe = (Ui = c.merge) == null ? void 0 : Ui[`${(Pi = xe == null ? void 0 : xe.mc) == null ? void 0 : Pi.r}_${(Hi = xe == null ? void 0 : xe.mc) == null ? void 0 : Hi.c}`];
25217
+ const xe = s[$e][oe], Pe = (zi = c.merge) == null ? void 0 : zi[`${(Pi = xe == null ? void 0 : xe.mc) == null ? void 0 : Pi.r}_${(Hi = xe == null ? void 0 : xe.mc) == null ? void 0 : Hi.c}`];
25205
25218
  (Pe == null ? void 0 : Pe.r) === $e && (i[`${$e}_${oe}`].t = {
25206
25219
  color: Ce.b.color,
25207
25220
  style: Ce.b.style
@@ -25375,7 +25388,7 @@ const Ml = (e) => {
25375
25388
  }
25376
25389
  };
25377
25390
  function df(e, t, r = !0) {
25378
- var J, K, W, ce, ye, q, $, A, B, x, Y, E, U, L, pe, de, te, ve, we, Te, Se, me, fe, He, Ue, qe, ge;
25391
+ var J, K, W, ce, ye, q, $, A, B, x, Y, E, z, L, pe, de, te, ve, we, Te, Se, me, fe, He, ze, qe, ge;
25379
25392
  let { count: a, id: n } = t;
25380
25393
  const { type: o, index: i, direction: l, templateSourceRows: c, templateSourceColumns: s } = t;
25381
25394
  n = n || e.currentSheetId;
@@ -25413,36 +25426,36 @@ function df(e, t, r = !0) {
25413
25426
  const _ = y && f.dataVerification != null ? [b].map((I) => {
25414
25427
  const R = {};
25415
25428
  return h.forEach(f.dataVerification, (X, H) => {
25416
- const z = Number(H.split("_")[0]), he = Number(H.split("_")[1]);
25417
- z === I && (R[he] = h.cloneDeep(X));
25429
+ const U = Number(H.split("_")[0]), he = Number(H.split("_")[1]);
25430
+ U === I && (R[he] = h.cloneDeep(X));
25418
25431
  }), R;
25419
25432
  }) : null, T = g && f.dataVerification != null ? [w].map((I) => {
25420
25433
  const R = {};
25421
25434
  return h.forEach(f.dataVerification, (X, H) => {
25422
- const z = Number(H.split("_")[0]);
25423
- Number(H.split("_")[1]) === I && (R[z] = h.cloneDeep(X));
25435
+ const U = Number(H.split("_")[0]);
25436
+ Number(H.split("_")[1]) === I && (R[U] = h.cloneDeep(X));
25424
25437
  }), R;
25425
25438
  }) : null;
25426
25439
  d.merge == null && (d.merge = {});
25427
25440
  const v = {};
25428
25441
  h.forEach(d.merge, (I) => {
25429
- const { r: R, c: X, rs: H, cs: z } = I;
25430
- o === "row" ? i < R ? v[`${R + a}_${X}`] = { r: R + a, c: X, rs: H, cs: z } : i === R ? l === "lefttop" ? v[`${R + a}_${X}`] = {
25442
+ const { r: R, c: X, rs: H, cs: U } = I;
25443
+ o === "row" ? i < R ? v[`${R + a}_${X}`] = { r: R + a, c: X, rs: H, cs: U } : i === R ? l === "lefttop" ? v[`${R + a}_${X}`] = {
25431
25444
  r: R + a,
25432
25445
  c: X,
25433
25446
  rs: H,
25434
- cs: z
25435
- } : v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: z } : i < R + H - 1 ? v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: z } : i === R + H - 1 ? l === "lefttop" ? v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: z } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z } : o === "column" && (i < X ? v[`${R}_${X + a}`] = {
25447
+ cs: U
25448
+ } : v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: U } : i < R + H - 1 ? v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: U } : i === R + H - 1 ? l === "lefttop" ? v[`${R}_${X}`] = { r: R, c: X, rs: H + a, cs: U } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U } : o === "column" && (i < X ? v[`${R}_${X + a}`] = {
25436
25449
  r: R,
25437
25450
  c: X + a,
25438
25451
  rs: H,
25439
- cs: z
25452
+ cs: U
25440
25453
  } : i === X ? l === "lefttop" ? v[`${R}_${X + a}`] = {
25441
25454
  r: R,
25442
25455
  c: X + a,
25443
25456
  rs: H,
25444
- cs: z
25445
- } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z + a } : i < X + z - 1 ? v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z + a } : i === X + z - 1 ? l === "lefttop" ? v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z + a } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: z });
25457
+ cs: U
25458
+ } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U + a } : i < X + U - 1 ? v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U + a } : i === X + U - 1 ? l === "lefttop" ? v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U + a } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U } : v[`${R}_${X}`] = { r: R, c: X, rs: H, cs: U });
25446
25459
  }), d.merge = v;
25447
25460
  const N = [];
25448
25461
  for (let I = 0; I < e.luckysheetfile.length; I += 1) {
@@ -25450,7 +25463,7 @@ function df(e, t, r = !0) {
25450
25463
  continue;
25451
25464
  const { calcChain: R } = e.luckysheetfile[I], { data: X } = e.luckysheetfile[I];
25452
25465
  for (let H = 0; H < R.length; H += 1) {
25453
- const z = h.cloneDeep(R[H]), he = z.r, _e = z.c, Ne = z.id, Z = Aa(e, he, _e, Ne);
25466
+ const U = h.cloneDeep(R[H]), he = U.r, _e = U.c, Ne = U.id, Z = Aa(e, he, _e, Ne);
25454
25467
  if (o === "row" && I === u) {
25455
25468
  const le = `=${bt(
25456
25469
  Z,
@@ -25460,7 +25473,7 @@ function df(e, t, r = !0) {
25460
25473
  i,
25461
25474
  a
25462
25475
  )}`;
25463
- ((q = (ye = m[he]) == null ? void 0 : ye[_e]) == null ? void 0 : q.f) === Z && (m[he][_e].f = le), l === "lefttop" ? he >= i && (z.r += a) : l === "rightbottom" && he > i && (z.r += a), N.push(z);
25476
+ ((q = (ye = m[he]) == null ? void 0 : ye[_e]) == null ? void 0 : q.f) === Z && (m[he][_e].f = le), l === "lefttop" ? he >= i && (U.r += a) : l === "rightbottom" && he > i && (U.r += a), N.push(U);
25464
25477
  } else if (o === "row") {
25465
25478
  const le = `=${bt(
25466
25479
  Z,
@@ -25480,7 +25493,7 @@ function df(e, t, r = !0) {
25480
25493
  i,
25481
25494
  a
25482
25495
  )}`;
25483
- ((x = (B = m[he]) == null ? void 0 : B[_e]) == null ? void 0 : x.f) === Z && (m[he][_e].f = le), l === "lefttop" ? _e >= i && (z.c += a) : l === "rightbottom" && _e > i && (z.c += a), N.push(z);
25496
+ ((x = (B = m[he]) == null ? void 0 : B[_e]) == null ? void 0 : x.f) === Z && (m[he][_e].f = le), l === "lefttop" ? _e >= i && (U.c += a) : l === "rightbottom" && _e > i && (U.c += a), N.push(U);
25484
25497
  } else if (o === "column") {
25485
25498
  const le = `=${bt(
25486
25499
  Z,
@@ -25508,13 +25521,13 @@ function df(e, t, r = !0) {
25508
25521
  if (!h.isEmpty(C) && C != null) {
25509
25522
  k = { filter_select: null, filter: null };
25510
25523
  let I = C.row[0], R = C.row[1], X = C.column[0], H = C.column[1];
25511
- o === "row" ? (I < i ? (R === i && l === "lefttop" || R > i) && (R += a) : I === i ? l === "lefttop" ? (I += a, R += a) : l === "rightbottom" && R > i && (R += a) : (I += a, R += a), D != null && (k.filter = {}, h.forEach(D, (z, he) => {
25524
+ o === "row" ? (I < i ? (R === i && l === "lefttop" || R > i) && (R += a) : I === i ? l === "lefttop" ? (I += a, R += a) : l === "rightbottom" && R > i && (R += a) : (I += a, R += a), D != null && (k.filter = {}, h.forEach(D, (U, he) => {
25512
25525
  const _e = D[he].rowhidden, Ne = {};
25513
25526
  h.forEach(_e, (Z, le) => {
25514
25527
  const Re = parseFloat(le);
25515
25528
  Re < i ? Ne[Re] = 0 : Re === i ? l === "lefttop" ? Ne[Re + a] = 0 : l === "rightbottom" && (Ne[Re] = 0) : Ne[Re + a] = 0;
25516
25529
  }), k.filter[he] = h.cloneDeep(D[he]), k.filter[he].rowhidden = Ne, k.filter[he].str = I, k.filter[he].edr = R;
25517
- }))) : o === "column" && (X < i ? (H === i && l === "lefttop" || H > i) && (H += a) : X === i ? l === "lefttop" ? (X += a, H += a) : l === "rightbottom" && H > i && (H += a) : (X += a, H += a), D != null && (k.filter = {}, h.forEach(D, (z, he) => {
25530
+ }))) : o === "column" && (X < i ? (H === i && l === "lefttop" || H > i) && (H += a) : X === i ? l === "lefttop" ? (X += a, H += a) : l === "rightbottom" && H > i && (H += a) : (X += a, H += a), D != null && (k.filter = {}, h.forEach(D, (U, he) => {
25518
25531
  let _e = D[he].cindex;
25519
25532
  (_e === i && l === "lefttop" || _e > i) && (_e += a), k.filter[_e - X] = h.cloneDeep(D[he]), k.filter[_e - X].cindex = _e, k.filter[_e - X].stc = X, k.filter[_e - X].edc = H;
25520
25533
  }))), k.filter_select = { row: [I, R], column: [X, H] };
@@ -25529,8 +25542,8 @@ function df(e, t, r = !0) {
25529
25542
  if (P != null && P.length > 0)
25530
25543
  for (let I = 0; I < P.length; I += 1) {
25531
25544
  const R = P[I].cellrange, X = [];
25532
- for (let z = 0; z < R.length; z += 1) {
25533
- let he = R[z].row[0], _e = R[z].row[1], Ne = R[z].column[0], Z = R[z].column[1];
25545
+ for (let U = 0; U < R.length; U += 1) {
25546
+ let he = R[U].row[0], _e = R[U].row[1], Ne = R[U].column[0], Z = R[U].column[1];
25534
25547
  o === "row" ? he < i ? (_e === i && l === "lefttop" || _e > i) && (_e += a) : he === i ? (l === "lefttop" || l === "rightbottom" && _e >= i) && (_e += a) : (he += a, _e += a) : o === "column" && (Ne < i ? (Z === i && l === "lefttop" || Z > i) && (Z += a) : Ne === i ? (l === "lefttop" || l === "rightbottom" && Z >= i) && (Z += a) : (Ne += a, Z += a)), X.push({ row: [he, _e], column: [Ne, Z] });
25535
25548
  }
25536
25549
  const H = h.clone(P[I]);
@@ -25539,53 +25552,53 @@ function df(e, t, r = !0) {
25539
25552
  const V = f.luckysheet_alternateformat_save, ne = [];
25540
25553
  if (V != null && V.length > 0)
25541
25554
  for (let I = 0; I < V.length; I += 1) {
25542
- let R = V[I].cellrange.row[0], X = V[I].cellrange.row[1], H = V[I].cellrange.column[0], z = V[I].cellrange.column[1];
25555
+ let R = V[I].cellrange.row[0], X = V[I].cellrange.row[1], H = V[I].cellrange.column[0], U = V[I].cellrange.column[1];
25543
25556
  const he = h.clone(V[I]);
25544
- o === "row" ? R < i ? (X === i && l === "lefttop" || X > i) && (X += a) : R === i ? (l === "lefttop" || l === "rightbottom" && X >= i) && (X += a) : (R += a, X += a) : o === "column" && (H < i ? (z === i && l === "lefttop" || z > i) && (z += a) : H === i ? (l === "lefttop" || l === "rightbottom" && z >= i) && (z += a) : (H += a, z += a)), he.cellrange = { row: [R, X], column: [H, z] }, ne.push(he);
25557
+ o === "row" ? R < i ? (X === i && l === "lefttop" || X > i) && (X += a) : R === i ? (l === "lefttop" || l === "rightbottom" && X >= i) && (X += a) : (R += a, X += a) : o === "column" && (H < i ? (U === i && l === "lefttop" || U > i) && (U += a) : H === i ? (l === "lefttop" || l === "rightbottom" && U >= i) && (U += a) : (H += a, U += a)), he.cellrange = { row: [R, X], column: [H, U] }, ne.push(he);
25545
25558
  }
25546
25559
  const { frozen: G } = f;
25547
25560
  if (G) {
25548
25561
  const I = l === "lefttop" ? i - 1 : i;
25549
- o === "row" && (G.type === "rangeRow" || G.type === "rangeBoth") && (((U = G.range) == null ? void 0 : U.row_focus) ?? -1) > I && (G.range.row_focus += a), o === "column" && (G.type === "rangeColumn" || G.type === "rangeBoth") && (((L = G.range) == null ? void 0 : L.column_focus) ?? -1) > I && (G.range.column_focus += a);
25562
+ o === "row" && (G.type === "rangeRow" || G.type === "rangeBoth") && (((z = G.range) == null ? void 0 : z.row_focus) ?? -1) > I && (G.range.row_focus += a), o === "column" && (G.type === "rangeColumn" || G.type === "rangeBoth") && (((L = G.range) == null ? void 0 : L.column_focus) ?? -1) > I && (G.range.column_focus += a);
25550
25563
  }
25551
25564
  const { dataVerification: Q } = f, F = {};
25552
25565
  Q != null && h.forEach(Q, (I, R) => {
25553
- const X = Number(R.split("_")[0]), H = Number(R.split("_")[1]), z = Q[R];
25566
+ const X = Number(R.split("_")[0]), H = Number(R.split("_")[1]), U = Q[R];
25554
25567
  if (o === "row")
25555
25568
  if (i < X)
25556
- F[`${X + a}_${H}`] = h.cloneDeep(z);
25569
+ F[`${X + a}_${H}`] = h.cloneDeep(U);
25557
25570
  else if (i === X) {
25558
25571
  if (l === "lefttop") {
25559
- if (F[`${X + a}_${H}`] = h.cloneDeep(z), !_)
25572
+ if (F[`${X + a}_${H}`] = h.cloneDeep(U), !_)
25560
25573
  for (let he = 0; he < a; he += 1)
25561
- F[`${X + he}_${H}`] = h.cloneDeep(z);
25562
- } else if (F[`${X}_${H}`] = h.cloneDeep(z), !_)
25574
+ F[`${X + he}_${H}`] = h.cloneDeep(U);
25575
+ } else if (F[`${X}_${H}`] = h.cloneDeep(U), !_)
25563
25576
  for (let he = 0; he < a; he += 1)
25564
- F[`${X + he + 1}_${H}`] = h.cloneDeep(z);
25577
+ F[`${X + he + 1}_${H}`] = h.cloneDeep(U);
25565
25578
  } else
25566
- F[`${X}_${H}`] = h.cloneDeep(z);
25579
+ F[`${X}_${H}`] = h.cloneDeep(U);
25567
25580
  else if (o === "column")
25568
25581
  if (i < H)
25569
- F[`${X}_${H + a}`] = h.cloneDeep(z);
25582
+ F[`${X}_${H + a}`] = h.cloneDeep(U);
25570
25583
  else if (i === H) {
25571
25584
  if (l === "lefttop") {
25572
- if (F[`${X}_${H + a}`] = h.cloneDeep(z), !T)
25585
+ if (F[`${X}_${H + a}`] = h.cloneDeep(U), !T)
25573
25586
  for (let he = 0; he < a; he += 1)
25574
- F[`${X}_${H + he}`] = h.cloneDeep(z);
25575
- } else if (F[`${X}_${H}`] = h.cloneDeep(z), !T)
25587
+ F[`${X}_${H + he}`] = h.cloneDeep(U);
25588
+ } else if (F[`${X}_${H}`] = h.cloneDeep(U), !T)
25576
25589
  for (let he = 0; he < a; he += 1)
25577
- F[`${X}_${H + he + 1}`] = h.cloneDeep(z);
25590
+ F[`${X}_${H + he + 1}`] = h.cloneDeep(U);
25578
25591
  } else
25579
- F[`${X}_${H}`] = h.cloneDeep(z);
25592
+ F[`${X}_${H}`] = h.cloneDeep(U);
25580
25593
  });
25581
25594
  const { hyperlink: ae } = f, se = {};
25582
25595
  if (ae != null && h.forEach(ae, (I, R) => {
25583
- const X = Number(R.split("_")[0]), H = Number(R.split("_")[1]), z = ae[R];
25584
- o === "row" ? i < X ? se[`${X + a}_${H}`] = z : i === X ? l === "lefttop" ? se[`${X + a}_${H}`] = z : se[`${X}_${H}`] = z : se[`${X}_${H}`] = z : o === "column" && (i < H ? se[`${X}_${H + a}`] = z : i === H ? l === "lefttop" ? se[`${X}_${H + a}`] = z : se[`${X}_${H}`] = z : se[`${X}_${H}`] = z);
25596
+ const X = Number(R.split("_")[0]), H = Number(R.split("_")[1]), U = ae[R];
25597
+ o === "row" ? i < X ? se[`${X + a}_${H}`] = U : i === X ? l === "lefttop" ? se[`${X + a}_${H}`] = U : se[`${X}_${H}`] = U : se[`${X}_${H}`] = U : o === "column" && (i < H ? se[`${X}_${H + a}`] = U : i === H ? l === "lefttop" ? se[`${X}_${H + a}`] = U : se[`${X}_${H}`] = U : se[`${X}_${H}`] = U);
25585
25598
  }), o === "row") {
25586
25599
  const I = h.cloneDeep(d.borderInfo || []), R = y ? [
25587
25600
  ((pe = d.rowlen) == null ? void 0 : pe[b]) ?? f.defaultRowHeight ?? e.defaultrowlen
25588
- ] : null, X = y ? [(de = d.customHeight) == null ? void 0 : de[b]] : null, H = ((te = d.rowlen) == null ? void 0 : te[i]) ?? f.defaultRowHeight ?? e.defaultrowlen, z = (ve = d.customHeight) == null ? void 0 : ve[i];
25601
+ ] : null, X = y ? [(de = d.customHeight) == null ? void 0 : de[b]] : null, H = ((te = d.rowlen) == null ? void 0 : te[i]) ?? f.defaultRowHeight ?? e.defaultrowlen, U = (ve = d.customHeight) == null ? void 0 : ve[i];
25589
25602
  if (d.rowlen != null) {
25590
25603
  const Ee = {}, ke = {};
25591
25604
  h.forEach(d.rowlen, (We, Be) => {
@@ -25612,7 +25625,7 @@ function df(e, t, r = !0) {
25612
25625
  d.customHeight || (d.customHeight = {});
25613
25626
  for (let ke = 0; ke < a; ke += 1)
25614
25627
  X[0] === 1 && (d.customHeight[Ee + ke] = 1);
25615
- } else if (z === 1) {
25628
+ } else if (U === 1) {
25616
25629
  d.customHeight || (d.customHeight = {});
25617
25630
  for (let ke = 0; ke < a; ke += 1)
25618
25631
  d.customHeight[Ee + ke] = 1;
@@ -25677,7 +25690,7 @@ function df(e, t, r = !0) {
25677
25690
  } else {
25678
25691
  const I = h.cloneDeep(d.borderInfo || []), R = g ? [
25679
25692
  ((Te = d.columnlen) == null ? void 0 : Te[w]) ?? f.defaultColWidth ?? e.defaultcollen
25680
- ] : null, X = g ? [(Se = d.customWidth) == null ? void 0 : Se[w]] : null, H = ((me = d.columnlen) == null ? void 0 : me[i]) ?? f.defaultColWidth ?? e.defaultcollen, z = (fe = d.customWidth) == null ? void 0 : fe[i];
25693
+ ] : null, X = g ? [(Se = d.customWidth) == null ? void 0 : Se[w]] : null, H = ((me = d.columnlen) == null ? void 0 : me[i]) ?? f.defaultColWidth ?? e.defaultcollen, U = (fe = d.customWidth) == null ? void 0 : fe[i];
25681
25694
  if (d.columnlen != null) {
25682
25695
  const Z = {}, le = {};
25683
25696
  h.forEach(d.columnlen, (Re, Ae) => {
@@ -25704,7 +25717,7 @@ function df(e, t, r = !0) {
25704
25717
  d.customWidth || (d.customWidth = {});
25705
25718
  for (let le = 0; le < a; le += 1)
25706
25719
  X[0] === 1 && (d.customWidth[Z + le] = 1);
25707
- } else if (z === 1) {
25720
+ } else if (U === 1) {
25708
25721
  d.customWidth || (d.customWidth = {});
25709
25722
  for (let le = 0; le < a; le += 1)
25710
25723
  d.customWidth[Z + le] = 1;
@@ -25775,8 +25788,8 @@ function df(e, t, r = !0) {
25775
25788
  const I = l === "lefttop" ? i : i + 1;
25776
25789
  for (let R = 0; R < a; R += 1) {
25777
25790
  const X = I + R;
25778
- h.forEach(_[0], (H, z) => {
25779
- const he = Number(z);
25791
+ h.forEach(_[0], (H, U) => {
25792
+ const he = Number(U);
25780
25793
  F[`${X}_${he}`] = h.cloneDeep(H);
25781
25794
  });
25782
25795
  }
@@ -25785,8 +25798,8 @@ function df(e, t, r = !0) {
25785
25798
  const I = l === "lefttop" ? i : i + 1;
25786
25799
  for (let R = 0; R < a; R += 1) {
25787
25800
  const X = I + R;
25788
- h.forEach(T[0], (H, z) => {
25789
- const he = Number(z);
25801
+ h.forEach(T[0], (H, U) => {
25802
+ const he = Number(U);
25790
25803
  F[`${he}_${X}`] = h.cloneDeep(H);
25791
25804
  });
25792
25805
  }
@@ -25795,8 +25808,8 @@ function df(e, t, r = !0) {
25795
25808
  const I = l === "lefttop" ? i : i + 1;
25796
25809
  for (let R = 0; R < a; R += 1) {
25797
25810
  const X = b, H = I + R;
25798
- for (let z = 0; z < P.length; z += 1) {
25799
- const he = P[z], _e = (he.cellrange || []).filter((Ne) => X >= Ne.row[0] && X <= Ne.row[1]).map((Ne) => ({
25811
+ for (let U = 0; U < P.length; U += 1) {
25812
+ const he = P[U], _e = (he.cellrange || []).filter((Ne) => X >= Ne.row[0] && X <= Ne.row[1]).map((Ne) => ({
25800
25813
  row: [H, H],
25801
25814
  column: [Ne.column[0], Ne.column[1]]
25802
25815
  }));
@@ -25811,8 +25824,8 @@ function df(e, t, r = !0) {
25811
25824
  const I = l === "lefttop" ? i : i + 1;
25812
25825
  for (let R = 0; R < a; R += 1) {
25813
25826
  const X = w, H = I + R;
25814
- for (let z = 0; z < P.length; z += 1) {
25815
- const he = P[z], _e = (he.cellrange || []).filter((Ne) => X >= Ne.column[0] && X <= Ne.column[1]).map((Ne) => ({
25827
+ for (let U = 0; U < P.length; U += 1) {
25828
+ const he = P[U], _e = (he.cellrange || []).filter((Ne) => X >= Ne.column[0] && X <= Ne.column[1]).map((Ne) => ({
25816
25829
  row: [Ne.row[0], Ne.row[1]],
25817
25830
  column: [H, H]
25818
25831
  }));
@@ -25829,7 +25842,7 @@ function df(e, t, r = !0) {
25829
25842
  { row: [i, i + a - 1], column: [0, m[0].length - 1] }
25830
25843
  ] : ue = [
25831
25844
  { row: [i + 1, i + a], column: [0, m[0].length - 1] }
25832
- ], f.row = f.data.length) : (l === "lefttop" ? ue = [{ row: [0, m.length - 1], column: [i, i + a - 1] }] : ue = [{ row: [0, m.length - 1], column: [i + 1, i + a] }], f.column = (Ue = f.data[0]) == null ? void 0 : Ue.length), r && (f.luckysheet_select_save = ue, f.id === e.currentSheetId && (e.luckysheet_select_save = ue)), kl(v, f);
25845
+ ], f.row = f.data.length) : (l === "lefttop" ? ue = [{ row: [0, m.length - 1], column: [i, i + a - 1] }] : ue = [{ row: [0, m.length - 1], column: [i + 1, i + a] }], f.column = (ze = f.data[0]) == null ? void 0 : ze.length), r && (f.luckysheet_select_save = ue, f.id === e.currentSheetId && (e.luckysheet_select_save = ue)), kl(v, f);
25833
25846
  const be = Ml(d.merge);
25834
25847
  if (o === "row") {
25835
25848
  const I = l === "lefttop" ? i : i + 1, R = be ? Math.min(I, be.minR) : I;
@@ -25932,7 +25945,7 @@ function Rl(e, t) {
25932
25945
  continue;
25933
25946
  const { calcChain: A } = e.luckysheetfile[$], { data: B } = e.luckysheetfile[$];
25934
25947
  for (let x = 0; x < A.length; x += 1) {
25935
- const Y = h.cloneDeep(A[x]), E = Y.r, U = Y.c, L = Y.id, pe = Aa(e, E, U, L);
25948
+ const Y = h.cloneDeep(A[x]), E = Y.r, z = Y.c, L = Y.id, pe = Aa(e, E, z, L);
25936
25949
  if (r === "row" && $ === i) {
25937
25950
  if (E < a || E > n) {
25938
25951
  const de = `=${bt(
@@ -25943,7 +25956,7 @@ function Rl(e, t) {
25943
25956
  a,
25944
25957
  f
25945
25958
  )}`;
25946
- ((Q = (G = B[E]) == null ? void 0 : G[U]) == null ? void 0 : Q.f) === pe && (B[E][U].f = de, de.includes("#REF!") && Dn(B[E][U])), E > n && (Y.r = E - f), d.push(Y);
25959
+ ((Q = (G = B[E]) == null ? void 0 : G[z]) == null ? void 0 : Q.f) === pe && (B[E][z].f = de, de.includes("#REF!") && Dn(B[E][z])), E > n && (Y.r = E - f), d.push(Y);
25947
25960
  }
25948
25961
  } else if (r === "row") {
25949
25962
  const de = `=${bt(
@@ -25954,9 +25967,9 @@ function Rl(e, t) {
25954
25967
  a,
25955
25968
  f
25956
25969
  )}`;
25957
- ((ae = (F = B[E]) == null ? void 0 : F[U]) == null ? void 0 : ae.f) === pe && (B[E][U].f = de, de === "=#REF!" && Dn(B[E][U]));
25970
+ ((ae = (F = B[E]) == null ? void 0 : F[z]) == null ? void 0 : ae.f) === pe && (B[E][z].f = de, de === "=#REF!" && Dn(B[E][z]));
25958
25971
  } else if (r === "column" && $ === i) {
25959
- if (U < a || U > n) {
25972
+ if (z < a || z > n) {
25960
25973
  const de = `=${bt(
25961
25974
  pe,
25962
25975
  "del",
@@ -25965,7 +25978,7 @@ function Rl(e, t) {
25965
25978
  a,
25966
25979
  f
25967
25980
  )}`;
25968
- ((ue = (se = B[E]) == null ? void 0 : se[U]) == null ? void 0 : ue.f) === pe && (B[E][U].f = de, de.includes("#REF!") && Dn(B[E][U])), U > n && (Y.c = U - f), d.push(Y);
25981
+ ((ue = (se = B[E]) == null ? void 0 : se[z]) == null ? void 0 : ue.f) === pe && (B[E][z].f = de, de.includes("#REF!") && Dn(B[E][z])), z > n && (Y.c = z - f), d.push(Y);
25969
25982
  }
25970
25983
  } else if (r === "column") {
25971
25984
  const de = `=${bt(
@@ -25976,7 +25989,7 @@ function Rl(e, t) {
25976
25989
  a,
25977
25990
  f
25978
25991
  )}`;
25979
- ((J = (be = B[E]) == null ? void 0 : be[U]) == null ? void 0 : J.f) === pe && (B[E][U].f = de, de === "=#REF!" && Dn(B[E][U]));
25992
+ ((J = (be = B[E]) == null ? void 0 : be[z]) == null ? void 0 : J.f) === pe && (B[E][z].f = de, de === "=#REF!" && Dn(B[E][z]));
25980
25993
  }
25981
25994
  }
25982
25995
  ql(
@@ -26001,8 +26014,8 @@ function Rl(e, t) {
26001
26014
  row: [$, A],
26002
26015
  column: [B, x]
26003
26016
  }), g.filter_select != null && y != null && h.forEach(y, (Y, E) => {
26004
- const U = y[E].rowhidden, L = {};
26005
- h.forEach(U, (pe, de) => {
26017
+ const z = y[E].rowhidden, L = {};
26018
+ h.forEach(z, (pe, de) => {
26006
26019
  const te = parseFloat(de);
26007
26020
  te < a ? L[te] = 0 : te > n && (L[te - f] = 0);
26008
26021
  }), h.isEmpty(L) || (g.filter == null && (g.filter = {}), g.filter[E] = h.cloneDeep(y[E]), g.filter[E].rowhidden = L, g.filter[E].str = $, g.filter[E].edr = A);
@@ -26016,8 +26029,8 @@ function Rl(e, t) {
26016
26029
  row: [$, A],
26017
26030
  column: [B, x]
26018
26031
  }), g.filter_select != null && y != null && h.forEach(y, (Y, E) => {
26019
- let U = y[E].cindex;
26020
- U < a ? (g.filter == null && (g.filter = {}), g.filter[U - B] = h.cloneDeep(y[E]), g.filter[U - B].edc = x) : U > n && (U -= f, g.filter == null && (g.filter = {}), g.filter[U - B] = h.cloneDeep(y[E]), g.filter[U - B].cindex = U, g.filter[U - B].stc = B, g.filter[U - B].edc = x);
26032
+ let z = y[E].cindex;
26033
+ z < a ? (g.filter == null && (g.filter = {}), g.filter[z - B] = h.cloneDeep(y[E]), g.filter[z - B].edc = x) : z > n && (z -= f, g.filter == null && (g.filter = {}), g.filter[z - B] = h.cloneDeep(y[E]), g.filter[z - B].cindex = z, g.filter[z - B].stc = B, g.filter[z - B].edc = x);
26021
26034
  }));
26022
26035
  }
26023
26036
  const b = (g == null ? void 0 : g.filter) != null ? qt(g.filter) : qt(y);
@@ -26031,8 +26044,8 @@ function Rl(e, t) {
26031
26044
  for (let $ = 0; $ < w.length; $ += 1) {
26032
26045
  const A = w[$].cellrange, B = [];
26033
26046
  for (let x = 0; x < A.length; x += 1) {
26034
- let Y = A[x].row[0], E = A[x].row[1], U = A[x].column[0], L = A[x].column[1];
26035
- r === "row" ? Y >= a && E <= n || (Y > n ? (Y -= f, E -= f) : Y < a ? E < a || (E <= n ? E = a - 1 : E -= f) : E > n && (Y = a, E -= f), B.push({ row: [Y, E], column: [U, L] })) : r === "column" && (U >= a && L <= n || (U > n ? (U -= f, L -= f) : U < a ? L < a || (L <= n ? L = a - 1 : L -= f) : L > n && (U = a, L -= f), B.push({ row: [Y, E], column: [U, L] })));
26047
+ let Y = A[x].row[0], E = A[x].row[1], z = A[x].column[0], L = A[x].column[1];
26048
+ r === "row" ? Y >= a && E <= n || (Y > n ? (Y -= f, E -= f) : Y < a ? E < a || (E <= n ? E = a - 1 : E -= f) : E > n && (Y = a, E -= f), B.push({ row: [Y, E], column: [z, L] })) : r === "column" && (z >= a && L <= n || (z > n ? (z -= f, L -= f) : z < a ? L < a || (L <= n ? L = a - 1 : L -= f) : L > n && (z = a, L -= f), B.push({ row: [Y, E], column: [z, L] })));
26036
26049
  }
26037
26050
  if (B.length > 0) {
26038
26051
  const x = h.clone(w[$]);
@@ -26068,39 +26081,39 @@ function Rl(e, t) {
26068
26081
  c.rowlen == null && (c.rowlen = {});
26069
26082
  const $ = {}, A = {};
26070
26083
  h.forEach(c.rowlen, (Y, E) => {
26071
- const U = parseFloat(E);
26072
- U < a ? $[U] = c.rowlen[U] : U > n && ($[U - f] = c.rowlen[U]);
26084
+ const z = parseFloat(E);
26085
+ z < a ? $[z] = c.rowlen[z] : z > n && ($[z - f] = c.rowlen[z]);
26073
26086
  }), h.forEach(c.rowReadOnly, (Y, E) => {
26074
- const U = parseFloat(E);
26075
- U < a ? A[U] = c.rowReadOnly[U] : U > n && (A[U - f] = c.rowReadOnly[U]);
26087
+ const z = parseFloat(E);
26088
+ z < a ? A[z] = c.rowReadOnly[z] : z > n && (A[z - f] = c.rowReadOnly[z]);
26076
26089
  }), c.rowlen = $, c.rowReadOnly = A;
26077
26090
  const B = {};
26078
26091
  h.forEach(c.rowhidden_manual || {}, (Y, E) => {
26079
- const U = parseFloat(E);
26080
- U < a ? B[U] = c.rowhidden_manual[U] : U > n && (B[U - f] = c.rowhidden_manual[U]);
26092
+ const z = parseFloat(E);
26093
+ z < a ? B[z] = c.rowhidden_manual[z] : z > n && (B[z - f] = c.rowhidden_manual[z]);
26081
26094
  }), c.rowhidden_manual = B;
26082
26095
  const x = (g == null ? void 0 : g.filter) != null ? qt(g.filter) : qt(y);
26083
26096
  if (c.rowhidden_filter = x, c.rowhidden = h.assign({}, c.rowhidden_manual, x), c.customHeight == null) {
26084
26097
  c.customHeight = {};
26085
26098
  const Y = {};
26086
- h.forEach(c.customHeight, (E, U) => {
26087
- const L = parseFloat(U);
26099
+ h.forEach(c.customHeight, (E, z) => {
26100
+ const L = parseFloat(z);
26088
26101
  L < a ? Y[L] = c.customHeight[L] : L > n && (Y[L - f] = c.customHeight[L]);
26089
26102
  }), c.customHeight = Y;
26090
26103
  }
26091
26104
  if (c.customHeight == null) {
26092
26105
  c.customHeight = {};
26093
26106
  const Y = {};
26094
- h.forEach(c.customHeight, (E, U) => {
26095
- const L = parseFloat(U);
26107
+ h.forEach(c.customHeight, (E, z) => {
26108
+ const L = parseFloat(z);
26096
26109
  L < a ? Y[L] = c.customHeight[L] : L > n && (Y[L - f] = c.customHeight[L]);
26097
26110
  }), c.customHeight = Y;
26098
26111
  }
26099
26112
  if (c.borderInfo && c.borderInfo.length > 0) {
26100
26113
  const Y = [];
26101
26114
  for (let E = 0; E < c.borderInfo.length; E += 1) {
26102
- const { rangeType: U } = c.borderInfo[E];
26103
- if (U === "range") {
26115
+ const { rangeType: z } = c.borderInfo[E];
26116
+ if (z === "range") {
26104
26117
  const L = c.borderInfo[E].range, pe = [];
26105
26118
  for (let de = 0; de < L.length; de += 1) {
26106
26119
  let te = L[de].row[0], ve = L[de].row[1];
@@ -26121,7 +26134,7 @@ function Rl(e, t) {
26121
26134
  };
26122
26135
  Y.push(de);
26123
26136
  }
26124
- } else if (U === "cell") {
26137
+ } else if (z === "cell") {
26125
26138
  const { row_index: L } = c.borderInfo[E].value;
26126
26139
  L < a ? Y.push(c.borderInfo[E]) : L > n && (c.borderInfo[E].value.row_index = L - (n - a + 1), Y.push(c.borderInfo[E]));
26127
26140
  }
@@ -26142,8 +26155,8 @@ function Rl(e, t) {
26142
26155
  c.customWidth = {};
26143
26156
  const x = {};
26144
26157
  h.forEach(c.customWidth, (Y, E) => {
26145
- const U = parseFloat(E);
26146
- U < a ? x[U] = c.customWidth[U] : U > n && (x[U - f] = c.customWidth[U]);
26158
+ const z = parseFloat(E);
26159
+ z < a ? x[z] = c.customWidth[z] : z > n && (x[z - f] = c.customWidth[z]);
26147
26160
  }), c.customWidth = x;
26148
26161
  }
26149
26162
  c.colReadOnly = A, c.colhidden == null && (c.colhidden = {});
@@ -26156,13 +26169,13 @@ function Rl(e, t) {
26156
26169
  for (let Y = 0; Y < c.borderInfo.length; Y += 1) {
26157
26170
  const { rangeType: E } = c.borderInfo[Y];
26158
26171
  if (E === "range") {
26159
- const U = c.borderInfo[Y].range, L = [];
26160
- for (let pe = 0; pe < U.length; pe += 1) {
26161
- let de = U[pe].column[0], te = U[pe].column[1];
26172
+ const z = c.borderInfo[Y].range, L = [];
26173
+ for (let pe = 0; pe < z.length; pe += 1) {
26174
+ let de = z[pe].column[0], te = z[pe].column[1];
26162
26175
  for (let ve = a; ve <= n; ve += 1)
26163
- ve < U[pe].column[0] ? (de -= 1, te -= 1) : ve <= U[pe].column[1] && (te -= 1);
26176
+ ve < z[pe].column[0] ? (de -= 1, te -= 1) : ve <= z[pe].column[1] && (te -= 1);
26164
26177
  te >= de && L.push({
26165
- row: U[pe].row,
26178
+ row: z[pe].row,
26166
26179
  column: [de, te]
26167
26180
  });
26168
26181
  }
@@ -26177,8 +26190,8 @@ function Rl(e, t) {
26177
26190
  x.push(pe);
26178
26191
  }
26179
26192
  } else if (E === "cell") {
26180
- const { col_index: U } = c.borderInfo[Y].value;
26181
- U < a ? x.push(c.borderInfo[Y]) : U > n && (c.borderInfo[Y].value.col_index = U - (n - a + 1), x.push(c.borderInfo[Y]));
26193
+ const { col_index: z } = c.borderInfo[Y].value;
26194
+ z < a ? x.push(c.borderInfo[Y]) : z > n && (c.borderInfo[Y].value.col_index = z - (n - a + 1), x.push(c.borderInfo[Y]));
26182
26195
  }
26183
26196
  }
26184
26197
  c.borderInfo = x;
@@ -26670,7 +26683,7 @@ function Tf(e) {
26670
26683
  function $f(e) {
26671
26684
  return /^0x?[a-fA-F0-9]+$/.test(e);
26672
26685
  }
26673
- const Ho = "#f3f3f3", Uo = 5;
26686
+ const Ho = "#f3f3f3", zo = 5;
26674
26687
  function Ol(e) {
26675
26688
  return typeof e != "string" ? !1 : ["price", "fully_diluted_value"].includes(e) || e.toLowerCase().includes("usd") || e.toLowerCase().includes("price_in");
26676
26689
  }
@@ -26679,7 +26692,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26679
26692
  if (!r.length) return e;
26680
26693
  const n = r.map((i) => {
26681
26694
  const l = [];
26682
- for (let c = 0; c < Uo; c += 1)
26695
+ for (let c = 0; c < zo; c += 1)
26683
26696
  l.push(
26684
26697
  c === 0 ? { m: i, v: i, tb: "1", bg: Ho } : { bg: Ho }
26685
26698
  );
@@ -26689,7 +26702,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26689
26702
  n,
26690
26703
  {
26691
26704
  row: [e, e + r.length - 1],
26692
- column: [t, t + Uo - 1]
26705
+ column: [t, t + zo - 1]
26693
26706
  },
26694
26707
  {},
26695
26708
  !1
@@ -26767,7 +26780,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26767
26780
  ), { m: G, ct: Q, ...F } = ne || {}, ae = oa(j);
26768
26781
  P.push({
26769
26782
  ...F,
26770
- ...zo(ne, ae),
26783
+ ...Uo(ne, ae),
26771
26784
  // move color from styles to cell-level 'fc' when becoming numeric
26772
26785
  v: j,
26773
26786
  ct: Ln(j, ne.ct),
@@ -26824,7 +26837,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26824
26837
  ), { m: G, ct: Q, ...F } = ne || {}, ae = oa(V), se = {};
26825
26838
  ae && Ol(P) && !o ? (se.m = kt(Ll, V), se.ht = 2) : V && (se.m = String(V)), O.push({
26826
26839
  ...F,
26827
- ...zo(ne, ae),
26840
+ ...Uo(ne, ae),
26828
26841
  // move color from styles to cell-level 'fc' when becoming numeric
26829
26842
  v: V,
26830
26843
  ct: Ln(V, ne.ct, P),
@@ -26852,7 +26865,7 @@ const Ll = `$#,##0.${"0".repeat(2)}`, Cf = (e, t, r, a) => {
26852
26865
  }
26853
26866
  const n = Zt({ ct: t, v: e }) && t.fa ? t.fa : "General", { s: o, ...i } = t || {};
26854
26867
  return { ...i, t: "n", fa: n };
26855
- }, zo = (e, t) => {
26868
+ }, Uo = (e, t) => {
26856
26869
  var n, o;
26857
26870
  if (!t) return {};
26858
26871
  const r = (n = e == null ? void 0 : e.ct) == null ? void 0 : n.s;
@@ -27046,7 +27059,7 @@ function kf(e) {
27046
27059
  }
27047
27060
  export {
27048
27061
  vd as $,
27049
- Us as A,
27062
+ zs as A,
27050
27063
  jt as B,
27051
27064
  Vt as C,
27052
27065
  Vn as D,
@@ -27056,7 +27069,7 @@ export {
27056
27069
  Ys as H,
27057
27070
  Jt as I,
27058
27071
  bd as J,
27059
- zf as K,
27072
+ Uf as K,
27060
27073
  Yf as L,
27061
27074
  Qf as M,
27062
27075
  va as N,
@@ -27074,7 +27087,7 @@ export {
27074
27087
  $d as Z,
27075
27088
  ml as _,
27076
27089
  Fe as a,
27077
- Hd as a$,
27090
+ Zd as a$,
27078
27091
  vc as a0,
27079
27092
  Rr as a1,
27080
27093
  wc as a2,
@@ -27085,33 +27098,33 @@ export {
27085
27098
  Na as a7,
27086
27099
  ed as a8,
27087
27100
  Js as a9,
27088
- sl as aA,
27089
- Qu as aB,
27090
- Rn as aC,
27091
- om as aD,
27092
- Ke as aE,
27093
- an as aF,
27094
- ea as aG,
27095
- Po as aH,
27096
- ta as aI,
27097
- Mt as aJ,
27098
- Vu as aK,
27099
- rn as aL,
27100
- lf as aM,
27101
- gm as aN,
27102
- en as aO,
27103
- vm as aP,
27104
- bm as aQ,
27105
- _f as aR,
27106
- ym as aS,
27107
- _m as aT,
27108
- wm as aU,
27109
- Ed as aV,
27110
- ia as aW,
27111
- $m as aX,
27112
- vf as aY,
27113
- Tm as aZ,
27114
- Zd as a_,
27101
+ jn as aA,
27102
+ Nr as aB,
27103
+ mf as aC,
27104
+ $l as aD,
27105
+ sl as aE,
27106
+ Qu as aF,
27107
+ Rn as aG,
27108
+ om as aH,
27109
+ an as aI,
27110
+ Po as aJ,
27111
+ ta as aK,
27112
+ Mt as aL,
27113
+ Vu as aM,
27114
+ rn as aN,
27115
+ lf as aO,
27116
+ gm as aP,
27117
+ vm as aQ,
27118
+ bm as aR,
27119
+ _f as aS,
27120
+ ym as aT,
27121
+ _m as aU,
27122
+ wm as aV,
27123
+ Ed as aW,
27124
+ ia as aX,
27125
+ $m as aY,
27126
+ vf as aZ,
27127
+ Tm as a_,
27115
27128
  un as aa,
27116
27129
  Ze as ab,
27117
27130
  wl as ac,
@@ -27129,81 +27142,81 @@ export {
27129
27142
  It as ao,
27130
27143
  Mu as ap,
27131
27144
  Tl as aq,
27132
- Kf as ar,
27133
- zn as as,
27134
- Cn as at,
27135
- pm as au,
27136
- hm as av,
27137
- jn as aw,
27138
- Nr as ax,
27139
- mf as ay,
27140
- $l as az,
27145
+ Rl as ar,
27146
+ Ke as as,
27147
+ ea as at,
27148
+ en as au,
27149
+ Kf as av,
27150
+ Un as aw,
27151
+ Cn as ax,
27152
+ pm as ay,
27153
+ hm as az,
27141
27154
  $c as b,
27142
27155
  Qd as b$,
27143
- tm as b0,
27144
- nm as b1,
27145
- sm as b2,
27146
- Gd as b3,
27147
- Xd as b4,
27148
- jd as b5,
27149
- Yd as b6,
27150
- Wd as b7,
27151
- Vd as b8,
27152
- Kd as b9,
27153
- Zc as bA,
27154
- fd as bB,
27155
- dd as bC,
27156
- rf as bD,
27157
- Oo as bE,
27158
- ld as bF,
27159
- Ld as bG,
27160
- sd as bH,
27161
- ud as bI,
27162
- cd as bJ,
27163
- tf as bK,
27164
- ef as bL,
27165
- dr as bM,
27166
- Lc as bN,
27167
- em as bO,
27168
- Sd as bP,
27169
- Ad as bQ,
27170
- xd as bR,
27171
- yd as bS,
27172
- rm as bT,
27173
- Id as bU,
27174
- Rl as bV,
27156
+ Hd as b0,
27157
+ tm as b1,
27158
+ nm as b2,
27159
+ sm as b3,
27160
+ Gd as b4,
27161
+ Xd as b5,
27162
+ jd as b6,
27163
+ Yd as b7,
27164
+ Wd as b8,
27165
+ Vd as b9,
27166
+ Gc as bA,
27167
+ Zc as bB,
27168
+ fd as bC,
27169
+ dd as bD,
27170
+ rf as bE,
27171
+ Oo as bF,
27172
+ ld as bG,
27173
+ Ld as bH,
27174
+ sd as bI,
27175
+ ud as bJ,
27176
+ cd as bK,
27177
+ tf as bL,
27178
+ ef as bM,
27179
+ dr as bN,
27180
+ Lc as bO,
27181
+ em as bP,
27182
+ Sd as bQ,
27183
+ Ad as bR,
27184
+ xd as bS,
27185
+ yd as bT,
27186
+ rm as bU,
27187
+ Id as bV,
27175
27188
  xt as bW,
27176
27189
  am as bX,
27177
27190
  Wn as bY,
27178
27191
  hf as bZ,
27179
27192
  Jd as b_,
27180
- id as ba,
27181
- Bd as bb,
27182
- fm as bc,
27183
- ru as bd,
27184
- rd as be,
27185
- iu as bf,
27186
- Ud as bg,
27187
- td as bh,
27188
- ou as bi,
27189
- Ff as bj,
27190
- Md as bk,
27191
- ad as bl,
27192
- mm as bm,
27193
- zd as bn,
27194
- od as bo,
27195
- Pd as bp,
27196
- vr as bq,
27197
- Ca as br,
27198
- Jf as bs,
27199
- kd as bt,
27200
- Cd as bu,
27201
- Nd as bv,
27202
- pd as bw,
27203
- Yn as bx,
27204
- xl as by,
27205
- Gc as bz,
27206
- zl as c,
27193
+ Kd as ba,
27194
+ id as bb,
27195
+ Bd as bc,
27196
+ fm as bd,
27197
+ ru as be,
27198
+ rd as bf,
27199
+ iu as bg,
27200
+ zd as bh,
27201
+ td as bi,
27202
+ ou as bj,
27203
+ Ff as bk,
27204
+ Md as bl,
27205
+ ad as bm,
27206
+ mm as bn,
27207
+ Ud as bo,
27208
+ od as bp,
27209
+ Pd as bq,
27210
+ vr as br,
27211
+ Ca as bs,
27212
+ Jf as bt,
27213
+ kd as bu,
27214
+ Cd as bv,
27215
+ Nd as bw,
27216
+ pd as bx,
27217
+ Yn as by,
27218
+ xl as bz,
27219
+ Ul as c,
27207
27220
  na as c0,
27208
27221
  el as c1,
27209
27222
  qs as c2,
@@ -27231,7 +27244,7 @@ export {
27231
27244
  Sf as cO,
27232
27245
  Ll as cP,
27233
27246
  Wf as ca,
27234
- Uf as cb,
27247
+ zf as cb,
27235
27248
  aa as cc,
27236
27249
  Xc as cd,
27237
27250
  im as ce,
@@ -27261,7 +27274,7 @@ export {
27261
27274
  Nf as f,
27262
27275
  Yo as g,
27263
27276
  Ie as h,
27264
- Uc as i,
27277
+ zc as i,
27265
27278
  wf as j,
27266
27279
  dm as k,
27267
27280
  Rt as l,