@sheetxl/sdk 0.7.24 → 0.7.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/browser/cjs/{B7mYmhEMfsgLLZSO.cjs → 6es1S1qn5FWHgcA9.cjs} +1 -1
  2. package/browser/cjs/{Dw64xUCVjlNdSiKN.cjs → 6w7MLE0s6iQaNFoK.cjs} +1 -1
  3. package/browser/cjs/{BpXJOTZx-SAOZ1N7.cjs → BicF2RsYTkiStFpF.cjs} +1 -1
  4. package/browser/cjs/{Ba0AsDQgQrStKCkJ.cjs → BxMfzBGUttf4YhHI.cjs} +1 -1
  5. package/browser/cjs/{C4saOjDU56FUA1C_.cjs → CFURf-TvhWcsSQ3E.cjs} +1 -1
  6. package/browser/cjs/{B0QQPONDaFljhVKo.cjs → CP3jwmmlL3T-4HyK.cjs} +1 -1
  7. package/browser/cjs/{BXxW8zZCnM6ekizZ.cjs → CQJv5X1_oZSphD7z.cjs} +3 -3
  8. package/browser/cjs/CQtDFiTvjGl3sYuO.cjs +55 -0
  9. package/browser/cjs/{B-GZ3aGR4CC3aXY8.cjs → CS9e-s_IiacJ6T91.cjs} +1 -1
  10. package/browser/cjs/{BudkWKSqVr7bJRuF.cjs → CSSWzpE42ThlcDZW.cjs} +2 -2
  11. package/browser/cjs/{BNuFUcNR06uRsvA1.cjs → CZd58Vwp_0LMpyIi.cjs} +1 -1
  12. package/browser/cjs/{D8NjQdFy1FQENdPM.cjs → CczbLC10xg1HfvbD.cjs} +1 -1
  13. package/browser/cjs/{CUudmqy1T7P7mkGl.cjs → CfgoQnYb5uy3l5ms.cjs} +1 -1
  14. package/browser/cjs/{D53FOFh4WSvGe4_f.cjs → CiXLZLjNfEKM5IdW.cjs} +1 -1
  15. package/browser/cjs/{wcdsJwbp_PMMWcu8.cjs → Cite3700mZtuBz7d.cjs} +1 -1
  16. package/browser/cjs/{B_q_wjH1K_m5Z-OG.cjs → Cu_lR4UxijlhNUnz.cjs} +1 -1
  17. package/browser/cjs/{CHthfW83cXfuE388.cjs → DAabwoxY2_tlDgcm.cjs} +1 -1
  18. package/browser/cjs/{D3iRCLdh1hUWXkvK.cjs → DHFVfkZxOVaPrP21.cjs} +1 -1
  19. package/browser/cjs/{CPqsppW_PDdOuWi7.cjs → DUt4ZcO5loeZMHx4.cjs} +2 -2
  20. package/browser/cjs/{qxyizrNao-3Gks7D.cjs → DcQHi8Dtx7dE7fIi.cjs} +1 -1
  21. package/browser/cjs/{BK32k40KghpIOlB8.cjs → DjuaGyO5xF3ML-Ov.cjs} +1 -1
  22. package/browser/cjs/{DHnFVxl2wCVXd5C4.cjs → DsHo6T7oUNHIkxT_.cjs} +1 -1
  23. package/browser/cjs/{CbYba_LEevcP8X8n.cjs → LCuiK0LJq9U6BYeH.cjs} +1 -1
  24. package/browser/cjs/{CkvATWjOKcLiTZCO.cjs → ObLc2qxvcKfh0PLy.cjs} +1 -1
  25. package/browser/cjs/{VTRx4UGe0xOmFTvv.cjs → _E1tYGd4Jlvvib9Z.cjs} +1 -1
  26. package/browser/cjs/index.cjs +2 -2
  27. package/browser/cjs/{MOaKSxq_UD2J5Eni.cjs → sGVR8lHduWTCWzIy.cjs} +1 -1
  28. package/browser/cjs/{BnaX3btSZgKjJD3g.cjs → wJ-p5AMSkSKx4VBQ.cjs} +1 -1
  29. package/browser/esm/{CrC5be5VvjN8YfwZ.mjs → B0yWPxxOKkC32AeK.mjs} +1 -1
  30. package/browser/esm/{CsuiTCfCzmPduqfj.mjs → B35gr_IRtnx7liSK.mjs} +1 -1
  31. package/browser/esm/{DugIyKvxDMZtI6zo.mjs → B6-x7sz_Zdr0ZQHC.mjs} +1 -1
  32. package/browser/esm/{D5goRcMOjSd8ZZif.mjs → BBzdTydLf0DZkvor.mjs} +1 -1
  33. package/browser/esm/{Szxfyfq7rOsoSgQD.mjs → BTOmc8PWsCecw_6i.mjs} +3 -3
  34. package/browser/esm/{sZ-OlGRn3tftSRQo.mjs → Ba86PynoSVU5QOoi.mjs} +1 -1
  35. package/browser/esm/{B5kmsnnq_a2zF3O9.mjs → BbCnmork-2-FkrtP.mjs} +2 -2
  36. package/{node/esm/DDZRbsQDDnP5GEsf.mjs → browser/esm/BeqUp9chD8-t-pGl.mjs} +1 -1
  37. package/{node/esm/D0auuAKpMpbhgEMy.mjs → browser/esm/Bxd49KXOqKJMOqP1.mjs} +1 -1
  38. package/browser/esm/{CpwLd2BOCK1WVLsD.mjs → Byij1LAQ8P5vIjh4.mjs} +1 -1
  39. package/browser/esm/{DnKyXPJdm_lAYion.mjs → C87M9OV-luNLyaO8.mjs} +1 -1
  40. package/browser/esm/{CxwxBO2x7yk3tpIF.mjs → C9Qj9_kWjZmtuOTn.mjs} +2 -2
  41. package/{node/esm/Db5bJe8Onimcrhvj.mjs → browser/esm/CAqfk88YfIoliO4d.mjs} +1 -1
  42. package/{node/esm/C1G-xsCH6Y_ja7D_.mjs → browser/esm/CNIdIOjAvccyPXr3.mjs} +1 -1
  43. package/{node/esm/Cmpebek34NmB7dV0.mjs → browser/esm/CWsGIc7iiJaReTFy.mjs} +1 -1
  44. package/browser/esm/{DZnIIFWA1G12eVHx.mjs → CzhdzOqIuK76W-yj.mjs} +1 -1
  45. package/browser/esm/{DPbybjBmhyd8GfFC.mjs → DMxf-VFi_OTqd9gc.mjs} +1 -1
  46. package/browser/esm/{BwZ944RRk5Fvs6Yd.mjs → D_39jOOBSVOoSkZo.mjs} +1 -1
  47. package/browser/esm/{CEm5O9cEAKspymuB.mjs → DlrINim9DnHswMyv.mjs} +1 -1
  48. package/{node/esm/CSeyYzHBuoitKLbn.mjs → browser/esm/DuvE8uORO-S8QWnA.mjs} +1 -1
  49. package/browser/esm/{DDEe6q9G_Pmz1lDx.mjs → DvGFJ3jWgilDoY-o.mjs} +1 -1
  50. package/browser/esm/{DpOcuJqOimTs7oFN.mjs → E_d9fKaCFKiz9_qU.mjs} +5071 -5075
  51. package/browser/esm/{3ZLVRcfE1wxWjdrj.mjs → F2UFGn8Fjo6dV1n3.mjs} +1 -1
  52. package/browser/esm/{Xr5FE3F8vCWGZ5F8.mjs → I7ph12fOizym4lF_.mjs} +1 -1
  53. package/{node/esm/BAo36lBnQlvEr4dC.mjs → browser/esm/LZsSu7999ReB31Wa.mjs} +1 -1
  54. package/browser/esm/index.mjs +2 -2
  55. package/{node/esm/DJqp9vjX0ZdGvX7s.mjs → browser/esm/sJp2IGtFTuDSGl1b.mjs} +1 -1
  56. package/{node/esm/CAzE79mu7a-x2pEZ.mjs → browser/esm/vfw2WbpSkQNbA_F1.mjs} +1 -1
  57. package/node/esm/{DleT-7IR4Y9SNWld.mjs → 64xhOVrPXMWmdSZV.mjs} +1 -1
  58. package/node/esm/{BZngrRnBLy2_q09D.mjs → B5lrJQ7Wmo-0lges.mjs} +1 -1
  59. package/node/esm/{sZ-OlGRn3tftSRQo.mjs → Ba86PynoSVU5QOoi.mjs} +1 -1
  60. package/{browser/esm/DDZRbsQDDnP5GEsf.mjs → node/esm/BeqUp9chD8-t-pGl.mjs} +1 -1
  61. package/node/esm/{DZ2bNT_wREthJFNz.mjs → BmfULQ9Tvl9Tj6g6.mjs} +2 -2
  62. package/node/esm/{llZohIB6k9AHOBpc.mjs → Bq2Fy-FoUxnSIVVu.mjs} +1 -1
  63. package/{browser/esm/D0auuAKpMpbhgEMy.mjs → node/esm/Bxd49KXOqKJMOqP1.mjs} +1 -1
  64. package/node/esm/{DnKyXPJdm_lAYion.mjs → C87M9OV-luNLyaO8.mjs} +1 -1
  65. package/{browser/esm/Db5bJe8Onimcrhvj.mjs → node/esm/CAqfk88YfIoliO4d.mjs} +1 -1
  66. package/{browser/esm/C1G-xsCH6Y_ja7D_.mjs → node/esm/CNIdIOjAvccyPXr3.mjs} +1 -1
  67. package/node/esm/{BaCXM0LlL1TEKxSV.mjs → COwR3Fxheu0DPRLP.mjs} +1 -1
  68. package/{browser/esm/Cmpebek34NmB7dV0.mjs → node/esm/CWsGIc7iiJaReTFy.mjs} +1 -1
  69. package/node/esm/{BUGUMXvtGVRJjqoa.mjs → Cn5UNNumSC9XfUB6.mjs} +1 -1
  70. package/node/esm/{DZnIIFWA1G12eVHx.mjs → CzhdzOqIuK76W-yj.mjs} +1 -1
  71. package/node/esm/{DPbybjBmhyd8GfFC.mjs → DMxf-VFi_OTqd9gc.mjs} +1 -1
  72. package/node/esm/{BY5bpznEGVoQ2nbr.mjs → DQ5ElBxh3p4eEf-S.mjs} +1 -1
  73. package/node/esm/{BwZ944RRk5Fvs6Yd.mjs → D_39jOOBSVOoSkZo.mjs} +1 -1
  74. package/node/esm/{CEm5O9cEAKspymuB.mjs → DlrINim9DnHswMyv.mjs} +1 -1
  75. package/node/esm/{BLx9RY501fxRpmUh.mjs → Dt-u2nR0LA5z4KAx.mjs} +1 -1
  76. package/{browser/esm/CSeyYzHBuoitKLbn.mjs → node/esm/DuvE8uORO-S8QWnA.mjs} +1 -1
  77. package/node/esm/{DDEe6q9G_Pmz1lDx.mjs → DvGFJ3jWgilDoY-o.mjs} +1 -1
  78. package/{browser/esm/BAo36lBnQlvEr4dC.mjs → node/esm/LZsSu7999ReB31Wa.mjs} +1 -1
  79. package/node/esm/{K-TBJLm0kRanHzjh.mjs → PlobeZAeWN5xo94p.mjs} +1 -1
  80. package/node/esm/index.mjs +884 -886
  81. package/{browser/esm/DJqp9vjX0ZdGvX7s.mjs → node/esm/sJp2IGtFTuDSGl1b.mjs} +1 -1
  82. package/{browser/esm/CAzE79mu7a-x2pEZ.mjs → node/esm/vfw2WbpSkQNbA_F1.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/browser/cjs/4nRTADv5HPQL1vXg.cjs +0 -55
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.24
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.25
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -133,7 +133,7 @@ class O {
133
133
  let l2;
134
134
  if (0 === n2.length) {
135
135
  const e3 = this._current.record, n3 = { states: /* @__PURE__ */ new Map(), id: o.uuidV4(), description: "string" == typeof t2 ? t2 : t2?.description ?? null, meta: {}, timestamp: Date.now(), author: null, version: e3.version + 1, previousId: e3.id, viewBefore: null, viewAfter: {}, operation: t2?.operation }, r3 = { record: n3, commit: new k(n3) };
136
- this._pending = r3, this._notify("onCommitStart", r3.commit), l2 = new B(this, r3, e3?.states, t2, a2);
136
+ this._pending = r3, this._notify("onCommitStart", r3.commit), l2 = new L(this, r3, e3?.states, t2, a2);
137
137
  } else {
138
138
  l2 = n2[n2.length - 1].beginTransaction(t2, a2);
139
139
  }
@@ -242,7 +242,7 @@ class D {
242
242
  }
243
243
  beginTransaction(t2, e2) {
244
244
  this._ensureOpen();
245
- const n2 = new L(this, this._container, "string" == typeof t2 ? { description: t2 } : t2, e2);
245
+ const n2 = new B(this, this._container, "string" == typeof t2 ? { description: t2 } : t2, e2);
246
246
  return this._children || this._children, this._children.add(n2), n2;
247
247
  }
248
248
  updateState(t2, e2) {
@@ -297,7 +297,7 @@ class D {
297
297
  }), e2) : (this._states = t2, t2);
298
298
  }
299
299
  }
300
- class B extends D {
300
+ class L extends D {
301
301
  constructor(t2, e2, n2, r2, o2) {
302
302
  super(e2, r2), this._store = t2, this._prevStates = n2, this._onClose = o2, this._states = /* @__PURE__ */ new Map(), this._meta = e2.record.meta;
303
303
  }
@@ -333,7 +333,7 @@ class B extends D {
333
333
  return super._mergeStates(t2);
334
334
  }
335
335
  }
336
- class L extends D {
336
+ class B extends D {
337
337
  constructor(t2, e2, n2, r2) {
338
338
  if (super(e2, n2), !t2) throw new Error("Parent transaction required");
339
339
  this._parent = t2, this._depth = this._parent.getDepth() + 1, this._onClose = r2;
@@ -377,18 +377,18 @@ class z extends s {
377
377
  }
378
378
  const P = () => {
379
379
  try {
380
- return "0.7.24";
380
+ return "0.7.25";
381
381
  } catch (t2) {
382
382
  return "";
383
383
  }
384
- }, H = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
384
+ }, W = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
385
385
  try {
386
386
  return "Mon Oct 20 2025";
387
387
  } catch (t2) {
388
388
  return "";
389
389
  }
390
- }, getBuildVersion: P }, Symbol.toStringTag, { value: "Module" })), W = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", V = `
391
- https://www.sheetxl.com ${P()}`, j = "#1976d2", $ = "#FFA726", G = Object.freeze(Object.defineProperty({ __proto__: null, generateNodeId: async () => {
390
+ }, getBuildVersion: P }, Symbol.toStringTag, { value: "Module" })), H = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", V = `
391
+ https://www.sheetxl.com ${P()}`, $ = "#1976d2", j = "#FFA726", G = Object.freeze(Object.defineProperty({ __proto__: null, generateNodeId: async () => {
392
392
  if (!o.isNode()) return null;
393
393
  const t2 = await import(
394
394
  /* @vite-ignore */
@@ -412,10 +412,10 @@ const P = () => {
412
412
  "chalk"
413
413
  )).default;
414
414
  t3.level = 2;
415
- const e2 = t3.hex(j), n2 = t3.hex($);
416
- return console.log(e2(W) + n2(V));
415
+ const e2 = t3.hex($), n2 = t3.hex(j);
416
+ return console.log(e2(H) + n2(V));
417
417
  } catch (t3) {
418
- return console.log(W + "\n" + V + "\n");
418
+ return console.log(H + "\n" + V + "\n");
419
419
  }
420
420
  }, printDetails: async (t2, e2 = false, n2 = false, r2 = false) => {
421
421
  let o2;
@@ -425,7 +425,7 @@ const P = () => {
425
425
  "chalk"
426
426
  )).default;
427
427
  s2.level = 2;
428
- const i2 = s2.red, a2 = s2.hex(j), l2 = s2.hex($), c2 = t2.isEval();
428
+ const i2 = s2.red, a2 = s2.hex($), l2 = s2.hex(j), c2 = t2.isEval();
429
429
  if (c2) o2 = "Evaluation Only", console.log(i2(o2)), o2 = "Please visit https://my.sheetxl.com to register.", console.log(a2(o2)), o2 = null;
430
430
  else {
431
431
  o2 = `Licensee: ${t2.getLicensee() ?? "Invalid License"}`;
@@ -470,195 +470,181 @@ Cpus: ${r3}`), console.log(a2(o2)), o2 = null;
470
470
  for (let t4 = 0; t4 < r2.length; t4++) r2[t4].charCodeAt(0) <= n3 && (r2[t4] = String.fromCharCode((r2[t4].charCodeAt(0) + e3) % n3));
471
471
  return r2.join("");
472
472
  })(t2, n2 - e2), J = (t2) => "object" == typeof window ? window.atob(t2) : Buffer.from(t2, "base64").toString("ascii");
473
- function q(t2, e2, n2, r2, o2) {
474
- return K(o2 - -23, r2);
475
- }
476
- function K(t2, e2) {
477
- const n2 = rt();
478
- return K = function(e3, r2) {
479
- let o2 = n2[e3 -= 287];
480
- if (void 0 === K.UYXYAv) {
481
- const e4 = function(t3, e5) {
482
- let n3, r3, o3 = [], s3 = 0, i3 = "";
483
- for (t3 = (function(t4) {
484
- let e6 = "", n4 = "";
485
- for (let n5, r4, o4 = 0, s4 = 0; r4 = t4.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
486
- for (let t5 = 0, r4 = e6.length; t5 < r4; t5++) n4 += "%" + ("00" + e6.charCodeAt(t5).toString(16)).slice(-2);
487
- return decodeURIComponent(n4);
488
- })(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
489
- for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
490
- r3 = 0, s3 = 0;
491
- for (let e6 = 0; e6 < t3.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t3.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
492
- return i3;
493
- };
494
- K.yrSWek = e4, t2 = arguments, K.UYXYAv = true;
495
- }
496
- const s2 = e3 + n2[0], i2 = t2[s2];
497
- return i2 ? o2 = i2 : (void 0 === K.REGrVv && (K.REGrVv = true), o2 = K.yrSWek(o2, r2), t2[s2] = o2), o2;
498
- }, K(t2, e2);
499
- }
500
- function X(t2, e2, n2, r2, o2) {
501
- return K(n2 - -542, o2);
502
- }
503
473
  !(function() {
504
- const t2 = "ys*q", e2 = "iU7d", n2 = 216, r2 = "yupe", o2 = "%A9[", s2 = 149, i2 = 171, a2 = "yxK[", l2 = 300, c2 = 326, h2 = "s!b9";
505
- function d2(t3, e3, n3, r3, o3) {
506
- return K(o3 - -481, r3);
507
- }
508
- function u2(t3, e3, n3, r3, o3) {
509
- return K(n3 - -138, o3);
474
+ const t2 = "S5o)", e2 = 1209, n2 = 1202, r2 = "vv!F", o2 = 257, s2 = 349, i2 = "iWaH", a2 = 203, l2 = dt();
475
+ function c2(t3, e3, n3, r3, o3) {
476
+ return nt(n3 - 696, t3);
510
477
  }
511
- function g2(t3, e3, n3, r3, o3) {
512
- return K(n3 - -60, r3);
478
+ function h2(t3, e3, n3, r3, o3) {
479
+ return nt(o3 - -123, t3);
513
480
  }
514
- function m2(t3, e3, n3, r3, o3) {
515
- return K(e3 - -319, n3);
481
+ function d2(t3, e3, n3, r3, o3) {
482
+ return nt(e3 - -819, t3);
516
483
  }
517
- function f2(t3, e3, n3, r3, o3) {
518
- return K(t3 - -140, e3);
484
+ function u2(t3, e3, n3, r3, o3) {
485
+ return nt(o3 - -216, e3);
519
486
  }
520
- const p2 = rt();
521
487
  for (; ; ) try {
522
- if (127213 === parseInt(d2(0, 0, 0, "tR31", -81)) / 1 * (parseInt(d2(0, 0, 0, t2, -11)) / 2) + parseInt(m2(0, 14, e2)) / 3 + -parseInt(f2(n2, r2)) / 4 + parseInt(d2(0, 0, 0, o2, -s2)) / 5 + parseInt(u2(0, 0, i2, 0, a2)) / 6 * (-parseInt(g2(0, 0, l2, "Lg0^")) / 7) + parseInt(f2(c2, "a0Fx")) / 8 + -parseInt(f2(190, h2)) / 9) break;
523
- p2.push(p2.shift());
488
+ if (921184 === parseInt(c2("Z0jx", 0, 1245)) / 1 * (-parseInt(u2(0, "jGo%", 0, 0, 356)) / 2) + -parseInt(d2(t2, -249)) / 3 + parseInt(c2(")VDr", 0, e2)) / 4 + parseInt(c2("5QKR", 0, n2)) / 5 + parseInt(d2(r2, -o2)) / 6 * (parseInt(u2(0, "T)]$", 0, 0, s2)) / 7) + -parseInt(h2("7sL7", 0, 0, 0, 461)) / 8 * (-parseInt(d2(i2, -a2)) / 9) + -parseInt(c2("XG&1", 0, 1160)) / 10) break;
489
+ l2.push(l2.shift());
524
490
  } catch (t3) {
525
- p2.push(p2.shift());
491
+ l2.push(l2.shift());
526
492
  }
527
493
  })();
528
- const Y = () => {
529
- const t2 = "a0Fx", e2 = 535, n2 = "Km(t";
530
- function r2(t3, e3, n3, r3, o2) {
531
- return K(e3 - 209, n3);
532
- }
533
- return typeof window === K(-425 - -784, "0y89") ? window[s2 = t2, i2 = -99, K(i2 - -544, s2)][r2(0, e2, "ici#")] : o[r2(0, 513, n2)]();
534
- var s2, i2;
535
- }, Q = () => {
536
- const t2 = "GxFu", e2 = 156, n2 = "iU7d", r2 = 32, o2 = 51;
537
- function s2(t3, e3, n3, r3, o3) {
538
- return K(o3 - -321, e3);
539
- }
540
- return Y()[s2(0, t2, 0, 0, e2)](s2(0, n2, 0, 0, r2)) || Y() === s2(0, "pSaa", 0, 0, o2);
541
- }, Z = (t2, e2, n2, r2) => {
542
- const o2 = "@2a5", s2 = "Lg0^", i2 = 342;
543
- function a2(t3, e3, n3, r3, o3) {
544
- return K(o3 - -495, t3);
545
- }
494
+ const K = () => {
495
+ const t2 = 73, e2 = 31, n2 = "]LMJ";
496
+ if (typeof window === i2(56, "*T4)", -46, 18)) return window[i2(t2, "7sL7", -13, e2)][r2 = 1328, s2 = n2, nt(r2 - 799, s2)];
497
+ var r2, s2;
498
+ function i2(t3, e3, n3, r3, o2) {
499
+ return nt(r3 - -522, e3);
500
+ }
501
+ return o[i2(0, "n3E0", 0, -29)]();
502
+ }, q = () => {
503
+ const t2 = "iWaH", e2 = "Fkjm";
504
+ function n2(t3, e3, n3, r2, o2) {
505
+ return nt(n3 - 636, t3);
506
+ }
507
+ return K()[n2(t2, 0, 1148)](n2("4yfj", 0, 1241)) || K() === nt(-339 - -826, e2);
508
+ }, X = (t2, e2, n2, r2) => {
509
+ const o2 = "3(v3", s2 = "LHzy", i2 = 1487, a2 = 574;
546
510
  function l2(t3, e3, n3, r3, o3) {
547
- return K(n3 - -189, r3);
511
+ return nt(e3 - -235, o3);
548
512
  }
549
513
  function c2(t3, e3, n3, r3, o3) {
550
- return K(o3 - -430, t3);
514
+ return nt(e3 - -814, r3);
551
515
  }
552
516
  function h2(t3, e3, n3, r3, o3) {
553
- return K(t3 - -808, o3);
517
+ return nt(n3 - 900, r3);
554
518
  }
555
- return { getLicensee: () => t2[h2(-490, 0, 0, 0, "XAIy")], getExpiration: () => new Date(t2[h2(-461, 0, 0, 0, "oZNK")]), getDomains: () => t2[l2(0, 0, 228, "6$eS")] ?? [], getDeveloperCount: () => t2[c2("tR31", 0, 0, 0, 26)] ?? 1, getCpuCount: () => t2[a2("@2a5", 0, 0, 0, -172)] ?? 0, getType: () => t2[c2("j80T", 0, 0, 0, -56)] ?? h2(-382, 0, 0, 0, "4V^x"), getExceptions: () => e2, hasExceptions() {
556
- return !!e2 && e2[t3 = -100, n3 = "yxK[", h2(t3 - i2, 0, 0, 0, n3)] > 0;
519
+ return { getLicensee: () => t2[l2(0, 386, 0, 0, "T)]$")], getExpiration: () => new Date(t2[h2(0, 0, 1463, "iWaH")]), getDomains: () => t2[l2(0, 238, 0, 0, "iWaH")] ?? [], getDeveloperCount: () => t2[c2(0, -370, 0, "RmLn")] ?? 1, getCpuCount: () => t2[c2(0, -175, 0, "k4*b")] ?? 0, getType: () => {
520
+ return t2[e3 = 61, n3 = "T)]$", nt(e3 - -462, n3)] ?? nt(677 - 110, "#$Dm");
521
+ var e3, n3;
522
+ }, getExceptions: () => e2, hasExceptions() {
523
+ return !!e2 && e2[t3 = "vv!F", n3 = a2, c2(0, n3 - 777, 0, t3)] > 0;
557
524
  var t3, n3;
558
525
  }, isValidFor: (t3) => {
559
- const n3 = 411;
560
- if (e2?.[r3 = "(AOC", o3 = 783, s3 = o3 - n3, i3 = r3, K(s3 - -47, i3)] > 0) return false;
561
- var r3, o3, s3, i3;
562
- return true;
563
- }, isValid: () => true, isEval: () => false, getFeatures: () => Object[a2("Rzxh", 0, 0, 0, -115)](t2[c2("Y5M&", 0, 0, 0, 60)] ?? {}), getKeyFrom: () => n2, getBuildVersion: H[h2(-431, 0, 0, 0, o2)], getBuildDate: H[l2(0, 0, 231, s2)] };
564
- }, tt = (t2) => {
565
- const e2 = "FxzG", n2 = 267, r2 = "Rzxh", s2 = "ys*q", i2 = 222, a2 = 213, l2 = 795;
566
- function c2(t3, e3, n3, r3, o2) {
567
- return K(t3 - -190, r3);
568
- }
569
- let h2 = o[c2(220, 0, 0, "yzvI")];
570
- function d2(t3, e3, n3, r3, o2) {
571
- return K(n3 - l2, r3);
572
- }
573
- function u2(t3, e3, n3, r3, o2) {
574
- return K(o2 - -611, r3);
575
- }
576
- if (Q() || o[c2(147, 0, 0, e2)]()) {
577
- const t3 = H[g2("oZNK", n2)](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), a3 = 864e5;
578
- Math[d2(0, 0, 1168, "IoxP")]((o2[d2(0, 0, 1219, r2)]() - e3[u2(0, 0, 0, s2, -243)]()) / a3) >= 120 && (h2 = [c2(i2, 0, 0, r2)]);
579
- } else h2 = [];
580
- function g2(t3, e3, n3, r3, o2) {
581
- return K(e3 - -134, t3);
582
- }
583
- return { getLicensee: () => d2(0, 0, 1200, "Km(t"), getExpiration: () => null, getDomains: () => [Y()], getDeveloperCount: () => 1, getCpuCount: () => 0, getType: () => c2(249, 0, 0, "XAIy"), isEval: () => true, getExceptions: () => h2, hasExceptions: () => h2[u2(0, 0, 0, "BSR3", -143)] > 0, isValidFor: () => 0 === h2[g2("GxFu", 288)], isValid: () => false, getFeatures: () => Object[u2(0, 0, 0, "f@k(", -176)]({}), getKeyFrom: () => t2, getBuildVersion: H[c2(a2, 0, 0, "Rzxh")], getBuildDate: H[d2(0, 0, 1164, "Km(t")] };
526
+ return !(e2?.[n3 = s2, r3 = i2, h2(0, 0, r3 - 63, n3)] > 0);
527
+ var n3, r3;
528
+ }, isValid: () => true, isEval: () => false, getFeatures: () => Object[h2(0, 0, 1471, "vv!F")](t2[c2(0, -177, 0, "4yfj")] ?? {}), getKeyFrom: () => n2, getBuildVersion: W[c2(0, -224, 0, ")VDr")], getBuildDate: W[h2(0, 0, 1354, o2)] };
584
529
  };
585
- function et(t2, e2, n2, r2, o2) {
586
- return K(r2 - -546, t2);
530
+ function Y(t2, e2, n2, r2, o2) {
531
+ return nt(e2 - 288, r2);
587
532
  }
588
- function nt(t2, e2, n2, r2, o2) {
589
- return K(r2 - -535, e2);
533
+ function Q(t2, e2, n2, r2, o2) {
534
+ return nt(n2 - 191, o2);
590
535
  }
591
- function rt() {
592
- const t2 = ["W6pdOu4gW7JcTa", "wSoXm8kpW7O0WPNcRsnoW5VcNSoS", "zSkJdmo1WQ/dTqe", "zSojW5JcGfrGq8o6uLTfWRa", "CGrPeYuVfa", "mmo2r1xcNdJcOSkEbSoCWOxdJHq", "WROVy3pcRmoljCopCG", "zbPPet4", "W5v3st0", "vJ7cSSohgYxcSv3dPMCOuWbNW77cMSoIDKWN", "W6tcV8kkE8oDkq", "AqZcVg4lW5rPWPVcLqrqW5xcMtzv", "W4DimSkTW7y", "WOZcNrbdphmHW6uc", "W4ubpmoxp8oi", "WOZcMWngo2mcW7ajWOStW4y", "W7bsva/cRSketWNdTwBdGYldHW", "AmoFW6NcTebL", "W4ONFSoGWRXcnW", "WQhdMCkBlNfDWQ3cHmozW6FcQf10ha", "W65ta8oMqZRdPgu", "y8ozW7CgbxeP", "bK5JWPm2i8k3Amk0W5W6yW", "W7fhW5pcNd/dJCo6cN/dISozWPldNq", "zcebzwq", "W554WPDrW5L+eMpcNmkQEwi/WRC", "hmo4cv/cLIFcK8kfaCobW5hdMaajWRNdMuaFa2S", "FmowW60sdf47", "W5DvnSkTW7miWOS", "WQ0gW5BdPCkJpmomWQ1HWQCUy2m", "W5rcjc/dS8krESk+ha", "WQtcIGj/j34UW6ucWOe", "W5nwkW", "WQmdcfxdV8kavHBdR1hdPq", "yCkGwNhcNrRcVSkP", "z8o8zvJdJCkwWOajW6KsWOtdQq", "WRddVNhcT8kmsHpdQCopW6POo3RcIq", "W4qwlCoWmmoejmkGfCooWOi0W6JdJgi", "t3NcMNzIe8oJivi", "rmoAW43cRLrOw8o3EvqrWPNcLmkSWPC0W7BdNW", "DHn+cG", "zHnYhYuWaG", "WOFdNs0pcxyzjSkpWOa", "WONdOM7cUmkuyrBcP8ofW6b3", "xCoZWP/dGhxcIYusWQlcKW", "W4Oaf8oDiCoi", "W6yfomoEmmompmkTlmofW5a3W6tdKwxdG8knW78wW7RdNuO2WQ/cHW", "jvqgW6HOWRD8AmkbWRXwW4C", "WOxcOuRdM2/dQa", "WOldHXGlc2Wy", "zrnYpdK1hCoFW5ZdU07cVGxdGCoU", "W5jxmmkBW6TVWR8", "A8o7WPVdV2NcSW", "kmoGh0NdM8kG", "WP7dTxpcLmkvsHVcRCoVW6rXpW", "W4LPWOjcW4rHnLRcMSkR", "WQNdMCkbkgXz", "yeFcU8kWWODrWO7cHCosEhpcNmk0W5hcPJa", "W4qwlCoMlmoalq", "D2ZcNffJa8ocdui6f0Pz", "W7LYWO5DW4v8ceFcLW", "WR/cGHjko2qLW5OcWPW", "CCoTWQRdGM3cPG", "DIpcISojeYK", "W7VdQ2WoW6/cVCocdcZcMwCmCSoyumo7wmoE", "W57cGhPyuZCTc8knWOZdHSkz", "W6FcKq3cU8k6W5i", "jSk9BZ3cLZ3dNa", "WRRcMcDoox4K", "pmkZouTuW5a", "W6jbuW/cV8k4EH7dUg3dKW", "W4a2WO/cM8k2WO3cN8oFjSoC", "mCkODZxcIG", "hMerW6G", "W41fwW3cOSksFG/dUq", "dCk0W79UW5GglXVcTsxcNSoudq", "W4jeW4ddMG", "W75ylxH+dSkI", "W48wn8ovmCof", "EGSMrKNdUCojWRy", "oSkXW6n7W5imjb8", "WRFdVYFcS8kyuX7cU8okW7fSnx0", "W4yJECoeWQ1niCoQW71li8o6W6e", "WOegW4ddUmooASkQzG", "WQldMCkBc31fWR/cVCohW70", "W4feWPBcTmo9E8kXWP5fWO0Uvv4", "wg7cH1z5m8oJhfCYeLu", "W5rdW5BdL8oqxW", "CSkYgCotWRldQZpcNJmw", "W754wdqxW4BdPwBdIG", "nSoYx17cLsxcGSkjhCoXWP7dNH4y", "WOZcJX5/j34UW6u", "W7HPns/dQmkwqSkin0u", "W51saSorrtS", "WPhdTwHBW69QW7S8cwvQda", "W65OhmoexIFdPu7cKa", "xSk2cSoiWQJdRcBcLIKqvCo/", "wCkZjCoCB8oxlmkpxJWiFCoWxa", "E1tcQ31zl8okn3OspwnKztBdU8k5W6qL", "hCo6WQvBArOiWPPtlNZcSfK", "j1XXea/cOCkqWPRcKmoAW79KWRa", "telcLmkZW4n4", "WRBcTfBdLxxdTa", "sXHWhYa1fCkBW6/dPKZcPb7dJ8o0WPZcVem", "mmo2sSkvW7ldRI3cMJqNyG", "hCkUEJdcLZxdJSotdG", "CtarerVcMSoCAdBdSf0", "W4zknmkuW7zpWQLPW7DnrW", "WRBcKWfgj24", "os/cSwC5W6vl", "mSkAWP7dSXG7D8ovyhXKWRe", "WQddKSklpe9yWQRcVa", "W4aCn8oulmokg8kWlmozWPu", "W7TaFXFcQSkA", "FCkDWRyEWPi9WPi", "CCozW5/cQG", "WOCZkGWlWQFdTCocWOhdRNFdRCkj", "ch8vW6hcRWBcVG", "a0P5WR8MomklFSkzW5m6y1G", "ASkkWQ0XWO4NWPVdJ3vcWONdNLqCWPy", "W7DlsGJcUCkp", "W77cUmkUF8oinLpcP8ksWQm", "WQtdG1ZdVCoPWOxcRYRcK8oQWRzQ", "W4vYDbhdTCkgCmkpmeHRW5ZdGSk/", "W7HrWOxcQCoMFCkqWOG", "W5z4WO1xW4r6", "pCkKkgHlW5rqWPvcy8oi", "WOBdONn0W7nWW7i", "srq3tLpdPa", "W6hcPCkSAmosnMhcHCkdWRi", "wdC8W63cUbVcVmo6zSorBmkhmq", "EGSI", "tCkKomotCSo5pSkXqJau", "CqjNcJKV", "W5bvnCk/W7ukWP0kCw3cSbVdKInnWRRcGhNdGG", "amk7W6HyW7CmpGm", "W41dsaJcPCkc", "W71pnL5Yba", "zrnYnsKL", "CCk0eCopWRldLGhcKImBva", "WQhdMCkBlNfDWQ0", "W7zlW5ZcMZBcNW", "ACkkWQ0sWPiIWOq", "zSojW5JcJxi", "hueAW6r0WQjkBmkHWR1xW5b2W7O", "urNcUKuqW4K", "WOe3mamhWRNdLSoGWPRdQw3dVmkioG", "W75yk3TJoCkIumk6WOn/Da", "WR7cSXvsWRZdRSoJhaNcQgSi", "rmkIW6yNjdqGWPjMhMm", "W5rzm8kuW6DZWPX+W7Pgv8ooW6i", "W4POWPby", "W4H9DZCAW4C", "qCoGlmkJW7y", "iSoGbu3dH8oGWQFdKGy", "x8oPy3pdLSklWQGiW5KsWPNdOaq", "sYmAyN7dSv3dVG7cOfRdJG", "f34tW6hcTq3cT8oS", "sSoiW6KAdKm", "yCkkWRCuWO8M", "W7L4jZldSmktCa", "W7HgWOhcUmoPAG", "BrNcVw8rW4HRWOS", "C8o7WPBdSN7cPtO", "fSkGW7XBW5iaorJcKt7cMmoucG", "wSo/m8k+W6W2WPhcUa", "jvivW61VWQDFFCkk", "l8oGcgJdNCkNW60", "WR7cTeZdK2JdScG4A3lcPmoSv8ku", "pSoDW6TlW4T9W47dVxnSWPldT3m", "e8k0W6bEW4uJpa", "WOidA8o1WQ8RWRuLwudcQa", "WQddGf3dVmoTWOxcSZNcLCopWPzb", "CCoEW4pcR0H6sG", "W6PpnNr+eCk0DmkPWOn9C0FcUa", "W7ZdReueW7JcPmocnGtcKxamt8oFr8onxCoCWPq", "WRRcMd9amxi", "WQS9zaKlWQW", "W4SSFmoxWRrC", "WPBcUfVdL2/dRZ5iFgpcUSoXqmkvceugWRri", "W4zkmSkxW6TYWQK", "cvavW7nYWRbPymkBWRO", "W5lcK8k/F8otmwVcKCk5", "W7NcVSkMya", "vLtcRSkqW45+WOlcImoeC0VcNmoT", "aSkWW7HVW4urkWlcRt8", "zCoHyxpdISkg", "eSo+WQjADa0mWOnlna", "FqZcVgaxW55GWPhcSarPW4pcIq", "W5eYWPFcQSk2WR/cIa", "v8oMiCkM", "FHZcU0q", "W7NcMWRcR8k1W5/cJsZcHG", "WRyAasC6WO3dQq", "sXXaWRy0W7iis8kBWRX3W6bN", "rSkTW6qVkeS1WQfrauBcUG", "DauRsvJdOSo2WQRcJCoAW49uWOW", "WQVdK8klkLfv", "cSk3W6zoW4mr", "W47dLN7cNCkNEZK", "W6HDWPFcTmoNlW", "Bf/cRmk9W4T0WOpdHSo7F2pcNmo6W6NcPMLyW6FdSXBdJKhdLSkaWQVcSmkh", "tSo2mxBdKCkCWOKdW54wW5ddVauNW7LNxaDW", "WQBdOhxcV8kovZpcRmoFW6rSnMa", "W48AoSoxk8oElCkpjSos"];
593
- return (rt = function() {
594
- return t2;
595
- })();
596
- }
597
- const ot = () => {
598
- const t2 = "sY8p", e2 = "s!b9", n2 = "yupe";
599
- if (st[a2(-204, -156, -172, -223, "SqIZ")] && st[a2(-318, -248, -321, -412, t2)]) return false;
600
- const r2 = st[a2(-446, -453, -353, -256, e2)];
601
- function o2(t3, e3, n3, r3, o3) {
602
- return K(t3 - -995, o3);
536
+ const Z = (t2) => {
537
+ const e2 = "cAfw", n2 = ")VDr", r2 = "YKLm", s2 = 1167, i2 = ")FEi", a2 = "O61E", l2 = "*&i1", c2 = 706;
538
+ function h2(t3, e3, n3, r3, o2) {
539
+ return nt(t3 - c2, r3);
603
540
  }
604
- var s2, i2;
605
- function a2(t3, e3, n3, r3, o3) {
606
- return K(n3 - -656, o3);
541
+ function d2(t3, e3, n3, r3, o2) {
542
+ return nt(r3 - 588, n3);
607
543
  }
608
- return !!(r2[o2(-612, 0, 0, 0, "Km(t")]() || r2[o2(-530, 0, 0, 0, n2)]() || r2[s2 = "f@k(", i2 = -45, K(i2 - -332, s2)]()?.pb);
609
- }, st = { promise: null, printNeeded: false, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
610
- let it = false, at = false;
611
- const lt = X(0, 0, -70, 0, "x*&*")[X(0, 0, -228, 0, "ici#")]("")[nt(0, "iU7d", 0, -103)]((t2, e2) => e2 + t2, "");
612
- class ct {
544
+ function u2(t3, e3, n3, r3, o2) {
545
+ return nt(n3 - -419, e3);
546
+ }
547
+ let g2 = o[m2(-235, -376, -191, -278, "iWcW")];
548
+ function m2(t3, e3, n3, r3, o2) {
549
+ return nt(r3 - -777, o2);
550
+ }
551
+ if (q() || o[m2(0, 0, 0, -256, e2)]()) {
552
+ const t3 = W[m2(0, 0, 0, -178, "Fkjm")](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), a3 = 864e5;
553
+ Math[d2(0, 0, "xPwu", 1035)]((o2[u2(0, n2, 212)]() - e3[d2(0, 0, r2, s2)]()) / a3) >= 120 && (g2 = [u2(0, i2, 91)]);
554
+ } else g2 = [];
555
+ return { getLicensee: () => u2(0, "CsUo", 97), getExpiration: () => null, getDomains: () => [K()], getDeveloperCount: () => 1, getCpuCount: () => 0, getType: () => u2(0, "#$Dm", 115), isEval: () => true, getExceptions: () => g2, hasExceptions: () => g2[u2(0, "iWaH", 157)] > 0, isValidFor: () => 0 === g2[d2(0, 0, "Pb6Y", 1080)], isValid: () => false, getFeatures: () => Object[h2(1233, 0, 0, "7sL7")]({}), getKeyFrom: () => t2, getBuildVersion: W[h2(1162, 0, 0, a2)], getBuildDate: W[m2(0, 0, 0, -294, l2)] };
556
+ }, tt = () => {
557
+ const t2 = "k4*b", e2 = "z!q$", n2 = 349, r2 = 348;
558
+ function o2(t3, e3, n3, r3, o3) {
559
+ return nt(n3 - -983, t3);
560
+ }
561
+ if (et[o2("%4JH", 0, -535)] && et[o2(t2, 0, -428)]) return false;
562
+ const s2 = et[o2("CsUo", 0, -524)];
563
+ var i2, a2, l2, c2, h2, d2;
564
+ return !!(s2[h2 = 1096, d2 = e2, nt(h2 - 477, d2)]() || s2[l2 = "XG&1", c2 = n2, nt(c2 - -211, l2)]() || s2[i2 = 818, a2 = "]LMJ", nt(i2 - r2, a2)]()?.pb);
565
+ }, et = { promise: null, printNeeded: false, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
566
+ function nt(t2, e2) {
567
+ const n2 = dt();
568
+ return nt = function(e3, r2) {
569
+ let o2 = n2[e3 -= 442];
570
+ if (void 0 === nt.hUcVgf) {
571
+ const e4 = function(t3, e5) {
572
+ let n3, r3, o3 = [], s3 = 0, i3 = "";
573
+ for (t3 = (function(t4) {
574
+ let e6 = "", n4 = "";
575
+ for (let n5, r4, o4 = 0, s4 = 0; r4 = t4.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
576
+ for (let t5 = 0, r4 = e6.length; t5 < r4; t5++) n4 += "%" + ("00" + e6.charCodeAt(t5).toString(16)).slice(-2);
577
+ return decodeURIComponent(n4);
578
+ })(t3), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
579
+ for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
580
+ r3 = 0, s3 = 0;
581
+ for (let e6 = 0; e6 < t3.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t3.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
582
+ return i3;
583
+ };
584
+ nt.yCDuaB = e4, t2 = arguments, nt.hUcVgf = true;
585
+ }
586
+ const s2 = e3 + n2[0], i2 = t2[s2];
587
+ return i2 ? o2 = i2 : (void 0 === nt.MNWqxK && (nt.MNWqxK = true), o2 = nt.yCDuaB(o2, r2), t2[s2] = o2), o2;
588
+ }, nt(t2, e2);
589
+ }
590
+ let rt = false, ot = false;
591
+ const st = ht(1244, "Fkjm", 1252, 1265)[lt(997, 1019, 1012, 907, "xPwu")]("")[lt(1025, 986, 971, 952, "%4JH")]((t2, e2) => e2 + t2, "");
592
+ class it {
613
593
  constructor() {
614
- var t2, e2, n2, r2;
615
- this[n2 = "PWGz", r2 = 1366, et(n2, 0, 0, r2 - 1451)][t2 = "0y89", e2 = -316, et(t2, 0, 0, e2 - -101)] = null;
594
+ function t2(t3, e2, n2, r2, o2) {
595
+ return Q(0, 0, e2 - -546, 0, o2);
596
+ }
597
+ this[t2(0, 126, 0, 0, "XG&1")][t2(0, 176, 0, 0, "iWaH")] = null;
616
598
  }
617
- async [nt(0, "@2a5", 0, -186)](t2, e2 = false) {
618
- const n2 = "ys*q", r2 = 287, s2 = 222, i2 = 202, a2 = 39, l2 = 132, c2 = 294, h2 = 158, d2 = 301, u2 = 215, g2 = "j80T", m2 = "Rzxh", f2 = 87, p2 = "FxzG", _2 = 1223, S2 = 89, w2 = 179, y2 = 124, E2 = 1117, C2 = "(AOC", b2 = 71, v2 = "GxFu", x2 = 99, I2 = "BSR3", R2 = 58, A2 = 123, M2 = "yzvI", T2 = 220;
619
- function N2(t3, e3, n3, r3, o2) {
620
- return q(0, 0, 0, e3, t3 - 812);
599
+ async [Q(0, 0, 798, 0, "T3G9")](t2, e2 = false) {
600
+ const n2 = 1474, r2 = 1382, s2 = 1385, i2 = 1453, a2 = ")VDr", l2 = 1504, c2 = 1376, h2 = ")VDr", d2 = "S5o)", u2 = "3(v3", g2 = "9tJz", m2 = "RvW7", f2 = "YKLm", p2 = "!13e", _2 = 449, S2 = "T3G9", w2 = "XG&1", y2 = 395, E2 = 648;
601
+ if (!t2 || t2[v2(480, "k4*b", 506, 420)](x2(1450, n2, r2, 1481, ")FEi")) || t2[x2(s2, i2, 1436, i2, "!13e")](I2(a2, -240, -310, -323)) || t2[b2(-435, -315, -347, -388, "QIbJ")](I2("E(5h", -282, -337, -311)) || t2[b2(-289, -343, -372, -450, "#$Dm")](b2(-352, -389, -320, -284, "*&i1"))) return rt = true, o[x2(1443, l2, 1435, c2, "3(v3")]() && await G[b2(-256, -329, -296, -312, "vv!F")](t2, e2), await this[b2(-380, -260, -334, -245, h2)](true);
602
+ if (rt = false, !e2 && et[I2("7ALB", -243, -273, -218)]) {
603
+ const t3 = await this[I2(d2, -282, -423, -328)]();
604
+ if (t3[C2(606, u2, 598, 603)]() && !t3[b2(-325, -258, -248, -221, g2)]()) return t3;
621
605
  }
622
- if (!t2 || t2[k2(88, 27, "WCTk")](N2(1150, "Y5M&")) || t2[B2(277, n2, r2, s2, i2)](O2(-251, -262, "u6Ew")) || t2[N2(1276, "0*WN")](k2(a2, 63, "%A9[")) || t2[k2(l2, 106, "4V^x")](O2(-202, -248, "ici#"))) return it = true, o[B2(c2, "j9PS", h2, d2, u2)]() && await G[N2(1087, "sY8p")](t2, e2), await this[O2(-98, -157, g2)](true);
623
- if (it = false, !e2 && st[D2(-528, -548, m2)]) {
624
- const t3 = await this[B2(f2, p2, 57, 38, 127)]();
625
- if (t3[N2(_2, "FxzG")]() && !t3[B2(S2, "0*WN", 134, w2, y2)]()) return t3;
606
+ function C2(t3, e3, n3, r3, o2) {
607
+ return Q(0, 0, t3 - -207, 0, e3);
626
608
  }
627
- st[D2(-485, -585, "1YuC")] = t2, st[N2(E2, C2)] = B2(98, "j9PS", 43, b2, 93), st[D2(-592, -620, v2)] = null, st[k2(265, 165, "s!b9")] = null;
628
- const F2 = await this[N2(1116, "WCTk")]();
629
- function k2(t3, e3, n3, r3, o2) {
630
- return nt(0, n3, 0, e3 - T2);
609
+ function b2(t3, e3, n3, r3, o2) {
610
+ return ht(t3 - 285, o2, n3 - 365, n3 - -1666);
631
611
  }
632
- if (!F2[O2(-138, -205, "1YuC")]()) throw await this[k2(0, x2, I2)](true), new Error(B2(45, "CbYt", 176, R2, A2));
633
- function O2(t3, e3, n3, r3, o2) {
634
- return q(0, 0, 0, n3, t3 - -530);
612
+ function v2(t3, e3, n3, r3, o2) {
613
+ return Q(0, 0, t3 - -352, 0, e3);
635
614
  }
636
- function D2(t3, e3, n3, r3, o2) {
637
- return et(n3, 0, 0, t3 - -347);
615
+ function x2(t3, e3, n3, r3, o2) {
616
+ return Y(0, t3 - E2, 0, o2);
638
617
  }
639
- function B2(t3, e3, n3, r3, o2) {
640
- return et(e3, 0, 0, o2 - 294);
618
+ function I2(t3, e3, n3, r3, o2) {
619
+ return lt(r3 - -1221, e3 - 478, n3 - y2, r3 - 415, t3);
641
620
  }
642
- return await G[D2(-475, 0, M2)](t2, e2), F2;
621
+ et[I2("ApAw", -312, -263, -282)] = t2, et[C2(430, m2, 416, 497)] = v2(364, f2, 429, 463), et[C2(445, p2, _2, 535)] = null, et[b2(-283, -260, -228, -250, S2)] = null;
622
+ const R2 = await this[x2(1545, 0, 0, 0, "iY#P")]();
623
+ if (!R2[I2("iWcW", -157, -242, -230)]()) throw await this[C2(459, "Pb6Y")](true), new Error(x2(1516, 0, 0, 0, "iWaH"));
624
+ return await G[v2(339, w2)](t2, e2), R2;
643
625
  }
644
- async [et("HdIM", 0, 0, -106)](t2 = false) {
645
- const e2 = "tR31", n2 = "ys*q", r2 = 1245, s2 = 1153, i2 = "Km(t", a2 = "IoxP", l2 = 1299, c2 = 1230, h2 = "pSaa", d2 = "U!EI", u2 = 1287, g2 = 1222, m2 = 1128, f2 = 1057, p2 = 1106, _2 = "sY8p", S2 = "Rzxh", w2 = "6$eS", y2 = 1332, E2 = 1362, C2 = "7I*G", b2 = 1300, v2 = "XAIy", x2 = 1343, I2 = "yxK[", R2 = 1121, A2 = 1156, M2 = "Rzxh", T2 = 687, N2 = 1254, F2 = 1266, k2 = 527, O2 = 532, D2 = "2qvw", B2 = "4V^x", L2 = 399, z2 = 1162, P2 = 1145, W2 = 1152, V2 = 1223, j2 = 1175, $2 = "pSaa", q2 = "m)E!", rt2 = 1237, at2 = "PWGz", ct2 = 364, dt2 = 966, ut2 = 259, gt2 = 393, mt2 = 113;
646
- function ft2(t3, e3, n3, r3, o2) {
647
- return nt(0, e3, 0, t3 - -264);
626
+ async [ht(1347, "iY#P", 1425, 1423)](t2 = false) {
627
+ const e2 = "3(v3", n2 = 1288, r2 = "!13e", s2 = "cAfw", i2 = 966, a2 = 889, l2 = "6)C5", c2 = "T3G9", h2 = 1258, d2 = 1193, u2 = 1468, g2 = "iWaH", m2 = 1266, f2 = 1403, p2 = 1503, _2 = "#xTl", S2 = 1314, w2 = "vv!F", y2 = "xPwu", E2 = "*T4)", C2 = "YKLm", b2 = 819, v2 = 1205, x2 = "wtM8", I2 = 1414, R2 = 697, A2 = "O61E", M2 = 1153, T2 = "S5o)", N2 = 897, F2 = 803, k2 = 887, O2 = "n3E0", D2 = 1120, L2 = 1131, B2 = "O61E", z2 = 1257, P2 = "Pb6Y", H2 = 851, V2 = 829, $2 = 1432, j2 = 187, Q2 = 156, ot2 = 130, it2 = 108, at2 = 958, ct2 = 788, dt2 = 1482, ut2 = "RvW7", gt2 = 219, mt2 = "7ALB", ft2 = 311, pt2 = 1534, _t2 = "LHzy", St2 = 1148, wt2 = 1024, yt2 = "#$Dm", Et2 = 784, Ct2 = 860, bt2 = "T)]$", vt2 = 1563, xt2 = 1422, It2 = 835, Rt2 = 799, At2 = 92, Mt2 = 180, Tt2 = 383, Nt2 = "JAV$", Ft2 = 224, kt2 = 24, Ot2 = 334, Dt2 = 649, Lt2 = 29;
628
+ if (t2 && (et[jt2(991, 996, "5QKR", 899)] && !et[jt2(832, 840, e2, 928)] && this[Bt2(1117, n2, 1189, r2)](), et[Wt2(s2, i2, 865, a2)] = true), et[Ut2(-254, -230, -200, l2)]) return et[Pt2(1561, 1534, c2)];
629
+ function Bt2(t3, e3, n3, r3, o2) {
630
+ return lt(n3 - 217, e3 - Lt2, n3 - 264, r3 - 434, r3);
631
+ }
632
+ if (!this[Bt2(h2, 1098, d2, "Pb6Y")][Pt2(u2, 1406, g2)] && (this[Bt2(m2, 1208, 1222, "jGo%")][Pt2(f2, p2, "RmLn")] = new Error("FV")), et[Ut2(-208, -182, -158, _2)]) return et[Bt2(0, S2, 1247, w2)];
633
+ let zt2 = null;
634
+ function Pt2(t3, e3, n3, r3, o2) {
635
+ return Y(0, t3 - Dt2, 0, n3);
648
636
  }
649
- if (t2 && (st[Ct2("IoxP", 1295, 1260)] && !st[ft2(-428, e2, -400)] && this[ft2(-353, "0y89", -422)](), st[Ct2(n2, r2, s2)] = true), st[ft2(-465, i2)]) return st[vt2(1271, 1286, a2, l2, c2)];
650
- if (!this[bt2(-570, -552, -560, -574, h2)][bt2(-693, -567, -702, -620, "$bsj")] && (this[pt2(-612, -514, -501, -537, "0*WN")][Ct2(d2, 1331, 1240)] = new Error("FV")), st[vt2(u2, g2, "6$eS", m2, 1201)]) return st[vt2(f2, 1168, "Spcl", p2, 1148)];
651
- function pt2(t3, e3, n3, r3, o2) {
652
- return X(0, 0, e3 - -315, 0, o2);
637
+ function Wt2(t3, e3, n3, r3, o2) {
638
+ return lt(r3 - -56, e3 - Ft2, n3 - kt2, r3 - Ot2, t3);
653
639
  }
654
- let _t2 = null;
655
- st[pt2(0, -414, 0, 0, _2)] = new Promise((t3) => {
656
- _t2 = t3;
640
+ et[Ut2(-21, -205, -116, y2)] = new Promise((t3) => {
641
+ zt2 = t3;
657
642
  });
658
- let St2, wt2 = null;
659
- const yt2 = async (t3, e3) => {
643
+ let Ht2, Vt2 = null;
644
+ const $t2 = async (t3, e3) => {
645
+ const n3 = 72;
660
646
  try {
661
- const i3 = ((t4) => {
647
+ const a3 = ((t4) => {
662
648
  let e4 = t4;
663
649
  const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
664
650
  if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = J(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
@@ -670,193 +656,205 @@ class ct {
670
656
  } catch (t5) {
671
657
  throw new Error("Invalid license key.");
672
658
  }
673
- })(e3), a3 = await (async (t4) => {
674
- const e4 = 148, n4 = 8, r4 = 57, s4 = "HdIM", i4 = "4V^x", a4 = 314, l4 = "Lg0^", c3 = 26, h3 = 471, d3 = "BSR3", u3 = 432, g3 = "CbYt", m3 = "PWGz", f3 = "5%yF", p3 = 485, _3 = "tR31", S3 = "Rzxh", w3 = 144, y3 = "0y89", E3 = 298, C3 = 395, b3 = 43, v3 = t4[I3(126, 102, "%A9[", 37, 68)];
675
- function x3(t5, e5, n5, r5, o2) {
676
- return K(n5 - 2, e5);
659
+ })(e3), l3 = await (async (t4) => {
660
+ const e4 = "!13e", n4 = 567, r4 = 575, s4 = 996, i4 = 1048, a4 = 1081, l4 = 997, c4 = 1061, h3 = 1087, d3 = 1153, u3 = "jGo%", g3 = 627, m3 = ")FEi", f3 = "T3G9", p3 = 621, _3 = 590, S3 = "k4*b", w3 = 346, y3 = "Z0jx", E3 = 1196, C3 = "z!q$", b3 = 417, v3 = 1186, x3 = 1207, I3 = 658, R3 = 705, A3 = 613, M3 = 649, T3 = 99, N3 = t4[k3("jGo%", 467, 556)], F3 = t4[k3(e4, n4, r4)] ? new Date(t4[B3(s4, i4, 1055, a4, "YKLm")]) : null;
661
+ function k3(t5, e5, n5, r5, o2) {
662
+ return nt(n5 - T3, t5);
677
663
  }
678
- function I3(t5, e5, n5, r5, o2) {
679
- return K(o2 - -326, n5);
664
+ function O3(t5, e5, n5, r5, o2) {
665
+ return nt(t5 - M3, r5);
680
666
  }
681
- const R3 = t4[I3(0, 0, "FxzG", 0, e4)] ? new Date(t4[A3(n4, 36, r4, s4, -19)]) : null;
682
- function A3(t5, e5, n5, r5, o2) {
683
- return K(o2 - -505, r5);
667
+ t4[B3(l4, c4, h3, d3, u3)];
668
+ const D3 = [];
669
+ function L3(t5, e5, n5, r5, o2) {
670
+ return nt(r5 - -839, o2);
684
671
  }
685
- t4[A3(-211, -150, -164, "GxFu", -147)];
686
- const M3 = [];
687
- function T3(t5, e5, n5, r5, o2) {
688
- return K(r5 - b3, t5);
672
+ function B3(t5, e5, n5, r5, o2) {
673
+ return nt(n5 - A3, o2);
689
674
  }
690
- function N3(t5, e5, n5, r5, o2) {
691
- return K(r5 - -300, e5);
675
+ function z3(t5, e5, n5, r5, o2) {
676
+ return nt(e5 - -196, t5);
692
677
  }
693
- if (R3 ? isNaN(R3) ? M3[I3(0, 0, "@2a5", 0, c3)](x3(0, "IoxP", h3)) : R3 < /* @__PURE__ */ new Date() && M3[T3("Km(t", 0, 0, 524)](I3(0, 0, d3, 0, 14) + R3[x3(0, "yxK[", u3)]()) : M3[x3(0, i4, a4)](A3(0, 0, 0, l4, -58)), o[I3(0, 0, g3, 0, 103)]()) ;
678
+ if (F3 ? isNaN(F3) ? D3[O3(1263, 0, 0, m3)](k3(f3, 0, p3)) : F3 < /* @__PURE__ */ new Date() && D3[O3(1177, 0, 0, "YKLm")](k3("9tJz", 0, _3) + F3[z3(S3, w3)]()) : D3[k3("YKLm", 0, g3)](L3(-397, -304, -312, -298, "YKLm")), o[k3(y3, 0, 653)]()) ;
694
679
  else {
695
- if (Q()) return M3;
696
- if (v3 && 0 !== v3[N3(0, m3, 0, 159)]) {
680
+ if (q()) return D3;
681
+ if (N3 && 0 !== N3[O3(E3, 0, 0, ")VDr")]) {
697
682
  let t5 = false;
698
- const e5 = Y();
699
- for (let n5 = 0; !t5 && n5 < v3[N3(0, S3, 0, w3)]; n5++) t5 = e5[x3(0, y3, E3)](v3[n5]);
700
- !t5 && M3[T3("@2a5", 0, 0, C3)](N3(0, "Lg0^", 0, 102));
701
- } else M3[T3(f3, 0, 0, p3)](A3(0, 0, 0, _3, -113));
683
+ const e5 = K();
684
+ for (let n5 = 0; !t5 && n5 < N3[L3(0, 0, 0, -349, "6)C5")]; n5++) t5 = e5[O3(x3, 0, 0, "iWcW")](N3[n5]);
685
+ !t5 && D3[k3("WUFW", 0, I3)](k3("E(5h", 0, R3));
686
+ } else D3[z3(C3, b3)](O3(v3, 0, 0, "xPwu"));
702
687
  }
703
- return M3;
704
- })(i3), l3 = Z(i3, a3, t3);
705
- return l3[n3 = 963, r3 = dt2, s3 = "0y89", bt2(n3 - ut2, r3 - gt2, s3 - mt2, n3 - 1492, s3)]() && (St2 = l3), l3;
688
+ return D3;
689
+ })(a3), c3 = X(a3, l3, t3);
690
+ return c3[r3 = -368, s3 = -Tt2, i3 = Nt2, Ut2(r3 - 22, s3 - n3, s3 - -209, i3)]() && (Ht2 = c3), c3;
706
691
  } catch (e4) {
707
- St2 = ((t4) => {
708
- const e5 = "j9PS", n4 = 542, r4 = 102;
709
- function o2(t5, e6, n5, o3, s5) {
710
- return K(o3 - r4, e6);
692
+ Ht2 = ((t4) => {
693
+ function e5(t5, e6, n5, r5, o3) {
694
+ return nt(e6 - -565, n5);
711
695
  }
712
- return { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => o2(0, "U!EI", 0, 495), getExceptions: () => {
713
- return [(r5 = e5, s5 = n4, o2(0, r5, 0, s5 - 78) + t4 + "'")];
714
- var r5, s5;
715
- }, hasExceptions: () => true, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, getFeatures: () => Object[o2(0, "5%yF", 0, 555)]({}), getKeyFrom: () => t4, getBuildVersion: H[o2(0, "IoxP", 0, 518)], getBuildDate: H[s4 = -17, i3 = "Spcl", K(s4 - -477, i3)] };
716
- var s4, i3;
696
+ function n4(t5, e6, n5, r5, o3) {
697
+ return nt(o3 - 289, e6);
698
+ }
699
+ return { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => n4(0, "LHzy", 0, 0, 907), getExceptions: () => {
700
+ return [(e6 = "*T4)", r5 = -9, n4(0, e6, 0, 0, r5 - -780) + t4 + "'")];
701
+ var e6, r5;
702
+ }, hasExceptions: () => true, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, getFeatures: () => Object[e5(0, -63, "!13e")]({}), getKeyFrom: () => t4, getBuildVersion: W[e5(0, -120, ")FEi")], getBuildDate: W[r4 = 646, o2 = "7sL7", nt(r4 - 178, o2)] };
703
+ var r4, o2;
717
704
  })(t3);
718
705
  }
719
- var n3, r3, s3;
706
+ var r3, s3, i3;
720
707
  };
721
- st[bt2(-731, -758, -685, -680, "0*WN")] && (wt2 = await yt2(st[ft2(-475, "yzvI")], st[bt2(-572, -533, -548, -543, "FxzG")]));
722
- let Et2 = false;
723
- if (it && (Et2 = true, wt2 = tt(vt2(1202, 1344, "j9PS", 1309, 1283))), !wt2) {
724
- if (o[ft2(-388, S2)]()) {
725
- if (!wt2) {
726
- const t3 = process[ft2(-401, w2)], e3 = t3[Ct2("fG#l", y2, 1317)] || t3[vt2(1181, 1120, C2, b2, 1214)] || t3[vt2(1360, E2, v2, 1422, x2)] || t3[Ct2(I2, R2, 1189)];
727
- e3 && (wt2 = await yt2(vt2(1279, 1115, "m)E!", A2, 1199), e3));
708
+ function jt2(t3, e3, n3, r3, o2) {
709
+ return ht(t3 - At2, n3, n3 - Mt2, r3 - -489);
710
+ }
711
+ et[Ut2(-275, -220, -232, E2)] && (Vt2 = await $t2(et[Ut2(-82, -141, -58, C2)], et[Wt2("iY#P", b2, 881, 878)]));
712
+ let Gt2 = false;
713
+ if (rt && (Gt2 = true, Vt2 = Z(Bt2(0, 1123, v2, x2))), !Vt2) {
714
+ if (o[Pt2(I2, 0, "6)C5")]()) {
715
+ if (!Vt2) {
716
+ const t3 = process[jt2(R2, 0, A2, 788)], e3 = t3[Ut2(-216, -188, -183, "m5]q")] || t3[Bt2(0, M2, 1210, T2)] || t3[Wt2(y2, N2, F2, k2)] || t3[jt2(807, 0, O2, 858)];
717
+ e3 && (Vt2 = await $t2(Pt2(1554, 0, "D*Aq"), e3));
728
718
  }
729
- if (!wt2) {
730
- const t3 = await G[ft2(-500, "IoxP")]();
731
- t3 && (wt2 = await yt2(bt2(-484, -565, -498, -492, M2), t3));
719
+ if (!Vt2) {
720
+ const t3 = await G[Bt2(0, D2, L2, B2)]();
721
+ t3 && (Vt2 = await $t2(Ut2(-74, -101, -164, l2), t3));
732
722
  }
733
- !wt2 && (Et2 = true);
723
+ !Vt2 && (Gt2 = true);
734
724
  } else {
735
- if (!wt2) {
725
+ if (!Vt2) {
736
726
  let t3 = false;
737
727
  try {
738
- const e3 = await fetch("./" + lt);
728
+ const e3 = await fetch("./" + st);
739
729
  let n3 = null;
740
- if (200 === e3[bt2(-T2, -636, -732, -676, a2)]) {
741
- const r3 = (await e3[vt2(1285, N2, "IoxP", 1261, F2)]())[bt2(-k2, -606, -464, -O2, D2)]("\n"), o2 = r3[pt2(0, -366, 0, 0, B2)];
730
+ if (200 === e3[Bt2(0, z2, 1199, P2)]) {
731
+ const r3 = (await e3[Wt2("#xTl", H2, 962, 865)]())[jt2(755, 0, P2, V2)]("\n"), o2 = r3[Pt2($2, 0, "JAV$")];
742
732
  for (let e4 = 0; !n3 && e4 < o2; e4++) {
743
- const o3 = r3[e4][ft2(-455, "0*WN")]();
744
- 0 !== o3[ft2(-479, "s!b9")] && (o3[pt2(0, -L2, 0, 0, "pSaa")](Ct2("XAIy", z2, 1144, P2, 1203)) ? t3 = true : n3 = o3);
733
+ const o3 = r3[e4][Ut2(-j2, -Q2, -ot2, "m5]q", -it2)]();
734
+ 0 !== o3[jt2(at2, 0, "jGo%", 907)] && (o3[Wt2("!13e", 886, 799, ct2)](Pt2(dt2, 0, ut2)) ? t3 = true : n3 = o3);
745
735
  }
746
736
  }
747
737
  if (t3 && n3) {
748
- const t4 = vt2(W2, V2, "(AOC", 1094, j2) + lt + "')";
749
- wt2 = await yt2(t4, n3);
738
+ const t4 = Ut2(-gt2, -275, -223, mt2, -ft2) + st + "')";
739
+ Vt2 = await $t2(t4, n3);
750
740
  }
751
741
  } catch (t4) {
752
742
  }
753
743
  }
754
- !wt2 && Q() && (Et2 = true);
744
+ !Vt2 && q() && (Gt2 = true);
755
745
  }
756
746
  }
757
- function Ct2(t3, e3, n3, r3, o2) {
758
- return et(t3, 0, 0, n3 - 1399);
759
- }
760
- function bt2(t3, e3, n3, r3, o2) {
761
- return et(o2, 0, 0, r3 - -424);
747
+ function Ut2(t3, e3, n3, r3, o2) {
748
+ return Y(0, n3 - -982, 0, r3);
762
749
  }
763
- function vt2(t3, e3, n3, r3, o2) {
764
- return ht(t3 - 194, e3 - ct2, o2 - 1655, n3);
765
- }
766
- return !wt2 && Et2 && (wt2 = tt(ft2(-310, $2))), !wt2 && St2 && (wt2 = St2), !wt2 && (wt2 = { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => null, isEval: () => false, getExceptions: () => [pt2(0, -494, 0, 0, "oZNK")], hasExceptions: () => true, isValidFor: (t3) => false, isValid: () => false, getFeatures: () => Object[ft2(-477, "Y5M&")]({}), getKeyFrom: () => ft2(-461, "7I*G"), getBuildVersion: H[pt2(0, -372, 0, 0, "s!b9")], getBuildDate: H[bt2(-612, -501, -581, -582, "SqIZ")] }), st[Ct2(q2, 1163, rt2)] = wt2, st[pt2(0, -384, 0, 0, "6$eS")] = t2 && ot(), _t2(wt2), st[bt2(0, 0, 0, -534, "HdIM")] && this[bt2(0, 0, 0, -584, at2)](), st[pt2(0, -424, 0, 0, "2qvw")];
750
+ return !Vt2 && Gt2 && (Vt2 = Z(Pt2(pt2, 0, _t2))), !Vt2 && Ht2 && (Vt2 = Ht2), !Vt2 && (Vt2 = { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => null, isEval: () => false, getExceptions: () => [Bt2(0, 1314, 1232, "#xTl")], hasExceptions: () => true, isValidFor: (t3) => false, isValid: () => false, getFeatures: () => Object[Pt2(1475, 0, "4yfj")]({}), getKeyFrom: () => Pt2(1523, 0, "Z0jx"), getBuildVersion: W[Bt2(0, St2, 1164, "LHzy")], getBuildDate: W[jt2(wt2, 0, yt2, 926)] }), et[jt2(Et2, 0, "YKLm", Ct2)] = Vt2, et[Ut2(-226, -134, -148, bt2)] = t2 && tt(), zt2(Vt2), et[Pt2(vt2, 0, "!13e")] && this[Pt2(xt2, 0, ")FEi")](), et[Wt2("ApAw", 865, It2, Rt2)];
767
751
  }
768
- async [ht(-347, -320, -382, "WCTk")](t2) {
769
- const e2 = 790, n2 = "yupe", r2 = 749, o2 = 689, s2 = "7I*G", i2 = 234, a2 = "0y89", l2 = 270, c2 = 1446, h2 = "pSaa", d2 = 335, u2 = 394, g2 = 354;
770
- function m2(t3, e3, n3, r3, o3) {
771
- return ht(t3 - 347, e3 - u2, t3 - 1237, n3);
752
+ async [lt(845, 790, 774, 910, "JAV$")](t2) {
753
+ const e2 = 957, n2 = "3(v3", r2 = 1599, o2 = "iY#P", s2 = "iY#P", i2 = 863, a2 = "5QKR", l2 = 994, c2 = "Z0jx", h2 = 983, d2 = "#$Dm", u2 = 900, g2 = "n3E0", m2 = 125, f2 = 416, p2 = 28, _2 = 344, S2 = 185;
754
+ function w2(t3, e3, n3, r3, o3) {
755
+ return ht(t3 - _2, r3, n3 - 126, n3 - S2);
772
756
  }
773
- st[p2(182, "u6Ew", 105, 281)] = true;
774
- const f2 = await this[m2(e2, 713, n2)]();
775
- function p2(t3, e3, n3, r3, o3) {
776
- return X(0, 0, t3 - d2, 0, e3);
757
+ function y2(t3, e3, n3, r3, o3) {
758
+ return ht(t3 - 45, r3, n3 - 166, n3 - -400);
777
759
  }
778
- var _2, S2, w2, y2;
779
- function E2(t3, e3, n3, r3, o3) {
780
- return X(0, 0, r3 - -421, 0, n3);
760
+ et[w2(1688, 1607, 1611, "k4*b")] = true;
761
+ const E2 = await this[y2(1002, 0, e2, n2)]();
762
+ var C2, b2;
763
+ function v2(t3, e3, n3, r3, o3) {
764
+ return lt(t3 - -1332, e3 - m2, n3 - f2, r3 - p2, n3);
781
765
  }
782
- return await G[m2(735, 704, "QQ]b")](t2), !t2 && !st[m2(r2, o2, s2)] && (f2[E2(-512, -503, "HdIM", -484)]() || f2[p2(i2, a2)]()) && await this[w2 = "Y5M&", y2 = l2, nt(0, w2, 0, y2 - g2)](t2, f2[_2 = c2, S2 = "m)E!", q(0, 0, 0, S2, _2 - 1021)]()), Promise[E2(0, 0, h2, -642)]();
766
+ return await G[w2(1698, 0, r2, o2)](t2), !t2 && !et[C2 = s2, b2 = i2, Y(0, b2 - 2, 0, C2)] && (E2[v2(-465, -410, a2, -477)]() || E2[y2(l2, 0, 911, c2)]()) && await this[y2(1001, 0, h2, d2)](t2, E2[y2(959, 0, u2, g2)]()), Promise[v2(-349, -287, "3(v3", -443)]();
783
767
  }
784
- async [ht(-434, -471, -431, "Lg0^")](t2 = false, e2 = false, n2 = false) {
785
- const r2 = "$bsj", o2 = 1347, s2 = 1149, i2 = "fG#l", a2 = 252, l2 = 1222;
786
- function c2(t3, e3, n3, r3, o3) {
787
- return X(0, 0, r3 - -336, 0, n3);
788
- }
789
- st[d2("4V^x", 1050, 1034, 1078)] = true;
790
- const h2 = await this[c2(0, 0, r2, -441)]();
791
- function d2(t3, e3, n3, r3, o3) {
792
- return nt(0, t3, 0, r3 - l2);
768
+ async [Q(0, 0, 829, 0, "D*Aq")](t2 = false, e2 = false, n2 = false) {
769
+ const r2 = 1170, o2 = 474, s2 = 815, i2 = "m5]q", a2 = "9tJz", l2 = 522, c2 = 539, h2 = "jGo%", d2 = 1162, u2 = 386, g2 = 6;
770
+ function m2(t3, e3, n3, r3, o3) {
771
+ return Y(0, e3 - u2, 0, o3);
793
772
  }
794
- var u2, g2, m2, f2, p2;
795
- st[m2 = 1342, f2 = "7I*G", p2 = o2, ht(m2 - a2, f2 - 175, p2 - 1660, f2)] || !h2[u2 = -492, g2 = "yzvI", nt(0, g2, 0, u2 - -385)]() && !h2[c2(0, 0, "ici#", -511)]() ? await G[c2(0, 0, i2, -426)](h2, t2, e2, n2) : await this[d2("ys*q", 0, 0, s2)](t2);
773
+ et[m2(1401, 1307, 1368, 1333, "XG&1")] = true;
774
+ const f2 = await this[m2(0, r2, 0, 0, "iWaH")]();
775
+ var p2, _2, S2, w2, y2, E2, C2, b2, v2;
776
+ et[b2 = "*&i1", v2 = o2, Y(0, v2 - -303, 0, b2)] || !f2[y2 = s2, E2 = i2, C2 = 770, ht(y2 - 225, E2, E2 - g2, C2 - -672)]() && !f2[p2 = a2, _2 = l2, S2 = c2, w2 = 594, lt(S2 - -325, _2 - 166, S2 - 152, w2 - 133, p2)]() ? await G[m2(0, d2, 0, 0, "wtM8")](f2, t2, e2, n2) : await this[m2(0, 1127, 0, 0, h2)](t2);
796
777
  }
797
- async [q(0, 0, 0, "FxzG", 434)]() {
798
- const t2 = 281, e2 = "a0Fx", n2 = "U!EI";
799
- if (ot()) {
800
- if (at) return void setTimeout(() => {
778
+ async [ht(1289, "E(5h", 1425, 1331)]() {
779
+ const t2 = "3(v3";
780
+ if (tt()) {
781
+ if (ot) return void setTimeout(() => {
801
782
  var t3, e3;
802
- this[t3 = -226, e3 = n2, K(t3 - -545, e3)](false, false);
783
+ this[t3 = "Pb6Y", e3 = 1247, nt(e3 - 772, t3)](false, false);
803
784
  }, 8e3);
804
- await this[r2 = t2, o2 = e2, nt(0, o2, 0, r2 - 527)](false, false);
785
+ await this[e2 = -232, n2 = t2, Q(0, 0, e2 - -991, 0, n2)](false, false);
805
786
  }
806
- var r2, o2;
787
+ var e2, n2;
807
788
  }
808
- async [nt(0, "@2a5", 0, -229)](t2, e2) {
809
- const n2 = "BSR3", r2 = 30, s2 = "HdIM", i2 = 33, a2 = "FxzG", l2 = "j80T", c2 = "a0Fx", h2 = "%A9[", d2 = 189, u2 = 443, g2 = 1181;
810
- if (!t2 && (st[_2(-383, -288, "6$eS", -340, -319)] || st[_2(-376, -395, n2, -385, -301)])) return;
811
- st[w2(r2, -13, 67, 94, s2)] = true, st[w2(i2, -49, 83, 119, "GxFu")] = true, await this[_2(-183, -212, a2, -340, -249)](t2);
812
- const m2 = o[f2 = l2, p2 = 959, nt(0, f2, 0, p2 - g2)]();
813
- var f2, p2;
814
- function _2(t3, e3, n3, r3, o2) {
815
- return X(0, 0, o2 - -88, 0, n3);
789
+ async [ht(1420, "*T4)", 1435, 1406)](t2, e2) {
790
+ const n2 = 221, r2 = 271, s2 = "n3E0", i2 = 1470, a2 = 1495, l2 = 1536, c2 = "O61E", h2 = "E(5h", d2 = 463, u2 = 452, g2 = 506, m2 = 402, f2 = 258, p2 = 302, _2 = 364, S2 = 699, w2 = 424;
791
+ function y2(t3, e3, n3, r3, o2) {
792
+ return ct(r3, e3 - 404, n3 - w2, r3 - 493, t3 - -915);
793
+ }
794
+ if (!t2 && (et[y2(369, 458, 413, "QIbJ")] || et[y2(n2, r2, 282, s2)])) return;
795
+ var E2, C2;
796
+ function b2(t3, e3, n3, r3, o2) {
797
+ return Q(0, 0, n3 - -305, 0, t3);
816
798
  }
817
- const S2 = t2 || m2 ? console[_2(0, 0, c2, 0, -338)] : o[w2(-57, -66, -116, -65, h2)];
818
- function w2(t3, e3, n3, r3, o2) {
819
- return ht(t3 - 67, e3 - d2, t3 - u2, o2);
799
+ et[R2(1442, i2, a2, l2, c2)] = true, et[E2 = -135, C2 = h2, Q(0, 0, E2 - -953, 0, C2)] = true, await this[b2("T3G9", d2, u2, g2)](t2);
800
+ const v2 = o[x2(266, 309, m2, 223, "RvW7")]();
801
+ function x2(t3, e3, n3, r3, o2) {
802
+ return ht(t3 - 396, o2, n3 - 65, e3 - -1014);
820
803
  }
821
- var y2, E2;
822
- m2 && S2(""), await this[y2 = -126, E2 = "oZNK", q(0, 0, 0, E2, y2 - -419)](t2, e2), S2("");
804
+ const I2 = t2 || v2 ? console[x2(260, f2, p2, 0, "iWaH")] : o[b2("n3E0", 0, _2)];
805
+ function R2(t3, e3, n3, r3, o2) {
806
+ return Y(0, t3 - S2, 0, o2);
807
+ }
808
+ v2 && I2(""), await this[R2(1610, 1598, 1553, 1564, "9tJz")](t2, e2), I2("");
823
809
  }
824
- [nt(0, "0y89", 0, -189)]() {
825
- return this[t2 = -377, e2 = "2qvw", X(0, 0, t2 - -306, 0, e2)](true);
810
+ [ct("E(5h", 1212, 1191, 1076, 1112)]() {
811
+ return this[t2 = "Fkjm", e2 = 277, Q(0, 0, e2 - -554, 0, t2)](true);
826
812
  var t2, e2;
827
813
  }
828
- [X(0, 0, -152, 0, "l)08")](t2) {
829
- return this[e2 = 580, n2 = "HdIM", X(0, 0, e2 - 825, 0, n2)](true, t2);
830
- var e2, n2;
831
- }
832
- [q(0, 0, 0, "FxzG", 374)]() {
833
- const t2 = "QQ]b";
834
- return st[r2 = -300, o2 = "a0Fx", nt(0, o2, 0, r2 - -122)] || st[e2 = 367, n2 = t2, q(0, 0, 0, n2, e2 - -73)];
814
+ [ct("7ALB", 1091, 1148, 1240, 1170)](t2) {
815
+ return this[e2 = "Pb6Y", n2 = 937, r2 = 923, o2 = 851, ct(e2, n2 - 94, r2 - 311, o2 - 225, o2 - -293)](true, t2);
835
816
  var e2, n2, r2, o2;
836
817
  }
837
- [nt(0, "0y89", 0, -210)](t2) {
838
- at = true;
818
+ [ht(1324, "JAV$", 1443, 1375)]() {
819
+ const t2 = 337;
820
+ return et[s2 = 1189, i2 = 1254, a2 = "XG&1", l2 = 1167, ht(s2 - 203, a2, i2 - 253, l2 - -155)] || et[e2 = "E(5h", n2 = 257, r2 = 328, o2 = t2, lt(n2 - -765, n2 - 116, r2 - 464, o2 - 19, e2)];
821
+ var e2, n2, r2, o2, s2, i2, a2, l2;
839
822
  }
840
- async [q(0, 0, 0, "Lg0^", 386)]() {
841
- return this[t2 = -10, e2 = 12, n2 = "l)08", ht(t2 - 371, e2 - 9, e2 - 490, n2)](true);
823
+ [ht(1398, "E(5h", 1500, 1409)](t2) {
824
+ ot = true;
825
+ }
826
+ async [ct("WUFW", 1080, 1196, 1193, 1121)]() {
827
+ return this[t2 = 1313, e2 = 1348, n2 = "iWaH", ht(t2 - 62, n2, e2 - 166, e2 - -17)](true);
842
828
  var t2, e2, n2;
843
829
  }
844
- async [ht(-431, -585, -487, "sY8p")](t2, e2) {
845
- const n2 = "GxFu", r2 = 253, o2 = "fG#l";
846
- const s2 = await this[i2 = n2, a2 = -181, et(i2, 0, 0, a2 - -85)]();
847
- var i2, a2, l2, c2;
848
- return await this[l2 = r2, c2 = o2, X(0, 0, l2 - 370, 0, c2)](true, t2, e2), s2;
830
+ async [ct("iWaH", 1398, 1338, 1347, 1303)](t2, e2) {
831
+ const n2 = "iWcW", r2 = await this[o2 = 684, s2 = "QIbJ", Q(0, 0, o2 - -132, 0, s2)]();
832
+ var o2, s2, i2, a2;
833
+ return await this[i2 = -469, a2 = n2, Y(0, i2 - -1241, 0, a2)](true, t2, e2), r2;
849
834
  }
850
- async [q(0, 0, 0, "fG#l", 381)]() {
851
- const t2 = 11;
852
- var e2, n2;
853
- return await G[e2 = "WCTk", n2 = -230, et(e2, 0, 0, n2 - t2)]();
835
+ async [Q(0, 0, 780, 0, "S5o)")]() {
836
+ const t2 = "Pb6Y", e2 = 584;
837
+ var n2, r2;
838
+ return await G[n2 = t2, r2 = e2, Q(0, 0, r2 - -190, 0, n2)]();
854
839
  }
855
840
  }
841
+ const at = new it();
842
+ function lt(t2, e2, n2, r2, o2) {
843
+ return nt(t2 - 395, o2);
844
+ }
845
+ function ct(t2, e2, n2, r2, o2) {
846
+ return nt(o2 - 669, t2);
847
+ }
856
848
  function ht(t2, e2, n2, r2, o2) {
857
- return K(n2 - -795, r2);
849
+ return nt(r2 - 814, e2);
850
+ }
851
+ function dt() {
852
+ const t2 = ["W4VdRmkEzgxdKSkq", "W4aUWRBdRHTVW7BdLeqpt8oBWQpcSa", "WQxcImkFfSkLnvi", "j0lcRSoojxy4iKKkWRlcIa", "WRKoW6rzWRtdOIPtnSk6W5O", "Cuq9WRWGWQZdKmkuWPeZhmo3", "tSoKymo9jq", "W4PikdVcISkGACkhWQ1WWRdcSmor", "W5ddLtRcVCo/WPO", "ASoymu3dR8ocuCoHwW", "oSkuW40Zd8kmxSkLW73dV8oCWPdcMt8", "luJcOSo/W4SkasG+W6ZcVshcTG", "u8kzowiZndFcO8oOvG", "WPykW6XBWQNdHcPjpq", "bCoQWP3cKKxcQazVvq", "vSo0W4ZcNvL7", "D8krzCkxC3iiW47dKSkrWQxdRxG", "W5awiYy", "W7GTWRldRa", "W4DCgrmPW6pdOJJdGgBdHSopW4a", "WOFdG8kDWRjkW6tcVh7dQuPgsmki", "mmoUFc3cM8ob", "W6CVW6ddGX5LW7C", "W4KqftJdVeu", "W53dSSk2WPhcISktq8kNWRnzh8ouuqRdGKK7W58H", "WQZcJ8kisKfiW64h", "W4fAedtcG8k7xq", "W6BdLG3cOSoWWOi4WOFcHuRdJCowWQG", "lL/cUCoEW4SAaq", "W4jyaZKPW6xdKYpdHxS", "z8k+yxb/lCkYWPFdPCkmEG", "f8kFW48ZcSkjsCovW6VdUCoFWOxcLtu", "DGpcI8oUeJ8", "W6yZWRGSgCkNmq", "W47dQ0CElmke", "AZ3cLMbXWQOu", "W7HkWRGgW7JcKXfVp8k0W77cRq", "WR0AWPDIW4JcKSklEtJdKGxdP8kxW5a", "W4hcHCocW6WhWPldOfJdUxzMuW", "sSoJW43cL0rGWOK", "i8ooWRSSDmkwWOG", "ymosm1JdTSoyw8oH", "cSoWEblcLmohWQbvWPDzcmoXWP0", "DSkaFSk6Exu2W4G", "h1hcU8oGoxS1mMG", "zSkeASklyNmpW5xdJ8kx", "lCotWRidDmka", "fmkFW48wbSkrw8oSW7xdOW", "W5xcSSoDWQBcUmkyxSoTW4uRW4HPWQRdTa", "W689WRxdHJddTr/dV8oCWRj6WRbHxmo8", "emkyW5FdIfuLWPO", "w8o4y8o7iW", "W57dR00fkSktWO0RW4pdHCkiBCkH", "zmk4AwX/emkaWPVdTCkb", "cSoBjbtdOXhcGJZcSmkdWRhdMG", "i07cTSkIpgCGi2GdWRu", "WPO4WQiBW7hcN8kEvmkvW4lcSq", "bCofWP/cIutcQcTrzgrOdG", "W49mmHFcMSk7vCkrWOb/WRdcSa", "W4/cT37cQgK1WRydW69YWR8nba", "W4RcS2tcHhKUWOOvW5b5WRKBcCkKwa", "pSoAWOdcGupcSHO", "W53cMmom", "WP4kWOBcKCoHEWi", "WRmcWR8GeCkFka", "C8kPFh9Id8kK", "jmorbLLIW7/dMGXlxW", "W4JcUgy", "W6HoW5C1WPxdI8opgqBdSWxdMmkgW7C", "WR8UW6HbFCoFW6K", "W4FcTSohWRBcSCkXwa", "aCoOdSk0bmkQjCo3cSoCWOnEWPeI", "Ag52W4nRWOVcT8ons0JdKLG", "W5hdHWZcJSoMWPuzWPlcHuldI8ouWQG", "oCoGWOmBmCo/WP3cOCkiWQFcRq", "wCkvlMq1B3xdHSkI", "W6rxuCkKW7Hx", "W5xcMmogW6mAWRJdTG", "nmoAWONcHwpcUa", "zYGwW5VcJbi", "CSk0EhD5gG", "W64oW5DmFmoZ", "bSoIfmkMaSkQm8oWeCobWOvKWPSvsd9JWRfY", "W6iiBCoRzvxdNuHZW5zVFCkj", "zvuOWOWHWRBdQ8kzWQe6", "WOyGWPnXW47cISkxDHu", "aCowe11GW6xdM2DIt3NcKxtdMCoDBmodW6NcMt59W4pdJLVdHSotdq", "WPldUr9EW4n7W7JcPXpdLrxcTG", "W73dR8k6BgFdJ8kWW6tdRJ53WQ3cTa", "W5C8WQ7dLdFdTr3dRW", "dCoScCkqfCkLm8oxdmoCWOjeWOC", "CrxdRCkIydfKAdW", "lSoMWQv9xCoJWOm7dmo+WQ4y", "WPFdVqvYW5nGW4tcSt7dMHxcTSov", "W6SyW7DeBmo+", "W7xdJXZcRSoWWOuzW4lcLfpdLmotWQNcUttdUcKDWOq", "vd0kW5xcLG4", "aSoOdSkApG", "W7CpW7zoCCoLW6G", "oCooobRdUq0", "W5BcKSoFW4ywWQldPexdTgW", "W5n0lmotW5eTWRlcLCkUWQXyW6X0", "WQNcTSk7p8kycx9WWQi", "W6FdSSk4CxddUSkgW7pdUYy", "WQOAWPDiW4tcHW", "t8kcm2KP", "CCk+BxTXbG", "AtxcG110W6C", "sYGiW5VcLG", "W5zjfG84W6ldPspdNwa", "WR8uiSoHWQGcqSoDAZiUFXC", "W4fAcdRcI8k3", "WRSEWO1TW4tcJmkOwYpdLr/dTSkw", "eSkoW6ddOumV", "W40UWQddQdddVqFdSSoLWRKOWRnTqCo7dCo8pgxcH8o8W68RWQqJ", "tdJcI8oDjWVdTCo2kt5zjHFcV8kgW7SDuCoI", "W5tcMCopW7eKWR/dSuq", "pw/dKWqVW75dW49FW7jun8o+", "W74XWRldRthcVa", "b8kiW5iZdW", "WR8zWPpcNmo9DGusWPpdI0xcLaxdHeDwW5JdOG", "lmkEW5qceCkmvmoX", "uY7cG1HXWQmqW71G", "W4RcS2tcJwK+", "pCokjtJdTqBcPs3cQSkeWRVdHKq", "C3O1W4fCW4a", "f0pcOmosW44aagyOW7hcHI3cVstcHSoIW6a1", "WRtcN8kBsG", "W6iKW7JdHqzK", "o8ooWRyMB8kAWObzW6NcPmkLWQBdKq", "W6FdUmoUWOK", "AxLNW6rKWOC", "omoEWRec", "nSoQWOqPoSo/WOtcSq", "W6qsW7DfCCoXW55jeSkDW7W", "W4FcLSohW7CwWPddSW", "WPddQGPW", "fSoLh8kWgCk+oSo4fmoCWO5pWPO1qHv6WRDU", "C1COWPi", "lmooWRylB8kvWPy", "W6pdR8o5WPdcISkdqW", "C8o7lmoWpLb1mfGPumklW57cSmoBodOzt28", "ymofn0NdUCop", "WQuvW65sWQ7dKY52pCkM", "j8oAd1LVW7G", "bSoeW6ipFSkjWOXfW7VcTCkhWQZdHG", "yCkFr8kwDwe0W5NdV8kEWQxdRu99W6uKWPnb", "W49mmHhcISkMwmkCWQHT", "WRSoWQGKfSkapHlcRSk2", "wmoDW6ldP0qVWPNdV15pWPaZqW", "WRdcLmkcqvT1W64hxuVdPq", "yd3cJfnSWQ8", "tSo8ACoXjuv4", "WOPblmo7W4GAWR0", "ANSsW4bmW6SODSogWR0A", "W67cH8ozW6SDWQldH03dTNfVuG", "W6KKW6ldOaDLW7/dNMephCoJWQ/cPSkC", "y2rHW6bQWOVcTmoh", "W5jMeCo5W40R", "CCkvF8kyF2WRW6ZdICkwWR/dVhLT", "sCo0W5BcSuHQ", "zHJdOmkcW7SMpIKmW4G", "W4FdSCkSDL7dKSkaW6K", "WPO/WRGD", "WReEWPbgW5NcNCkDwt7dKGtdVCkb", "iSokjs3dVWZcRINcU8kj", "aSkKWPddJhHsWRZcTgxcMa", "W5tcJ8oBW6SbWQ8", "AWlcP8o1", "W7JdK8oDhNz0W5enEg8", "av3cPmoAW4WDjICJW6FcKZy", "vu4KWPmGWQVdLCkeWQW", "W7DzndZcGCkM", "sve7WPC7WRhdUmkvWQeZaCo+WQe", "W4FdTSoVySojxKrwWQddUmosbq", "xmoJW4FcN1D2", "AmkgW5NdLH3dPv9yAwzacmkC", "WQ0zW7LwWQNdJdHTkSk2W4BcSCk0W7q", "W6LbymkZW7bxaq", "jCo/pcG8wSoHWPRdOSkfuZ0s", "W53cKSofW6uhWR4", "smkOz055cSk5WOy", "tCoMy8o5oe5X", "l8ooWRy+B8kuWOa", "W7JcMCoDW6mFWR/dOqZdThzPrCk3kCoqWO7dJSoVW4DP", "zWCuW4dcJriZjsK", "nSoqWOpcH17cTa", "xZ0kW5FcKaCOhZGcaCk+vau", "n1HZW6n7WQVcVW", "WR9iWQSvtCoxW51xeCk1", "W7v6F8o9W4W3", "sYWfW4BcLXu", "W5PmntRcG8kKxa", "WPhcPCkUhCkEcxTnWQm", "AZ3cLNzTWQ4DW61tW5TEnmoKWPBdTq", "nmkhzb/cSSktdSo+rCkWoSo/WPW", "f8oif1vIW7G", "g8oIWQ1/cCoRWO8Scmo5WReoeILCnq", "jmohoSojitLQW7RdOCkZWQNdUg8", "amkpW4SIeCkasCo2W4NdOSoyWP/cHa"];
853
+ return (dt = function() {
854
+ return t2;
855
+ })();
858
856
  }
859
- const dt = new ct(), ut = (t2, e2) => {
857
+ const ut = (t2, e2) => {
860
858
  const n2 = [];
861
859
  for (let r2 = 0; r2 < t2.length; r2++) {
862
860
  const o2 = t2[r2];
@@ -1757,15 +1755,15 @@ var Dt;
1757
1755
  }
1758
1756
  t2.OutOfOrderError = e2;
1759
1757
  })(Dt || (Dt = {}));
1760
- const Bt = { lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" }, xSeconds: { one: "1 second", other: "{{count}} seconds" }, halfAMinute: "half a minute", lessThanXMinutes: { one: "less than a minute", other: "less than {{count}} minutes" }, xMinutes: { one: "1 minute", other: "{{count}} minutes" }, aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" }, xHours: { one: "1 hour", other: "{{count}} hours" }, xDays: { one: "1 day", other: "{{count}} days" }, aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" }, xWeeks: { one: "1 week", other: "{{count}} weeks" }, aboutXMonths: { one: "about 1 month", other: "about {{count}} months" }, xMonths: { one: "1 month", other: "{{count}} months" }, aboutXYears: { one: "about 1 year", other: "about {{count}} years" }, xYears: { one: "1 year", other: "{{count}} years" }, overXYears: { one: "over 1 year", other: "over {{count}} years" }, almostXYears: { one: "almost 1 year", other: "almost {{count}} years" } };
1761
- function Lt(t2) {
1758
+ const Lt = { lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" }, xSeconds: { one: "1 second", other: "{{count}} seconds" }, halfAMinute: "half a minute", lessThanXMinutes: { one: "less than a minute", other: "less than {{count}} minutes" }, xMinutes: { one: "1 minute", other: "{{count}} minutes" }, aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" }, xHours: { one: "1 hour", other: "{{count}} hours" }, xDays: { one: "1 day", other: "{{count}} days" }, aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" }, xWeeks: { one: "1 week", other: "{{count}} weeks" }, aboutXMonths: { one: "about 1 month", other: "about {{count}} months" }, xMonths: { one: "1 month", other: "{{count}} months" }, aboutXYears: { one: "about 1 year", other: "about {{count}} years" }, xYears: { one: "1 year", other: "{{count}} years" }, overXYears: { one: "over 1 year", other: "over {{count}} years" }, almostXYears: { one: "almost 1 year", other: "almost {{count}} years" } };
1759
+ function Bt(t2) {
1762
1760
  return (e2 = {}) => {
1763
1761
  const n2 = e2.width ? String(e2.width) : t2.defaultWidth;
1764
1762
  return t2.formats[n2] || t2.formats[t2.defaultWidth];
1765
1763
  };
1766
1764
  }
1767
- const zt = { date: Lt({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Lt({ formats: { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" }, defaultWidth: "full" }), dateTime: Lt({ formats: { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, defaultWidth: "full" }) }, Pt = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" };
1768
- function Ht(t2) {
1765
+ const zt = { date: Bt({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Bt({ formats: { full: "h:mm:ss a zzzz", long: "h:mm:ss a z", medium: "h:mm:ss a", short: "h:mm a" }, defaultWidth: "full" }), dateTime: Bt({ formats: { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, defaultWidth: "full" }) }, Pt = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" };
1766
+ function Wt(t2) {
1769
1767
  return (e2, n2) => {
1770
1768
  let r2;
1771
1769
  if ("formatting" === (n2?.context ? String(n2.context) : "standalone") && t2.formattingValues) {
@@ -1778,7 +1776,7 @@ function Ht(t2) {
1778
1776
  return r2[t2.argumentCallback ? t2.argumentCallback(e2) : e2];
1779
1777
  };
1780
1778
  }
1781
- function Wt(t2) {
1779
+ function Ht(t2) {
1782
1780
  return (e2, n2 = {}) => {
1783
1781
  const r2 = n2.width, o2 = r2 && t2.matchPatterns[r2] || t2.matchPatterns[t2.defaultMatchWidth], s2 = e2.match(o2);
1784
1782
  if (!s2) return null;
@@ -1795,9 +1793,9 @@ function Wt(t2) {
1795
1793
  };
1796
1794
  }
1797
1795
  var Vt;
1798
- const jt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1796
+ const $t = { code: "en-US", formatDistance: (t2, e2, n2) => {
1799
1797
  let r2;
1800
- const o2 = Bt[t2];
1798
+ const o2 = Lt[t2];
1801
1799
  return r2 = "string" == typeof o2 ? o2 : 1 === e2 ? o2.one : o2.other.replace("{{count}}", e2.toString()), n2?.addSuffix ? n2.comparison && n2.comparison > 0 ? "in " + r2 : r2 + " ago" : r2;
1802
1800
  }, formatLong: zt, formatRelative: (t2, e2, n2, r2) => Pt[t2], localize: { ordinalNumber: (t2, e2) => {
1803
1801
  const n2 = Number(t2), r2 = n2 % 100;
@@ -1810,14 +1808,14 @@ const jt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1810
1808
  return n2 + "rd";
1811
1809
  }
1812
1810
  return n2 + "th";
1813
- }, era: Ht({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Ht({ values: { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, defaultWidth: "wide", argumentCallback: (t2) => t2 - 1 }), month: Ht({ values: { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, defaultWidth: "wide" }), day: Ht({ values: { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, defaultWidth: "wide" }), dayPeriod: Ht({ values: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, defaultWidth: "wide", formattingValues: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, defaultFormattingWidth: "wide" }) }, match: { ordinalNumber: (Vt = { matchPattern: /^(\d+)(th|st|nd|rd)?/i, parsePattern: /\d+/i, valueCallback: (t2) => parseInt(t2, 10) }, (t2, e2 = {}) => {
1811
+ }, era: Wt({ values: { narrow: ["B", "A"], abbreviated: ["BC", "AD"], wide: ["Before Christ", "Anno Domini"] }, defaultWidth: "wide" }), quarter: Wt({ values: { narrow: ["1", "2", "3", "4"], abbreviated: ["Q1", "Q2", "Q3", "Q4"], wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"] }, defaultWidth: "wide", argumentCallback: (t2) => t2 - 1 }), month: Wt({ values: { narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], abbreviated: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], wide: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] }, defaultWidth: "wide" }), day: Wt({ values: { narrow: ["S", "M", "T", "W", "T", "F", "S"], short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wide: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }, defaultWidth: "wide" }), dayPeriod: Wt({ values: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "morning", afternoon: "afternoon", evening: "evening", night: "night" } }, defaultWidth: "wide", formattingValues: { narrow: { am: "a", pm: "p", midnight: "mi", noon: "n", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, abbreviated: { am: "AM", pm: "PM", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" }, wide: { am: "a.m.", pm: "p.m.", midnight: "midnight", noon: "noon", morning: "in the morning", afternoon: "in the afternoon", evening: "in the evening", night: "at night" } }, defaultFormattingWidth: "wide" }) }, match: { ordinalNumber: (Vt = { matchPattern: /^(\d+)(th|st|nd|rd)?/i, parsePattern: /\d+/i, valueCallback: (t2) => parseInt(t2, 10) }, (t2, e2 = {}) => {
1814
1812
  const n2 = t2.match(Vt.matchPattern);
1815
1813
  if (!n2) return null;
1816
1814
  const r2 = n2[0], o2 = t2.match(Vt.parsePattern);
1817
1815
  if (!o2) return null;
1818
1816
  let s2 = Vt.valueCallback ? Vt.valueCallback(o2[0]) : o2[0];
1819
1817
  return s2 = e2.valueCallback ? e2.valueCallback(s2) : s2, { value: s2, rest: t2.slice(r2.length) };
1820
- }), era: Wt({ matchPatterns: { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/^b/i, /^(a|c)/i] }, defaultParseWidth: "any" }), quarter: Wt({ matchPatterns: { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] }, defaultParseWidth: "any", valueCallback: (t2) => t2 + 1 }), month: Wt({ matchPatterns: { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] }, defaultParseWidth: "any" }), day: Wt({ matchPatterns: { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }, defaultParseWidth: "any" }), dayPeriod: Wt({ matchPatterns: { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }, defaultMatchWidth: "any", parsePatterns: { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }, defaultParseWidth: "any" }) }, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }, $t = (t2, e2) => {
1818
+ }), era: Ht({ matchPatterns: { narrow: /^(b|a)/i, abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i, wide: /^(before christ|before common era|anno domini|common era)/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/^b/i, /^(a|c)/i] }, defaultParseWidth: "any" }), quarter: Ht({ matchPatterns: { narrow: /^[1234]/i, abbreviated: /^q[1234]/i, wide: /^[1234](th|st|nd|rd)? quarter/i }, defaultMatchWidth: "wide", parsePatterns: { any: [/1/i, /2/i, /3/i, /4/i] }, defaultParseWidth: "any", valueCallback: (t2) => t2 + 1 }), month: Ht({ matchPatterns: { narrow: /^[jfmasond]/i, abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i, wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i], any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i] }, defaultParseWidth: "any" }), day: Ht({ matchPatterns: { narrow: /^[smtwf]/i, short: /^(su|mo|tu|we|th|fr|sa)/i, abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i, wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i }, defaultMatchWidth: "wide", parsePatterns: { narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i], any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i] }, defaultParseWidth: "any" }), dayPeriod: Ht({ matchPatterns: { narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i, any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i }, defaultMatchWidth: "any", parsePatterns: { any: { am: /^a/i, pm: /^p/i, midnight: /^mi/i, noon: /^no/i, morning: /morning/i, afternoon: /afternoon/i, evening: /evening/i, night: /night/i } }, defaultParseWidth: "any" }) }, options: { weekStartsOn: 0, firstWeekContainsDate: 1 } }, jt = (t2, e2) => {
1821
1819
  switch (t2) {
1822
1820
  case "P":
1823
1821
  return e2.date({ width: "short" });
@@ -1841,7 +1839,7 @@ const jt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1841
1839
  }
1842
1840
  }, Ut = { p: Gt, P: (t2, e2) => {
1843
1841
  const n2 = t2.match(/(P+)(p+)?/) || [], r2 = n2[1], o2 = n2[2];
1844
- if (!o2) return $t(t2, e2);
1842
+ if (!o2) return jt(t2, e2);
1845
1843
  let s2;
1846
1844
  switch (r2) {
1847
1845
  case "P":
@@ -1856,20 +1854,20 @@ const jt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1856
1854
  default:
1857
1855
  s2 = e2.dateTime({ width: "full" });
1858
1856
  }
1859
- return s2.replace("{{date}}", $t(r2, e2)).replace("{{time}}", Gt(o2, e2));
1860
- } }, Jt = /^D+$/, qt = /^Y+$/, Kt = ["D", "DD", "YY", "YYYY"];
1857
+ return s2.replace("{{date}}", jt(r2, e2)).replace("{{time}}", Gt(o2, e2));
1858
+ } }, Jt = /^D+$/, Kt = /^Y+$/, qt = ["D", "DD", "YY", "YYYY"];
1861
1859
  function Xt(t2) {
1862
1860
  return Jt.test(t2);
1863
1861
  }
1864
1862
  function Yt(t2) {
1865
- return qt.test(t2);
1863
+ return Kt.test(t2);
1866
1864
  }
1867
1865
  function Qt(t2, e2, n2) {
1868
1866
  const r2 = (function(t3, e3, n3) {
1869
1867
  const r3 = "Y" === t3[0] ? "years" : "days of the month";
1870
1868
  return `Use \`${t3.toLowerCase()}\` instead of \`${t3}\` (in \`${e3}\`) for formatting ${r3} to the input \`${n3}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1871
1869
  })(t2, e2, n2);
1872
- if (console.warn(r2), Kt.includes(t2)) throw new RangeError(r2);
1870
+ if (console.warn(r2), qt.includes(t2)) throw new RangeError(r2);
1873
1871
  }
1874
1872
  const Zt = Symbol.for("constructDateFrom");
1875
1873
  function te(t2, e2) {
@@ -2066,7 +2064,7 @@ const Ee = { y: new class extends ae {
2066
2064
  }
2067
2065
  }() }, Ce = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, be = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ve = /^'([^]*?)'?$/, xe = /''/g, Ie = /\S/, Re = /[a-zA-Z]/;
2068
2066
  function Ae(t2, e2, n2, r2) {
2069
- const o2 = () => te(r2?.in || n2, NaN), s2 = Object.assign({}, ne()), i2 = r2?.locale ?? s2.locale ?? jt, a2 = r2?.firstWeekContainsDate ?? r2?.locale?.options?.firstWeekContainsDate ?? s2.firstWeekContainsDate ?? s2.locale?.options?.firstWeekContainsDate ?? 1, l2 = r2?.weekStartsOn ?? r2?.locale?.options?.weekStartsOn ?? s2.weekStartsOn ?? s2.locale?.options?.weekStartsOn ?? 0;
2067
+ const o2 = () => te(r2?.in || n2, NaN), s2 = Object.assign({}, ne()), i2 = r2?.locale ?? s2.locale ?? $t, a2 = r2?.firstWeekContainsDate ?? r2?.locale?.options?.firstWeekContainsDate ?? s2.firstWeekContainsDate ?? s2.locale?.options?.firstWeekContainsDate ?? 1, l2 = r2?.weekStartsOn ?? r2?.locale?.options?.weekStartsOn ?? s2.weekStartsOn ?? s2.locale?.options?.weekStartsOn ?? 0;
2070
2068
  if (!e2) return t2 ? o2() : re(n2, r2?.in);
2071
2069
  const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new ie(r2?.in, n2)], d2 = e2.match(be).map((t3) => {
2072
2070
  const e3 = t3[0];
@@ -2135,13 +2133,13 @@ function De(t2, e2) {
2135
2133
  var n2 = "" + t2;
2136
2134
  return n2.length >= e2 ? n2 : Fe(" ", e2 - n2.length) + n2;
2137
2135
  }
2138
- function Be(t2, e2) {
2136
+ function Le(t2, e2) {
2139
2137
  var n2 = "" + t2;
2140
2138
  return n2.length >= e2 ? n2 : n2 + Fe(" ", e2 - n2.length);
2141
2139
  }
2142
- var Le = Math.pow(2, 32);
2140
+ var Be = Math.pow(2, 32);
2143
2141
  function ze(t2, e2) {
2144
- return t2 > Le || t2 < -Le ? (function(t3, e3) {
2142
+ return t2 > Be || t2 < -Be ? (function(t3, e3) {
2145
2143
  var n2 = "" + Math.round(t3);
2146
2144
  return n2.length >= e3 ? n2 : Fe("0", e3 - n2.length) + n2;
2147
2145
  })(t2, e2) : (function(t3, e3) {
@@ -2152,7 +2150,7 @@ function ze(t2, e2) {
2152
2150
  function Pe(t2, e2) {
2153
2151
  return e2 = e2 || 0, t2.length >= 7 + e2 && 103 == (32 | t2.charCodeAt(e2)) && 101 == (32 | t2.charCodeAt(e2 + 1)) && 110 == (32 | t2.charCodeAt(e2 + 2)) && 101 == (32 | t2.charCodeAt(e2 + 3)) && 114 == (32 | t2.charCodeAt(e2 + 4)) && 97 == (32 | t2.charCodeAt(e2 + 5)) && 108 == (32 | t2.charCodeAt(e2 + 6));
2154
2152
  }
2155
- var He = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], We = [["J", "Jan", "January"], ["F", "Feb", "February"], ["M", "Mar", "March"], ["A", "Apr", "April"], ["M", "May", "May"], ["J", "Jun", "June"], ["J", "Jul", "July"], ["A", "Aug", "August"], ["S", "Sep", "September"], ["O", "Oct", "October"], ["N", "Nov", "November"], ["D", "Dec", "December"]], Ve = { 0: "General", 1: "0", 2: "0.00", 3: "#,##0", 4: "#,##0.00", 5: "$#,##0_);($#,##0)", 6: "$#,##0_);[Red]($#,##0)", 7: "$#,##0.00_);($#,##0.00)", 8: "$#,##0.00_);[Red]($#,##0.00)", 9: "0%", 10: "0.00%", 11: "0.00E+00", 12: "# ?/?", 13: "# ??/??", 14: "m/d/yy", 15: "d-mmm-yy", 16: "d-mmm", 17: "mmm-yy", 18: "h:mm AM/PM", 19: "h:mm:ss AM/PM", 20: "h:mm", 21: "h:mm:ss", 22: "m/d/yy h:mm", 23: "General", 24: "General", 25: "General", 26: "General", 27: "m/d/yyyy", 28: "m/d/yyyy", 29: "m/d/yyyy", 30: "m/d/yyyy", 32: "h:mm:ss", 31: "m/d/yyyy", 33: "h:mm:ss", 34: "h:mm:ss", 35: "h:mm:ss", 36: "m/d/yyyy", 37: "#,##0_);(#,##0)", 38: "#,##0_);[Red](#,##0)", 39: "#,##0.00_);(#,##0.00)", 40: "#,##0.00_);[Red](#,##0.00)", 41: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', 42: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', 44: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', 45: "mm:ss", 46: "[h]:mm:ss", 47: "mmss.0", 48: "##0.0E+0", 49: "@", 50: "m/d/yyyy", 51: "m/d/yyyy", 52: "m/d/yyyy", 53: "m/d/yyyy", 54: "m/d/yyyy", 55: "m/d/yyyy", 56: '"上午/下午 "hh"時"mm"分"ss"秒 "' }, je = { 5: 37, 6: 38, 7: 39, 8: 40, 23: 0, 24: 0, 25: 0, 26: 0, 27: 14, 28: 14, 29: 14, 30: 14, 31: 14, 50: 14, 51: 14, 52: 14, 53: 14, 54: 14, 55: 14, 56: 14, 57: 14, 58: 14, 59: 1, 60: 2, 61: 3, 62: 4, 67: 9, 68: 10, 69: 12, 70: 13, 71: 14, 72: 14, 73: 15, 74: 16, 75: 17, 76: 20, 77: 21, 78: 22, 79: 45, 80: 46, 81: 47, 82: 0 }, $e = { 5: '"$"#,##0_);\\("$"#,##0\\)', 63: '"$"#,##0_);\\("$"#,##0\\)', 6: '"$"#,##0_);[Red]\\("$"#,##0\\)', 64: '"$"#,##0_);[Red]\\("$"#,##0\\)', 7: '"$"#,##0.00_);\\("$"#,##0.00\\)', 65: '"$"#,##0.00_);\\("$"#,##0.00\\)', 8: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 66: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 41: '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', 42: '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', 44: '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)' };
2153
+ var We = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], He = [["J", "Jan", "January"], ["F", "Feb", "February"], ["M", "Mar", "March"], ["A", "Apr", "April"], ["M", "May", "May"], ["J", "Jun", "June"], ["J", "Jul", "July"], ["A", "Aug", "August"], ["S", "Sep", "September"], ["O", "Oct", "October"], ["N", "Nov", "November"], ["D", "Dec", "December"]], Ve = { 0: "General", 1: "0", 2: "0.00", 3: "#,##0", 4: "#,##0.00", 5: "$#,##0_);($#,##0)", 6: "$#,##0_);[Red]($#,##0)", 7: "$#,##0.00_);($#,##0.00)", 8: "$#,##0.00_);[Red]($#,##0.00)", 9: "0%", 10: "0.00%", 11: "0.00E+00", 12: "# ?/?", 13: "# ??/??", 14: "m/d/yy", 15: "d-mmm-yy", 16: "d-mmm", 17: "mmm-yy", 18: "h:mm AM/PM", 19: "h:mm:ss AM/PM", 20: "h:mm", 21: "h:mm:ss", 22: "m/d/yy h:mm", 23: "General", 24: "General", 25: "General", 26: "General", 27: "m/d/yyyy", 28: "m/d/yyyy", 29: "m/d/yyyy", 30: "m/d/yyyy", 32: "h:mm:ss", 31: "m/d/yyyy", 33: "h:mm:ss", 34: "h:mm:ss", 35: "h:mm:ss", 36: "m/d/yyyy", 37: "#,##0_);(#,##0)", 38: "#,##0_);[Red](#,##0)", 39: "#,##0.00_);(#,##0.00)", 40: "#,##0.00_);[Red](#,##0.00)", 41: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', 42: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', 44: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', 45: "mm:ss", 46: "[h]:mm:ss", 47: "mmss.0", 48: "##0.0E+0", 49: "@", 50: "m/d/yyyy", 51: "m/d/yyyy", 52: "m/d/yyyy", 53: "m/d/yyyy", 54: "m/d/yyyy", 55: "m/d/yyyy", 56: '"上午/下午 "hh"時"mm"分"ss"秒 "' }, $e = { 5: 37, 6: 38, 7: 39, 8: 40, 23: 0, 24: 0, 25: 0, 26: 0, 27: 14, 28: 14, 29: 14, 30: 14, 31: 14, 50: 14, 51: 14, 52: 14, 53: 14, 54: 14, 55: 14, 56: 14, 57: 14, 58: 14, 59: 1, 60: 2, 61: 3, 62: 4, 67: 9, 68: 10, 69: 12, 70: 13, 71: 14, 72: 14, 73: 15, 74: 16, 75: 17, 76: 20, 77: 21, 78: 22, 79: 45, 80: 46, 81: 47, 82: 0 }, je = { 5: '"$"#,##0_);\\("$"#,##0\\)', 63: '"$"#,##0_);\\("$"#,##0\\)', 6: '"$"#,##0_);[Red]\\("$"#,##0\\)', 64: '"$"#,##0_);[Red]\\("$"#,##0\\)', 7: '"$"#,##0.00_);\\("$"#,##0.00\\)', 65: '"$"#,##0.00_);\\("$"#,##0.00\\)', 8: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 66: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', 41: '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', 42: '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', 43: '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', 44: '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)' };
2156
2154
  function Ge(t2, e2, n2) {
2157
2155
  for (var r2 = t2 < 0 ? -1 : 1, o2 = t2 * r2, s2 = 0, i2 = 1, a2 = 0, l2 = 1, c2 = 0, h2 = 0, d2 = Math.floor(o2); c2 < e2 && (a2 = (d2 = Math.floor(o2)) * i2 + s2, h2 = d2 * c2 + l2, !(o2 - d2 < 5e-8)); ) o2 = 1 / (o2 - d2), s2 = i2, i2 = a2, l2 = c2, c2 = h2;
2158
2156
  if (h2 > e2 && (c2 > e2 ? (h2 = l2, a2 = s2) : (h2 = c2, a2 = i2)), !n2) return [0, r2 * a2, h2];
@@ -2176,10 +2174,10 @@ function Ue(t2, e2, n2) {
2176
2174
  }
2177
2175
  return a2.y = i2[0], a2.m = i2[1], a2.d = i2[2], a2.S = o2 % 60, o2 = Math.floor(o2 / 60), a2.M = o2 % 60, o2 = Math.floor(o2 / 60), a2.H = o2, a2.q = s2, a2;
2178
2176
  }
2179
- var Je = new Date(1899, 11, 31, 0, 0, 0), qe = Je.getTime(), Ke = new Date(1900, 2, 1, 0, 0, 0);
2177
+ var Je = new Date(1899, 11, 31, 0, 0, 0), Ke = Je.getTime(), qe = new Date(1900, 2, 1, 0, 0, 0);
2180
2178
  function Xe(t2, e2 = false) {
2181
2179
  var n2 = t2.getTime();
2182
- return e2 ? n2 -= 1262304e5 : t2 >= Ke && (n2 += 864e5), (n2 - (qe + 6e4 * (t2.getTimezoneOffset() - Je.getTimezoneOffset()))) / 864e5;
2180
+ return e2 ? n2 -= 1262304e5 : t2 >= qe && (n2 += 864e5), (n2 - (Ke + 6e4 * (t2.getTimezoneOffset() - Je.getTimezoneOffset()))) / 864e5;
2183
2181
  }
2184
2182
  function Ye(t2) {
2185
2183
  return -1 === t2.indexOf(".") ? t2 : t2.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
@@ -2234,11 +2232,11 @@ function tn(t2, e2, n2, r2) {
2234
2232
  o2 = n2.m, c2 = e2.length;
2235
2233
  break;
2236
2234
  case 3:
2237
- return We[n2.m - 1][1];
2235
+ return He[n2.m - 1][1];
2238
2236
  case 5:
2239
- return We[n2.m - 1][0];
2237
+ return He[n2.m - 1][0];
2240
2238
  default:
2241
- return We[n2.m - 1][2];
2239
+ return He[n2.m - 1][2];
2242
2240
  }
2243
2241
  break;
2244
2242
  case 100:
@@ -2248,9 +2246,9 @@ function tn(t2, e2, n2, r2) {
2248
2246
  o2 = n2.d, c2 = e2.length;
2249
2247
  break;
2250
2248
  case 3:
2251
- return He[n2.q][0];
2249
+ return We[n2.q][0];
2252
2250
  default:
2253
- return He[n2.q][1];
2251
+ return We[n2.q][1];
2254
2252
  }
2255
2253
  break;
2256
2254
  case 104:
@@ -2409,8 +2407,8 @@ function gn(t2, e2, n2) {
2409
2407
  }));
2410
2408
  if (e2.match(ln)) return "(" + (o2 = gn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
2411
2409
  var h2 = "";
2412
- if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ge(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = pn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Be(a2[2], i2)).length < s2[4].length && (h2 = cn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
2413
- if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = Ge(l2, Math.pow(10, i2) - 1, true), c2 + gn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ? De(a2[1], i2) + s2[2] + "/" + s2[3] + Be(a2[2], i2) : Fe(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
2410
+ if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ge(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = pn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Le(a2[2], i2)).length < s2[4].length && (h2 = cn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
2411
+ if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = Ge(l2, Math.pow(10, i2) - 1, true), c2 + gn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ? De(a2[1], i2) + s2[2] + "/" + s2[3] + Le(a2[2], i2) : Fe(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
2414
2412
  if (s2 = e2.match(/^[#0?]+$/)) return o2 = ze(n2, 0), e2.length <= o2.length ? o2 : cn(e2.substr(0, e2.length - o2.length)) + o2;
2415
2413
  if (s2 = e2.match(/^([#0?]+)\.([#0]+)$/)) {
2416
2414
  o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
@@ -2489,8 +2487,8 @@ function fn(t2, e2, n2) {
2489
2487
  }));
2490
2488
  if (e2.match(ln)) return "(" + (o2 = fn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
2491
2489
  var h2 = "";
2492
- if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ge(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = pn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Be(a2[2], i2)).length < s2[4].length && (h2 = cn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
2493
- if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 = Ge(l2, Math.pow(10, i2) - 1, true))[0] || (a2[1] ? "" : "0")) + " " + (a2[1] ? De(a2[1], i2) + s2[2] + "/" + s2[3] + Be(a2[2], i2) : Fe(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
2490
+ if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = Ge(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = pn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Le(a2[2], i2)).length < s2[4].length && (h2 = cn(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
2491
+ if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 = Ge(l2, Math.pow(10, i2) - 1, true))[0] || (a2[1] ? "" : "0")) + " " + (a2[1] ? De(a2[1], i2) + s2[2] + "/" + s2[3] + Le(a2[2], i2) : Fe(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
2494
2492
  if (s2 = e2.match(/^[#0?]+$/)) return o2 = "" + n2, e2.length <= o2.length ? o2 : cn(e2.substr(0, e2.length - o2.length)) + o2;
2495
2493
  if (s2 = e2.match(/^([#0]+)\.([#0]+)$/)) {
2496
2494
  o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
@@ -2642,7 +2640,7 @@ function Cn(t2, e2, n2) {
2642
2640
  r2 = "m/d/yy" === t2 && n2.dateNF ? n2.dateNF : t2;
2643
2641
  break;
2644
2642
  case "number":
2645
- null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : Ve)[t2]) && (r2 = n2.table && n2.table[je[t2]] || Ve[je[t2]]), null == r2 && (r2 = $e[t2] || "General");
2643
+ null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : Ve)[t2]) && (r2 = n2.table && n2.table[$e[t2]] || Ve[$e[t2]]), null == r2 && (r2 = je[t2] || "General");
2646
2644
  }
2647
2645
  if (Pe(r2, 0)) return Ze(e2, n2);
2648
2646
  Te(e2) && (e2 = Xe(e2, n2.date1904));
@@ -2893,11 +2891,11 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
2893
2891
  for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && bn(t2[e2], e2);
2894
2892
  }, parse_date_code: Ue, is_date: wn, get_table: function() {
2895
2893
  return vn._table = Ve;
2896
- } }, xn = "\\s*([-]?[0-9e]*[.]?[0-9]+)", In = new RegExp(`^rgb\\(${xn},${xn},${xn}\\)$`), Rn = new RegExp(`^rgba\\(${xn},${xn},${xn},${xn}\\)$`), An = new RegExp(`^lrgb\\(${xn},${xn},${xn}\\)$`), Mn = new RegExp(`^lrgba\\(${xn},${xn},${xn},${xn}\\)$`), Tn = new RegExp(`^hsl\\(${xn},${xn},${xn}\\)$`), Nn = new RegExp(`^hsla\\(${xn},${xn},${xn},${xn}\\)$`), Fn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), kn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), On = new RegExp("^index(\\d+)$", "i"), Dn = (t2, e2, n2) => [parseFloat(t2), parseFloat(e2), parseFloat(n2)], Bn = (t2, e2 = 255) => {
2894
+ } }, xn = "\\s*([-]?[0-9e]*[.]?[0-9]+)", In = new RegExp(`^rgb\\(${xn},${xn},${xn}\\)$`), Rn = new RegExp(`^rgba\\(${xn},${xn},${xn},${xn}\\)$`), An = new RegExp(`^lrgb\\(${xn},${xn},${xn}\\)$`), Mn = new RegExp(`^lrgba\\(${xn},${xn},${xn},${xn}\\)$`), Tn = new RegExp(`^hsl\\(${xn},${xn},${xn}\\)$`), Nn = new RegExp(`^hsla\\(${xn},${xn},${xn},${xn}\\)$`), Fn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), kn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), On = new RegExp("^index(\\d+)$", "i"), Dn = (t2, e2, n2) => [parseFloat(t2), parseFloat(e2), parseFloat(n2)], Ln = (t2, e2 = 255) => {
2897
2895
  const n2 = [...t2];
2898
2896
  for (var r2 = 0; r2 < t2.length; r2++) n2[r2] = t2[r2] / e2;
2899
2897
  return n2;
2900
- }, Ln = (t2, e2 = 0) => {
2898
+ }, Bn = (t2, e2 = 0) => {
2901
2899
  const n2 = [...t2];
2902
2900
  for (var r2 = 0; r2 < t2.length; r2++) o.roundAccurately(t2[r2], e2 + 8) % 1 == 0.5 ? n2[r2] = Math.floor(t2[r2]) : n2[r2] = o.roundAccurately(t2[r2], e2);
2903
2901
  return n2;
@@ -2905,15 +2903,15 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
2905
2903
  const n2 = [...t2], r2 = e2 ? 1 : 255;
2906
2904
  for (var o2 = 0; o2 < t2.length; o2++) n2[o2] = Math.max(0, Math.min(r2, t2[o2]));
2907
2905
  return n2;
2908
- }, Pn = (t2) => Math.max(0, Math.min(1, t2)), Hn = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), Wn = (t2) => {
2906
+ }, Pn = (t2) => Math.max(0, Math.min(1, t2)), Wn = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), Hn = (t2) => {
2909
2907
  const e2 = [...t2];
2910
- for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = jn(t2[n2]);
2908
+ for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = $n(t2[n2]);
2911
2909
  return e2;
2912
2910
  }, Vn = (t2) => {
2913
2911
  const e2 = [...t2];
2914
- for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = $n(t2[n2]);
2912
+ for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = jn(t2[n2]);
2915
2913
  return e2;
2916
- }, jn = (t2) => t2 < 0.04045 ? t2 / 12.92 : Math.pow((t2 + 0.055) / 1.055, 2.4), $n = (t2) => t2 < 31308e-7 ? 12.92 * t2 : 1.055 * Math.pow(t2, 1 / 2.4) - 0.055, Gn = (t2) => {
2914
+ }, $n = (t2) => t2 < 0.04045 ? t2 / 12.92 : Math.pow((t2 + 0.055) / 1.055, 2.4), jn = (t2) => t2 < 31308e-7 ? 12.92 * t2 : 1.055 * Math.pow(t2, 1 / 2.4) - 0.055, Gn = (t2) => {
2917
2915
  let e2 = t2[0], n2 = t2[1], r2 = t2[2];
2918
2916
  e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
2919
2917
  let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
@@ -2924,10 +2922,10 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
2924
2922
  const a2 = (s2 + o2) / 2;
2925
2923
  let l2 = 0;
2926
2924
  return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
2927
- }, qn = 0, Kn = 1, Xn = 2, Yn = 0, Qn = 1, Zn = 2, tr = 0, er = 1, nr = 2, rr = (t2, e2) => {
2925
+ }, Kn = 0, qn = 1, Xn = 2, Yn = 0, Qn = 1, Zn = 2, tr = 0, er = 1, nr = 2, rr = (t2, e2) => {
2928
2926
  let n2 = e2 / 100;
2929
2927
  return ((t3, e3) => {
2930
- let n3 = Wn(t3);
2928
+ let n3 = Hn(t3);
2931
2929
  n3[0] = e3(n3[0], n3), n3[1] = e3(n3[1], n3), n3[2] = e3(n3[2], n3);
2932
2930
  let r2 = Vn(n3);
2933
2931
  return r2 = zn(r2), r2;
@@ -2939,20 +2937,20 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
2939
2937
  let l2 = Gn(n2);
2940
2938
  return l2 = zn(l2), l2;
2941
2939
  }, ir = (t2, e2) => {
2942
- let n2 = Wn(t2), r2 = e2 / 100;
2940
+ let n2 = Hn(t2), r2 = e2 / 100;
2943
2941
  for (var o2 = 0; o2 < 3; o2++) n2[o2] = n2[o2] * r2 + (1 - r2);
2944
2942
  let s2 = Vn(n2);
2945
2943
  return s2 = zn(s2), s2;
2946
2944
  }, ar = (t2, e2, n2) => {
2947
2945
  let r2 = Jn(e2), o2 = n2 / 1;
2948
- t2 === qn && (o2 = Hn(n2)), r2[t2] = o2;
2946
+ t2 === Kn && (o2 = Wn(n2)), r2[t2] = o2;
2949
2947
  let s2 = Gn(r2);
2950
2948
  return s2 = zn(s2), s2;
2951
2949
  }, lr = (t2, e2, n2) => {
2952
2950
  let r2 = Jn(e2);
2953
- if (t2 === qn) {
2951
+ if (t2 === Kn) {
2954
2952
  let t3 = n2 / 360;
2955
- r2[qn] = 360 * (r2[qn] / 360 + t3), r2[qn] %= 360, r2[qn] < 0 && (r2[qn] -= 360);
2953
+ r2[Kn] = 360 * (r2[Kn] / 360 + t3), r2[Kn] %= 360, r2[Kn] < 0 && (r2[Kn] -= 360);
2956
2954
  } else {
2957
2955
  let e3 = n2 / 0.1;
2958
2956
  r2[t2] = 0.1 * (r2[t2] / 0.1 + e3);
@@ -2961,35 +2959,35 @@ const vn = { format: Cn, dateNumLocal: Xe, load: bn, split_fmt: _n, _table: Ve,
2961
2959
  return o2 = zn(o2), o2;
2962
2960
  }, cr = (t2, e2, n2) => {
2963
2961
  let r2 = Jn(e2), o2 = n2 / 100;
2964
- r2[t2] = r2[t2] * o2, t2 === qn && (r2[qn] = Hn(r2[qn]));
2962
+ r2[t2] = r2[t2] * o2, t2 === Kn && (r2[Kn] = Wn(r2[Kn]));
2965
2963
  let s2 = Gn(r2);
2966
2964
  return s2 = zn(s2), s2;
2967
2965
  }, hr = (t2, e2, n2, r2) => {
2968
- let o2 = Wn(e2), s2 = n2 / 100;
2966
+ let o2 = Hn(e2), s2 = n2 / 100;
2969
2967
  r2 === tr ? o2[t2] = s2 : r2 === er ? o2[t2] += s2 : r2 === nr && (o2[t2] *= s2);
2970
2968
  let i2 = Vn(o2);
2971
2969
  return i2 = zn(i2), i2;
2972
2970
  }, dr = (t2) => {
2973
- let e2 = Wn(t2), n2 = 0.213 * e2[Yn] + 0.715 * e2[Qn] + 0.072 * e2[Zn];
2971
+ let e2 = Hn(t2), n2 = 0.213 * e2[Yn] + 0.715 * e2[Qn] + 0.072 * e2[Zn];
2974
2972
  e2[0] = n2, e2[1] = n2, e2[2] = n2;
2975
2973
  let r2 = Vn(e2);
2976
2974
  return r2 = zn(r2), r2;
2977
2975
  }, ur = (t2) => {
2978
2976
  let e2 = Jn(t2);
2979
- e2[qn] += 180, e2[qn] %= 360, e2[qn] < 0 && (e2[qn] -= 360);
2977
+ e2[Kn] += 180, e2[Kn] %= 360, e2[Kn] < 0 && (e2[Kn] -= 360);
2980
2978
  let n2 = Gn(e2);
2981
2979
  return n2 = zn(n2), n2;
2982
2980
  }, gr = (t2, e2 = true) => {
2983
- let n2 = e2 ? Wn(t2) : [...t2];
2981
+ let n2 = e2 ? Hn(t2) : [...t2];
2984
2982
  const r2 = e2 ? 1 : 255;
2985
2983
  return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 = Vn(n2)), n2 = zn(n2, e2), n2;
2986
2984
  }, mr = (t2) => {
2987
2985
  const e2 = [0, 0, 0];
2988
- e2[0] = $n(t2[0]), e2[1] = $n(t2[1]), e2[2] = $n(t2[2]);
2986
+ e2[0] = jn(t2[0]), e2[1] = jn(t2[1]), e2[2] = jn(t2[2]);
2989
2987
  return zn(e2);
2990
2988
  }, fr = (t2) => {
2991
2989
  const e2 = [0, 0, 0];
2992
- e2[0] = jn(t2[0]), e2[1] = jn(t2[1]), e2[2] = jn(t2[2]);
2990
+ e2[0] = $n(t2[0]), e2[1] = $n(t2[1]), e2[2] = $n(t2[2]);
2993
2991
  return zn(e2);
2994
2992
  }, pr = (t2, e2, n2, r2 = null) => {
2995
2993
  const o2 = (t3) => {
@@ -3116,27 +3114,27 @@ const Mr = () => Ar || (Ar = Intl.DateTimeFormat().resolvedOptions().locale ?? "
3116
3114
  i2 = i2.substring(0, a2) + t3 + i2.substring(a2 + 9), s2 = true;
3117
3115
  }
3118
3116
  return s2 ? { fmt: i2, date: r2 } : null;
3119
- }, Dr = Object.freeze({ "General Number": "General", "General Date": "m/d/yyyy h:mm", "Medium Date": vn.get_table()[15], "Medium Time": vn.get_table()[18], "Short Time": vn.get_table()[20], Currency: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', Fixed: vn.get_table()[2], Standard: vn.get_table()[4], Percent: vn.get_table()[10], Scientific: vn.get_table()[11], "Yes/No": '"Yes";"Yes";"No";@', "True/False": '"True";"True";"False";@', "On/Off": '"Yes";"Yes";"No";@' }), Br = Object.freeze({ black: 0, white: 1, red: 2, green: 3, blue: 4, yellow: 5, magenta: 6, cyan: 7 }), Lr = (t2) => {
3117
+ }, Dr = Object.freeze({ "General Number": "General", "General Date": "m/d/yyyy h:mm", "Medium Date": vn.get_table()[15], "Medium Time": vn.get_table()[18], "Short Time": vn.get_table()[20], Currency: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', Fixed: vn.get_table()[2], Standard: vn.get_table()[4], Percent: vn.get_table()[10], Scientific: vn.get_table()[11], "Yes/No": '"Yes";"Yes";"No";@', "True/False": '"True";"True";"False";@', "On/Off": '"Yes";"Yes";"No";@' }), Lr = Object.freeze({ black: 0, white: 1, red: 2, green: 3, blue: 4, yellow: 5, magenta: 6, cyan: 7 }), Br = (t2) => {
3120
3118
  let e2 = null;
3121
3119
  if ((t2 = t2.toLowerCase()).startsWith("color")) {
3122
3120
  const n2 = parseInt(t2.substring(5));
3123
3121
  n2 >= 0 && n2 <= 56 && (e2 = `Index${n2 + 7}`);
3124
3122
  }
3125
3123
  if (!e2) {
3126
- const n2 = Br[t2];
3124
+ const n2 = Lr[t2];
3127
3125
  void 0 !== n2 && (e2 = Ir(n2).toString());
3128
3126
  }
3129
3127
  return e2;
3130
- }, zr = "=", Pr = "<>", Hr = ">", Wr = "<", Vr = ">=", jr = "<=", $r = /* @__PURE__ */ new Map();
3131
- $r.set(zr, (t2, e2) => t2 === e2), $r.set(Pr, (t2, e2) => t2 !== e2), $r.set(Hr, (t2, e2) => t2 > e2), $r.set(Wr, (t2, e2) => t2 < e2), $r.set(Vr, (t2, e2) => t2 >= e2), $r.set(jr, (t2, e2) => t2 <= e2);
3132
- const Gr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Ur = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, Jr = /\[(.*?)\]/g, qr = (t2, e2) => {
3128
+ }, zr = "=", Pr = "<>", Wr = ">", Hr = "<", Vr = ">=", $r = "<=", jr = /* @__PURE__ */ new Map();
3129
+ jr.set(zr, (t2, e2) => t2 === e2), jr.set(Pr, (t2, e2) => t2 !== e2), jr.set(Wr, (t2, e2) => t2 > e2), jr.set(Hr, (t2, e2) => t2 < e2), jr.set(Vr, (t2, e2) => t2 >= e2), jr.set($r, (t2, e2) => t2 <= e2);
3130
+ const Gr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Ur = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, Jr = /\[(.*?)\]/g, Kr = (t2, e2) => {
3133
3131
  const n2 = { color: null, condition: null };
3134
3132
  let r2 = null, o2 = new RegExp(Jr);
3135
3133
  for (; null !== (r2 = o2.exec(t2)); ) {
3136
3134
  let e3 = false, o3 = Gr.exec(r2[1]);
3137
3135
  if (o3) {
3138
3136
  if (e3 = true, n2.color) throw new Error(`format error, two colors specified: '${t2}' and '${n2.color}'.`);
3139
- n2.color = Lr(o3[1]), n2.color || console.warn("Unable to parse LegacyColor", o3[1]);
3137
+ n2.color = Br(o3[1]), n2.color || console.warn("Unable to parse LegacyColor", o3[1]);
3140
3138
  }
3141
3139
  let s2 = Ur.exec(r2[1]);
3142
3140
  if (s2) {
@@ -3146,14 +3144,14 @@ const Gr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Ur =
3146
3144
  if (!e3) return n2;
3147
3145
  }
3148
3146
  return n2.condition || (n2.condition = e2), n2;
3149
- }, Kr = Object.freeze({ op: Vr, comp: 0 }), Xr = Object.freeze({ op: Wr, comp: 0 }), Yr = Object.freeze({ op: Hr, comp: 0 }), Qr = Object.freeze({ op: zr, comp: 0 }), Zr = (t2, e2) => {
3147
+ }, qr = Object.freeze({ op: Vr, comp: 0 }), Xr = Object.freeze({ op: Hr, comp: 0 }), Yr = Object.freeze({ op: Wr, comp: 0 }), Qr = Object.freeze({ op: zr, comp: 0 }), Zr = (t2, e2) => {
3150
3148
  let n2 = ((t3) => {
3151
3149
  if (!t3) return o.EmptyArray;
3152
3150
  const e3 = [], n3 = t3.split(";"), r3 = n3.length;
3153
3151
  for (let t4 = 0; t4 < r3; t4++) {
3154
3152
  let o2 = null;
3155
- 2 === r3 ? 0 === t4 ? o2 = Kr : 1 === t4 && (o2 = Xr) : 3 !== r3 && 4 !== r3 || (o2 = 0 === t4 ? Yr : 1 === t4 ? Xr : 2 === t4 ? Qr : null);
3156
- const s3 = n3[t4], i2 = qr(s3, o2);
3153
+ 2 === r3 ? 0 === t4 ? o2 = qr : 1 === t4 && (o2 = Xr) : 3 !== r3 && 4 !== r3 || (o2 = 0 === t4 ? Yr : 1 === t4 ? Xr : 2 === t4 ? Qr : null);
3154
+ const s3 = n3[t4], i2 = Kr(s3, o2);
3157
3155
  e3.push({ format: s3, colorAndCondition: i2 });
3158
3156
  }
3159
3157
  return e3;
@@ -3167,7 +3165,7 @@ const Gr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Ur =
3167
3165
  let r3 = s2?.condition ?? void 0;
3168
3166
  if (3 === t3) return "string" == typeof e2 && s2?.color ? s2.color : null;
3169
3167
  if (r3 && "number" == typeof e2) {
3170
- if ($r.get(r3.op)(e2, r3.comp)) return s2?.color ?? null;
3168
+ if (jr.get(r3.op)(e2, r3.comp)) return s2?.color ?? null;
3171
3169
  }
3172
3170
  }
3173
3171
  }, to = (t2) => {
@@ -3354,28 +3352,28 @@ const Mo = (t2, e2, n2 = 1e3) => {
3354
3352
  if (void 0 === t2) return 0;
3355
3353
  let e2 = t2.toString().split(".");
3356
3354
  return e2.length <= 1 ? 0 : e2[1].length || 0;
3357
- }, Do = new RegExp(/^["|'|`](.*)["|'|`]$/), Bo = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Lo = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), zo = Lo(), Po = (t2) => t2 && t2.length > 1 && Do.test(t2) && t2[0] === t2[t2.length - 1], Ho = (t2) => t2.replace(Do, "$1"), Wo = (t2, e2 = "'") => `${e2}${t2}${e2}`, Vo = (t2, e2 = void 0, n2 = void 0) => {
3355
+ }, Do = new RegExp(/^["|'|`](.*)["|'|`]$/), Lo = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Bo = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), zo = Bo(), Po = (t2) => t2 && t2.length > 1 && Do.test(t2) && t2[0] === t2[t2.length - 1], Wo = (t2) => t2.replace(Do, "$1"), Ho = (t2, e2 = "'") => `${e2}${t2}${e2}`, Vo = (t2, e2 = void 0, n2 = void 0) => {
3358
3356
  let r2 = zo;
3359
- return void 0 === e2 && void 0 === n2 || (r2 = Lo(e2, n2)), t2.split(r2);
3360
- }, jo = (t2) => {
3357
+ return void 0 === e2 && void 0 === n2 || (r2 = Bo(e2, n2)), t2.split(r2);
3358
+ }, $o = (t2) => {
3361
3359
  let e2;
3362
3360
  try {
3363
3361
  e2 = new URL(t2);
3364
3362
  } catch (t3) {
3365
3363
  return false;
3366
3364
  }
3367
- return ("http:" === e2.protocol || "https:" === e2.protocol) && Bo.test(t2);
3368
- }, $o = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Go = (t2) => !!t2.toLowerCase().startsWith("mailto:") || $o.test(t2), Uo = (t2) => ((t2 >= 26 ? Uo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Jo = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: zo, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: To, clampString: ko, countDecimals: Oo, findValidTextValue: Mo, getBaseName: (t2, e2 = false) => {
3365
+ return ("http:" === e2.protocol || "https:" === e2.protocol) && Lo.test(t2);
3366
+ }, jo = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Go = (t2) => !!t2.toLowerCase().startsWith("mailto:") || jo.test(t2), Uo = (t2) => ((t2 >= 26 ? Uo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Jo = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: zo, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: To, clampString: ko, countDecimals: Oo, findValidTextValue: Mo, getBaseName: (t2, e2 = false) => {
3369
3367
  if (!t2 || "string" != typeof t2) return "";
3370
3368
  const n2 = t2.split(/[\\/]/).pop() || "";
3371
3369
  if ("" === n2) return "";
3372
3370
  const r2 = No(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
3373
3371
  return e2 ? To(o2, true) : o2;
3374
- }, getFileNameExtension: No, isQuoted: Po, isValidEmail: Go, isValidHttpUrl: jo, numberToAlphabet: Uo, quote: Wo, snakeToCamel: Fo, splitUnquoted: Vo, unquote: Ho }, Symbol.toStringTag, { value: "Module" })), qo = (t2, e2, n2, r2 = null) => {
3372
+ }, getFileNameExtension: No, isQuoted: Po, isValidEmail: Go, isValidHttpUrl: $o, numberToAlphabet: Uo, quote: Ho, snakeToCamel: Fo, splitUnquoted: Vo, unquote: Wo }, Symbol.toStringTag, { value: "Module" })), Ko = (t2, e2, n2, r2 = null) => {
3375
3373
  const o2 = (e2 || 11 * rs.getDeviceScale()) / rs.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
3376
3374
  const a2 = i2 * (0.55 * o2) - (t2.match(/[il.,;!|]/g) || []).length * o2 * 0.15 + (t2.match(/[mwMW]/g) || []).length * o2 * 0.1 + (i2 > 0 ? (i2 - 1) * s2 : 0), l2 = Math.ceil(1.2 * o2), c2 = Math.ceil(0.8 * o2), h2 = Math.ceil(0.2 * o2), d2 = Math.ceil(0.45 * o2), u2 = Math.ceil(1.1 * o2), g2 = Math.max(1, Math.ceil(0.08 * o2));
3377
3375
  return { width: a2, lineHeight: l2, baseline: c2, lineGap: h2, strikePosition: d2, underlinePosition: u2, strikeThickness: g2, underlineThickness: g2, actualBoundingBoxLeft: 0, actualBoundingBoxRight: a2, actualBoundingBoxAscent: c2, actualBoundingBoxDescent: l2 - c2, fontBoundingBoxAscent: c2, fontBoundingBoxDescent: l2 - c2, emHeightAscent: c2, emHeightDescent: l2 - c2, hangingBaseline: 0.8 * c2, alphabeticBaseline: c2, ideographicBaseline: l2 };
3378
- }, Ko = () => qo;
3376
+ }, qo = () => Ko;
3379
3377
  let Xo = "./packages/sdk/src/__tests__/fonts/";
3380
3378
  const Yo = /* @__PURE__ */ new Map(), Qo = /* @__PURE__ */ new Set(), Zo = (t2, e2, n2, r2 = null) => {
3381
3379
  const o2 = e2, s2 = Xo + n2.toLowerCase() + ".ttf";
@@ -3388,7 +3386,7 @@ const Yo = /* @__PURE__ */ new Map(), Qo = /* @__PURE__ */ new Set(), Zo = (t2,
3388
3386
  i2 = M(Xo + "calibri.ttf");
3389
3387
  } catch (t3) {
3390
3388
  }
3391
- if (!i2) return Qo.has(s2) || Qo.add(s2), Ko().call(null, t2, e2, n2, r2);
3389
+ if (!i2) return Qo.has(s2) || Qo.add(s2), qo().call(null, t2, e2, n2, r2);
3392
3390
  const a2 = `${s2}${t2}${o2}`;
3393
3391
  let l2 = Yo.get(a2);
3394
3392
  l2 || (l2 = i2.layout(t2), t2.length < 2 && Yo.set(a2, l2));
@@ -3416,7 +3414,7 @@ var rs, os;
3416
3414
  ts = Zo;
3417
3415
  } catch {
3418
3416
  }
3419
- return ts || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), ts = Ko()), ts;
3417
+ return ts || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), ts = qo()), ts;
3420
3418
  })(), ns), os.getDeviceScale = () => es(), os.getPanoseFallback = (t2) => {
3421
3419
  const e2 = [], n2 = t2.length;
3422
3420
  for (let r3 = 0; r3 < n2; r3 += 2) e2.push(parseInt(t2.substring(r3, r3 + 2), 16));
@@ -3926,13 +3924,13 @@ function Ds(t2, e2) {
3926
3924
  }
3927
3925
  return { preceding: s2, modified: a2, trailing: i2 };
3928
3926
  }
3929
- function Bs(t2) {
3927
+ function Ls(t2) {
3930
3928
  return t2 ? t2.sort((t3, e2) => {
3931
3929
  let n2 = t3.min - e2.min;
3932
3930
  return 0 === n2 && (n2 = t3.max - e2.max), n2;
3933
3931
  }) : t2;
3934
3932
  }
3935
- const Ls = (t2, e2 = false) => {
3933
+ const Bs = (t2, e2 = false) => {
3936
3934
  if (!t2 || 0 === t2.length) return o.EmptyArray;
3937
3935
  const n2 = e2 ? t2 : t2.sort(), r2 = [];
3938
3936
  let s2 = null;
@@ -3944,7 +3942,7 @@ const Ls = (t2, e2 = false) => {
3944
3942
  }, zs = (t2, e2) => t2 ? e2 ? t2 || e2 ? t2.min > e2.max || t2.max < e2.min ? null : { min: Math.max(t2.min, e2.min), max: Math.min(t2.max, e2.max) } : null : { ...t2 } : { ...e2 }, Ps = (t2) => {
3945
3943
  const e2 = 0 === t2.length;
3946
3944
  return { runs: t2, run: { min: e2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER, max: e2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, value: null }, index: Number.MAX_SAFE_INTEGER };
3947
- }, Hs = (t2, e2) => {
3945
+ }, Ws = (t2, e2) => {
3948
3946
  const n2 = e2.run, r2 = n2.min, s2 = n2.max;
3949
3947
  if (t2 >= r2 && t2 <= s2) return n2.value;
3950
3948
  let i2 = e2.index;
@@ -3967,7 +3965,7 @@ const Ls = (t2, e2 = false) => {
3967
3965
  return n2.value = t3, t3;
3968
3966
  }
3969
3967
  return i2--, e2.index = i2, n2.min = i2 >= 0 ? a2[i2].max + 1 : Number.MIN_SAFE_INTEGER, n2.max = c2 - 1, n2.value = null, null;
3970
- }, Ws = function(t2, e2, n2, r2) {
3968
+ }, Hs = function(t2, e2, n2, r2) {
3971
3969
  if (0 === t2.length) {
3972
3970
  if (null != n2 || null != r2) {
3973
3971
  const t3 = e2({ min: n2 ?? r2, max: r2 ?? n2 });
@@ -3991,7 +3989,7 @@ const Ls = (t2, e2 = false) => {
3991
3989
  if (t3 && t3.break) return t3;
3992
3990
  }
3993
3991
  }, Vs = new RegExp("([0-9]+)$");
3994
- var js, $s, Gs, Us, Js, qs;
3992
+ var $s, js, Gs, Us, Js, Ks;
3995
3993
  ((t2) => {
3996
3994
  t2.Date = class {
3997
3995
  constructor(t3) {
@@ -4243,7 +4241,7 @@ var js, $s, Gs, Us, Js, qs;
4243
4241
  }
4244
4242
  const f2 = Ps(a2);
4245
4243
  return (t4) => {
4246
- const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Hs(n4 % r3, f2);
4244
+ const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ws(n4 % r3, f2);
4247
4245
  if (!o4) return null;
4248
4246
  const s4 = Math.floor(n4 / r3), i4 = o4.length, a3 = o4.start, l3 = (s4 + (e4 ? 1 : 0)) * a3 + (s4 + (e4 ? 0 : 1)) * (r3 - (a3 + i4));
4249
4247
  let c3 = t4 + (e4 ? -l3 : l3);
@@ -4262,13 +4260,13 @@ var js, $s, Gs, Us, Js, qs;
4262
4260
  for (let t4 = s3; t4 < n3; t4++) o3.push(i3(t4));
4263
4261
  return o3;
4264
4262
  };
4265
- })(js || (js = {})), $s || ($s = {}), (Us = Gs || (Gs = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, Us.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, Us.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, Us.BuiltInSheetPattern = { None: "none", Solid: "solid", DarkGray: "darkGray", MediumGray: "mediumGray", LightGray: "lightGray", Gray0625: "gray0625", Gray125: "gray125", DarkHorizontal: "darkHorizontal", DarkVertical: "darkVertical", DarkDown: "darkDown", DarkUp: "darkUp", DarkGrid: "darkGrid", DarkTrellis: "darkTrellis", LightHorizontal: "lightHorizontal", LightVertical: "lightVertical", LightDown: "lightDown", LightUp: "lightUp", LightGrid: "lightGrid", LightTrellis: "lightTrellis", Custom: "custom" }, (qs = Js || (Js = {})).AdjustmentType = { Alpha: "alpha", AlphaOff: "alphaOff", AlphaMod: "alphaMod", Hue: "hue", Sat: "sat", Lum: "lum", HueOff: "hueOff", SatOff: "satOff", LumOff: "lumOff", HueMod: "hueMod", SatMod: "satMod", LumMod: "lumMod", Red: "red", Green: "green", Blue: "blue", RedOff: "redOff", GreenOff: "greenOff", BlueOff: "blueOff", RedMod: "redMod", GreenMod: "greenMod", BlueMod: "blueMod", Shade: "shade", Tint: "tint", ETint: "eTint", Gray: "gray", Comp: "comp", Inv: "inv", Gamma: "gamma", InvGamma: "invGamma" }, qs.Named = { ActiveBorder: "activeBorder", ActiveCaption: "activeCaption", CaptionText: "captionText", AppWorkspace: "appWorkspace", BtnFace: "btnFace", BtnShadow: "btnShadow", DkShadow3d: "3dDkShadow", BtnHighlight: "btnHighlight", Light3d: "3dLight", BtnText: "btnText", Background: "background", GrayText: "grayText", Highlight: "highlight", HighlightText: "highlightText", HotLight: "hotLight", InactiveBorder: "inactiveBorder", InactiveCaption: "inactiveCaption", InactiveCaptionText: "inactiveCaptionText", InfoBk: "infoBk", InfoText: "infoText", Menu: "menu", MenuText: "menuText", ScrollBar: "scrollBar", Window: "window", WindowFrame: "windowFrame", WindowText: "windowText", Transparent: "transparent", AliceBlue: "aliceBlue", AntiqueWhite: "antiqueWhite", Aqua: "aqua", Aquamarine: "aquamarine", Azure: "azure", Beige: "beige", Bisque: "bisque", Black: "black", BlanchedAlmond: "blanchedAlmond", Blue: "blue", BlueViolet: "blueViolet", Brown: "brown", BurlyWood: "burlyWood", CadetBlue: "cadetBlue", Chartreuse: "chartreuse", Chocolate: "chocolate", Coral: "coral", CornflowerBlue: "cornflowerBlue", Cornsilk: "cornsilk", Crimson: "crimson", Cyan: "cyan", DkBlue: "dkBlue", DkCyan: "dkCyan", DkGoldenrod: "dkGoldenrod", DkGray: "dkGray", DkGreen: "dkGreen", DkKhaki: "dkKhaki", DkMagenta: "dkMagenta", DkOliveGreen: "dkOliveGreen", DkOrange: "dkOrange", DkOrchid: "dkOrchid", DkRed: "dkRed", DkSalmon: "dkSalmon", DkSeaGreen: "dkSeaGreen", DkSlateBlue: "dkSlateBlue", DkSlateGray: "dkSlateGray", DkTurquoise: "dkTurquoise", DkViolet: "dkViolet", DeepPink: "deepPink", DeepSkyBlue: "deepSkyBlue", DimGray: "dimGray", DodgerBlue: "dodgerBlue", Firebrick: "firebrick", FloralWhite: "floralWhite", ForestGreen: "forestGreen", Fuchsia: "fuchsia", Gainsboro: "gainsboro", GhostWhite: "ghostWhite", Gold: "gold", Goldenrod: "goldenrod", Gray: "gray", Green: "green", GreenYellow: "greenYellow", Honeydew: "honeydew", HotPink: "hotPink", IndianRed: "indianRed", Indigo: "indigo", Ivory: "ivory", Khaki: "khaki", Lavender: "lavender", LavenderBlush: "lavenderBlush", LawnGreen: "lawnGreen", LemonChiffon: "lemonChiffon", LtBlue: "ltBlue", LtCoral: "ltCoral", LtCyan: "ltCyan", LtGoldenrodYellow: "ltGoldenrodYellow", LtGray: "ltGray", LtGreen: "ltGreen", LtPink: "ltPink", LtSalmon: "ltSalmon", LtSeaGreen: "ltSeaGreen", LtSkyBlue: "ltSkyBlue", LtSlateGray: "ltSlateGray", LtSteelBlue: "ltSteelBlue", LtYellow: "ltYellow", Lime: "lime", LimeGreen: "limeGreen", Linen: "linen", Magenta: "magenta", Maroon: "maroon", MedAquamarine: "medAquamarine", MedBlue: "medBlue", MedOrchid: "medOrchid", MedPurple: "medPurple", MedSeaGreen: "medSeaGreen", MedSlateBlue: "medSlateBlue", MedSpringGreen: "medSpringGreen", MedTurquoise: "medTurquoise", MedVioletRed: "medVioletRed", MidnightBlue: "midnightBlue", MintCream: "mintCream", MistyRose: "mistyRose", Moccasin: "moccasin", NavajoWhite: "navajoWhite", Navy: "navy", OldLace: "oldLace", Olive: "olive", OliveDrab: "oliveDrab", Orange: "orange", OrangeRed: "orangeRed", Orchid: "orchid", PaleGoldenrod: "paleGoldenrod", PaleGreen: "paleGreen", PaleTurquoise: "paleTurquoise", PaleVioletRed: "paleVioletRed", PapayaWhip: "papayaWhip", PeachPuff: "peachPuff", Peru: "peru", Pink: "pink", Plum: "plum", PowderBlue: "powderBlue", Purple: "purple", Red: "red", RosyBrown: "rosyBrown", RoyalBlue: "royalBlue", SaddleBrown: "saddleBrown", Salmon: "salmon", SandyBrown: "sandyBrown", SeaGreen: "seaGreen", SeaShell: "seaShell", Sienna: "sienna", Silver: "silver", SkyBlue: "skyBlue", SlateBlue: "slateBlue", SlateGray: "slateGray", Snow: "snow", SpringGreen: "springGreen", SteelBlue: "steelBlue", Tan: "tan", Teal: "teal", Thistle: "thistle", Tomato: "tomato", Turquoise: "turquoise", Violet: "violet", Wheat: "wheat", White: "white", WhiteSmoke: "whiteSmoke", Yellow: "yellow", YellowGreen: "yellowGreen", ButtonFace: "buttonFace", ButtonHighlight: "buttonHighlight", ButtonShadow: "buttonShadow", GradientActiveCaption: "gradientActiveCaption", GradientInactiveCaption: "gradientInactiveCaption", MenuBar: "menuBar", MenuHighlight: "menuHighlight" }, qs.Scheme = { Bg1: "bg1", Bg2: "bg2", Tx1: "tx1", Tx2: "tx2", Accent1: "accent1", Accent2: "accent2", Accent3: "accent3", Accent4: "accent4", Accent5: "accent5", Accent6: "accent6", Hlink: "hlink", FolHlink: "folHlink" }, qs.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
4266
- const Ks = [[4290032820, 1, Js.Named.ActiveBorder, true], [4288263377, 2, Js.Named.ActiveCaption, true], [4278190080, 3, Js.Named.CaptionText, true], [4289440683, 4, Js.Named.AppWorkspace, true], [4293980400, 5, Js.Named.BtnFace, true], [4285098345, 6, Js.Named.BtnShadow, true], [4278190080, 7, Js.Named.DkShadow3d, true], [4293125091, 8, Js.Named.BtnHighlight, true], [4293125091, 9, Js.Named.Light3d, true], [4278190080, 10, Js.Named.BtnText, true], [4278190080, 11, Js.Named.Background, true], [4285361517, 12, Js.Named.GrayText, true], [4281571839, 13, Js.Named.Highlight, true], [4294967295, 14, Js.Named.HighlightText, true], [4278216396, 15, Js.Named.HotLight, true], [4294244348, 16, Js.Named.InactiveBorder, true], [4290760155, 17, Js.Named.InactiveCaption, true], [4278190080, 18, Js.Named.InactiveCaptionText, true], [4294967265, 19, Js.Named.InfoBk, true], [4278190080, 20, Js.Named.InfoText, true], [4293980400, 21, Js.Named.Menu, true], [4278190080, 22, Js.Named.MenuText, true], [4291348680, 23, Js.Named.ScrollBar, true], [4294967295, 24, Js.Named.Window, true], [4284769380, 25, Js.Named.WindowFrame, true], [4278190080, 26, Js.Named.WindowText, true], [16777215, 27, Js.Named.Transparent], [4293982463, 28, Js.Named.AliceBlue], [4294634455, 29, Js.Named.AntiqueWhite], [4278255615, 30, Js.Named.Aqua], [4286578644, 31, Js.Named.Aquamarine], [4293984255, 32, Js.Named.Azure], [4294309340, 33, Js.Named.Beige], [4294960324, 34, Js.Named.Bisque], [4278190080, 35, Js.Named.Black], [4294962125, 36, Js.Named.BlanchedAlmond], [4278190335, 37, Js.Named.Blue], [4287245282, 38, Js.Named.BlueViolet], [4289014314, 39, Js.Named.Brown], [4292786311, 40, Js.Named.BurlyWood], [4284456608, 41, Js.Named.CadetBlue], [4286578432, 42, Js.Named.Chartreuse], [4291979550, 43, Js.Named.Chocolate], [4294934352, 44, Js.Named.Coral], [4284782061, 45, Js.Named.CornflowerBlue], [4294965468, 46, Js.Named.Cornsilk], [4292613180, 47, Js.Named.Crimson], [4278255615, 48, Js.Named.Cyan], [4278190219, 49, Js.Named.DkBlue], [4278225803, 50, Js.Named.DkCyan], [4290283019, 51, Js.Named.DkGoldenrod], [4289309097, 52, Js.Named.DkGray], [4278215680, 53, Js.Named.DkGreen], [4290623339, 54, Js.Named.DkKhaki], [4287299723, 55, Js.Named.DkMagenta], [4283788079, 56, Js.Named.DkOliveGreen], [4294937600, 57, Js.Named.DkOrange], [4288230092, 58, Js.Named.DkOrchid], [4287299584, 59, Js.Named.DkRed], [4293498490, 60, Js.Named.DkSalmon], [4287609995, 61, Js.Named.DkSeaGreen], [4282924427, 62, Js.Named.DkSlateBlue], [4281290575, 63, Js.Named.DkSlateGray], [4278243025, 64, Js.Named.DkTurquoise], [4287889619, 65, Js.Named.DkViolet], [4294907027, 66, Js.Named.DeepPink], [4278239231, 67, Js.Named.DeepSkyBlue], [4285098345, 68, Js.Named.DimGray], [4280193279, 69, Js.Named.DodgerBlue], [4289864226, 70, Js.Named.Firebrick], [4294966e3, 71, Js.Named.FloralWhite], [4280453922, 72, Js.Named.ForestGreen], [4294902015, 73, Js.Named.Fuchsia], [4292664540, 74, Js.Named.Gainsboro], [4294506751, 75, Js.Named.GhostWhite], [4294956800, 76, Js.Named.Gold], [4292519200, 77, Js.Named.Goldenrod], [4286611584, 78, Js.Named.Gray], [4278222848, 79, Js.Named.Green], [4289593135, 80, Js.Named.GreenYellow], [4293984240, 81, Js.Named.Honeydew], [4294928820, 82, Js.Named.HotPink], [4291648604, 83, Js.Named.IndianRed], [4283105410, 84, Js.Named.Indigo], [4294967280, 85, Js.Named.Ivory], [4293977740, 86, Js.Named.Khaki], [4293322490, 87, Js.Named.Lavender], [4294963445, 88, Js.Named.LavenderBlush], [4286381056, 89, Js.Named.LawnGreen], [4294965965, 90, Js.Named.LemonChiffon], [4289583334, 91, Js.Named.LtBlue], [4293951616, 92, Js.Named.LtCoral], [4292935679, 93, Js.Named.LtCyan], [4294638200, 94, Js.Named.LtGoldenrodYellow], [4292072403, 95, Js.Named.LtGray], [4287688336, 96, Js.Named.LtGreen], [4294948545, 97, Js.Named.LtPink], [4294942842, 98, Js.Named.LtSalmon], [4280332970, 99, Js.Named.LtSeaGreen], [4287090426, 100, Js.Named.LtSkyBlue], [4286023833, 101, Js.Named.LtSlateGray], [4289774814, 102, Js.Named.LtSteelBlue], [4294967264, 103, Js.Named.LtYellow], [4278255360, 104, Js.Named.Lime], [4281519410, 105, Js.Named.LimeGreen], [4294635750, 106, Js.Named.Linen], [4294902015, 107, Js.Named.Magenta], [4286578688, 108, Js.Named.Maroon], [4284927402, 109, Js.Named.MedAquamarine], [4278190285, 110, Js.Named.MedBlue], [4290401747, 111, Js.Named.MedOrchid], [4287852763, 112, Js.Named.MedPurple], [4282168177, 113, Js.Named.MedSeaGreen], [4286277870, 114, Js.Named.MedSlateBlue], [4278254234, 115, Js.Named.MedSpringGreen], [4282962380, 116, Js.Named.MedTurquoise], [4291237253, 117, Js.Named.MedVioletRed], [4279834992, 118, Js.Named.MidnightBlue], [4294311930, 119, Js.Named.MintCream], [4294960353, 120, Js.Named.MistyRose], [4294960309, 121, Js.Named.Moccasin], [4294958765, 122, Js.Named.NavajoWhite], [4278190208, 123, Js.Named.Navy], [4294833638, 124, Js.Named.OldLace], [4286611456, 125, Js.Named.Olive], [4285238819, 126, Js.Named.OliveDrab], [4294944e3, 127, Js.Named.Orange], [4294919424, 128, Js.Named.OrangeRed], [4292505814, 129, Js.Named.Orchid], [4293847210, 130, Js.Named.PaleGoldenrod], [4288215960, 131, Js.Named.PaleGreen], [4289720046, 132, Js.Named.PaleTurquoise], [4292571283, 133, Js.Named.PaleVioletRed], [4294963157, 134, Js.Named.PapayaWhip], [4294957753, 135, Js.Named.PeachPuff], [4291659071, 136, Js.Named.Peru], [4294951115, 137, Js.Named.Pink], [4292714717, 138, Js.Named.Plum], [4289781990, 139, Js.Named.PowderBlue], [4286578816, 140, Js.Named.Purple], [4294901760, 141, Js.Named.Red], [4290547599, 142, Js.Named.RosyBrown], [4282477025, 143, Js.Named.RoyalBlue], [4287317267, 144, Js.Named.SaddleBrown], [4294606962, 145, Js.Named.Salmon], [4294222944, 146, Js.Named.SandyBrown], [4281240407, 147, Js.Named.SeaGreen], [4294964718, 148, Js.Named.SeaShell], [4288696877, 149, Js.Named.Sienna], [4290822336, 150, Js.Named.Silver], [4287090411, 151, Js.Named.SkyBlue], [4285160141, 152, Js.Named.SlateBlue], [4285563024, 153, Js.Named.SlateGray], [4294966010, 154, Js.Named.Snow], [4278255487, 155, Js.Named.SpringGreen], [4282811060, 156, Js.Named.SteelBlue], [4291998860, 157, Js.Named.Tan], [4278222976, 158, Js.Named.Teal], [4292394968, 159, Js.Named.Thistle], [4294927175, 160, Js.Named.Tomato], [4282441936, 161, Js.Named.Turquoise], [4293821166, 162, Js.Named.Violet], [4294303411, 163, Js.Named.Wheat], [4294967295, 164, Js.Named.White], [4294309365, 165, Js.Named.WhiteSmoke], [4294967040, 166, Js.Named.Yellow], [4288335154, 167, Js.Named.YellowGreen], [4293980400, 168, Js.Named.ButtonFace], [4294967295, 169, Js.Named.ButtonHighlight], [4288716960, 170, Js.Named.ButtonShadow], [4290367978, 171, Js.Named.GradientActiveCaption], [4292338930, 172, Js.Named.GradientInactiveCaption], [4293980400, 173, Js.Named.MenuBar], [4281571839, 174, Js.Named.MenuHighlight]];
4263
+ })($s || ($s = {})), js || (js = {}), (Us = Gs || (Gs = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, Us.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, Us.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, Us.BuiltInSheetPattern = { None: "none", Solid: "solid", DarkGray: "darkGray", MediumGray: "mediumGray", LightGray: "lightGray", Gray0625: "gray0625", Gray125: "gray125", DarkHorizontal: "darkHorizontal", DarkVertical: "darkVertical", DarkDown: "darkDown", DarkUp: "darkUp", DarkGrid: "darkGrid", DarkTrellis: "darkTrellis", LightHorizontal: "lightHorizontal", LightVertical: "lightVertical", LightDown: "lightDown", LightUp: "lightUp", LightGrid: "lightGrid", LightTrellis: "lightTrellis", Custom: "custom" }, (Ks = Js || (Js = {})).AdjustmentType = { Alpha: "alpha", AlphaOff: "alphaOff", AlphaMod: "alphaMod", Hue: "hue", Sat: "sat", Lum: "lum", HueOff: "hueOff", SatOff: "satOff", LumOff: "lumOff", HueMod: "hueMod", SatMod: "satMod", LumMod: "lumMod", Red: "red", Green: "green", Blue: "blue", RedOff: "redOff", GreenOff: "greenOff", BlueOff: "blueOff", RedMod: "redMod", GreenMod: "greenMod", BlueMod: "blueMod", Shade: "shade", Tint: "tint", ETint: "eTint", Gray: "gray", Comp: "comp", Inv: "inv", Gamma: "gamma", InvGamma: "invGamma" }, Ks.Named = { ActiveBorder: "activeBorder", ActiveCaption: "activeCaption", CaptionText: "captionText", AppWorkspace: "appWorkspace", BtnFace: "btnFace", BtnShadow: "btnShadow", DkShadow3d: "3dDkShadow", BtnHighlight: "btnHighlight", Light3d: "3dLight", BtnText: "btnText", Background: "background", GrayText: "grayText", Highlight: "highlight", HighlightText: "highlightText", HotLight: "hotLight", InactiveBorder: "inactiveBorder", InactiveCaption: "inactiveCaption", InactiveCaptionText: "inactiveCaptionText", InfoBk: "infoBk", InfoText: "infoText", Menu: "menu", MenuText: "menuText", ScrollBar: "scrollBar", Window: "window", WindowFrame: "windowFrame", WindowText: "windowText", Transparent: "transparent", AliceBlue: "aliceBlue", AntiqueWhite: "antiqueWhite", Aqua: "aqua", Aquamarine: "aquamarine", Azure: "azure", Beige: "beige", Bisque: "bisque", Black: "black", BlanchedAlmond: "blanchedAlmond", Blue: "blue", BlueViolet: "blueViolet", Brown: "brown", BurlyWood: "burlyWood", CadetBlue: "cadetBlue", Chartreuse: "chartreuse", Chocolate: "chocolate", Coral: "coral", CornflowerBlue: "cornflowerBlue", Cornsilk: "cornsilk", Crimson: "crimson", Cyan: "cyan", DkBlue: "dkBlue", DkCyan: "dkCyan", DkGoldenrod: "dkGoldenrod", DkGray: "dkGray", DkGreen: "dkGreen", DkKhaki: "dkKhaki", DkMagenta: "dkMagenta", DkOliveGreen: "dkOliveGreen", DkOrange: "dkOrange", DkOrchid: "dkOrchid", DkRed: "dkRed", DkSalmon: "dkSalmon", DkSeaGreen: "dkSeaGreen", DkSlateBlue: "dkSlateBlue", DkSlateGray: "dkSlateGray", DkTurquoise: "dkTurquoise", DkViolet: "dkViolet", DeepPink: "deepPink", DeepSkyBlue: "deepSkyBlue", DimGray: "dimGray", DodgerBlue: "dodgerBlue", Firebrick: "firebrick", FloralWhite: "floralWhite", ForestGreen: "forestGreen", Fuchsia: "fuchsia", Gainsboro: "gainsboro", GhostWhite: "ghostWhite", Gold: "gold", Goldenrod: "goldenrod", Gray: "gray", Green: "green", GreenYellow: "greenYellow", Honeydew: "honeydew", HotPink: "hotPink", IndianRed: "indianRed", Indigo: "indigo", Ivory: "ivory", Khaki: "khaki", Lavender: "lavender", LavenderBlush: "lavenderBlush", LawnGreen: "lawnGreen", LemonChiffon: "lemonChiffon", LtBlue: "ltBlue", LtCoral: "ltCoral", LtCyan: "ltCyan", LtGoldenrodYellow: "ltGoldenrodYellow", LtGray: "ltGray", LtGreen: "ltGreen", LtPink: "ltPink", LtSalmon: "ltSalmon", LtSeaGreen: "ltSeaGreen", LtSkyBlue: "ltSkyBlue", LtSlateGray: "ltSlateGray", LtSteelBlue: "ltSteelBlue", LtYellow: "ltYellow", Lime: "lime", LimeGreen: "limeGreen", Linen: "linen", Magenta: "magenta", Maroon: "maroon", MedAquamarine: "medAquamarine", MedBlue: "medBlue", MedOrchid: "medOrchid", MedPurple: "medPurple", MedSeaGreen: "medSeaGreen", MedSlateBlue: "medSlateBlue", MedSpringGreen: "medSpringGreen", MedTurquoise: "medTurquoise", MedVioletRed: "medVioletRed", MidnightBlue: "midnightBlue", MintCream: "mintCream", MistyRose: "mistyRose", Moccasin: "moccasin", NavajoWhite: "navajoWhite", Navy: "navy", OldLace: "oldLace", Olive: "olive", OliveDrab: "oliveDrab", Orange: "orange", OrangeRed: "orangeRed", Orchid: "orchid", PaleGoldenrod: "paleGoldenrod", PaleGreen: "paleGreen", PaleTurquoise: "paleTurquoise", PaleVioletRed: "paleVioletRed", PapayaWhip: "papayaWhip", PeachPuff: "peachPuff", Peru: "peru", Pink: "pink", Plum: "plum", PowderBlue: "powderBlue", Purple: "purple", Red: "red", RosyBrown: "rosyBrown", RoyalBlue: "royalBlue", SaddleBrown: "saddleBrown", Salmon: "salmon", SandyBrown: "sandyBrown", SeaGreen: "seaGreen", SeaShell: "seaShell", Sienna: "sienna", Silver: "silver", SkyBlue: "skyBlue", SlateBlue: "slateBlue", SlateGray: "slateGray", Snow: "snow", SpringGreen: "springGreen", SteelBlue: "steelBlue", Tan: "tan", Teal: "teal", Thistle: "thistle", Tomato: "tomato", Turquoise: "turquoise", Violet: "violet", Wheat: "wheat", White: "white", WhiteSmoke: "whiteSmoke", Yellow: "yellow", YellowGreen: "yellowGreen", ButtonFace: "buttonFace", ButtonHighlight: "buttonHighlight", ButtonShadow: "buttonShadow", GradientActiveCaption: "gradientActiveCaption", GradientInactiveCaption: "gradientInactiveCaption", MenuBar: "menuBar", MenuHighlight: "menuHighlight" }, Ks.Scheme = { Bg1: "bg1", Bg2: "bg2", Tx1: "tx1", Tx2: "tx2", Accent1: "accent1", Accent2: "accent2", Accent3: "accent3", Accent4: "accent4", Accent5: "accent5", Accent6: "accent6", Hlink: "hlink", FolHlink: "folHlink" }, Ks.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
4264
+ const qs = [[4290032820, 1, Js.Named.ActiveBorder, true], [4288263377, 2, Js.Named.ActiveCaption, true], [4278190080, 3, Js.Named.CaptionText, true], [4289440683, 4, Js.Named.AppWorkspace, true], [4293980400, 5, Js.Named.BtnFace, true], [4285098345, 6, Js.Named.BtnShadow, true], [4278190080, 7, Js.Named.DkShadow3d, true], [4293125091, 8, Js.Named.BtnHighlight, true], [4293125091, 9, Js.Named.Light3d, true], [4278190080, 10, Js.Named.BtnText, true], [4278190080, 11, Js.Named.Background, true], [4285361517, 12, Js.Named.GrayText, true], [4281571839, 13, Js.Named.Highlight, true], [4294967295, 14, Js.Named.HighlightText, true], [4278216396, 15, Js.Named.HotLight, true], [4294244348, 16, Js.Named.InactiveBorder, true], [4290760155, 17, Js.Named.InactiveCaption, true], [4278190080, 18, Js.Named.InactiveCaptionText, true], [4294967265, 19, Js.Named.InfoBk, true], [4278190080, 20, Js.Named.InfoText, true], [4293980400, 21, Js.Named.Menu, true], [4278190080, 22, Js.Named.MenuText, true], [4291348680, 23, Js.Named.ScrollBar, true], [4294967295, 24, Js.Named.Window, true], [4284769380, 25, Js.Named.WindowFrame, true], [4278190080, 26, Js.Named.WindowText, true], [16777215, 27, Js.Named.Transparent], [4293982463, 28, Js.Named.AliceBlue], [4294634455, 29, Js.Named.AntiqueWhite], [4278255615, 30, Js.Named.Aqua], [4286578644, 31, Js.Named.Aquamarine], [4293984255, 32, Js.Named.Azure], [4294309340, 33, Js.Named.Beige], [4294960324, 34, Js.Named.Bisque], [4278190080, 35, Js.Named.Black], [4294962125, 36, Js.Named.BlanchedAlmond], [4278190335, 37, Js.Named.Blue], [4287245282, 38, Js.Named.BlueViolet], [4289014314, 39, Js.Named.Brown], [4292786311, 40, Js.Named.BurlyWood], [4284456608, 41, Js.Named.CadetBlue], [4286578432, 42, Js.Named.Chartreuse], [4291979550, 43, Js.Named.Chocolate], [4294934352, 44, Js.Named.Coral], [4284782061, 45, Js.Named.CornflowerBlue], [4294965468, 46, Js.Named.Cornsilk], [4292613180, 47, Js.Named.Crimson], [4278255615, 48, Js.Named.Cyan], [4278190219, 49, Js.Named.DkBlue], [4278225803, 50, Js.Named.DkCyan], [4290283019, 51, Js.Named.DkGoldenrod], [4289309097, 52, Js.Named.DkGray], [4278215680, 53, Js.Named.DkGreen], [4290623339, 54, Js.Named.DkKhaki], [4287299723, 55, Js.Named.DkMagenta], [4283788079, 56, Js.Named.DkOliveGreen], [4294937600, 57, Js.Named.DkOrange], [4288230092, 58, Js.Named.DkOrchid], [4287299584, 59, Js.Named.DkRed], [4293498490, 60, Js.Named.DkSalmon], [4287609995, 61, Js.Named.DkSeaGreen], [4282924427, 62, Js.Named.DkSlateBlue], [4281290575, 63, Js.Named.DkSlateGray], [4278243025, 64, Js.Named.DkTurquoise], [4287889619, 65, Js.Named.DkViolet], [4294907027, 66, Js.Named.DeepPink], [4278239231, 67, Js.Named.DeepSkyBlue], [4285098345, 68, Js.Named.DimGray], [4280193279, 69, Js.Named.DodgerBlue], [4289864226, 70, Js.Named.Firebrick], [4294966e3, 71, Js.Named.FloralWhite], [4280453922, 72, Js.Named.ForestGreen], [4294902015, 73, Js.Named.Fuchsia], [4292664540, 74, Js.Named.Gainsboro], [4294506751, 75, Js.Named.GhostWhite], [4294956800, 76, Js.Named.Gold], [4292519200, 77, Js.Named.Goldenrod], [4286611584, 78, Js.Named.Gray], [4278222848, 79, Js.Named.Green], [4289593135, 80, Js.Named.GreenYellow], [4293984240, 81, Js.Named.Honeydew], [4294928820, 82, Js.Named.HotPink], [4291648604, 83, Js.Named.IndianRed], [4283105410, 84, Js.Named.Indigo], [4294967280, 85, Js.Named.Ivory], [4293977740, 86, Js.Named.Khaki], [4293322490, 87, Js.Named.Lavender], [4294963445, 88, Js.Named.LavenderBlush], [4286381056, 89, Js.Named.LawnGreen], [4294965965, 90, Js.Named.LemonChiffon], [4289583334, 91, Js.Named.LtBlue], [4293951616, 92, Js.Named.LtCoral], [4292935679, 93, Js.Named.LtCyan], [4294638200, 94, Js.Named.LtGoldenrodYellow], [4292072403, 95, Js.Named.LtGray], [4287688336, 96, Js.Named.LtGreen], [4294948545, 97, Js.Named.LtPink], [4294942842, 98, Js.Named.LtSalmon], [4280332970, 99, Js.Named.LtSeaGreen], [4287090426, 100, Js.Named.LtSkyBlue], [4286023833, 101, Js.Named.LtSlateGray], [4289774814, 102, Js.Named.LtSteelBlue], [4294967264, 103, Js.Named.LtYellow], [4278255360, 104, Js.Named.Lime], [4281519410, 105, Js.Named.LimeGreen], [4294635750, 106, Js.Named.Linen], [4294902015, 107, Js.Named.Magenta], [4286578688, 108, Js.Named.Maroon], [4284927402, 109, Js.Named.MedAquamarine], [4278190285, 110, Js.Named.MedBlue], [4290401747, 111, Js.Named.MedOrchid], [4287852763, 112, Js.Named.MedPurple], [4282168177, 113, Js.Named.MedSeaGreen], [4286277870, 114, Js.Named.MedSlateBlue], [4278254234, 115, Js.Named.MedSpringGreen], [4282962380, 116, Js.Named.MedTurquoise], [4291237253, 117, Js.Named.MedVioletRed], [4279834992, 118, Js.Named.MidnightBlue], [4294311930, 119, Js.Named.MintCream], [4294960353, 120, Js.Named.MistyRose], [4294960309, 121, Js.Named.Moccasin], [4294958765, 122, Js.Named.NavajoWhite], [4278190208, 123, Js.Named.Navy], [4294833638, 124, Js.Named.OldLace], [4286611456, 125, Js.Named.Olive], [4285238819, 126, Js.Named.OliveDrab], [4294944e3, 127, Js.Named.Orange], [4294919424, 128, Js.Named.OrangeRed], [4292505814, 129, Js.Named.Orchid], [4293847210, 130, Js.Named.PaleGoldenrod], [4288215960, 131, Js.Named.PaleGreen], [4289720046, 132, Js.Named.PaleTurquoise], [4292571283, 133, Js.Named.PaleVioletRed], [4294963157, 134, Js.Named.PapayaWhip], [4294957753, 135, Js.Named.PeachPuff], [4291659071, 136, Js.Named.Peru], [4294951115, 137, Js.Named.Pink], [4292714717, 138, Js.Named.Plum], [4289781990, 139, Js.Named.PowderBlue], [4286578816, 140, Js.Named.Purple], [4294901760, 141, Js.Named.Red], [4290547599, 142, Js.Named.RosyBrown], [4282477025, 143, Js.Named.RoyalBlue], [4287317267, 144, Js.Named.SaddleBrown], [4294606962, 145, Js.Named.Salmon], [4294222944, 146, Js.Named.SandyBrown], [4281240407, 147, Js.Named.SeaGreen], [4294964718, 148, Js.Named.SeaShell], [4288696877, 149, Js.Named.Sienna], [4290822336, 150, Js.Named.Silver], [4287090411, 151, Js.Named.SkyBlue], [4285160141, 152, Js.Named.SlateBlue], [4285563024, 153, Js.Named.SlateGray], [4294966010, 154, Js.Named.Snow], [4278255487, 155, Js.Named.SpringGreen], [4282811060, 156, Js.Named.SteelBlue], [4291998860, 157, Js.Named.Tan], [4278222976, 158, Js.Named.Teal], [4292394968, 159, Js.Named.Thistle], [4294927175, 160, Js.Named.Tomato], [4282441936, 161, Js.Named.Turquoise], [4293821166, 162, Js.Named.Violet], [4294303411, 163, Js.Named.Wheat], [4294967295, 164, Js.Named.White], [4294309365, 165, Js.Named.WhiteSmoke], [4294967040, 166, Js.Named.Yellow], [4288335154, 167, Js.Named.YellowGreen], [4293980400, 168, Js.Named.ButtonFace], [4294967295, 169, Js.Named.ButtonHighlight], [4288716960, 170, Js.Named.ButtonShadow], [4290367978, 171, Js.Named.GradientActiveCaption], [4292338930, 172, Js.Named.GradientInactiveCaption], [4293980400, 173, Js.Named.MenuBar], [4281571839, 174, Js.Named.MenuHighlight]];
4267
4265
  const Xs = new class {
4268
4266
  constructor() {
4269
4267
  this._lookupByName = /* @__PURE__ */ new Map();
4270
- for (let t2 = 0; t2 < Ks.length; t2++) {
4271
- const e2 = Ks[t2], n2 = e2[0], r2 = (n2 >> 24 & 255) / 255, o2 = n2 >> 16 & 255, s2 = n2 >> 8 & 255, i2 = 255 & n2, a2 = { id: e2[1], name: e2[2], rgbaColor: { r: o2, g: s2, b: i2, a: r2 }, system: e2.length > 3 };
4268
+ for (let t2 = 0; t2 < qs.length; t2++) {
4269
+ const e2 = qs[t2], n2 = e2[0], r2 = (n2 >> 24 & 255) / 255, o2 = n2 >> 16 & 255, s2 = n2 >> 8 & 255, i2 = 255 & n2, a2 = { id: e2[1], name: e2[2], rgbaColor: { r: o2, g: s2, b: i2, a: r2 }, system: e2.length > 3 };
4272
4270
  this._lookupByName.set(a2.name.toLowerCase(), a2);
4273
4271
  }
4274
4272
  }
@@ -4291,21 +4289,21 @@ const Zs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4291
4289
  let e3 = t2.match(Fn) || t2.match(kn);
4292
4290
  if (e3) {
4293
4291
  let t3, n3 = 1;
4294
- 4 === e3.length ? t3 = [parseInt(e3[1], 16), parseInt(e3[2], 16), parseInt(e3[3], 16)] : (t3 = [parseInt(e3[2], 16), parseInt(e3[3], 16), parseInt(e3[4], 16)], n3 = Pn(parseInt(e3[1], 16) / 255)), t3 = Bn(t3), t3 = zn(t3), o2 = { srgb: t3, alpha: n3 }, a2 = Js.Type.Hex;
4292
+ 4 === e3.length ? t3 = [parseInt(e3[1], 16), parseInt(e3[2], 16), parseInt(e3[3], 16)] : (t3 = [parseInt(e3[2], 16), parseInt(e3[3], 16), parseInt(e3[4], 16)], n3 = Pn(parseInt(e3[1], 16) / 255)), t3 = Ln(t3), t3 = zn(t3), o2 = { srgb: t3, alpha: n3 }, a2 = Js.Type.Hex;
4295
4293
  }
4296
4294
  }
4297
4295
  if (null === o2) {
4298
4296
  let e3 = t2.match(In) || t2.match(Rn);
4299
4297
  if (e3) {
4300
4298
  let t3 = Dn(e3[1], e3[2], e3[3]);
4301
- t3 = Bn(t3), t3 = zn(t3), o2 = { srgb: t3, alpha: e3[4] ? Pn(parseFloat(e3[4])) : 1 }, a2 = Js.Type.RGB;
4299
+ t3 = Ln(t3), t3 = zn(t3), o2 = { srgb: t3, alpha: e3[4] ? Pn(parseFloat(e3[4])) : 1 }, a2 = Js.Type.RGB;
4302
4300
  }
4303
4301
  }
4304
4302
  if (null === o2) {
4305
4303
  let e3 = t2.match(An) || t2.match(Mn);
4306
4304
  if (e3) {
4307
4305
  let t3 = Dn(e3[1], e3[2], e3[3]);
4308
- t3 = Bn(t3, 100), t3 = Vn(t3), t3 = zn(t3), o2 = { srgb: t3, alpha: e3[4] ? Pn(parseFloat(e3[4])) : 1 }, a2 = Js.Type.LRGB;
4306
+ t3 = Ln(t3, 100), t3 = Vn(t3), t3 = zn(t3), o2 = { srgb: t3, alpha: e3[4] ? Pn(parseFloat(e3[4])) : 1 }, a2 = Js.Type.LRGB;
4309
4307
  }
4310
4308
  }
4311
4309
  if (null === o2) {
@@ -4377,10 +4375,10 @@ class li {
4377
4375
  const s3 = (t4) => Math.round(Math.max(0, Math.min(255, t4))), i2 = t3[0], a2 = t3[1], l2 = t3[2];
4378
4376
  return [s3(n3[0] * i2 + n3[1] * a2 + n3[2] * l2), s3(n3[3] * i2 + n3[4] * a2 + n3[5] * l2), s3(n3[6] * i2 + n3[7] * a2 + n3[8] * l2)];
4379
4377
  })(n2, 180), n2 = gr(n2, false);
4380
- let r2 = Wn(n2);
4378
+ let r2 = Hn(n2);
4381
4379
  const o2 = Jn(r2);
4382
- if (o2[Xn] = 0.95 * o2[Xn], r2 = Gn(o2), n2 = Vn(r2), n2 = Ln(n2), n2 = zn(n2, false), t2) return new yr.RGBA(n2[0], n2[1], n2[2], e2.alpha);
4383
- const s2 = Jn(Wn(n2));
4380
+ if (o2[Xn] = 0.95 * o2[Xn], r2 = Gn(o2), n2 = Vn(r2), n2 = Bn(n2), n2 = zn(n2, false), t2) return new yr.RGBA(n2[0], n2[1], n2[2], e2.alpha);
4381
+ const s2 = Jn(Hn(n2));
4384
4382
  return new yr.HSLA(s2[0], s2[1], s2[2], e2.alpha);
4385
4383
  }
4386
4384
  _resolve() {
@@ -4395,7 +4393,7 @@ class li {
4395
4393
  const o2 = e3 ? e3.length : 0;
4396
4394
  for (var s2 = 0; s2 < o2; s2++) {
4397
4395
  const t4 = e3[s2], o3 = Object.keys(t4)[0], i2 = t4[o3];
4398
- o3 === Js.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Js.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Js.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Js.AdjustmentType.Hue ? n3 = ar(qn, n3, i2) : o3 === Js.AdjustmentType.Sat ? n3 = ar(Kn, n3, i2) : o3 === Js.AdjustmentType.Lum ? n3 = ar(Xn, n3, i2) : o3 === Js.AdjustmentType.HueOff ? n3 = lr(qn, n3, i2) : o3 === Js.AdjustmentType.SatOff ? n3 = lr(Kn, n3, i2) : o3 === Js.AdjustmentType.LumOff ? n3 = lr(Xn, n3, i2) : o3 === Js.AdjustmentType.HueMod ? n3 = cr(qn, n3, i2) : o3 === Js.AdjustmentType.SatMod ? n3 = cr(Kn, n3, i2) : o3 === Js.AdjustmentType.LumMod ? n3 = cr(Xn, n3, i2) : o3 === Js.AdjustmentType.Red ? n3 = hr(Yn, n3, i2, tr) : o3 === Js.AdjustmentType.Green ? n3 = hr(Qn, n3, i2, tr) : o3 === Js.AdjustmentType.Blue ? n3 = hr(Zn, n3, i2, tr) : o3 === Js.AdjustmentType.RedOff ? n3 = hr(Yn, n3, i2, er) : o3 === Js.AdjustmentType.GreenOff ? n3 = hr(Qn, n3, i2, er) : o3 === Js.AdjustmentType.BlueOff ? n3 = hr(Zn, n3, i2, er) : o3 === Js.AdjustmentType.RedMod ? n3 = hr(Yn, n3, i2, nr) : o3 === Js.AdjustmentType.GreenMod ? n3 = hr(Qn, n3, i2, nr) : o3 === Js.AdjustmentType.BlueMod ? n3 = hr(Zn, n3, i2, nr) : o3 === Js.AdjustmentType.Shade ? n3 = rr(n3, i2) : o3 === Js.AdjustmentType.Tint ? n3 = ir(n3, i2) : o3 === Js.AdjustmentType.ETint ? n3 = sr(n3, i2) : o3 === Js.AdjustmentType.Gray ? n3 = dr(n3) : o3 === Js.AdjustmentType.Comp ? n3 = ur(n3) : o3 === Js.AdjustmentType.Inv ? n3 = gr(n3, i2) : o3 === Js.AdjustmentType.Gamma ? n3 = mr(n3) : o3 === Js.AdjustmentType.InvGamma ? n3 = fr(n3) : console.warn("unknown adjustmentType: " + o3);
4396
+ o3 === Js.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Js.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Js.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Js.AdjustmentType.Hue ? n3 = ar(Kn, n3, i2) : o3 === Js.AdjustmentType.Sat ? n3 = ar(qn, n3, i2) : o3 === Js.AdjustmentType.Lum ? n3 = ar(Xn, n3, i2) : o3 === Js.AdjustmentType.HueOff ? n3 = lr(Kn, n3, i2) : o3 === Js.AdjustmentType.SatOff ? n3 = lr(qn, n3, i2) : o3 === Js.AdjustmentType.LumOff ? n3 = lr(Xn, n3, i2) : o3 === Js.AdjustmentType.HueMod ? n3 = cr(Kn, n3, i2) : o3 === Js.AdjustmentType.SatMod ? n3 = cr(qn, n3, i2) : o3 === Js.AdjustmentType.LumMod ? n3 = cr(Xn, n3, i2) : o3 === Js.AdjustmentType.Red ? n3 = hr(Yn, n3, i2, tr) : o3 === Js.AdjustmentType.Green ? n3 = hr(Qn, n3, i2, tr) : o3 === Js.AdjustmentType.Blue ? n3 = hr(Zn, n3, i2, tr) : o3 === Js.AdjustmentType.RedOff ? n3 = hr(Yn, n3, i2, er) : o3 === Js.AdjustmentType.GreenOff ? n3 = hr(Qn, n3, i2, er) : o3 === Js.AdjustmentType.BlueOff ? n3 = hr(Zn, n3, i2, er) : o3 === Js.AdjustmentType.RedMod ? n3 = hr(Yn, n3, i2, nr) : o3 === Js.AdjustmentType.GreenMod ? n3 = hr(Qn, n3, i2, nr) : o3 === Js.AdjustmentType.BlueMod ? n3 = hr(Zn, n3, i2, nr) : o3 === Js.AdjustmentType.Shade ? n3 = rr(n3, i2) : o3 === Js.AdjustmentType.Tint ? n3 = ir(n3, i2) : o3 === Js.AdjustmentType.ETint ? n3 = sr(n3, i2) : o3 === Js.AdjustmentType.Gray ? n3 = dr(n3) : o3 === Js.AdjustmentType.Comp ? n3 = ur(n3) : o3 === Js.AdjustmentType.Inv ? n3 = gr(n3, i2) : o3 === Js.AdjustmentType.Gamma ? n3 = mr(n3) : o3 === Js.AdjustmentType.InvGamma ? n3 = fr(n3) : console.warn("unknown adjustmentType: " + o3);
4399
4397
  }
4400
4398
  return { srgb: n3, alpha: r3 };
4401
4399
  })(t2.srgbAlpha, this._private.adjs), n2 = ((t3, e3 = 255) => {
@@ -4403,7 +4401,7 @@ class li {
4403
4401
  for (var r3 = 0; r3 < t3.length; r3++) n3[r3] = t3[r3] * e3;
4404
4402
  return n3;
4405
4403
  })(e2.srgb);
4406
- n2 = Ln(n2);
4404
+ n2 = Bn(n2);
4407
4405
  let r2 = Pn(e2.alpha);
4408
4406
  this._private.adjusted = e2, this._private.parsedVal = t2, this._private.resolved = new yr.RGBA(n2[0], n2[1], n2[2], r2);
4409
4407
  }
@@ -4601,7 +4599,7 @@ const Ni = (t2, e2, n2, r2, o2) => {
4601
4599
  };
4602
4600
  var ki, Oi;
4603
4601
  (ki || (ki = {})).buildPalette = Fi, (Oi || (Oi = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
4604
- const Di = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], Bi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], Li = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], zi = "Themes is readonly. To make modifications create a new DocsThemes instance.", Pi = { [Js.Scheme.Bg1]: "lt1", [Js.Scheme.Bg2]: "lt2", [Js.Scheme.Tx1]: "dk1", [Js.Scheme.Tx2]: "dk2", [Js.Scheme.Accent1]: "accent1", [Js.Scheme.Accent2]: "accent2", [Js.Scheme.Accent3]: "accent3", [Js.Scheme.Accent4]: "accent4", [Js.Scheme.Accent5]: "accent5", [Js.Scheme.Accent6]: "accent6", [Js.Scheme.Hlink]: "hlink", [Js.Scheme.FolHlink]: "folHlink" }, Hi = "Office", Wi = [Hi, "Calibri Light", "Calibri"], Vi = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], ji = (t2) => {
4602
+ const Di = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], Li = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], Bi = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], zi = "Themes is readonly. To make modifications create a new DocsThemes instance.", Pi = { [Js.Scheme.Bg1]: "lt1", [Js.Scheme.Bg2]: "lt2", [Js.Scheme.Tx1]: "dk1", [Js.Scheme.Tx2]: "dk2", [Js.Scheme.Accent1]: "accent1", [Js.Scheme.Accent2]: "accent2", [Js.Scheme.Accent3]: "accent3", [Js.Scheme.Accent4]: "accent4", [Js.Scheme.Accent5]: "accent5", [Js.Scheme.Accent6]: "accent6", [Js.Scheme.Hlink]: "hlink", [Js.Scheme.FolHlink]: "folHlink" }, Wi = "Office", Hi = [Wi, "Calibri Light", "Calibri"], Vi = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], $i = (t2) => {
4605
4603
  const e2 = {};
4606
4604
  for (let n2 = 0; n2 < t2.length; n2++) {
4607
4605
  const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
@@ -4614,15 +4612,15 @@ const Di = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
4614
4612
  }
4615
4613
  }
4616
4614
  return e2;
4617
- }, $i = (t2) => {
4615
+ }, ji = (t2) => {
4618
4616
  const e2 = {};
4619
4617
  for (let n2 = 0; n2 < t2.length; n2++) {
4620
4618
  const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
4621
- e2[o2] = s2, s2.majorFont = r2[1] ?? Wi[1], s2.minorFont = r2[2] ?? Wi[2];
4619
+ e2[o2] = s2, s2.majorFont = r2[1] ?? Hi[1], s2.minorFont = r2[2] ?? Hi[2];
4622
4620
  }
4623
4621
  return e2;
4624
- }, Gi = ji([[Hi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Ui = $i([Wi]), Ji = Gi[Hi], qi = Ui[Hi];
4625
- let Ki = null;
4622
+ }, Gi = $i([[Wi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Ui = ji([Hi]), Ji = Gi[Wi], Ki = Ui[Wi];
4623
+ let qi = null;
4626
4624
  const Xi = new class {
4627
4625
  constructor() {
4628
4626
  this._colors = {};
@@ -4742,19 +4740,19 @@ const Qi = new class {
4742
4740
  }
4743
4741
  }
4744
4742
  getName() {
4745
- return qi.name;
4743
+ return Ki.name;
4746
4744
  }
4747
4745
  getMajorFont() {
4748
- return qi.majorFont;
4746
+ return Ki.majorFont;
4749
4747
  }
4750
4748
  getMinorFont() {
4751
- return qi.minorFont;
4749
+ return Ki.minorFont;
4752
4750
  }
4753
4751
  getMajorFallbacks() {
4754
- return qi.majorFallbacks;
4752
+ return Ki.majorFallbacks;
4755
4753
  }
4756
4754
  getMinorFallbacks() {
4757
- return qi.minorFallbacks;
4755
+ return Ki.minorFallbacks;
4758
4756
  }
4759
4757
  }();
4760
4758
  class Zi {
@@ -4795,10 +4793,10 @@ class Zi {
4795
4793
  class ta {
4796
4794
  constructor(t2, e2 = null, n2 = null) {
4797
4795
  if (this._cacheColors = /* @__PURE__ */ new Map(), !e2 && t2?.name) {
4798
- const n3 = Ki ? Ki.get(t2.name.toLowerCase()) : null;
4796
+ const n3 = qi ? qi.get(t2.name.toLowerCase()) : null;
4799
4797
  n3 && (e2 = n3);
4800
4798
  }
4801
- if (!e2 && Ki && (e2 = Ki.get(Hi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
4799
+ if (!e2 && qi && (e2 = qi.get(Wi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
4802
4800
  this._builtInID = n2, this._delegate = e2, this._colors = new Yi(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Zi(t2?.fonts, this._delegate?.getFontScheme());
4803
4801
  const r2 = Pi, o2 = {}, s2 = Object.keys(r2);
4804
4802
  for (let t3 = 0; t3 < s2.length; t3++) {
@@ -4843,24 +4841,24 @@ class ta {
4843
4841
  const t2 = { name: this.getName() }, e2 = this._colors.toJSON();
4844
4842
  e2 && (Object.keys(e2).length > 1 || e2.name && e2.name !== t2.name) && (t2.colors = e2);
4845
4843
  const n2 = this._fonts.toJSON();
4846
- return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name === Hi ? null : t2;
4844
+ return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name === Wi ? null : t2;
4847
4845
  }
4848
4846
  }
4849
4847
  const ea = () => {
4850
- if (Ki) return Ki;
4848
+ if (qi) return qi;
4851
4849
  const t2 = ((t3, e3, n2) => {
4852
4850
  const r2 = [];
4853
4851
  for (let o2 = 0; o2 < t3.length; o2++) {
4854
- const s2 = t3[o2], i2 = s2[0], a2 = e3[s2[1]] ?? Ji, l2 = n2[s2[2]] ?? qi;
4852
+ const s2 = t3[o2], i2 = s2[0], a2 = e3[s2[1]] ?? Ji, l2 = n2[s2[2]] ?? Ki;
4855
4853
  r2.push({ name: i2, colors: a2, fonts: l2 });
4856
4854
  }
4857
4855
  return r2;
4858
- })(Li, ji(Di), $i(Bi)), e2 = /* @__PURE__ */ new Map();
4856
+ })(Bi, $i(Di), ji(Li)), e2 = /* @__PURE__ */ new Map();
4859
4857
  for (let n2 = 0; n2 < t2.length; n2++) {
4860
4858
  const r2 = new ta(t2[n2]), o2 = new ta(null, r2, n2 + 1);
4861
4859
  e2.set(o2.getName().toLowerCase(), o2);
4862
4860
  }
4863
- return Ki = e2, e2;
4861
+ return qi = e2, e2;
4864
4862
  };
4865
4863
  class na {
4866
4864
  constructor(t2 = null, e2 = false) {
@@ -4878,18 +4876,18 @@ class na {
4878
4876
  getByName(t2) {
4879
4877
  t2 = t2.toLowerCase();
4880
4878
  const e2 = this._customMap.get(t2);
4881
- return e2 || (Ki.get(t2) ?? null);
4879
+ return e2 || (qi.get(t2) ?? null);
4882
4880
  }
4883
4881
  getItems(t2) {
4884
4882
  const e2 = t2?.type ?? Oi.BuiltInFilterType.All, n2 = /* @__PURE__ */ new Map();
4885
- e2 !== Oi.BuiltInFilterType.BuiltIn && e2 !== Oi.BuiltInFilterType.All || Ki.forEach((t3, e3) => n2.set(e3, t3)), e2 !== Oi.BuiltInFilterType.Custom && e2 !== Oi.BuiltInFilterType.All || this._customMap.forEach((t3, e3) => n2.set(e3, t3)), t2?.selected && n2.set(t2.selected.getName().toLowerCase(), t2.selected);
4883
+ e2 !== Oi.BuiltInFilterType.BuiltIn && e2 !== Oi.BuiltInFilterType.All || qi.forEach((t3, e3) => n2.set(e3, t3)), e2 !== Oi.BuiltInFilterType.Custom && e2 !== Oi.BuiltInFilterType.All || this._customMap.forEach((t3, e3) => n2.set(e3, t3)), t2?.selected && n2.set(t2.selected.getName().toLowerCase(), t2.selected);
4886
4884
  return ((t3) => {
4887
4885
  const e3 = [...t3];
4888
4886
  return e3.sort((t4, e4) => o.isDefined(t4.builtInID) && !o.isDefined(e4.builtInID) ? 1 : !o.isDefined(t4.builtInID) && o.isDefined(e4.builtInID) ? -1 : o.isDefined(t4.builtInID) && o.isDefined(e4.builtInID) ? t4.builtInID - e4.builtInID : t4.getName().localeCompare(e4.getName())), e3;
4889
4887
  })(Array.from(n2.values()));
4890
4888
  }
4891
4889
  getCount() {
4892
- return this._customMap.size + Ki.size;
4890
+ return this._customMap.size + qi.size;
4893
4891
  }
4894
4892
  setCustomTheme(t2) {
4895
4893
  if (this._isReadOnly) throw new Error(zi);
@@ -5666,7 +5664,7 @@ class Aa {
5666
5664
  if (void 0 !== t4 && u2(t4), !a2) return;
5667
5665
  if (i4 = a2.next(), i4.done) return void (a2 = void 0);
5668
5666
  const d2 = i4.value, m3 = d2[0], f3 = d2[1], p2 = m3.min, _2 = m3.max, S2 = Math.max(p2, r2) - p2, w2 = Math.max(S2, Math.min(_2, o2)) - p2;
5669
- Ba.bounds.min = S2, Ba.bounds.max = w2, Ba.reverse = !s2, Ba.processSkip = n2, Ba.reuseResult = e2, c2 = p2, h2 = _2, l2 = f3.entries(Ba);
5667
+ La.bounds.min = S2, La.bounds.max = w2, La.reverse = !s2, La.processSkip = n2, La.reuseResult = e2, c2 = p2, h2 = _2, l2 = f3.entries(La);
5670
5668
  const y2 = g2(t4);
5671
5669
  if (y2) return y2;
5672
5670
  t4 = void 0;
@@ -5713,8 +5711,8 @@ class Aa {
5713
5711
  if (void 0 === e2 && (e2 = o2 + 1), 0 === this._count || t2 <= r2 && e2 - 1 >= o2) return this.clone();
5714
5712
  const s2 = Math.max(r2, t2), i2 = Math.min(o2, e2 - 1), a2 = i2 - s2, l2 = [];
5715
5713
  let c2 = 0;
5716
- Wa.bounds.min = s2, Wa.bounds.max = i2;
5717
- const h2 = this.runs(Wa);
5714
+ Ha.bounds.min = s2, Ha.bounds.max = i2;
5715
+ const h2 = this.runs(Ha);
5718
5716
  let d2 = h2.next();
5719
5717
  for (; !d2.done; ) {
5720
5718
  const t3 = d2.value;
@@ -5754,7 +5752,7 @@ class Aa {
5754
5752
  toArray(t2 = Number.MAX_SAFE_INTEGER, e2 = true) {
5755
5753
  if (0 === this.length) return o.EmptyArray;
5756
5754
  const n2 = e2 ? 0 : Number.MIN_SAFE_INTEGER, r2 = Math.min(this._runs.maxKey().max, t2);
5757
- return La.bounds.min = Number.MIN_SAFE_INTEGER, La.bounds.max = r2, ka(this.entries(La), e2, r2, n2);
5755
+ return Ba.bounds.min = Number.MIN_SAFE_INTEGER, Ba.bounds.max = r2, ka(this.entries(Ba), e2, r2, n2);
5758
5756
  }
5759
5757
  get isIReadableList() {
5760
5758
  return true;
@@ -5837,7 +5835,7 @@ class Aa {
5837
5835
  if (n3 <= t2 && e2.max >= t2) return this._lastListRead.at(t2 - n3);
5838
5836
  }
5839
5837
  let n2, r2;
5840
- const o2 = this._runs.getPairOrNextHigher(za, Ha);
5838
+ const o2 = this._runs.getPairOrNextHigher(za, Wa);
5841
5839
  if (o2 && (n2 = o2[0], r2 = o2[1]), this._lastRunsRead = n2, this._lastListRead = r2, !(!n2 || t2 < n2.min || t2 > n2.max)) return r2.at(t2 - n2.min);
5842
5840
  }
5843
5841
  [Symbol.iterator]() {
@@ -5881,7 +5879,7 @@ const Ma = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
5881
5879
  }
5882
5880
  if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
5883
5881
  return o2;
5884
- }, Oa = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), Da = Object.seal({ done: false, value: [-1, null] }), Ba = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: Da }, La = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: Da }), za = { min: 0, max: Number.MAX_SAFE_INTEGER }, Pa = { min: 0, max: Number.MAX_SAFE_INTEGER }, Ha = [null, null], Wa = { bounds: { min: 0, max: 0 }, overflowRun: true };
5882
+ }, Oa = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), Da = Object.seal({ done: false, value: [-1, null] }), La = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: Da }, Ba = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: Da }), za = { min: 0, max: Number.MAX_SAFE_INTEGER }, Pa = { min: 0, max: Number.MAX_SAFE_INTEGER }, Wa = [null, null], Ha = { bounds: { min: 0, max: 0 }, overflowRun: true };
5885
5883
  class Va {
5886
5884
  constructor(t2 = 9) {
5887
5885
  this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
@@ -5955,7 +5953,7 @@ class Va {
5955
5953
  let i2, a2, l2;
5956
5954
  for (; n2 || o2.length; ) {
5957
5955
  if (n2 || (n2 = o2.pop(), a2 = o2[o2.length - 1], i2 = s2.pop(), l2 = true), n2.leaf) {
5958
- const r3 = ja(t2, n2.children, e2);
5956
+ const r3 = $a(t2, n2.children, e2);
5959
5957
  if (-1 !== r3) return n2.children.splice(r3, 1), o2.push(n2), this._condense(o2), this;
5960
5958
  }
5961
5959
  l2 || n2.leaf || !Za(n2, r2) ? a2 ? (i2++, n2 = a2.children[i2], l2 = false) : n2 = null : (o2.push(n2), s2.push(i2), i2 = 0, a2 = n2, n2 = n2.children[0]);
@@ -5985,7 +5983,7 @@ class Va {
5985
5983
  _build(t2, e2, n2, r2) {
5986
5984
  const o2 = n2 - e2 + 1;
5987
5985
  let s2, i2 = this._maxEntries;
5988
- if (o2 <= i2) return s2 = el(t2.slice(e2, n2 + 1)), $a(s2, this.toBBox), s2;
5986
+ if (o2 <= i2) return s2 = el(t2.slice(e2, n2 + 1)), ja(s2, this.toBBox), s2;
5989
5987
  r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 = el([]), s2.leaf = false, s2.height = r2;
5990
5988
  const a2 = Math.ceil(o2 / i2), l2 = a2 * Math.ceil(Math.sqrt(i2));
5991
5989
  nl(t2, e2, n2, l2, this.compareMinX);
@@ -5997,13 +5995,13 @@ class Va {
5997
5995
  s2.children.push(this._build(t2, n3, o4, r2 - 1));
5998
5996
  }
5999
5997
  }
6000
- return $a(s2, this.toBBox), s2;
5998
+ return ja(s2, this.toBBox), s2;
6001
5999
  }
6002
6000
  _chooseSubtree(t2, e2, n2, r2) {
6003
6001
  for (; r2.push(e2), !e2.leaf && r2.length - 1 !== n2; ) {
6004
6002
  let n3, r3 = 1 / 0, o2 = 1 / 0;
6005
6003
  for (let s2 = 0; s2 < e2.children.length; s2++) {
6006
- const i2 = e2.children[s2], a2 = Ka(i2), l2 = Ya(t2, i2) - a2;
6004
+ const i2 = e2.children[s2], a2 = qa(i2), l2 = Ya(t2, i2) - a2;
6007
6005
  l2 < o2 ? (o2 = l2, r3 = a2 < r3 ? a2 : r3, n3 = i2) : l2 === o2 && a2 < r3 && (r3 = a2, n3 = i2);
6008
6006
  }
6009
6007
  e2 = n3 || e2.children[0];
@@ -6019,21 +6017,21 @@ class Va {
6019
6017
  const n2 = t2[e2], r2 = n2.children.length, o2 = this._minEntries;
6020
6018
  this._chooseSplitAxis(n2, o2, r2);
6021
6019
  const s2 = this._chooseSplitIndex(n2, o2, r2), i2 = el(n2.children.splice(s2, n2.children.length - s2));
6022
- i2.height = n2.height, i2.leaf = n2.leaf, $a(n2, this.toBBox), $a(i2, this.toBBox), e2 ? t2[e2 - 1].children.push(i2) : this._splitRoot(n2, i2);
6020
+ i2.height = n2.height, i2.leaf = n2.leaf, ja(n2, this.toBBox), ja(i2, this.toBBox), e2 ? t2[e2 - 1].children.push(i2) : this._splitRoot(n2, i2);
6023
6021
  }
6024
6022
  _splitRoot(t2, e2) {
6025
- this.data = el([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false, $a(this.data, this.toBBox);
6023
+ this.data = el([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false, ja(this.data, this.toBBox);
6026
6024
  }
6027
6025
  _chooseSplitIndex(t2, e2, n2) {
6028
6026
  let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
6029
6027
  for (let i2 = e2; i2 <= n2 - e2; i2++) {
6030
- const e3 = Ga(t2, 0, i2, this.toBBox), a2 = Ga(t2, i2, n2, this.toBBox), l2 = Qa(e3, a2), c2 = Ka(e3) + Ka(a2);
6028
+ const e3 = Ga(t2, 0, i2, this.toBBox), a2 = Ga(t2, i2, n2, this.toBBox), l2 = Qa(e3, a2), c2 = qa(e3) + qa(a2);
6031
6029
  l2 < o2 ? (o2 = l2, r2 = i2, s2 = c2 < s2 ? c2 : s2) : l2 === o2 && c2 < s2 && (s2 = c2, r2 = i2);
6032
6030
  }
6033
6031
  return r2 || n2 - e2;
6034
6032
  }
6035
6033
  _chooseSplitAxis(t2, e2, n2) {
6036
- const r2 = t2.leaf ? this.compareMinX : Ja, o2 = t2.leaf ? this.compareMinY : qa;
6034
+ const r2 = t2.leaf ? this.compareMinX : Ja, o2 = t2.leaf ? this.compareMinY : Ka;
6037
6035
  this._allDistMargin(t2, e2, n2, r2) < this._allDistMargin(t2, e2, n2, o2) && t2.children.sort(r2);
6038
6036
  }
6039
6037
  _allDistMargin(t2, e2, n2, r2) {
@@ -6054,15 +6052,15 @@ class Va {
6054
6052
  for (let r2 = n2; r2 >= 0; r2--) Ua(e2[r2], t2);
6055
6053
  }
6056
6054
  _condense(t2) {
6057
- for (let e2, n2 = t2.length - 1; n2 >= 0; n2--) 0 === t2[n2].children.length ? n2 > 0 ? (e2 = t2[n2 - 1].children, e2.splice(e2.indexOf(t2[n2]), 1)) : this.clear() : $a(t2[n2], this.toBBox);
6055
+ for (let e2, n2 = t2.length - 1; n2 >= 0; n2--) 0 === t2[n2].children.length ? n2 > 0 ? (e2 = t2[n2 - 1].children, e2.splice(e2.indexOf(t2[n2]), 1)) : this.clear() : ja(t2[n2], this.toBBox);
6058
6056
  }
6059
6057
  }
6060
- function ja(t2, e2, n2) {
6058
+ function $a(t2, e2, n2) {
6061
6059
  if (!n2) return e2.indexOf(t2);
6062
6060
  for (let r2 = 0; r2 < e2.length; r2++) if (n2(t2, e2[r2])) return r2;
6063
6061
  return -1;
6064
6062
  }
6065
- function $a(t2, e2) {
6063
+ function ja(t2, e2) {
6066
6064
  Ga(t2, 0, t2.children.length, e2, t2);
6067
6065
  }
6068
6066
  function Ga(t2, e2, n2, r2, o2 = null) {
@@ -6079,10 +6077,10 @@ function Ua(t2, e2) {
6079
6077
  function Ja(t2, e2) {
6080
6078
  return t2.minX - e2.minX;
6081
6079
  }
6082
- function qa(t2, e2) {
6080
+ function Ka(t2, e2) {
6083
6081
  return t2.minY - e2.minY;
6084
6082
  }
6085
- function Ka(t2) {
6083
+ function qa(t2) {
6086
6084
  return (t2.maxX - t2.minX) * (t2.maxY - t2.minY);
6087
6085
  }
6088
6086
  function Xa(t2) {
@@ -6228,17 +6226,17 @@ class il {
6228
6226
  }
6229
6227
  }
6230
6228
  }, w2);
6231
- let B2 = null;
6232
- B2 = r2 && (f2.length > 0 || p2.length > 0 || E2.size > 0) ? this.clone() : this, B2._updateNodes(p2, f2), E2.size > 0 && B2._updateGroupedEntries(y2, E2);
6233
- let L2 = o.EmptyArray;
6229
+ let L2 = null;
6230
+ L2 = r2 && (f2.length > 0 || p2.length > 0 || E2.size > 0) ? this.clone() : this, L2._updateNodes(p2, f2), E2.size > 0 && L2._updateGroupedEntries(y2, E2);
6231
+ let B2 = o.EmptyArray;
6234
6232
  if (b2 && S2 && _2) {
6235
6233
  let t3 = true;
6236
6234
  if (m2 > 0 && (t3 = a2 ? e2.rowStart > S2.rowStart || e2.rowEnd < S2.rowEnd : e2.colStart > S2.colStart || e2.colEnd < S2.colEnd), t3) {
6237
6235
  const t4 = al(_2, c.unionRanges(S2, _2), a2 ? 0 : 1, a2 ? 1 : 0);
6238
- N2 && (L2 = B2._mergeNodes(t4, false));
6236
+ N2 && (B2 = L2._mergeNodes(t4, false));
6239
6237
  }
6240
6238
  }
6241
- return F2 && D2.length > 0 && F2(D2), M2 && k2.length > 0 && M2(k2), N2 && L2.length > 0 && N2(L2), T2 && O2.length > 0 && T2(O2), B2;
6239
+ return F2 && D2.length > 0 && F2(D2), M2 && k2.length > 0 && M2(k2), N2 && B2.length > 0 && N2(B2), T2 && O2.length > 0 && T2(O2), L2;
6242
6240
  }
6243
6241
  insertNonOverlapping(t2, e2) {
6244
6242
  const n2 = e2?.onIntersect ?? ((t3, e3) => ({ ...t3, value: e3.value })), r2 = this.search(t2), s2 = /* @__PURE__ */ new Map(), i2 = /* @__PURE__ */ new Map(), a2 = this._options?.updateEntryOptions, h2 = a2?.onUpdated, d2 = a2?.onRemoved, u2 = a2?.onMerged, g2 = a2?.getSplit, m2 = a2?.getIntersect, f2 = a2?.getUpdate;
@@ -6933,7 +6931,7 @@ const Al = "Must be an array of arrays.", Ml = (t2, e2, n2) => {
6933
6931
  };
6934
6932
  class Dl {
6935
6933
  constructor(t2) {
6936
- this._major = null, this._dataCoords = null, this._count = 0, this._isColumn = true, this._lastMajor = Number.MIN_SAFE_INTEGER, this._lastMinorSpan = null, this._maxCoords = null, this._isShared = false, this._options = { orientation: l.Row, ...t2 }, this._isColumn = (t2?.orientation ?? l.Column) === l.Column, t2?.maxCoords && (this._maxCoords = Object.freeze({ colStart: Math.max(0, t2.maxCoords.colStart ?? 0), rowStart: Math.max(0, t2.maxCoords.rowStart ?? 0), colEnd: Math.min(Number.MAX_SAFE_INTEGER, t2.maxCoords.colEnd ?? Number.MAX_SAFE_INTEGER), rowEnd: Math.min(Number.MAX_SAFE_INTEGER, t2.maxCoords.rowEnd ?? Number.MAX_SAFE_INTEGER) })), this._createRun = t2?.createRun ?? ((t3) => new wa(t3)), this._optionsMinor = {}, this._major = new Aa({ nodeSize: Bl });
6934
+ this._major = null, this._dataCoords = null, this._count = 0, this._isColumn = true, this._lastMajor = Number.MIN_SAFE_INTEGER, this._lastMinorSpan = null, this._maxCoords = null, this._isShared = false, this._options = { orientation: l.Row, ...t2 }, this._isColumn = (t2?.orientation ?? l.Column) === l.Column, t2?.maxCoords && (this._maxCoords = Object.freeze({ colStart: Math.max(0, t2.maxCoords.colStart ?? 0), rowStart: Math.max(0, t2.maxCoords.rowStart ?? 0), colEnd: Math.min(Number.MAX_SAFE_INTEGER, t2.maxCoords.colEnd ?? Number.MAX_SAFE_INTEGER), rowEnd: Math.min(Number.MAX_SAFE_INTEGER, t2.maxCoords.rowEnd ?? Number.MAX_SAFE_INTEGER) })), this._createRun = t2?.createRun ?? ((t3) => new wa(t3)), this._optionsMinor = {}, this._major = new Aa({ nodeSize: Ll });
6937
6935
  }
6938
6936
  getRuns(t2) {
6939
6937
  const e2 = this._isColumn, n2 = this._maxCoords, r2 = this.getCoords();
@@ -6980,13 +6978,13 @@ class Dl {
6980
6978
  p2 = t2.reverse ?? false, h2 = /* @__PURE__ */ ((t3) => "boolean" != typeof t3 ? t3 : true === t3 ? { done: false, value: [{ colIndex: -1, rowIndex: -1 }, null] } : void 0)(t2.reuseResult), a2 = e2 ? t2.processColumnSkip : t2.processRowSkip, a2 && (p2 ? u2 = a2(u2, p2) : d2 = a2(d2, p2)), c2 = e2 ? t2.processRowSkip : t2.processColumnSkip, c2 && (p2 ? f2 = c2(u2, p2) : g2 = c2(g2, p2));
6981
6979
  }
6982
6980
  if (!s2) return _a;
6983
- r2 || d2 !== u2 || (r2 = true), Wl.bounds.min = d2, Wl.bounds.max = u2, Wl.reverse = p2, Wl.processSkip = a2, Wl.reuseResult = Pl;
6984
- let _2 = this._major.entries(Wl), S2 = Vl();
6981
+ r2 || d2 !== u2 || (r2 = true), Hl.bounds.min = d2, Hl.bounds.max = u2, Hl.reverse = p2, Hl.processSkip = a2, Hl.reuseResult = Pl;
6982
+ let _2 = this._major.entries(Hl), S2 = Vl();
6985
6983
  const w2 = (t3) => {
6986
6984
  if (!t3.nextActive) return;
6987
6985
  const e3 = (e4) => {
6988
6986
  const n4 = t3.nextMinorIndex, r4 = t3.nextMinorValue, o3 = t3.nextActive;
6989
- return e4 ? (t3.nextMinorIndex = e4[0], t3.nextMinorValue = e4[1], t3.nextActive = true) : (t3.nextActive = false, t3.nextMinorIndex = p2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER, t3.nextMinorValue = null), t3.value = r4, t3.minorIndex = n4, t3.active = o3, Ll[0] = t3.majorIndex, Ll[1] = n4, Ll[2] = r4, Ll;
6987
+ return e4 ? (t3.nextMinorIndex = e4[0], t3.nextMinorValue = e4[1], t3.nextActive = true) : (t3.nextActive = false, t3.nextMinorIndex = p2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER, t3.nextMinorValue = null), t3.value = r4, t3.minorIndex = n4, t3.active = o3, Bl[0] = t3.majorIndex, Bl[1] = n4, Bl[2] = r4, Bl;
6990
6988
  }, n3 = t3.minorIterator;
6991
6989
  if (!n3) return e3();
6992
6990
  const r3 = n3.next();
@@ -6996,8 +6994,8 @@ class Dl {
6996
6994
  const e3 = _2.next();
6997
6995
  if (e3.done) return void (_2 = void 0);
6998
6996
  const n3 = e3.value, r3 = n3[1];
6999
- r3 || console.warn("issue", r3), t3.majorIndex = n3[0], t3.active = true, t3.nextActive = false, Hl.bounds.min = g2, Hl.bounds.max = f2, Hl.reverse = p2, Hl.processSkip = c2, Hl.reuseResult = zl;
7000
- const o3 = r3.entries(Hl), s3 = o3.next();
6997
+ r3 || console.warn("issue", r3), t3.majorIndex = n3[0], t3.active = true, t3.nextActive = false, Wl.bounds.min = g2, Wl.bounds.max = f2, Wl.reverse = p2, Wl.processSkip = c2, Wl.reuseResult = zl;
6998
+ const o3 = r3.entries(Wl), s3 = o3.next();
7001
6999
  if (!s3.done) {
7002
7000
  const e4 = s3.value;
7003
7001
  return t3.nextMinorIndex = e4[0], t3.nextMinorValue = e4[1], t3.minorIterator = o3, t3.nextActive = true, w2(t3);
@@ -7029,7 +7027,7 @@ class Dl {
7029
7027
  } else s3 = false, i3();
7030
7028
  } else {
7031
7029
  const t4 = S2.minorIndex, s4 = S2.nextMinorIndex;
7032
- t4 === r3 ? (Ll[0] = S2.majorIndex, Ll[1] = t4, Ll[2] = S2.value, a3 = Ll) : !p2 && t4 > r3 || p2 && t4 < r3 ? o3 = p2 ? Math.max(o3, t4) : Math.min(o3, t4) : !p2 && s4 > r3 || p2 && s4 < r3 ? o3 = p2 ? Math.max(o3, s4) : Math.min(o3, s4) : a3 = w2(S2), S2.active && (o3 = p2 ? Math.max(o3, S2.nextMinorIndex) : Math.min(o3, S2.nextMinorIndex)), e3 === r3 || S2.active || (S2.prevMajorCursor ? S2.prevMajorCursor.nextMajorCursor = S2.nextMajorCursor : n3 = S2.nextMajorCursor, S2.nextMajorCursor && (S2.nextMajorCursor.prevMajorCursor = S2.prevMajorCursor)), i3();
7030
+ t4 === r3 ? (Bl[0] = S2.majorIndex, Bl[1] = t4, Bl[2] = S2.value, a3 = Bl) : !p2 && t4 > r3 || p2 && t4 < r3 ? o3 = p2 ? Math.max(o3, t4) : Math.min(o3, t4) : !p2 && s4 > r3 || p2 && s4 < r3 ? o3 = p2 ? Math.max(o3, s4) : Math.min(o3, s4) : a3 = w2(S2), S2.active && (o3 = p2 ? Math.max(o3, S2.nextMinorIndex) : Math.min(o3, S2.nextMinorIndex)), e3 === r3 || S2.active || (S2.prevMajorCursor ? S2.prevMajorCursor.nextMajorCursor = S2.nextMajorCursor : n3 = S2.nextMajorCursor, S2.nextMajorCursor && (S2.nextMajorCursor.prevMajorCursor = S2.prevMajorCursor)), i3();
7033
7031
  }
7034
7032
  if (a3) return a3;
7035
7033
  }
@@ -7119,8 +7117,8 @@ class Dl {
7119
7117
  const e3 = t2[_2], n3 = e3[0], r3 = e3[1], o3 = new Aa(p2);
7120
7118
  m2(o3, r3, n3);
7121
7119
  }, w2 = this._major;
7122
- Wl.bounds.min = e2, Wl.bounds.max = n2, Wl.reverse = false, Wl.processSkip = null, Wl.reuseResult = Pl;
7123
- const y2 = w2.entries(Wl);
7120
+ Hl.bounds.min = e2, Hl.bounds.max = n2, Hl.reverse = false, Hl.processSkip = null, Hl.reuseResult = Pl;
7121
+ const y2 = w2.entries(Hl);
7124
7122
  let E2 = y2.next();
7125
7123
  for (; !E2.done; ) {
7126
7124
  const e3 = E2.value, n3 = e3[0];
@@ -7166,8 +7164,8 @@ class Dl {
7166
7164
  let f2 = false, p2 = 0;
7167
7165
  const _2 = this._major;
7168
7166
  if (l2 <= g2 && h2 >= m2) {
7169
- Wl.bounds.min = i2, Wl.bounds.max = a2;
7170
- const t3 = _2.entries(Wl);
7167
+ Hl.bounds.min = i2, Hl.bounds.max = a2;
7168
+ const t3 = _2.entries(Hl);
7171
7169
  let e3 = t3.next();
7172
7170
  for (; !e3.done; ) {
7173
7171
  p2 -= e3.value[1].getCount(), e3 = t3.next();
@@ -7175,8 +7173,8 @@ class Dl {
7175
7173
  return _2.delete(i2, a2 - i2 + 1), this._count += p2, this._dataCoords = null, 0 !== p2;
7176
7174
  }
7177
7175
  const S2 = [], w2 = this._isShared, y2 = [];
7178
- Wl.bounds.min = i2, Wl.bounds.max = a2, Hl.reverse = false, Hl.processSkip = null, Hl.reuseResult = Pl;
7179
- const E2 = _2.entries(Wl);
7176
+ Hl.bounds.min = i2, Hl.bounds.max = a2, Wl.reverse = false, Wl.processSkip = null, Wl.reuseResult = Pl;
7177
+ const E2 = _2.entries(Hl);
7180
7178
  let C2 = E2.next();
7181
7179
  for (; !C2.done; ) {
7182
7180
  const t3 = C2.value, e3 = t3[0];
@@ -7193,7 +7191,7 @@ class Dl {
7193
7191
  this._updateMajorSpan(y2);
7194
7192
  const b2 = S2.length;
7195
7193
  if (b2 > 0) {
7196
- const t3 = Ls(S2, true);
7194
+ const t3 = Bs(S2, true);
7197
7195
  for (let e4 = 0; e4 < t3.length; e4++) {
7198
7196
  const n3 = t3[e4];
7199
7197
  _2.delete(n3.min, n3.max - n3.min + 1);
@@ -7219,10 +7217,10 @@ class Dl {
7219
7217
  if (!o2 && (C2 *= -1, c.isRangeWithinRange(f2, t2))) return this.clear(), true;
7220
7218
  let b2 = 0;
7221
7219
  const v2 = this._major, x2 = [];
7222
- if (Wl.bounds.min = a2, Wl.bounds.max = E2 ? Number.MAX_SAFE_INTEGER : l2, Hl.reverse = !o2, Hl.processSkip = null, Hl.reuseResult = Pl, E2 && y2) {
7220
+ if (Hl.bounds.min = a2, Hl.bounds.max = E2 ? Number.MAX_SAFE_INTEGER : l2, Wl.reverse = !o2, Wl.processSkip = null, Wl.reuseResult = Pl, E2 && y2) {
7223
7221
  if (!o2) {
7224
- Wl.bounds.max = l2;
7225
- const t4 = v2.entries(Wl);
7222
+ Hl.bounds.max = l2;
7223
+ const t4 = v2.entries(Hl);
7226
7224
  let e3 = t4.next();
7227
7225
  for (; !e3.done; ) {
7228
7226
  b2 -= e3.value[1].getCount(), e3 = t4.next();
@@ -7236,10 +7234,10 @@ class Dl {
7236
7234
  o2 || (A2 = Number.MAX_SAFE_INTEGER, M2 = Number.MIN_SAFE_INTEGER);
7237
7235
  let T2 = Number.MAX_SAFE_INTEGER;
7238
7236
  r2 && (T2 = s2 ? r2.colEnd : r2.rowEnd);
7239
- const N2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(Wl), D2 = { bounds: { min: g2, max: m2 } };
7240
- let B2 = O2.next();
7241
- for (; !B2.done; ) {
7242
- const t3 = B2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
7237
+ const N2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(Hl), D2 = { bounds: { min: g2, max: m2 } };
7238
+ let L2 = O2.next();
7239
+ for (; !L2.done; ) {
7240
+ const t3 = L2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
7243
7241
  if (E2 && F2.set(e3, n3), g2 <= s3) {
7244
7242
  const t4 = n3.getCount();
7245
7243
  E2 ? (e3 >= a2 - C2 && ga(n3.runs(D2), (t5, n4) => {
@@ -7255,17 +7253,17 @@ class Dl {
7255
7253
  }
7256
7254
  b2 += r4 - t4, x2.push([e3, n3]);
7257
7255
  }
7258
- B2 = O2.next();
7256
+ L2 = O2.next();
7259
7257
  }
7260
- const L2 = this._optionsMinor;
7258
+ const B2 = this._optionsMinor;
7261
7259
  let z2 = false;
7262
7260
  for (let t3 = 0; t3 < k2.length; t3++) {
7263
7261
  const e3 = k2[t3], n3 = e3.majorIndex, r3 = e3.run;
7264
7262
  let o3 = F2.get(n3);
7265
- o3 || (o3 = new Aa(L2), F2.set(n3, o3), x2.push([n3, o3]), z2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), N2 && N2.delete(n3);
7263
+ o3 || (o3 = new Aa(B2), F2.set(n3, o3), x2.push([n3, o3]), z2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), N2 && N2.delete(n3);
7266
7264
  }
7267
7265
  if (this._updateMajorSpan(x2, z2), N2 && N2.size > 0) {
7268
- const t3 = Array.from(N2.values()), e3 = Ls(t3);
7266
+ const t3 = Array.from(N2.values()), e3 = Bs(t3);
7269
7267
  for (let t4 = 0; t4 < e3.length; t4++) {
7270
7268
  const n4 = e3[t4];
7271
7269
  v2.delete(n4.min, n4.max - n4.min + 1);
@@ -7352,10 +7350,10 @@ class Dl {
7352
7350
  }
7353
7351
  }
7354
7352
  Dl || (Dl = {});
7355
- const Bl = 12;
7353
+ const Ll = 12;
7356
7354
  Object.seal({ done: false, value: null });
7357
- const Ll = [-1, -1, null], zl = Object.seal({ done: false, value: [-1, null] }), Pl = Object.seal({ done: false, value: [-1, null] }), Hl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: zl }, Wl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Pl }, Vl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
7358
- class jl {
7355
+ const Bl = [-1, -1, null], zl = Object.seal({ done: false, value: [-1, null] }), Pl = Object.seal({ done: false, value: [-1, null] }), Wl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: zl }, Hl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Pl }, Vl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
7356
+ class $l {
7359
7357
  constructor(t2) {
7360
7358
  if (this._l = 0, this._at = null, this._dt = ic.Undefined, this._a32 = null, this._a64 = null, this._cv = null, this._vt = null, this._vi32 = null, this._vi64 = null, this._vf32 = null, this._vf64 = null, !t2) throw new Error("options is required");
7361
7359
  const e2 = t2.length;
@@ -7384,9 +7382,9 @@ class jl {
7384
7382
  case Xl:
7385
7383
  case Yl:
7386
7384
  return this._cv(n2, o2 ? Number(r2) : r2);
7387
- case ql:
7388
- return this._vi64[o2 ? t2 : r2];
7389
7385
  case Kl:
7386
+ return this._vi64[o2 ? t2 : r2];
7387
+ case ql:
7390
7388
  return this._vf64[o2 ? t2 : r2];
7391
7389
  case tc:
7392
7390
  return Number.NaN;
@@ -7430,13 +7428,13 @@ class jl {
7430
7428
  }
7431
7429
  return new ArrayBuffer(t2);
7432
7430
  }
7433
- static fromArray(t2, e2, n2, r2, o2 = $l) {
7431
+ static fromArray(t2, e2, n2, r2, o2 = jl) {
7434
7432
  const s2 = t2.length;
7435
- if (0 === s2) return new jl({ type: ic.Undefined, length: s2, getCoercedValue: n2 });
7433
+ if (0 === s2) return new $l({ type: ic.Undefined, length: s2, getCoercedValue: n2 });
7436
7434
  let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = ac(t2[0], r2);
7437
7435
  for (let e3 = 0; e3 < s2; e3++) {
7438
7436
  const n3 = t2[e3], o3 = ac(n3, r2);
7439
- o3 !== Kl && o3 !== ql || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
7437
+ o3 !== ql && o3 !== Kl || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
7440
7438
  }
7441
7439
  c2 || (a2 = null, i2 = null);
7442
7440
  let d2, u2, g2, m2, f2, p2, _2, S2, w2 = false;
@@ -7454,10 +7452,10 @@ class jl {
7454
7452
  case Ul:
7455
7453
  u2[n3] = r3;
7456
7454
  break;
7457
- case ql:
7455
+ case Kl:
7458
7456
  d2[n3] = r3;
7459
7457
  break;
7460
- case Kl:
7458
+ case ql:
7461
7459
  u2[n3] = r3;
7462
7460
  break;
7463
7461
  case Xl:
@@ -7482,10 +7480,10 @@ class jl {
7482
7480
  case Ul:
7483
7481
  u2[r3] = o3;
7484
7482
  break;
7485
- case ql:
7483
+ case Kl:
7486
7484
  _2[r3] = n3, m2[n3] = o3, n3++;
7487
7485
  break;
7488
- case Kl:
7486
+ case ql:
7489
7487
  _2[r3] = n3, f2[n3] = o3, n3++;
7490
7488
  break;
7491
7489
  case Xl:
@@ -7497,10 +7495,10 @@ class jl {
7497
7495
  }
7498
7496
  }
7499
7497
  }
7500
- return new jl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
7498
+ return new $l({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
7501
7499
  }
7502
7500
  }
7503
- const $l = 0.1, Gl = 1, Ul = 2, Jl = 3, ql = 4, Kl = 5, Xl = 6, Yl = 7, Ql = 8, Zl = 9, tc = 10, ec = 11, nc = 12, rc = 13, oc = 14, sc = 127, ic = { Undefined: oc }, ac = (t2, e2) => {
7501
+ const jl = 0.1, Gl = 1, Ul = 2, Jl = 3, Kl = 4, ql = 5, Xl = 6, Yl = 7, Ql = 8, Zl = 9, tc = 10, ec = 11, nc = 12, rc = 13, oc = 14, sc = 127, ic = { Undefined: oc }, ac = (t2, e2) => {
7504
7502
  switch (typeof t2) {
7505
7503
  case "number":
7506
7504
  const n2 = t2;
@@ -7511,7 +7509,7 @@ const $l = 0.1, Gl = 1, Ul = 2, Jl = 3, ql = 4, Kl = 5, Xl = 6, Yl = 7, Ql = 8,
7511
7509
  if (n2 === Number.MAX_SAFE_INTEGER) return ec;
7512
7510
  if (n2 === Number.MIN_SAFE_INTEGER) return nc;
7513
7511
  if (Number.isInteger(n2) && n2 <= 2147483647 && n2 >= -2147483648) return Gl;
7514
- return Math.fround(n2) === n2 ? Ul : Kl;
7512
+ return Math.fround(n2) === n2 ? Ul : ql;
7515
7513
  case "string":
7516
7514
  return Xl;
7517
7515
  case "boolean":
@@ -7524,7 +7522,7 @@ const $l = 0.1, Gl = 1, Ul = 2, Jl = 3, ql = 4, Kl = 5, Xl = 6, Yl = 7, Ql = 8,
7524
7522
  if (r2 < 128 || r2 > 255) throw new Error("Custom type must be between 128 and 255");
7525
7523
  return r2;
7526
7524
  case "bigint":
7527
- return ql;
7525
+ return Kl;
7528
7526
  case "undefined":
7529
7527
  return oc;
7530
7528
  case "symbol":
@@ -7811,15 +7809,15 @@ class pc {
7811
7809
  1 === p2 && (t2.colEnd = t2.colStart), 1 === _2 && (t2.rowEnd = t2.rowStart), A2 = new Il({ delegate: g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: t2, reuseResult: false }), bounds: t2, orientation: x2, dims: { major: I2 ? S2 : w2, minor: I2 ? w2 : S2 } });
7812
7810
  } else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
7813
7811
  const T2 = i2.colStart, N2 = i2.rowStart, F2 = T2 - M2.colStart, k2 = N2 - M2.rowStart, O2 = x2 === v2 ? new Dt.Builder() : new Dt.TransposedBuilder(), D2 = new Rl({ ...s2, bounds: i2, comparator: (I2 ? uc : gc)(i2, M2) }, R2, A2);
7814
- let B2, L2 = D2.next();
7815
- for (; !L2.done; ) {
7816
- const t2 = L2.value;
7812
+ let L2, B2 = D2.next();
7813
+ for (; !B2.done; ) {
7814
+ const t2 = B2.value;
7817
7815
  let e2 = t2[1], r3 = t2[3];
7818
7816
  const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + F2, l3 = s3 ? s3.rowIndex : i3.rowIndex + k2;
7819
7817
  let c2, u3;
7820
7818
  e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 - T2, rowIndex: l3 - N2 }, this);
7821
7819
  const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
7822
- O2.addValue(g3, m3, u3), L2 = D2.next();
7820
+ O2.addValue(g3, m3, u3), B2 = D2.next();
7823
7821
  }
7824
7822
  if (C2 && y2 > S2 || E2 > w2) {
7825
7823
  const t2 = this._values.clone();
@@ -7831,9 +7829,9 @@ class pc {
7831
7829
  const e2 = El(T2, N2 + w2, T2 + y2 - 1, N2 + E2 - 1, I2), n2 = Ml(C2, e2, I2);
7832
7830
  t2.setValues(n2.tuples);
7833
7831
  }
7834
- B2 = new pc(t2, { colStart: T2, rowStart: N2, colEnd: T2 + y2 - 1, rowEnd: N2 + E2 - 1 }, this._type);
7835
- } else B2 = this._cloneFromBuilder(O2, s2, y2, E2);
7836
- return B2;
7832
+ L2 = new pc(t2, { colStart: T2, rowStart: N2, colEnd: T2 + y2 - 1, rowEnd: N2 + E2 - 1 }, this._type);
7833
+ } else L2 = this._cloneFromBuilder(O2, s2, y2, E2);
7834
+ return L2;
7837
7835
  }
7838
7836
  _fill(t2, n2, r2) {
7839
7837
  if (null === r2) return void t2.delete(n2);
@@ -8193,9 +8191,9 @@ const _c = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
8193
8191
  const i2 = n2.getOrientation() === e.Orientation.Column, a2 = Tl(s2, i2, El(r2?.colStart ?? 0, r2?.rowStart ?? 0, void 0, void 0, i2), true), l2 = Cl(a2.bounds, i2);
8194
8192
  n2.setValues(a2.tuples);
8195
8193
  return new pc(n2, l2, o2, !r2);
8196
- }, Fc = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), kc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), Oc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), Dc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), Bc = /\s+/g, Lc = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, zc = /[\uE000-\uF8FF]/g, Pc = "#REF!", Hc = Math.pow(2, 14), Wc = Math.pow(2, 20);
8197
- let Vc, jc;
8198
- const $c = (t2) => (Vc === t2 || (jc = "" + (t2 + 1), Vc = t2), jc);
8194
+ }, Fc = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), kc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), Oc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), Dc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), Lc = /\s+/g, Bc = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, zc = /[\uE000-\uF8FF]/g, Pc = "#REF!", Wc = Math.pow(2, 14), Hc = Math.pow(2, 20);
8195
+ let Vc, $c;
8196
+ const jc = (t2) => (Vc === t2 || ($c = "" + (t2 + 1), Vc = t2), $c);
8199
8197
  let Gc, Uc;
8200
8198
  const Jc = (t2) => {
8201
8199
  if (Gc === t2) return Uc;
@@ -8203,32 +8201,32 @@ const Jc = (t2) => {
8203
8201
  let e2 = "";
8204
8202
  for (++t2; t2; t2 = Math.floor((t2 - 1) / 26)) e2 = String.fromCharCode((t2 - 1) % 26 + 65) + e2;
8205
8203
  return Uc = e2, Uc;
8206
- }, qc = /[^a-zA-Z0-9]/, Kc = (t2) => {
8204
+ }, Kc = /[^a-zA-Z0-9]/, qc = (t2) => {
8207
8205
  if (!t2) return null;
8208
- return Jc(t2.colIndex) + $c(t2.rowIndex);
8206
+ return Jc(t2.colIndex) + jc(t2.rowIndex);
8209
8207
  }, Xc = (t2) => {
8210
8208
  if (!t2) return Pc;
8211
- const e2 = Jc(t2.colIndex), n2 = $c(t2.rowIndex);
8209
+ const e2 = Jc(t2.colIndex), n2 = jc(t2.rowIndex);
8212
8210
  return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
8213
8211
  }, Yc = (t2, e2) => {
8214
8212
  let n2 = t2 ?? e2;
8215
8213
  var r2;
8216
- return n2 && (n2 = Ho(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, qc.test(r2) && (n2 = Wo(n2))), n2;
8217
- }, Qc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Pc, Zc = (t2, e2, n2 = Kc) => {
8214
+ return n2 && (n2 = Wo(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Kc.test(r2) && (n2 = Ho(n2))), n2;
8215
+ }, Qc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Pc, Zc = (t2, e2, n2 = qc) => {
8218
8216
  if (!t2) return null;
8219
8217
  const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
8220
8218
  if (r2 === s2 && o2 === i2) return n2({ colIndex: r2, rowIndex: o2 });
8221
8219
  t2 = { ...e2, ...t2 };
8222
8220
  const a2 = r2 === Number.MIN_SAFE_INTEGER || e2 && r2 <= e2.colStart && s2 >= e2.colEnd, l2 = o2 === Number.MIN_SAFE_INTEGER || e2 && o2 <= e2.rowStart && i2 >= e2.rowEnd;
8223
8221
  let c2 = null;
8224
- c2 = l2 ? Jc(r2) : a2 ? $c(o2) : n2({ colIndex: r2, rowIndex: o2 });
8222
+ c2 = l2 ? Jc(r2) : a2 ? jc(o2) : n2({ colIndex: r2, rowIndex: o2 });
8225
8223
  let h2 = null;
8226
- return h2 = l2 ? Jc(s2) : a2 ? $c(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
8224
+ return h2 = l2 ? Jc(s2) : a2 ? jc(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
8227
8225
  }, th = (t2, e2, n2 = Xc) => {
8228
8226
  if (!t2) return Pc;
8229
8227
  const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
8230
8228
  let i2 = null;
8231
- if (o2 === Number.MIN_SAFE_INTEGER ? (i2 = Jc(r2), t2.$colIndex && (i2 = "$" + i2)) : s2 ? (i2 = $c(o2), t2.$rowIndex && (i2 = "$" + i2)) : i2 = n2(t2), t2.sheetName || e2) {
8229
+ if (o2 === Number.MIN_SAFE_INTEGER ? (i2 = Jc(r2), t2.$colIndex && (i2 = "$" + i2)) : s2 ? (i2 = jc(o2), t2.$rowIndex && (i2 = "$" + i2)) : i2 = n2(t2), t2.sheetName || e2) {
8232
8230
  const n3 = Yc(t2.sheetName, e2);
8233
8231
  i2 = Qc(n3, i2);
8234
8232
  }
@@ -8240,9 +8238,9 @@ const Jc = (t2) => {
8240
8238
  t2 = { ...e2, ...t2 };
8241
8239
  const o2 = e2 && t2.rowStart <= e2.rowStart && t2.rowEnd >= e2.rowEnd, s2 = e2 && t2.colStart <= e2.colStart && t2.colEnd >= e2.colEnd;
8242
8240
  let i2 = null;
8243
- o2 ? (i2 = Jc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = $c(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
8241
+ o2 ? (i2 = Jc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = jc(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
8244
8242
  let a2 = null;
8245
- return o2 ? (a2 = Jc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = $c(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
8243
+ return o2 ? (a2 = Jc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = jc(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
8246
8244
  }, nh = (t2, e2, n2 = Xc) => {
8247
8245
  const r2 = eh(t2, e2, n2), o2 = Yc(t2?.sheetName, e2?.sheetName);
8248
8246
  return Qc(o2, r2);
@@ -8289,7 +8287,7 @@ const Jc = (t2) => {
8289
8287
  const e3 = t3.lastIndexOf("!");
8290
8288
  if (-1 === e3) return null;
8291
8289
  let n3 = t3.slice(0, e3);
8292
- return n3 = Ho(n3), n3 = n3.replace(/''/g, "'"), [n3, t3.slice(e3 + 1)];
8290
+ return n3 = Wo(n3), n3 = n3.replace(/''/g, "'"), [n3, t3.slice(e3 + 1)];
8293
8291
  })(t2);
8294
8292
  let o2;
8295
8293
  if (r2) {
@@ -8417,7 +8415,7 @@ const Jc = (t2) => {
8417
8415
  }, fh = (t2, e2 = false) => {
8418
8416
  const n2 = t2.match(e2 ? kc : Fc);
8419
8417
  return t2.endsWith(":") ? null : n2;
8420
- }, ph = { rowIndex: -1, colIndex: -1, $colIndex: false, $rowIndex: false }, _h = (t2, e2, n2, r2 = Hc) => {
8418
+ }, ph = { rowIndex: -1, colIndex: -1, $colIndex: false, $rowIndex: false }, _h = (t2, e2, n2, r2 = Wc) => {
8421
8419
  let o2 = t2.lastIndexOf("!"), s2 = "";
8422
8420
  -1 !== o2 && (s2 = t2.slice(0, o2) + "!", t2 = t2.slice(o2 + 1));
8423
8421
  let i2 = null;
@@ -8468,7 +8466,7 @@ const Jc = (t2) => {
8468
8466
  const o2 = t2.colIndex;
8469
8467
  o2 !== Number.MIN_SAFE_INTEGER && (t2.$colIndex ? r2 += "$" + Jc(o2) : r2 += Jc(o2 + n2));
8470
8468
  const s2 = t2.rowIndex;
8471
- return s2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? r2 += "$" + $c(s2) : r2 += $c(s2 + e2)), r2;
8469
+ return s2 !== Number.MIN_SAFE_INTEGER && (t2.$rowIndex ? r2 += "$" + jc(s2) : r2 += jc(s2 + e2)), r2;
8472
8470
  }, vh = (t2, e2, n2, r2) => {
8473
8471
  let o2 = t2.colStart, s2 = t2.rowStart, i2 = t2.colEnd, a2 = t2.rowEnd;
8474
8472
  const l2 = t2.$colStart ?? false, c2 = t2.$rowStart ?? false, h2 = t2.$colEnd ?? false, d2 = t2.$rowEnd ?? false;
@@ -8484,7 +8482,7 @@ const Jc = (t2) => {
8484
8482
  return r2 ? (u2 = r2, u2.colStart = o2, u2.rowStart = s2, u2.colEnd = i2, u2.rowEnd = a2, u2.$colStart = l2, u2.$rowStart = c2, u2.$colEnd = h2, u2.$rowEnd = d2) : u2 = { colStart: o2, rowStart: s2, colEnd: i2, rowEnd: a2, $colStart: l2, $rowStart: c2, $colEnd: h2, $rowEnd: d2 }, t2.sheetName && (u2.sheetName = t2.sheetName), u2;
8485
8483
  }, xh = (t2, e2, n2, r2) => {
8486
8484
  Sh.length = 0;
8487
- let o2 = 0, s2 = t2.replace(Lc, wh), i2 = 0, a2 = s2.replace(Dc, (t3, a3, l2) => {
8485
+ let o2 = 0, s2 = t2.replace(Bc, wh), i2 = 0, a2 = s2.replace(Dc, (t3, a3, l2) => {
8488
8486
  const c2 = _h(t3, e2, n2);
8489
8487
  if (r2) {
8490
8488
  if (l2 > i2) {
@@ -8503,7 +8501,7 @@ const Jc = (t2) => {
8503
8501
  const t3 = s2.slice(i2);
8504
8502
  r2.push(t3.replace(zc, (t4, e3) => Sh[o2++]));
8505
8503
  }
8506
- return a2 = a2.toUpperCase().replace(Bc, ""), a2.replace(zc, yh);
8504
+ return a2 = a2.toUpperCase().replace(Lc, ""), a2.replace(zc, yh);
8507
8505
  }, Ih = "Must specify an address.", Rh = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Ah = "Only a single cell is allowed.", Mh = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.", Th = (t2) => `Invalid address. Can not parse ${"string" == typeof t2 ? `'${t2}' ` : ""}as an address or named item.`, Nh = () => {
8508
8506
  throw new Error("Invalid range.");
8509
8507
  };
@@ -8571,8 +8569,8 @@ const Oh = (t2, n2) => {
8571
8569
  }
8572
8570
  }
8573
8571
  return r2;
8574
- }, Dh = 0, Bh = 1;
8575
- class Lh {
8572
+ }, Dh = 0, Lh = 1;
8573
+ class Bh {
8576
8574
  constructor(t2, e2, n2) {
8577
8575
  this.ref = t2, this.formula = e2;
8578
8576
  const r2 = t2.colStart, s2 = t2.rowStart;
@@ -8607,12 +8605,12 @@ class Lh {
8607
8605
  }
8608
8606
  getShifted(t2) {
8609
8607
  if (!t2.after) return null;
8610
- const e2 = c.sanitizeRange(t2.after), n2 = [...this.calcs], r2 = new Lh(e2, this.formula, n2);
8608
+ const e2 = c.sanitizeRange(t2.after), n2 = [...this.calcs], r2 = new Bh(e2, this.formula, n2);
8611
8609
  return { ...t2.after, value: r2 };
8612
8610
  }
8613
8611
  setReferenceAt(t2, e2) {
8614
8612
  const n2 = this.formula.setReferenceAt(t2, e2), r2 = [...this.calcs];
8615
- return new Lh(this.ref, n2, r2);
8613
+ return new Bh(this.ref, n2, r2);
8616
8614
  }
8617
8615
  getMerged(t2, n2, r2) {
8618
8616
  const o2 = this.formula, s2 = t2.formula;
@@ -8625,7 +8623,7 @@ class Lh {
8625
8623
  l2 = new Array(t3);
8626
8624
  for (let e2 = 0; e2 < t3; e2++) l2[e2] = [...i2[e2], ...a2[e2]];
8627
8625
  }
8628
- return new Lh(n2, o2, l2);
8626
+ return new Bh(n2, o2, l2);
8629
8627
  }
8630
8628
  getSplit(t2, n2, r2) {
8631
8629
  const o2 = this.formula, s2 = n2 === e.Orientation.Column;
@@ -8639,11 +8637,11 @@ class Lh {
8639
8637
  i2[e2] = t4.slice(0, r2), a2[e2] = t4.slice(r2);
8640
8638
  }
8641
8639
  } else i2 = l2.slice(0, r2), a2 = l2.slice(r2);
8642
- return [new Lh(t2[0], o2, i2), new Lh(t2[1], o2, a2)];
8640
+ return [new Bh(t2[0], o2, i2), new Bh(t2[1], o2, a2)];
8643
8641
  }
8644
8642
  copyTo(t2, e2) {
8645
8643
  const n2 = this.formula;
8646
- return new Lh(t2, n2);
8644
+ return new Bh(t2, n2);
8647
8645
  }
8648
8646
  canTile(t2, e2) {
8649
8647
  return true;
@@ -8662,9 +8660,9 @@ class Lh {
8662
8660
  const zh = Object.freeze({ break: true });
8663
8661
  var Ph;
8664
8662
  (Ph || (Ph = {})).Type = { Style: "style", Continuous: "continuous", Table: "table", Merge: "merge", Hyperlink: "hyperlink", Comments: "comments", Unlock: "unlock", Contentful: "contentful", Conditional: "conditional", Formula: "formula", Spill: "spill", Pending: "pending", CalcError: "calcError", Validation: "dataValidation" };
8665
- const Hh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: false, [Ph.Type.Merge]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Formula]: false, [Ph.Type.Spill]: false, [Ph.Type.Pending]: false, [Ph.Type.CalcError]: false, [Ph.Type.Contentful]: false, [Ph.Type.Conditional]: false, [Ph.Type.Continuous]: false }), Wh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: false, [Ph.Type.Merge]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Formula]: false, [Ph.Type.Spill]: false, [Ph.Type.Pending]: false, [Ph.Type.CalcError]: false, [Ph.Type.Conditional]: false, [Ph.Type.Continuous]: false }), Vh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: true, [Ph.Type.Merge]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Formula]: false });
8663
+ const Wh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: false, [Ph.Type.Merge]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Formula]: false, [Ph.Type.Spill]: false, [Ph.Type.Pending]: false, [Ph.Type.CalcError]: false, [Ph.Type.Contentful]: false, [Ph.Type.Conditional]: false, [Ph.Type.Continuous]: false }), Hh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: false, [Ph.Type.Merge]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Formula]: false, [Ph.Type.Spill]: false, [Ph.Type.Pending]: false, [Ph.Type.CalcError]: false, [Ph.Type.Conditional]: false, [Ph.Type.Continuous]: false }), Vh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: true, [Ph.Type.Merge]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Formula]: false });
8666
8664
  Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Table]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Comments]: false, [Ph.Type.Unlock]: false, [Ph.Type.Contentful]: false, [Ph.Type.Formula]: false });
8667
- const jh = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Continuous]: false, [Ph.Type.Contentful]: false }), $h = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", Gh = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Uh = "The range is outside of the bounds of the sheet.", Jh = "Listener can not be null", qh = "We can't insert items. The sheet is protected.", Kh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Xh = "Overlapping ranges can not be merged.", Yh = "We can't insert cells because this would push values off the end of the worksheet. These cells may appear empty but they have some formatting or formulas. Delete enough rows or columns and try again.", Qh = "Unable to partially fill over merged cells.", Zh = "Unable to sort merged cells unless they are all the same size.", td = "Sheet has been closed. No further operations are allowed.", ed = "IteratorContext can only be used during visit.", nd = "When using addresses directly from the sheet do not include the sheet name.", rd = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, od = "'setValue' expects a single value; when working with an array use 'setValue'.", sd = "Multiple selection ranges can not be copied.", id = "Unable to determine source.", ad = "When pasting before or after the cut area both areas must align.";
8665
+ const $h = Object.freeze({ [Ph.Type.Style]: false, [Ph.Type.Hyperlink]: false, [Ph.Type.Continuous]: false, [Ph.Type.Contentful]: false }), jh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", Gh = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Uh = "The range is outside of the bounds of the sheet.", Jh = "Listener can not be null", Kh = "We can't insert items. The sheet is protected.", qh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Xh = "Overlapping ranges can not be merged.", Yh = "We can't insert cells because this would push values off the end of the worksheet. These cells may appear empty but they have some formatting or formulas. Delete enough rows or columns and try again.", Qh = "Unable to partially fill over merged cells.", Zh = "Unable to sort merged cells unless they are all the same size.", td = "Sheet has been closed. No further operations are allowed.", ed = "IteratorContext can only be used during visit.", nd = "When using addresses directly from the sheet do not include the sheet name.", rd = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, od = "'setValue' expects a single value; when working with an array use 'setValue'.", sd = "Multiple selection ranges can not be copied.", id = "Unable to determine source.", ad = "When pasting before or after the cut area both areas must align.";
8668
8666
  var ld, cd;
8669
8667
  (cd = ld || (ld = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, cd.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
8670
8668
  class hd {
@@ -8720,10 +8718,10 @@ const dd = (t2) => {
8720
8718
  n2 && "]" !== s2 && '"' !== s2 ? e2 += s2 : '"' === s2 ? (e2 += "\\0022", n2 = !n2) : ["[", "]", ",", "#", ".", "@", "/", ":", ";", "-", " "].includes(s2) ? (e2 += "\\" + s2, "[" === s2 ? n2 = true : "]" === s2 && (n2 = false)) : ["(", ")"].includes(s2) ? e2 += "_" === r2 ? "\\" + s2 : "\\\\\\" + s2 : ["$"].includes(s2) ? e2 += "\\0022" + s2 + "\\0022" : e2 += s2, r2 = s2;
8721
8719
  }
8722
8720
  return '"' + e2 + '"';
8723
- }, Ed = "Thin", Cd = "Hairline", bd = "Extra Light", vd = "Ultra Light", xd = "Light", Id = "Normal", Rd = "Regular", Ad = "Medium", Md = "Semi Bold", Td = "Demi Bold", Nd = "Bold", Fd = "Extra Bold", kd = "Ultra Bold", Od = "Black", Dd = "Heavy", Bd = "Extra Black", Ld = "Ultra Black", zd = "lighter", Pd = "normal", Hd = "bold", Wd = "bolder", Vd = /* @__PURE__ */ new Map();
8724
- Vd.set(o.textToKey(Ed), 100), Vd.set(o.textToKey(Cd), 100), Vd.set(o.textToKey(bd), 200), Vd.set(o.textToKey(vd), 200), Vd.set(o.textToKey(xd), 300), Vd.set(o.textToKey(Id), 400), Vd.set(o.textToKey(Rd), 400), Vd.set(o.textToKey(Ad), 500), Vd.set(o.textToKey(Md), 600), Vd.set(o.textToKey(Td), 600), Vd.set(o.textToKey(Id), 400), Vd.set(o.textToKey(Nd), 700), Vd.set(o.textToKey(Fd), 800), Vd.set(o.textToKey(kd), 800), Vd.set(o.textToKey(Od), 900), Vd.set(o.textToKey(Dd), 900), Vd.set(o.textToKey(Bd), 950), Vd.set(o.textToKey(Ld), 950), Vd.set(o.textToKey(zd), 100), Vd.set(o.textToKey(Pd), 400), Vd.set(o.textToKey(Hd), 700), Vd.set(o.textToKey(Wd), 700);
8725
- const jd = "xx-small", $d = "x-small", Gd = "small", Ud = "medium", Jd = "large", qd = "x-large", Kd = "xx-large", Xd = "xxx-large", Yd = "smaller", Qd = "larger", Zd = "math", tu = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), eu = /* @__PURE__ */ new Map();
8726
- eu.set(o.textToKey(jd), (t2) => 0.4 * t2), eu.set(o.textToKey($d), (t2) => 0.5 * t2), eu.set(o.textToKey(Gd), (t2) => 0.6 * t2), eu.set(o.textToKey(Ud), (t2) => t2), eu.set(o.textToKey(Jd), (t2) => 1.1 * t2), eu.set(o.textToKey(qd), (t2) => 1.25 * t2), eu.set(o.textToKey(Kd), (t2) => 1.5 * t2), eu.set(o.textToKey(Xd), (t2) => 2 * t2), eu.set(o.textToKey(Yd), (t2) => 0.9 * t2), eu.set(o.textToKey(Qd), (t2) => 1.1 * t2), eu.set(o.textToKey(Zd), (t2) => t2);
8721
+ }, Ed = "Thin", Cd = "Hairline", bd = "Extra Light", vd = "Ultra Light", xd = "Light", Id = "Normal", Rd = "Regular", Ad = "Medium", Md = "Semi Bold", Td = "Demi Bold", Nd = "Bold", Fd = "Extra Bold", kd = "Ultra Bold", Od = "Black", Dd = "Heavy", Ld = "Extra Black", Bd = "Ultra Black", zd = "lighter", Pd = "normal", Wd = "bold", Hd = "bolder", Vd = /* @__PURE__ */ new Map();
8722
+ Vd.set(o.textToKey(Ed), 100), Vd.set(o.textToKey(Cd), 100), Vd.set(o.textToKey(bd), 200), Vd.set(o.textToKey(vd), 200), Vd.set(o.textToKey(xd), 300), Vd.set(o.textToKey(Id), 400), Vd.set(o.textToKey(Rd), 400), Vd.set(o.textToKey(Ad), 500), Vd.set(o.textToKey(Md), 600), Vd.set(o.textToKey(Td), 600), Vd.set(o.textToKey(Id), 400), Vd.set(o.textToKey(Nd), 700), Vd.set(o.textToKey(Fd), 800), Vd.set(o.textToKey(kd), 800), Vd.set(o.textToKey(Od), 900), Vd.set(o.textToKey(Dd), 900), Vd.set(o.textToKey(Ld), 950), Vd.set(o.textToKey(Bd), 950), Vd.set(o.textToKey(zd), 100), Vd.set(o.textToKey(Pd), 400), Vd.set(o.textToKey(Wd), 700), Vd.set(o.textToKey(Hd), 700);
8723
+ const $d = "xx-small", jd = "x-small", Gd = "small", Ud = "medium", Jd = "large", Kd = "x-large", qd = "xx-large", Xd = "xxx-large", Yd = "smaller", Qd = "larger", Zd = "math", tu = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), eu = /* @__PURE__ */ new Map();
8724
+ eu.set(o.textToKey($d), (t2) => 0.4 * t2), eu.set(o.textToKey(jd), (t2) => 0.5 * t2), eu.set(o.textToKey(Gd), (t2) => 0.6 * t2), eu.set(o.textToKey(Ud), (t2) => t2), eu.set(o.textToKey(Jd), (t2) => 1.1 * t2), eu.set(o.textToKey(Kd), (t2) => 1.25 * t2), eu.set(o.textToKey(qd), (t2) => 1.5 * t2), eu.set(o.textToKey(Xd), (t2) => 2 * t2), eu.set(o.textToKey(Yd), (t2) => 0.9 * t2), eu.set(o.textToKey(Qd), (t2) => 1.1 * t2), eu.set(o.textToKey(Zd), (t2) => t2);
8727
8725
  const nu = (t2, e2 = 11, n2 = "pt") => {
8728
8726
  if (!t2) return null;
8729
8727
  let r2 = e2;
@@ -8833,10 +8831,10 @@ const Su = new RegExp(`(\\s*(?:${pu}))`, "g"), wu = new RegExp("(\\s*[0-9]*[.]?[
8833
8831
  const a2 = n2 ? n2.trim() : null;
8834
8832
  let l2 = null === i2 ? s2 : `${i2.toString()} ${s2}`, c2 = gu.get(l2);
8835
8833
  return c2 || (c2 = gu.get(s2)), c2 ? { color: a2, style: c2 } : null;
8836
- }, Eu = "start", Cu = "end", bu = "left", vu = "right", xu = "center", Iu = "justify", Ru = "justify-all", Au = "baseline", Mu = "top", Tu = "middle", Nu = "bottom", Fu = "sub", ku = "text-top", Ou = "justify", Du = "distributed", Bu = /* @__PURE__ */ new Map();
8837
- Bu.set(o.textToKey(Eu), Ro.HorizontalAlignment.Left), Bu.set(o.textToKey(bu), Ro.HorizontalAlignment.Left), Bu.set(o.textToKey(Cu), Ro.HorizontalAlignment.Right), Bu.set(o.textToKey(vu), Ro.HorizontalAlignment.Right), Bu.set(o.textToKey(xu), Ro.HorizontalAlignment.Center), Bu.set(o.textToKey(Iu), Ro.HorizontalAlignment.Justify), Bu.set(o.textToKey(Ru), Ro.HorizontalAlignment.Justify);
8838
- const Lu = /* @__PURE__ */ new Map();
8839
- Lu.set(o.textToKey(Au), Ro.VerticalAlignment.Bottom), Lu.set(o.textToKey(Mu), Ro.VerticalAlignment.Top), Lu.set(o.textToKey(Tu), Ro.VerticalAlignment.Center), Lu.set(o.textToKey(Nu), Ro.VerticalAlignment.Bottom), Lu.set(o.textToKey(Fu), Ro.VerticalAlignment.Bottom), Lu.set(o.textToKey(ku), Ro.VerticalAlignment.Top), Lu.set(o.textToKey(Ou), Ro.VerticalAlignment.Justify), Lu.set(o.textToKey(Du), Ro.VerticalAlignment.Distributed);
8834
+ }, Eu = "start", Cu = "end", bu = "left", vu = "right", xu = "center", Iu = "justify", Ru = "justify-all", Au = "baseline", Mu = "top", Tu = "middle", Nu = "bottom", Fu = "sub", ku = "text-top", Ou = "justify", Du = "distributed", Lu = /* @__PURE__ */ new Map();
8835
+ Lu.set(o.textToKey(Eu), Ro.HorizontalAlignment.Left), Lu.set(o.textToKey(bu), Ro.HorizontalAlignment.Left), Lu.set(o.textToKey(Cu), Ro.HorizontalAlignment.Right), Lu.set(o.textToKey(vu), Ro.HorizontalAlignment.Right), Lu.set(o.textToKey(xu), Ro.HorizontalAlignment.Center), Lu.set(o.textToKey(Iu), Ro.HorizontalAlignment.Justify), Lu.set(o.textToKey(Ru), Ro.HorizontalAlignment.Justify);
8836
+ const Bu = /* @__PURE__ */ new Map();
8837
+ Bu.set(o.textToKey(Au), Ro.VerticalAlignment.Bottom), Bu.set(o.textToKey(Mu), Ro.VerticalAlignment.Top), Bu.set(o.textToKey(Tu), Ro.VerticalAlignment.Center), Bu.set(o.textToKey(Nu), Ro.VerticalAlignment.Bottom), Bu.set(o.textToKey(Fu), Ro.VerticalAlignment.Bottom), Bu.set(o.textToKey(ku), Ro.VerticalAlignment.Top), Bu.set(o.textToKey(Ou), Ro.VerticalAlignment.Justify), Bu.set(o.textToKey(Du), Ro.VerticalAlignment.Distributed);
8840
8838
  const zu = (t2) => {
8841
8839
  if (t2 instanceof li) return { color: t2.toString() };
8842
8840
  if ("string" == typeof t2) try {
@@ -8853,7 +8851,7 @@ const zu = (t2) => {
8853
8851
  console.warn("error", t3);
8854
8852
  }
8855
8853
  return t2;
8856
- }, merge: (t2, e2, n2) => t2 }, Hu = { shorthand: (t2, e2) => {
8854
+ }, merge: (t2, e2, n2) => t2 }, Wu = { shorthand: (t2, e2) => {
8857
8855
  if (t2.isIStroke) return t2.getProperties();
8858
8856
  if ("string" == typeof t2 && (t2 = yu(t2, (t3) => {
8859
8857
  try {
@@ -8864,7 +8862,7 @@ const zu = (t2) => {
8864
8862
  })), !t2) return null;
8865
8863
  const n2 = {};
8866
8864
  return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), n2;
8867
- }, properties: { color: Pu } }, Wu = { shorthand: (t2, e2) => {
8865
+ }, properties: { color: Pu } }, Hu = { shorthand: (t2, e2) => {
8868
8866
  if (t2.isIBorder) return t2.getProperties();
8869
8867
  if ("string" == typeof t2) {
8870
8868
  const n2 = yu(t2, (t3) => {
@@ -8877,7 +8875,7 @@ const zu = (t2) => {
8877
8875
  return { left: n2, right: n2, top: n2, bottom: n2, horizontal: null, vertical: null, diagonalUp: null, diagonalDown: null };
8878
8876
  }
8879
8877
  return t2;
8880
- }, properties: { top: Hu, left: Hu, right: Hu, bottom: Hu, horizontal: Hu, vertical: Hu, diagonalUp: Hu, diagonalDown: Hu } }, Vu = { shorthand: (t2, e2) => {
8878
+ }, properties: { top: Wu, left: Wu, right: Wu, bottom: Wu, horizontal: Wu, vertical: Wu, diagonalUp: Wu, diagonalDown: Wu } }, Vu = { shorthand: (t2, e2) => {
8881
8879
  if ("string" == typeof t2) {
8882
8880
  let e3 = Ri.Styles.lookupDefault(t2);
8883
8881
  return void 0 !== e3 ? e3 : t2;
@@ -8886,7 +8884,7 @@ const zu = (t2) => {
8886
8884
  return Si(t2);
8887
8885
  }
8888
8886
  return null;
8889
- } }, ju = { shorthand: (t2, e2) => {
8887
+ } }, $u = { shorthand: (t2, e2) => {
8890
8888
  if (t2.isIStyledFont) return t2.toJSON();
8891
8889
  if ("string" == typeof t2) {
8892
8890
  const e3 = dd(t2);
@@ -8917,7 +8915,7 @@ const zu = (t2) => {
8917
8915
  return e3;
8918
8916
  })(t2);
8919
8917
  return isNaN(n2) || "number" != typeof n2 ? null : n2;
8920
- } }, underline: { shorthand: (t2, e2) => t2 ? true === t2 ? rs.UnderlineStyle.Single : pd(t2) : rs.UnderlineStyle.None } } }, $u = { properties: { indent: { shorthand: (t2, e2) => {
8918
+ } }, underline: { shorthand: (t2, e2) => t2 ? true === t2 ? rs.UnderlineStyle.Single : pd(t2) : rs.UnderlineStyle.None } } }, ju = { properties: { indent: { shorthand: (t2, e2) => {
8921
8919
  let n2 = t2;
8922
8920
  return "string" == typeof t2 && (n2 = parseFloat(t2)), isNaN(n2) || "number" != typeof n2 ? null : n2;
8923
8921
  } }, rotation: { shorthand: (t2, e2) => {
@@ -8927,7 +8925,7 @@ const zu = (t2) => {
8927
8925
  if (!t3) return;
8928
8926
  let n2 = t3;
8929
8927
  return "string" == typeof t3 && (n2 = zu(t3)), t3.isIColor && (n2 = { color: t3.toString() }), n2;
8930
- })), t2), arrayType: { shorthand: (t2) => t2 = zu(t2), properties: { color: Pu } } } } }, qu = { shorthand: (t2, e2) => {
8928
+ })), t2), arrayType: { shorthand: (t2) => t2 = zu(t2), properties: { color: Pu } } } } }, Ku = { shorthand: (t2, e2) => {
8931
8929
  if ("object" == typeof t2) {
8932
8930
  const e3 = t2;
8933
8931
  (e3.foreground || e3.background || e3.patternType) && (e3.type = Gs.Type.Pattern, e3.patternType = e3.patternType ?? Gs.BuiltInSheetPattern.Solid);
@@ -8938,19 +8936,19 @@ const zu = (t2) => {
8938
8936
  e2?.toJSON && (e2 = e2.toJSON());
8939
8937
  const r2 = Gs.BuiltInSheetPattern.MediumGray;
8940
8938
  return e2?.type === Gs.Type.Pattern ? { ...e2, ...t2 } : e2?.type === Gs.Type.Solid ? { patternType: r2, foreground: e2?.color ?? Js.Named.WindowText, background: Js.Scheme.Bg1, ...t2 } : e2?.type === Gs.Type.Gradient ? { patternType: r2, foreground: e2?.stops?.[0]?.color ?? Js.Named.WindowText, background: e2?.stops?.[1]?.color ?? Js.Scheme.Bg1, ...t2 } : t2 ? { type: Gs.Type.Pattern, patternType: Gs.BuiltInSheetPattern.Solid, foreground: Js.Named.WindowText, background: Js.Scheme.Bg1, ...t2 } : null;
8941
- }, properties: { foreground: Pu, background: Pu } }, Ku = [Gu, Uu, Ju, qu], Xu = [];
8942
- for (let t2 = 0; t2 < Ku.length; t2++) {
8943
- const e2 = Ku[t2]?.shorthand;
8939
+ }, properties: { foreground: Pu, background: Pu } }, qu = [Gu, Uu, Ju, Ku], Xu = [];
8940
+ for (let t2 = 0; t2 < qu.length; t2++) {
8941
+ const e2 = qu[t2]?.shorthand;
8944
8942
  Xu.push(e2);
8945
8943
  }
8946
- const Yu = Xu.length, Qu = { properties: { font: ju, fill: { shorthand: (t2, e2) => {
8944
+ const Yu = Xu.length, Qu = { properties: { font: $u, fill: { shorthand: (t2, e2) => {
8947
8945
  t2.isIFill && (t2 = t2.toJSON());
8948
8946
  for (let n2 = 0; n2 < Yu; n2++) {
8949
8947
  let r2 = Xu[n2](t2, e2);
8950
8948
  if (r2?.type) return r2;
8951
8949
  }
8952
8950
  return t2;
8953
- }, getSubType: (t2) => t2.type === Gs.Type.None ? Gu : t2.type === Gs.Type.Solid ? Uu : t2.type === Gs.Type.Gradient ? Ju : t2.type === Gs.Type.Pattern ? qu : null }, alignment: $u, border: Wu, numberFormat: Vu } }, Zu = { properties: { style: Qu } }, tg = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: o.EmptyArray, spacingChars: o.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: o.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: false, asDate: null, isDateFormat: false, isTimeFormat: false, isDate1904: false }), eg = (e2, n2, r2, s2, i2, a2 = false) => {
8951
+ }, getSubType: (t2) => t2.type === Gs.Type.None ? Gu : t2.type === Gs.Type.Solid ? Uu : t2.type === Gs.Type.Gradient ? Ju : t2.type === Gs.Type.Pattern ? Ku : null }, alignment: ju, border: Hu, numberFormat: Vu } }, Zu = { properties: { style: Qu } }, tg = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: o.EmptyArray, spacingChars: o.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: o.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: false, asDate: null, isDateFormat: false, isTimeFormat: false, isDate1904: false }), eg = (e2, n2, r2, s2, i2, a2 = false) => {
8954
8952
  if (null == e2) return tg;
8955
8953
  let l2 = "", c2 = null, h2 = null, d2 = null;
8956
8954
  if (r2 === t.Error) l2 = e2.getLabel();
@@ -9870,12 +9868,12 @@ const Og = new class {
9870
9868
  } else p2 = g2;
9871
9869
  let _2 = false;
9872
9870
  return void 0 !== c2 && (null === c2 ? (a2.value = null, a2.type = t.Null) : (a2.value = c2, a2.type = l2), _2 = true), void 0 !== p2 && (a2.style = p2, _2 = true), void 0 !== d2 && (a2.hyperlink = d2, _2 = true), void 0 !== u2 && (a2.formula = u2, _2 = true), s2 || (a2.stringToParse = m2, _2 = true), _2 ? (a2.type = l2, a2) : void 0;
9873
- }, Bg = (t2, e2, n2, r2) => eg(n2, e2, t2, e2.getNumberFormat(), (t3) => r2.styles.parseColor(t3), r2.date1904), Lg = (e2, n2, r2, o2, s2 = false) => {
9871
+ }, Lg = (t2, e2, n2, r2) => eg(n2, e2, t2, e2.getNumberFormat(), (t3) => r2.styles.parseColor(t3), r2.date1904), Bg = (e2, n2, r2, o2, s2 = false) => {
9874
9872
  if (e2 === t.Null) return null;
9875
9873
  let i2 = "";
9876
9874
  if (s2) i2 = "" + r2;
9877
9875
  else {
9878
- const t2 = Bg(e2, n2, r2, o2);
9876
+ const t2 = Lg(e2, n2, r2, o2);
9879
9877
  if (t2.formattedRuns) {
9880
9878
  const e3 = t2.formattedRuns.runs;
9881
9879
  for (let t3 = 0; t3 < e3.length; t3++) {
@@ -9899,7 +9897,7 @@ const Og = new class {
9899
9897
  }, Pg = (e2, n2) => {
9900
9898
  const r2 = n2.getAlignment(), o2 = r2.getRotation(), s2 = r2.getHorizontal();
9901
9899
  return 0 !== o2 && s2 === Ro.HorizontalAlignment.General ? o2 > 0 && o2 < 90 || o2 > 180 && o2 <= 270 ? Ro.HorizontalAlignment.Right : Ro.HorizontalAlignment.Left : s2 === Ro.HorizontalAlignment.General ? e2 === t.Null ? Ro.HorizontalAlignment.Left : e2 === t.Boolean || e2 === t.Error ? Ro.HorizontalAlignment.Center : "@" === n2.getNumberFormat() ? Ro.HorizontalAlignment.Left : e2 === t.Number ? Ro.HorizontalAlignment.Right : Ro.HorizontalAlignment.Left : s2;
9902
- }, Hg = (e2, n2, r2, o2, s2, i2, a2, l2, c2) => {
9900
+ }, Wg = (e2, n2, r2, o2, s2, i2, a2, l2, c2) => {
9903
9901
  if (r2 === t.Null || "" === s2) return null;
9904
9902
  const h2 = n2;
9905
9903
  if (!((e3, n3, r3 = false, o3 = false) => {
@@ -9914,14 +9912,14 @@ const Og = new class {
9914
9912
  const a3 = s3.getVertical();
9915
9913
  return a3 !== Ro.VerticalAlignment.Justify && a3 !== Ro.VerticalAlignment.Distributed;
9916
9914
  })(r2, o2, null !== i2 && i2.colIndex + 1 === h2, null !== a2 && a2.colIndex - 1 === h2)) return null;
9917
- const d2 = $g(r2, o2, s2, c2), u2 = o2.getAlignment(), g2 = u2.getHorizontal(), m2 = u2.getOverflow() === Ro.Overflow.Wrap || r2 === t.String && (g2 === Ro.HorizontalAlignment.Justify || g2 === Ro.HorizontalAlignment.Distributed || u2.getVertical() === Ro.VerticalAlignment.Justify || u2.getVertical() === Ro.VerticalAlignment.Distributed), f2 = g2 === Ro.HorizontalAlignment.Fill, _2 = g2 === Ro.HorizontalAlignment.CenterContinuous || f2;
9915
+ const d2 = jg(r2, o2, s2, c2), u2 = o2.getAlignment(), g2 = u2.getHorizontal(), m2 = u2.getOverflow() === Ro.Overflow.Wrap || r2 === t.String && (g2 === Ro.HorizontalAlignment.Justify || g2 === Ro.HorizontalAlignment.Distributed || u2.getVertical() === Ro.VerticalAlignment.Justify || u2.getVertical() === Ro.VerticalAlignment.Distributed), f2 = g2 === Ro.HorizontalAlignment.Fill, _2 = g2 === Ro.HorizontalAlignment.CenterContinuous || f2;
9918
9916
  if (!d2 && !_2) return null;
9919
9917
  const S2 = ((t2) => t2 === Ro.HorizontalAlignment.Center || t2 === Ro.HorizontalAlignment.CenterContinuous ? p.Center : t2 === Ro.HorizontalAlignment.Right ? p.Right : p.Left)(Pg(r2, o2));
9920
9918
  let w2 = 0, y2 = 0, E2 = 0, C2 = 0, b2 = 1;
9921
9919
  if (_2 && null !== s2 && l2) {
9922
- Kg.colIndex = n2, Kg.rowIndex = e2;
9920
+ qg.colIndex = n2, qg.rowIndex = e2;
9923
9921
  const t2 = l2.colEnd;
9924
- b2 = Math.min(c2.nextContentful(Kg, t2), t2) - n2 + 1;
9922
+ b2 = Math.min(c2.nextContentful(qg, t2), t2) - n2 + 1;
9925
9923
  }
9926
9924
  const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
9927
9925
  let R2 = x2(h2);
@@ -9929,11 +9927,11 @@ const Og = new class {
9929
9927
  let M2 = x2(h2 + b2), T2 = M2 - R2, N2 = h2, F2 = h2;
9930
9928
  const k2 = { x: 0, y: 0, width: T2, height: d2?.height ?? 0 };
9931
9929
  const O2 = h2 - h2 + b2;
9932
- let D2 = d2 ? d2.width - T2 : 0, B2 = k2;
9933
- T2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (F2 = I2(M2 + D2), null !== a2 && (F2 = Math.min(F2, a2.colIndex - 1)), M2 = x2(F2), C2 = D2, y2 = F2 - h2), S2 !== p.Right && S2 !== p.Center || (N2 = I2(R2 - D2), null !== i2 && (N2 = Math.max(N2, i2.colIndex + 1)), R2 = x2(N2), E2 = D2, w2 = h2 - N2), k2.x = A2 - R2, B2.x = k2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), k2.width = M2 - R2, B2 = { ...k2 }, B2.width = T2);
9934
- return { anchorBounds: k2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: B2 };
9930
+ let D2 = d2 ? d2.width - T2 : 0, L2 = k2;
9931
+ T2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (F2 = I2(M2 + D2), null !== a2 && (F2 = Math.min(F2, a2.colIndex - 1)), M2 = x2(F2), C2 = D2, y2 = F2 - h2), S2 !== p.Right && S2 !== p.Center || (N2 = I2(R2 - D2), null !== i2 && (N2 = Math.max(N2, i2.colIndex + 1)), R2 = x2(N2), E2 = D2, w2 = h2 - N2), k2.x = A2 - R2, L2.x = k2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), k2.width = M2 - R2, L2 = { ...k2 }, L2.width = T2);
9932
+ return { anchorBounds: k2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: L2 };
9935
9933
  };
9936
- class Wg {
9934
+ class Hg {
9937
9935
  constructor(t2, e2) {
9938
9936
  this._styles = t2, this._ri = e2;
9939
9937
  const n2 = e2?.table;
@@ -9977,8 +9975,8 @@ class Wg {
9977
9975
  }
9978
9976
  const Vg = (t2, e2, n2, r2) => {
9979
9977
  const o2 = r2.styles;
9980
- return vg(o2, n2 ? new Wg(o2, n2) : null, e2, r2.styleUpdater);
9981
- }, jg = (e2, n2, r2, s2, i2, a2, l2, c2 = null, h2 = kg) => {
9978
+ return vg(o2, n2 ? new Hg(o2, n2) : null, e2, r2.styleUpdater);
9979
+ }, $g = (e2, n2, r2, s2, i2, a2, l2, c2 = null, h2 = kg) => {
9982
9980
  if (null === r2) return n2 ? n2.getBestFit() : null;
9983
9981
  const d2 = e2 === t.String, u2 = n2.getFont(), g2 = u2.getWeight(), m2 = u2.getSize(), f2 = u2.getFamily(), p2 = n2.getAlignment(), _2 = p2.getOverflow(), S2 = p2.getRotation(), w2 = p2.getVertical(), y2 = n2.getNumberFormat(), E2 = d2 && _2 === Ro.Overflow.Visible, C2 = d2 && (_2 === Ro.Overflow.Wrap || w2 === Ro.VerticalAlignment.Justify || w2 === Ro.VerticalAlignment.Distributed), b2 = (c2 ?? "") + "\0" + m2 + f2 + g2 + y2 + S2 + E2 + C2 + a2 + l2 + (c2 ? "" : r2), v2 = h2.get(b2);
9984
9982
  if (v2) return v2;
@@ -9986,7 +9984,7 @@ const Vg = (t2, e2, n2, r2) => {
9986
9984
  const R2 = zg(e2, n2), A2 = R2.top + R2.bottom + +um(n2);
9987
9985
  let M2 = false, T2 = false;
9988
9986
  l2 && (T2 = true, (0 !== S2 || C2) && (T2 = false));
9989
- const N2 = T2 ? void 0 : Lg(e2, n2, r2, s2), F2 = R2.left + R2.right + 2;
9987
+ const N2 = T2 ? void 0 : Bg(e2, n2, r2, s2), F2 = R2.left + R2.right + 2;
9990
9988
  if (N2) {
9991
9989
  if (e2 === t.Number && "General" === y2 && a2) {
9992
9990
  let t2 = r2, e3 = o.splitNumber(t2), s3 = "";
@@ -10012,11 +10010,11 @@ const Vg = (t2, e2, n2, r2) => {
10012
10010
  a2 && M2 && (x2 = 0);
10013
10011
  const k2 = { width: x2, height: I2 }, O2 = Object.freeze(k2);
10014
10012
  return h2.set(b2, O2), O2;
10015
- }, $g = (t2, e2, n2, r2) => {
10013
+ }, jg = (t2, e2, n2, r2) => {
10016
10014
  const o2 = zg(t2, e2), s2 = Pg(t2, e2);
10017
10015
  let i2 = o2.left + o2.right;
10018
10016
  s2 === Ro.HorizontalAlignment.Left ? i2 = o2.right : s2 === Ro.HorizontalAlignment.Right ? i2 = o2.left : s2 === Ro.HorizontalAlignment.Center && (i2 = o2.left + o2.right);
10019
- const a2 = jg(t2, e2, n2, r2, Number.MAX_SAFE_INTEGER, false, false);
10017
+ const a2 = $g(t2, e2, n2, r2, Number.MAX_SAFE_INTEGER, false, false);
10020
10018
  return { width: Math.ceil(a2.width - i2), height: Math.ceil(a2.height) };
10021
10019
  };
10022
10020
  class Gg {
@@ -10044,7 +10042,7 @@ class Gg {
10044
10042
  return this._options.sheet;
10045
10043
  }
10046
10044
  select(t2) {
10047
- return this._options.opener("#" + Kc(this._coords), t2);
10045
+ return this._options.opener("#" + qc(this._coords), t2);
10048
10046
  }
10049
10047
  getColumnFilter() {
10050
10048
  if (!this._ri) return null;
@@ -10070,7 +10068,7 @@ class Gg {
10070
10068
  let o2 = null;
10071
10069
  if (r2 === t.String || n2 && n2.continuous) {
10072
10070
  const t2 = this.getStyle(), e3 = this._coords;
10073
- o2 = Hg(e3.rowIndex, e3.colIndex, r2, t2, this._v, this._p, this._n, n2?.continuous?.getCoords() ?? null, this._options);
10071
+ o2 = Wg(e3.rowIndex, e3.colIndex, r2, t2, this._v, this._p, this._n, n2?.continuous?.getCoords() ?? null, this._options);
10074
10072
  }
10075
10073
  return null === o2 || 0 === o2.leftIndex && 0 === o2.rightIndex && o2.colSpan <= 1 ? (this._to = null, null) : (this._to = o2, this._to);
10076
10074
  }
@@ -10104,7 +10102,7 @@ class Gg {
10104
10102
  return null !== this._v;
10105
10103
  }
10106
10104
  getBestFit(t2, e2 = false) {
10107
- return void 0 === t2 && (t2 = this._options.sheet.getColumnHeaders().getSpanSize(this._coords.colIndex) ?? 64), jg(this._t, this.getStyle(), this._v, this._options, t2, e2, false);
10105
+ return void 0 === t2 && (t2 = this._options.sheet.getColumnHeaders().getSpanSize(this._coords.colIndex) ?? 64), $g(this._t, this.getStyle(), this._v, this._options, t2, e2, false);
10108
10106
  }
10109
10107
  getInsets() {
10110
10108
  if (null === this._v) return this.getStyle().getInsets();
@@ -10114,7 +10112,7 @@ class Gg {
10114
10112
  let n2, r2;
10115
10113
  if (e2 && (r2 = this.getFormulaText()), n2 = r2 ?? this._v, null === n2) return null;
10116
10114
  const o2 = this.getStyle();
10117
- return r2 ? ((e3, n3) => n3 === t.Null ? null : xs(n3, e3.getFont(), e3.getAlignment(), false, true))(o2, n2, this._options) : Lg(this._t, o2, n2, this._options, e2);
10115
+ return r2 ? ((e3, n3) => n3 === t.Null ? null : xs(n3, e3.getFont(), e3.getAlignment(), false, true))(o2, n2, this._options) : Bg(this._t, o2, n2, this._options, e2);
10118
10116
  }
10119
10117
  getValue() {
10120
10118
  return this._v;
@@ -10165,7 +10163,7 @@ class Gg {
10165
10163
  const e2 = this._v;
10166
10164
  return eg(e2, this.getStyle(), this._t, t2, (t3) => this._options.styles.parseColor(t3), this._isDate1904());
10167
10165
  }
10168
- return Bg(this._t, this.getStyle(), this._v, this._options);
10166
+ return Lg(this._t, this.getStyle(), this._v, this._options);
10169
10167
  }
10170
10168
  toDate() {
10171
10169
  return this._t !== t.Number ? null : this._ri ? this.getNumberFormat().asDate : null;
@@ -10237,7 +10235,7 @@ class Gg {
10237
10235
  let t2 = this._ri?.spills;
10238
10236
  if (!t2) return null;
10239
10237
  if (!this._coords) return null;
10240
- Array.isArray(t2) || (qg[0] = t2, t2 = qg);
10238
+ Array.isArray(t2) || (Kg[0] = t2, t2 = Kg);
10241
10239
  let e2 = null;
10242
10240
  for (let n2 = 0; !e2 && n2 < t2.length; n2++) {
10243
10241
  const r2 = t2[n2];
@@ -10249,7 +10247,7 @@ class Gg {
10249
10247
  let t2 = this._ri?.spills;
10250
10248
  if (!t2) return false;
10251
10249
  if (!this._coords) return null;
10252
- Array.isArray(t2) || (qg[0] = t2, t2 = qg);
10250
+ Array.isArray(t2) || (Kg[0] = t2, t2 = Kg);
10253
10251
  for (let e2 = 0; e2 < t2.length; e2++) {
10254
10252
  const n2 = t2[e2].getCoords();
10255
10253
  if (this._coords.colIndex === n2.colStart && this._coords.rowIndex === n2.rowStart) return false;
@@ -10320,7 +10318,7 @@ class Jg {
10320
10318
  return this.toText();
10321
10319
  }
10322
10320
  }
10323
- const qg = [null], Kg = { colIndex: -1, rowIndex: -1 };
10321
+ const Kg = [null], qg = { colIndex: -1, rowIndex: -1 };
10324
10322
  let Xg;
10325
10323
  const Yg = (t2, n2, r2, o2 = false) => {
10326
10324
  const s2 = r2 === e.Orientation.Row, i2 = t2.length, a2 = new Array(i2);
@@ -10372,7 +10370,7 @@ const Yg = (t2, n2, r2, o2 = false) => {
10372
10370
  return Xg || (Xg = new Qm().getNormal(), Xg);
10373
10371
  }
10374
10372
  toString() {
10375
- return `${this._coords ? Kc(this._coords) : Pc} => ${this._v ?? "{blank}"}`;
10373
+ return `${this._coords ? qc(this._coords) : Pc} => ${this._v ?? "{blank}"}`;
10376
10374
  }
10377
10375
  }(), am = () => lm, lm = { forEach: () => {
10378
10376
  }, [Symbol.iterator]: om, entries: om, values: om, select: Nh, find: Nh, calculate: Nh, getCell: () => im, getValue: rm, setValue: Nh, setFormula: Nh, setValues: Nh, updateCells: Nh, getCells: () => [[im]], getStyle: Nh, getValues: () => [[null]], toText: () => "", getBounds: rm, getIntersect: am, getUnion: am, getDifferences: Nh, getResizeBy: am, getResizeTo: am, getOffsetBy: am, getOffsetTo: am, getFixed: am, getUsedRange: am, getEntireRows: am, getEntireColumns: am, getSurrounding: Nh, getExtended: Nh, isEntireRows: em, isEntireColumns: em, isEntireRange: em, getWidth: sm, getHeight: sm, size: 0, sort: Nh, clear: Nh, setHyperlink: Nh, setComments: Nh, merge: Nh, unmerge: Nh, getMerges: Nh, insert: Nh, insertFrom: Nh, delete: Nh, getDefaultShiftOrientation: Nh, getDefaultSortCriteria: Nh, autoFill: Nh, autoFit: Nh, getSnapshot: Nh, copyFrom: Nh, doBatch: Nh, startIncrementalUpdates: Nh, getRowHeaders: Nh, getColumnHeaders: Nh, getCounts: Nh, getCount: sm, isContentful: em, addListener: Nh, getColumnStart: sm, getRowStart: sm, getColumnEnd: sm, getRowEnd: sm, getRowCount: sm, getColumnCount: sm, getVisible: Nh, getCoords: rm, isEmpty: nm, toString: () => Pc, getA1: () => Pc, isInvalid: nm, getSheet: rm, isReadOnly: nm, isICellRange: true };
@@ -10478,7 +10476,7 @@ const hm = /^[\\+-]?[0-9]*\.?[0-9]*$/, dm = (t2, e2, r2) => {
10478
10476
  return f2 && (t3 += f2.asOADate), p2 && (t3 += p2.parsed.oaDateTime), s2.value = t3, s2;
10479
10477
  }
10480
10478
  const _2 = n.getBuiltInByLabel(t2);
10481
- return _2 ? (s2.value = _2, s2) : (s2.value = t2, jo(t2) ? s2.hyperlink = t2 : Go(t2) && (s2.hyperlink = t2, s2.hyperlink.toLowerCase().startsWith("mailto:") || (s2.hyperlink = `mailto:${s2.hyperlink}`)), t2.includes("\n") && (s2.style = { ...s2?.style, alignment: { overflow: Ro.Overflow.Wrap } }), s2);
10479
+ return _2 ? (s2.value = _2, s2) : (s2.value = t2, $o(t2) ? s2.hyperlink = t2 : Go(t2) && (s2.hyperlink = t2, s2.hyperlink.toLowerCase().startsWith("mailto:") || (s2.hyperlink = `mailto:${s2.hyperlink}`)), t2.includes("\n") && (s2.style = { ...s2?.style, alignment: { overflow: Ro.Overflow.Wrap } }), s2);
10482
10480
  }, um = (t2) => {
10483
10481
  const e2 = t2.getFont().getUnderline() === rs.UnderlineStyle.SingleAccounting, n2 = t2.getFont().getUnderline() === rs.UnderlineStyle.DoubleAccounting;
10484
10482
  let r2 = 0;
@@ -10518,7 +10516,7 @@ const hm = /^[\\+-]?[0-9]*\.?[0-9]*$/, dm = (t2, e2, r2) => {
10518
10516
  }, fm = (t2, n2, r2, o2) => {
10519
10517
  const s2 = o2?.asJSDate;
10520
10518
  let i2;
10521
- r2 ? i2 = Wh : (s2 || o2?.includeMergeOverflow) && (i2 = {}, s2 && (i2[Ph.Type.Style] = false, i2[Ph.Type.Table] = false), o2.includeMergeOverflow && (i2[Ph.Type.Merge] = false));
10519
+ r2 ? i2 = Hh : (s2 || o2?.includeMergeOverflow) && (i2 = {}, s2 && (i2[Ph.Type.Style] = false, i2[Ph.Type.Table] = false), o2.includeMergeOverflow && (i2[Ph.Type.Merge] = false));
10522
10520
  const a2 = o2?.orientation ?? e.Orientation.Row, l2 = o2?.maxSize ?? 1e4, c2 = t2({ includeEmpty: true, orientation: a2, reverse: o2?.reverse, ignoreHidden: o2?.ignoreHidden, includeMergeOverflow: o2?.includeMergeOverflow, includeRangeTypes: i2, bounds: n2, ignoreCellDetails: !s2 }), h2 = a2 !== e.Orientation.Row, d2 = [];
10523
10521
  let u2, g2 = -1, m2 = null, f2 = 0;
10524
10522
  for (u2 = c2.next(); !u2.done; ) {
@@ -10943,7 +10941,7 @@ class Dm extends xm {
10943
10941
  return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
10944
10942
  }
10945
10943
  }
10946
- const Bm = "A table must have a least one row for the data.", Lm = "Table1", zm = Object.freeze({ showRowStripes: true, showColumnStripes: false, showFirstColumn: false, showLastColumn: false }), Pm = (t2, e2, n2) => {
10944
+ const Lm = "A table must have a least one row for the data.", Bm = "Table1", zm = Object.freeze({ showRowStripes: true, showColumnStripes: false, showFirstColumn: false, showLastColumn: false }), Pm = (t2, e2, n2) => {
10947
10945
  if (t2.length !== e2.length) return console.warn("make columns the same length"), false;
10948
10946
  const r2 = /* @__PURE__ */ new Set();
10949
10947
  for (let t3 = 0; t3 < e2.length; t3++) {
@@ -10978,7 +10976,7 @@ const Bm = "A table must have a least one row for the data.", Lm = "Table1", zm
10978
10976
  }
10979
10977
  return a2 > 0;
10980
10978
  };
10981
- class Hm {
10979
+ class Wm {
10982
10980
  constructor(t2, e2, n2, r2) {
10983
10981
  this._name = t2, this._filter = e2, this._sort = n2, this._offset = r2;
10984
10982
  }
@@ -11007,7 +11005,7 @@ class Hm {
11007
11005
  return this._filter?.getFieldAt(this._offset)?.hiddenButton ?? false;
11008
11006
  }
11009
11007
  }
11010
- class Wm extends ca {
11008
+ class Hm extends ca {
11011
11009
  constructor(t2, e2, n2, r2) {
11012
11010
  super({ ...r2, type: "namedTable" }), this._names = t2, this._sheet = e2, this._table = n2;
11013
11011
  const o2 = this;
@@ -11317,7 +11315,7 @@ class Vm extends xm {
11317
11315
  if (!e2) return null;
11318
11316
  const n2 = this.getSort();
11319
11317
  let r2 = null;
11320
- return r2 = this._getState()?.columns[t2], null === r2 ? null : new Hm(r2.name, e2, n2, t2);
11318
+ return r2 = this._getState()?.columns[t2], null === r2 ? null : new Wm(r2.name, e2, n2, t2);
11321
11319
  }
11322
11320
  getVisibleRefRangeCoords() {
11323
11321
  return this._visibleRange ? this._visibleRange : this.getAnchorCoords();
@@ -11399,7 +11397,7 @@ class Vm extends xm {
11399
11397
  _processContainerShift(t2) {
11400
11398
  if (t2.isSplit) throw new Error("We can not partially insert or remove cells as this would split a table.");
11401
11399
  const n2 = this._getState();
11402
- if (t2.after && t2.after.rowStart + n2.headerRowCount >= t2.after.rowEnd + 1) throw new Error(Bm);
11400
+ if (t2.after && t2.after.rowStart + n2.headerRowCount >= t2.after.rowEnd + 1) throw new Error(Lm);
11403
11401
  const r2 = t2.orientation === e.Orientation.Column;
11404
11402
  if (t2.amount < 0 && t2.after && !r2) {
11405
11403
  const e2 = this._getHeaderCoords();
@@ -11455,7 +11453,7 @@ class Vm extends xm {
11455
11453
  const t3 = [...r2.columns];
11456
11454
  l2.colEnd > o2.colEnd ? t3.splice(o2.colEnd + 1, 0, ...Array(l2.colEnd - o2.colEnd).fill(null)) : l2.colEnd < o2.colEnd && (a3 = t3.splice(l2.colEnd - 1, o2.colEnd - l2.colEnd)), l2.colStart < o2.colStart ? t3.splice(0, 0, ...Array(o2.colStart - l2.colStart).fill(null)) : l2.colStart > o2.colStart && (a3 = a3.concat(t3.splice(0, l2.colStart - o2.colStart))), e2 = t3;
11457
11455
  }
11458
- if (this._options.setContainerCoords?.(l2), this._updateState({ anchor: l2, columns: e2 }, { description: n2 }), !this._getUsedCoords()) throw new Error(Bm);
11456
+ if (this._options.setContainerCoords?.(l2), this._updateState({ anchor: l2, columns: e2 }, { description: n2 }), !this._getUsedCoords()) throw new Error(Lm);
11459
11457
  if (i3 || s3) {
11460
11458
  const t3 = s3 ? { columns: e2, forceUpdate: true } : this._columnsFromSheet();
11461
11459
  t3 && (this._updateColumns(t3.columns, false, t3.forceUpdate, a3), this._processHeaderListener());
@@ -11507,16 +11505,16 @@ class Vm extends xm {
11507
11505
  }
11508
11506
  _createNamed() {
11509
11507
  const t2 = this._sheet?.getName();
11510
- return t2 && this._names ? new Wm(this._names, this._sheet, this, { transactions: this._getTransactions(), json: { name: this.getName() } }) : null;
11508
+ return t2 && this._names ? new Hm(this._names, this._sheet, this, { transactions: this._getTransactions(), json: { name: this.getName() } }) : null;
11511
11509
  }
11512
11510
  _fromJSON(t2) {
11513
11511
  const e2 = t2 ?? {}, n2 = { headerRowCount: 1, totalsRowCount: 0 };
11514
11512
  var r2;
11515
11513
  if (e2.name && (n2.name = e2.name), e2.ref && (e2.ref = (r2 = e2.ref) && "string" == typeof r2 ? oh(r2) : r2), this._names) {
11516
- const t3 = this._names.findValidName(n2.name ?? Lm);
11514
+ const t3 = this._names.findValidName(n2.name ?? Bm);
11517
11515
  n2.name !== t3 && (n2.name = t3);
11518
11516
  }
11519
- n2.name || (n2.name = Lm), e2.description && (n2.description = e2.description), void 0 !== e2.headerRowCount && (n2.headerRowCount = e2.headerRowCount), void 0 !== e2.totalsRowCount && (n2.totalsRowCount = e2.totalsRowCount), n2.columns = e2.columns ?? o.EmptyArray, n2.styleOptions = { ...zm, ...e2.styleOptions };
11517
+ n2.name || (n2.name = Bm), e2.description && (n2.description = e2.description), void 0 !== e2.headerRowCount && (n2.headerRowCount = e2.headerRowCount), void 0 !== e2.totalsRowCount && (n2.totalsRowCount = e2.totalsRowCount), n2.columns = e2.columns ?? o.EmptyArray, n2.styleOptions = { ...zm, ...e2.styleOptions };
11520
11518
  const s2 = "Insert Table";
11521
11519
  this._updateState(n2, { description: s2 });
11522
11520
  const i2 = this._columnsFromSheet();
@@ -11529,8 +11527,8 @@ class Vm extends xm {
11529
11527
  return true;
11530
11528
  }
11531
11529
  }
11532
- let jm = null;
11533
- const $m = "TableStyleMedium2", Gm = (t2, e2, n2) => {
11530
+ let $m = null;
11531
+ const jm = "TableStyleMedium2", Gm = (t2, e2, n2) => {
11534
11532
  if (!t2.border) return t2;
11535
11533
  let r2 = ((t3, e3, n3) => {
11536
11534
  if (!t3) return t3;
@@ -11558,8 +11556,8 @@ class Um {
11558
11556
  }
11559
11557
  getPropertiesAt(t2, e2) {
11560
11558
  const n2 = this._table, r2 = this._styles, o2 = this._properties;
11561
- qm.rowIndex = t2, qm.colIndex = e2;
11562
- const s2 = n2.getVisibleCellCoords(qm), i2 = n2.getVisibleRefRangeCoords();
11559
+ Km.rowIndex = t2, Km.colIndex = e2;
11560
+ const s2 = n2.getVisibleCellCoords(Km), i2 = n2.getVisibleRefRangeCoords();
11563
11561
  if (!i2) return null;
11564
11562
  const a2 = Math.max(0, i2.colEnd - i2.colStart) + 1, l2 = Math.max(0, i2.rowEnd - i2.rowStart) + 1, c2 = Math.max(0, s2.rowIndex - i2.rowStart), h2 = Math.max(0, s2.colIndex - i2.colStart), d2 = { rowIndex: c2, colIndex: h2 }, u2 = n2.getStyleOptions();
11565
11563
  let g2 = {}, m2 = false, p2 = 0;
@@ -11678,8 +11676,8 @@ class Jm {
11678
11676
  return true;
11679
11677
  }
11680
11678
  }
11681
- const qm = { rowIndex: 0, colIndex: 0 };
11682
- class Km extends Ag {
11679
+ const Km = { rowIndex: 0, colIndex: 0 };
11680
+ class qm extends Ag {
11683
11681
  constructor(t2, e2) {
11684
11682
  super(t2, c.EmptyRange, e2);
11685
11683
  }
@@ -11725,7 +11723,7 @@ class Km extends Ag {
11725
11723
  }
11726
11724
  class Xm {
11727
11725
  constructor(t2, e2, n2, r2 = null) {
11728
- this._name = e2.name, this._properties = e2, this._rangeStyle = new Km(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
11726
+ this._name = e2.name, this._properties = e2, this._rangeStyle = new qm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
11729
11727
  }
11730
11728
  getRanged() {
11731
11729
  return this._rangeStyle;
@@ -11808,8 +11806,8 @@ class Qm {
11808
11806
  }
11809
11807
  _initializeTableStyles() {
11810
11808
  const t2 = (() => {
11811
- if (jm) return jm;
11812
- jm = /* @__PURE__ */ new Map();
11809
+ if ($m) return $m;
11810
+ $m = /* @__PURE__ */ new Map();
11813
11811
  const t3 = (t4, e4) => {
11814
11812
  if (0 === e4) return "TableStyleNone";
11815
11813
  let n3 = "Custom";
@@ -11824,49 +11822,49 @@ class Qm {
11824
11822
  a2.push(["dk1", e3("bg1", -15), "dk1"]), s2(a2, (t4) => [e3(t4, -25), e3(t4, 80), t4]), i2 = 1;
11825
11823
  for (let e4 = 0; e4 < 7; e4++) {
11826
11824
  const s3 = t3("l", e4 + i2), l2 = a2[e4][0], c2 = a2[e4][1] ?? l2, h2 = a2[e4][2] ?? l2;
11827
- jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { top: o2(h2), bottom: o2(h2) } }, headerRow: { font: r2(l2, true), border: { bottom: o2(h2) } }, totalRow: { font: r2(l2, true), border: { top: o2(h2) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(c2) }, firstColumnStripe: { fill: n2(c2) } }));
11825
+ $m.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { top: o2(h2), bottom: o2(h2) } }, headerRow: { font: r2(l2, true), border: { bottom: o2(h2) } }, totalRow: { font: r2(l2, true), border: { top: o2(h2) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(c2) }, firstColumnStripe: { fill: n2(c2) } }));
11828
11826
  }
11829
11827
  i2 += 7, a2 = [], a2.push(["dk1", "dk1", "lt1"]), s2(a2, (t4) => ["dk1", t4, "lt1"]);
11830
11828
  for (let e4 = 0; e4 < 7; e4++) {
11831
11829
  const s3 = t3("l", e4 + i2), l2 = a2[e4][0], c2 = a2[e4][1], h2 = a2[e4][2];
11832
- jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2) } }, headerRow: { font: r2(h2, true), fill: n2(c2) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { border: { top: o2(c2) } }, secondRowStripe: { border: { top: o2(c2) } }, firstColumnStripe: { border: { left: o2(c2) } }, secondColumnStripe: { border: { left: o2(c2) } } }));
11830
+ $m.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2) } }, headerRow: { font: r2(h2, true), fill: n2(c2) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { border: { top: o2(c2) } }, secondRowStripe: { border: { top: o2(c2) } }, firstColumnStripe: { border: { left: o2(c2) } }, secondColumnStripe: { border: { left: o2(c2) } } }));
11833
11831
  }
11834
11832
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15)]), s2(a2, (t4) => [t4, e3(t4, 80)]);
11835
11833
  for (let e4 = 0; e4 < 7; e4++) {
11836
11834
  const s3 = t3("l", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1];
11837
- jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2), horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(l2, true) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(h2) }, firstColumnStripe: { fill: n2(h2) } }));
11835
+ $m.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2), horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(l2, true) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(h2) }, firstColumnStripe: { fill: n2(h2) } }));
11838
11836
  }
11839
11837
  i2 = 1, a2 = [], a2.push(["dk1", "dk1", e3("bg1", -15)]), s2(a2, (t4) => [t4, e3(t4, 40), e3(t4, 80)]);
11840
11838
  for (let e4 = 0; e4 < 7; e4++) {
11841
11839
  const s3 = t3("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], d2 = a2[e4][1], u2 = a2[e4][2];
11842
- jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(d2), right: o2(d2), top: o2(d2), bottom: o2(d2), horizontal: o2(d2) } }, headerRow: { font: r2(c2, true), fill: n2(h2) }, totalRow: { font: r2(l2, true), border: { top: o2(h2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
11840
+ $m.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(d2), right: o2(d2), top: o2(d2), bottom: o2(d2), horizontal: o2(d2) } }, headerRow: { font: r2(c2, true), fill: n2(h2) }, totalRow: { font: r2(l2, true), border: { top: o2(h2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
11843
11841
  }
11844
11842
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t4) => [t4, e3(t4, 80), e3(t4, 60)]);
11845
11843
  for (let e4 = 0; e4 < 7; e4++) {
11846
11844
  const s3 = t3("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], d2 = a2[e4][1], u2 = a2[e4][2];
11847
- jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(d2), border: { horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(c2, true), fill: n2(h2), border: { bottom: o2(c2, ci.StrokeStyle.Thick) } }, totalRow: { font: r2(c2, true), fill: n2(h2), border: { top: o2(c2, ci.StrokeStyle.Thick) } }, firstColumn: { font: r2(c2, true), fill: n2(h2) }, lastColumn: { font: r2(c2, true), fill: n2(h2) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
11845
+ $m.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(d2), border: { horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(c2, true), fill: n2(h2), border: { bottom: o2(c2, ci.StrokeStyle.Thick) } }, totalRow: { font: r2(c2, true), fill: n2(h2), border: { top: o2(c2, ci.StrokeStyle.Thick) } }, firstColumn: { font: r2(c2, true), fill: n2(h2) }, lastColumn: { font: r2(c2, true), fill: n2(h2) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
11848
11846
  }
11849
11847
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t4) => [t4, e3(t4, 80), e3(t4, 60)]);
11850
11848
  for (let s3 = 0; s3 < 7; s3++) {
11851
11849
  const l2 = t3("m", s3 + i2), c2 = "dk1", h2 = "lt1", d2 = a2[s3][0], u2 = e3("bg1", -15);
11852
- jm.set(l2.toLocaleLowerCase(), Object.freeze({ name: l2, wholeTable: { font: r2(c2), border: { top: o2(c2, ci.StrokeStyle.Medium), bottom: o2(c2, ci.StrokeStyle.Medium), left: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0, right: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0, horizontal: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0, vertical: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0 } }, headerRow: { font: r2(h2, true), fill: n2(d2), border: { bottom: o2(c2, ci.StrokeStyle.Medium) } }, totalRow: { border: { top: o2(c2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(h2, true), fill: n2(d2) }, lastColumn: { font: r2(h2, true), fill: n2(d2) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
11850
+ $m.set(l2.toLocaleLowerCase(), Object.freeze({ name: l2, wholeTable: { font: r2(c2), border: { top: o2(c2, ci.StrokeStyle.Medium), bottom: o2(c2, ci.StrokeStyle.Medium), left: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0, right: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0, horizontal: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0, vertical: 0 === s3 ? o2(c2, ci.StrokeStyle.Thin) : void 0 } }, headerRow: { font: r2(h2, true), fill: n2(d2), border: { bottom: o2(c2, ci.StrokeStyle.Medium) } }, totalRow: { border: { top: o2(c2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(h2, true), fill: n2(d2) }, lastColumn: { font: r2(h2, true), fill: n2(d2) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
11853
11851
  }
11854
11852
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35), "dk1"]), s2(a2, (t4) => [t4, e3(t4, 80), e3(t4, 60), e3(t4, 40)]);
11855
11853
  for (let e4 = 0; e4 < 7; e4++) {
11856
11854
  const s3 = t3("m", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1], d2 = a2[e4][2], u2 = a2[e4][3];
11857
- jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2), border: { top: o2(u2), right: o2(u2), left: o2(u2), bottom: o2(u2), vertical: o2(u2), horizontal: o2(u2) } }, headerRow: { font: r2(l2), fill: n2(h2) }, totalRow: { font: r2(l2), border: { top: o2(c2, ci.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
11855
+ $m.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2), border: { top: o2(u2), right: o2(u2), left: o2(u2), bottom: o2(u2), vertical: o2(u2), horizontal: o2(u2) } }, headerRow: { font: r2(l2), fill: n2(h2) }, totalRow: { font: r2(l2), border: { top: o2(c2, ci.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
11858
11856
  }
11859
11857
  i2 = 1, a2 = [], a2.push(["dk1", e3("dk1", 15), e3("dk1", 25), e3("dk1", 50)]), s2(a2, (t4) => ["dk1", e3(t4, -50), e3(t4, -25), t4]);
11860
11858
  for (let e4 = 0; e4 < 7; e4++) {
11861
11859
  const s3 = t3("d", e4 + i2), l2 = "lt1", c2 = a2[e4][0], h2 = a2[e4][1], d2 = a2[e4][2], u2 = a2[e4][3];
11862
- jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(u2) }, headerRow: { font: r2(l2, true), fill: n2(c2), border: { bottom: o2(l2, ci.StrokeStyle.Medium) } }, totalRow: { font: r2(l2, true), fill: n2(h2), border: { top: o2(l2, ci.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true), fill: n2(d2), border: { right: o2(l2, ci.StrokeStyle.Medium) } }, lastColumn: { font: r2(l2, true), fill: n2(d2), border: { left: o2(l2, ci.StrokeStyle.Medium) } }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
11860
+ $m.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(u2) }, headerRow: { font: r2(l2, true), fill: n2(c2), border: { bottom: o2(l2, ci.StrokeStyle.Medium) } }, totalRow: { font: r2(l2, true), fill: n2(h2), border: { top: o2(l2, ci.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true), fill: n2(d2), border: { right: o2(l2, ci.StrokeStyle.Medium) } }, lastColumn: { font: r2(l2, true), fill: n2(d2), border: { left: o2(l2, ci.StrokeStyle.Medium) } }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
11863
11861
  }
11864
11862
  i2 += 7, a2 = [], a2.push([e3("bg1", -15), "dk1", e3("bg1", -35)]), a2.push([e3("accent1", 80), "accent2", e3("accent1", 60)]), a2.push([e3("accent3", 80), "accent4", e3("accent3", 60)]), a2.push([e3("accent5", 80), "accent6", e3("accent5", 60)]);
11865
11863
  for (let e4 = 0; e4 < 4; e4++) {
11866
11864
  const s3 = t3("d", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], d2 = a2[e4][1], u2 = a2[e4][2];
11867
- jm.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2) }, headerRow: { font: r2(c2, true), fill: n2(d2) }, totalRow: { font: r2(l2, true), border: { top: o2(l2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
11865
+ $m.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2) }, headerRow: { font: r2(c2, true), fill: n2(d2) }, totalRow: { font: r2(l2, true), border: { top: o2(l2, ci.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
11868
11866
  }
11869
- return jm;
11867
+ return $m;
11870
11868
  })(), e2 = /* @__PURE__ */ new Map();
11871
11869
  return t2.forEach((t3, n2) => {
11872
11870
  const r2 = t3.name.toLowerCase(), o2 = new Jm(this, t3, true);
@@ -11958,14 +11956,14 @@ class Qm {
11958
11956
  }
11959
11957
  setDefaultTableStyle(t2) {
11960
11958
  const e2 = t2?.toLowerCase();
11961
- return this._defaultTableStyle = this._customTableStyles.get(e2) ?? this._builtInsTableStyles.get(e2) ?? this._builtInsTableStyles.get($m.toLowerCase()), this._emitter.notify("onTableStylesChange"), this._emitter.notify("onAnyChange"), t2 === this._defaultTableStyle.getName();
11959
+ return this._defaultTableStyle = this._customTableStyles.get(e2) ?? this._builtInsTableStyles.get(e2) ?? this._builtInsTableStyles.get(jm.toLowerCase()), this._emitter.notify("onTableStylesChange"), this._emitter.notify("onAnyChange"), t2 === this._defaultTableStyle.getName();
11962
11960
  }
11963
11961
  getDefaultTableStyle() {
11964
- return this._defaultTableStyle || (this._defaultTableStyle = this._builtInsTableStyles.get($m.toLowerCase())), this._defaultTableStyle;
11962
+ return this._defaultTableStyle || (this._defaultTableStyle = this._builtInsTableStyles.get(jm.toLowerCase())), this._defaultTableStyle;
11965
11963
  }
11966
11964
  _deleteCustomTableStyle(t2) {
11967
11965
  const e2 = this._customTableStyles.get(t2?.toLowerCase());
11968
- return !!e2 && (this._customTableStyles.delete(t2.toLowerCase()), this._defaultTableStyle?.getName() === e2.getName() && (this._defaultTableStyle = this._builtInsTableStyles.get($m.toLowerCase())), this._emitter.notify("onTableStylesChange"), this._emitter.notify("onAnyChange"), true);
11966
+ return !!e2 && (this._customTableStyles.delete(t2.toLowerCase()), this._defaultTableStyle?.getName() === e2.getName() && (this._defaultTableStyle = this._builtInsTableStyles.get(jm.toLowerCase())), this._emitter.notify("onTableStylesChange"), this._emitter.notify("onAnyChange"), true);
11969
11967
  }
11970
11968
  setCustomTableStyle(t2, e2) {
11971
11969
  const n2 = this._setCustomTableStyleInternal(t2, e2);
@@ -12037,7 +12035,7 @@ class Qm {
12037
12035
  }
12038
12036
  o2.length > 0 && (e2.named = o2);
12039
12037
  const s2 = {};
12040
- this._defaultTableStyle && this._defaultTableStyle.getName() !== $m && (s2.defaultTableStyle = this._defaultTableStyle.getName());
12038
+ this._defaultTableStyle && this._defaultTableStyle.getName() !== jm && (s2.defaultTableStyle = this._defaultTableStyle.getName());
12041
12039
  const i2 = {}, a2 = this.getCustomTableStyles(), l2 = a2.length;
12042
12040
  for (let t3 = 0; t3 < l2; t3++) {
12043
12041
  const e3 = a2[t3], n3 = e3.toJSON();
@@ -12075,7 +12073,7 @@ class Qm {
12075
12073
  this._indexedColors = this._fromJSONIndexedColors(t2.indexedColors);
12076
12074
  const e2 = t2.named;
12077
12075
  for (let n3 = 0; e2 && n3 < e2.length; n3++) this._setCustomCellStyleInternal(t2.named[n3]);
12078
- let n2 = $m;
12076
+ let n2 = jm;
12079
12077
  if (this._defaultTableStyle = null, t2.tables) {
12080
12078
  t2.tables.defaultTableStyle && (n2 = t2.tables.defaultTableStyle);
12081
12079
  const e3 = t2.tables.styles, r3 = e3 ? Object.keys(e3) : null, o3 = r3 ? r3.length : 0;
@@ -12503,8 +12501,8 @@ class Sf {
12503
12501
  const e3 = n2.length;
12504
12502
  for (let r4 = 0; r4 < e3; r4++) {
12505
12503
  const e4 = n2[r4];
12506
- $f.length = 0;
12507
- const l2 = $f;
12504
+ jf.length = 0;
12505
+ const l2 = jf;
12508
12506
  s3.search(e4, false, l2), o2.search(e4, false, l2);
12509
12507
  const c2 = l2.length;
12510
12508
  if (0 === c2) continue;
@@ -12646,7 +12644,7 @@ class Sf {
12646
12644
  const n3 = o3[t4];
12647
12645
  if (n3 === l3) continue;
12648
12646
  Jf[0] = { colStart: r3.ref.colStart, rowStart: l3, colEnd: r3.ref.colEnd, rowEnd: n3 - 1, value: r3 }, Jf[1] = { colStart: r3.ref.colStart, rowStart: n3, colEnd: r3.ref.colStart, rowEnd: r3.ref.rowEnd, value: r3 };
12649
- const s4 = Kf(r3, Jf, e.Orientation.Row, n3);
12647
+ const s4 = qf(r3, Jf, e.Orientation.Row, n3);
12650
12648
  let i4 = s4[0];
12651
12649
  _2(i4, a3), g2.push(i4), i4 = s4[1], _2(i4, a3), g2.push(i4), l3 = n3;
12652
12650
  }
@@ -12694,7 +12692,7 @@ class Sf {
12694
12692
  _formulaAt(t2, e2) {
12695
12693
  Uf.colStart = e2, Uf.rowStart = t2, Uf.colEnd = e2, Uf.rowEnd = t2;
12696
12694
  const n2 = this._formulaSpatial.search(Uf);
12697
- if (0 === n2.length) throw new Error(`No formula found at ${Kc({ rowIndex: t2, colIndex: e2 })}`);
12695
+ if (0 === n2.length) throw new Error(`No formula found at ${qc({ rowIndex: t2, colIndex: e2 })}`);
12698
12696
  return n2[0];
12699
12697
  }
12700
12698
  getDirectPrecedentsAt(t2, e2, n2) {
@@ -12916,7 +12914,7 @@ class Sf {
12916
12914
  let n5 = e3[t4];
12917
12915
  if (mf(i4.rowStart, i4.colStart, n5) && a3.getCycleId() === o2) {
12918
12916
  r3 || (r3 = [], s3 = /* @__PURE__ */ new Set());
12919
- const t5 = Jc(n5.colStart) + $c(n5.rowStart);
12917
+ const t5 = Jc(n5.colStart) + jc(n5.rowStart);
12920
12918
  if (s3.has(t5)) continue;
12921
12919
  s3.add(t5), r3.push({ colStart: i4.colStart, rowStart: i4.rowStart, colEnd: i4.colEnd, rowEnd: i4.rowEnd, value: n5.value.getError() });
12922
12920
  }
@@ -12949,7 +12947,7 @@ class Sf {
12949
12947
  if ((a2 > 0 || i2) && l2.getStatus() === lf.Status.Starting) return this._addToPending(() => {
12950
12948
  const e2 = this._setInputs(t2, n2, r2), s3 = { formulaInserts: e2.inserts ?? o.EmptyArray, formulaRemoves: e2.removes ?? o.EmptyArray, cycleId: this._cycleId, bounds: c.unionRanges(c.unionRangesArrays(e2.inserts), c.unionRangesArrays(e2.removes)) };
12951
12949
  return Promise.resolve(s3);
12952
- }), qf;
12950
+ }), Kf;
12953
12951
  const h2 = this._values.getOrientation() !== e.Orientation.Row, d2 = this._spillSpatial, u2 = this._errorSpatial, g2 = this._contentfulSpatial, m2 = [];
12954
12952
  let f2, p2, _2 = i2 ? [] : null, S2 = this._values;
12955
12953
  if (t2 && t2.tuples) {
@@ -12988,7 +12986,7 @@ class Sf {
12988
12986
  const n3 = t3.rowStart, r3 = t3.colStart, o2 = { ...t3, value: null };
12989
12987
  if (s2.insertNonOverlapping(o2, { noMerge: true, onIntersect: (t4, e3) => null === t4.value ? null : (C2 || (C2 = []), C2.push(t4), e3) }), null !== e2) {
12990
12988
  y2.sheetName = this._options.getSheetName?.(), y2.rowIndex = n3, y2.colIndex = r3;
12991
- const o3 = b2.parse(w2, e2), s3 = new Lh(t3, o3), i3 = { ...t3, value: s3 };
12989
+ const o3 = b2.parse(w2, e2), s3 = new Bh(t3, o3), i3 = { ...t3, value: s3 };
12992
12990
  E2 || (E2 = []), E2.push(i3);
12993
12991
  }
12994
12992
  }, x2 = _2 ? _2.length : 0;
@@ -13029,21 +13027,21 @@ class Sf {
13029
13027
  }
13030
13028
  _markAndPlan(t2, e2, n2) {
13031
13029
  let r2;
13032
- Df = 0, Hf = 0, Wf = 0, jf = 0;
13030
+ Df = 0, Wf = 0, Hf = 0, $f = 0;
13033
13031
  const s2 = this._precedentSpatial, i2 = this._formulaSpatial;
13034
- Lf = 0, zf = 0;
13032
+ Bf = 0, zf = 0;
13035
13033
  const a2 = this._cycleId, l2 = e2.length;
13036
13034
  for (let t3 = 0; t3 < l2; t3++) {
13037
13035
  const r3 = e2[t3];
13038
- r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, Of[Df++] = r3, Bf[zf++] = r3);
13036
+ r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, Of[Df++] = r3, Lf[zf++] = r3);
13039
13037
  }
13040
13038
  const c2 = (e3, n3, o2) => {
13041
13039
  (t2 || e3.state === Dh) && (r2 || (r2 = []), r2.push(n3), t2 || o2(e3));
13042
13040
  }, h2 = (t3) => {
13043
- t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, Of[Df++] = t3, Bf[zf++] = t3);
13041
+ t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, Of[Df++] = t3, Lf[zf++] = t3);
13044
13042
  };
13045
- for (; Lf < zf; ) {
13046
- const t3 = Bf[Lf++], e3 = t3.colIndex, n3 = t3.rowIndex;
13043
+ for (; Bf < zf; ) {
13044
+ const t3 = Lf[Bf++], e3 = t3.colIndex, n3 = t3.rowIndex;
13047
13045
  bf.colStart = e3, bf.rowStart = n3, bf.colEnd = e3, bf.rowEnd = n3;
13048
13046
  const r3 = s2.search(bf), i3 = r3.length;
13049
13047
  if (0 === i3) t3.dependents = o.EmptyArray;
@@ -13078,14 +13076,14 @@ class Sf {
13078
13076
  }
13079
13077
  }
13080
13078
  }
13081
- e3.inDegree = l3, 0 === e3.inDegree && (Pf[Wf++] = e3);
13079
+ e3.inDegree = l3, 0 === e3.inDegree && (Pf[Hf++] = e3);
13082
13080
  }
13083
13081
  const d2 = (t3) => {
13084
- t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Pf[Wf++] = t3));
13082
+ t3.markId === n2 && (t3.inDegree--, 0 === t3.inDegree && (Pf[Hf++] = t3));
13085
13083
  };
13086
- for (; Hf < Wf; ) {
13087
- const t3 = Pf[Hf++];
13088
- Vf[jf++] = t3;
13084
+ for (; Wf < Hf; ) {
13085
+ const t3 = Pf[Wf++];
13086
+ Vf[$f++] = t3;
13089
13087
  const e3 = t3.colIndex, n3 = t3.rowIndex;
13090
13088
  bf.colStart = e3, bf.rowStart = n3, bf.colEnd = e3, bf.rowEnd = n3;
13091
13089
  const r3 = s2.search(bf), o2 = r3.length;
@@ -13094,7 +13092,7 @@ class Sf {
13094
13092
  s3 ? c2(s3, o3, d2) : Ef(o3, n3, e3, d2);
13095
13093
  }
13096
13094
  }
13097
- return jf < Df ? { completed: false, onces: r2 } : { completed: true, onces: r2 };
13095
+ return $f < Df ? { completed: false, onces: r2 } : { completed: true, onces: r2 };
13098
13096
  }
13099
13097
  _evaluate(t2) {
13100
13098
  const r2 = this._calculation._getContext(), o2 = this._calculation._getScope();
@@ -13107,9 +13105,9 @@ class Sf {
13107
13105
  o2.spillSpatial = this._spillSpatial, o2.values = p2;
13108
13106
  const y2 = r2.getEntireCoords.bind(r2);
13109
13107
  let E2;
13110
- for (let e2 = 0; e2 < jf; e2++) {
13108
+ for (let e2 = 0; e2 < $f; e2++) {
13111
13109
  const C2 = Vf[e2];
13112
- if (C2.state === Bh && l2 === C2.cycleId) {
13110
+ if (C2.state === Lh && l2 === C2.cycleId) {
13113
13111
  C2.state = Dh;
13114
13112
  continue;
13115
13113
  }
@@ -13147,8 +13145,8 @@ class Sf {
13147
13145
  const F2 = b2.formula;
13148
13146
  let k2, O2;
13149
13147
  const D2 = C2.pending;
13150
- let B2 = D2;
13151
- if ((A2 || C2.pendingPromise) && (B2 = true, k2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, B2 = false) : (C2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (o2.formula = F2, o2.colIndex = v2, o2.rowIndex = x2, k2 = F2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = k2 && k2.then ? k2 : null, B2 = !!O2), B2 !== D2 && (C2.pending = B2, w2 || (w2 = Ol(S2)), w2.append(T2, N2, B2)), O2 && (k2 = C2.cachedValue ?? null, !O2.__originator)) {
13148
+ let L2 = D2;
13149
+ if ((A2 || C2.pendingPromise) && (L2 = true, k2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, L2 = false) : (C2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (o2.formula = F2, o2.colIndex = v2, o2.rowIndex = x2, k2 = F2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = k2 && k2.then ? k2 : null, L2 = !!O2), L2 !== D2 && (C2.pending = L2, w2 || (w2 = Ol(S2)), w2.append(T2, N2, L2)), O2 && (k2 = C2.cachedValue ?? null, !O2.__originator)) {
13152
13150
  O2.__originator = l2;
13153
13151
  const t3 = C2;
13154
13152
  kf.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
@@ -13159,32 +13157,32 @@ class Sf {
13159
13157
  }, (t4) => {
13160
13158
  });
13161
13159
  }
13162
- let L2 = 1, z2 = 1;
13160
+ let B2 = 1, z2 = 1;
13163
13161
  const P2 = I2 instanceof pc;
13164
- let H2;
13165
- const W2 = I2 instanceof n.Spill;
13166
- if (P2 || W2) {
13162
+ let W2;
13163
+ const H2 = I2 instanceof n.Spill;
13164
+ if (P2 || H2) {
13167
13165
  Rf.colStart = v2, Rf.rowStart = x2, Rf.colEnd = v2, Rf.rowEnd = x2;
13168
13166
  const t3 = f2.search(Rf);
13169
- for (let e3 = 0; !H2 && e3 < t3.length; e3++) {
13167
+ for (let e3 = 0; !W2 && e3 < t3.length; e3++) {
13170
13168
  const n2 = t3[e3];
13171
- n2.colStart === v2 && n2.rowStart === x2 && (H2 = n2);
13169
+ n2.colStart === v2 && n2.rowStart === x2 && (W2 = n2);
13172
13170
  }
13173
- if (H2) {
13171
+ if (W2) {
13174
13172
  if (P2) {
13175
13173
  const t5 = I2;
13176
- L2 = t5.getWidth(), z2 = t5.getHeight();
13174
+ B2 = t5.getWidth(), z2 = t5.getHeight();
13177
13175
  }
13178
- const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 + z2 - 1 };
13179
- f2.remove(H2), H2 && H2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
13176
+ const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + B2 - 1, rowEnd: x2 + z2 - 1 };
13177
+ f2.remove(W2), W2 && W2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
13180
13178
  }
13181
13179
  }
13182
- let V2 = 1, j2 = 1;
13183
- const $2 = k2, G2 = $2?.isIRange;
13180
+ let V2 = 1, $2 = 1;
13181
+ const j2 = k2, G2 = j2?.isIRange;
13184
13182
  let U2, J2 = k2 instanceof n.Spill;
13185
- if (G2 && $2.size > 1) {
13186
- V2 = $2.getWidth(), j2 = $2.getHeight();
13187
- const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 + j2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
13183
+ if (G2 && j2.size > 1) {
13184
+ V2 = j2.getWidth(), $2 = j2.getHeight();
13185
+ const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 + $2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
13188
13186
  if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), J2 = o3, !J2) {
13189
13187
  const e4 = d2.search(t3);
13190
13188
  if (J2 = e4.length > 1, !J2 && 1 === e4.length) {
@@ -13194,23 +13192,23 @@ class Sf {
13194
13192
  }
13195
13193
  let s3, i3;
13196
13194
  if (J2) {
13197
- k2 = n.BuiltIn.Spill, V2 = 1, j2 = 1;
13195
+ k2 = n.BuiltIn.Spill, V2 = 1, $2 = 1;
13198
13196
  s3 = [[T2, [[N2, [k2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
13199
13197
  } else {
13200
- const e4 = ff($2, T2, N2);
13198
+ const e4 = ff(j2, T2, N2);
13201
13199
  e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
13202
13200
  }
13203
13201
  U2 = { ...t3, value: new Fh(t3, l2, J2) }, f2.insert(U2), E2 = _f(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new kh(i3, _2) });
13204
13202
  }
13205
- (!c.isEqualRanges(H2, U2) || J2 || W2) && (H2 && g2.insert(H2), U2 && g2.insert(U2)), V2 === L2 && j2 === z2 || (C2.state = Bh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, L2) - 1, rowEnd: x2 + Math.max(j2, z2) - 1 }), a2 = false);
13206
- let q2 = k2 && k2.isFormulaError ? k2 : null;
13207
- F2.getError() && (q2 = F2.getError()), (q2 || R2 && !t2) && (q2 && !q2.equals(R2) || R2 && R2.equals(q2)), C2.cachedValue = k2, s2[i2++] = C2;
13203
+ (!c.isEqualRanges(W2, U2) || J2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)), V2 === B2 && $2 === z2 || (C2.state = Lh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, B2) - 1, rowEnd: x2 + Math.max($2, z2) - 1 }), a2 = false);
13204
+ let K2 = k2 && k2.isFormulaError ? k2 : null;
13205
+ F2.getError() && (K2 = F2.getError()), (K2 || R2 && !t2) && (K2 && !K2.equals(R2) || R2 && R2.equals(K2)), C2.cachedValue = k2, s2[i2++] = C2;
13208
13206
  }
13209
13207
  if (o2.node = null, o2.colIndex = Number.MAX_SAFE_INTEGER, o2.rowIndex = Number.MAX_SAFE_INTEGER, w2) {
13210
13208
  const t3 = w2.done(true);
13211
13209
  this._notifyPending.load(t3);
13212
13210
  }
13213
- return i2 > 0 && (s2.length = i2, wf(s2, p2, u2, S2), i2 = 0), { completed: a2, dynamic: E2, count: jf };
13211
+ return i2 > 0 && (s2.length = i2, wf(s2, p2, u2, S2), i2 = 0), { completed: a2, dynamic: E2, count: $f };
13214
13212
  }
13215
13213
  async calculate(t2) {
13216
13214
  const e2 = this._calculation.getStatus();
@@ -13331,7 +13329,7 @@ class Sf {
13331
13329
  let p3 = m2.parse(u2, a3);
13332
13330
  const _2 = p3.getDirectPrecedentsAt(c2, f3, true, vf, xf), S2 = _2.length;
13333
13331
  1 === S2 && (p3 = p3.wrapImplicit(c2, f3, i2));
13334
- const w2 = { ...o3 }, y2 = new Lh(w2, p3);
13332
+ const w2 = { ...o3 }, y2 = new Bh(w2, p3);
13335
13333
  o3.value = y2, l2[t3] = o3;
13336
13334
  const E2 = o3.rowEnd, C2 = o3.colEnd - f3, b2 = E2 - c2, v2 = [];
13337
13335
  for (let t4 = 0; t4 < S2; t4++) {
@@ -13489,14 +13487,14 @@ const Af = (t2) => new wa(t2);
13489
13487
  let Mf = 0;
13490
13488
  const Tf = 1e4, Nf = new Array(Tf), Ff = new Array(Tf), kf = /* @__PURE__ */ new Set(), Of = new Array(Tf);
13491
13489
  let Df = 0;
13492
- const Bf = new Array(Tf);
13493
- let Lf = 0, zf = 0;
13490
+ const Lf = new Array(Tf);
13491
+ let Bf = 0, zf = 0;
13494
13492
  const Pf = new Array(Tf);
13495
- let Hf = 0, Wf = 0;
13493
+ let Wf = 0, Hf = 0;
13496
13494
  const Vf = new Array(Tf);
13497
- let jf = 0;
13498
- const $f = new Array(Tf), Gf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Uf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Jf = [null, null], qf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
13499
- function Kf(t2, e2, n2, r2) {
13495
+ let $f = 0;
13496
+ const jf = new Array(Tf), Gf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Uf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Jf = [null, null], Kf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
13497
+ function qf(t2, e2, n2, r2) {
13500
13498
  const o2 = t2;
13501
13499
  if (o2?.getSplit) {
13502
13500
  const t3 = o2.getSplit(e2, n2, r2);
@@ -13514,9 +13512,9 @@ class Yf {
13514
13512
  this._instanceScope = t2;
13515
13513
  }
13516
13514
  async _initialize() {
13517
- const t2 = await dt._validate(true), e2 = Zf();
13515
+ const t2 = await at._validate(true), e2 = Zf();
13518
13516
  this._calcScope = e2, this._runtime = new Qf(this._options, t2);
13519
- const { initializeBuiltIns: n2 } = await import("./DZ2bNT_wREthJFNz.mjs"), r2 = this;
13517
+ const { initializeBuiltIns: n2 } = await import("./BmfULQ9Tvl9Tj6g6.mjs"), r2 = this;
13520
13518
  return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
13521
13519
  }
13522
13520
  getBuiltInFunctions() {
@@ -13689,7 +13687,7 @@ class Qf {
13689
13687
  }
13690
13688
  getVersion() {
13691
13689
  try {
13692
- const t2 = "0.7.24";
13690
+ const t2 = "0.7.25";
13693
13691
  if (-1 === t2.indexOf(".env.")) return `${t2}`;
13694
13692
  } catch (t2) {
13695
13693
  return "local";
@@ -14239,7 +14237,7 @@ class vp extends la {
14239
14237
  this._context = r2;
14240
14238
  const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
14241
14239
  this._functions = new bp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
14242
- const i2 = await import("./DleT-7IR4Y9SNWld.mjs");
14240
+ const i2 = await import("./64xhOVrPXMWmdSZV.mjs");
14243
14241
  this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = lf.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
14244
14242
  } catch (t2) {
14245
14243
  throw this._status = lf.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
@@ -14325,10 +14323,10 @@ class Dp {
14325
14323
  })(s2.textDecoration);
14326
14324
  r2.font.underline = a2.underline, r2.font.strike = a2.strike, s2.textUnderlineStyle && (r2.font.underline = pd(s2.textUnderlineStyle)), r2.alignment = {}, s2?.textAlign && (r2.alignment.horizontal = ((t3) => {
14327
14325
  const e3 = o.textToKey(t3);
14328
- return Bu.get(e3) || null;
14326
+ return Lu.get(e3) || null;
14329
14327
  })(s2.textAlign)), s2?.textAlign && !r2.alignment.horizontal && "general" !== s2?.textAlign && ("center-across" === s2.textAlign ? r2.alignment.horizontal = Ro.HorizontalAlignment.CenterContinuous : "fill" === s2.textAlign ? r2.alignment.horizontal = Ro.HorizontalAlignment.Fill : "121" === s2.textAlign || "010" === s2.textAlign ? (r2.alignment.horizontal = Ro.HorizontalAlignment.Distributed, r2.alignment.justifyLastLine = "121" === s2.textAlign) : console.warn("unknown text-align", s2.textAlign)), s2.verticalAlign && ("super" === s2.verticalAlign.toLowerCase() ? r2.font.verticalAlign = rs.VerticalAlignment.Super : "sup" === s2.verticalAlign.toLowerCase() ? r2.font.verticalAlign = rs.VerticalAlignment.Sub : r2.alignment.vertical = ((t3) => {
14330
14328
  const e3 = o.textToKey(t3);
14331
- return Lu.get(e3) || null;
14329
+ return Bu.get(e3) || null;
14332
14330
  })(s2.verticalAlign), r2.alignment.vertical || ("121" === s2.verticalAlign ? r2.alignment.vertical = Ro.VerticalAlignment.Distributed : console.warn("unknown vertical-align", s2.verticalAlign))), s2.msoCharIndentCount && (r2.alignment.indent = s2.msoCharIndentCount), s2.whiteSpace && (r2.alignment.overflow = "no-wrap" === s2.whiteSpace || "nowrap" === s2.whiteSpace ? Ro.Overflow.Visible : Ro.Overflow.Wrap), "shrinktofit" === s2.msoTextControl && (r2.alignment.overflow = Ro.Overflow.Shrink);
14333
14331
  let l2 = null;
14334
14332
  if (s2.background ? l2 = s2.background : s2.backgroundColor && (l2 = s2.backgroundColor), l2 && (r2.fill = { color: l2 }), s2.msoPattern) {
@@ -14405,8 +14403,8 @@ class Dp {
14405
14403
  return this._sheet;
14406
14404
  }
14407
14405
  }
14408
- let Bp = false;
14409
- class Lp {
14406
+ let Lp = false;
14407
+ class Bp {
14410
14408
  constructor(t2, e2) {
14411
14409
  this._mapStylesByName = /* @__PURE__ */ new Map(), this._arrStyleNames = [], this._mapStylesByName = t2, this._arrStyleNames = e2;
14412
14410
  }
@@ -14461,7 +14459,7 @@ const zp = (t2) => {
14461
14459
  }
14462
14460
  }
14463
14461
  return n2;
14464
- }, Hp = (t2, e2, n2) => {
14462
+ }, Wp = (t2, e2, n2) => {
14465
14463
  try {
14466
14464
  let r2 = null, o2 = null;
14467
14465
  const s2 = (t3) => ((t4, e3) => {
@@ -14611,7 +14609,7 @@ const zp = (t2) => {
14611
14609
  throw console.warn(t3), t3;
14612
14610
  }
14613
14611
  };
14614
- class Wp {
14612
+ class Hp {
14615
14613
  constructor(t2) {
14616
14614
  if (!t2) throw new u("snapshot is required.");
14617
14615
  this._snapshot = t2;
@@ -14695,7 +14693,7 @@ class Vp {
14695
14693
  });
14696
14694
  }))(e2) : [[]]);
14697
14695
  let s2;
14698
- if (Hp(n2, o2, r2) ? (t2 = r2.sheet(), s2 = t2.getUsedRange()) : n2 = null, s2) return this._parsed = { async copyTo(t3, e3) {
14696
+ if (Wp(n2, o2, r2) ? (t2 = r2.sheet(), s2 = t2.getUsedRange()) : n2 = null, s2) return this._parsed = { async copyTo(t3, e3) {
14699
14697
  const n3 = await t3.copyFrom(s2, e3);
14700
14698
  return n3?.getCoords() ?? null;
14701
14699
  }, getCoords: () => s2.getCoords(), getSource: () => t2, getName: () => t2.getName() }, true;
@@ -14715,9 +14713,9 @@ class Vp {
14715
14713
  return true;
14716
14714
  }
14717
14715
  }
14718
- var jp;
14719
- (jp || (jp = {})).Visibility = { Visible: "visible", Hidden: "hidden", VeryHidden: "veryHidden" };
14720
- class $p extends xm {
14716
+ var $p;
14717
+ ($p || ($p = {})).Visibility = { Visible: "visible", Hidden: "hidden", VeryHidden: "veryHidden" };
14718
+ class jp extends xm {
14721
14719
  static {
14722
14720
  this.instanceCounter = 0;
14723
14721
  }
@@ -14770,7 +14768,7 @@ class $p extends xm {
14770
14768
  return this._optionsMovable.unselect?.(), t2;
14771
14769
  }
14772
14770
  _clone() {
14773
- const t2 = this.isSelected(), e2 = this.getZIndex(), n2 = this._optionsMovable.getMaxBounds, r2 = this._options.maxRangeCoords, o2 = this.getContent(), s2 = { beginPersistResource: this._optionsMovable.beginPersistResource, getBoundsAtCoords: this._optionsMovable.getBoundsAtCoords, getCoordsAtBounds: this._optionsMovable.getCoordsAtBounds, isSelected: () => t2, getZIndex: () => e2, getMaxBounds: n2, maxRangeCoords: r2, transactions: new O({ transient: true }), json: this.toJSON(), initialAnchor: this.getAnchorCoords(), content: o2 }, i2 = new $p(s2), a2 = this._getState();
14771
+ const t2 = this.isSelected(), e2 = this.getZIndex(), n2 = this._optionsMovable.getMaxBounds, r2 = this._options.maxRangeCoords, o2 = this.getContent(), s2 = { beginPersistResource: this._optionsMovable.beginPersistResource, getBoundsAtCoords: this._optionsMovable.getBoundsAtCoords, getCoordsAtBounds: this._optionsMovable.getCoordsAtBounds, isSelected: () => t2, getZIndex: () => e2, getMaxBounds: n2, maxRangeCoords: r2, transactions: new O({ transient: true }), json: this.toJSON(), initialAnchor: this.getAnchorCoords(), content: o2 }, i2 = new jp(s2), a2 = this._getState();
14774
14772
  return i2._updateState({ ...a2 }), i2;
14775
14773
  }
14776
14774
  getSnapshot(t2, e2) {
@@ -14948,7 +14946,7 @@ class $p extends xm {
14948
14946
  const e2 = { tl: { x: 0, y: 0 }, br: { x: 0, y: 0 } }, n2 = { ...c.EmptyRange };
14949
14947
  t2.anchor && (e2.tl.x = t2.anchor.tl?.x ?? 0, e2.tl.y = t2.anchor.tl?.y ?? 0, e2.br.x = t2.anchor.br?.x ?? 0, e2.br.y = t2.anchor.br?.y ?? 0, n2.colStart = t2.anchor.tl?.c ?? 0, n2.rowStart = t2.anchor.tl?.r ?? 0, n2.colEnd = Math.max(n2.colStart, (t2.anchor.br?.c ?? 0) + (e2.br.x > 0 ? 0 : -1)), n2.rowEnd = Math.max(n2.rowStart, (t2.anchor.br?.r ?? 0) + (e2.br.y > 0 ? 0 : -1)));
14950
14948
  const r2 = this._beginCommit("Load Movable"), o2 = t2.content.json, s2 = { offsets: e2, name: o2.name ?? null, description: o2.name ?? null, hidden: o2.hidden ?? false, rotation: o2.rotation ?? 0, lockAspectRatio: o2.lockAspect ?? null };
14951
- t2.anchorType && (s2.anchorType = t2.anchorType), s2.name || (s2.name = `${this._content.getTypeDescription()} ${++$p.instanceCounter}`), s2.bounds = this._calcAbsoluteBounds(n2, e2), this._updateState(s2, { description: "Load Movable" }), this._optionsMovable.setContainerCoords?.(n2), r2.commit();
14949
+ t2.anchorType && (s2.anchorType = t2.anchorType), s2.name || (s2.name = `${this._content.getTypeDescription()} ${++jp.instanceCounter}`), s2.bounds = this._calcAbsoluteBounds(n2, e2), this._updateState(s2, { description: "Load Movable" }), this._optionsMovable.setContainerCoords?.(n2), r2.commit();
14952
14950
  }
14953
14951
  toJSON(t2) {
14954
14952
  const e2 = this._getState(), n2 = e2.anchor, r2 = e2.offsets, s2 = { tl: { c: n2.colStart, r: n2.rowStart }, br: { c: n2.colEnd + (r2.br.x ? 0 : 1), r: n2.rowEnd + (r2.br.y ? 0 : 1) } };
@@ -15072,7 +15070,7 @@ class Jp extends ca {
15072
15070
  return this._getDescription();
15073
15071
  }
15074
15072
  }
15075
- const qp = "Item must be specified.", Kp = "Name must be a non-empty string", Xp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Yp = (t2) => {
15073
+ const Kp = "Item must be specified.", qp = "Name must be a non-empty string", Xp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Yp = (t2) => {
15076
15074
  const e2 = [];
15077
15075
  for (let n2 = 0; n2 < t2.getCount(); n2++) {
15078
15076
  let r2 = null;
@@ -15198,14 +15196,14 @@ class t_ {
15198
15196
  }
15199
15197
  _validateName(t2, e2, n2 = false) {
15200
15198
  if (this._closed) throw new Error(sa);
15201
- if (!t2 || 0 === t2.length) throw new Error(Kp);
15199
+ if (!t2 || 0 === t2.length) throw new Error(qp);
15202
15200
  if (t2.length > 255) throw new Error("Name must not exceed 255 characters.");
15203
15201
  if (-1 !== t2.indexOf(" ")) throw new Error("Name must not contain any spaces.");
15204
15202
  const r2 = t2.trim().toLowerCase(), o2 = r2.substring(1, t2.length - 1);
15205
15203
  if (new RegExp(Qp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
15206
15204
  if (new RegExp(Zp).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
15207
15205
  if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
15208
- if (((t3, e3 = Wc, n3 = Hc, r3 = false) => {
15206
+ if (((t3, e3 = Hc, n3 = Wc, r3 = false) => {
15209
15207
  let o3 = fh(t3, r3);
15210
15208
  if (!o3) return false;
15211
15209
  if (o3[2]) return false;
@@ -15242,7 +15240,7 @@ class t_ {
15242
15240
  }
15243
15241
  add(t2) {
15244
15242
  if (this._closed) throw new Error(sa);
15245
- if (!t2) throw new Error(qp);
15243
+ if (!t2) throw new Error(Kp);
15246
15244
  if (!t2.getName || "string" == typeof t2) throw new Error("Add must take a 'INamed' object. To add a string use 'addReference'.");
15247
15245
  if (this._validateName(t2.getName(), t2.getScope(), false), this._options.isReadOnly?.()) throw new Error("Names are read-only.");
15248
15246
  const e2 = this._beginCommit(`Insert Named Item '${t2.getName()}'`), n2 = this._add([t2]);
@@ -15255,7 +15253,7 @@ class t_ {
15255
15253
  return e2.startsWith("_xlnm.") && (e2 = e2.substring(6)), t2.getScope() ? e2 + ":" + t2.getScope().toLowerCase() : e2;
15256
15254
  }
15257
15255
  _delete(t2, e2) {
15258
- if (!t2) throw new Error(qp);
15256
+ if (!t2) throw new Error(Kp);
15259
15257
  if (this._closed) throw new Error(sa);
15260
15258
  const n2 = this._beginCommit(e2?.description ?? `Delete Named Item '${t2.getName()}'`);
15261
15259
  let r2 = null;
@@ -15341,7 +15339,7 @@ class t_ {
15341
15339
  const n2 = this._cloneState(), r2 = t2.length;
15342
15340
  for (let e3 = 0; e3 < r2; e3++) {
15343
15341
  const r3 = t2[e3];
15344
- if (!r3.getName()) throw new Error(Kp);
15342
+ if (!r3.getName()) throw new Error(qp);
15345
15343
  const o2 = this._toKey(r3);
15346
15344
  try {
15347
15345
  this._index(o2, r3, n2);
@@ -15512,7 +15510,7 @@ class s_ {
15512
15510
  this._add = t2, this._get = e2, this._getByName = n2;
15513
15511
  }
15514
15512
  add(t2, e2) {
15515
- if (!t2) throw new Error(Bm);
15513
+ if (!t2) throw new Error(Lm);
15516
15514
  return this._add(t2, e2);
15517
15515
  }
15518
15516
  getItems(t2) {
@@ -16138,7 +16136,7 @@ const w_ = (t2, n2, r2) => {
16138
16136
  const [t3, n3] = ((t4, e3) => {
16139
16137
  const n4 = e3.getRowHeaders(), r3 = e3.getColumnHeaders(), s3 = e3.getUsedRange()?.getCoords(), i3 = n4.getUsedRange()?.getCoords(), a3 = r3.getUsedRange()?.getCoords(), l3 = { ...c.EmptyRange, ...s3, colEnd: Math.max(s3?.colEnd ?? 0, a3?.max ?? 0), rowEnd: Math.max(s3?.rowEnd ?? 0, i3?.max ?? 0) }, h3 = /* @__PURE__ */ new Map(), d3 = [];
16140
16138
  t4.onStart?.();
16141
- const u2 = { rows: [], cols: [] }, g2 = new Lp(h3, d3);
16139
+ const u2 = { rows: [], cols: [] }, g2 = new Bp(h3, d3);
16142
16140
  g2.setNode(u2), t4.onTable?.(g2, l3);
16143
16141
  let m2 = 0;
16144
16142
  r3.forEachSpan((e4, n5) => {
@@ -16153,7 +16151,7 @@ const w_ = (t2, n2, r2) => {
16153
16151
  const n5 = e4.getCoords();
16154
16152
  f2 = f2 + n5.max - n5.min + 1, p2.push({ min: n5.min, max: n5.max, value: e4.getCellHeader() });
16155
16153
  }, { address: l3, includeEmpty: true, includeStyles: true, ignoreHidden: false }), m2 * f2 > 5e4) {
16156
- if (!Bp) throw Bp = true, new E("Unable to write more than 50000 cells to system clipboard. Items can still be pasted within the application to but if you want to copy to another application select a smaller set of data.");
16154
+ if (!Lp) throw Lp = true, new E("Unable to write more than 50000 cells to system clipboard. Items can still be pasted within the application to but if you want to copy to another application select a smaller set of data.");
16157
16155
  return [null, null];
16158
16156
  }
16159
16157
  let _2 = 0, S2 = -1, w2 = null;
@@ -16377,7 +16375,7 @@ class D_ {
16377
16375
  forEachVisibleSpan(t2, e2) {
16378
16376
  const n2 = this._coords, r2 = n2?.min ?? null, o2 = n2?.max ?? null;
16379
16377
  let s2;
16380
- if (s2 = e2?.includeHidden ? t2(r2, o2) : Ws(this._header._indexedHidden, (e3) => {
16378
+ if (s2 = e2?.includeHidden ? t2(r2, o2) : Hs(this._header._indexedHidden, (e3) => {
16381
16379
  if (e3.value) return;
16382
16380
  const n3 = t2(e3.min, e3.max);
16383
16381
  return n3 && n3.break ? n3 : void 0;
@@ -16458,7 +16456,7 @@ class D_ {
16458
16456
  return true;
16459
16457
  }
16460
16458
  }
16461
- class B_ {
16459
+ class L_ {
16462
16460
  constructor(t2, e2) {
16463
16461
  this._header = t2, this._coords = e2;
16464
16462
  }
@@ -16559,7 +16557,7 @@ class B_ {
16559
16557
  return true;
16560
16558
  }
16561
16559
  }
16562
- class L_ {
16560
+ class B_ {
16563
16561
  constructor(t2) {
16564
16562
  if (this._emitter = null, this._closed = false, this._scaleFactor = 1, this._defaultSize = -1, this._defaultCustomSize = -1, this._defaultPxSize = 1, this._isColumn = true, this._indexedSizes = [], this._indexedHidden = [], this._headerRunCoords = null, this._hasCustomFormats = false, this._hasStyles = false, this._hasHidden = false, this._lastHeaderRead = null, this._readCache = null, this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null, this._options = { isProtected: () => false, getUpdateId: () => null, scaleFactor: () => 1, defaultSize: () => 100, minSize: () => 0, maxSize: () => 500, maxSheetCoords: () => null, orientation: e.Orientation.Column, createCellHeader: (t3, e2, n3) => new T_(t3, e2, n3), ...t2 }, !this._options.sheet) throw new Error("An ISheet must be provided");
16565
16563
  if (this._emptyHeader = this._options.createCellHeader(this, null, null), this._scaleFactor = this._options.scaleFactor(), this._defaultSize = this._options.defaultSize(), this._defaultSize <= 0) throw new Error("defaultSize must be greater than 0");
@@ -16640,7 +16638,7 @@ class L_ {
16640
16638
  }, getA1(t3) {
16641
16639
  if (!_2) throw new Error(ed);
16642
16640
  return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
16643
- } }, w2 = Ws(e2, (e3) => {
16641
+ } }, w2 = Hs(e2, (e3) => {
16644
16642
  const n3 = e3.value;
16645
16643
  if (!l2 && !n3) return;
16646
16644
  let r3 = l2;
@@ -16676,7 +16674,7 @@ class L_ {
16676
16674
  for (let s2 = 0; s2 < r2; s2++) o2[s2] = v_(t3[s2], e3, n3);
16677
16675
  return o2;
16678
16676
  })(t2, this._isColumn, this._maxRangeCoords);
16679
- return new B_(this, n2);
16677
+ return new L_(this, n2);
16680
16678
  }
16681
16679
  getSelectedRange(t2) {
16682
16680
  const e2 = this._options.sheet.getSelection().getRangesCoords()[0];
@@ -16694,7 +16692,7 @@ class L_ {
16694
16692
  at(t2) {
16695
16693
  if (t2 < 0 || t2 > this._maxDataIndex) return this._emptyHeader;
16696
16694
  if (this._lastHeaderRead?.offset === t2) return this._lastHeaderRead.header;
16697
- const e2 = Hs(t2, this._readCache);
16695
+ const e2 = Ws(t2, this._readCache);
16698
16696
  if (!e2) return this._emptyHeader;
16699
16697
  const n2 = this._options.getTextAt?.(t2) ?? t2 + "", r2 = this._options.createCellHeader(this, e2, { value: n2 });
16700
16698
  return this._lastHeaderRead = { offset: t2, header: r2 }, r2;
@@ -17049,7 +17047,7 @@ const P_ = (t2) => {
17049
17047
  }
17050
17048
  }
17051
17049
  return e2;
17052
- }, H_ = (t2, e2 = 0, n2 = 0) => {
17050
+ }, W_ = (t2, e2 = 0, n2 = 0) => {
17053
17051
  let r2 = "";
17054
17052
  const o2 = bh, s2 = t2.length;
17055
17053
  for (let i2 = 0; i2 < s2; i2++) {
@@ -17062,12 +17060,12 @@ const P_ = (t2) => {
17062
17060
  }
17063
17061
  return r2;
17064
17062
  };
17065
- class W_ {
17063
+ class H_ {
17066
17064
  constructor(t2, e2, n2) {
17067
17065
  this._c = t2, this._tokens = e2, this._references = n2 || o.EmptyArray;
17068
17066
  }
17069
17067
  getFormulaTextAt(t2, e2, n2 = false) {
17070
- return n2 ? P_(this._tokens) : H_(this._tokens, t2, e2);
17068
+ return n2 ? P_(this._tokens) : W_(this._tokens, t2, e2);
17071
17069
  }
17072
17070
  getTokensAt(t2, e2, n2) {
17073
17071
  let r2 = this._tokens;
@@ -17146,7 +17144,7 @@ class V_ {
17146
17144
  return false;
17147
17145
  }
17148
17146
  }
17149
- class j_ {
17147
+ class $_ {
17150
17148
  constructor(t2, e2, n2, r2, o2, s2, i2, a2, l2, c2) {
17151
17149
  this.uuid = t2, this.spatialsIds = e2, this.isRanges = r2, this.coords = n2, this.sheet = o2, this.generation = s2, this.handler = i2, this.handlerW = a2, this.removeListener = l2, this.options = c2;
17152
17150
  }
@@ -17176,20 +17174,20 @@ class j_ {
17176
17174
  const e2 = this.spatialsIds, n2 = e2.indexOf(t2.value.uuid);
17177
17175
  console.assert(-1 !== n2, "invalid uuid");
17178
17176
  const r2 = this.coords, o2 = r2.slice(0, n2).concat(r2.slice(n2 + 1)), s2 = e2.slice(0, n2).concat(e2.slice(n2 + 1));
17179
- return new j_(this.uuid, s2, o2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17177
+ return new $_(this.uuid, s2, o2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17180
17178
  }
17181
17179
  processShift(t2) {
17182
17180
  const e2 = this.spatialsIds.indexOf(t2.value.uuid);
17183
17181
  console.assert(-1 !== e2, "invalid uuid");
17184
17182
  const n2 = [...this.coords];
17185
- return n2[e2] = { ...n2[e2], ...c.sanitizeRange(t2) }, new j_(this.uuid, this.spatialsIds, n2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17183
+ return n2[e2] = { ...n2[e2], ...c.sanitizeRange(t2) }, new $_(this.uuid, this.spatialsIds, n2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17186
17184
  }
17187
17185
  processSplit(t2) {
17188
17186
  }
17189
17187
  processMerge(t2) {
17190
17188
  }
17191
17189
  }
17192
- const $_ = Object.freeze({ coords: c.EmptyCell, topLeft: a.EmptyTopLeft }), G_ = Object.freeze({ cell: c.EmptyCell, ranges: o.EmptyArray, rangeIndex: 0 }), U_ = Object.freeze({ selection: G_, topLeft: a.EmptyTopLeft, freezePanes: $_, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: Op.HeaderTextStyle.One, columnHeaderStyle: Op.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
17190
+ const j_ = Object.freeze({ coords: c.EmptyCell, topLeft: a.EmptyTopLeft }), G_ = Object.freeze({ cell: c.EmptyCell, ranges: o.EmptyArray, rangeIndex: 0 }), U_ = Object.freeze({ selection: G_, topLeft: a.EmptyTopLeft, freezePanes: j_, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: Op.HeaderTextStyle.One, columnHeaderStyle: Op.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
17193
17191
  class J_ {
17194
17192
  constructor(t2) {
17195
17193
  if (this._emitter = null, !t2?.sheet) throw new Error("SheetView requires a sheet.");
@@ -17213,7 +17211,7 @@ class J_ {
17213
17211
  return this._state.freezePanes = this._mergeFreezePanes(t2), this._emitter.notify("onFreezeSplitChange"), this;
17214
17212
  }
17215
17213
  _mergeFreezePanes(t2) {
17216
- return t2 ? { ...this._state.freezePanes, coords: { colIndex: t2?.coords?.colIndex ?? this._state.freezePanes.coords.colIndex, rowIndex: t2?.coords?.rowIndex ?? this._state.freezePanes.coords.rowIndex }, topLeft: { left: t2?.topLeft?.left ?? this._state.topLeft.left, top: t2?.topLeft?.top ?? this._state.topLeft.top } } : $_;
17214
+ return t2 ? { ...this._state.freezePanes, coords: { colIndex: t2?.coords?.colIndex ?? this._state.freezePanes.coords.colIndex, rowIndex: t2?.coords?.rowIndex ?? this._state.freezePanes.coords.rowIndex }, topLeft: { left: t2?.topLeft?.left ?? this._state.topLeft.left, top: t2?.topLeft?.top ?? this._state.topLeft.top } } : j_;
17217
17215
  }
17218
17216
  isShowRowHeaders() {
17219
17217
  return this._state.showRowHeaders;
@@ -17326,7 +17324,7 @@ class J_ {
17326
17324
  const n2 = this._state.selection;
17327
17325
  if (n2) {
17328
17326
  let e3 = {};
17329
- !n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell = Kc(n2.cell)), n2.ranges && n2.ranges.length > 0 && (e3.ranges = ih(n2.ranges), void 0 !== n2.rangeIndex && -1 !== n2.rangeIndex && 0 !== n2.rangeIndex && (e3.rangeIndex = n2.rangeIndex)), Object.keys(e3).length > 0 && (t2.selection = e3);
17327
+ !n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell = qc(n2.cell)), n2.ranges && n2.ranges.length > 0 && (e3.ranges = ih(n2.ranges), void 0 !== n2.rangeIndex && -1 !== n2.rangeIndex && 0 !== n2.rangeIndex && (e3.rangeIndex = n2.rangeIndex)), Object.keys(e3).length > 0 && (t2.selection = e3);
17330
17328
  }
17331
17329
  if (delete t2.freezePanes, this._state.freezePanes && (0 !== this._state.freezePanes.coords.colIndex || 0 !== this._state.freezePanes.coords.rowIndex)) {
17332
17330
  const e3 = {};
@@ -17379,11 +17377,11 @@ class J_ {
17379
17377
  return true;
17380
17378
  }
17381
17379
  }
17382
- async function q_() {
17383
- const { getCrypto: t2 } = await import("./BaCXM0LlL1TEKxSV.mjs");
17380
+ async function K_() {
17381
+ const { getCrypto: t2 } = await import("./COwR3Fxheu0DPRLP.mjs");
17384
17382
  return t2();
17385
17383
  }
17386
- const K_ = async (t2, e2, ...n2) => {
17384
+ const q_ = async (t2, e2, ...n2) => {
17387
17385
  const r2 = X_(...n2);
17388
17386
  return t2.subtle.digest(e2, r2);
17389
17387
  }, X_ = (...t2) => {
@@ -17407,7 +17405,7 @@ class Q_ {
17407
17405
  }
17408
17406
  static async generateSaltAndHash(t2, e2 = Q_.DefaultAlgo, n2 = Q_.DefaultSpinCount) {
17409
17407
  if (!t2) return null;
17410
- const r2 = (await q_()).getRandomValues(new Uint8Array(16)), o2 = Y_(r2.buffer);
17408
+ const r2 = (await K_()).getRandomValues(new Uint8Array(16)), o2 = Y_(r2.buffer);
17411
17409
  return { salt: o2, hash: await Q_._convertPasswordToHash(t2, o2, e2, n2) };
17412
17410
  }
17413
17411
  static async verifyPassword(t2, e2, n2 = Q_.DefaultAlgo, r2 = Q_.DefaultSpinCount) {
@@ -17420,7 +17418,7 @@ class Q_ {
17420
17418
  })(await Q_._convertPasswordToHash(t2, e2.salt, n2, r2), e2.hash);
17421
17419
  }
17422
17420
  static async _convertPasswordToHash(t2, e2, n2, r2) {
17423
- const o2 = await q_();
17421
+ const o2 = await K_();
17424
17422
  n2 = n2.toUpperCase();
17425
17423
  const s2 = ((t3) => {
17426
17424
  const e3 = new ArrayBuffer(2 * t3.length), n3 = new DataView(e3);
@@ -17431,10 +17429,10 @@ class Q_ {
17431
17429
  for (let t4 = 0; t4 < e3.length; t4++) n3[t4] = e3.charCodeAt(t4);
17432
17430
  return n3.buffer;
17433
17431
  })(e2);
17434
- let a2 = await K_(o2, n2, i2, s2.buffer);
17432
+ let a2 = await q_(o2, n2, i2, s2.buffer);
17435
17433
  for (let t3 = 0; t3 < r2; t3++) {
17436
17434
  const e3 = new Uint32Array([t3]).buffer;
17437
- a2 = await K_(o2, n2, a2, e3);
17435
+ a2 = await q_(o2, n2, a2, e3);
17438
17436
  }
17439
17437
  return Y_(a2);
17440
17438
  }
@@ -18224,7 +18222,7 @@ class dS {
18224
18222
  constructor(t2) {
18225
18223
  this._lastTransactionUUID = null, this._emitter = null, this._initializing = true, this._emitterMovables = null, this._rangesListenerSorted = null, this._lastCellDecoded = { address: null, coords: null }, this._lastCellSelected = { coords: null, cell: null }, this._lastCellRead = { coords: null, cell: null }, this._lastValueRead = { range: null, isDateOrTime: null }, this._lastGetRangeRead = {}, this._lastUsedCoordsRead = { coords: null, range: null }, this._lastActiveRead = { selection: null, range: null, ranges: null }, this._lastRangeRead = { address: null, range: null, ranges: null }, this._isDataColumn = true, this._isDate1904 = false, this._colHeaders = null, this._colHeadersShiftCallback = null, this._colHeadersListener = null, this._colHeadersRemoveListener = null, this._rowHeaders = null, this._rowHeadersShiftCallback = null, this._rowHeadersListener = null, this._rowHeadersRemoveListener = null, this._closed = false;
18226
18224
  const e2 = Object.freeze({ ...t2 });
18227
- dt._validate(true), this._transactions = e2.transactions ?? new O(), this._ownTransactions = !e2.transactions;
18225
+ at._validate(true), this._transactions = e2.transactions ?? new O(), this._ownTransactions = !e2.transactions;
18228
18226
  const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
18229
18227
  try {
18230
18228
  this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? oS.width) - 1, rowEnd: (e2.maxRows ?? oS.height) - 1 }), this._strings = e2.strings ?? new sf(), this._ownStrings = !e2.strings;
@@ -18356,7 +18354,7 @@ class dS {
18356
18354
  e2 && !Array.isArray(e2) && (e2 = [e2]);
18357
18355
  const r2 = t2(e2), o2 = this.getProtection(), s2 = o2?.getProperties();
18358
18356
  if (s2) {
18359
- if (0 === r2.length) throw new C($h);
18357
+ if (0 === r2.length) throw new C(jh);
18360
18358
  if (r2) {
18361
18359
  const t3 = r2.length;
18362
18360
  for (let e3 = 0; e3 < t3; e3++) {
@@ -18452,7 +18450,7 @@ class dS {
18452
18450
  if (!n2 || !t2 || !t2.includeRangeTypes) return _a;
18453
18451
  const r2 = t2?.bounds ?? this._getUsedCoords() ?? this._entireCoords;
18454
18452
  let s2 = null;
18455
- true === t2.includeRangeTypes ? s2 = Hh : o.isObject(t2.includeRangeTypes) && (s2 = t2.includeRangeTypes);
18453
+ true === t2.includeRangeTypes ? s2 = Wh : o.isObject(t2.includeRangeTypes) && (s2 = t2.includeRangeTypes);
18456
18454
  const i2 = t2?.ignoreHidden, a2 = true === i2 || i2 === e.Orientation.Row, l2 = true === i2 || i2 === e.Orientation.Column, c2 = t2?.includeMergeOverflow ?? false, h2 = [], d2 = this, u2 = { includeHidden: !l2 }, g2 = { min: r2.colStart, max: r2.colEnd }, m2 = { includeHidden: !a2 }, f2 = { min: r2.rowStart, max: r2.rowEnd };
18457
18455
  this._rowHeaders.getRange(f2).forEachVisibleSpan((t3, e2) => {
18458
18456
  this._colHeaders.getRange(g2).forEachVisibleSpan((r3, o2) => {
@@ -18484,7 +18482,7 @@ class dS {
18484
18482
  if (!o2 || !n2) return null;
18485
18483
  let s2 = this._entireCoords;
18486
18484
  r2 && (s2 = { colStart: Math.max(s2.colStart - r2, s2.colStart), rowStart: s2.rowStart, colEnd: Math.min(s2.colEnd + r2, s2.colEnd), rowEnd: s2.rowEnd });
18487
- const i2 = { rowStart: n2.rowStart, colStart: s2.colStart, rowEnd: n2.rowEnd, colEnd: s2.colEnd }, a2 = { bounds: i2, includeRangeTypes: jh, orientation: e.Orientation.Row, ignoreHidden: true, byCell: false }, l2 = n2.colStart, h2 = n2.colEnd;
18485
+ const i2 = { rowStart: n2.rowStart, colStart: s2.colStart, rowEnd: n2.rowEnd, colEnd: s2.colEnd }, a2 = { bounds: i2, includeRangeTypes: $h, orientation: e.Orientation.Row, ignoreHidden: true, byCell: false }, l2 = n2.colStart, h2 = n2.colEnd;
18488
18486
  let d2, u2, g2 = -1;
18489
18487
  const m2 = (t2, e2) => {
18490
18488
  let n3 = t2.next();
@@ -18517,7 +18515,7 @@ class dS {
18517
18515
  vS.colStart = o3, vS.rowStart = r3, vS.colEnd = o3, vS.rowEnd = r3;
18518
18516
  const e3 = Vg(0, vS, n3.intersection, _2);
18519
18517
  n3.style = e3;
18520
- const a3 = Hg(r3, o3, t.String, e3, s3, null, null, i3?.getCoords(), _2);
18518
+ const a3 = Wg(r3, o3, t.String, e3, s3, null, null, i3?.getCoords(), _2);
18521
18519
  if (a3) {
18522
18520
  const t2 = a3.leftIndex, e4 = a3.rightIndex;
18523
18521
  n3.leftIndex = t2, n3.rightIndex = e4, (e4 > 0 && o3 < l2 || t2 > 0 && o3 > h2) && (n3.overflow = a3);
@@ -18544,7 +18542,7 @@ class dS {
18544
18542
  }
18545
18543
  const u2 = a2 || !t2?.ignoreEmptyIntersections;
18546
18544
  let g2 = t2.includeRangeTypes;
18547
- true === g2 && (g2 = Wh);
18545
+ true === g2 && (g2 = Hh);
18548
18546
  const m2 = t2?.includeMergeOverflow ?? false, f2 = g2 ? this._rangeStateIterator({ bounds: o2, orientation: s2, reverse: i2, includeRangeTypes: g2, includeMergeOverflow: m2, ignoreHidden: t2.ignoreHidden, byCell: true }) : _a;
18549
18547
  let p2, _2;
18550
18548
  if (m2 && r2) {
@@ -18736,19 +18734,19 @@ class dS {
18736
18734
  } while (F2);
18737
18735
  return F2;
18738
18736
  };
18739
- const O2 = c2.getState(this), D2 = O2.cellValuesGrid.clone(), B2 = O2.calcGraph.clone(), L2 = O2.formulaSpatial.clone(), z2 = O2.spillSpatial.clone(), P2 = O2.pendingSpatial.clone(), H2 = O2.calcErrorsSpatial.clone(), W2 = O2.contentfulSpatial.clone(), V2 = Ol(u2), j2 = Ol(u2, (t3, e2) => {
18737
+ const O2 = c2.getState(this), D2 = O2.cellValuesGrid.clone(), L2 = O2.calcGraph.clone(), B2 = O2.formulaSpatial.clone(), z2 = O2.spillSpatial.clone(), P2 = O2.pendingSpatial.clone(), W2 = O2.calcErrorsSpatial.clone(), H2 = O2.contentfulSpatial.clone(), V2 = Ol(u2), $2 = Ol(u2, (t3, e2) => {
18740
18738
  if (t3 === e2) return e2;
18741
- }), $2 = Ol(u2, (t3, e2) => {
18739
+ }), j2 = Ol(u2, (t3, e2) => {
18742
18740
  if (t3 === e2) return e2;
18743
18741
  }), G2 = Ol(u2, (t3, e2) => {
18744
18742
  if (t3 === e2) return e2;
18745
18743
  }), U2 = [];
18746
- let J2 = null, q2 = null;
18744
+ let J2 = null, K2 = null;
18747
18745
  if (false !== n2?.textParser) {
18748
18746
  const t3 = n2 && true !== n2.textParser ? n2.textParser : {};
18749
- q2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, J2 = new Sm(p2, null, this._cellOptions);
18747
+ K2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, J2 = new Sm(p2, null, this._cellOptions);
18750
18748
  }
18751
- const K2 = [], X2 = this._cellOptions, Y2 = /* @__PURE__ */ new Map(), Q2 = Em, Z2 = (t3, e2, n3) => {
18749
+ const q2 = [], X2 = this._cellOptions, Y2 = /* @__PURE__ */ new Map(), Q2 = Em, Z2 = (t3, e2, n3) => {
18752
18750
  const r3 = k2?.(e2, n3);
18753
18751
  if (r3?.merge) {
18754
18752
  const t4 = r3.merge.getCoords(), o4 = u2 ? t4.colStart : t4.rowStart, s3 = u2 ? t4.rowStart : t4.colStart;
@@ -18761,24 +18759,24 @@ class dS {
18761
18759
  U2.push({ colStart: u2 ? e2 : n3, rowStart: u2 ? n3 : e2, colEnd: (u2 ? e2 : n3) + t4.width - 1, rowEnd: (u2 ? n3 : e2) + t4.height - 1 });
18762
18760
  }
18763
18761
  }
18764
- let o3 = Dg(t3, X2, q2, Y2);
18762
+ let o3 = Dg(t3, X2, K2, Y2);
18765
18763
  if (void 0 === o3) return;
18766
18764
  const a3 = o3.value;
18767
18765
  if (o3.stringToParse) {
18768
18766
  wS[0].colIndex = u2 ? e2 : n3, wS[0].rowIndex = u2 ? n3 : e2, wS[1] = a3, wS[2] = r3, J2.setState(wS);
18769
- const t4 = q2?.parse(o3.stringToParse, J2.context), s3 = Dg(t4, X2, q2, Y2, true);
18767
+ const t4 = K2?.parse(o3.stringToParse, J2.context), s3 = Dg(t4, X2, K2, Y2, true);
18770
18768
  if (J2.clear(), null === s3) return s3;
18771
18769
  void 0 !== s3 && (o3 = { ...s3 });
18772
18770
  }
18773
18771
  if (m2) {
18774
- if (m2 && (null === t3 || void 0 !== o3.value)) throw new C($h);
18775
- if (!f2 && void 0 !== o3.style) throw new C($h);
18772
+ if (m2 && (null === t3 || void 0 !== o3.value)) throw new C(jh);
18773
+ if (!f2 && void 0 !== o3.style) throw new C(jh);
18776
18774
  }
18777
18775
  if (!i2) {
18778
18776
  const t4 = o3.style;
18779
- void 0 === t4 || null === t4 && !s2 || j2.append(e2, n3, t4);
18777
+ void 0 === t4 || null === t4 && !s2 || $2.append(e2, n3, t4);
18780
18778
  const r4 = o3.hyperlink;
18781
- void 0 === r4 || null === r4 && !s2 || $2.append(e2, n3, r4);
18779
+ void 0 === r4 || null === r4 && !s2 || j2.append(e2, n3, r4);
18782
18780
  }
18783
18781
  const l3 = o3.formula;
18784
18782
  return void 0 === l3 || null === l3 && !s2 || G2.append(e2, n3, l3), a3;
@@ -18814,28 +18812,28 @@ class dS {
18814
18812
  o4.push([l3, t6]), h3 = null;
18815
18813
  }
18816
18814
  }
18817
- o4.length > 0 && K2.push([n3, o4]);
18815
+ o4.length > 0 && q2.push([n3, o4]);
18818
18816
  }
18819
18817
  const r3 = V2.done(), o3 = r3.length;
18820
18818
  for (let t4 = 0; t4 < o3; t4++) {
18821
18819
  const e2 = r3[t4];
18822
- D2.delete(r3[t4]), W2.insertNonOverlapping({ ...e2, value: null });
18823
- const n3 = B2.delete(e2);
18824
- this._updateFormulaSpatial(L2, null, n3);
18820
+ D2.delete(r3[t4]), H2.insertNonOverlapping({ ...e2, value: null });
18821
+ const n3 = L2.delete(e2);
18822
+ this._updateFormulaSpatial(B2, null, n3);
18825
18823
  }
18826
18824
  let i3;
18827
- K2.length > 0 && (D2.setValues(K2), i3 = { tuples: K2, bounds: l2 });
18825
+ q2.length > 0 && (D2.setValues(q2), i3 = { tuples: q2, bounds: l2 });
18828
18826
  let g3, m3 = G2.done();
18829
18827
  if (m3.length > 1 && (m3 = ul(m3, e.Orientation.Column, 1)), i3 || m3.length > 0) {
18830
- const t4 = B2.setInputs(i3, m3);
18831
- g3 = this._updateFormulaSpatial(L2, t4.inserts, t4.removes, O2.directStyleSpatial);
18828
+ const t4 = L2.setInputs(i3, m3);
18829
+ g3 = this._updateFormulaSpatial(B2, t4.inserts, t4.removes, O2.directStyleSpatial);
18832
18830
  }
18833
- const f3 = Cm(K2, u2), C2 = f3.length;
18834
- for (let t4 = 0; t4 < C2; t4++) W2.insertNonOverlapping(f3[t4]);
18835
- const b3 = j2.done();
18831
+ const f3 = Cm(q2, u2), C2 = f3.length;
18832
+ for (let t4 = 0; t4 < C2; t4++) H2.insertNonOverlapping(f3[t4]);
18833
+ const b3 = $2.done();
18836
18834
  b3.length > 0 && this._updateStyles(b3), U2.length > 0 && this._merge(U2);
18837
- const v3 = $2.done();
18838
- if (v3.length > 0 && this._setHyperlinks(v3), this._updateState({ cellValuesGrid: D2, contentfulSpatial: W2, calcGraph: B2, formulaSpatial: L2, spillSpatial: z2, pendingSpatial: P2, calcErrorsSpatial: H2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
18835
+ const v3 = j2.done();
18836
+ if (v3.length > 0 && this._setHyperlinks(v3), this._updateState({ cellValuesGrid: D2, contentfulSpatial: H2, calcGraph: L2, formulaSpatial: B2, spillSpatial: z2, pendingSpatial: P2, calcErrorsSpatial: W2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
18839
18837
  const t4 = "boolean" == typeof n2.autoFit ? CS : n2.autoFit;
18840
18838
  this._autoFit([E2], t4);
18841
18839
  }
@@ -18909,7 +18907,7 @@ class dS {
18909
18907
  if (0 === w2.length) return;
18910
18908
  const N2 = /* @__PURE__ */ new Map(), F2 = /* @__PURE__ */ new Map(), k2 = n2?.collators ?? da.DefaultCollators, O2 = k2.length;
18911
18909
  for (let t3 = 0; t3 < O2; t3++) N2.set(k2[t3].type, k2[t3].compare), F2.set(k2[t3].type, t3);
18912
- let D2 = null, B2 = null, L2 = null;
18910
+ let D2 = null, L2 = null, B2 = null;
18913
18911
  w2.sort((t3, e2) => {
18914
18912
  const n3 = p2.length;
18915
18913
  for (let r3 = 0; r3 < n3; r3++) {
@@ -18924,14 +18922,14 @@ class dS {
18924
18922
  let t4 = F2.get(h3);
18925
18923
  u3 = F2.get(d2) - t4;
18926
18924
  } else {
18927
- let t4 = B2;
18925
+ let t4 = L2;
18928
18926
  if (D2 !== h3) {
18929
- t4 = N2.get(h3), B2 = t4, D2 = h3;
18927
+ t4 = N2.get(h3), L2 = t4, D2 = h3;
18930
18928
  let e3 = F2.get(d2);
18931
18929
  const r4 = k2[e3].defaultOptions;
18932
- L2 = { ...r4, ...n4.collatorOptions };
18930
+ B2 = { ...r4, ...n4.collatorOptions };
18933
18931
  }
18934
- u3 = t4(i3, a3, L2);
18932
+ u3 = t4(i3, a3, B2);
18935
18933
  }
18936
18934
  return n4.reverse && (u3 *= -1), u3;
18937
18935
  }
@@ -18940,21 +18938,21 @@ class dS {
18940
18938
  const z2 = this._beginCommit({ description: r2 });
18941
18939
  let P2 = [u2];
18942
18940
  I2 || (P2 = this._getVisible(P2, { orientations: c2 ? e.Orientations.Row : e.Orientations.Column })), this._clear(P2, void 0, void 0, true);
18943
- const H2 = this._createIncrementalUpdater({ orientation: l2 });
18944
- let W2 = c2 ? u2.rowStart : u2.colStart;
18941
+ const W2 = this._createIncrementalUpdater({ orientation: l2 });
18942
+ let H2 = c2 ? u2.rowStart : u2.colStart;
18945
18943
  const V2 = w2.length;
18946
18944
  for (let t3 = 0; t3 < V2; t3++) {
18947
18945
  const e2 = w2[t3];
18948
- if (x2 && (W2 = x2(W2)), e2) {
18946
+ if (x2 && (H2 = x2(H2)), e2) {
18949
18947
  const t4 = e2.values, n3 = t4.length;
18950
18948
  for (let e3 = 0; e3 < n3; e3++) {
18951
- const n4 = t4[e3], r3 = c2 ? W2 : n4.getCoords().rowIndex, o3 = c2 ? n4.getCoords().colIndex : W2;
18952
- H2.pushAt(r3, o3, n4);
18949
+ const n4 = t4[e3], r3 = c2 ? H2 : n4.getCoords().rowIndex, o3 = c2 ? n4.getCoords().colIndex : H2;
18950
+ W2.pushAt(r3, o3, n4);
18953
18951
  }
18954
18952
  }
18955
- W2 += A2;
18953
+ H2 += A2;
18956
18954
  }
18957
- return H2.apply(), z2.commit(), u2;
18955
+ return W2.apply(), z2.commit(), u2;
18958
18956
  }
18959
18957
  _autoFill(t2, n2, r2) {
18960
18958
  const { direction: o2, amount: s2 } = ((t3, n3) => {
@@ -18964,7 +18962,7 @@ class dS {
18964
18962
  return { direction: r3, amount: o3 };
18965
18963
  })(t2, n2);
18966
18964
  if (s2 <= 0) return false;
18967
- const i2 = o2 === e.Direction.Up || o2 === e.Direction.Down, a2 = this.getSelection().getCoords(), l2 = [], h2 = r2?.previewOnly, d2 = r2?.contentsOnly, u2 = r2?.filler ?? js.Types.Series, g2 = { ...r2?.fillerOptions };
18965
+ const i2 = o2 === e.Direction.Up || o2 === e.Direction.Down, a2 = this.getSelection().getCoords(), l2 = [], h2 = r2?.previewOnly, d2 = r2?.contentsOnly, u2 = r2?.filler ?? $s.Types.Series, g2 = { ...r2?.fillerOptions };
18968
18966
  let m2 = null, f2 = null;
18969
18967
  try {
18970
18968
  const p2 = { ...t2 };
@@ -18986,43 +18984,43 @@ class dS {
18986
18984
  const F2 = N2 ? A2 + 1 : M2, k2 = (N2 ? T2 : R2 - 1) - F2 + 1, O2 = i2 ? t2.colEnd : t2.rowEnd;
18987
18985
  l2.push(c.unionRanges(p2, t2));
18988
18986
  const D2 = [];
18989
- let B2 = null;
18987
+ let L2 = null;
18990
18988
  h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
18991
- const L2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ph.Type.Style]: false } });
18992
- let z2 = L2.next();
18989
+ const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Ph.Type.Style]: false } });
18990
+ let z2 = B2.next();
18993
18991
  for (; !z2.done; ) {
18994
18992
  const t3 = z2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
18995
- B2?.oppositeIndex !== n3[v2] && (B2 = { oppositeIndex: n3[v2], lastIndex: N2 ? R2 - 1 : A2 + 1, values: [] }, D2.push(B2));
18993
+ L2?.oppositeIndex !== n3[v2] && (L2 = { oppositeIndex: n3[v2], lastIndex: N2 ? R2 - 1 : A2 + 1, values: [] }, D2.push(L2));
18996
18994
  const r3 = n3[b2];
18997
- if (N2) for (let t4 = B2.lastIndex + 1; t4 < r3; t4++) B2.values.push(null);
18998
- else for (let t4 = B2.lastIndex - 1; t4 > r3; t4--) B2.values.push(null);
18999
- B2.lastIndex = r3;
18995
+ if (N2) for (let t4 = L2.lastIndex + 1; t4 < r3; t4++) L2.values.push(null);
18996
+ else for (let t4 = L2.lastIndex - 1; t4 > r3; t4--) L2.values.push(null);
18997
+ L2.lastIndex = r3;
19000
18998
  const o3 = e2.toDate();
19001
- if (o3) B2.values.push(o3);
18999
+ if (o3) L2.values.push(o3);
19002
19000
  else {
19003
19001
  let t4 = e2.getValue();
19004
- B2.values.push(t4);
19002
+ L2.values.push(t4);
19005
19003
  }
19006
- z2 = L2.next();
19004
+ z2 = B2.next();
19007
19005
  }
19008
19006
  const P2 = D2.length;
19009
19007
  for (let t3 = 0; t3 < P2; t3++) {
19010
19008
  const e2 = D2[t3].values;
19011
19009
  for (let t4 = e2.length; t4 < I2; t4++) e2.push(null);
19012
19010
  }
19013
- const H2 = (t3, e2) => {
19011
+ const W2 = (t3, e2) => {
19014
19012
  if (t3.canFill(e2[0], [])) {
19015
19013
  const n3 = t3.createFillAt(e2, g2);
19016
19014
  if (n3) return n3;
19017
19015
  }
19018
- return js.Types.Copy.createFillAt(e2);
19019
- }, W2 = this;
19016
+ return $s.Types.Copy.createFillAt(e2);
19017
+ }, H2 = this;
19020
19018
  if (h2) {
19021
19019
  const t3 = D2[D2.length - 1];
19022
19020
  if (D2[D2.length - 1]?.oppositeIndex !== O2) return null;
19023
- const n3 = H2(u2, t3.values);
19021
+ const n3 = W2(u2, t3.values);
19024
19022
  return h2((t4) => {
19025
- const r3 = W2._rangeToCoords(t4);
19023
+ const r3 = H2._rangeToCoords(t4);
19026
19024
  let s3;
19027
19025
  o2 === e.Direction.Down || o2 === e.Direction.Right ? s3 = { rowIndex: r3.rowEnd, colIndex: r3.colEnd } : o2 === e.Direction.Left ? s3 = { rowIndex: r3.rowEnd, colIndex: r3.colStart } : o2 === e.Direction.Up && (s3 = { rowIndex: r3.rowStart, colIndex: r3.colEnd });
19028
19026
  const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(N2 ? a3 - R2 : R2 - a3 + I2 - 1) };
@@ -19030,10 +19028,10 @@ class dS {
19030
19028
  return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
19031
19029
  }), false;
19032
19030
  }
19033
- const V2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), j2 = D2.length;
19031
+ const V2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), $2 = D2.length;
19034
19032
  D2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
19035
- for (let t3 = 0; t3 < j2; t3++) {
19036
- const e2 = t3, n3 = H2(u2, D2[e2].values), r3 = D2[e2].oppositeIndex, o3 = N2 ? I2 : I2 + k2 - 1, s3 = this.isDate1904();
19033
+ for (let t3 = 0; t3 < $2; t3++) {
19034
+ const e2 = t3, n3 = W2(u2, D2[e2].values), r3 = D2[e2].oppositeIndex, o3 = N2 ? I2 : I2 + k2 - 1, s3 = this.isDate1904();
19037
19035
  for (let t4 = 0; t4 < k2; t4++) {
19038
19036
  let e3 = n3(o3 + (N2 ? t4 : -t4));
19039
19037
  no(e3) && (e3 = co(e3, s3));
@@ -19042,23 +19040,23 @@ class dS {
19042
19040
  }
19043
19041
  }
19044
19042
  this._clear([p2], r2?.contentsOnly ? ld.Content.Formats : void 0), V2.apply();
19045
- const $2 = this._getMerges([_2]), G2 = c.unionRangesArrays($2);
19046
- if ($2.length > 0 && !c.isRangeWithinRange(G2, _2)) throw new C(Qh);
19047
- if ($2.length > 0) {
19043
+ const j2 = this._getMerges([_2]), G2 = c.unionRangesArrays(j2);
19044
+ if (j2.length > 0 && !c.isRangeWithinRange(G2, _2)) throw new C(Qh);
19045
+ if (j2.length > 0) {
19048
19046
  const n3 = [], r3 = s2 / E2;
19049
19047
  if (i2) {
19050
- const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 = $2.length;
19048
+ const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 = j2.length;
19051
19049
  for (let e2 = 0; e2 < a3; e2++) {
19052
- const o3 = $2[e2], a4 = o3.rowStart - t2.rowStart, l3 = o3.rowEnd - o3.rowStart + 1;
19050
+ const o3 = j2[e2], a4 = o3.rowStart - t2.rowStart, l3 = o3.rowEnd - o3.rowStart + 1;
19053
19051
  for (let t3 = 0; t3 < r3; t3++) {
19054
19052
  const e3 = t3 * s3;
19055
19053
  n3.push({ colStart: o3.colStart, rowStart: i3 + e3 + a4, colEnd: o3.colEnd, rowEnd: i3 + e3 + a4 + l3 - 1 });
19056
19054
  }
19057
19055
  }
19058
19056
  } else {
19059
- const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 = $2.length;
19057
+ const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 = j2.length;
19060
19058
  for (let e2 = 0; e2 < a3; e2++) {
19061
- const o3 = $2[e2], a4 = o3.colStart - t2.colStart, l3 = o3.colEnd - o3.colStart + 1;
19059
+ const o3 = j2[e2], a4 = o3.colStart - t2.colStart, l3 = o3.colEnd - o3.colStart + 1;
19062
19060
  for (let t3 = 0; t3 < r3; t3++) {
19063
19061
  const e3 = t3 * s3;
19064
19062
  n3.push({ colStart: i3 + e3 + a4, rowStart: o3.rowStart, colEnd: i3 + e3 + a4 + l3 - 1, rowEnd: o3.rowEnd });
@@ -19067,17 +19065,17 @@ class dS {
19067
19065
  }
19068
19066
  this._merge(n3);
19069
19067
  }
19070
- const U2 = this._getState(), J2 = {}, q2 = {};
19071
- q2.directStyleSpatial = U2.directStyleSpatial, q2.continuousFillSpatial = U2.continuousFillSpatial;
19072
- let K2 = t2, X2 = p2;
19068
+ const U2 = this._getState(), J2 = {}, K2 = {};
19069
+ K2.directStyleSpatial = U2.directStyleSpatial, K2.continuousFillSpatial = U2.continuousFillSpatial;
19070
+ let q2 = t2, X2 = p2;
19073
19071
  if (!N2) {
19074
19072
  let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % I2;
19075
19073
  const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
19076
- 0 !== e2 && (X2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, K2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
19074
+ 0 !== e2 && (X2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, q2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
19077
19075
  }
19078
- const Y2 = Object.keys(q2), Q2 = Y2.length;
19076
+ const Y2 = Object.keys(K2), Q2 = Y2.length;
19079
19077
  for (let t3 = 0; t3 < Q2; t3++) {
19080
- const e2 = Y2[t3], n3 = q2[e2].createCopiedEntries(K2, X2), r3 = U2[e2].clone(), o3 = n3.removes, s3 = o3.length;
19078
+ const e2 = Y2[t3], n3 = K2[e2].createCopiedEntries(q2, X2), r3 = U2[e2].clone(), o3 = n3.removes, s3 = o3.length;
19081
19079
  for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
19082
19080
  r3.load(n3.inserts), J2[e2] = r3;
19083
19081
  }
@@ -19159,7 +19157,7 @@ class dS {
19159
19157
  if (e2) {
19160
19158
  const n3 = [], s2 = e2.length;
19161
19159
  for (let t3 = 0; t3 < s2; t3++) {
19162
- const s3 = e2[t3], i2 = c.sanitizeRange(s3), a2 = new W_(i2, s3.value.tokens, s3.value.references);
19160
+ const s3 = e2[t3], i2 = c.sanitizeRange(s3), a2 = new H_(i2, s3.value.tokens, s3.value.references);
19163
19161
  if (n3.push({ colStart: i2.colStart, rowStart: i2.rowStart, colEnd: i2.colEnd, rowEnd: i2.rowEnd, value: a2 }), !r2) continue;
19164
19162
  const l2 = s3.value.precedents;
19165
19163
  let h2, d2, u2 = false;
@@ -19713,13 +19711,13 @@ class dS {
19713
19711
  }
19714
19712
  const F2 = n2._getState(), k2 = {}, O2 = { transpose: s3 ?? false };
19715
19713
  g2 && (k2.directStyleSpatial = F2.directStyleSpatial, k2.continuousFillSpatial = F2.continuousFillSpatial, k2.mergeSpatial = F2.mergeSpatial), u2 && (t2._clear([d2], void 0, void 0, false, true), E2.push(d2), k2.rangesListenerSpatial2 = F2.rangesListenerSpatial2);
19716
- const D2 = l2, B2 = D2._getState(), L2 = Object.keys(k2), z2 = L2.length;
19714
+ const D2 = l2, L2 = D2._getState(), B2 = Object.keys(k2), z2 = B2.length;
19717
19715
  for (let t3 = 0; t3 < z2; t3++) {
19718
- const e2 = L2[t3], n3 = k2[e2].createCopiedEntries(d2, x2, O2), r4 = B2[e2].clone(), o2 = n3.removes, s4 = o2.length;
19716
+ const e2 = B2[t3], n3 = k2[e2].createCopiedEntries(d2, x2, O2), r4 = L2[e2].clone(), o2 = n3.removes, s4 = o2.length;
19719
19717
  for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
19720
- r4.load(n3.inserts), B2[e2] = r4;
19718
+ r4.load(n3.inserts), L2[e2] = r4;
19721
19719
  }
19722
- D2._updateState(B2), E2.push(x2), b2.push(x2), w2 && w2.length > 0 && D2._colHeaders.updateHeaderPairs(w2), y2 && y2.length > 0 && D2._rowHeaders.updateHeaderPairs(y2), N2?.apply(), S2.length > 0 && l2.getRanges(S2).merge(), R2.commit({ viewBefore: I2, viewAfter: (t3) => ({ ...t3, view: l2.getView(), selection: u_(b2), ranges: E2 }) });
19720
+ D2._updateState(L2), E2.push(x2), b2.push(x2), w2 && w2.length > 0 && D2._colHeaders.updateHeaderPairs(w2), y2 && y2.length > 0 && D2._rowHeaders.updateHeaderPairs(y2), N2?.apply(), S2.length > 0 && l2.getRanges(S2).merge(), R2.commit({ viewBefore: I2, viewAfter: (t3) => ({ ...t3, view: l2.getView(), selection: u_(b2), ranges: E2 }) });
19723
19721
  } catch (t3) {
19724
19722
  throw console.warn(t3), R2.rollback(), new Error(((t4) => `Unable to paste: ${t4}`)(t3.message), { cause: t3 });
19725
19723
  }
@@ -19916,10 +19914,10 @@ class dS {
19916
19914
  const r3 = [];
19917
19915
  let f3 = -1, p3 = false, A3 = b2, T3 = 1, N3 = 1, F3 = 1;
19918
19916
  const D2 = R2[n3];
19919
- let B2 = D2.colStart, L2 = D2.rowStart, z2 = D2.colEnd, P2 = D2.rowEnd;
19920
- const H2 = this._getUsedCoords();
19921
- (u2 || d2) && H2 && (B2 = u2 ? H2.colStart : D2.colStart, L2 = d2 ? H2.rowStart : D2.rowStart, z2 = u2 ? H2.colEnd : D2.colEnd, P2 = d2 ? H2.rowEnd : D2.rowEnd);
19922
- const W2 = { includeRangeTypes: { [Ph.Type.Style]: false, [Ph.Type.Merge]: false, [Ph.Type.Continuous]: false, [Ph.Type.Contentful]: false }, ignoreHidden: false, bounds: { colStart: B2, rowStart: L2, colEnd: z2, rowEnd: P2 }, orientation: e.Orientation.Column }, V2 = h2 ? [] : void 0, j2 = l2 ? [] : void 0, $2 = (t2, e2, n4) => {
19917
+ let L2 = D2.colStart, B2 = D2.rowStart, z2 = D2.colEnd, P2 = D2.rowEnd;
19918
+ const W2 = this._getUsedCoords();
19919
+ (u2 || d2) && W2 && (L2 = u2 ? W2.colStart : D2.colStart, B2 = d2 ? W2.rowStart : D2.rowStart, z2 = u2 ? W2.colEnd : D2.colEnd, P2 = d2 ? W2.rowEnd : D2.rowEnd);
19920
+ const H2 = { includeRangeTypes: { [Ph.Type.Style]: false, [Ph.Type.Merge]: false, [Ph.Type.Continuous]: false, [Ph.Type.Contentful]: false }, ignoreHidden: false, bounds: { colStart: L2, rowStart: B2, colEnd: z2, rowEnd: P2 }, orientation: e.Orientation.Column }, V2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
19923
19921
  if (t2 > e2) return null;
19924
19922
  const r4 = [];
19925
19923
  let o4 = t2;
@@ -19938,29 +19936,29 @@ class dS {
19938
19936
  r4.push(t3);
19939
19937
  }
19940
19938
  return r4;
19941
- }, G2 = this._rangeStateIterator(W2);
19939
+ }, G2 = this._rangeStateIterator(H2);
19942
19940
  let U2 = G2.next();
19943
19941
  for (; !U2.done; ) {
19944
19942
  const t2 = U2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
19945
19943
  mS.colStart = n4.colIndex, mS.rowStart = n4.rowIndex, mS.colEnd = r4.colIndex, mS.rowEnd = r4.rowIndex;
19946
19944
  const o4 = c.intersectRanges(mS, D2, gS), s4 = Vg(0, o4, e2, v2).getBestFit();
19947
19945
  if (h2) {
19948
- const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex, P2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: k2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19946
+ const t3 = Math.max(n4.rowIndex, B2), e3 = Math.min(r4.rowIndex, P2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: k2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19949
19947
  V2.push(i4);
19950
19948
  }
19951
19949
  if (l2) {
19952
- const t3 = Math.max(n4.colIndex, B2), e3 = Math.min(r4.colIndex, z2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19953
- j2.push(i4);
19950
+ const t3 = Math.max(n4.colIndex, L2), e3 = Math.min(r4.colIndex, z2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19951
+ $2.push(i4);
19954
19952
  }
19955
19953
  U2 = G2.next();
19956
19954
  }
19957
- const J2 = this._cellStateIterator({ ...W2, includeRangeTypes: { [Ph.Type.Merge]: false, [Ph.Type.Table]: false, [Ph.Type.Style]: false, [Ph.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19958
- let q2, K2, X2, Y2 = J2.next(), Q2 = 1, Z2 = 1;
19955
+ const J2 = this._cellStateIterator({ ...H2, includeRangeTypes: { [Ph.Type.Merge]: false, [Ph.Type.Table]: false, [Ph.Type.Style]: false, [Ph.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19956
+ let K2, q2, X2, Y2 = J2.next(), Q2 = 1, Z2 = 1;
19959
19957
  for (; !Y2.done; ) {
19960
19958
  const e2 = Y2.value, n4 = e2[0], l3 = e2[2];
19961
19959
  let h3 = b2;
19962
19960
  const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
19963
- d3 === q2 ? h3 = K2 : (h3 = d3 ? Vg(0, c.cellToRange(n4, fS), l3, v2) : b2, K2 = h3);
19961
+ d3 === K2 ? h3 = q2 : (h3 = d3 ? Vg(0, c.cellToRange(n4, fS), l3, v2) : b2, q2 = h3);
19964
19962
  let u3 = 1, g3 = 1;
19965
19963
  const m3 = l3?.merge ?? null;
19966
19964
  if (m3 === X2) u3 = Q2, g3 = Z2;
@@ -19975,8 +19973,8 @@ class dS {
19975
19973
  if (O3) {
19976
19974
  F3 = O3.getCoords().colEnd - x3 + 1;
19977
19975
  }
19978
- let B3 = false, L3 = false;
19979
- if (q2 === d3 && u3 === T3 && g3 === N3 && M3 !== t.String && M3 !== t.Error && k3 === p3 || (B3 = true, M3 === t.RichData && (L3 = true), L3 && (B3 = false)), q2 = d3, X2 = m3, (f3 !== x3 || B3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: F3, isFit: p3 }), f3 = x3, A3 = h3, p3 = k3, T3 = u3, N3 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, w2 = false, S2 = false, y2 = false, E2 = I3), C2 = I3, !L3) if (null === R3) y2 = true;
19976
+ let L3 = false, B3 = false;
19977
+ if (K2 === d3 && u3 === T3 && g3 === N3 && M3 !== t.String && M3 !== t.Error && k3 === p3 || (L3 = true, M3 === t.RichData && (B3 = true), B3 && (L3 = false)), K2 = d3, X2 = m3, (f3 !== x3 || L3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: F3, isFit: p3 }), f3 = x3, A3 = h3, p3 = k3, T3 = u3, N3 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, w2 = false, S2 = false, y2 = false, E2 = I3), C2 = I3, !B3) if (null === R3) y2 = true;
19980
19978
  else switch (M3) {
19981
19979
  case t.Number:
19982
19980
  0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
@@ -19999,29 +19997,29 @@ class dS {
19999
19997
  const n4 = r3[e2], o4 = x2 || !n4.isFit, s4 = n4.maxVal, i4 = n4.style, a4 = n4.colSpan;
20000
19998
  let l3 = n4.colWidth;
20001
19999
  if (a4 > 1 && (l3 = this._colHeaders.getSpanSize(f3, f3 + a4)), tt2 = 0, et2 = 0, s4 !== Number.MIN_SAFE_INTEGER) {
20002
- const e3 = jg(t.Number, i4, s4, v2, l3, g2, o4);
20000
+ const e3 = $g(t.Number, i4, s4, v2, l3, g2, o4);
20003
20001
  tt2 = e3.width, et2 = e3.height;
20004
20002
  const r4 = n4.minVal;
20005
20003
  if (r4 * s4 < 0) {
20006
- const e4 = jg(t.Number, i4, r4, v2, l3, g2, o4);
20004
+ const e4 = $g(t.Number, i4, r4, v2, l3, g2, o4);
20007
20005
  tt2 = Math.max(tt2, e4.width), et2 = Math.max(et2, e4.height);
20008
20006
  }
20009
20007
  if (n4.hasZero && 0 !== r4 && 0 !== s4) {
20010
- const e4 = jg(t.Number, i4, 0, v2, l3, g2, o4);
20008
+ const e4 = $g(t.Number, i4, 0, v2, l3, g2, o4);
20011
20009
  tt2 = Math.max(tt2, e4.width), et2 = Math.max(et2, e4.height);
20012
20010
  }
20013
20011
  }
20014
20012
  const c2 = n4.text;
20015
20013
  if (c2.length > 0) {
20016
- const e3 = jg(t.String, i4, c2, v2, l3, g2, o4, void 0, I2);
20014
+ const e3 = $g(t.String, i4, c2, v2, l3, g2, o4, void 0, I2);
20017
20015
  tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
20018
20016
  }
20019
20017
  if (n4.hasTrue || n4.hasFalse) {
20020
- const e3 = jg(t.Boolean, i4, !n4.hasFalse, v2, l3, g2, o4);
20018
+ const e3 = $g(t.Boolean, i4, !n4.hasFalse, v2, l3, g2, o4);
20021
20019
  tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
20022
20020
  }
20023
20021
  if (n4.hasEmpty) {
20024
- const e3 = jg(t.Boolean, i4, null, v2, l3, g2, o4);
20022
+ const e3 = $g(t.Boolean, i4, null, v2, l3, g2, o4);
20025
20023
  tt2 = Math.max(tt2, e3.width), et2 = Math.max(et2, e3.height);
20026
20024
  }
20027
20025
  n4.measureWidth = tt2, n4.measureHeight = et2;
@@ -20034,12 +20032,12 @@ class dS {
20034
20032
  for (; o4 && o4.col === n4; ) o4.measureWidth && (s4 = Math.max(o4.measureWidth ?? 0, s4)), t3++, e3 = r3[t3], o4 = r3[t3 + 1];
20035
20033
  0 === s4 && (s4 = null);
20036
20034
  const i4 = O2(s4, e3.spanWidth);
20037
- j2.push({ address: { min: n4, max: n4 }, update: { size: i4, autoSize: true }, sizeSet: null === s4 ? -1 : s4 });
20035
+ $2.push({ address: { min: n4, max: n4 }, update: { size: i4, autoSize: true }, sizeSet: null === s4 ? -1 : s4 });
20038
20036
  }
20039
- j2.sort(m2);
20040
- let t2 = this._colHeaders.updateHeaderPairs(j2, M2);
20041
- t2 = Os(Ds(Bs(t2)));
20042
- const e2 = $2(D2.colStart, D2.colEnd, t2);
20037
+ $2.sort(m2);
20038
+ let t2 = this._colHeaders.updateHeaderPairs($2, M2);
20039
+ t2 = Os(Ds(Ls(t2)));
20040
+ const e2 = j2(D2.colStart, D2.colEnd, t2);
20043
20041
  e2 && this._colHeaders.updateHeaderPairs(e2, M2);
20044
20042
  }
20045
20043
  if (h2) {
@@ -20051,8 +20049,8 @@ class dS {
20051
20049
  }
20052
20050
  V2.sort(m2);
20053
20051
  let t2 = this._rowHeaders.updateHeaderPairs(V2, M2);
20054
- t2 = Os(Ds(Bs(t2)));
20055
- const e2 = $2(D2.rowStart, D2.rowEnd, t2);
20052
+ t2 = Os(Ds(Ls(t2)));
20053
+ const e2 = j2(D2.rowStart, D2.rowEnd, t2);
20056
20054
  e2 && this._rowHeaders.updateHeaderPairs(e2, M2);
20057
20055
  }
20058
20056
  }
@@ -20241,7 +20239,7 @@ class dS {
20241
20239
  p2.push(l3);
20242
20240
  }
20243
20241
  d2.load(p2), n2 = { ...n2 };
20244
- const y2 = new j_(a2, S2, _2, r2, this, l2, m2, f2, h2, n2), E2 = new Map(g2.rangesListenerMap2);
20242
+ const y2 = new $_(a2, S2, _2, r2, this, l2, m2, f2, h2, n2), E2 = new Map(g2.rangesListenerMap2);
20245
20243
  return E2.set(a2, y2), this._updateState({ rangesListenerSpatial2: d2, rangesListenerMap2: E2 }), s2 || this._rangesListenerSorted.set(l2, y2), u2.commit({ forceAmend: true }), h2;
20246
20244
  }
20247
20245
  _getUsedCoords(t2) {
@@ -20841,7 +20839,7 @@ class dS {
20841
20839
  }
20842
20840
  }
20843
20841
  async _addMovable(t2) {
20844
- if (!this.getProtection().isObjectsAllowed()) throw new C(qh);
20842
+ if (!this.getProtection().isObjectsAllowed()) throw new C(Kh);
20845
20843
  if (!t2) throw new C("No movable options provided");
20846
20844
  if (this._closed) throw new Error(td);
20847
20845
  const e2 = {};
@@ -20860,7 +20858,7 @@ class dS {
20860
20858
  }
20861
20859
  async _addImage(t2, e2 = { type: "picture" }) {
20862
20860
  if (!t2) throw new C("An image must be provided as a string or a resource option.");
20863
- if (!this.getProtection().isObjectsAllowed()) throw new C(qh);
20861
+ if (!this.getProtection().isObjectsAllowed()) throw new C(Kh);
20864
20862
  const n2 = this._resources.add(t2), r2 = await n2.toBuffer(), s2 = await n2.getType(), i2 = this._getBoundsAtCoords(this.getSelection().getRangesCoords()[0]), { naturalSize: a2, asUrl: l2 } = await w.loadImageDetails(r2, s2);
20865
20863
  URL.revokeObjectURL(l2);
20866
20864
  const c2 = { ...i2, ...a2, ...e2?.bounds };
@@ -20888,13 +20886,13 @@ class dS {
20888
20886
  const s2 = [t2];
20889
20887
  for (let e3 = 0; e3 < t2; e3++) s2.push(e3);
20890
20888
  e2 && console.profileEnd("nativeArray"), window.noLoseArray = s2, o2 = performance.now(), console.log(`NativeArray: ${t2} records in ${o2 - r2} milliseconds`), r2 = performance.now(), e2 && console.profile("mixedType");
20891
- const i2 = jl.fromArray(n2);
20889
+ const i2 = $l.fromArray(n2);
20892
20890
  e2 && console.profileEnd("mixedType"), window.noLoseList = i2, o2 = performance.now(), console.log(`MixedTypedList: ${t2} records in ${o2 - r2} milliseconds`);
20893
20891
  }
20894
20892
  _validateOrRemoveOverlaps(t2, e2, n2 = null, r2 = false) {
20895
20893
  const o2 = this;
20896
20894
  "merge" !== e2 && dc(this._getMerges([t2]), t2, (t3, n3) => {
20897
- if (n3 || !r2) throw new C(Kh(e2));
20895
+ if (n3 || !r2) throw new C(qh(e2));
20898
20896
  o2._unmerge([t3]);
20899
20897
  });
20900
20898
  const s2 = [], i2 = this.getTables().getItems({ address: t2 }), a2 = i2.length;
@@ -20903,7 +20901,7 @@ class dS {
20903
20901
  n2 !== e3 && s2.push(e3.getAnchorCoords());
20904
20902
  }
20905
20903
  dc(s2, t2, (t3, n3, o3) => {
20906
- if (n3 || !r2) throw new C(Kh(e2));
20904
+ if (n3 || !r2) throw new C(qh(e2));
20907
20905
  i2[o3].delete();
20908
20906
  });
20909
20907
  }
@@ -21201,7 +21199,7 @@ class dS {
21201
21199
  };
21202
21200
  this._transactionsRemoveListener = this._transactions.addStateListener(this, { onBeforeCommitStart(e2, n3, r3) {
21203
21201
  if (!t2._initializing && !n3?.skipProtectionCheck) {
21204
- if (t2.getProtection().isLocked()) throw new C($h);
21202
+ if (t2.getProtection().isLocked()) throw new C(jh);
21205
21203
  }
21206
21204
  }, async onBeforeCommitEnd(e2, n3, r3) {
21207
21205
  if (n3?.ranges) {
@@ -21313,7 +21311,7 @@ class dS {
21313
21311
  t2._defaultColWidthCache = 0, t2._defaultRowHeightCache = 0, t2._defaultFontBoundsCache = null, t2._emitter.notify("onLayoutChange"), t2._emitter.notify("onViewChange");
21314
21312
  } }, c2 = new J_({ sheet: this });
21315
21313
  this._view = c2, this._clearState(), this._viewRemoveListener = c2.addListeners(l2, { transactional: false }), this._viewListener = l2, this._colHeadersRemoveListener?.();
21316
- this._colHeaders = new L_({ sheet: t2, orientation: e.Orientation.Column, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatColumnsAllowed(), getTextAt: (t3) => {
21314
+ this._colHeaders = new B_({ sheet: t2, orientation: e.Orientation.Column, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatColumnsAllowed(), getTextAt: (t3) => {
21317
21315
  const e2 = this.getView().getColumnHeaderStyle();
21318
21316
  return e2 === Op.HeaderTextStyle.A1 ? iS(t3) : e2 === Op.HeaderTextStyle.Zero ? sS(t3) : e2 === Op.HeaderTextStyle.One ? aS(t3) : void 0;
21319
21317
  }, defaultSize: () => this._defaultColWidth(), scaleFactor: () => {
@@ -21323,7 +21321,7 @@ class dS {
21323
21321
  this._colHeadersShiftCallback = t3;
21324
21322
  } }), this._colHeadersRemoveListener = this._colHeaders.addListeners(this._colHeadersListener, { transactional: true }), this._rowHeadersRemoveListener?.();
21325
21323
  const h2 = rs.getDeviceScale();
21326
- this._rowHeaders = new L_({ sheet: t2, orientation: e.Orientation.Row, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatRowsAllowed(), getTextAt: (t3) => {
21324
+ this._rowHeaders = new B_({ sheet: t2, orientation: e.Orientation.Row, transactions: this._transactions, isProtected: () => !t2._initializing && !t2.getProtection().isFormatRowsAllowed(), getTextAt: (t3) => {
21327
21325
  const e2 = this.getView().getRowHeaderStyle();
21328
21326
  return e2 === Op.HeaderTextStyle.One ? aS(t3) : e2 === Op.HeaderTextStyle.Zero ? sS(t3) : e2 === Op.HeaderTextStyle.A1 ? iS(t3) : void 0;
21329
21327
  }, defaultSize: () => this._defaultRowHeight(), scaleFactor: () => h2, minSize: () => 0, maxSize: () => 409, maxSheetCoords: () => t2._entireCoords, setContainerShiftedCallback: (t3) => {
@@ -21669,7 +21667,7 @@ class dS {
21669
21667
  if ("graphicFrame" !== d2) throw new C(((t3) => `Unsupported float type: ${t3}`)(d2));
21670
21668
  w2 = new r_(S2);
21671
21669
  }
21672
- return o2.model = new $p({ ...p2, content: w2 }), u2 = false, s2;
21670
+ return o2.model = new jp({ ...p2, content: w2 }), u2 = false, s2;
21673
21671
  }
21674
21672
  _fromJSON(n2) {
21675
21673
  this._initializing = true, this._emitter.notify("onBeforeLoad", { params: n2 }), this._clearState();
@@ -21817,27 +21815,27 @@ class dS {
21817
21815
  }
21818
21816
  k2.load(t2);
21819
21817
  }
21820
- const O2 = m2.tableMapModel, D2 = m2.tableMapName, B2 = m2.tableSpatial, L2 = s2.tables;
21821
- if (L2) {
21822
- const t2 = [], e2 = L2.length;
21818
+ const O2 = m2.tableMapModel, D2 = m2.tableMapName, L2 = m2.tableSpatial, B2 = s2.tables;
21819
+ if (B2) {
21820
+ const t2 = [], e2 = B2.length;
21823
21821
  for (let n3 = 0; n3 < e2; n3++) {
21824
- const e3 = L2[n3], r3 = this._createTableEntry(e3), o2 = r3.value.model;
21822
+ const e3 = B2[n3], r3 = this._createTableEntry(e3), o2 = r3.value.model;
21825
21823
  O2.set(o2, r3), D2.set(r3.value.currentName, o2), t2.push(r3);
21826
21824
  }
21827
- B2.load(t2);
21825
+ L2.load(t2);
21828
21826
  }
21829
- const z2 = m2.conditionalSpatial, P2 = m2.conditionalModels, H2 = s2.conditionals;
21830
- if (H2) {
21831
- const t2 = H2.length;
21827
+ const z2 = m2.conditionalSpatial, P2 = m2.conditionalModels, W2 = s2.conditionals;
21828
+ if (W2) {
21829
+ const t2 = W2.length;
21832
21830
  for (let e2 = 0; e2 < t2; e2++) {
21833
- const t3 = H2[e2];
21831
+ const t3 = W2[e2];
21834
21832
  this._createConditionalEntries(t3, z2, P2);
21835
21833
  }
21836
21834
  }
21837
- const W2 = m2.calcGraph, V2 = W2.fromJSON({ formulas: s2.formulas, data: y2, dynamic: s2.dynamicArray, volatile: s2.volatile });
21838
- m2 = this._updateState({ hyperlinkSpatial: A2, commentsSpatial: T2, movableSpatial: k2, movableMapModel: F2, tableSpatial: B2, tableMapModel: O2, tableMapName: D2, conditionalSpatial: z2, conditionalModels: P2, calcGraph: W2 });
21839
- const j2 = this._getUsedCoords();
21840
- j2 && this._autoFit([j2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), V2 && this._realizeCalcedValues(V2), s2.protection && this._protection.fromJSON(s2.protection), this._emitter.notify("onLoad");
21835
+ const H2 = m2.calcGraph, V2 = H2.fromJSON({ formulas: s2.formulas, data: y2, dynamic: s2.dynamicArray, volatile: s2.volatile });
21836
+ m2 = this._updateState({ hyperlinkSpatial: A2, commentsSpatial: T2, movableSpatial: k2, movableMapModel: F2, tableSpatial: L2, tableMapModel: O2, tableMapName: D2, conditionalSpatial: z2, conditionalModels: P2, calcGraph: H2 });
21837
+ const $2 = this._getUsedCoords();
21838
+ $2 && this._autoFit([$2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), V2 && this._realizeCalcedValues(V2), s2.protection && this._protection.fromJSON(s2.protection), this._emitter.notify("onLoad");
21841
21839
  } finally {
21842
21840
  h2.endPersist(), l2.endPersist(), a2.endPersist();
21843
21841
  }
@@ -21853,14 +21851,14 @@ class dS {
21853
21851
  return e2(t2), this;
21854
21852
  }
21855
21853
  getVisibility() {
21856
- return this._closed ? jp.Visibility.VeryHidden : this._options.container?.getVisibility?.() ?? jp.Visibility.Hidden;
21854
+ return this._closed ? $p.Visibility.VeryHidden : this._options.container?.getVisibility?.() ?? $p.Visibility.Hidden;
21857
21855
  }
21858
21856
  setVisibility(t2 = true) {
21859
21857
  if (this._closed) throw new Error(td);
21860
21858
  const e2 = this._options.container?.setVisibility;
21861
21859
  if (!e2) throw new C("Unable to set visibility for sheet.");
21862
21860
  let n2;
21863
- return n2 = true === t2 ? jp.Visibility.Visible : false === t2 ? jp.Visibility.Hidden : t2, e2(n2), this;
21861
+ return n2 = true === t2 ? $p.Visibility.Visible : false === t2 ? $p.Visibility.Hidden : t2, e2(n2), this;
21864
21862
  }
21865
21863
  async select(t2) {
21866
21864
  return await this._options.container?.requestSelect?.(t2), this;
@@ -22068,7 +22066,7 @@ class AS {
22068
22066
  }
22069
22067
  }
22070
22068
  let MS;
22071
- const TS = "SheetXL", NS = MS || (MS = o.deepFreeze({ ISheet: { Visibility: jp.Visibility }, ICell: { Content: ld.Content, CalcStatus: ld.CalcStatus }, IColor: { Named: Js.Named, Scheme: Js.Scheme, Type: Js.Type, AdjustmentType: Js.AdjustmentType }, Direction: h }), MS);
22069
+ const TS = "SheetXL", NS = MS || (MS = o.deepFreeze({ ISheet: { Visibility: $p.Visibility }, ICell: { Content: ld.Content, CalcStatus: ld.CalcStatus }, IColor: { Named: Js.Named, Scheme: Js.Scheme, Type: Js.Type, AdjustmentType: Js.AdjustmentType }, Direction: h }), MS);
22072
22070
  let FS;
22073
22071
  class kS extends gp {
22074
22072
  constructor(t2, e2, n2, r2 = null, o2 = false) {
@@ -22193,7 +22191,7 @@ const DS = async (t2, e2) => {
22193
22191
  let o2 = n2[r2];
22194
22192
  if (!o2 && e2.behavior.default && (o2 = n2.default), !o2) throw new Error(`Found the descriptor for '${r2}' but not the function. The descriptor manifest must be corrupt.`);
22195
22193
  return o2;
22196
- }, BS = async (t2, e2, n2 = false) => {
22194
+ }, LS = async (t2, e2, n2 = false) => {
22197
22195
  const r2 = e2?.functions, o2 = /* @__PURE__ */ new Map();
22198
22196
  if (r2) for (let t3 = 0; t3 < r2.length; t3++) {
22199
22197
  const s2 = r2[t3], i2 = s2[0], a2 = s2[1];
@@ -22203,7 +22201,7 @@ const DS = async (t2, e2) => {
22203
22201
  }
22204
22202
  return new OS({ json: e2, readonlyFunctions: o2, name: t2 });
22205
22203
  };
22206
- class LS {
22204
+ class BS {
22207
22205
  constructor(t2) {
22208
22206
  this._emitter = null, this._options = t2, this._emitter = new aa(this), this._initState();
22209
22207
  }
@@ -22214,7 +22212,7 @@ class LS {
22214
22212
  }
22215
22213
  async createModule(t2) {
22216
22214
  const e2 = await import("@sheetxl/scripting"), n2 = await e2.ScriptingUtils.compileTypescript(t2);
22217
- return n2 ? await BS("scripts", n2, t2?.declarationsOnly ?? false) : null;
22215
+ return n2 ? await LS("scripts", n2, t2?.declarationsOnly ?? false) : null;
22218
22216
  }
22219
22217
  addModule(t2, e2, n2) {
22220
22218
  this._modules.add(t2, e2, n2);
@@ -22253,7 +22251,7 @@ class LS {
22253
22251
  if (e2) {
22254
22252
  const t3 = Object.keys(e2);
22255
22253
  for (let r3 = 0; r3 < t3.length; r3++) {
22256
- const o2 = t3[r3], s3 = e2[o2], i3 = await BS(o2, s3);
22254
+ const o2 = t3[r3], s3 = e2[o2], i3 = await LS(o2, s3);
22257
22255
  n2[o2] = i3;
22258
22256
  }
22259
22257
  }
@@ -22319,8 +22317,8 @@ class PS extends Z_ {
22319
22317
  return super._toJSON(t2);
22320
22318
  }
22321
22319
  }
22322
- const HS = (t2) => `Invalid SheetKey: ${t2}`, WS = "A workbook must contain at least one visible worksheet.", VS = "Internal error no visible sheetRefs", jS = "Workbook has been closed. No further operations are allowed.", $S = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", GS = "A sheet name", US = `${GS} can not be blank.`, JS = `${GS} can not be longer than 31 characters.`, qS = `${GS} can not begin or end with a "'" (single quote).`;
22323
- class KS {
22320
+ const WS = (t2) => `Invalid SheetKey: ${t2}`, HS = "A workbook must contain at least one visible worksheet.", VS = "Internal error no visible sheetRefs", $S = "Workbook has been closed. No further operations are allowed.", jS = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", GS = "A sheet name", US = `${GS} can not be blank.`, JS = `${GS} can not be longer than 31 characters.`, KS = `${GS} can not begin or end with a "'" (single quote).`;
22321
+ class qS {
22324
22322
  constructor(t2, e2) {
22325
22323
  this._add = t2, this._get = e2;
22326
22324
  }
@@ -22350,7 +22348,7 @@ const XS = new RegExp(/[\\/\\*?:[\]]+/), YS = new RegExp(/\(((\d+)(?!.*\d))\)$/,
22350
22348
  t2 = t2.substring(0, 31);
22351
22349
  }
22352
22350
  if ("'" === t2.charAt(0) || "'" === t2.charAt(n2 - 1)) {
22353
- if (!e2) throw new Error(qS);
22351
+ if (!e2) throw new Error(KS);
22354
22352
  t2 = t2.replace(/^'|'$/g, "");
22355
22353
  }
22356
22354
  return t2;
@@ -22368,7 +22366,7 @@ class ew extends nS {
22368
22366
  }
22369
22367
  _createRange(t2, e2) {
22370
22368
  const n2 = t2 ? { ...t2 } : null;
22371
- if (!(n2 ? this._workbook._getSheetRef(n2.sheetName, jp.Visibility.VeryHidden) : null)) {
22369
+ if (!(n2 ? this._workbook._getSheetRef(n2.sheetName, $p.Visibility.VeryHidden) : null)) {
22372
22370
  const t3 = this._workbook.getSelectedSheet();
22373
22371
  return delete n2?.sheetName, ZS(n2, n2 ? { sheetName: Pc, ...t3.getEntireRange().getCoords() } : null);
22374
22372
  }
@@ -22444,7 +22442,7 @@ class rw {
22444
22442
  t3 || (t3 = (t4) => new dS(t4)), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (n3, r3, o3, s3, i2) => {
22445
22443
  let a2 = null;
22446
22444
  const l2 = { date1904: e2.isDate1904(), readonly: e2._options.readonly ?? false, transactions: e2._transactions, styles: e2._styles, strings: e2._strings, resources: e2._resources, names: e2._names, workbook: e2, calculation: e2._calculation, resolveRange: (t4) => e2._options.resolveRange?.(t4) ?? e2.getRange(t4), container: { beforeFromJSON: (t4) => {
22447
- a2 = t4, e2._addSheetRef({ name: r3, id: n3, visibility: o3 ?? jp.Visibility.Visible, sheet: t4 }, s3);
22445
+ a2 = t4, e2._addSheetRef({ name: r3, id: n3, visibility: o3 ?? $p.Visibility.Visible, sheet: t4 }, s3);
22448
22446
  }, getName: () => {
22449
22447
  const t4 = e2._getSheetRef(a2);
22450
22448
  return t4 ? t4.name : e2._createSheetName(1);
@@ -22452,20 +22450,20 @@ class rw {
22452
22450
  e2._getSheetRef(a2) && e2._setSheetName(a2, t4);
22453
22451
  }, getIndex: () => {
22454
22452
  const t4 = e2._getSheetRef(a2);
22455
- return t4 ? e2._findOffsetForId(t4.id, e2._getSheetRefs(jp.Visibility.VeryHidden)) : -1;
22453
+ return t4 ? e2._findOffsetForId(t4.id, e2._getSheetRefs($p.Visibility.VeryHidden)) : -1;
22456
22454
  }, setIndexCallback: (t4) => {
22457
22455
  e2._sheetOnIndexChange.set(n3, t4);
22458
22456
  }, setNameChangeCallback: (t4) => {
22459
22457
  e2._sheetOnNameChange.set(n3, t4);
22460
22458
  }, getVisibility: () => {
22461
22459
  const t4 = e2._getSheetRef(a2);
22462
- return t4 ? t4.visibility : jp.Visibility.Visible;
22460
+ return t4 ? t4.visibility : $p.Visibility.Visible;
22463
22461
  }, setVisibility: (t4) => {
22464
22462
  e2._setSheetVisibility(a2, t4);
22465
22463
  }, setVisibilityCallback: (t4) => {
22466
22464
  e2._sheetOnVisibilityChange.set(n3, t4);
22467
22465
  }, duplicate: () => e2._duplicateSheet(a2), setPosition: (t4) => {
22468
- const n4 = e2._getSheetRef(a2, jp.Visibility.VeryHidden);
22466
+ const n4 = e2._getSheetRef(a2, $p.Visibility.VeryHidden);
22469
22467
  return !!n4 && (e2._moveSheet(n4, t4), true);
22470
22468
  }, requestSelect: async () => (e2._setSelectedSheet(a2), await this._emitter.notify("onRequestSelect", { source: e2, params: a2, async: true }), e2.getSelectedSheet() === a2) } };
22471
22469
  return i2 && (l2.json = i2), a2 = t3(l2, r3, s3, o3), a2;
@@ -22479,7 +22477,7 @@ class rw {
22479
22477
  }
22480
22478
  }, getSheetIndex: (t4) => {
22481
22479
  if (void 0 === t4) return e2.getSelectedSheetIndex();
22482
- const n3 = this._getSheetRefs(jp.Visibility.Hidden);
22480
+ const n3 = this._getSheetRefs($p.Visibility.Hidden);
22483
22481
  t4 = t4.toLowerCase();
22484
22482
  const r3 = n3.length;
22485
22483
  for (let e3 = 0; e3 < r3; e3++) if (n3[e3].name.toLowerCase() === t4) return e3;
@@ -22490,7 +22488,7 @@ class rw {
22490
22488
  const n4 = e3[0].getRanges().getCoords()?.[0];
22491
22489
  let r4 = n4?.sheetName;
22492
22490
  if (!r4) return -1;
22493
- const o3 = this._getSheetRefs(jp.Visibility.Hidden);
22491
+ const o3 = this._getSheetRefs($p.Visibility.Hidden);
22494
22492
  r4 = r4.toLowerCase();
22495
22493
  const s3 = o3.length;
22496
22494
  for (let t5 = 0; t5 < s3; t5++) if (o3[t5].name.toLowerCase() === r4) return t5;
@@ -22506,7 +22504,7 @@ class rw {
22506
22504
  } catch (t3) {
22507
22505
  throw o2.rollback(), t3;
22508
22506
  }
22509
- this._sheets = new KS((t3) => e2._addSheetOptions(t3), (t3, e3) => t3 ? [this.getSheet(t3, e3)] : this._getSheets(e3)), this._initializing = false;
22507
+ this._sheets = new qS((t3) => e2._addSheetOptions(t3), (t3, e3) => t3 ? [this.getSheet(t3, e3)] : this._getSheets(e3)), this._initializing = false;
22510
22508
  }
22511
22509
  _initState() {
22512
22510
  let t2 = this._getSheetRefs();
@@ -22538,7 +22536,7 @@ class rw {
22538
22536
  return this._closed ? null : this._getState().name;
22539
22537
  }
22540
22538
  setName(t2) {
22541
- if (this._closed) throw new Error(jS);
22539
+ if (this._closed) throw new Error($S);
22542
22540
  if (null !== t2) try {
22543
22541
  const e2 = this._options.validateWorkbookName?.(t2);
22544
22542
  void 0 !== e2 && (t2 = e2);
@@ -22551,7 +22549,7 @@ class rw {
22551
22549
  return this._view;
22552
22550
  }
22553
22551
  setView(t2) {
22554
- if (this._closed) throw new Error(jS);
22552
+ if (this._closed) throw new Error($S);
22555
22553
  if (!t2) throw new C("View can not be empty.");
22556
22554
  this._listenerWorkbookView?.();
22557
22555
  const e2 = this;
@@ -22565,7 +22563,7 @@ class rw {
22565
22563
  return this._isDate1904;
22566
22564
  }
22567
22565
  setDate1904(t2) {
22568
- if (this._closed) throw new Error(jS);
22566
+ if (this._closed) throw new Error($S);
22569
22567
  return this._isDate1904 = t2, this._notifyAllChange(), this;
22570
22568
  }
22571
22569
  getStyles() {
@@ -22584,7 +22582,7 @@ class rw {
22584
22582
  return this._theme;
22585
22583
  }
22586
22584
  setTheme(t2) {
22587
- if (this._closed) throw new Error(jS);
22585
+ if (this._closed) throw new Error($S);
22588
22586
  if (!t2) throw new C("A value must be provided.");
22589
22587
  const e2 = this._theme;
22590
22588
  return this._theme = t2, this.getStyles().setTheme(t2), this._emitter.notify("onThemeChange"), e2;
@@ -22596,12 +22594,12 @@ class rw {
22596
22594
  const t2 = this._getSheetRef(this.getSelectedSheetIndex());
22597
22595
  return t2 ? t2?.sheet : null;
22598
22596
  }
22599
- getSheet(t2, e2 = jp.Visibility.Visible) {
22597
+ getSheet(t2, e2 = $p.Visibility.Visible) {
22600
22598
  const n2 = this._getSheetRef(t2, e2);
22601
22599
  if (!n2) throw new d(`Sheet '${t2}' not found.`);
22602
22600
  return n2.sheet;
22603
22601
  }
22604
- getSheetAt(t2, e2 = jp.Visibility.Visible) {
22602
+ getSheetAt(t2, e2 = $p.Visibility.Visible) {
22605
22603
  const n2 = this._getSheetRef(t2, e2);
22606
22604
  if (!n2) throw new d(((t3) => `No sheet found at ${t3}.`)(t2));
22607
22605
  return n2.sheet;
@@ -22612,17 +22610,17 @@ class rw {
22612
22610
  addSheet(t2) {
22613
22611
  return this.getSheets().add(t2);
22614
22612
  }
22615
- _getSheets(t2 = jp.Visibility.Visible) {
22613
+ _getSheets(t2 = $p.Visibility.Visible) {
22616
22614
  const e2 = this._getSheetRefs(t2), n2 = [], r2 = e2.length;
22617
22615
  for (let t3 = 0; t3 < r2; t3++) n2.push(e2[t3].sheet);
22618
22616
  return n2;
22619
22617
  }
22620
- _getSheetRefs(t2 = jp.Visibility.Visible) {
22618
+ _getSheetRefs(t2 = $p.Visibility.Visible) {
22621
22619
  if (this._closed) return o.EmptyArray;
22622
22620
  const e2 = this._getState();
22623
- return e2 ? t2 === jp.Visibility.Visible ? e2.sheetRefsVisible : t2 === jp.Visibility.Hidden ? e2.sheetRefsVisibleAndHidden : t2 === jp.Visibility.VeryHidden ? e2.sheetRefsAll : o.EmptyArray : [];
22621
+ return e2 ? t2 === $p.Visibility.Visible ? e2.sheetRefsVisible : t2 === $p.Visibility.Hidden ? e2.sheetRefsVisibleAndHidden : t2 === $p.Visibility.VeryHidden ? e2.sheetRefsAll : o.EmptyArray : [];
22624
22622
  }
22625
- _getSheetRef(t2, e2 = jp.Visibility.Visible) {
22623
+ _getSheetRef(t2, e2 = $p.Visibility.Visible) {
22626
22624
  if (this._closed) return null;
22627
22625
  let n2 = null;
22628
22626
  if ("number" == typeof t2) {
@@ -22662,8 +22660,8 @@ class rw {
22662
22660
  return !XS.test(t2);
22663
22661
  }
22664
22662
  _addSheetOptions(t2) {
22665
- if (this._closed) throw new Error(jS);
22666
- if (!this.getProtection().isStructureAllowed()) throw new C($S);
22663
+ if (this._closed) throw new Error($S);
22664
+ if (!this.getProtection().isStructureAllowed()) throw new C(jS);
22667
22665
  let e2, n2 = null;
22668
22666
  e2 = "string" == typeof t2 ? { name: t2 } : "number" == typeof t2 ? { index: t2 } : t2, e2 = { ...e2, description: e2?.description ?? "Add Sheet" };
22669
22667
  const r2 = this.beginCommit(e2);
@@ -22699,15 +22697,15 @@ class rw {
22699
22697
  }
22700
22698
  _addSheet(t2, e2 = null, n2 = null) {
22701
22699
  e2 = this._nextSheetName(e2);
22702
- const r2 = this._getState(), o2 = this._createSheet(r2.lastId, e2, jp.Visibility.Visible, n2, null);
22700
+ const r2 = this._getState(), o2 = this._createSheet(r2.lastId, e2, $p.Visibility.Visible, n2, null);
22703
22701
  if (!o2) throw new C(US);
22704
22702
  return t2 && this._emitter.notify("onSheetsChange"), o2;
22705
22703
  }
22706
22704
  _updateSheetRefStates(t2) {
22707
- if (this._closed) throw new Error(jS);
22708
- if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new C($S);
22705
+ if (this._closed) throw new Error($S);
22706
+ if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new C(jS);
22709
22707
  const e2 = t2, n2 = [], r2 = [], o2 = e2.length;
22710
- for (let t3 = 0; t3 < o2; t3++) e2[t3].visibility === jp.Visibility.Visible ? (n2.push(e2[t3]), r2.push(e2[t3])) : e2[t3].visibility === jp.Visibility.Hidden && r2.push(e2[t3]);
22708
+ for (let t3 = 0; t3 < o2; t3++) e2[t3].visibility === $p.Visibility.Visible ? (n2.push(e2[t3]), r2.push(e2[t3])) : e2[t3].visibility === $p.Visibility.Hidden && r2.push(e2[t3]);
22711
22709
  this._updateState({ sheetRefsAll: e2, sheetRefsVisible: n2, sheetRefsVisibleAndHidden: r2 });
22712
22710
  }
22713
22711
  _addSheetRef(t2, e2 = null) {
@@ -22730,7 +22728,7 @@ class rw {
22730
22728
  const e3 = i2.addListeners({ onBeforeDelete: (t3) => {
22731
22729
  g2._validateDeleteSheet(t3);
22732
22730
  }, onDelete(t3) {
22733
- let e4 = g2._getSheetRef(t3, jp.Visibility.VeryHidden);
22731
+ let e4 = g2._getSheetRef(t3, $p.Visibility.VeryHidden);
22734
22732
  if (!e4) return;
22735
22733
  const n3 = g2._beginCommit({ description: `Remove Sheet ${e4.name}` });
22736
22734
  try {
@@ -22779,15 +22777,15 @@ class rw {
22779
22777
  if (-1 === e2) return;
22780
22778
  let n2 = this._view.getActiveSheetId();
22781
22779
  null == n2 && (this._view.setActiveSheetId(e2), n2 = e2);
22782
- t2.refsById.get(n2).visibility === jp.Visibility.Visible && (this._activeSheetOffset = this._findOffsetForId(n2, t2.sheetRefsVisible));
22780
+ t2.refsById.get(n2).visibility === $p.Visibility.Visible && (this._activeSheetOffset = this._findOffsetForId(n2, t2.sheetRefsVisible));
22783
22781
  }
22784
22782
  _validateDeleteSheet(t2) {
22785
- if (this._closed) throw new Error(jS);
22786
- if (!this.getProtection().isStructureAllowed()) throw new C($S);
22783
+ if (this._closed) throw new Error($S);
22784
+ if (!this.getProtection().isStructureAllowed()) throw new C(jS);
22787
22785
  let e2 = this._getSheetRef(t2);
22788
22786
  if (!e2) throw new C(((t3) => `Invalid reference for delete: ${t3}`)(t2));
22789
22787
  const n2 = this._getState().sheetRefsVisible;
22790
- if (1 === n2.length && n2[0].id === e2.id) throw new C(WS);
22788
+ if (1 === n2.length && n2[0].id === e2.id) throw new C(HS);
22791
22789
  }
22792
22790
  _findOffsetForId(t2, e2) {
22793
22791
  const n2 = e2.length;
@@ -22795,7 +22793,7 @@ class rw {
22795
22793
  throw new C(VS);
22796
22794
  }
22797
22795
  find(t2) {
22798
- if (this._closed) throw new Error(jS);
22796
+ if (this._closed) throw new Error($S);
22799
22797
  const e2 = this._getSheets();
22800
22798
  if (1 === e2.length) return e2[0].find(t2);
22801
22799
  "string" == typeof t2 && (t2 = { text: t2 });
@@ -22860,22 +22858,22 @@ class rw {
22860
22858
  return 1 === n2 ? 0 : (void 0 === t2 && (t2 = this.getSelectedSheetIndex()), (t2 = Math.max(0, Math.min(t2, n2 - 1))) <= 0 ? n2 - 1 : t2 - 1);
22861
22859
  }
22862
22860
  getNextSheet(t2) {
22863
- if (this._closed) throw new Error(jS);
22861
+ if (this._closed) throw new Error($S);
22864
22862
  const e2 = this._getSheetRefs();
22865
22863
  return e2[this._nextSheetIndex(t2, e2)]?.sheet ?? null;
22866
22864
  }
22867
22865
  getPreviousSheet(t2) {
22868
- if (this._closed) throw new Error(jS);
22866
+ if (this._closed) throw new Error($S);
22869
22867
  const e2 = this._getSheetRefs();
22870
22868
  return e2[this._prevSheetIndex(t2, e2)]?.sheet ?? null;
22871
22869
  }
22872
22870
  async _duplicateSheet(t2) {
22873
- if (this._closed) throw new Error(jS);
22874
- if (!this.getProtection().isStructureAllowed()) throw new C($S);
22871
+ if (this._closed) throw new Error($S);
22872
+ if (!this.getProtection().isStructureAllowed()) throw new C(jS);
22875
22873
  const e2 = this._getSheetRefs(), n2 = this.getSelectedSheetIndex();
22876
22874
  let r2 = null;
22877
22875
  if (t2) {
22878
- if (r2 = this._getSheetRef(t2), !r2) throw new C(HS(r2));
22876
+ if (r2 = this._getSheetRef(t2), !r2) throw new C(WS(r2));
22879
22877
  } else r2 = e2[n2];
22880
22878
  if (!r2) return null;
22881
22879
  const o2 = r2.sheet, s2 = this._strings.beginPersist(), i2 = this.getResources().beginPersist(), a2 = this.getStyles().beginPersist();
@@ -22893,7 +22891,7 @@ class rw {
22893
22891
  }
22894
22892
  _createRange(t2, e2) {
22895
22893
  const n2 = t2 ? { ...t2 } : null;
22896
- if (!(n2 ? this._getSheetRef(n2.sheetName, jp.Visibility.VeryHidden) : null)) {
22894
+ if (!(n2 ? this._getSheetRef(n2.sheetName, $p.Visibility.VeryHidden) : null)) {
22897
22895
  const t3 = this.getSelectedSheet();
22898
22896
  return t3 ? (delete n2?.sheetName, ZS(n2, n2 ? { sheetName: Pc, ...t3.getEntireRange().getCoords() } : null)) : void console.warn(VS);
22899
22897
  }
@@ -22935,7 +22933,7 @@ class rw {
22935
22933
  getSelectedCell() {
22936
22934
  return this.getSelectedSheet().getSelectedCell();
22937
22935
  }
22938
- _rangesAddressToCoords(t2, e2 = true, n2 = jp.Visibility.Hidden) {
22936
+ _rangesAddressToCoords(t2, e2 = true, n2 = $p.Visibility.Hidden) {
22939
22937
  if (!t2) throw new C(Ih);
22940
22938
  const r2 = this.getSelectedSheet(), o2 = r2?.getEntireRange().getCoords(), s2 = { ...o2 }, i2 = r2?.getName();
22941
22939
  if (i2 && (s2.sheetName = i2), "string" == typeof t2) {
@@ -22956,7 +22954,7 @@ class rw {
22956
22954
  for (let t3 = 0; t3 < c2; t3++) this._validateCoords(l2[t3], n2);
22957
22955
  return l2;
22958
22956
  }
22959
- _validateCoords(t2, e2 = jp.Visibility.Visible, n2 = Uh) {
22957
+ _validateCoords(t2, e2 = $p.Visibility.Visible, n2 = Uh) {
22960
22958
  if (null === t2) return;
22961
22959
  const r2 = this.getSheet(t2.sheetName, e2).getEntireRange().getCoords();
22962
22960
  if (!c.isRangeWithinRange(t2, r2)) throw new d(n2);
@@ -22977,10 +22975,10 @@ class rw {
22977
22975
  return h2.set(c2, e2), this._updateState({ refsById: o2, refsByLowerCaseName: a2, sheetsByLowerCaseName: l2, refsByInstance: h2 }), e2;
22978
22976
  }
22979
22977
  _setSheetName(t2, e2) {
22980
- if (this._closed) throw new Error(jS);
22981
- if (!this.getProtection().isStructureAllowed()) throw new C($S);
22978
+ if (this._closed) throw new Error($S);
22979
+ if (!this.getProtection().isStructureAllowed()) throw new C(jS);
22982
22980
  const n2 = this._getSheetRef(t2);
22983
- if (!n2) throw new C(HS(t2));
22981
+ if (!n2) throw new C(WS(t2));
22984
22982
  if (e2 === n2.name) return n2.sheet;
22985
22983
  e2 = this._validateNewSheetName(e2);
22986
22984
  const r2 = Object.freeze({ ...n2, name: e2 });
@@ -22996,23 +22994,23 @@ class rw {
22996
22994
  }
22997
22995
  return o2;
22998
22996
  }
22999
- _setSheetVisibility(t2, e2 = jp.Visibility.Visible) {
23000
- if (this._closed) throw new Error(jS);
23001
- if (!this.getProtection().isStructureAllowed()) throw new C($S);
23002
- const n2 = this._getSheetRef(t2, jp.Visibility.VeryHidden);
22997
+ _setSheetVisibility(t2, e2 = $p.Visibility.Visible) {
22998
+ if (this._closed) throw new Error($S);
22999
+ if (!this.getProtection().isStructureAllowed()) throw new C(jS);
23000
+ const n2 = this._getSheetRef(t2, $p.Visibility.VeryHidden);
23003
23001
  if (!n2) return null;
23004
23002
  if (e2 === n2.visibility) return;
23005
23003
  let r2 = null, o2 = "";
23006
- e2 === jp.Visibility.Visible ? o2 = "Unhide Sheet" : e2 === jp.Visibility.Hidden ? o2 = "Hide Sheet" : e2 === jp.Visibility.VeryHidden && (o2 = "Very Hide Sheet");
23004
+ e2 === $p.Visibility.Visible ? o2 = "Unhide Sheet" : e2 === $p.Visibility.Hidden ? o2 = "Hide Sheet" : e2 === $p.Visibility.VeryHidden && (o2 = "Very Hide Sheet");
23007
23005
  const s2 = this.beginCommit(o2);
23008
23006
  try {
23009
23007
  const t3 = this._getState().sheetRefsVisible;
23010
- if (e2 !== jp.Visibility.Visible && 1 === t3.length && t3[0].id === n2.id) throw new C(WS);
23008
+ if (e2 !== $p.Visibility.Visible && 1 === t3.length && t3[0].id === n2.id) throw new C(HS);
23011
23009
  const o3 = { ...n2, visibility: e2 };
23012
23010
  let i2 = -1;
23013
- e2 !== jp.Visibility.Visible && (i2 = this._findOffsetForId(n2.id, t3));
23011
+ e2 !== $p.Visibility.Visible && (i2 = this._findOffsetForId(n2.id, t3));
23014
23012
  const a2 = this._updateSheetRef(n2, o3);
23015
- e2 !== jp.Visibility.Visible && this._adjustRemoveSelectionIfRequired(i2, n2.id), r2 = a2.sheet, this._adjustSheetNamesIfRequired(), s2.commit();
23013
+ e2 !== $p.Visibility.Visible && this._adjustRemoveSelectionIfRequired(i2, n2.id), r2 = a2.sheet, this._adjustSheetNamesIfRequired(), s2.commit();
23016
23014
  } catch (t3) {
23017
23015
  throw s2.rollback(), t3;
23018
23016
  }
@@ -23021,8 +23019,8 @@ class rw {
23021
23019
  }), this._emitter.notify("onSheetsChange"), r2;
23022
23020
  }
23023
23021
  _moveSheet(t2, e2) {
23024
- if (this._closed) throw new Error(jS);
23025
- if (!this.getProtection().isStructureAllowed()) throw new C($S);
23022
+ if (this._closed) throw new Error($S);
23023
+ if (!this.getProtection().isStructureAllowed()) throw new C(jS);
23026
23024
  let n2 = null;
23027
23025
  const r2 = this.beginCommit(`Move Sheet '${t2.name}'`);
23028
23026
  try {
@@ -23041,11 +23039,11 @@ class rw {
23041
23039
  return n2;
23042
23040
  }
23043
23041
  _setSelectedSheet(t2) {
23044
- if (this._closed) throw new Error(jS);
23042
+ if (this._closed) throw new Error($S);
23045
23043
  const e2 = this._getSheetRef(t2);
23046
- if (!e2) throw new C(HS(t2));
23044
+ if (!e2) throw new C(WS(t2));
23047
23045
  let n2 = null;
23048
- return e2.visibility !== jp.Visibility.Visible && this._setSheetVisibility(e2, jp.Visibility.Visible), this._view.setActiveSheetId(e2.id), n2 = e2.sheet, n2;
23046
+ return e2.visibility !== $p.Visibility.Visible && this._setSheetVisibility(e2, $p.Visibility.Visible), this._view.setActiveSheetId(e2.id), n2 = e2.sheet, n2;
23049
23047
  }
23050
23048
  getProtection() {
23051
23049
  return this._protection;
@@ -23087,7 +23085,7 @@ class rw {
23087
23085
  };
23088
23086
  }
23089
23087
  _fromJSON(t2) {
23090
- if (this._emitter.notify("onBeforeLoad", { params: t2 }), this._initState(), !t2.sheets || 0 === t2.sheets.length) throw new C(WS);
23088
+ if (this._emitter.notify("onBeforeLoad", { params: t2 }), this._initState(), !t2.sheets || 0 === t2.sheets.length) throw new C(HS);
23091
23089
  t2.theme && (this._theme = new ta(t2.theme), this._styles.setTheme(this._theme));
23092
23090
  const e2 = this._strings.beginPersist(), n2 = this._resources.beginPersist(), r2 = this._styles.beginPersist();
23093
23091
  try {
@@ -23097,8 +23095,8 @@ class rw {
23097
23095
  null !== i2 && (i2 = Math.min(Math.max(1, i2), s2));
23098
23096
  let a2 = null;
23099
23097
  for (let t3 = 0; t3 < s2; t3++) {
23100
- const e3 = o2[t3], n3 = e3.visibility || jp.Visibility.Visible, r3 = t3 + 1;
23101
- n3 === jp.Visibility.Visible ? a2 = r3 : null !== i2 && i2 === r3 && (i2 = null), this._createSheet(r3, e3.name, n3, void 0, e3.sheet);
23098
+ const e3 = o2[t3], n3 = e3.visibility || $p.Visibility.Visible, r3 = t3 + 1;
23099
+ n3 === $p.Visibility.Visible ? a2 = r3 : null !== i2 && i2 === r3 && (i2 = null), this._createSheet(r3, e3.name, n3, void 0, e3.sheet);
23102
23100
  }
23103
23101
  this._updateState({ lastId: a2 }), t2.names && this._names.fromJSON(t2.names), t2.view.activeSheetId = i2 ?? a2, this.setView(new RS({ json: t2.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
23104
23102
  const l2 = this;
@@ -23111,7 +23109,7 @@ class rw {
23111
23109
  }
23112
23110
  _createScripts(t2) {
23113
23111
  const e2 = this;
23114
- return new LS({ transactions: this._transactions, json: t2, workbook: e2, getBuiltInFunctions: () => e2._calculation?.getFunctions(), onAdd: (t3, n2) => {
23112
+ return new BS({ transactions: this._transactions, json: t2, workbook: e2, getBuiltInFunctions: () => e2._calculation?.getFunctions(), onAdd: (t3, n2) => {
23115
23113
  const r2 = e2._calculation;
23116
23114
  r2.getStatus() !== lf.Status.Off && r2.start().then(() => {
23117
23115
  const t4 = n2.getFunctions().getItems({ type: "formula" }), e3 = t4.length;
@@ -23124,7 +23122,7 @@ class rw {
23124
23122
  } });
23125
23123
  }
23126
23124
  async toJSON(t2 = false) {
23127
- if (this._closed) throw new Error(jS);
23125
+ if (this._closed) throw new Error($S);
23128
23126
  await this._emitter.notify("onBeforeSave", { async: true });
23129
23127
  const e2 = { sheets: [] };
23130
23128
  await Promise.resolve(this._starting);
@@ -23137,7 +23135,7 @@ class rw {
23137
23135
  const l2 = this._getState(), c2 = l2.sheetRefsAll, h2 = l2.sheetsById, d2 = c2.length;
23138
23136
  for (let r3 = 0; r3 < d2; r3++) {
23139
23137
  const o3 = c2[r3], s3 = r3 + 1, l3 = await h2.get(o3.id).toJSON(t2), d3 = { name: o3.name, sheet: l3 };
23140
- o3.visibility === jp.Visibility.Visible ? a2 = s3 : d3.visibility = o3.visibility, o3.id === n3 && (i2 = s3), e2.sheets.push(d3);
23138
+ o3.visibility === $p.Visibility.Visible ? a2 = s3 : d3.visibility = o3.visibility, o3.id === n3 && (i2 = s3), e2.sheets.push(d3);
23141
23139
  }
23142
23140
  const u2 = s2.toJSON();
23143
23141
  u2 && Object.keys(u2).length > 0 && (e2.styles = u2);
@@ -23179,7 +23177,7 @@ class rw {
23179
23177
  this._ownResources, this._ownNames && this._names.close(), this._ownsCalculation && this._calculation.close(), this._ownStyles, this._transactionsRemoveListener?.(), this._closed = true;
23180
23178
  }
23181
23179
  beginCommit(t2) {
23182
- if (this._closed) throw new Error(jS);
23180
+ if (this._closed) throw new Error($S);
23183
23181
  return this._beginCommit("string" == typeof t2 ? { description: t2 } : t2);
23184
23182
  }
23185
23183
  doBatch(t2, e2) {
@@ -23219,10 +23217,10 @@ class rw {
23219
23217
  return true;
23220
23218
  }
23221
23219
  }
23222
- const ow = { address: null, scope: null }, sw = "0.7.24", iw = "Mon Oct 20 2025";
23220
+ const ow = { address: null, scope: null }, sw = "0.7.25", iw = "Mon Oct 20 2025";
23223
23221
  export {
23224
23222
  Im as AddressUtils,
23225
- js as AutoFill,
23223
+ $s as AutoFill,
23226
23224
  iw as BUILD_DATE,
23227
23225
  vp as Calculation,
23228
23226
  li as Color,
@@ -23245,8 +23243,8 @@ export {
23245
23243
  gs as IFontCollection,
23246
23244
  Mp as IMovable,
23247
23245
  af as IPicture,
23248
- $s as IPrint,
23249
- jp as ISheet,
23246
+ js as IPrint,
23247
+ $p as ISheet,
23250
23248
  Op as ISheetView,
23251
23249
  ha as ISort,
23252
23250
  Mi as IStyle,
@@ -23255,10 +23253,10 @@ export {
23255
23253
  Ro as ITextFrame,
23256
23254
  ki as ITheme,
23257
23255
  Oi as IThemeCollection,
23258
- dt as LicenseManager,
23256
+ at as LicenseManager,
23259
23257
  Ri as NumberFormat,
23260
23258
  cf as Picture,
23261
- Wp as RangeClipboardItem,
23259
+ Hp as RangeClipboardItem,
23262
23260
  ef as Resource,
23263
23261
  rf as ResourceCollection,
23264
23262
  dS as Sheet,
@@ -23277,7 +23275,7 @@ export {
23277
23275
  sw as VERSION,
23278
23276
  rw as Workbook,
23279
23277
  RS as WorkbookView,
23280
- H_ as a,
23278
+ W_ as a,
23281
23279
  P_ as b,
23282
23280
  Ic as c,
23283
23281
  vh as d,
@@ -23285,6 +23283,6 @@ export {
23285
23283
  Ec as f,
23286
23284
  Nc as g,
23287
23285
  Tc as m,
23288
- $c as r,
23286
+ jc as r,
23289
23287
  Cc as t
23290
23288
  };