@sheetxl/sdk 0.7.16 → 0.7.17

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 (86) hide show
  1. package/browser/cjs/{Coisef2xuMNxiLXK.cjs → 1QLU0M85pDQfwJjb.cjs} +2 -2
  2. package/browser/cjs/{Dr2TYctek46uGvC7.cjs → 3f0nGslKqnkM0pmD.cjs} +1 -1
  3. package/browser/cjs/{DQDx-I8i6fWpfywh.cjs → 9qCfTORdZNsbafd9.cjs} +1 -1
  4. package/browser/cjs/{Bvs2uuTmshF805_W.cjs → BFUMQmvvSZZYwpJe.cjs} +2 -2
  5. package/browser/cjs/{Crw11LgMU-2BXUg9.cjs → BJFEN83DUUzycPcq.cjs} +1 -1
  6. package/browser/cjs/{BtxI2eFjZjcidjqW.cjs → BJb_r4dMTWlzS35L.cjs} +1 -1
  7. package/browser/cjs/{BcNNVLgYrbScQKSX.cjs → BMlhj6C3orSC3Sb8.cjs} +1 -1
  8. package/browser/cjs/{CQVY9TTgLjQwczYU.cjs → BNG4B4ZccQfZ2UX5.cjs} +1 -1
  9. package/browser/cjs/{qH6Ryp_38NSkcQlK.cjs → BQlVhTf74LJXEDhh.cjs} +1 -1
  10. package/browser/cjs/{DUL6A70OH_BflOv4.cjs → BXAbLrB0kFyfNF_J.cjs} +1 -1
  11. package/browser/cjs/{CAsRhXm0VW7sOikc.cjs → BXVZ6vArucLDbnjn.cjs} +1 -1
  12. package/browser/cjs/{gKceF5kapwSu8CwC.cjs → BYb3m33ugKSFOBJx.cjs} +1 -1
  13. package/browser/cjs/Bd9VnWK_KaoqXL6E.cjs +55 -0
  14. package/browser/cjs/{D0gtKwemWYBBEdp0.cjs → BfUcrTbqJWT4aDH8.cjs} +1 -1
  15. package/browser/cjs/{_CEXvd3ydxoZNNV3.cjs → BpzjjHzvqyUdZ7mS.cjs} +1 -1
  16. package/browser/cjs/{CSFupzMrX9RMnt0a.cjs → CbtiJocu08GXJ0ZI.cjs} +3 -3
  17. package/browser/cjs/{D1AjspLzkSTP4QXS.cjs → Cc8y6j_1RQw0pbL1.cjs} +1 -1
  18. package/browser/cjs/{DGkBQiMbPbdEq1pY.cjs → CdKjFswPcdKqco7c.cjs} +1 -1
  19. package/browser/cjs/{ChnfBglQCqBpBzYM.cjs → CkNeSZ5aeV9DSE-G.cjs} +1 -1
  20. package/browser/cjs/{BYZy2tWr7RD48Oi_.cjs → Co_6YJsjrp6YI0X_.cjs} +1 -1
  21. package/browser/cjs/{-sMVXOuZJva89j8j.cjs → Cqz2gooW5G1rdKye.cjs} +1 -1
  22. package/browser/cjs/{C8WDOgMjxRDmcFwB.cjs → DnPcVPw1y6c6OiRA.cjs} +1 -1
  23. package/browser/cjs/{DgTI5zamXamDuFUT.cjs → DtmWEwjtibOb_F_y.cjs} +1 -1
  24. package/browser/cjs/{BSGqaR2oeGd5OjgT.cjs → FWVqjSQNLantxOJL.cjs} +1 -1
  25. package/browser/cjs/{Raz_4cDNeZOIDIcf.cjs → XdpOXlfz-pQxCvVQ.cjs} +1 -1
  26. package/browser/cjs/{CVbygTr8hQYP7l88.cjs → XhH_d0dumhbQNrnp.cjs} +1 -1
  27. package/browser/cjs/{BNEOku8KgSSohSIj.cjs → Zh-RQ4hDmLhdAJ6B.cjs} +1 -1
  28. package/browser/cjs/index.cjs +2 -2
  29. package/browser/esm/{BE0e1_6mQlmMSQxw.mjs → BMdQU1WBRxY0_dKX.mjs} +1 -1
  30. package/browser/esm/{BjbpBqdzHQ_CSMTk.mjs → BWq55_CXxQIeioTN.mjs} +2 -2
  31. package/browser/esm/{DgjCulVUF2g_Ibly.mjs → Bc1Y902E2spI1Bjy.mjs} +1 -1
  32. package/browser/esm/{D8zjdnplPREVWaJv.mjs → BvbcPyHLhv-dnW-_.mjs} +3 -3
  33. package/browser/esm/{Byj2wSNnwUi1fj0w.mjs → CIPmw8Cu0x_qJQdc.mjs} +1 -1
  34. package/browser/esm/{CwFQPWavqDsxMJJZ.mjs → CRi7CxUeum4A_jou.mjs} +1 -1
  35. package/{node/esm/i4bOWM_qUfTL4uBl.mjs → browser/esm/CYxXbaCGx_e-VehE.mjs} +1 -1
  36. package/browser/esm/{BzztyegF0heAE4XV.mjs → CavGy6gjE_qePaEi.mjs} +4750 -4752
  37. package/{node/esm/Chdtm9vkI7san88r.mjs → browser/esm/Ck0a76Q65ggSjKgD.mjs} +1 -1
  38. package/{node/esm/Cgy9d1V23dS5TIjq.mjs → browser/esm/CpZuXU2mt1-Tm2oe.mjs} +1 -1
  39. package/{node/esm/BI2FstEVR2FD7hrQ.mjs → browser/esm/D7HITYdleyeADg7C.mjs} +1 -1
  40. package/browser/esm/{C8gnscfi0auF0T_a.mjs → DA9xMnGny2FLBZAp.mjs} +1 -1
  41. package/browser/esm/{DQPu2o7c5uGHqQt2.mjs → DDFi-HO9TSR4-o6O.mjs} +1 -1
  42. package/{node/esm/BF3umLwHF9QawqJE.mjs → browser/esm/DE1gGFnn5TPnFN-O.mjs} +1 -1
  43. package/browser/esm/{BiX54GcB3Mv4aelM.mjs → DSwuc4AJTDyzhQVi.mjs} +1 -1
  44. package/browser/esm/{BltO_grHPNvgr8Ck.mjs → DWQdFEF7nfEnLZiM.mjs} +1 -1
  45. package/{node/esm/j3geq9QzzGZnfWOW.mjs → browser/esm/DmeOWODomu1mFmzy.mjs} +1 -1
  46. package/browser/esm/{4oqRKL4rfvQw4R1P.mjs → DotkirhszgFi4QAd.mjs} +1 -1
  47. package/browser/esm/{DORUjxQIyvJFWxLn.mjs → Dvu_yrbGJr_YLNub.mjs} +1 -1
  48. package/browser/esm/{D2Bun5gXG5ne4pX4.mjs → L-etE6cRFRQRhTIp.mjs} +1 -1
  49. package/browser/esm/{DbGgyXWs1YCHpzle.mjs → N9cHHghawpuES_G-.mjs} +1 -1
  50. package/browser/esm/{BbTJfxrYTmKFjAgG.mjs → ZyYoghJBaXKtqJrY.mjs} +1 -1
  51. package/browser/esm/{DxUziXdPvjjSrt4U.mjs → _gJq0GtHTnkK1cfC.mjs} +1 -1
  52. package/browser/esm/{BtMOZV8vy98mTC_g.mjs → b-BXv1evzB6lQR1_.mjs} +1 -1
  53. package/browser/esm/{9VLPEARktgO5h09B.mjs → gRqjFDgDm2gV3n9K.mjs} +2 -2
  54. package/browser/esm/index.mjs +2 -2
  55. package/{node/esm/miTq0iMry61Ov3Xv.mjs → browser/esm/lYwpq7U3b44kkhyw.mjs} +1 -1
  56. package/browser/esm/{D0UMwfcT_mPeUEIe.mjs → wJjK9kmwih0KhO8N.mjs} +1 -1
  57. package/node/esm/{CtMYadTWqGlUD_vF.mjs → B1bmUqcYTn6RFIm7.mjs} +2 -2
  58. package/node/esm/{fm5G3b1UI8pUUAue.mjs → B7XRJb0rBrNDcDCK.mjs} +1 -1
  59. package/node/esm/{C84Wi-jbMcHXHPpY.mjs → B9y5ZRji9yljTmDb.mjs} +1 -1
  60. package/node/esm/{BE0e1_6mQlmMSQxw.mjs → BMdQU1WBRxY0_dKX.mjs} +1 -1
  61. package/node/esm/{DgjCulVUF2g_Ibly.mjs → Bc1Y902E2spI1Bjy.mjs} +1 -1
  62. package/node/esm/{Byj2wSNnwUi1fj0w.mjs → CIPmw8Cu0x_qJQdc.mjs} +1 -1
  63. package/{browser/esm/i4bOWM_qUfTL4uBl.mjs → node/esm/CYxXbaCGx_e-VehE.mjs} +1 -1
  64. package/node/esm/{IyYqukbNKXYTC_jZ.mjs → Cc4XgfsHfqiDbMwW.mjs} +1 -1
  65. package/node/esm/{BSXYFAWOE2hPWzcI.mjs → CepwoGvlAERZG5ry.mjs} +1 -1
  66. package/{browser/esm/Chdtm9vkI7san88r.mjs → node/esm/Ck0a76Q65ggSjKgD.mjs} +1 -1
  67. package/{browser/esm/Cgy9d1V23dS5TIjq.mjs → node/esm/CpZuXU2mt1-Tm2oe.mjs} +1 -1
  68. package/node/esm/{B05A9t2S4MoaS7x1.mjs → Cs9SzsOlx-16X3MH.mjs} +1 -1
  69. package/{browser/esm/BI2FstEVR2FD7hrQ.mjs → node/esm/D7HITYdleyeADg7C.mjs} +1 -1
  70. package/node/esm/{C8gnscfi0auF0T_a.mjs → DA9xMnGny2FLBZAp.mjs} +1 -1
  71. package/{browser/esm/BF3umLwHF9QawqJE.mjs → node/esm/DE1gGFnn5TPnFN-O.mjs} +1 -1
  72. package/node/esm/{C1geTB5AlM3uG2rR.mjs → DhqwA8xYXp7t4NdE.mjs} +1 -1
  73. package/{browser/esm/j3geq9QzzGZnfWOW.mjs → node/esm/DmeOWODomu1mFmzy.mjs} +1 -1
  74. package/node/esm/{4oqRKL4rfvQw4R1P.mjs → DotkirhszgFi4QAd.mjs} +1 -1
  75. package/node/esm/{YGrN3w9Dkdt7tx4l.mjs → FR1LC5qXE8UEAQtN.mjs} +1 -1
  76. package/node/esm/{D2Bun5gXG5ne4pX4.mjs → L-etE6cRFRQRhTIp.mjs} +1 -1
  77. package/node/esm/{DbGgyXWs1YCHpzle.mjs → N9cHHghawpuES_G-.mjs} +1 -1
  78. package/node/esm/{Cp-iaUVcEEKwqqRo.mjs → YYNREZ-4z6TD0Gc7.mjs} +1 -1
  79. package/node/esm/{BbTJfxrYTmKFjAgG.mjs → ZyYoghJBaXKtqJrY.mjs} +1 -1
  80. package/node/esm/{BtMOZV8vy98mTC_g.mjs → b-BXv1evzB6lQR1_.mjs} +1 -1
  81. package/node/esm/index.mjs +762 -761
  82. package/{browser/esm/miTq0iMry61Ov3Xv.mjs → node/esm/lYwpq7U3b44kkhyw.mjs} +1 -1
  83. package/package.json +4 -4
  84. package/types/index.d.ts +4 -4
  85. package/types/scripting.d.ts +4 -4
  86. package/browser/cjs/BFyalK9AUtNwQDEK.cjs +0 -55
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.16
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.17
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,7 +377,7 @@ class P extends s {
377
377
  }
378
378
  const z = () => {
379
379
  try {
380
- return "0.7.16";
380
+ return "0.7.17";
381
381
  } catch (t2) {
382
382
  return "";
383
383
  }
@@ -469,48 +469,12 @@ Cpus: ${r3}`), console.log(a2(o2)), o2 = null;
469
469
  let r2 = t3.split("");
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
- })(t2, n2 - e2), q = (t2) => "object" == typeof window ? window.atob(t2) : Buffer.from(t2, "base64").toString("ascii");
473
- !(function() {
474
- const t2 = 620, e2 = "yJV1", n2 = "Fh!K", r2 = 548, o2 = "RD^Z", s2 = 156, i2 = 370, a2 = 275;
475
- function l2(t3, e3, n3, r3, o3) {
476
- return K(r3 - -456, e3);
477
- }
478
- const c2 = ct();
479
- function h2(t3, e3, n3, r3, o3) {
480
- return K(e3 - a2, o3);
481
- }
482
- function d2(t3, e3, n3, r3, o3) {
483
- return K(t3 - -209, r3);
484
- }
485
- function u2(t3, e3, n3, r3, o3) {
486
- return K(e3 - -707, r3);
487
- }
488
- function g2(t3, e3, n3, r3, o3) {
489
- return K(e3 - -732, t3);
490
- }
491
- for (; ; ) try {
492
- if (741575 === parseInt(g2("oOeY", -427)) / 1 + -parseInt(h2(0, t2, 0, 0, e2)) / 2 + -parseInt(l2(0, "^uSd", 0, -104)) / 3 + -parseInt(l2(0, n2, 0, -229)) / 4 + parseInt(u2(0, -387, 0, "$AD$")) / 5 * (-parseInt(h2(0, r2, 0, 0, o2)) / 6) + -parseInt(d2(s2, 0, 0, "(0cu")) / 7 + -parseInt(u2(0, -i2, 0, "$s4a")) / 8 * (-parseInt(d2(75, 0, 0, "P8&e")) / 9)) break;
493
- c2.push(c2.shift());
494
- } catch (t3) {
495
- c2.push(c2.shift());
496
- }
497
- })();
498
- const J = () => {
499
- const t2 = "@]F%", e2 = 74, n2 = "kBba";
500
- if (typeof window === s2(186, "Cnvk", 98)) return window[r2("ChnO", -102, -85)][s2(56, t2, e2)];
501
- function r2(t3, e3, n3, r3, o2) {
502
- return K(n3 - -445, t3);
503
- }
504
- function s2(t3, e3, n3, r3, o2) {
505
- return K(n3 - -165, e3);
506
- }
507
- return o[r2(n2, 0, -252)]();
508
- };
509
- function K(t2, e2) {
510
- const n2 = ct();
511
- return K = function(e3, r2) {
512
- let o2 = n2[e3 -= 189];
513
- if (void 0 === K.TqlGXW) {
472
+ })(t2, n2 - e2), J = (t2) => "object" == typeof window ? window.atob(t2) : Buffer.from(t2, "base64").toString("ascii");
473
+ function q(t2, e2) {
474
+ const n2 = Y();
475
+ return q = function(e3, r2) {
476
+ let o2 = n2[e3 -= 460];
477
+ if (void 0 === q.jDzWdE) {
514
478
  const e4 = function(t3, e5) {
515
479
  let n3, r3, o3 = [], s3 = 0, i3 = "";
516
480
  for (t3 = (function(t4) {
@@ -524,102 +488,145 @@ function K(t2, e2) {
524
488
  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]);
525
489
  return i3;
526
490
  };
527
- K.qHAeBq = e4, t2 = arguments, K.TqlGXW = true;
491
+ q.Nggncg = e4, t2 = arguments, q.jDzWdE = true;
528
492
  }
529
493
  const s2 = e3 + n2[0], i2 = t2[s2];
530
- return i2 ? o2 = i2 : (void 0 === K.DASVoE && (K.DASVoE = true), o2 = K.qHAeBq(o2, r2), t2[s2] = o2), o2;
531
- }, K(t2, e2);
494
+ return i2 ? o2 = i2 : (void 0 === q.pYlKUg && (q.pYlKUg = true), o2 = q.Nggncg(o2, r2), t2[s2] = o2), o2;
495
+ }, q(t2, e2);
496
+ }
497
+ function K(t2, e2, n2, r2, o2) {
498
+ return q(n2 - -987, o2);
532
499
  }
533
- function X(t2, e2, n2, r2, o2) {
534
- return K(n2 - -855, r2);
500
+ !(function() {
501
+ const t2 = "nfml", e2 = "kFB*", n2 = "0ewm", r2 = "@nFm", o2 = 719, s2 = "gmZs", i2 = "HsW2", a2 = 561, l2 = 52, c2 = ")uYR", h2 = "8wBE", d2 = 69;
502
+ function u2(t3, e3, n3, r3, o3) {
503
+ return q(r3 - 80, o3);
504
+ }
505
+ function g2(t3, e3, n3, r3, o3) {
506
+ return q(t3 - -559, o3);
507
+ }
508
+ function m2(t3, e3, n3, r3, o3) {
509
+ return q(r3 - 678, e3);
510
+ }
511
+ const f2 = Y();
512
+ function p2(t3, e3, n3, r3, o3) {
513
+ return q(r3 - d2, e3);
514
+ }
515
+ for (; ; ) try {
516
+ if (646505 === -parseInt(g2(5, 0, 0, 0, t2)) / 1 + -parseInt(u2(0, 0, 0, 657, e2)) / 2 * (parseInt(u2(0, 0, 0, 660, "FPNy")) / 3) + -parseInt(p2(0, n2, 0, 597)) / 4 + -parseInt(p2(0, r2, 0, 596)) / 5 + parseInt(p2(0, "fuzQ", 0, 582)) / 6 + -parseInt(u2(0, 0, 0, o2, s2)) / 7 * (-parseInt(p2(0, i2, 0, a2)) / 8) + parseInt(g2(-l2, 0, 0, 0, c2)) / 9 * (parseInt(m2(0, h2, 0, 1290)) / 10)) break;
517
+ f2.push(f2.shift());
518
+ } catch (t3) {
519
+ f2.push(f2.shift());
520
+ }
521
+ })();
522
+ const X = () => {
523
+ const t2 = "jUvD", e2 = "WELU", n2 = "7B!7", r2 = 120;
524
+ if (typeof window === c2(-81, -151, -106, -206, "N@f5")) return window[c2(-357, -294, -321, -327, t2)][s2 = e2, i2 = 1378, q(i2 - 783, s2)];
525
+ var s2, i2, a2, l2;
526
+ function c2(t3, e3, n3, r3, o2) {
527
+ return q(e3 - -765, o2);
528
+ }
529
+ return o[a2 = n2, l2 = r2, q(l2 - -435, a2)]();
530
+ };
531
+ function Y() {
532
+ const t2 = ["CmkYfvNdR8ovW6fJEG", "x8kFcKBdQCosW6S", "W45Ixv/cL8kLea", "W6vDbSkxeCkQWQi", "rJhcHWNcVSk+dJnj", "W6dcHgZdK0hcG23cRCoVBGmA", "W41IxxhcRq", "y8k3W6HUuIlcUCk0FseZnCkF", "fdSueIr1", "kCoLW6BdSSkyoHPgWPm", "iSo0WRyYea", "uSk8pCojBcLaWOOUCmo9mI8", "FSk+WQqqW5NcRXBcNq", "W67cKLBdVLdcJW", "CCoSW5WmdCkrxmocWQbhcmoq", "c8oSECk+iN4tWReStSoMdZu", "oCk9offJW5pcQJVdLSkDWPT9WPNdS8opWPCcfmoiWPC", "mSkMDa/cMwn3pSkoaIbIWOm", "kh7dL13dOmoSwa5Mh8kTeqW", "yhrXwu4mbgNdSfxcSHreWOW", "yxXKuuTa", "WRypsCoJuSoZWRHWW7/dRxtdUa", "WRZdNCoTpa", "oCk9ofLLW53cRJZdI8klWPT+WPVdUCoAWPCagmoj", "AJpcHXFcO8kPoc5ypa", "WQ3cLCoYp8oJ", "u8kiW59aCmk+nq", "pg0UdmoDW5NcU0dcN8k/W4CYbSoZW74", "xmo3W6JdJeOYoG", "WRq3WO3dQ8omWPtdQmovW5VcOG", "zCkcpSo+EZ5kWQuf", "W5a/f3xdJNxcPmkIf8kZWQfyla", "W7v3w1FcKmk9j3zRff7cSCoS", "r8kmfM7dUmocW6TmuCojyXG8", "F8kqW4HnACk2jvlcVYarhgddUsxcNmoiga", "kSoNW7WmWOFdUmkxxcSCWRBdJh1z", "DCo7fmo4BqtdK8kxAfvWCa", "ogC0kmobW5FcHfdcPSkOW5a", "WRFcJMGEDCokDGddKCok", "WQBcOKO", "Bhb2Fv8deKNdTLxcSW5s", "W47dHNFcUHlcVG", "W4mbAW5+bX7dLq", "WPxcVv9QgmoljGrDW7rCWQNdTa", "bmkJArZdM8kmqMeSWP7cSYhdHNe", "W5JdM3pcMaxcVG", "mmkjyr3cKW3dJZ0", "D8k1WQ4eW7RcRG", "WPNcHwHgiSoNlJ5LW5X2WOddICoHWPhcHKf3W5W", "WOtdHSoNngVdKmo+W5Sdw8k7WP7cNIjpW49lWQFcLW", "WQGZWOFdVComWPldQW", "vSk4imoRyci", "WPpcSCkTWPWlWRJcObiU", "AhrRx1mi", "WPtcJ8o8pmo4W51KWRjp", "WP3cI0qaiSkq", "s8kie07dRmooW75zv8oJyWmHAG", "CSkJWO4mW6RcOW", "p8koW6lcNCkRqW", "wSoOpYaMWOOqgHhdJCkiWRddVwPOs1CLW50", "Amk1WRqVW6FcPqFcM1KvpdHs", "oSkhFaFcMb7dSIO7WQVcM8kUEG", "WOzJuG/cJcRdV8kpc8kDWPHKpulcPa", "mSkGWOBcNCoqfsao", "tCoLlIq7WP4pfq/dJCkfWQhdTN0", "W5ldGwNcLbtcSW", "WRVcI8oYpCo4W4PG", "WOr+vItcIZO", "WPv0tYZcLq", "dCoTlmoFvsfPWQO", "WPrikN4JsIJdGmocW6lcLSo4", "imoJWQWZcgddQG", "W5yqCJH0nay", "AI/cGWdcO8kIaW", "WRBcMmose8oyW4OSWQOMCmk9umoF", "a8k9vfPVW5/cPZFdVmkpW49RWRRdOSoEWPCkgG", "WRtcJ3Oe", "emk3BhfPW4RcQJVdLmkD", "DgnQvu4teG", "CmkDf0ldRSovW4XDs8ooAqq", "W75kfSk/f8khWQ5eW4FdNu0", "WO05g0f3WO57iM0AW6bHCmkz", "lIuq", "iCosWPJdGWpdSmo1", "WQuKWPVdNSoeWPG", "g8k7E1bIW43cRHNdNCkx", "WRFcN30GAmoAraFdLSohz8kifG", "F8o6W604gCku", "p8kdzIVcIaxdJJWwWQtcM8kU", "W7nLwSovAWW/", "FCk2WRTBW53cO8kdBW8gWPhdVa", "WO4EmmonW53dOWf1WOVdQ8kL", "ywDKva", "iCkOCrRdG8kn", "W6ZdJx/dLq", "W4Kcucj1fW", "W4OUt8oNWOFdRW", "WRlcV8kUWP8BWQtcMrq+vmo0t2i", "W4OKqSoHWP/dR8k0W7Ww", "dSoPFSk0jhiqWRaPvSofpqu", "qSo0f8k6uSou", "W44QuSofWOVdPmk+W78wm8oSq8oN", "WO0ukCoQW5hdRay", "WOtdPmkcWPeaFmownNe", "W7tcLxNdO0dcMvBcOmoFzW", "DCoLWPFcPG", "aSkGq8ogDCoh", "ACkUW6XKsmkphq", "CSoSW5WVeCkuq8o2WPzpeSobWRb1", "W4hcMmkcW5W3W4SYhYnA", "WRCZWOBdJW", "WQ3cQfLhe8olaWHfW6y", "WRLBjdaUW5VcK8kUWPpcUmobWOu", "WQdcN30nAmovuG", "WQ85wgXQWOrXiG", "eSk7FHhdNSkbrZuT", "l8oeWRRdObRdSmo9WQNcPhZcT1KWzCka", "W7RdIMNdMmkYW6C", "WQRcLw0jsmoD", "emk3BgfLW5pcRG", "emk0WQVcMsxdObyP", "DSoWkcW8WOy", "nmkQq8k7pvy", "vSk0lCoPEJLaWP8", "WQlcISotp8o1W5W", "owK0imonW4lcH1BcOmk0W4eKcW", "dGXQAbSM", "iSkQu8kVn1/dHW", "g8o0W6JdMfOykSkSuXi", "WRZdT8kxWR8CCCoBjLbxW4vh", "WR3cMmoXjCo0W79Z", "b8oSW74mWOldVCkalbuCWRVdNxzohuBdJSk6smouWPNcM8omWQZdV8o8zq", "DCoVlLFdLa", "bmkJArZdM8kmqMeTWONcRINdNx5rgLxcUq", "W6hcHhNdPuhcMgtcUG", "nsDaqK4ofuO", "A8kIWQKnW7RcHapcM0qvbq", "WO/cRSkYWPGqWQlcJqmJw8oPrNu", "W6hcHgZdSLZdGIBdP8ke", "WOyGwMe+WQf3l3SrWRnpnCkRWPHZ", "pCo2W6KFWPRdP8kZzs0D", "W7tcKxtdUea", "WQJcRenTe8onmHnaW7TbWQddOW", "DmoOW4yGhCkkymouWO1icmoqWRe", "pSoWW6edWPRdKmkbEdGCWRtdIW", "WP7dPmkcWPeCECodk3TyWPfsW58yW4xcJ29aamkLCmk4meBdKG", "pN47iG", "WRylnSoIW5BdTJfLWO3dR8k/W7HU", "WQ9fidGSW4BcTCoVWPhcV8ohWPj5fSkzW7jgW4fxW7W", "pSoVWRW5cMxdQSk0BG8", "g8ouuXRcUCkwWR5PDSoMBZml", "WPJcH0mIm8oj", "W4eUt8oLWOhdPSkVW6OSnCoNsmoDwq", "nSk9smkJn0ddKq", "nsmYfHDorXFcSW", "fwD6jConW4K", "lSk+WP58sCoor8o8WRjZn8oA", "W4uKt8oZWPZdQ8k+W5GllSoRy8o7BSoFW7ZcQCodWRC", "vCkZW4VdT8ksoXvbWPpdP3tdJCk1", "yCo6nNddJZaIiSk5", "WOPcntWUW5ZcTmkeWPJcRW", "WQ8/WP3dNSoqWO7dO8oQW5VcVW", "W6PDc8kWcSkPWRX6W5VdKvhdO8oRW4a", "Fmk1WRqNW6VcSGpcNeyd", "a8kIpXJdJ8kvtZmPWOxcTY/dGq", "DCoQmK7dKJe0gmknnIPjWRm", "x8kEW5LiBSkU", "a8kxW7ZdMSkPt8omDSoOESoG", "aCoZW5/dI0icgq", "WPJcLLyDi8od", "WPj/eCk4W4pcV8oUW4urfCoutmon", "CSo2e8o9BaVdRmkvtfbyEW", "u8kUc8o6Dsy", "DslcIalcO8kY", "WRVcL8oxamobW5S", "aq1kEWaV", "y3rXELijg13dLfNcRHniWODK", "WPxcVv9QgmoliabhW7TqWRC", "W5RdHNFcSWlcRKOKWR3cICoRbq", "pSoaWQldLWRdN8oN", "aXbcFXmKqq", "WRJdNCoRpgZdKmo+", "WRCVWO7dNG", "xcRcLHhcRSkBhtvnlq", "W5aeBsu", "l8kSCrpdKSkxDJmHWP/cQIxdIW", "uWHoEb4tDq", "W5CDeYmPW4hcS8k8", "oZKpft5fW77cJgJdUSkmWQ0", "eCo2W7pdLCkujW", "W7NcJCkeW7e8W4SrfYfhBhK", "ymoTj1VdMJe"];
533
+ return (Y = function() {
534
+ return t2;
535
+ })();
535
536
  }
536
- function Y(t2, e2, n2, r2, o2) {
537
- return K(o2 - 173, t2);
537
+ function Q(t2, e2, n2, r2, o2) {
538
+ return q(n2 - -423, r2);
538
539
  }
539
540
  const Z = () => {
540
- const t2 = 387;
541
- function e2(t3, e3, n2, r2, o2) {
542
- return K(t3 - -375, o2);
541
+ const t2 = "m@8f", e2 = 745, n2 = "HsW2", r2 = 640, o2 = 129, s2 = 98;
542
+ function i2(t3, e3, n3, r3, s3) {
543
+ return q(r3 - o2, t3);
543
544
  }
544
- return J()[e2(-51, 0, 0, 0, "Obsc")](K(t2 - 187, "Fh!K")) || J() === e2(-165, 0, 0, 0, "@]F%");
545
- }, Q = (t2) => {
546
- const e2 = 612, n2 = 1049, r2 = "@]F%", s2 = 1019, i2 = "GE#s", a2 = 1134, l2 = 1046, c2 = 907, h2 = 210, d2 = 539;
547
- function u2(t3, e3, n3, r3, o2) {
548
- return K(n3 - 334, e3);
545
+ return X()[i2(t2, 0, 0, 606)](q(e2 - s2, "@nFm")) || X() === i2(n2, 0, 0, r2);
546
+ }, tt = (t2) => {
547
+ const e2 = "L&[Y", n2 = "UGWX", r2 = 1351, s2 = "b!6E", i2 = 1428, a2 = 1446, l2 = 1337, c2 = 1186, h2 = "])GS", d2 = 880;
548
+ let u2 = o[m2(1521, 1487, 1396, 1553, "rw@V")];
549
+ function g2(t3, e3, n3, r3, o2) {
550
+ return q(e3 - 713, t3);
549
551
  }
550
- let g2 = o[_2(486, 511, 430, "3YXZ")];
551
552
  function m2(t3, e3, n3, r3, o2) {
552
- return K(r3 - 577, t3);
553
- }
554
- function f2(t3, e3, n3, r3, o2) {
555
- return K(r3 - d2, e3);
556
- }
557
- if (Z() || o[_2(e2, 573, 629, "Nqou")]()) {
558
- const t3 = H[p2(1095, 1057, n2, r2)](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), c3 = 864e5;
559
- Math[p2(1073, s2, 1016, i2)]((o2[u2(0, "Fh!K", 623)]() - e3[p2(a2, 1186, l2, "oOeY")]()) / c3) >= 120 && (g2 = [u2(0, "O*3!", 600)]);
560
- } else g2 = [];
561
- function p2(t3, e3, n3, r3, o2) {
562
- return K(t3 - 808, r3);
553
+ return q(e3 - 947, o2);
563
554
  }
555
+ if (Z() || o[m2(0, 1591, 0, 0, e2)]()) {
556
+ const t3 = H[f2 = "WELU", p2 = -31, q(p2 - -668, f2)](), e3 = new Date(t3), o2 = /* @__PURE__ */ new Date(), c3 = 864e5;
557
+ Math[_2(-17, -11, -27, -95, "71HM")]((o2[g2(n2, r2)]() - e3[_2(-96, -132, -125, -65, "j*[9")]()) / c3) >= 120 && (u2 = [S2(s2, i2, a2, l2, 1382)]);
558
+ } else u2 = [];
559
+ var f2, p2;
564
560
  function _2(t3, e3, n3, r3, o2) {
565
- return K(e3 - h2, r3);
561
+ return q(n3 - -601, o2);
566
562
  }
567
- return { getLicensee: () => f2(0, "I01V", 0, 730), getExpiration: () => null, getDomains: () => [J()], getDeveloperCount: () => 1, getCpuCount: () => 0, getType: () => _2(0, 454, 0, "3YXZ"), isEval: () => true, getExceptions: () => g2, hasExceptions: () => g2[m2("H9VV", 0, 0, 852)] > 0, isValidFor: () => 0 === g2[m2("6zi]", 0, 0, 946)], isValid: () => false, getFeatures: () => Object[u2(0, "(0cu", 642)]({}), getKeyFrom: () => t2, getBuildVersion: H[f2(0, "2y5!", 0, c2)], getBuildDate: H[u2(0, "Fh!K", 672)] };
568
- };
569
- function tt(t2, e2, n2, r2, o2) {
570
- return K(n2 - -201, r2);
571
- }
572
- const et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
563
+ function S2(t3, e3, n3, r3, o2) {
564
+ return q(o2 - d2, t3);
565
+ }
566
+ return { getLicensee: () => g2("YZ!L", 1296), getExpiration: () => null, getDomains: () => [X()], getDeveloperCount: () => 1, getCpuCount: () => 0, getType: () => g2("iu1)", 1216), isEval: () => true, getExceptions: () => u2, hasExceptions: () => u2[S2("HsW2", 0, 0, 0, 1482)] > 0, isValidFor: () => 0 === u2[g2("@nFm", 1358)], isValid: () => false, getFeatures: () => Object[_2(0, 0, -53, 0, "6]ZD")]({}), getKeyFrom: () => t2, getBuildVersion: H[g2("dzru", c2)], getBuildDate: H[S2(h2, 0, 0, 0, 1434)] };
567
+ }, et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
573
568
  let nt = false, rt = false;
574
- const ot = tt(0, 0, 4, "Zy6W")[X(0, 0, -514, "zR70")]("")[tt(0, 0, 63, "3YXZ")]((t2, e2) => e2 + t2, "");
575
- class st {
569
+ const ot = lt(1251, 1180, 1262, 1301, "IJdP")[lt(1217, 1261, 1236, 1246, "])GS")]("")[K(0, 0, -508, 0, "0ewm")]((t2, e2) => e2 + t2, "");
570
+ function st(t2, e2, n2, r2, o2) {
571
+ return q(t2 - 256, r2);
572
+ }
573
+ class it {
576
574
  constructor() {
577
- const t2 = 577;
578
- var e2, n2, r2, o2;
579
- this[r2 = 842, o2 = "U]cG", Y(o2, 0, 0, 0, r2 - 413)][e2 = "IklC", n2 = 747, tt(0, 0, n2 - t2, e2)] = null;
575
+ const t2 = "L&[Y", e2 = 851, n2 = 653;
576
+ function r2(t3, e3, r3, o2, s2) {
577
+ return Q(0, 0, s2 - n2, t3);
578
+ }
579
+ this[r2(")uYR", 0, 0, 0, 779)][r2(t2, 0, 0, 0, e2)] = null;
580
580
  }
581
- async [Y("$AD$", 0, 0, 0, 479)](t2, e2 = false) {
582
- const n2 = 213, r2 = 344, s2 = "Ds93", i2 = 1180, a2 = 1109, l2 = 1087, c2 = 1033, h2 = "X5!V", d2 = 68, u2 = "$$5f", g2 = "JYVc", m2 = 1263, f2 = 1179, p2 = 247, _2 = 174, S2 = 1172, w2 = 1078, y2 = "rA[P", E2 = "#l!H", C2 = 248, b2 = 300, v2 = 351, x2 = "*(MJ", I2 = 279, R2 = "J#Iw", A2 = "2y5!", M2 = 1095, T2 = 1120, N2 = 1070, F2 = 126, k2 = 260, O2 = 757, D2 = 396, B2 = 277;
583
- if (!t2 || t2[P2(130, 149, 104, "*%VU")](P2(281, 257, 209, "GE#s")) || t2[P2(125, 142, n2, "3YXZ")](H2(-782, -679, -777, -690, "oOeY")) || t2[z2(r2, 236, 311, 330, s2)](W2(i2, a2, l2, c2, h2)) || t2[P2(d2, 180, 148, "JYVc")](P2(179, 86, 115, u2))) return nt = true, o[H2(-640, -607, -691, -665, g2)]() && await G[W2(1219, m2, f2, 1126, "X5!V")](t2, e2), await this[z2(188, 233, p2, _2, "WuPX")](true);
581
+ async [st(865, 0, 0, "qP[A")](t2, e2 = false) {
582
+ const n2 = "am@h", r2 = 37, s2 = "])GS", i2 = 272, a2 = "gmZs", l2 = 1188, c2 = 1172, h2 = 406, d2 = 403, u2 = "HsW2", g2 = "71HM", m2 = "am@h", f2 = 987, p2 = "Eh!l", _2 = 1038, S2 = 1078, w2 = "dzru", y2 = 212, E2 = "fuzQ", C2 = "PVrR", b2 = 1094, v2 = 1148, x2 = "LDPp", I2 = 168, R2 = 246, A2 = 1063, M2 = "rw@V", T2 = 1264, N2 = "))n7", F2 = 382, k2 = 226, O2 = 347, D2 = 563;
584
583
  function L2(t3, e3, n3, r3, o2) {
585
- return at(t3 - 284, e3 - D2, t3 - -411, r3 - B2, o2);
584
+ return K(0, 0, t3 - D2, 0, e3);
586
585
  }
587
- function P2(t3, e3, n3, r3, o2) {
588
- return X(0, 0, n3 - O2, r3);
586
+ if (!t2 || t2[P2(317, 170, 265, 247, "kFB*")](B2(1219, 1181, n2, 1172)) || t2[L2(r2, s2)](L2(145, "HsW2")) || t2[P2(i2, 216, 319, 259, a2)](L2(193, "FPNy")) || t2[B2(l2, 1191, "rw@V", c2)](P2(h2, 406, 418, d2, u2))) return nt = true, o[H2(-80, -33, -48, -8, g2)]() && await G[z2(1021, 1072, m2, f2)](t2, e2), await this[H2(-89, -76, -110, -1, p2)](true);
587
+ function B2(t3, e3, n3, r3, o2) {
588
+ return lt(t3 - k2, e3 - 276, t3 - -123, r3 - O2, n3);
589
589
  }
590
- if (nt = false, !e2 && et[W2(S2, 1043, w2, 999, y2)]) {
591
- const t3 = await this[H2(-702, -618, -600, -659, E2)]();
592
- if (t3[z2(C2, b2, 267, v2, "I01V")]() && !t3[L2(-392, -390, 0, -329, "O*3!")]()) return t3;
590
+ function P2(t3, e3, n3, r3, o2) {
591
+ return lt(t3 - F2, e3 - 210, r3 - -976, r3 - 133, o2);
593
592
  }
594
593
  function z2(t3, e3, n3, r3, o2) {
595
- return X(0, 0, n3 - 824, o2);
594
+ return K(0, 0, t3 - 1500, 0, n3);
595
+ }
596
+ if (nt = false, !e2 && et[B2(1132, _2, "McwI", S2)]) {
597
+ const t3 = await this[H2(-101, -127, -26, -193, "b!6E")]();
598
+ if (t3[z2(1145, 0, w2)]() && !t3[L2(y2, E2)]()) return t3;
596
599
  }
597
600
  function H2(t3, e3, n3, r3, o2) {
598
- return tt(0, 0, r3 - -696, o2);
599
- }
600
- et[H2(-531, -544, -490, -582, "Nqou")] = t2, et[z2(0, 0, 313, 0, "zz)o")] = H2(-644, -588, -489, -562, "kBba"), et[L2(-354, -383, 0, -398, x2)] = null, et[z2(0, 0, I2, 0, "^uSd")] = null;
601
- const V2 = await this[L2(-518, -570, 0, -452, "IklC")]();
602
- function W2(t3, e3, n3, r3, o2) {
603
- return at(t3 - F2, e3 - k2, n3 - 1183, r3 - 317, o2);
604
- }
605
- if (!V2[P2(0, 0, 206, R2)]()) throw await this[L2(-379, -294, 0, -410, "@]F%")](true), new Error(L2(-359, -411, 0, -401, A2));
606
- return await G[W2(1178, M2, T2, N2, "O*3!")](t2, e2), V2;
607
- }
608
- async [X(0, 0, -607, "ODGP")](t2 = false) {
609
- const e2 = "ODGP", n2 = 1138, r2 = 75, s2 = 47, i2 = 96, a2 = 45, l2 = "#l!H", c2 = "lC@v", h2 = "#l!H", d2 = "J#Iw", u2 = 20, g2 = "*(MJ", m2 = "$AD$", f2 = "$s4a", p2 = 4, _2 = 36, S2 = 9, w2 = 1107, y2 = 1109, E2 = "ls^8", C2 = 1158, b2 = "Cnvk", v2 = "3YXZ", x2 = 1069, I2 = 1043, R2 = 248, A2 = 279, M2 = 59, T2 = "ODGP", N2 = 49, F2 = 565, k2 = 413, O2 = 477, D2 = 494, B2 = 433, L2 = "ChnO", P2 = 378, z2 = 45, V2 = 166, W2 = "JYVc", $2 = 1146, j2 = 112, Y2 = 178, tt2 = "[AF5", st2 = "X5!V", it2 = 19, ct2 = "oOeY", ht2 = "lC@v", dt2 = 1128, ut2 = 270, gt2 = 105, mt2 = 125, ft2 = 374, pt2 = 496, _t2 = 21, St2 = 117, wt2 = 171, yt2 = 181, Et2 = "ChnO";
610
- if (et[It2(-415, -404, "ls^8", -505, -456)]) return et[Nt2(e2, 1148, n2)];
611
- if (!this[At2(37, r2, "kR@V", s2)][At2(i2, a2, l2, 81)] && (this[Tt2(c2, -215, -132, -152)][Tt2(h2, a2, -73, -13)] = new Error("FV")), et[Mt2(-314, -341, -321, d2, -326)]) return et[At2(u2, -18, "@]F%", -72)];
612
- let Ct2 = null;
613
- et[Mt2(-354, -375, -497, "(0cu", -412)] = new Promise((t3) => {
614
- Ct2 = t3;
601
+ return st(t3 - -817, 0, 0, o2);
602
+ }
603
+ et[B2(1121, 1075, C2, b2)] = t2, et[L2(128, ")Qyn")] = z2(v2, 0, x2), et[P2(252, I2, 0, R2, "0ewm")] = null, et[z2(A2, 0, ")uYR")] = null;
604
+ const V2 = await this[H2(-8, 0, 0, 0, M2)]();
605
+ if (!V2[L2(101, "kFB*")]()) throw await this[B2(T2, 1211, N2, 1241)](true), new Error(H2(-56, 0, 0, 0, "McwI"));
606
+ return await G[P2(315, 275, 0, 352, "N@f5")](t2, e2), V2;
607
+ }
608
+ async [lt(1361, 1327, 1341, 1425, "71HM")](t2 = false) {
609
+ const e2 = 156, n2 = 368, r2 = "71HM", s2 = "nfml", i2 = 386, a2 = "dzru", l2 = 384, c2 = 451, h2 = 622, d2 = 727, u2 = 377, g2 = "j*[9", m2 = "jUvD", f2 = 562, p2 = 486, _2 = "QNvq", S2 = 437, w2 = 430, y2 = "YZ!L", E2 = 379, C2 = 537, b2 = "5XoR", v2 = 531, x2 = "^^wT", I2 = 529, R2 = 384, A2 = 473, M2 = 499, T2 = "am@h", N2 = 288, F2 = 215, k2 = 386, O2 = 338, D2 = "4)u9", L2 = 394, B2 = 335, P2 = "6]ZD", z2 = 490, V2 = 404, W2 = "Eh!l", $2 = 255, j2 = "zz0L", Y2 = 246, Q2 = "rw@V", it2 = "LDPp", at2 = 699, ht2 = 360, dt2 = "])GS", ut2 = 491, gt2 = 545, mt2 = "iu1)", ft2 = 491, pt2 = 111, _t2 = 663, St2 = "5XoR", wt2 = 590, yt2 = 440, Et2 = 211, Ct2 = 135, bt2 = 212, vt2 = 499;
610
+ if (et[Ft2("HsW2", -51, -185, -117, -114)]) return et[kt2(-226, -149, -197, -287, ")uYR")];
611
+ if (!this[Ot2(173, ")uYR", e2, 185)][kt2(-289, -368, -217, -200, r2)] && (this[Ft2(s2, -247, -222, -103, -162)][Mt2(i2, 512, a2, l2, c2)] = new Error("FV")), et[Mt2(444, 549, "zz0L", 400, 453)]) return et[xt2("0ewm", 611, h2)];
612
+ function xt2(t3, e3, n3, r3, o2) {
613
+ return st(n3 - -144, 0, 0, t3);
614
+ }
615
+ let It2 = null;
616
+ et[xt2("71HM", 0, d2)] = new Promise((t3) => {
617
+ It2 = t3;
615
618
  });
616
- let bt2, vt2 = null;
617
- const xt2 = async (t3, e3) => {
619
+ let Rt2, At2 = null;
620
+ function Mt2(t3, e3, n3, r3, o2) {
621
+ return lt(t3 - 142, e3 - vt2, o2 - -823, r3 - 333, n3);
622
+ }
623
+ const Tt2 = async (t3, e3) => {
624
+ const n3 = 332;
618
625
  try {
619
- const i3 = ((t4) => {
626
+ const a3 = ((t4) => {
620
627
  let e4 = t4;
621
628
  const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
622
- if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = q(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
629
+ 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();
623
630
  e4 = e4.substring(0, e4.length - 1), e4 = U(e4, r4);
624
631
  try {
625
632
  e4.startsWith("{") || (e4 = "{" + e4);
@@ -628,231 +635,221 @@ class st {
628
635
  } catch (t5) {
629
636
  throw new Error("Invalid license key.");
630
637
  }
631
- })(e3), a3 = ((t4, e4, n4) => {
632
- const r4 = 153, o2 = "B6Zg", s4 = 394, i4 = 94;
633
- function a4(t5, e5, n5, r5, o3) {
634
- return K(o3 - -203, t5);
635
- }
636
- function l3(t5, e5, n5, r5, o3) {
637
- return K(r5 - -94, e5);
638
+ })(e3), l3 = ((t4, e4, n4) => {
639
+ const r4 = "qP[A", o2 = 967;
640
+ function s4(t5, e5, n5, r5, o3) {
641
+ return q(e5 - -461, t5);
638
642
  }
639
- function c3(t5, e5, n5, r5, o3) {
640
- return K(o3 - i4, r5);
643
+ function i4(t5, e5, n5, r5, o3) {
644
+ return q(e5 - -979, r5);
641
645
  }
642
- function h3(t5, e5, n5, r5, o3) {
643
- return K(n5 - 132, t5);
646
+ function a4(t5, e5, n5, r5, o3) {
647
+ return q(n5 - 603, o3);
644
648
  }
645
- function d3(t5, e5, n5, r5, o3) {
646
- return K(e5 - -597, o3);
649
+ function l4(t5, e5, n5, r5, s5) {
650
+ return q(e5 - o2, n5);
647
651
  }
648
- return { getLicensee: () => t4[a4("I01V", 0, 0, 0, 73)], getExpiration: () => new Date(t4[l3(0, "WuPX", 0, 218)]), getDomains: () => t4[d3(0, -363, 0, 0, "uFJ$")] ?? [], getDeveloperCount: () => t4[a4("ls^8", 0, 0, 0, 145)] ?? 1, getCpuCount: () => t4[a4("!8ne", 0, 0, 0, 25)] ?? 0, getType: () => t4[h3("X5!V", 0, 445)] ?? h3("X5!V", 0, 461), getExceptions: () => e4, hasExceptions() {
649
- return !!e4 && e4[t5 = -301, n5 = "3YXZ", a4(n5, 0, 0, 0, t5 - -296)] > 0;
652
+ return { getLicensee: () => t4[a4(0, 0, 1083, 0, "nfml")], getExpiration: () => new Date(t4[a4(0, 0, 1197, 0, "N@f5")]), getDomains: () => t4[l4(0, 1504, "DenL")] ?? [], getDeveloperCount: () => t4[i4(0, -374, 0, ")uYR")] ?? 1, getCpuCount: () => t4[l4(0, 1558, "L&[Y")] ?? 0, getType: () => t4[s4("4)u9", 78)] ?? a4(0, 0, 1204, 0, "ab1U"), getExceptions: () => e4, hasExceptions() {
653
+ return !!e4 && e4[t5 = 42, n5 = "rw@V", l4(0, t5 - -1455, n5)] > 0;
650
654
  var t5, n5;
651
655
  }, isValidFor: (t5) => {
652
- return !(e4?.[n5 = "GE#s", r5 = 598, d3(0, r5 - 937, 0, 0, n5)] > 0);
653
- var n5, r5;
654
- }, isValid: () => true, isEval: () => false, getFeatures: () => Object[c3(0, 0, 0, "(0cu", 402)](t4[l3(0, "*(MJ", 0, 107)] ?? {}), getKeyFrom: () => n4, getBuildVersion: H[l3(0, "RD^Z", 0, r4)], getBuildDate: H[c3(0, 0, 0, o2, s4)] };
655
- })(i3, await (async (t4) => {
656
- const e4 = 1123, n4 = "JYVc", r4 = 382, s4 = 731, i4 = "C^[r", a4 = 656, l3 = "(0cu", c3 = 1136, h3 = 1011, d3 = "kBba", u3 = "$s4a", g3 = 756, m3 = "lC@v", f3 = 403, p3 = 183, _3 = 800, S3 = t4[E3(1139, 1146, 1202, "B6Zg")], w3 = t4[y3(-310, "Cnvk", -211, -315, -266)] ? new Date(t4[E3(e4, 1080, 1051, n4)]) : null;
657
- function y3(t5, e5, n5, r5, o2) {
658
- return K(o2 - -606, e5);
656
+ return !(e4?.[n5 = -111, o3 = r4, s4(o3, n5 - -246)] > 0);
657
+ var n5, o3;
658
+ }, isValid: () => true, isEval: () => false, getFeatures: () => Object[i4(0, -447, 0, "DenL")](t4[s4("])GS", 30)] ?? {}), getKeyFrom: () => n4, getBuildVersion: H[l4(0, 1500, "HsW2")], getBuildDate: H[l4(0, 1530, "fuzQ")] };
659
+ })(a3, await (async (t4) => {
660
+ const e4 = 816, n4 = "FPNy", r4 = "YZ!L", s4 = 412, i4 = 721, a4 = "8wBE", l4 = 479, c3 = 506, h3 = 598, d3 = 659, u3 = 601, g3 = 614, m3 = 762, f3 = "L&[Y", p3 = 430, _3 = "Eh!l", S3 = "qP[A", w3 = 825, y3 = 793, E3 = "Eh!l", C3 = 200, b3 = t4[v3(882, 851, "EG$#")];
661
+ function v3(t5, e5, n5, r5, o2) {
662
+ return q(e5 - C3, n5);
659
663
  }
660
- function E3(t5, e5, n5, r5, o2) {
661
- return K(e5 - _3, r5);
664
+ function x3(t5, e5, n5, r5, o2) {
665
+ return q(r5 - -771, t5);
662
666
  }
663
- function C3(t5, e5, n5, r5, o2) {
664
- return K(n5 - f3, o2);
667
+ const I3 = t4[v3(0, e4, n4)] ? new Date(t4[A3(421, r4, s4)]) : null;
668
+ t4[x3("LDPp", 0, 0, -296)];
669
+ const R3 = [];
670
+ function A3(t5, e5, n5, r5, o2) {
671
+ return q(n5 - -111, e5);
665
672
  }
666
- var b3, v3;
667
- t4[b3 = "3YXZ", v3 = r4, K(v3 - p3, b3)];
668
- const x3 = [];
669
- var I3, R3;
670
- if (w3 ? isNaN(w3) ? x3[C3(0, 0, 644, 0, "lC@v")](E3(0, 1025, 0, i4)) : w3 < /* @__PURE__ */ new Date() && x3[I3 = -555, R3 = "GE#s", K(I3 - -759, R3)](C3(0, 0, a4, 0, l3) + w3[E3(0, c3, 0, "RD^Z")]()) : x3[E3(0, 1103, 0, "3YXZ")](C3(0, 0, s4, 0, "Nqou")), o[E3(0, h3, 0, "rA[P")]()) ;
673
+ var M3, T3;
674
+ function N3(t5, e5, n5, r5, o2) {
675
+ return q(n5 - 16, e5);
676
+ }
677
+ if (I3 ? isNaN(I3) ? R3[M3 = a4, T3 = -16, q(T3 - -478, M3)](N3(l4, "Eh!l", c3)) : I3 < /* @__PURE__ */ new Date() && R3[N3(h3, "D#M4", d3)](N3(u3, "zz0L", g3) + I3[x3("j*[9", 0, 0, -147)]()) : R3[x3("D#M4", 0, 0, -128)](v3(0, i4, "Eh!l")), o[v3(0, m3, "])GS")]()) ;
671
678
  else {
672
- if (Z()) return x3;
673
- if (S3 && 0 !== S3[C3(0, 0, 753, 0, d3)]) {
679
+ if (Z()) return R3;
680
+ if (b3 && 0 !== b3[x3("nfml", 0, 0, -171)]) {
674
681
  let t5 = false;
675
- const e5 = J();
676
- for (let n5 = 0; !t5 && n5 < S3[y3(0, "kBba", 0, 0, -256)]; n5++) t5 = e5[C3(0, 0, g3, 0, "IklC")](S3[n5]);
677
- !t5 && x3[E3(0, 1092, 0, "^uSd")](C3(0, 0, 673, 0, m3));
678
- } else x3[E3(0, 996, 0, u3)](y3(0, "Ds93", 0, 0, -384));
682
+ const e5 = X();
683
+ for (let n5 = 0; !t5 && n5 < b3[x3(_3, 0, 0, -129)]; n5++) t5 = e5[A3(0, S3, 450)](b3[n5]);
684
+ !t5 && R3[v3(0, w3, "LDPp")](v3(0, y3, E3));
685
+ } else R3[A3(0, f3, p3)](N3(0, "j*[9", 581));
679
686
  }
680
- return x3;
681
- })(i3), t3);
682
- return a3[n3 = yt2, r3 = 136, s3 = Et2, Nt2(s3, n3 - 356, r3 - -939)]() && (bt2 = a3), a3;
687
+ return R3;
688
+ })(a3), t3);
689
+ return l3[r3 = 263, s3 = bt2, i3 = "nfml", Ot2(s3 - 28, i3, r3 - 23, s3 - n3)]() && (Rt2 = l3), l3;
683
690
  } catch (e4) {
684
- bt2 = ((t4) => {
685
- const e5 = "ChnO", n4 = 762, r4 = 222, o2 = 131;
686
- function s4(t5, e6, n5, r5, o3) {
687
- return K(o3 - -199, n5);
691
+ Rt2 = ((t4) => {
692
+ function e5(t5, e6, n5, r4, o2) {
693
+ return q(t5 - -841, n5);
688
694
  }
689
- function i3(t5, e6, n5, r5, o3) {
690
- return K(e6 - 565, t5);
695
+ function n4(t5, e6, n5, r4, o2) {
696
+ return q(e6 - 231, o2);
691
697
  }
692
- return { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => s4(0, 0, "lC@v", 0, 19), getExceptions: () => {
693
- return [(e6 = r4, n5 = "P8&e", s4(0, 0, n5, 0, e6 - o2) + t4 + "'")];
694
- var e6, n5;
695
- }, hasExceptions: () => true, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, getFeatures: () => Object[i3("Zy6W", 848)]({}), getKeyFrom: () => t4, getBuildVersion: H[i3("Zy6W", 834)], getBuildDate: H[i3(e5, n4)] };
698
+ return { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => n4(0, 806, 0, 0, "YZ!L"), getExceptions: () => {
699
+ return [(e6 = "gmZs", r4 = -395, n4(0, r4 - -1114, 0, 0, e6) + t4 + "'")];
700
+ var e6, r4;
701
+ }, hasExceptions: () => true, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, getFeatures: () => Object[e5(-208, 0, "4)u9")]({}), getKeyFrom: () => t4, getBuildVersion: H[e5(-230, 0, "FPNy")], getBuildDate: H[e5(-355, 0, "b!6E")] };
696
702
  })(t3);
697
703
  }
698
- var n3, r3, s3;
704
+ var r3, s3, i3;
699
705
  };
700
- function It2(t3, e3, n3, r3, o2) {
701
- return at(t3 - wt2, e3 - 463, o2 - -514, r3 - 56, n3);
702
- }
703
- et[It2(-438, -518, g2, -493, -522)] && (vt2 = await xt2(et[Nt2(m2, 1195, 1168)], et[Tt2(f2, -18, p2, -56)]));
704
- let Rt2 = false;
705
- if (nt && (Rt2 = true, vt2 = Q(At2(-57, _2, "I01V", -27))), !vt2) {
706
- if (o[At2(-54, -86, "rA[P", -67)]()) {
707
- if (!vt2) {
708
- const t3 = process[Tt2("*%VU", -111, S2, -23)], e3 = t3[Tt2("3YXZ", -25, -143, -86)] || t3[Mt2(-465, -420, -334, "rA[P", -375)] || t3[Nt2("^uSd", w2, y2)] || t3[Mt2(-376, -251, -298, "C^[r", -322)];
709
- e3 && (vt2 = await xt2(Nt2(E2, C2, 1115), e3));
706
+ et[Mt2(461, 507, "4)u9", u2, 433)] && (At2 = await Tt2(et[kt2(-177, -220, -210, -141, "4)u9")], et[Ft2(g2, -196, -166, -165, -107)]));
707
+ let Nt2 = false;
708
+ if (nt && (Nt2 = true, At2 = tt(xt2(m2, 0, 608))), !At2) {
709
+ if (o[Mt2(351, 341, "h16P", 318, 378)]()) {
710
+ if (!At2) {
711
+ const t3 = process[Mt2(599, f2, "Y6xX", 459, 546)], e3 = t3[Mt2(p2, 568, _2, S2, 512)] || t3[Mt2(396, w2, y2, 424, E2)] || t3[Mt2(618, 502, "rw@V", 514, C2)] || t3[kt2(-168, -85, -220, -262, b2)];
712
+ e3 && (At2 = await Tt2(Mt2(v2, 415, x2, I2, 446), e3));
710
713
  }
711
- if (!vt2) {
712
- const t3 = await G[At2(47, 137, "[AF5", 99)]();
713
- t3 && (vt2 = await xt2(It2(-592, -499, b2, -475, -536), t3));
714
+ if (!At2) {
715
+ const t3 = await G[Mt2(R2, A2, "P5rc", M2, 461)]();
716
+ t3 && (At2 = await Tt2(kt2(-190, -139, -245, -147, "iu1)"), t3));
714
717
  }
715
- !vt2 && (Rt2 = true);
718
+ !At2 && (Nt2 = true);
716
719
  } else {
717
- if (!vt2) {
720
+ if (!At2) {
718
721
  let t3 = false;
719
722
  try {
720
723
  const e3 = await fetch("./" + ot);
721
- let n3 = null;
722
- if (200 === e3[Nt2(v2, 1035, 1055, x2, I2)]) {
723
- const r3 = (await e3[Mt2(-R2, -A2, -384, "^uSd", -335)]())[At2(-47, -M2, T2, -59, -N2)]("\n"), o2 = r3[It2(-F2, -k2, "lC@v", -O2, -D2)];
724
- for (let e4 = 0; !n3 && e4 < o2; e4++) {
725
- const o3 = r3[e4][Mt2(-389, -376, -B2, L2, -P2)]();
726
- 0 !== o3[Tt2("yJV1", -z2, -i2, -79, -V2)] && (o3[Tt2(W2, -75, -118, -126, -148)](Nt2("^uSd", 1148, 1080, $2, 1055)) ? t3 = true : n3 = o3);
724
+ let r3 = null;
725
+ if (200 === e3[Ft2(T2, -305, -N2, -208, -F2)]) {
726
+ const o2 = (await e3[kt2(-309, -k2, -O2, -235, D2)]())[Mt2(L2, B2, P2, z2, V2)]("\n"), s3 = o2[Ot2(266, W2, 170, $2, 314)];
727
+ for (let e4 = 0; !r3 && e4 < s3; e4++) {
728
+ const s4 = o2[e4][xt2(j2, 0, 683)]();
729
+ 0 !== s4[kt2(-Y2, -281, -321, -333, Q2)] && (s4[xt2(it2, 0, at2)](Mt2(381, n2, "P5rc", ht2, w2)) ? t3 = true : r3 = s4);
727
730
  }
728
731
  }
729
- if (t3 && n3) {
730
- const t4 = Tt2("zz)o", -35, -70, -j2, -Y2) + ot + "')";
731
- vt2 = await xt2(t4, n3);
732
+ if (t3 && r3) {
733
+ const t4 = xt2(dt2, 0, 607) + ot + "')";
734
+ At2 = await Tt2(t4, r3);
732
735
  }
733
736
  } catch (t4) {
734
737
  }
735
738
  }
736
- !vt2 && Z() && (Rt2 = true);
739
+ !At2 && Z() && (Nt2 = true);
737
740
  }
738
741
  }
739
- !vt2 && Rt2 && (vt2 = Q(Tt2(T2, -154, -141, -122))), !vt2 && bt2 && (vt2 = bt2), !vt2 && (vt2 = { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => null, isEval: () => false, getExceptions: () => [It2(-599, -498, "P8&e", -602, -558)], hasExceptions: () => true, isValidFor: (t3) => false, isValid: () => false, getFeatures: () => Object[Tt2("yJV1", -9, 26, -8)]({}), getKeyFrom: () => Tt2("H9VV", -64, -148, -84), getBuildVersion: H[Mt2(-415, -357, -483, ")bJ8", -426)], getBuildDate: H[Tt2(tt2, -80, -45, -6)] }), et[Mt2(-456, -363, -371, "oOeY", -425)] = vt2, Ct2(vt2);
740
- function At2(t3, e3, n3, r3, o2) {
741
- return at(t3 - ft2, e3 - pt2, r3 - _t2, r3 - St2, n3);
742
- }
743
- function Mt2(t3, e3, n3, r3, o2) {
744
- return lt(t3 - 424, e3 - 72, n3 - gt2, r3, o2 - mt2);
742
+ function Ft2(t3, e3, n3, r3, o2) {
743
+ return ct(t3 - Ct2, e3 - 185, t3, o2 - -1211);
745
744
  }
746
- function Tt2(t3, e3, n3, r3, o2) {
747
- return lt(t3 - ut2, e3 - 95, n3 - 135, t3, r3 - 402);
745
+ function kt2(t3, e3, n3, r3, o2) {
746
+ return K(0, 0, t3 - Et2, 0, o2);
748
747
  }
749
- function Nt2(t3, e3, n3, r3, o2) {
750
- return X(0, 0, n3 - 1721, t3);
748
+ function Ot2(t3, e3, n3, r3, o2) {
749
+ return lt(t3 - 53, e3 - 470, t3 - -1114, r3 - yt2, e3);
751
750
  }
751
+ !At2 && Nt2 && (At2 = tt(Mt2(590, ut2, "jUvD", 577, gt2))), !At2 && Rt2 && (At2 = Rt2), !At2 && (At2 = { getLicensee: () => null, getExpiration: () => null, getDomains: () => [], getDeveloperCount: () => 0, getCpuCount: () => 0, getType: () => null, isEval: () => false, getExceptions: () => [xt2("j*[9", 0, 684)], hasExceptions: () => true, isValidFor: (t3) => false, isValid: () => false, getFeatures: () => Object[kt2(-302, 0, 0, 0, "D#M4")]({}), getKeyFrom: () => kt2(-264, 0, 0, 0, "iu1)"), getBuildVersion: H[Mt2(558, 463, mt2, 560, ft2)], getBuildDate: H[Ot2(159, "N@f5", 247, pt2)] }), et[xt2("7B!7", 0, _t2)] = At2, It2(At2);
752
752
  if (t2 && ((t3, e3) => {
753
- const n3 = ")bJ8", r3 = "J#Iw", o2 = 604;
754
- function s3(t4, e4, n4, r4, s4) {
755
- return K(r4 - o2, t4);
756
- }
757
- if (et[i3(-128, -153, "Ds93")] && et[s3("zR70", 0, 0, 863)]) return false;
758
- function i3(t4, e4, n4, r4, o3) {
759
- return K(e4 - -414, n4);
760
- }
761
- return t3 || e3[i3(0, -39, n3)]() || e3[s3(r3, 0, 0, 947)]()?.pb;
762
- })(Rt2, vt2)) {
753
+ const n3 = 608, r3 = 677, o2 = "EG$#", s3 = 1282;
754
+ if (et[h3(711, "Eh!l", 696, 754)] && et[h3(n3, "fuzQ", 765, r3)]) return false;
755
+ var i3, a3, l3, c3;
756
+ function h3(t4, e4, n4, r4, o3) {
757
+ return q(r4 - 212, e4);
758
+ }
759
+ return t3 || e3[l3 = "@nFm", c3 = -66, q(c3 - -716, l3)]() || e3[i3 = o2, a3 = s3, q(a3 - 642, i3)]()?.pb;
760
+ })(Nt2, At2)) {
763
761
  if (rt) return void setTimeout(() => {
764
- var t3, e3, n3;
765
- this[t3 = 1172, e3 = ht2, n3 = dt2, Tt2(e3, e3 - 271, n3 - 185, t3 - 1287)](false, false);
762
+ var t3, e3;
763
+ this[t3 = 227, e3 = "5XoR", Ft2(e3, t3 - 160, 0, 0, t3 - 490)](false, false);
766
764
  }, 8e3);
767
- await this[At2(87, -14, st2, it2)](false, false);
765
+ await this[xt2(St2, 0, wt2)](false, false);
768
766
  }
769
- return et[Nt2(ct2, 0, 1090)];
767
+ return et[Ot2(94, it2, 0, 8)];
770
768
  }
771
- async [at(-94, -17, -109, -117, "^uSd")](t2) {
772
- const e2 = "GE#s", n2 = "2y5!", r2 = "RD^Z", o2 = 638, s2 = "H9VV", i2 = "ChnO", a2 = 50, l2 = 232, c2 = 535;
773
- function h2(t3, e3, n3, r3, o3) {
774
- return X(0, 0, o3 - c2, e3);
769
+ async [st(803, 0, 0, "HkJZ")](t2) {
770
+ const e2 = 1285, n2 = "5XoR", r2 = 326, o2 = 340, s2 = 1439, i2 = 219, a2 = 1292, l2 = 227, c2 = 107, h2 = 121, d2 = 453, u2 = 374, g2 = 135, m2 = 478;
771
+ function f2(t3, e3, n3, r3, o3) {
772
+ return ct(t3 - u2, e3 - g2, n3, t3 - m2);
775
773
  }
776
- function d2(t3, e3, n3, r3, o3) {
777
- return X(0, 0, n3 - l2, t3);
774
+ function p2(t3, e3, n3, r3, o3) {
775
+ return st(n3 - 416, 0, 0, o3);
778
776
  }
779
- et[g2("uFJ$", 732, 612, 672)] = true;
780
- const u2 = await this[h2(0, e2, 0, 0, -35)]();
781
- function g2(t3, e3, n3, r3, o3) {
782
- return X(0, 0, r3 - 1194, t3);
777
+ et[v2(135, 107, "QNvq")] = true;
778
+ const _2 = await this[S2 = "HkJZ", w2 = 270, Q(0, 0, w2 - l2, S2)]();
779
+ var S2, w2, y2, E2, C2, b2;
780
+ function v2(t3, e3, n3, r3, o3) {
781
+ return ct(t3 - 450, e3 - d2, n3, e3 - -862);
783
782
  }
784
- return await G[d2("zR70", 0, -397)](t2), !t2 && !et[h2(0, "@]F%", 0, 0, -87)] && (u2[h2(0, n2, 0, 0, 1)]() || u2[h2(0, "Nqou", 0, 0, -75)]()) && await this[g2(r2, 0, 0, o2)](t2, u2[d2(s2, 0, -381)]()), Promise[h2(0, i2, 0, 0, a2)]();
783
+ return await G[f2(1441, 1492, "qP[A")](t2), !t2 && !et[p2(0, 0, e2, 0, n2)] && (_2[p2(0, 0, 1201, 0, "nfml")]() || _2[y2 = r2, E2 = 302, C2 = ")uYR", b2 = o2, lt(y2 - c2, E2 - h2, y2 - -994, b2 - 114, C2)]()) && await this[f2(1452, s2, "EG$#")](t2, _2[v2(i2, 197, "HsW2")]()), Promise[p2(0, 0, a2, 0, "PVrR")]();
785
784
  }
786
- async [Y("O*3!", 0, 0, 0, 381)](t2 = false, e2 = false, n2 = false) {
787
- const r2 = "*%VU", o2 = 1076, s2 = "JYVc", i2 = 1114, a2 = 588, l2 = 556, c2 = "#l!H", h2 = "6zi]", d2 = 380, u2 = 1154, g2 = 116, m2 = 197, f2 = 177;
788
- function p2(t3, e3, n3, r3, o3) {
789
- return Y(e3, 0, 0, 0, o3 - -100);
785
+ async [ct(1142, 1126, "7B!7", 1051)](t2 = false, e2 = false, n2 = false) {
786
+ const r2 = "qP[A", o2 = "iu1)", s2 = 1385, i2 = 1457, a2 = ")uYR", l2 = 5, c2 = "Y6xX", h2 = 345, d2 = 22, u2 = 165;
787
+ function g2(t3, e3, n3, r3, o3) {
788
+ return st(n3 - -879, 0, 0, t3);
790
789
  }
791
- function _2(t3, e3, n3, r3, o3) {
792
- return at(t3 - g2, e3 - m2, e3 - 660, r3 - f2, r3);
790
+ function m2(t3, e3, n3, r3, o3) {
791
+ return Q(0, 0, e3 - -274, t3);
793
792
  }
794
- et[_2(753, 670, 630, "rA[P")] = true;
795
- const S2 = await this[_2(720, 691, 0, r2)]();
796
- var w2, y2, E2, C2;
797
- et[p2(0, "(0cu", 0, 0, 390)] || !S2[w2 = o2, y2 = 1030, E2 = s2, C2 = i2, at(w2 - 5, y2 - d2, w2 - u2, C2 - 223, E2)]() && !S2[_2(a2, l2, 0, c2)]() ? await G[p2(0, "Obsc", 0, 0, 354)](S2, t2, e2, n2) : await this[_2(764, 737, 0, h2)](t2);
793
+ et[m2("gmZs", -113)] = true;
794
+ const f2 = await this[g2(r2, 0, -103)]();
795
+ var p2, _2, S2, w2, y2, E2, C2;
796
+ et[y2 = o2, E2 = s2, C2 = i2, lt(y2 - h2, E2 - d2, E2 - u2, C2 - 276, y2)] || !f2[S2 = "DenL", w2 = 40, st(w2 - -699, 0, 0, S2)]() && !f2[p2 = "^^wT", _2 = -182, st(_2 - -1061, 0, 0, p2)]() ? await G[m2(c2, -152)](f2, t2, e2, n2) : await this[g2(a2, 0, l2)](t2);
798
797
  }
799
- async [X(0, 0, -587, "WuPX")](t2, e2) {
800
- const n2 = 1015, r2 = 1104, s2 = 1067, i2 = 689, a2 = 1240, l2 = 1145, c2 = 534, h2 = 596, d2 = 458, u2 = 568, g2 = "oOeY", m2 = 1223, f2 = 302, p2 = 182, _2 = 677;
801
- if (!t2 && (et[S2 = 687, w2 = 755, y2 = "B6Zg", at(S2 - 156, w2 - 340, S2 - 734, y2 - 73, y2)] || et[E2("$$5f", n2, 1010, r2)])) return;
802
- var S2, w2, y2;
803
- function E2(t3, e3, n3, r3, o2) {
804
- return Y(t3, 0, 0, 0, r3 - _2);
798
+ async [lt(1261, 1348, 1345, 1381, "IJdP")](t2, e2) {
799
+ const n2 = "WELU", r2 = 1410, s2 = 596, i2 = 602, a2 = 682, l2 = "QNvq", c2 = 582, h2 = "QNvq", d2 = 740, u2 = 414, g2 = 316;
800
+ function m2(t3, e3, n3, r3, o2) {
801
+ return st(n3 - -736, 0, 0, o2);
805
802
  }
806
- function C2(t3, e3, n3, r3, o2) {
807
- return lt(t3 - f2, e3 - p2, n3 - 436, n3, e3 - 1015);
803
+ if (!t2 && (et[m2(0, 0, 20, 0, "fuzQ")] || et[m2(0, 0, 104, 0, "gmZs")])) return;
804
+ var f2, p2, _2, S2, w2;
805
+ et[m2(0, 0, 130, 0, n2)] = true, et[f2 = -76, p2 = ")Qyn", Q(0, 0, f2 - -172, p2)] = true, await this[_2 = "QNvq", S2 = r2, w2 = 1320, ct(_2 - u2, S2 - 204, _2, w2 - g2)](t2);
806
+ const y2 = o[v2(s2, i2, a2, "qP[A")](), E2 = t2 || y2 ? console[m2(0, 0, 108, 0, l2)] : o[C2 = "@nFm", b2 = 1510, st(b2 - d2, 0, 0, C2)];
807
+ var C2, b2;
808
+ function v2(t3, e3, n3, r3, o2) {
809
+ return Q(0, 0, t3 - 413, r3);
808
810
  }
809
- et[E2("Nqou", s2, 1215, 1146)] = true, et[C2(i2, 595, "$AD$")] = true, await this[E2("O*3!", a2, l2, 1197)](t2);
810
- const b2 = o[C2(c2, h2, "3YXZ")](), v2 = t2 || b2 ? console[C2(530, d2, "H9VV")] : o[C2(u2, 508, "zR70")];
811
- b2 && v2(""), await this[E2(g2, 0, 0, m2)](t2, e2), v2("");
811
+ y2 && E2(""), await this[v2(c2, 0, 0, h2)](t2, e2), E2("");
812
812
  }
813
- [lt(-509, -510, -513, "zz)o", -544)]() {
814
- return this[t2 = -423, e2 = "H9VV", n2 = -439, at(t2 - 440, e2 - 263, t2 - -418, n2 - 175, e2)]();
815
- var t2, e2, n2;
813
+ [lt(1435, 1357, 1364, 1330, "j*[9")]() {
814
+ return this[t2 = "P5rc", e2 = 441, st(e2 - -373, 0, 0, t2)]();
815
+ var t2, e2;
816
816
  }
817
- [at(132, 68, 62, 117, "[AF5")](t2) {
818
- return this[e2 = "WuPX", n2 = 858, Y(e2, 0, 0, 0, n2 - 417)](true, t2);
817
+ [K(0, 0, -428, 0, "PVrR")](t2) {
818
+ return this[e2 = "Y6xX", n2 = -309, Q(0, 0, n2 - -443, e2)](true, t2);
819
819
  var e2, n2;
820
820
  }
821
- [at(4, 138, 59, 95, "IpUI")]() {
822
- const t2 = "$s4a", e2 = 726, n2 = 804, r2 = 485, o2 = 24, s2 = 74;
823
- return et[h2 = -287, d2 = -282, u2 = -240, g2 = "^uSd", lt(h2 - 413, d2 - 431, u2 - 11, g2, h2 - 275)] || et[i2 = t2, a2 = 789, l2 = e2, c2 = n2, at(i2 - r2, a2 - o2, c2 - 781, l2 - s2, i2)];
824
- var i2, a2, l2, c2, h2, d2, u2, g2;
821
+ [Q(0, 0, 155, "4)u9")]() {
822
+ const t2 = "HsW2", e2 = 382, n2 = 290;
823
+ return et[a2 = 633, l2 = 546, c2 = 629, h2 = "ab1U", lt(a2 - 396, l2 - 426, c2 - -755, h2 - 416, h2)] || et[r2 = -382, o2 = -380, s2 = t2, i2 = -387, lt(r2 - e2, o2 - n2, o2 - -1686, i2 - 118, s2)];
824
+ var r2, o2, s2, i2, a2, l2, c2, h2;
825
825
  }
826
- [Y("H9VV", 0, 0, 0, 402)](t2) {
826
+ [lt(1249, 1330, 1260, 1199, "6]ZD")](t2) {
827
827
  rt = true;
828
828
  }
829
- async [X(0, 0, -488, "*%VU")]() {
830
- return this[t2 = 1167, e2 = "WuPX", X(0, 0, t2 - 1807, e2)](true);
831
- var t2, e2;
829
+ async [st(885, 0, 0, ")Qyn")]() {
830
+ return this[t2 = 1020, e2 = 964, n2 = "McwI", ct(t2 - 101, e2 - 267, n2, e2 - 25)](true);
831
+ var t2, e2, n2;
832
832
  }
833
- async [tt(0, 0, 78, "J#Iw")](t2, e2) {
834
- const n2 = 914, r2 = "6zi]", o2 = 391, s2 = 1153, i2 = await this[a2 = n2, l2 = 855, c2 = 885, h2 = "kBba", lt(a2 - o2, l2 - 143, c2 - 373, h2, l2 - 1295)]();
835
- var a2, l2, c2, h2, d2, u2;
836
- return await this[d2 = r2, u2 = 538, X(0, 0, u2 - s2, d2)](true, t2, e2), i2;
833
+ async [ct(1002, 917, "gmZs", 971)](t2, e2) {
834
+ const n2 = 933, r2 = "ab1U", o2 = 888;
835
+ function s2(t3, e3, n3, r3, s3) {
836
+ return Q(0, 0, t3 - o2, r3);
837
+ }
838
+ const i2 = await this[s2(n2, 0, 0, "QNvq")]();
839
+ return await this[s2(959, 0, 0, r2)](true, t2, e2), i2;
837
840
  }
838
- async [at(105, 1, 75, 157, "X5!V")]() {
839
- const t2 = 662;
841
+ async [Q(0, 0, 93, "6]ZD")]() {
842
+ const t2 = "@nFm";
840
843
  var e2, n2;
841
- return await G[e2 = 89, n2 = "WNZd", X(0, 0, e2 - t2, n2)]();
844
+ return await G[e2 = 46, n2 = t2, K(0, 0, e2 - 524, 0, n2)]();
842
845
  }
843
846
  }
844
- const it = new st();
845
- function at(t2, e2, n2, r2, o2) {
846
- return K(n2 - -299, o2);
847
- }
847
+ const at = new it();
848
848
  function lt(t2, e2, n2, r2, o2) {
849
- return K(o2 - -774, r2);
849
+ return q(n2 - 738, o2);
850
850
  }
851
- function ct() {
852
- const t2 = ["nsfVfCkpW7a", "WQJdVb/dJKZdLCo7pgy1WRRcRmoT", "c1TWfq", "W6NcVt3dIuRdGSofpwP7WOxcRmoW", "lCoDWOHzcL7cLrXCtrxdOG", "W45UWRiwW5vJW6ZdNq7dI8k6", "WPuAW6K", "W5n0C140W6ddIG", "svqwW6Gh", "W6vfDu03W73dGCkNgW", "W4NcOqNcVhT6", "W5CXyx/dO8kjWPRcLZ43W60tvSkpWRZcPCo1WQVcPuq", "WPldQ8kkW67dTN/cOmoMjSkudW3dM8otWOa", "g8krW5imjfal", "ySoscJRdNCkFWOVcS8kNWQrBWPFdQI9/F1Tc", "WOKVW69kWPnNW77dVXBdTmk6", "W60iwY90WPSwW5ODWOOUWPNdSG", "W47cTKL8W6X4y00", "WOOaW74wcHhcPmkwjSkzsxn1", "W5OKgSonoSkzB8kOarK", "WR5fvhy7WQVdSmkP", "W4NcOqlcPx5Z", "bhCysCkgW4KQW6fWkXWqWO3cIG", "iSkExmkrW5dcQmo+", "WQZdIMTkW6n9cq0/CW", "dKpdSL9LWPi", "y8kdySoAWPKZqq", "W6VdSCkhDCoEgSoJgSo3", "ch0FxmkbW4q0W5q", "WPbopcpcGSoIWPhdHmo1b8knWQTJ", "W4PVDLC", "WPeuW70JabFcSSkvaSkct3nY", "WRNdTrtdHv3dN8oh", "WPmSnYq", "pM0dhmkHWOGqjYnWbJbo", "W5pcPI3cUg5LW7rlWPZdQa", "W4vrW5RcM2DUiZGAW6FdOSoYi8o+W4G", "zviBW60AWQ7dUqSh", "W4tdImkgWP13ka", "DeTAW40AWQNdVrerWOq+nX5G", "WP7cKCo/A8owAw5aqX9Vke13WQ7cTG", "W7GkWPTRrdNdJu7cTSo2n8oPaq", "x8kyBSosWP4ZqCoBWOVcKmolA8knkCkUtxOcBq", "cKHLgmkYWQOLeCodW5CFW48ofG", "W6WcwNNcHh/cVwFdISo5W4urgq9mWQZdPXyT", "W5uVC2uMWRZdRSkIeW", "W6vQD1y2W70", "W4NcPmk5WO1CWOa", "WP04W7jfWO5jW6ZdGqRdUmkMW6NcRmoi", "W5SKgSoQn8ofkCoVqG", "W7S/l3xdQCkwWQVcJdKQWRKfqG", "WQ9TCcVcTCoDW4VcRqKYWP4MCa", "jeiqy8kEha", "WOq/mJ3dGSoS", "W4pcRCk4WOvA", "ofddP3H1WOPuWRumgCkgWRxdSMtdMtvxW5FcO8ojWRhdImkIF8o9", "WPOYW6HxWOHjW7RdHHhdPCkGW5pcPSo/W7ZcUgBcRGi", "lCoDWOHzcL4", "WPNdKZGVlJfOWO/cHmkfomoyWRmQEa", "W7n0C140W6ddISoyimkYbSo0aeq", "ruRcOh8", "sLyvW6WAWRNdVq", "WPmhWP3dQsi1hsyzW6/dGSoe", "dXPKp8k/W43cIW", "WPuqW6abdbW", "WRFcJSo9ySkyvMjg", "ke8uymkudWFdPY3dLdu", "lCoBWPTCdu7cTGLx", "W67dV8ofk8kkac96WP7dM2hcTa", "W4xcQJZcO2HV", "pCoVWPqEW6i2nCoAxfLWzq", "W4W8hCkTW5jeW71YnCk9hSo7sM4", "WPJdHcKiit0", "WPvEtIFdN1RcQ0xdJ8ogWPC", "W4lcPmkJWQ5nWPXVWRKBuW", "WQuseW3dTCorySo4W5SkW6hcJrtdTmkCW6xdUH3dVW", "b3CyASkAW4W1W5vgiWyb", "WRCAWQ4nhq0", "WRLFgeSTW4rd", "W6SddhtcGxxcVcNdTCo1WOyebrnFW6xdQbyWstVcRZaComoZW7i", "BSoUtmkxC8oPz8okorW", "WRRdQaldIa", "W7pcMJuzW55K", "WQydW68kerdcTSkreW", "amoYW53cNs/cKa", "ng0En8k8WPKLjt53htTz", "lmoNW5VcVYtcNq", "WRlcLmoizSkAtgm", "W71eW5ZcShXZcZK4W6pdUCoToq", "W70oWOfhvcldSvJcM8o5n8oP", "WRm3jJZdMmoixmovW7y6", "W43dK8oqW6hcTComfW", "WOyVjsa", "W7FdVSo6jmksls4", "tSofWPbADarbWRjVovLbW7W", "W5xdK8oDW6VcRSoah8kXWPVdPYhdHKW", "W5pcQmkKWOnCW4G", "DCkdAmosWOOL", "odDvg8kcW7NcTgiqW5JcSSoKgI0", "WRRdRX7dJuddLmoo", "WOuUnZRdLCo6ECooW6mR", "f8ovWOPzfLm", "b8oUW5NcSW", "WR7dUaNdLa", "oMutpmk3WPGqhdjG", "WQuKWRVcO13cRSkrW73cQIa", "CCkqy8ozWPuYDmkjWOFcHSopz8kB", "ffxdG2jHWOC", "W5z/A1GSW6e", "WPlcG8o+W4BcTCoac8kl", "WQlcTazTWO5h", "WQ0OWQZcP1RcSCkhW6BcVtb1EepdSa", "W67dV8odkmkxnY8", "kmoZWPKdW4eBjmog", "rmo2W51uWQOkfCk2W5i", "gmkrW5i5jfeD", "wmougt7dHCkoWOpdJmkUWRviWPVdTJ1Usv9jWPO", "ggnqpmkHWPSCjtzTadft", "mmo4W4tcUZ/cH8o+kmob", "W7BcKSofW6tdHsNdIbhcICkP", "p2iEqCkbW5e", "DCodbSoaWONdTmk9C8k5dSotlCkt", "jmkqx8kEW5ZcTmoDq8kYomo+aSkp", "W65IWQZcGNuwmmoDfqu", "W7PIWQZcINKbnmoAcHpcUmojCq", "W5zBW6lcTNfMiZKiW6pdPmoKgCoLW5tcONRcIa", "W7P4W6JdSNRcRmkGW5VcVsa", "WRLFgf0XW4bkW7W7WRmdWRy", "xXWNtSoIW75VeCo9W48PW5y5", "lLGkB8kpeq", "WOOTW6PnWPm", "W6OQigNdUmkxWQZcLYqS", "W7NdQmoya8kBjt57WO3dL34", "W5yKf8oplCkcyW", "WQ3dI2TgWPm7BXOlx2FdLJG", "W74eWPHKscxdRG", "iLBdTh1UWP9IWR0ngCodWRC", "W4xdG8kgWQ56nCkbdCoxemkBW6ZdNYO", "W7tcMCoh", "W6vIWRBcOwqk", "WOlcQtv6WOncwSkphmooDCkSqLD5W5hcOSkejSkD", "W7JcQ0pcMr/cKCkzkMOpWRZcImoC", "WOBcH8k9emo9W6r5iG", "W4ldK8oDW4BcRSopcCkpWPRdQWtdL1aF", "WP8PgcFdHCoS", "zSoIw8ktDmo2Cq", "W5hdLmkFWQz/kCku", "lqNdRHKlWPJcIda5WPy", "W4ldPSkkBmosomo0", "xvFcQNpcNIxdOSo/", "W6uRtxNcLa", "WQHTCIVcVmowWQNcHauPWP8L", "p38+nSk9WO4", "W7NcJt4BW5bP", "jCocpmkhW4L5fmkOWRFcNSoOrmkP", "W7i8ufxcLCoJkmk4W57cNHtdQa", "W6hcHCoyW47dLb/dIbBcI8k/cW", "WQZcOJDzWPPcuSoljSoczmk6ruTY", "WQnBic3cMmo+", "q13cUN3cHJRdQa", "WPxcImk1fSopW4T7", "W7T5W6JdVGRdQSogW4ZcIqXlyxe", "imkeW5qei0G8WODxkwHaW50", "fmoYW53cMcxcJCoYfCoC", "WP3dR8knW6NdU3xcQCoYbmkyeHddGq", "WPbopcpcGSoIWPFdGmoVcmkbWRu", "W7i8ufZcHCoZ", "WOuUnZZdLmo6", "WPxdRqpdIuFdK8oPl2e1WQVcUW", "WP7cKCo/A8kdrhnksr88aqrFWQ7cOthcQq", "WRZcN8k4d8odW6LSpSk6", "W65IWQZcIum", "mdTch8kfW6BcONKhW4G", "W5ZdPSkvxmophCoNhSoMrmk7FmkP", "WRK4WQVcRG", "vL3cVvdcNYxdOCo1h3BcSSoI", "WPO/oc/dLCoH", "WPG1mI3dQmoT", "WRjvd34OW4fjW6Sl", "zmoItSkgAmoOz8oY", "W6lcG8oqW5ldLc7dVHhcKCkY", "b8oLW4dcTYy", "W5xcTmkKWOi", "WP3dNYbdnYbWWO7cT8kioq", "egadrCkgW5y8", "gSkzW4CeirW", "iLBdTh1UWP9KWRKxfSopWQNdPa", "wvNcULFcKI/dQmoHl37cQCoPtq", "usbBbSoFWOTPWP8Z"];
853
- return (ct = function() {
854
- return t2;
855
- })();
851
+ function ct(t2, e2, n2, r2, o2) {
852
+ return q(r2 - 470, n2);
856
853
  }
857
854
  const ht = (t2, e2) => {
858
855
  const n2 = [];
@@ -1762,7 +1759,7 @@ function Dt(t2) {
1762
1759
  return t2.formats[n2] || t2.formats[t2.defaultWidth];
1763
1760
  };
1764
1761
  }
1765
- const Bt = { date: Dt({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Dt({ 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: Dt({ formats: { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, defaultWidth: "full" }) }, Lt = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" };
1762
+ const Lt = { date: Dt({ formats: { full: "EEEE, MMMM do, y", long: "MMMM do, y", medium: "MMM d, y", short: "MM/dd/yyyy" }, defaultWidth: "full" }), time: Dt({ 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: Dt({ formats: { full: "{{date}} 'at' {{time}}", long: "{{date}} 'at' {{time}}", medium: "{{date}}, {{time}}", short: "{{date}}, {{time}}" }, defaultWidth: "full" }) }, Bt = { lastWeek: "'last' eeee 'at' p", yesterday: "'yesterday at' p", today: "'today at' p", tomorrow: "'tomorrow at' p", nextWeek: "eeee 'at' p", other: "P" };
1766
1763
  function Pt(t2) {
1767
1764
  return (e2, n2) => {
1768
1765
  let r2;
@@ -1797,7 +1794,7 @@ const Vt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1797
1794
  let r2;
1798
1795
  const o2 = Ot[t2];
1799
1796
  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;
1800
- }, formatLong: Bt, formatRelative: (t2, e2, n2, r2) => Lt[t2], localize: { ordinalNumber: (t2, e2) => {
1797
+ }, formatLong: Lt, formatRelative: (t2, e2, n2, r2) => Bt[t2], localize: { ordinalNumber: (t2, e2) => {
1801
1798
  const n2 = Number(t2), r2 = n2 % 100;
1802
1799
  if (r2 > 20 || r2 < 10) switch (r2 % 10) {
1803
1800
  case 1:
@@ -1855,8 +1852,8 @@ const Vt = { code: "en-US", formatDistance: (t2, e2, n2) => {
1855
1852
  s2 = e2.dateTime({ width: "full" });
1856
1853
  }
1857
1854
  return s2.replace("{{date}}", Wt(r2, e2)).replace("{{time}}", $t(o2, e2));
1858
- } }, Gt = /^D+$/, Ut = /^Y+$/, qt = ["D", "DD", "YY", "YYYY"];
1859
- function Jt(t2) {
1855
+ } }, Gt = /^D+$/, Ut = /^Y+$/, Jt = ["D", "DD", "YY", "YYYY"];
1856
+ function qt(t2) {
1860
1857
  return Gt.test(t2);
1861
1858
  }
1862
1859
  function Kt(t2) {
@@ -1867,18 +1864,18 @@ function Xt(t2, e2, n2) {
1867
1864
  const r3 = "Y" === t3[0] ? "years" : "days of the month";
1868
1865
  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`;
1869
1866
  })(t2, e2, n2);
1870
- if (console.warn(r2), qt.includes(t2)) throw new RangeError(r2);
1867
+ if (console.warn(r2), Jt.includes(t2)) throw new RangeError(r2);
1871
1868
  }
1872
1869
  const Yt = Symbol.for("constructDateFrom");
1873
- function Zt(t2, e2) {
1870
+ function Qt(t2, e2) {
1874
1871
  return "function" == typeof t2 ? t2(e2) : t2 && "object" == typeof t2 && Yt in t2 ? t2[Yt](e2) : t2 instanceof Date ? new t2.constructor(e2) : new Date(e2);
1875
1872
  }
1876
- let Qt = {};
1873
+ let Zt = {};
1877
1874
  function te() {
1878
- return Qt;
1875
+ return Zt;
1879
1876
  }
1880
1877
  function ee(t2, e2) {
1881
- return Zt(e2 || t2, t2);
1878
+ return Qt(e2 || t2, t2);
1882
1879
  }
1883
1880
  class ne {
1884
1881
  constructor() {
@@ -1901,13 +1898,13 @@ class re extends ne {
1901
1898
  }
1902
1899
  class oe extends ne {
1903
1900
  constructor(t2, e2) {
1904
- super(), this.priority = 10, this.subPriority = -1, this.context = t2 || ((t3) => Zt(e2, t3));
1901
+ super(), this.priority = 10, this.subPriority = -1, this.context = t2 || ((t3) => Qt(e2, t3));
1905
1902
  }
1906
1903
  set(t2, e2) {
1907
- return e2.timestampIsSet ? t2 : Zt(t2, (function(t3, e3) {
1904
+ return e2.timestampIsSet ? t2 : Qt(t2, (function(t3, e3) {
1908
1905
  const n2 = (function(t4) {
1909
1906
  return "function" == typeof t4 && t4.prototype?.constructor === t4;
1910
- })(e3) ? new e3(0) : Zt(e3, 0);
1907
+ })(e3) ? new e3(0) : Qt(e3, 0);
1911
1908
  return n2.setFullYear(t3.getFullYear(), t3.getMonth(), t3.getDate()), n2.setHours(t3.getHours(), t3.getMinutes(), t3.getSeconds(), t3.getMilliseconds()), n2;
1912
1909
  })(t2, this.context));
1913
1910
  }
@@ -1976,7 +1973,7 @@ function Se(t2, e2, n2) {
1976
1973
  const r2 = te(), o2 = n2?.weekStartsOn ?? n2?.locale?.options?.weekStartsOn ?? r2.weekStartsOn ?? r2.locale?.options?.weekStartsOn ?? 0, s2 = ee(t2, n2?.in), i2 = s2.getDay(), a2 = 7 - o2;
1977
1974
  return (function(t3, e3, n3) {
1978
1975
  const r3 = ee(t3, n3?.in);
1979
- return isNaN(e3) ? Zt(n3?.in || t3, NaN) : e3 ? (r3.setDate(r3.getDate() + e3), r3) : r3;
1976
+ return isNaN(e3) ? Qt(n3?.in || t3, NaN) : e3 ? (r3.setDate(r3.getDate() + e3), r3) : r3;
1980
1977
  })(s2, e2 < 0 || e2 > 6 ? e2 - (i2 + a2) % 7 : ((e2 % 7 + 7) % 7 + a2) % 7 - (i2 + a2) % 7, n2);
1981
1978
  }
1982
1979
  const we = { y: new class extends se {
@@ -2064,7 +2061,7 @@ const we = { y: new class extends se {
2064
2061
  }
2065
2062
  }() }, ye = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ee = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ce = /^'([^]*?)'?$/, be = /''/g, ve = /\S/, xe = /[a-zA-Z]/;
2066
2063
  function Ie(t2, e2, n2, r2) {
2067
- const o2 = () => Zt(r2?.in || n2, NaN), s2 = Object.assign({}, te()), i2 = r2?.locale ?? s2.locale ?? Vt, 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;
2064
+ const o2 = () => Qt(r2?.in || n2, NaN), s2 = Object.assign({}, te()), i2 = r2?.locale ?? s2.locale ?? Vt, 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;
2068
2065
  if (!e2) return t2 ? o2() : ee(n2, r2?.in);
2069
2066
  const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new oe(r2?.in, n2)], d2 = e2.match(Ee).map((t3) => {
2070
2067
  const e3 = t3[0];
@@ -2074,7 +2071,7 @@ function Ie(t2, e2, n2, r2) {
2074
2071
  return t3;
2075
2072
  }).join("").match(ye), u2 = [];
2076
2073
  for (let n3 of d2) {
2077
- !r2?.useAdditionalWeekYearTokens && Kt(n3) && Xt(n3, e2, t2), !r2?.useAdditionalDayOfYearTokens && Jt(n3) && Xt(n3, e2, t2);
2074
+ !r2?.useAdditionalWeekYearTokens && Kt(n3) && Xt(n3, e2, t2), !r2?.useAdditionalDayOfYearTokens && qt(n3) && Xt(n3, e2, t2);
2078
2075
  const s3 = n3[0], a3 = we[s3];
2079
2076
  if (a3) {
2080
2077
  const { incompatibleTokens: e3 } = a3;
@@ -2138,7 +2135,7 @@ function Oe(t2, e2) {
2138
2135
  return n2.length >= e2 ? n2 : n2 + Te(" ", e2 - n2.length);
2139
2136
  }
2140
2137
  var De = Math.pow(2, 32);
2141
- function Be(t2, e2) {
2138
+ function Le(t2, e2) {
2142
2139
  return t2 > De || t2 < -De ? (function(t3, e3) {
2143
2140
  var n2 = "" + Math.round(t3);
2144
2141
  return n2.length >= e3 ? n2 : Te("0", e3 - n2.length) + n2;
@@ -2147,7 +2144,7 @@ function Be(t2, e2) {
2147
2144
  return n2.length >= e3 ? n2 : Te("0", e3 - n2.length) + n2;
2148
2145
  })(Math.round(t2), e2);
2149
2146
  }
2150
- function Le(t2, e2) {
2147
+ function Be(t2, e2) {
2151
2148
  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));
2152
2149
  }
2153
2150
  var Pe = [["Sun", "Sunday"], ["Mon", "Monday"], ["Tue", "Tuesday"], ["Wed", "Wednesday"], ["Thu", "Thursday"], ["Fri", "Friday"], ["Sat", "Saturday"]], ze = [["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"]], He = { 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"秒 "' }, Ve = { 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 }, We = { 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\\);_("$"* "-"??_);_(@_)' };
@@ -2174,10 +2171,10 @@ function je(t2, e2, n2) {
2174
2171
  }
2175
2172
  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;
2176
2173
  }
2177
- var Ge = new Date(1899, 11, 31, 0, 0, 0), Ue = Ge.getTime(), qe = new Date(1900, 2, 1, 0, 0, 0);
2178
- function Je(t2, e2 = false) {
2174
+ var Ge = new Date(1899, 11, 31, 0, 0, 0), Ue = Ge.getTime(), Je = new Date(1900, 2, 1, 0, 0, 0);
2175
+ function qe(t2, e2 = false) {
2179
2176
  var n2 = t2.getTime();
2180
- return e2 ? n2 -= 1262304e5 : t2 >= qe && (n2 += 864e5), (n2 - (Ue + 6e4 * (t2.getTimezoneOffset() - Ge.getTimezoneOffset()))) / 864e5;
2177
+ return e2 ? n2 -= 1262304e5 : t2 >= Je && (n2 += 864e5), (n2 - (Ue + 6e4 * (t2.getTimezoneOffset() - Ge.getTimezoneOffset()))) / 864e5;
2181
2178
  }
2182
2179
  function Ke(t2) {
2183
2180
  return -1 === t2.indexOf(".") ? t2 : t2.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
@@ -2206,11 +2203,11 @@ function Ye(t2, e2) {
2206
2203
  return "";
2207
2204
  case "object":
2208
2205
  if (null == t2) return "";
2209
- if (Ae(t2)) return yn(14, Je(t2, e2 && e2.date1904), e2);
2206
+ if (Ae(t2)) return yn(14, qe(t2, e2 && e2.date1904), e2);
2210
2207
  }
2211
2208
  throw new Error("unsupported value in General format: " + t2);
2212
2209
  }
2213
- function Ze(t2, e2, n2, r2) {
2210
+ function Qe(t2, e2, n2, r2) {
2214
2211
  var o2, s2 = "", i2 = 0, a2 = 0, l2 = n2.y, c2 = 0;
2215
2212
  switch (t2) {
2216
2213
  case 98:
@@ -2308,7 +2305,7 @@ function Ze(t2, e2, n2, r2) {
2308
2305
  }
2309
2306
  return c2 > 0 ? Fe(o2, c2) : "";
2310
2307
  }
2311
- function Qe(t2) {
2308
+ function Ze(t2) {
2312
2309
  if (t2.length <= 3) return t2;
2313
2310
  for (var e2 = t2.length % 3, n2 = t2.substr(0, e2); e2 !== t2.length; e2 += 3) n2 += (n2.length > 0 ? "," : "") + t2.substr(e2, 3);
2314
2311
  return n2;
@@ -2384,21 +2381,21 @@ function dn(t2, e2, n2) {
2384
2381
  if (-1 !== e2.indexOf("E")) return en(e2, n2);
2385
2382
  if (36 === e2.charCodeAt(0)) return "$" + dn(t2, e2.substr(" " === e2.charAt(1) ? 2 : 1), n2);
2386
2383
  var o2, s2, i2, a2, l2 = Math.abs(n2), c2 = n2 < 0 ? "-" : "";
2387
- if (e2.match(/^00+$/)) return c2 + Be(l2, e2.length);
2388
- if (e2.match(/^[#?]+$/)) return "0" === (o2 = Be(n2, 0)) && (o2 = ""), o2.length > e2.length ? o2 : an(e2.substr(0, e2.length - o2.length)) + o2;
2384
+ if (e2.match(/^00+$/)) return c2 + Le(l2, e2.length);
2385
+ if (e2.match(/^[#?]+$/)) return "0" === (o2 = Le(n2, 0)) && (o2 = ""), o2.length > e2.length ? o2 : an(e2.substr(0, e2.length - o2.length)) + o2;
2389
2386
  if (s2 = e2.match(nn)) return (function(t3, e3, n3) {
2390
2387
  var r3 = parseInt(t3[4], 10), o3 = Math.round(e3 * r3), s3 = Math.floor(o3 / r3), i3 = o3 - s3 * r3, a3 = r3;
2391
2388
  return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Te(" ", t3[1].length + 1 + t3[4].length) : ke(i3, t3[1].length) + t3[2] + "/" + t3[3] + Fe(a3, t3[4].length));
2392
2389
  })(s2, l2, c2);
2393
- if (e2.match(/^#+0+$/)) return c2 + Be(l2, e2.length - e2.indexOf("0"));
2390
+ if (e2.match(/^#+0+$/)) return c2 + Le(l2, e2.length - e2.indexOf("0"));
2394
2391
  if (s2 = e2.match(rn)) return i2 = Math.trunc(ln(n2, s2[2].length)), a2 = cn(Math.abs(i2 - n2), s2[2].length), a2 = (a2 = "" + cn(a2, (function(t3) {
2395
2392
  if (!isFinite(t3)) return 0;
2396
2393
  for (var e3 = 1, n3 = 0; Math.round(t3 * e3) / e3 !== t3; ) e3 *= 10, n3++;
2397
2394
  return n3;
2398
2395
  })(a2))).replace(/^0\./, ""), o2 = Me("" + Math.abs(i2), s2[1]) + "." + Me("" + a2, s2[2], true), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
2399
2396
  if (s2 = (e2 = e2.replace(/^#+([0.])/, "$1")).match(/^(0*)\.(#*)$/)) return c2 + ln(l2, s2[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s2[1].length ? "0." : ".");
2400
- if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe(Be(l2, 0));
2401
- if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + dn(t2, e2, -n2) : Qe("" + (Math.floor(n2) + (function(t3, e3) {
2397
+ if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Ze(Le(l2, 0));
2398
+ if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + dn(t2, e2, -n2) : Ze("" + (Math.floor(n2) + (function(t3, e3) {
2402
2399
  return e3 < ("" + Math.round((t3 - Math.floor(t3)) * Math.pow(10, e3))).length ? 1 : 0;
2403
2400
  })(n2, s2[1].length))) + "." + Fe(hn(n2, s2[1].length), s2[1].length);
2404
2401
  if (s2 = e2.match(/^#,#*,#0/)) return dn(t2, e2.replace(/^#,#*,/, ""), n2);
@@ -2409,13 +2406,13 @@ function dn(t2, e2, n2) {
2409
2406
  var h2 = "";
2410
2407
  if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = $e(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = mn("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = Oe(a2[2], i2)).length < s2[4].length && (h2 = an(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
2411
2408
  if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = $e(l2, Math.pow(10, i2) - 1, true), c2 + dn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ? ke(a2[1], i2) + s2[2] + "/" + s2[3] + Oe(a2[2], i2) : Te(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
2412
- if (s2 = e2.match(/^[#0?]+$/)) return o2 = Be(n2, 0), e2.length <= o2.length ? o2 : an(e2.substr(0, e2.length - o2.length)) + o2;
2409
+ if (s2 = e2.match(/^[#0?]+$/)) return o2 = Le(n2, 0), e2.length <= o2.length ? o2 : an(e2.substr(0, e2.length - o2.length)) + o2;
2413
2410
  if (s2 = e2.match(/^([#0?]+)\.([#0]+)$/)) {
2414
2411
  o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
2415
2412
  var d2 = e2.indexOf(".") - i2, u2 = e2.length - o2.length - d2;
2416
2413
  return an(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
2417
2414
  }
2418
- if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = hn(n2, s2[1].length), n2 < 0 ? "-" + dn(t2, e2, -n2) : Qe((function(t3) {
2415
+ if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = hn(n2, s2[1].length), n2 < 0 ? "-" + dn(t2, e2, -n2) : Ze((function(t3) {
2419
2416
  return t3 < 2147483647 && t3 > -2147483648 ? "" + (t3 >= 0 ? 0 | t3 : t3 - 1 | 0) : "" + Math.floor(t3);
2420
2417
  })(n2)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
2421
2418
  return "00," + (t3.length < 3 ? Fe(0, 3 - t3.length) : "") + t3;
@@ -2426,7 +2423,7 @@ function dn(t2, e2, n2) {
2426
2423
  case "###,###":
2427
2424
  case "##,###":
2428
2425
  case "#,###":
2429
- var g2 = Qe(Be(l2, 0));
2426
+ var g2 = Ze(Le(l2, 0));
2430
2427
  return "0" !== g2 ? c2 + g2 : "";
2431
2428
  case "###,###.00":
2432
2429
  return dn(t2, "###,##0.00", n2).replace(/^0\./, ".");
@@ -2479,8 +2476,8 @@ function gn(t2, e2, n2) {
2479
2476
  return "." + e3 + Te("0", an(s2[2]).length - e3.length);
2480
2477
  }), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
2481
2478
  if (e2 = e2.replace(/^#+([0.])/, "$1"), s2 = e2.match(/^(0*)\.(#*)$/)) return c2 + ("" + l2).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s2[1].length ? "0." : ".");
2482
- if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Qe("" + l2);
2483
- if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + gn(t2, e2, -n2) : Qe("" + n2) + "." + Te("0", s2[1].length);
2479
+ if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Ze("" + l2);
2480
+ if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + gn(t2, e2, -n2) : Ze("" + n2) + "." + Te("0", s2[1].length);
2484
2481
  if (s2 = e2.match(/^#,#*,#0/)) return gn(t2, e2.replace(/^#,#*,/, ""), n2);
2485
2482
  if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Ne(gn(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Ne(Ne(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
2486
2483
  return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
@@ -2495,14 +2492,14 @@ function gn(t2, e2, n2) {
2495
2492
  var d2 = e2.indexOf(".") - i2, u2 = e2.length - o2.length - d2;
2496
2493
  return an(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
2497
2494
  }
2498
- if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return n2 < 0 ? "-" + gn(t2, e2, -n2) : Qe("" + n2).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
2495
+ if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return n2 < 0 ? "-" + gn(t2, e2, -n2) : Ze("" + n2).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
2499
2496
  return "00," + (t3.length < 3 ? Fe(0, 3 - t3.length) : "") + t3;
2500
2497
  }) + "." + Fe(0, s2[1].length);
2501
2498
  switch (e2) {
2502
2499
  case "###,###":
2503
2500
  case "##,###":
2504
2501
  case "#,###":
2505
- var g2 = Qe("" + l2);
2502
+ var g2 = Ze("" + l2);
2506
2503
  return "0" !== g2 ? c2 + g2 : "";
2507
2504
  default:
2508
2505
  if (e2.match(/\.[0#?]*$/)) return gn(t2, e2.slice(0, e2.lastIndexOf(".")), n2) + an(e2.slice(e2.lastIndexOf(".")));
@@ -2534,7 +2531,7 @@ var pn = /\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;
2534
2531
  function _n(t2) {
2535
2532
  for (var e2 = 0, n2 = "", r2 = "", o2 = t2.length; e2 < o2; ) switch (n2 = t2.charAt(e2)) {
2536
2533
  case "G":
2537
- Le(t2, e2) && (e2 += 6), e2++;
2534
+ Be(t2, e2) && (e2 += 6), e2++;
2538
2535
  break;
2539
2536
  case '"':
2540
2537
  for (; 34 !== t2.charCodeAt(++e2) && e2 < t2.length; ) ;
@@ -2642,8 +2639,8 @@ function yn(t2, e2, n2) {
2642
2639
  case "number":
2643
2640
  null == (r2 = 14 === t2 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : He)[t2]) && (r2 = n2.table && n2.table[Ve[t2]] || He[Ve[t2]]), null == r2 && (r2 = We[t2] || "General");
2644
2641
  }
2645
- if (Le(r2, 0)) return Ye(e2, n2);
2646
- Ae(e2) && (e2 = Je(e2, n2.date1904));
2642
+ if (Be(r2, 0)) return Ye(e2, n2);
2643
+ Ae(e2) && (e2 = qe(e2, n2.date1904));
2647
2644
  var s2 = (function(t3, e3) {
2648
2645
  var n3 = fn(t3), r3 = n3.length, o2 = n3[r3 - 1].indexOf("@");
2649
2646
  if (-1 !== o2 && "\\" === n3[r3 - 1][o2 - 1] && (o2 = -1), r3 < 4 && o2 > -1 && --r3, n3.length > 4) throw new Error("We can't find right format for |" + n3.join("|") + "|");
@@ -2666,7 +2663,7 @@ function yn(t2, e2, n2) {
2666
2663
  }
2667
2664
  return [r3, s3];
2668
2665
  })(r2, e2);
2669
- if (Le(s2[1])) return Ye(e2, n2);
2666
+ if (Be(s2[1])) return Ye(e2, n2);
2670
2667
  if (true === e2) e2 = "TRUE";
2671
2668
  else if (false === e2) e2 = "FALSE";
2672
2669
  else if ("" === e2 || null == e2) return "";
@@ -2675,7 +2672,7 @@ function yn(t2, e2, n2) {
2675
2672
  let g2 = t3.length;
2676
2673
  for (; c2 < g2; ) switch (h2 = t3.charAt(c2)) {
2677
2674
  case "G":
2678
- if (!Le(t3, c2)) throw new Error("unrecognized character " + h2 + " in " + t3);
2675
+ if (!Be(t3, c2)) throw new Error("unrecognized character " + h2 + " in " + t3);
2679
2676
  a2[a2.length] = { t: "G", v: "General" }, c2 += 7;
2680
2677
  break;
2681
2678
  case '"':
@@ -2830,7 +2827,7 @@ function yn(t2, e2, n2) {
2830
2827
  case "e":
2831
2828
  case "b":
2832
2829
  case "Z":
2833
- a2[c2].v = Ze(a2[c2].t.charCodeAt(0), a2[c2].v, o2, w2), a2[c2].t = "t";
2830
+ a2[c2].v = Qe(a2[c2].t.charCodeAt(0), a2[c2].v, o2, w2), a2[c2].t = "t";
2834
2831
  break;
2835
2832
  case "n":
2836
2833
  case "?":
@@ -2887,7 +2884,7 @@ function En(t2, e2) {
2887
2884
  }
2888
2885
  return He[e2] = t2, e2;
2889
2886
  }
2890
- const Cn = { format: yn, dateNumLocal: Je, load: En, split_fmt: fn, _table: He, load_table: function(t2) {
2887
+ const Cn = { format: yn, dateNumLocal: qe, load: En, split_fmt: fn, _table: He, load_table: function(t2) {
2891
2888
  for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && En(t2[e2], e2);
2892
2889
  }, parse_date_code: je, is_date: _n, get_table: function() {
2893
2890
  return Cn._table = He;
@@ -2899,11 +2896,11 @@ const Cn = { format: yn, dateNumLocal: Je, load: En, split_fmt: fn, _table: He,
2899
2896
  const n2 = [...t2];
2900
2897
  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);
2901
2898
  return n2;
2902
- }, Bn = (t2, e2 = true) => {
2899
+ }, Ln = (t2, e2 = true) => {
2903
2900
  const n2 = [...t2], r2 = e2 ? 1 : 255;
2904
2901
  for (var o2 = 0; o2 < t2.length; o2++) n2[o2] = Math.max(0, Math.min(r2, t2[o2]));
2905
2902
  return n2;
2906
- }, Ln = (t2) => Math.max(0, Math.min(1, t2)), Pn = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), zn = (t2) => {
2903
+ }, Bn = (t2) => Math.max(0, Math.min(1, t2)), Pn = (t2) => ((t2 %= 360) < 0 && (t2 -= 360), t2), zn = (t2) => {
2907
2904
  const e2 = [...t2];
2908
2905
  for (var n2 = 0; n2 < t2.length; n2++) e2[n2] = Vn(t2[n2]);
2909
2906
  return e2;
@@ -2922,30 +2919,30 @@ const Cn = { format: yn, dateNumLocal: Je, load: En, split_fmt: fn, _table: He,
2922
2919
  const a2 = (s2 + o2) / 2;
2923
2920
  let l2 = 0;
2924
2921
  return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
2925
- }, Un = 0, qn = 1, Jn = 2, Kn = 0, Xn = 1, Yn = 2, Zn = 0, Qn = 1, tr = 2, er = (t2, e2) => {
2922
+ }, Un = 0, Jn = 1, qn = 2, Kn = 0, Xn = 1, Yn = 2, Qn = 0, Zn = 1, tr = 2, er = (t2, e2) => {
2926
2923
  let n2 = e2 / 100;
2927
2924
  return ((t3, e3) => {
2928
2925
  let n3 = zn(t3);
2929
2926
  n3[0] = e3(n3[0], n3), n3[1] = e3(n3[1], n3), n3[2] = e3(n3[2], n3);
2930
2927
  let r2 = Hn(n3);
2931
- return r2 = Bn(r2), r2;
2928
+ return r2 = Ln(r2), r2;
2932
2929
  })(t2, (t3, e3) => t3 * n2);
2933
2930
  }, nr = 2.55, rr = (t2, e2) => {
2934
2931
  const n2 = Gn(t2), r2 = n2[2], s2 = o.roundAccurately((i2 = r2, (a2 = e2) > 0 ? (i2 * nr * (1 - a2) + (255 - 255 * (1 - a2))) / nr : a2 < 0 ? i2 * nr * (1 + a2) / nr : i2), 3);
2935
2932
  var i2, a2;
2936
2933
  n2[2] = s2;
2937
2934
  let l2 = $n(n2);
2938
- return l2 = Bn(l2), l2;
2935
+ return l2 = Ln(l2), l2;
2939
2936
  }, or = (t2, e2) => {
2940
2937
  let n2 = zn(t2), r2 = e2 / 100;
2941
2938
  for (var o2 = 0; o2 < 3; o2++) n2[o2] = n2[o2] * r2 + (1 - r2);
2942
2939
  let s2 = Hn(n2);
2943
- return s2 = Bn(s2), s2;
2940
+ return s2 = Ln(s2), s2;
2944
2941
  }, sr = (t2, e2, n2) => {
2945
2942
  let r2 = Gn(e2), o2 = n2 / 1;
2946
2943
  t2 === Un && (o2 = Pn(n2)), r2[t2] = o2;
2947
2944
  let s2 = $n(r2);
2948
- return s2 = Bn(s2), s2;
2945
+ return s2 = Ln(s2), s2;
2949
2946
  }, ir = (t2, e2, n2) => {
2950
2947
  let r2 = Gn(e2);
2951
2948
  if (t2 === Un) {
@@ -2956,39 +2953,39 @@ const Cn = { format: yn, dateNumLocal: Je, load: En, split_fmt: fn, _table: He,
2956
2953
  r2[t2] = 0.1 * (r2[t2] / 0.1 + e3);
2957
2954
  }
2958
2955
  let o2 = $n(r2);
2959
- return o2 = Bn(o2), o2;
2956
+ return o2 = Ln(o2), o2;
2960
2957
  }, ar = (t2, e2, n2) => {
2961
2958
  let r2 = Gn(e2), o2 = n2 / 100;
2962
2959
  r2[t2] = r2[t2] * o2, t2 === Un && (r2[Un] = Pn(r2[Un]));
2963
2960
  let s2 = $n(r2);
2964
- return s2 = Bn(s2), s2;
2961
+ return s2 = Ln(s2), s2;
2965
2962
  }, lr = (t2, e2, n2, r2) => {
2966
2963
  let o2 = zn(e2), s2 = n2 / 100;
2967
- r2 === Zn ? o2[t2] = s2 : r2 === Qn ? o2[t2] += s2 : r2 === tr && (o2[t2] *= s2);
2964
+ r2 === Qn ? o2[t2] = s2 : r2 === Zn ? o2[t2] += s2 : r2 === tr && (o2[t2] *= s2);
2968
2965
  let i2 = Hn(o2);
2969
- return i2 = Bn(i2), i2;
2966
+ return i2 = Ln(i2), i2;
2970
2967
  }, cr = (t2) => {
2971
2968
  let e2 = zn(t2), n2 = 0.213 * e2[Kn] + 0.715 * e2[Xn] + 0.072 * e2[Yn];
2972
2969
  e2[0] = n2, e2[1] = n2, e2[2] = n2;
2973
2970
  let r2 = Hn(e2);
2974
- return r2 = Bn(r2), r2;
2971
+ return r2 = Ln(r2), r2;
2975
2972
  }, hr = (t2) => {
2976
2973
  let e2 = Gn(t2);
2977
2974
  e2[Un] += 180, e2[Un] %= 360, e2[Un] < 0 && (e2[Un] -= 360);
2978
2975
  let n2 = $n(e2);
2979
- return n2 = Bn(n2), n2;
2976
+ return n2 = Ln(n2), n2;
2980
2977
  }, dr = (t2, e2 = true) => {
2981
2978
  let n2 = e2 ? zn(t2) : [...t2];
2982
2979
  const r2 = e2 ? 1 : 255;
2983
- return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 = Hn(n2)), n2 = Bn(n2, e2), n2;
2980
+ return n2[0] = r2 - n2[0], n2[1] = r2 - n2[1], n2[2] = r2 - n2[2], e2 && (n2 = Hn(n2)), n2 = Ln(n2, e2), n2;
2984
2981
  }, ur = (t2) => {
2985
2982
  const e2 = [0, 0, 0];
2986
2983
  e2[0] = Wn(t2[0]), e2[1] = Wn(t2[1]), e2[2] = Wn(t2[2]);
2987
- return Bn(e2);
2984
+ return Ln(e2);
2988
2985
  }, gr = (t2) => {
2989
2986
  const e2 = [0, 0, 0];
2990
2987
  e2[0] = Vn(t2[0]), e2[1] = Vn(t2[1]), e2[2] = Vn(t2[2]);
2991
- return Bn(e2);
2988
+ return Ln(e2);
2992
2989
  }, mr = (t2, e2, n2, r2 = null) => {
2993
2990
  const o2 = (t3) => {
2994
2991
  let e3 = t3.toString(16);
@@ -3125,8 +3122,8 @@ const Rr = () => Ir || (Ir = Intl.DateTimeFormat().resolvedOptions().locale ?? "
3125
3122
  void 0 !== n2 && (e2 = vr(n2).toString());
3126
3123
  }
3127
3124
  return e2;
3128
- }, Br = "=", Lr = "<>", Pr = ">", zr = "<", Hr = ">=", Vr = "<=", Wr = /* @__PURE__ */ new Map();
3129
- Wr.set(Br, (t2, e2) => t2 === e2), Wr.set(Lr, (t2, e2) => t2 !== e2), Wr.set(Pr, (t2, e2) => t2 > e2), Wr.set(zr, (t2, e2) => t2 < e2), Wr.set(Hr, (t2, e2) => t2 >= e2), Wr.set(Vr, (t2, e2) => t2 <= e2);
3125
+ }, Lr = "=", Br = "<>", Pr = ">", zr = "<", Hr = ">=", Vr = "<=", Wr = /* @__PURE__ */ new Map();
3126
+ Wr.set(Lr, (t2, e2) => t2 === e2), Wr.set(Br, (t2, e2) => t2 !== e2), Wr.set(Pr, (t2, e2) => t2 > e2), Wr.set(zr, (t2, e2) => t2 < e2), Wr.set(Hr, (t2, e2) => t2 >= e2), Wr.set(Vr, (t2, e2) => t2 <= e2);
3130
3127
  const $r = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, jr = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, Gr = /\[(.*?)\]/g, Ur = (t2, e2) => {
3131
3128
  const n2 = { color: null, condition: null };
3132
3129
  let r2 = null, o2 = new RegExp(Gr);
@@ -3144,13 +3141,13 @@ const $r = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, jr =
3144
3141
  if (!e3) return n2;
3145
3142
  }
3146
3143
  return n2.condition || (n2.condition = e2), n2;
3147
- }, qr = Object.freeze({ op: Hr, comp: 0 }), Jr = Object.freeze({ op: zr, comp: 0 }), Kr = Object.freeze({ op: Pr, comp: 0 }), Xr = Object.freeze({ op: Br, comp: 0 }), Yr = (t2, e2) => {
3144
+ }, Jr = Object.freeze({ op: Hr, comp: 0 }), qr = Object.freeze({ op: zr, comp: 0 }), Kr = Object.freeze({ op: Pr, comp: 0 }), Xr = Object.freeze({ op: Lr, comp: 0 }), Yr = (t2, e2) => {
3148
3145
  let n2 = ((t3) => {
3149
3146
  if (!t3) return o.EmptyArray;
3150
3147
  const e3 = [], n3 = t3.split(";"), r3 = n3.length;
3151
3148
  for (let t4 = 0; t4 < r3; t4++) {
3152
3149
  let o2 = null;
3153
- 2 === r3 ? 0 === t4 ? o2 = qr : 1 === t4 && (o2 = Jr) : 3 !== r3 && 4 !== r3 || (o2 = 0 === t4 ? Kr : 1 === t4 ? Jr : 2 === t4 ? Xr : null);
3150
+ 2 === r3 ? 0 === t4 ? o2 = Jr : 1 === t4 && (o2 = qr) : 3 !== r3 && 4 !== r3 || (o2 = 0 === t4 ? Kr : 1 === t4 ? qr : 2 === t4 ? Xr : null);
3154
3151
  const s3 = n3[t4], i2 = Ur(s3, o2);
3155
3152
  e3.push({ format: s3, colorAndCondition: i2 });
3156
3153
  }
@@ -3168,9 +3165,9 @@ const $r = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, jr =
3168
3165
  if (Wr.get(r3.op)(e2, r3.comp)) return s2?.color ?? null;
3169
3166
  }
3170
3167
  }
3171
- }, Zr = (t2) => {
3168
+ }, Qr = (t2) => {
3172
3169
  if (t2 === xr.MediumDate || t2 === xr.LongDate || t2 === xr.ShortDate || t2 === xr.MediumTime || t2 === xr.LongTime || t2 === xr.ShortTime) return true;
3173
- }, Qr = (t2, e2) => t2 === e2 ? 0 : Zr(t2) ? 1 : Zr(e2) ? -1 : t2 === xr.Percentage ? 1 : e2 === xr.Percentage ? -1 : t2 === xr.Currency || t2 === xr.Accounting ? 1 : e2 === xr.Currency || e2 === xr.Accounting ? -1 : 0, to = (t2) => (t2 instanceof Date || "[object Date]" === Object.prototype.toString.call(t2)) && !isNaN(t2.getTime()), eo = (t2, e2, n2) => {
3170
+ }, Zr = (t2, e2) => t2 === e2 ? 0 : Qr(t2) ? 1 : Qr(e2) ? -1 : t2 === xr.Percentage ? 1 : e2 === xr.Percentage ? -1 : t2 === xr.Currency || t2 === xr.Accounting ? 1 : e2 === xr.Currency || e2 === xr.Accounting ? -1 : 0, to = (t2) => (t2 instanceof Date || "[object Date]" === Object.prototype.toString.call(t2)) && !isNaN(t2.getTime()), eo = (t2, e2, n2) => {
3174
3171
  return "month" === n2 || "months" === n2 || "m" === n2 ? (r2 = t2, 12 * ((o2 = e2).getUTCFullYear() - r2.getUTCFullYear()) + (o2.getUTCMonth() - r2.getUTCMonth()) + (o2.getUTCDate() - r2.getUTCDate() < 0 ? -1 : 0)) : "year" === n2 || "years" === n2 || "y" === n2 ? ((t3, e3) => Math.abs(e3.getFullYear() - t3.getFullYear()))(t2, e2) : "day" === n2 || "days" === n2 || "d" === n2 ? ((t3, e3) => Math.floor((Date.UTC(e3.getFullYear(), e3.getMonth(), e3.getDate()) - Date.UTC(t3.getFullYear(), t3.getMonth(), t3.getDate())) / 864e5))(t2, e2) : void console.warn("invalid unit" + n2);
3175
3172
  var r2, o2;
3176
3173
  }, no = "d", ro = "m", oo = "y", so = (t2, e2, n2) => {
@@ -3352,8 +3349,8 @@ const Ro = (t2, e2, n2 = 1e3) => {
3352
3349
  if (void 0 === t2) return 0;
3353
3350
  let e2 = t2.toString().split(".");
3354
3351
  return e2.length <= 1 ? 0 : e2[1].length || 0;
3355
- }, ko = new RegExp(/^["|'|`](.*)["|'|`]$/), Oo = 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"), Do = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), Bo = Do(), Lo = (t2) => t2 && t2.length > 1 && ko.test(t2) && t2[0] === t2[t2.length - 1], Po = (t2) => t2.replace(ko, "$1"), zo = (t2, e2 = "'") => `${e2}${t2}${e2}`, Ho = (t2, e2 = void 0, n2 = void 0) => {
3356
- let r2 = Bo;
3352
+ }, ko = new RegExp(/^["|'|`](.*)["|'|`]$/), Oo = 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"), Do = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), Lo = Do(), Bo = (t2) => t2 && t2.length > 1 && ko.test(t2) && t2[0] === t2[t2.length - 1], Po = (t2) => t2.replace(ko, "$1"), zo = (t2, e2 = "'") => `${e2}${t2}${e2}`, Ho = (t2, e2 = void 0, n2 = void 0) => {
3353
+ let r2 = Lo;
3357
3354
  return void 0 === e2 && void 0 === n2 || (r2 = Do(e2, n2)), t2.split(r2);
3358
3355
  }, Vo = (t2) => {
3359
3356
  let e2;
@@ -3363,30 +3360,30 @@ const Ro = (t2, e2, n2 = 1e3) => {
3363
3360
  return false;
3364
3361
  }
3365
3362
  return ("http:" === e2.protocol || "https:" === e2.protocol) && Oo.test(t2);
3366
- }, Wo = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), $o = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Wo.test(t2), jo = (t2) => ((t2 >= 26 ? jo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Go = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: Bo, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: Ao, clampString: No, countDecimals: Fo, findValidTextValue: Ro, getBaseName: (t2, e2 = false) => {
3363
+ }, Wo = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), $o = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Wo.test(t2), jo = (t2) => ((t2 >= 26 ? jo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Go = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: Lo, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: Ao, clampString: No, countDecimals: Fo, findValidTextValue: Ro, getBaseName: (t2, e2 = false) => {
3367
3364
  if (!t2 || "string" != typeof t2) return "";
3368
3365
  const n2 = t2.split(/[\\/]/).pop() || "";
3369
3366
  if ("" === n2) return "";
3370
3367
  const r2 = Mo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
3371
3368
  return e2 ? Ao(o2, true) : o2;
3372
- }, getFileNameExtension: Mo, isQuoted: Lo, isValidEmail: $o, isValidHttpUrl: Vo, numberToAlphabet: jo, quote: zo, snakeToCamel: To, splitUnquoted: Ho, unquote: Po }, Symbol.toStringTag, { value: "Module" })), Uo = (t2, e2, n2, r2 = null) => {
3369
+ }, getFileNameExtension: Mo, isQuoted: Bo, isValidEmail: $o, isValidHttpUrl: Vo, numberToAlphabet: jo, quote: zo, snakeToCamel: To, splitUnquoted: Ho, unquote: Po }, Symbol.toStringTag, { value: "Module" })), Uo = (t2, e2, n2, r2 = null) => {
3373
3370
  const o2 = (e2 || 11 * es.getDeviceScale()) / es.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
3374
3371
  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));
3375
3372
  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 };
3376
- }, qo = () => Uo;
3377
- let Jo = "./packages/sdk/src/__tests__/fonts/";
3373
+ }, Jo = () => Uo;
3374
+ let qo = "./packages/sdk/src/__tests__/fonts/";
3378
3375
  const Ko = /* @__PURE__ */ new Map(), Xo = /* @__PURE__ */ new Set(), Yo = (t2, e2, n2, r2 = null) => {
3379
- const o2 = e2, s2 = Jo + n2.toLowerCase() + ".ttf";
3376
+ const o2 = e2, s2 = qo + n2.toLowerCase() + ".ttf";
3380
3377
  let i2 = null;
3381
3378
  try {
3382
3379
  i2 = M(s2);
3383
3380
  } catch (t3) {
3384
3381
  }
3385
3382
  if (!i2) try {
3386
- i2 = M(Jo + "calibri.ttf");
3383
+ i2 = M(qo + "calibri.ttf");
3387
3384
  } catch (t3) {
3388
3385
  }
3389
- if (!i2) return Xo.has(s2) || Xo.add(s2), qo().call(null, t2, e2, n2, r2);
3386
+ if (!i2) return Xo.has(s2) || Xo.add(s2), Jo().call(null, t2, e2, n2, r2);
3390
3387
  const a2 = `${s2}${t2}${o2}`;
3391
3388
  let l2 = Ko.get(a2);
3392
3389
  l2 || (l2 = i2.layout(t2), t2.length < 2 && Ko.set(a2, l2));
@@ -3402,20 +3399,20 @@ const Ko = /* @__PURE__ */ new Map(), Xo = /* @__PURE__ */ new Set(), Yo = (t2,
3402
3399
  let _2 = i2.underlineThickness;
3403
3400
  return _2 = _2 / i2.unitsPerEm * c2, { width: h2, lineHeight: m2, baseline: f2, underlinePosition: p2, underlineThickness: _2, lineGap: 0, actualBoundingBoxAscent: 0, actualBoundingBoxDescent: 0, actualBoundingBoxLeft: 0, actualBoundingBoxRight: 0, alphabeticBaseline: 0, emHeightAscent: 0, emHeightDescent: 0, fontBoundingBoxAscent: 0, fontBoundingBoxDescent: 0, hangingBaseline: 0, ideographicBaseline: 0 };
3404
3401
  };
3405
- let Zo = null;
3406
- const Qo = () => 96 / 72;
3402
+ let Qo = null;
3403
+ const Zo = () => 96 / 72;
3407
3404
  let ts = null;
3408
3405
  var es, ns;
3409
3406
  (ns = es || (es = {})).Style = { Normal: "normal", Italic: "italic" }, ns.Scheme = { Major: "major", Minor: "minor", None: "none" }, ns.UnderlineStyle = { None: "none", Double: "double", DoubleAccounting: "doubleAccounting", Single: "single", SingleAccounting: "singleAccounting" }, ns.VerticalAlignment = { Baseline: "baseline", Sub: "sub", Super: "super" }, ns.setSharedMeasurer = (t2) => {
3410
3407
  ts = t2;
3411
3408
  }, ns.getSharedMeasurer = () => ts || (ts = (() => {
3412
- if (Zo) return Zo;
3409
+ if (Qo) return Qo;
3413
3410
  try {
3414
- Zo = Yo;
3411
+ Qo = Yo;
3415
3412
  } catch {
3416
3413
  }
3417
- return Zo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Zo = qo()), Zo;
3418
- })(), ts), ns.getDeviceScale = () => Qo(), ns.getPanoseFallback = (t2) => {
3414
+ return Qo || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Qo = Jo()), Qo;
3415
+ })(), ts), ns.getDeviceScale = () => Zo(), ns.getPanoseFallback = (t2) => {
3419
3416
  const e2 = [], n2 = t2.length;
3420
3417
  for (let r3 = 0; r3 < n2; r3 += 2) e2.push(parseInt(t2.substring(r3, r3 + 2), 16));
3421
3418
  const r2 = e2[0], o2 = e2[1], s2 = e2[3];
@@ -3939,7 +3936,7 @@ const Ds = (t2, e2 = false) => {
3939
3936
  s2 ? s2.max === e3 - 1 ? s2.max = e3 : (r2.push(s2), s2 = { min: e3, max: e3 }) : s2 = { min: e3, max: e3 };
3940
3937
  }
3941
3938
  return s2 && r2.push(s2), r2;
3942
- }, Bs = (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 }, Ls = (t2) => {
3939
+ }, Ls = (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 }, Bs = (t2) => {
3943
3940
  const e2 = 0 === t2.length;
3944
3941
  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 };
3945
3942
  }, Ps = (t2, e2) => {
@@ -4239,7 +4236,7 @@ var Vs, Ws, $s, js, Gs, Us;
4239
4236
  }
4240
4237
  d2 += s4;
4241
4238
  }
4242
- const f2 = Ls(a2);
4239
+ const f2 = Bs(a2);
4243
4240
  return (t4) => {
4244
4241
  const e4 = t4 >= 0, n4 = Math.abs(t4), o4 = Ps(n4 % r3, f2);
4245
4242
  if (!o4) return null;
@@ -4261,12 +4258,12 @@ var Vs, Ws, $s, js, Gs, Us;
4261
4258
  return o3;
4262
4259
  };
4263
4260
  })(Vs || (Vs = {})), Ws || (Ws = {}), (js = $s || ($s = {})).Type = { None: "none", Solid: "solid", Gradient: "gradient", Pattern: "pattern", Image: "pattern", Background: "background", Group: "group", Custom: "custom" }, js.GradientType = { Linear: "linear", Path: "path", Circular: "circular", Rect: "rect" }, js.TileMirror = { None: "none", Vertical: "v", Horizontal: "h", Both: "b" }, js.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" }, (Us = Gs || (Gs = {})).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" }, Us.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" }, Us.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" }, Us.Type = { Scheme: "scheme", Named: "named", Index: "index", HSL: "hsl", RGB: "rgb", LRGB: "lrgb", Hex: "hex" };
4264
- const qs = [[4290032820, 1, Gs.Named.ActiveBorder, true], [4288263377, 2, Gs.Named.ActiveCaption, true], [4278190080, 3, Gs.Named.CaptionText, true], [4289440683, 4, Gs.Named.AppWorkspace, true], [4293980400, 5, Gs.Named.BtnFace, true], [4285098345, 6, Gs.Named.BtnShadow, true], [4278190080, 7, Gs.Named.DkShadow3d, true], [4293125091, 8, Gs.Named.BtnHighlight, true], [4293125091, 9, Gs.Named.Light3d, true], [4278190080, 10, Gs.Named.BtnText, true], [4278190080, 11, Gs.Named.Background, true], [4285361517, 12, Gs.Named.GrayText, true], [4281571839, 13, Gs.Named.Highlight, true], [4294967295, 14, Gs.Named.HighlightText, true], [4278216396, 15, Gs.Named.HotLight, true], [4294244348, 16, Gs.Named.InactiveBorder, true], [4290760155, 17, Gs.Named.InactiveCaption, true], [4278190080, 18, Gs.Named.InactiveCaptionText, true], [4294967265, 19, Gs.Named.InfoBk, true], [4278190080, 20, Gs.Named.InfoText, true], [4293980400, 21, Gs.Named.Menu, true], [4278190080, 22, Gs.Named.MenuText, true], [4291348680, 23, Gs.Named.ScrollBar, true], [4294967295, 24, Gs.Named.Window, true], [4284769380, 25, Gs.Named.WindowFrame, true], [4278190080, 26, Gs.Named.WindowText, true], [16777215, 27, Gs.Named.Transparent], [4293982463, 28, Gs.Named.AliceBlue], [4294634455, 29, Gs.Named.AntiqueWhite], [4278255615, 30, Gs.Named.Aqua], [4286578644, 31, Gs.Named.Aquamarine], [4293984255, 32, Gs.Named.Azure], [4294309340, 33, Gs.Named.Beige], [4294960324, 34, Gs.Named.Bisque], [4278190080, 35, Gs.Named.Black], [4294962125, 36, Gs.Named.BlanchedAlmond], [4278190335, 37, Gs.Named.Blue], [4287245282, 38, Gs.Named.BlueViolet], [4289014314, 39, Gs.Named.Brown], [4292786311, 40, Gs.Named.BurlyWood], [4284456608, 41, Gs.Named.CadetBlue], [4286578432, 42, Gs.Named.Chartreuse], [4291979550, 43, Gs.Named.Chocolate], [4294934352, 44, Gs.Named.Coral], [4284782061, 45, Gs.Named.CornflowerBlue], [4294965468, 46, Gs.Named.Cornsilk], [4292613180, 47, Gs.Named.Crimson], [4278255615, 48, Gs.Named.Cyan], [4278190219, 49, Gs.Named.DkBlue], [4278225803, 50, Gs.Named.DkCyan], [4290283019, 51, Gs.Named.DkGoldenrod], [4289309097, 52, Gs.Named.DkGray], [4278215680, 53, Gs.Named.DkGreen], [4290623339, 54, Gs.Named.DkKhaki], [4287299723, 55, Gs.Named.DkMagenta], [4283788079, 56, Gs.Named.DkOliveGreen], [4294937600, 57, Gs.Named.DkOrange], [4288230092, 58, Gs.Named.DkOrchid], [4287299584, 59, Gs.Named.DkRed], [4293498490, 60, Gs.Named.DkSalmon], [4287609995, 61, Gs.Named.DkSeaGreen], [4282924427, 62, Gs.Named.DkSlateBlue], [4281290575, 63, Gs.Named.DkSlateGray], [4278243025, 64, Gs.Named.DkTurquoise], [4287889619, 65, Gs.Named.DkViolet], [4294907027, 66, Gs.Named.DeepPink], [4278239231, 67, Gs.Named.DeepSkyBlue], [4285098345, 68, Gs.Named.DimGray], [4280193279, 69, Gs.Named.DodgerBlue], [4289864226, 70, Gs.Named.Firebrick], [4294966e3, 71, Gs.Named.FloralWhite], [4280453922, 72, Gs.Named.ForestGreen], [4294902015, 73, Gs.Named.Fuchsia], [4292664540, 74, Gs.Named.Gainsboro], [4294506751, 75, Gs.Named.GhostWhite], [4294956800, 76, Gs.Named.Gold], [4292519200, 77, Gs.Named.Goldenrod], [4286611584, 78, Gs.Named.Gray], [4278222848, 79, Gs.Named.Green], [4289593135, 80, Gs.Named.GreenYellow], [4293984240, 81, Gs.Named.Honeydew], [4294928820, 82, Gs.Named.HotPink], [4291648604, 83, Gs.Named.IndianRed], [4283105410, 84, Gs.Named.Indigo], [4294967280, 85, Gs.Named.Ivory], [4293977740, 86, Gs.Named.Khaki], [4293322490, 87, Gs.Named.Lavender], [4294963445, 88, Gs.Named.LavenderBlush], [4286381056, 89, Gs.Named.LawnGreen], [4294965965, 90, Gs.Named.LemonChiffon], [4289583334, 91, Gs.Named.LtBlue], [4293951616, 92, Gs.Named.LtCoral], [4292935679, 93, Gs.Named.LtCyan], [4294638200, 94, Gs.Named.LtGoldenrodYellow], [4292072403, 95, Gs.Named.LtGray], [4287688336, 96, Gs.Named.LtGreen], [4294948545, 97, Gs.Named.LtPink], [4294942842, 98, Gs.Named.LtSalmon], [4280332970, 99, Gs.Named.LtSeaGreen], [4287090426, 100, Gs.Named.LtSkyBlue], [4286023833, 101, Gs.Named.LtSlateGray], [4289774814, 102, Gs.Named.LtSteelBlue], [4294967264, 103, Gs.Named.LtYellow], [4278255360, 104, Gs.Named.Lime], [4281519410, 105, Gs.Named.LimeGreen], [4294635750, 106, Gs.Named.Linen], [4294902015, 107, Gs.Named.Magenta], [4286578688, 108, Gs.Named.Maroon], [4284927402, 109, Gs.Named.MedAquamarine], [4278190285, 110, Gs.Named.MedBlue], [4290401747, 111, Gs.Named.MedOrchid], [4287852763, 112, Gs.Named.MedPurple], [4282168177, 113, Gs.Named.MedSeaGreen], [4286277870, 114, Gs.Named.MedSlateBlue], [4278254234, 115, Gs.Named.MedSpringGreen], [4282962380, 116, Gs.Named.MedTurquoise], [4291237253, 117, Gs.Named.MedVioletRed], [4279834992, 118, Gs.Named.MidnightBlue], [4294311930, 119, Gs.Named.MintCream], [4294960353, 120, Gs.Named.MistyRose], [4294960309, 121, Gs.Named.Moccasin], [4294958765, 122, Gs.Named.NavajoWhite], [4278190208, 123, Gs.Named.Navy], [4294833638, 124, Gs.Named.OldLace], [4286611456, 125, Gs.Named.Olive], [4285238819, 126, Gs.Named.OliveDrab], [4294944e3, 127, Gs.Named.Orange], [4294919424, 128, Gs.Named.OrangeRed], [4292505814, 129, Gs.Named.Orchid], [4293847210, 130, Gs.Named.PaleGoldenrod], [4288215960, 131, Gs.Named.PaleGreen], [4289720046, 132, Gs.Named.PaleTurquoise], [4292571283, 133, Gs.Named.PaleVioletRed], [4294963157, 134, Gs.Named.PapayaWhip], [4294957753, 135, Gs.Named.PeachPuff], [4291659071, 136, Gs.Named.Peru], [4294951115, 137, Gs.Named.Pink], [4292714717, 138, Gs.Named.Plum], [4289781990, 139, Gs.Named.PowderBlue], [4286578816, 140, Gs.Named.Purple], [4294901760, 141, Gs.Named.Red], [4290547599, 142, Gs.Named.RosyBrown], [4282477025, 143, Gs.Named.RoyalBlue], [4287317267, 144, Gs.Named.SaddleBrown], [4294606962, 145, Gs.Named.Salmon], [4294222944, 146, Gs.Named.SandyBrown], [4281240407, 147, Gs.Named.SeaGreen], [4294964718, 148, Gs.Named.SeaShell], [4288696877, 149, Gs.Named.Sienna], [4290822336, 150, Gs.Named.Silver], [4287090411, 151, Gs.Named.SkyBlue], [4285160141, 152, Gs.Named.SlateBlue], [4285563024, 153, Gs.Named.SlateGray], [4294966010, 154, Gs.Named.Snow], [4278255487, 155, Gs.Named.SpringGreen], [4282811060, 156, Gs.Named.SteelBlue], [4291998860, 157, Gs.Named.Tan], [4278222976, 158, Gs.Named.Teal], [4292394968, 159, Gs.Named.Thistle], [4294927175, 160, Gs.Named.Tomato], [4282441936, 161, Gs.Named.Turquoise], [4293821166, 162, Gs.Named.Violet], [4294303411, 163, Gs.Named.Wheat], [4294967295, 164, Gs.Named.White], [4294309365, 165, Gs.Named.WhiteSmoke], [4294967040, 166, Gs.Named.Yellow], [4288335154, 167, Gs.Named.YellowGreen], [4293980400, 168, Gs.Named.ButtonFace], [4294967295, 169, Gs.Named.ButtonHighlight], [4288716960, 170, Gs.Named.ButtonShadow], [4290367978, 171, Gs.Named.GradientActiveCaption], [4292338930, 172, Gs.Named.GradientInactiveCaption], [4293980400, 173, Gs.Named.MenuBar], [4281571839, 174, Gs.Named.MenuHighlight]];
4265
- const Js = new class {
4261
+ const Js = [[4290032820, 1, Gs.Named.ActiveBorder, true], [4288263377, 2, Gs.Named.ActiveCaption, true], [4278190080, 3, Gs.Named.CaptionText, true], [4289440683, 4, Gs.Named.AppWorkspace, true], [4293980400, 5, Gs.Named.BtnFace, true], [4285098345, 6, Gs.Named.BtnShadow, true], [4278190080, 7, Gs.Named.DkShadow3d, true], [4293125091, 8, Gs.Named.BtnHighlight, true], [4293125091, 9, Gs.Named.Light3d, true], [4278190080, 10, Gs.Named.BtnText, true], [4278190080, 11, Gs.Named.Background, true], [4285361517, 12, Gs.Named.GrayText, true], [4281571839, 13, Gs.Named.Highlight, true], [4294967295, 14, Gs.Named.HighlightText, true], [4278216396, 15, Gs.Named.HotLight, true], [4294244348, 16, Gs.Named.InactiveBorder, true], [4290760155, 17, Gs.Named.InactiveCaption, true], [4278190080, 18, Gs.Named.InactiveCaptionText, true], [4294967265, 19, Gs.Named.InfoBk, true], [4278190080, 20, Gs.Named.InfoText, true], [4293980400, 21, Gs.Named.Menu, true], [4278190080, 22, Gs.Named.MenuText, true], [4291348680, 23, Gs.Named.ScrollBar, true], [4294967295, 24, Gs.Named.Window, true], [4284769380, 25, Gs.Named.WindowFrame, true], [4278190080, 26, Gs.Named.WindowText, true], [16777215, 27, Gs.Named.Transparent], [4293982463, 28, Gs.Named.AliceBlue], [4294634455, 29, Gs.Named.AntiqueWhite], [4278255615, 30, Gs.Named.Aqua], [4286578644, 31, Gs.Named.Aquamarine], [4293984255, 32, Gs.Named.Azure], [4294309340, 33, Gs.Named.Beige], [4294960324, 34, Gs.Named.Bisque], [4278190080, 35, Gs.Named.Black], [4294962125, 36, Gs.Named.BlanchedAlmond], [4278190335, 37, Gs.Named.Blue], [4287245282, 38, Gs.Named.BlueViolet], [4289014314, 39, Gs.Named.Brown], [4292786311, 40, Gs.Named.BurlyWood], [4284456608, 41, Gs.Named.CadetBlue], [4286578432, 42, Gs.Named.Chartreuse], [4291979550, 43, Gs.Named.Chocolate], [4294934352, 44, Gs.Named.Coral], [4284782061, 45, Gs.Named.CornflowerBlue], [4294965468, 46, Gs.Named.Cornsilk], [4292613180, 47, Gs.Named.Crimson], [4278255615, 48, Gs.Named.Cyan], [4278190219, 49, Gs.Named.DkBlue], [4278225803, 50, Gs.Named.DkCyan], [4290283019, 51, Gs.Named.DkGoldenrod], [4289309097, 52, Gs.Named.DkGray], [4278215680, 53, Gs.Named.DkGreen], [4290623339, 54, Gs.Named.DkKhaki], [4287299723, 55, Gs.Named.DkMagenta], [4283788079, 56, Gs.Named.DkOliveGreen], [4294937600, 57, Gs.Named.DkOrange], [4288230092, 58, Gs.Named.DkOrchid], [4287299584, 59, Gs.Named.DkRed], [4293498490, 60, Gs.Named.DkSalmon], [4287609995, 61, Gs.Named.DkSeaGreen], [4282924427, 62, Gs.Named.DkSlateBlue], [4281290575, 63, Gs.Named.DkSlateGray], [4278243025, 64, Gs.Named.DkTurquoise], [4287889619, 65, Gs.Named.DkViolet], [4294907027, 66, Gs.Named.DeepPink], [4278239231, 67, Gs.Named.DeepSkyBlue], [4285098345, 68, Gs.Named.DimGray], [4280193279, 69, Gs.Named.DodgerBlue], [4289864226, 70, Gs.Named.Firebrick], [4294966e3, 71, Gs.Named.FloralWhite], [4280453922, 72, Gs.Named.ForestGreen], [4294902015, 73, Gs.Named.Fuchsia], [4292664540, 74, Gs.Named.Gainsboro], [4294506751, 75, Gs.Named.GhostWhite], [4294956800, 76, Gs.Named.Gold], [4292519200, 77, Gs.Named.Goldenrod], [4286611584, 78, Gs.Named.Gray], [4278222848, 79, Gs.Named.Green], [4289593135, 80, Gs.Named.GreenYellow], [4293984240, 81, Gs.Named.Honeydew], [4294928820, 82, Gs.Named.HotPink], [4291648604, 83, Gs.Named.IndianRed], [4283105410, 84, Gs.Named.Indigo], [4294967280, 85, Gs.Named.Ivory], [4293977740, 86, Gs.Named.Khaki], [4293322490, 87, Gs.Named.Lavender], [4294963445, 88, Gs.Named.LavenderBlush], [4286381056, 89, Gs.Named.LawnGreen], [4294965965, 90, Gs.Named.LemonChiffon], [4289583334, 91, Gs.Named.LtBlue], [4293951616, 92, Gs.Named.LtCoral], [4292935679, 93, Gs.Named.LtCyan], [4294638200, 94, Gs.Named.LtGoldenrodYellow], [4292072403, 95, Gs.Named.LtGray], [4287688336, 96, Gs.Named.LtGreen], [4294948545, 97, Gs.Named.LtPink], [4294942842, 98, Gs.Named.LtSalmon], [4280332970, 99, Gs.Named.LtSeaGreen], [4287090426, 100, Gs.Named.LtSkyBlue], [4286023833, 101, Gs.Named.LtSlateGray], [4289774814, 102, Gs.Named.LtSteelBlue], [4294967264, 103, Gs.Named.LtYellow], [4278255360, 104, Gs.Named.Lime], [4281519410, 105, Gs.Named.LimeGreen], [4294635750, 106, Gs.Named.Linen], [4294902015, 107, Gs.Named.Magenta], [4286578688, 108, Gs.Named.Maroon], [4284927402, 109, Gs.Named.MedAquamarine], [4278190285, 110, Gs.Named.MedBlue], [4290401747, 111, Gs.Named.MedOrchid], [4287852763, 112, Gs.Named.MedPurple], [4282168177, 113, Gs.Named.MedSeaGreen], [4286277870, 114, Gs.Named.MedSlateBlue], [4278254234, 115, Gs.Named.MedSpringGreen], [4282962380, 116, Gs.Named.MedTurquoise], [4291237253, 117, Gs.Named.MedVioletRed], [4279834992, 118, Gs.Named.MidnightBlue], [4294311930, 119, Gs.Named.MintCream], [4294960353, 120, Gs.Named.MistyRose], [4294960309, 121, Gs.Named.Moccasin], [4294958765, 122, Gs.Named.NavajoWhite], [4278190208, 123, Gs.Named.Navy], [4294833638, 124, Gs.Named.OldLace], [4286611456, 125, Gs.Named.Olive], [4285238819, 126, Gs.Named.OliveDrab], [4294944e3, 127, Gs.Named.Orange], [4294919424, 128, Gs.Named.OrangeRed], [4292505814, 129, Gs.Named.Orchid], [4293847210, 130, Gs.Named.PaleGoldenrod], [4288215960, 131, Gs.Named.PaleGreen], [4289720046, 132, Gs.Named.PaleTurquoise], [4292571283, 133, Gs.Named.PaleVioletRed], [4294963157, 134, Gs.Named.PapayaWhip], [4294957753, 135, Gs.Named.PeachPuff], [4291659071, 136, Gs.Named.Peru], [4294951115, 137, Gs.Named.Pink], [4292714717, 138, Gs.Named.Plum], [4289781990, 139, Gs.Named.PowderBlue], [4286578816, 140, Gs.Named.Purple], [4294901760, 141, Gs.Named.Red], [4290547599, 142, Gs.Named.RosyBrown], [4282477025, 143, Gs.Named.RoyalBlue], [4287317267, 144, Gs.Named.SaddleBrown], [4294606962, 145, Gs.Named.Salmon], [4294222944, 146, Gs.Named.SandyBrown], [4281240407, 147, Gs.Named.SeaGreen], [4294964718, 148, Gs.Named.SeaShell], [4288696877, 149, Gs.Named.Sienna], [4290822336, 150, Gs.Named.Silver], [4287090411, 151, Gs.Named.SkyBlue], [4285160141, 152, Gs.Named.SlateBlue], [4285563024, 153, Gs.Named.SlateGray], [4294966010, 154, Gs.Named.Snow], [4278255487, 155, Gs.Named.SpringGreen], [4282811060, 156, Gs.Named.SteelBlue], [4291998860, 157, Gs.Named.Tan], [4278222976, 158, Gs.Named.Teal], [4292394968, 159, Gs.Named.Thistle], [4294927175, 160, Gs.Named.Tomato], [4282441936, 161, Gs.Named.Turquoise], [4293821166, 162, Gs.Named.Violet], [4294303411, 163, Gs.Named.Wheat], [4294967295, 164, Gs.Named.White], [4294309365, 165, Gs.Named.WhiteSmoke], [4294967040, 166, Gs.Named.Yellow], [4288335154, 167, Gs.Named.YellowGreen], [4293980400, 168, Gs.Named.ButtonFace], [4294967295, 169, Gs.Named.ButtonHighlight], [4288716960, 170, Gs.Named.ButtonShadow], [4290367978, 171, Gs.Named.GradientActiveCaption], [4292338930, 172, Gs.Named.GradientInactiveCaption], [4293980400, 173, Gs.Named.MenuBar], [4281571839, 174, Gs.Named.MenuHighlight]];
4262
+ const qs = new class {
4266
4263
  constructor() {
4267
4264
  this._lookupByName = /* @__PURE__ */ new Map();
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 };
4265
+ for (let t2 = 0; t2 < Js.length; t2++) {
4266
+ const e2 = Js[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 };
4270
4267
  this._lookupByName.set(a2.name.toLowerCase(), a2);
4271
4268
  }
4272
4269
  }
@@ -4275,9 +4272,9 @@ const Js = new class {
4275
4272
  }
4276
4273
  }(), Ks = [{ scheme: Gs.Scheme.Tx1, description: "First Text Color" }, { scheme: Gs.Scheme.Tx2, description: "Second Text Color" }, { scheme: Gs.Scheme.Bg1, description: "First Background Color" }, { scheme: Gs.Scheme.Bg2, description: "Second Background Color" }, { scheme: Gs.Scheme.Accent1, description: "Accent 1" }, { scheme: Gs.Scheme.Accent2, description: "Accent 2" }, { scheme: Gs.Scheme.Accent3, description: "Accent 3" }, { scheme: Gs.Scheme.Accent4, description: "Accent 4" }, { scheme: Gs.Scheme.Accent5, description: "Accent 5" }, { scheme: Gs.Scheme.Accent6, description: "Accent 6" }, { scheme: Gs.Scheme.Hlink, description: "Hyperlink" }, { scheme: Gs.Scheme.FolHlink, description: "Followed Hyperlink" }, { scheme: "dk1", description: "Text/Background - Dark 1" }, { scheme: "lt1", description: "Text/Background - Light 1" }, { scheme: "dk2", description: "Text/Background - Dark 2" }, { scheme: "lt2", description: "Text/Background - Light 2" }], Xs = /* @__PURE__ */ new Map();
4277
4274
  for (let t2 = 0; t2 < Ks.length; t2++) Xs.set(Ks[t2].scheme.toLowerCase(), Ks[t2]);
4278
- const Ys = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null, Zs = function(t2, e2, n2, r2) {
4275
+ const Ys = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null, Qs = function(t2, e2, n2, r2) {
4279
4276
  let o2 = Ys(((t3) => {
4280
- let e3 = Js.valueOfName(t3);
4277
+ let e3 = qs.valueOfName(t3);
4281
4278
  return e3 ? new Sr.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
4282
4279
  })(t2)), s2 = null, i2 = null, a2 = null;
4283
4280
  if (null === o2 && (l2 = t2, Xs.get(l2.toLowerCase()))) {
@@ -4289,28 +4286,28 @@ const Ys = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4289
4286
  let e3 = t2.match(Tn) || t2.match(Nn);
4290
4287
  if (e3) {
4291
4288
  let t3, n3 = 1;
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 = Ln(parseInt(e3[1], 16) / 255)), t3 = On(t3), t3 = Bn(t3), o2 = { srgb: t3, alpha: n3 }, a2 = Gs.Type.Hex;
4289
+ 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 = Bn(parseInt(e3[1], 16) / 255)), t3 = On(t3), t3 = Ln(t3), o2 = { srgb: t3, alpha: n3 }, a2 = Gs.Type.Hex;
4293
4290
  }
4294
4291
  }
4295
4292
  if (null === o2) {
4296
4293
  let e3 = t2.match(vn) || t2.match(xn);
4297
4294
  if (e3) {
4298
4295
  let t3 = kn(e3[1], e3[2], e3[3]);
4299
- t3 = On(t3), t3 = Bn(t3), o2 = { srgb: t3, alpha: e3[4] ? Ln(parseFloat(e3[4])) : 1 }, a2 = Gs.Type.RGB;
4296
+ t3 = On(t3), t3 = Ln(t3), o2 = { srgb: t3, alpha: e3[4] ? Bn(parseFloat(e3[4])) : 1 }, a2 = Gs.Type.RGB;
4300
4297
  }
4301
4298
  }
4302
4299
  if (null === o2) {
4303
4300
  let e3 = t2.match(In) || t2.match(Rn);
4304
4301
  if (e3) {
4305
4302
  let t3 = kn(e3[1], e3[2], e3[3]);
4306
- t3 = On(t3, 100), t3 = Hn(t3), t3 = Bn(t3), o2 = { srgb: t3, alpha: e3[4] ? Ln(parseFloat(e3[4])) : 1 }, a2 = Gs.Type.LRGB;
4303
+ t3 = On(t3, 100), t3 = Hn(t3), t3 = Ln(t3), o2 = { srgb: t3, alpha: e3[4] ? Bn(parseFloat(e3[4])) : 1 }, a2 = Gs.Type.LRGB;
4307
4304
  }
4308
4305
  }
4309
4306
  if (null === o2) {
4310
4307
  let e3 = t2.match(An) || t2.match(Mn);
4311
4308
  if (e3) {
4312
4309
  let t3 = kn(e3[1], e3[2], e3[3]);
4313
- t3 = $n(t3), t3 = Bn(t3), o2 = { srgb: t3, alpha: e3[4] ? Ln(parseFloat(e3[4])) : 1 }, a2 = Gs.Type.HSL;
4310
+ t3 = $n(t3), t3 = Ln(t3), o2 = { srgb: t3, alpha: e3[4] ? Bn(parseFloat(e3[4])) : 1 }, a2 = Gs.Type.HSL;
4314
4311
  }
4315
4312
  }
4316
4313
  if (null === o2) {
@@ -4323,10 +4320,10 @@ const Ys = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
4323
4320
  }
4324
4321
  if (null === o2) throw new Error("Not a valid color format: " + t2);
4325
4322
  return { srgbAlpha: o2, key: s2, color: i2, type: a2 };
4326
- }, Qs = /* @__PURE__ */ new Map(), ti = Object.keys(Gs.AdjustmentType), ei = ti.length;
4323
+ }, Zs = /* @__PURE__ */ new Map(), ti = Object.keys(Gs.AdjustmentType), ei = ti.length;
4327
4324
  for (let t2 = 0; t2 < ei; t2++) {
4328
4325
  const e2 = ti[t2];
4329
- Qs.set(Gs.AdjustmentType[e2].toLowerCase(), Gs.AdjustmentType[e2]);
4326
+ Zs.set(Gs.AdjustmentType[e2].toLowerCase(), Gs.AdjustmentType[e2]);
4330
4327
  }
4331
4328
  const ni = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), ri = new RegExp("\\s*[,]\\s*|\\s+");
4332
4329
  let oi = null;
@@ -4340,7 +4337,7 @@ class ii {
4340
4337
  o2 = e3.val, s2 = e3.adjs;
4341
4338
  } else t2?.val && (o2 = t2.val, s2 = t2.adjs);
4342
4339
  if (!o2) throw new Error("Unable to determine color value");
4343
- this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal: Zs(o2, e2, n2), adjusted: null, resolved: null };
4340
+ this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal: Qs(o2, e2, n2), adjusted: null, resolved: null };
4344
4341
  }
4345
4342
  _parse(t2) {
4346
4343
  let e2 = null, n2 = t2.toLowerCase().trim();
@@ -4350,7 +4347,7 @@ class ii {
4350
4347
  for (let t3 = 0; t3 < i2; t3++) {
4351
4348
  const e3 = s2[t3];
4352
4349
  if (!e3) continue;
4353
- const n3 = Qs.get(e3.toLowerCase());
4350
+ const n3 = Zs.get(e3.toLowerCase());
4354
4351
  if (!n3) throw new Error("Invalid adjustment type:" + e3);
4355
4352
  let r3 = null;
4356
4353
  if (n3 === Gs.AdjustmentType.Gray || n3 === Gs.AdjustmentType.Comp || n3 === Gs.AdjustmentType.Inv || n3 === Gs.AdjustmentType.Gamma || n3 === Gs.AdjustmentType.InvGamma) ;
@@ -4377,7 +4374,7 @@ class ii {
4377
4374
  })(n2, 180), n2 = dr(n2, false);
4378
4375
  let r2 = zn(n2);
4379
4376
  const o2 = Gn(r2);
4380
- if (o2[Jn] = 0.95 * o2[Jn], r2 = $n(o2), n2 = Hn(r2), n2 = Dn(n2), n2 = Bn(n2, false), t2) return new Sr.RGBA(n2[0], n2[1], n2[2], e2.alpha);
4377
+ if (o2[qn] = 0.95 * o2[qn], r2 = $n(o2), n2 = Hn(r2), n2 = Dn(n2), n2 = Ln(n2, false), t2) return new Sr.RGBA(n2[0], n2[1], n2[2], e2.alpha);
4381
4378
  const s2 = Gn(zn(n2));
4382
4379
  return new Sr.HSLA(s2[0], s2[1], s2[2], e2.alpha);
4383
4380
  }
@@ -4387,13 +4384,13 @@ class ii {
4387
4384
  let t3 = this._private.schemeLookup(this._private.parsedVal.key);
4388
4385
  if (t3 === this._private.parsedVal.color || t3?.isEqual(this._private.parsedVal.color)) return;
4389
4386
  }
4390
- const t2 = Zs(this._private.val, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
4387
+ const t2 = Qs(this._private.val, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
4391
4388
  let e2 = ((t3, e3) => {
4392
4389
  let n3 = [...t3.srgb], r3 = void 0 !== t3.alpha ? t3.alpha : 1;
4393
4390
  const o2 = e3 ? e3.length : 0;
4394
4391
  for (var s2 = 0; s2 < o2; s2++) {
4395
4392
  const t4 = e3[s2], o3 = Object.keys(t4)[0], i2 = t4[o3];
4396
- o3 === Gs.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.Hue ? n3 = sr(Un, n3, i2) : o3 === Gs.AdjustmentType.Sat ? n3 = sr(qn, n3, i2) : o3 === Gs.AdjustmentType.Lum ? n3 = sr(Jn, n3, i2) : o3 === Gs.AdjustmentType.HueOff ? n3 = ir(Un, n3, i2) : o3 === Gs.AdjustmentType.SatOff ? n3 = ir(qn, n3, i2) : o3 === Gs.AdjustmentType.LumOff ? n3 = ir(Jn, n3, i2) : o3 === Gs.AdjustmentType.HueMod ? n3 = ar(Un, n3, i2) : o3 === Gs.AdjustmentType.SatMod ? n3 = ar(qn, n3, i2) : o3 === Gs.AdjustmentType.LumMod ? n3 = ar(Jn, n3, i2) : o3 === Gs.AdjustmentType.Red ? n3 = lr(Kn, n3, i2, Zn) : o3 === Gs.AdjustmentType.Green ? n3 = lr(Xn, n3, i2, Zn) : o3 === Gs.AdjustmentType.Blue ? n3 = lr(Yn, n3, i2, Zn) : o3 === Gs.AdjustmentType.RedOff ? n3 = lr(Kn, n3, i2, Qn) : o3 === Gs.AdjustmentType.GreenOff ? n3 = lr(Xn, n3, i2, Qn) : o3 === Gs.AdjustmentType.BlueOff ? n3 = lr(Yn, n3, i2, Qn) : o3 === Gs.AdjustmentType.RedMod ? n3 = lr(Kn, n3, i2, tr) : o3 === Gs.AdjustmentType.GreenMod ? n3 = lr(Xn, n3, i2, tr) : o3 === Gs.AdjustmentType.BlueMod ? n3 = lr(Yn, n3, i2, tr) : o3 === Gs.AdjustmentType.Shade ? n3 = er(n3, i2) : o3 === Gs.AdjustmentType.Tint ? n3 = or(n3, i2) : o3 === Gs.AdjustmentType.ETint ? n3 = rr(n3, i2) : o3 === Gs.AdjustmentType.Gray ? n3 = cr(n3) : o3 === Gs.AdjustmentType.Comp ? n3 = hr(n3) : o3 === Gs.AdjustmentType.Inv ? n3 = dr(n3, i2) : o3 === Gs.AdjustmentType.Gamma ? n3 = ur(n3) : o3 === Gs.AdjustmentType.InvGamma ? n3 = gr(n3) : console.warn("unknown adjustmentType: " + o3);
4393
+ o3 === Gs.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : o3 === Gs.AdjustmentType.Hue ? n3 = sr(Un, n3, i2) : o3 === Gs.AdjustmentType.Sat ? n3 = sr(Jn, n3, i2) : o3 === Gs.AdjustmentType.Lum ? n3 = sr(qn, n3, i2) : o3 === Gs.AdjustmentType.HueOff ? n3 = ir(Un, n3, i2) : o3 === Gs.AdjustmentType.SatOff ? n3 = ir(Jn, n3, i2) : o3 === Gs.AdjustmentType.LumOff ? n3 = ir(qn, n3, i2) : o3 === Gs.AdjustmentType.HueMod ? n3 = ar(Un, n3, i2) : o3 === Gs.AdjustmentType.SatMod ? n3 = ar(Jn, n3, i2) : o3 === Gs.AdjustmentType.LumMod ? n3 = ar(qn, n3, i2) : o3 === Gs.AdjustmentType.Red ? n3 = lr(Kn, n3, i2, Qn) : o3 === Gs.AdjustmentType.Green ? n3 = lr(Xn, n3, i2, Qn) : o3 === Gs.AdjustmentType.Blue ? n3 = lr(Yn, n3, i2, Qn) : o3 === Gs.AdjustmentType.RedOff ? n3 = lr(Kn, n3, i2, Zn) : o3 === Gs.AdjustmentType.GreenOff ? n3 = lr(Xn, n3, i2, Zn) : o3 === Gs.AdjustmentType.BlueOff ? n3 = lr(Yn, n3, i2, Zn) : o3 === Gs.AdjustmentType.RedMod ? n3 = lr(Kn, n3, i2, tr) : o3 === Gs.AdjustmentType.GreenMod ? n3 = lr(Xn, n3, i2, tr) : o3 === Gs.AdjustmentType.BlueMod ? n3 = lr(Yn, n3, i2, tr) : o3 === Gs.AdjustmentType.Shade ? n3 = er(n3, i2) : o3 === Gs.AdjustmentType.Tint ? n3 = or(n3, i2) : o3 === Gs.AdjustmentType.ETint ? n3 = rr(n3, i2) : o3 === Gs.AdjustmentType.Gray ? n3 = cr(n3) : o3 === Gs.AdjustmentType.Comp ? n3 = hr(n3) : o3 === Gs.AdjustmentType.Inv ? n3 = dr(n3, i2) : o3 === Gs.AdjustmentType.Gamma ? n3 = ur(n3) : o3 === Gs.AdjustmentType.InvGamma ? n3 = gr(n3) : console.warn("unknown adjustmentType: " + o3);
4397
4394
  }
4398
4395
  return { srgb: n3, alpha: r3 };
4399
4396
  })(t2.srgbAlpha, this._private.adjs), n2 = ((t3, e3 = 255) => {
@@ -4402,7 +4399,7 @@ class ii {
4402
4399
  return n3;
4403
4400
  })(e2.srgb);
4404
4401
  n2 = Dn(n2);
4405
- let r2 = Ln(e2.alpha);
4402
+ let r2 = Bn(e2.alpha);
4406
4403
  this._private.adjusted = e2, this._private.parsedVal = t2, this._private.resolved = new Sr.RGBA(n2[0], n2[1], n2[2], r2);
4407
4404
  }
4408
4405
  static parse(t2, e2, n2, r2 = null) {
@@ -4419,7 +4416,7 @@ class ii {
4419
4416
  for (let e3 = 0; e3 < l2; e3++) {
4420
4417
  const n3 = o3[e3];
4421
4418
  if (!n3) continue;
4422
- const r3 = Qs.get(n3.toLowerCase());
4419
+ const r3 = Zs.get(n3.toLowerCase());
4423
4420
  if (!r3) throw new Error("Invalid adjustment type:" + n3);
4424
4421
  let s3 = null;
4425
4422
  if (r3 === Gs.AdjustmentType.Gray || r3 === Gs.AdjustmentType.Comp || r3 === Gs.AdjustmentType.Inv || r3 === Gs.AdjustmentType.Gamma || r3 === Gs.AdjustmentType.InvGamma) ;
@@ -4473,7 +4470,7 @@ class ii {
4473
4470
  toHSLA(t2 = false) {
4474
4471
  if (this._resolve(), t2) return this._forceDark(false);
4475
4472
  let e2 = Gn(this._private.adjusted.srgb);
4476
- return new Sr.HSLA(e2[0], e2[1], e2[2], Ln(this._private.adjusted.alpha ?? 1));
4473
+ return new Sr.HSLA(e2[0], e2[1], e2[2], Bn(this._private.adjusted.alpha ?? 1));
4477
4474
  }
4478
4475
  toHex(t2 = false) {
4479
4476
  this._resolve();
@@ -4599,7 +4596,7 @@ const Mi = (t2, e2, n2, r2, o2) => {
4599
4596
  };
4600
4597
  var Ni, Fi;
4601
4598
  (Ni || (Ni = {})).buildPalette = Ti, (Fi || (Fi = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
4602
- const ki = [["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"]], Oi = [["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"]], Di = [["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"]], Bi = "Themes is readonly. To make modifications create a new DocsThemes instance.", Li = { [Gs.Scheme.Bg1]: "lt1", [Gs.Scheme.Bg2]: "lt2", [Gs.Scheme.Tx1]: "dk1", [Gs.Scheme.Tx2]: "dk2", [Gs.Scheme.Accent1]: "accent1", [Gs.Scheme.Accent2]: "accent2", [Gs.Scheme.Accent3]: "accent3", [Gs.Scheme.Accent4]: "accent4", [Gs.Scheme.Accent5]: "accent5", [Gs.Scheme.Accent6]: "accent6", [Gs.Scheme.Hlink]: "hlink", [Gs.Scheme.FolHlink]: "folHlink" }, Pi = "Office", zi = [Pi, "Calibri Light", "Calibri"], Hi = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], Vi = (t2) => {
4599
+ const ki = [["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"]], Oi = [["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"]], Di = [["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"]], Li = "Themes is readonly. To make modifications create a new DocsThemes instance.", Bi = { [Gs.Scheme.Bg1]: "lt1", [Gs.Scheme.Bg2]: "lt2", [Gs.Scheme.Tx1]: "dk1", [Gs.Scheme.Tx2]: "dk2", [Gs.Scheme.Accent1]: "accent1", [Gs.Scheme.Accent2]: "accent2", [Gs.Scheme.Accent3]: "accent3", [Gs.Scheme.Accent4]: "accent4", [Gs.Scheme.Accent5]: "accent5", [Gs.Scheme.Accent6]: "accent6", [Gs.Scheme.Hlink]: "hlink", [Gs.Scheme.FolHlink]: "folHlink" }, Pi = "Office", zi = [Pi, "Calibri Light", "Calibri"], Hi = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], Vi = (t2) => {
4603
4600
  const e2 = {};
4604
4601
  for (let n2 = 0; n2 < t2.length; n2++) {
4605
4602
  const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
@@ -4620,8 +4617,8 @@ const ki = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
4620
4617
  }
4621
4618
  return e2;
4622
4619
  }, $i = Vi([[Pi, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), ji = Wi([zi]), Gi = $i[Pi], Ui = ji[Pi];
4623
- let qi = null;
4624
- const Ji = new class {
4620
+ let Ji = null;
4621
+ const qi = new class {
4625
4622
  constructor() {
4626
4623
  this._colors = {};
4627
4624
  for (let t2 = 0; t2 < Hi.length; t2++) {
@@ -4673,7 +4670,7 @@ const Ji = new class {
4673
4670
  }
4674
4671
  }();
4675
4672
  class Ki {
4676
- constructor(t2, e2 = Ji) {
4673
+ constructor(t2, e2 = qi) {
4677
4674
  this._delegate = e2, this._fromJSON(t2);
4678
4675
  }
4679
4676
  _fromJSON(t2) {
@@ -4790,15 +4787,15 @@ class Yi {
4790
4787
  return e2 && (t2.name = e2), t2;
4791
4788
  }
4792
4789
  }
4793
- class Zi {
4790
+ class Qi {
4794
4791
  constructor(t2, e2 = null, n2 = null) {
4795
4792
  if (this._cacheColors = /* @__PURE__ */ new Map(), !e2 && t2?.name) {
4796
- const n3 = qi ? qi.get(t2.name.toLowerCase()) : null;
4793
+ const n3 = Ji ? Ji.get(t2.name.toLowerCase()) : null;
4797
4794
  n3 && (e2 = n3);
4798
4795
  }
4799
- if (!e2 && qi && (e2 = qi.get(Pi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
4796
+ if (!e2 && Ji && (e2 = Ji.get(Pi.toLowerCase())), this._name = t2?.name ?? e2?.getName(), !this._name) throw new Error("Theme must have a name.");
4800
4797
  this._builtInID = n2, this._delegate = e2, this._colors = new Ki(t2?.colors, this._delegate?.getColorScheme()), this._fonts = new Yi(t2?.fonts, this._delegate?.getFontScheme());
4801
- const r2 = Li, o2 = {}, s2 = Object.keys(r2);
4798
+ const r2 = Bi, o2 = {}, s2 = Object.keys(r2);
4802
4799
  for (let t3 = 0; t3 < s2.length; t3++) {
4803
4800
  const e3 = s2[t3];
4804
4801
  o2[e3] = `get${Ao(r2[e3])}`;
@@ -4812,7 +4809,7 @@ class Zi {
4812
4809
  if (!n3) throw new Error(`Invalid color scheme key: ${t3}`);
4813
4810
  const r3 = i2.getColorScheme();
4814
4811
  let o3 = r3[n3].bind(r3)();
4815
- o3 || (o3 = Gi[Li[t3] ?? t3]);
4812
+ o3 || (o3 = Gi[Bi[t3] ?? t3]);
4816
4813
  return e3 = new ii(o3).toRGBA(), i2._cacheColors[t3] = e3, e3;
4817
4814
  };
4818
4815
  }
@@ -4844,8 +4841,8 @@ class Zi {
4844
4841
  return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name === Pi ? null : t2;
4845
4842
  }
4846
4843
  }
4847
- const Qi = () => {
4848
- if (qi) return qi;
4844
+ const Zi = () => {
4845
+ if (Ji) return Ji;
4849
4846
  const t2 = ((t3, e3, n2) => {
4850
4847
  const r2 = [];
4851
4848
  for (let o2 = 0; o2 < t3.length; o2++) {
@@ -4855,20 +4852,20 @@ const Qi = () => {
4855
4852
  return r2;
4856
4853
  })(Di, Vi(ki), Wi(Oi)), e2 = /* @__PURE__ */ new Map();
4857
4854
  for (let n2 = 0; n2 < t2.length; n2++) {
4858
- const r2 = new Zi(t2[n2]), o2 = new Zi(null, r2, n2 + 1);
4855
+ const r2 = new Qi(t2[n2]), o2 = new Qi(null, r2, n2 + 1);
4859
4856
  e2.set(o2.getName().toLowerCase(), o2);
4860
4857
  }
4861
- return qi = e2, e2;
4858
+ return Ji = e2, e2;
4862
4859
  };
4863
4860
  class ta {
4864
4861
  constructor(t2 = null, e2 = false) {
4865
- Qi(), this._isReadOnly = e2, this._customMap = /* @__PURE__ */ new Map(), this._defaultTheme = this.getByName("Office");
4862
+ Zi(), this._isReadOnly = e2, this._customMap = /* @__PURE__ */ new Map(), this._defaultTheme = this.getByName("Office");
4866
4863
  }
4867
4864
  getDefaultTheme() {
4868
4865
  return this._defaultTheme;
4869
4866
  }
4870
4867
  setDefaultTheme(t2) {
4871
- if (this._isReadOnly) throw new Error(Bi);
4868
+ if (this._isReadOnly) throw new Error(Li);
4872
4869
  if (!t2) throw new Error("Theme cannot be null.");
4873
4870
  const e2 = this.getDefaultTheme();
4874
4871
  return this.getByName(t2.getName()) || this.setCustomTheme(t2), this._defaultTheme = t2, e2;
@@ -4876,26 +4873,26 @@ class ta {
4876
4873
  getByName(t2) {
4877
4874
  t2 = t2.toLowerCase();
4878
4875
  const e2 = this._customMap.get(t2);
4879
- return e2 || (qi.get(t2) ?? null);
4876
+ return e2 || (Ji.get(t2) ?? null);
4880
4877
  }
4881
4878
  getItems(t2) {
4882
4879
  const e2 = t2?.type ?? Fi.BuiltInFilterType.All, n2 = /* @__PURE__ */ new Map();
4883
- e2 !== Fi.BuiltInFilterType.BuiltIn && e2 !== Fi.BuiltInFilterType.All || qi.forEach((t3, e3) => n2.set(e3, t3)), e2 !== Fi.BuiltInFilterType.Custom && e2 !== Fi.BuiltInFilterType.All || this._customMap.forEach((t3, e3) => n2.set(e3, t3)), t2?.selected && n2.set(t2.selected.getName().toLowerCase(), t2.selected);
4880
+ e2 !== Fi.BuiltInFilterType.BuiltIn && e2 !== Fi.BuiltInFilterType.All || Ji.forEach((t3, e3) => n2.set(e3, t3)), e2 !== Fi.BuiltInFilterType.Custom && e2 !== Fi.BuiltInFilterType.All || this._customMap.forEach((t3, e3) => n2.set(e3, t3)), t2?.selected && n2.set(t2.selected.getName().toLowerCase(), t2.selected);
4884
4881
  return ((t3) => {
4885
4882
  const e3 = [...t3];
4886
4883
  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;
4887
4884
  })(Array.from(n2.values()));
4888
4885
  }
4889
4886
  getCount() {
4890
- return this._customMap.size + qi.size;
4887
+ return this._customMap.size + Ji.size;
4891
4888
  }
4892
4889
  setCustomTheme(t2) {
4893
- if (this._isReadOnly) throw new Error(Bi);
4890
+ if (this._isReadOnly) throw new Error(Li);
4894
4891
  const e2 = t2.getName().toLowerCase(), n2 = this._customMap.get(e2);
4895
4892
  return this._customMap.set(e2, t2), n2 ?? null;
4896
4893
  }
4897
4894
  deleteCustomTheme(t2) {
4898
- if (this._isReadOnly) throw new Error(Bi);
4895
+ if (this._isReadOnly) throw new Error(Li);
4899
4896
  let e2 = null;
4900
4897
  e2 = "string" == typeof t2 ? t2.toLowerCase() : t2.getName().toLowerCase();
4901
4898
  const n2 = this._customMap.get(e2);
@@ -5644,7 +5641,7 @@ class Ia {
5644
5641
  }
5645
5642
  const u2 = (t3) => {
5646
5643
  let e3;
5647
- t3 !== Number.MIN_SAFE_INTEGER && t3 !== Number.MAX_SAFE_INTEGER && (Ba.min = t3, e3 = Ba), a2 = s2 ? this._runs.entries(e3, this._reuseRunsIterator) : this._runs.entriesReversed(e3, this._reuseRunsIterator), c2 = Number.MAX_SAFE_INTEGER, h2 = Number.MIN_SAFE_INTEGER, l2 = null;
5644
+ t3 !== Number.MIN_SAFE_INTEGER && t3 !== Number.MAX_SAFE_INTEGER && (La.min = t3, e3 = La), a2 = s2 ? this._runs.entries(e3, this._reuseRunsIterator) : this._runs.entriesReversed(e3, this._reuseRunsIterator), c2 = Number.MAX_SAFE_INTEGER, h2 = Number.MIN_SAFE_INTEGER, l2 = null;
5648
5645
  }, g2 = (t3) => {
5649
5646
  if (void 0 !== t3) {
5650
5647
  if (t3 < c2 || t3 > h2) return void (l2 = void 0);
@@ -5688,7 +5685,7 @@ class Ia {
5688
5685
  let a2 = null;
5689
5686
  const l2 = (t3) => {
5690
5687
  let e3;
5691
- t3 !== Number.MIN_SAFE_INTEGER && t3 !== Number.MAX_SAFE_INTEGER && (Ba.min = t3, e3 = Ba), a2 = o2 ? this._runs.entries(e3, this._reuseRunsIterator) : this._runs.entriesReversed(e3, this._reuseRunsIterator);
5688
+ t3 !== Number.MIN_SAFE_INTEGER && t3 !== Number.MAX_SAFE_INTEGER && (La.min = t3, e3 = La), a2 = o2 ? this._runs.entries(e3, this._reuseRunsIterator) : this._runs.entriesReversed(e3, this._reuseRunsIterator);
5692
5689
  }, c2 = { next(t3) {
5693
5690
  if (void 0 !== t3) {
5694
5691
  if (t3 < n2 || t3 > r2) throw new d();
@@ -5781,10 +5778,10 @@ class Ia {
5781
5778
  _update(t2, e2, n2 = null, r2 = void 0) {
5782
5779
  const o2 = t2, s2 = o2 + e2 - 1;
5783
5780
  let i2 = 0, a2 = s2, l2 = s2, c2 = null, h2 = null;
5784
- Ba.min = o2, La.min = s2, (n2 || r2) && (Ba.min -= 1, La.min += 1);
5781
+ La.min = o2, Ba.min = s2, (n2 || r2) && (La.min -= 1, Ba.min += 1);
5785
5782
  const d2 = this._runs;
5786
5783
  let u2 = false;
5787
- if (d2.editRange(Ba, La, true, (t3, e3, n3) => {
5784
+ if (d2.editRange(La, Ba, true, (t3, e3, n3) => {
5788
5785
  const r3 = t3.min, d3 = t3.max;
5789
5786
  return r3 < o2 && d3 + 1 >= o2 && (a2 = r3, c2 = e3), r3 - 1 <= s2 && d3 > s2 && (l2 = r3, h2 = e3), i2 -= d3 - r3 + 1, u2 = true, Et.DeleteValue;
5790
5787
  }), n2 || void 0 === r2 || (n2 = new _a([r2])), n2) {
@@ -5815,10 +5812,10 @@ class Ia {
5815
5812
  const o2 = this._runs, s2 = o2.maxKey();
5816
5813
  if (e2 < 0 && r2 >= s2.max && n2 <= o2.minKey().min) return this._runs.clear(), this._dataCoords = null, this._count = 0, this._length = 0, true;
5817
5814
  let i2 = 0, a2 = n2, l2 = r2, c2 = null, h2 = null;
5818
- Ba.min = a2, La.min = s2.min, e2 < 0 && (Ba.min -= 1, La.min += 1);
5815
+ La.min = a2, Ba.min = s2.min, e2 < 0 && (La.min -= 1, Ba.min += 1);
5819
5816
  let d2 = false;
5820
5817
  const u2 = [];
5821
- if (o2.editRange(Ba, La, true, (t3, o3, s3) => {
5818
+ if (o2.editRange(La, Ba, true, (t3, o3, s3) => {
5822
5819
  const g2 = t3.min, m2 = t3.max;
5823
5820
  return g2 < n2 && m2 + 1 >= n2 && (a2 = g2, c2 = o3), (g2 < n2 || e2 < 0) && g2 - 1 <= r2 && t3.max > r2 && (l2 = g2, h2 = o3), e2 > 0 && g2 >= n2 || e2 < 0 && g2 - 1 > r2 ? u2.push([{ min: g2 + e2, max: m2 + e2 }, o3]) : i2 -= m2 - g2 + 1, d2 = true, Et.DeleteValue;
5824
5821
  }), e2 > 0) {
@@ -5828,14 +5825,14 @@ class Ia {
5828
5825
  return c2 && c2.length > 0 && (i2 += c2.length, o2.set({ min: a2, max: a2 + c2.length - 1 }, c2)), h2 && (i2 += h2.length, o2.set({ min: l2, max: l2 + h2.length - 1 }, h2)), u2.length > 0 && o2.setPairs(u2), this._updateCount(i2), d2;
5829
5826
  }
5830
5827
  at(t2) {
5831
- Ba.min = t2;
5828
+ La.min = t2;
5832
5829
  const e2 = this._lastRunsRead;
5833
5830
  if (e2) {
5834
5831
  const n3 = e2.min;
5835
5832
  if (n3 <= t2 && e2.max >= t2) return this._lastListRead.at(t2 - n3);
5836
5833
  }
5837
5834
  let n2, r2;
5838
- const o2 = this._runs.getPairOrNextHigher(Ba, Pa);
5835
+ const o2 = this._runs.getPairOrNextHigher(La, Pa);
5839
5836
  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);
5840
5837
  }
5841
5838
  [Symbol.iterator]() {
@@ -5879,7 +5876,7 @@ const Ra = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
5879
5876
  }
5880
5877
  if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
5881
5878
  return o2;
5882
- }, Fa = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), ka = Object.seal({ done: false, value: [-1, null] }), Oa = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ka }, Da = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ka }), Ba = { min: 0, max: Number.MAX_SAFE_INTEGER }, La = { min: 0, max: Number.MAX_SAFE_INTEGER }, Pa = [null, null], za = { bounds: { min: 0, max: 0 }, overflowRun: true };
5879
+ }, Fa = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), ka = Object.seal({ done: false, value: [-1, null] }), Oa = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ka }, Da = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ka }), La = { min: 0, max: Number.MAX_SAFE_INTEGER }, Ba = { min: 0, max: Number.MAX_SAFE_INTEGER }, Pa = [null, null], za = { bounds: { min: 0, max: 0 }, overflowRun: true };
5883
5880
  class Ha {
5884
5881
  constructor(t2 = 9) {
5885
5882
  this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
@@ -5893,13 +5890,13 @@ class Ha {
5893
5890
  search(t2, e2) {
5894
5891
  let n2 = this.data;
5895
5892
  if (0 === n2.children.length) return o.EmptyArray;
5896
- if (!Za(t2, n2)) return o.EmptyArray;
5893
+ if (!Qa(t2, n2)) return o.EmptyArray;
5897
5894
  const r2 = e2 ?? [], s2 = this.toBBox, i2 = [];
5898
5895
  for (; n2; ) {
5899
5896
  const e3 = n2.children, o2 = e3.length, a2 = n2.leaf;
5900
5897
  for (let n3 = 0; n3 < o2; n3++) {
5901
5898
  const o3 = e3[n3], l2 = a2 ? s2(o3) : o3;
5902
- Za(t2, l2) && (a2 ? r2.push(o3) : Ya(t2, l2) ? this._all(o3, r2) : i2.push(o3));
5899
+ Qa(t2, l2) && (a2 ? r2.push(o3) : Ya(t2, l2) ? this._all(o3, r2) : i2.push(o3));
5903
5900
  }
5904
5901
  n2 = i2.pop();
5905
5902
  }
@@ -5907,12 +5904,12 @@ class Ha {
5907
5904
  }
5908
5905
  collides(t2) {
5909
5906
  let e2 = this.data;
5910
- if (!Za(t2, e2)) return false;
5907
+ if (!Qa(t2, e2)) return false;
5911
5908
  const n2 = [];
5912
5909
  for (; e2; ) {
5913
5910
  for (let r2 = 0; r2 < e2.children.length; r2++) {
5914
5911
  const o2 = e2.children[r2], s2 = e2.leaf ? this.toBBox(o2) : o2;
5915
- if (Za(t2, s2)) {
5912
+ if (Qa(t2, s2)) {
5916
5913
  if (e2.leaf || Ya(t2, s2)) return true;
5917
5914
  n2.push(o2);
5918
5915
  }
@@ -5944,7 +5941,7 @@ class Ha {
5944
5941
  return t2 && this._insert(t2, this.data.height - 1), this;
5945
5942
  }
5946
5943
  clear() {
5947
- return this.data = Qa([]), this;
5944
+ return this.data = Za([]), this;
5948
5945
  }
5949
5946
  remove(t2, e2) {
5950
5947
  if (!t2) return this;
@@ -5983,8 +5980,8 @@ class Ha {
5983
5980
  _build(t2, e2, n2, r2) {
5984
5981
  const o2 = n2 - e2 + 1;
5985
5982
  let s2, i2 = this._maxEntries;
5986
- if (o2 <= i2) return s2 = Qa(t2.slice(e2, n2 + 1)), Wa(s2, this.toBBox), s2;
5987
- r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 = Qa([]), s2.leaf = false, s2.height = r2;
5983
+ if (o2 <= i2) return s2 = Za(t2.slice(e2, n2 + 1)), Wa(s2, this.toBBox), s2;
5984
+ r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 = Za([]), s2.leaf = false, s2.height = r2;
5988
5985
  const a2 = Math.ceil(o2 / i2), l2 = a2 * Math.ceil(Math.sqrt(i2));
5989
5986
  tl(t2, e2, n2, l2, this.compareMinX);
5990
5987
  for (let o3 = e2; o3 <= n2; o3 += l2) {
@@ -6001,7 +5998,7 @@ class Ha {
6001
5998
  for (; r2.push(e2), !e2.leaf && r2.length - 1 !== n2; ) {
6002
5999
  let n3, r3 = 1 / 0, o2 = 1 / 0;
6003
6000
  for (let s2 = 0; s2 < e2.children.length; s2++) {
6004
- const i2 = e2.children[s2], a2 = qa(i2), l2 = Ka(t2, i2) - a2;
6001
+ const i2 = e2.children[s2], a2 = Ja(i2), l2 = Ka(t2, i2) - a2;
6005
6002
  l2 < o2 ? (o2 = l2, r3 = a2 < r3 ? a2 : r3, n3 = i2) : l2 === o2 && a2 < r3 && (r3 = a2, n3 = i2);
6006
6003
  }
6007
6004
  e2 = n3 || e2.children[0];
@@ -6016,16 +6013,16 @@ class Ha {
6016
6013
  _split(t2, e2) {
6017
6014
  const n2 = t2[e2], r2 = n2.children.length, o2 = this._minEntries;
6018
6015
  this._chooseSplitAxis(n2, o2, r2);
6019
- const s2 = this._chooseSplitIndex(n2, o2, r2), i2 = Qa(n2.children.splice(s2, n2.children.length - s2));
6016
+ const s2 = this._chooseSplitIndex(n2, o2, r2), i2 = Za(n2.children.splice(s2, n2.children.length - s2));
6020
6017
  i2.height = n2.height, i2.leaf = n2.leaf, Wa(n2, this.toBBox), Wa(i2, this.toBBox), e2 ? t2[e2 - 1].children.push(i2) : this._splitRoot(n2, i2);
6021
6018
  }
6022
6019
  _splitRoot(t2, e2) {
6023
- this.data = Qa([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false, Wa(this.data, this.toBBox);
6020
+ this.data = Za([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false, Wa(this.data, this.toBBox);
6024
6021
  }
6025
6022
  _chooseSplitIndex(t2, e2, n2) {
6026
6023
  let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
6027
6024
  for (let i2 = e2; i2 <= n2 - e2; i2++) {
6028
- const e3 = $a(t2, 0, i2, this.toBBox), a2 = $a(t2, i2, n2, this.toBBox), l2 = Xa(e3, a2), c2 = qa(e3) + qa(a2);
6025
+ const e3 = $a(t2, 0, i2, this.toBBox), a2 = $a(t2, i2, n2, this.toBBox), l2 = Xa(e3, a2), c2 = Ja(e3) + Ja(a2);
6029
6026
  l2 < o2 ? (o2 = l2, r2 = i2, s2 = c2 < s2 ? c2 : s2) : l2 === o2 && c2 < s2 && (s2 = c2, r2 = i2);
6030
6027
  }
6031
6028
  return r2 || n2 - e2;
@@ -6037,14 +6034,14 @@ class Ha {
6037
6034
  _allDistMargin(t2, e2, n2, r2) {
6038
6035
  t2.children.sort(r2);
6039
6036
  const o2 = this.toBBox, s2 = $a(t2, 0, e2, o2), i2 = $a(t2, n2 - e2, n2, o2);
6040
- let a2 = Ja(s2) + Ja(i2);
6037
+ let a2 = qa(s2) + qa(i2);
6041
6038
  for (let r3 = e2; r3 < n2 - e2; r3++) {
6042
6039
  const e3 = t2.children[r3];
6043
- ja(s2, t2.leaf ? o2(e3) : e3), a2 += Ja(s2);
6040
+ ja(s2, t2.leaf ? o2(e3) : e3), a2 += qa(s2);
6044
6041
  }
6045
6042
  for (let r3 = n2 - e2 - 1; r3 >= e2; r3--) {
6046
6043
  const e3 = t2.children[r3];
6047
- ja(i2, t2.leaf ? o2(e3) : e3), a2 += Ja(i2);
6044
+ ja(i2, t2.leaf ? o2(e3) : e3), a2 += qa(i2);
6048
6045
  }
6049
6046
  return a2;
6050
6047
  }
@@ -6064,7 +6061,7 @@ function Wa(t2, e2) {
6064
6061
  $a(t2, 0, t2.children.length, e2, t2);
6065
6062
  }
6066
6063
  function $a(t2, e2, n2, r2, o2 = null) {
6067
- o2 || (o2 = Qa(null)), o2.minX = 1 / 0, o2.minY = 1 / 0, o2.maxX = -1 / 0, o2.maxY = -1 / 0;
6064
+ o2 || (o2 = Za(null)), o2.minX = 1 / 0, o2.minY = 1 / 0, o2.maxX = -1 / 0, o2.maxY = -1 / 0;
6068
6065
  for (let s2 = e2; s2 < n2; s2++) {
6069
6066
  const e3 = t2.children[s2];
6070
6067
  ja(o2, t2.leaf ? r2(e3) : e3);
@@ -6080,10 +6077,10 @@ function Ga(t2, e2) {
6080
6077
  function Ua(t2, e2) {
6081
6078
  return t2.minY - e2.minY;
6082
6079
  }
6083
- function qa(t2) {
6080
+ function Ja(t2) {
6084
6081
  return (t2.maxX - t2.minX) * (t2.maxY - t2.minY);
6085
6082
  }
6086
- function Ja(t2) {
6083
+ function qa(t2) {
6087
6084
  return t2.maxX - t2.minX + (t2.maxY - t2.minY);
6088
6085
  }
6089
6086
  function Ka(t2, e2) {
@@ -6096,10 +6093,10 @@ function Xa(t2, e2) {
6096
6093
  function Ya(t2, e2) {
6097
6094
  return t2.minX <= e2.minX && t2.minY <= e2.minY && e2.maxX <= t2.maxX && e2.maxY <= t2.maxY;
6098
6095
  }
6099
- function Za(t2, e2) {
6096
+ function Qa(t2, e2) {
6100
6097
  return e2.minX <= t2.maxX && e2.minY <= t2.maxY && e2.maxX >= t2.minX && e2.maxY >= t2.minY;
6101
6098
  }
6102
- function Qa(t2) {
6099
+ function Za(t2) {
6103
6100
  return { children: t2, height: 1, leaf: true, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
6104
6101
  }
6105
6102
  function tl(t2, e2, n2, r2, o2) {
@@ -6226,17 +6223,17 @@ class ol {
6226
6223
  }
6227
6224
  }
6228
6225
  }, w2);
6229
- let B2 = null;
6230
- 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);
6231
- let L2 = o.EmptyArray;
6226
+ let L2 = null;
6227
+ 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);
6228
+ let B2 = o.EmptyArray;
6232
6229
  if (b2 && S2 && _2) {
6233
6230
  let t3 = true;
6234
6231
  if (m2 > 0 && (t3 = a2 ? e2.rowStart > S2.rowStart || e2.rowEnd < S2.rowEnd : e2.colStart > S2.colStart || e2.colEnd < S2.colEnd), t3) {
6235
6232
  const t4 = sl(_2, c.unionRanges(S2, _2), a2 ? 0 : 1, a2 ? 1 : 0);
6236
- N2 && (L2 = B2._mergeNodes(t4, false));
6233
+ N2 && (B2 = L2._mergeNodes(t4, false));
6237
6234
  }
6238
6235
  }
6239
- 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;
6236
+ 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;
6240
6237
  }
6241
6238
  insertNonOverlapping(t2, e2) {
6242
6239
  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;
@@ -6978,7 +6975,7 @@ class kl {
6978
6975
  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));
6979
6976
  }
6980
6977
  if (!s2) return fa;
6981
- r2 || d2 !== u2 || (r2 = true), zl.bounds.min = d2, zl.bounds.max = u2, zl.reverse = p2, zl.processSkip = a2, zl.reuseResult = Ll;
6978
+ r2 || d2 !== u2 || (r2 = true), zl.bounds.min = d2, zl.bounds.max = u2, zl.reverse = p2, zl.processSkip = a2, zl.reuseResult = Bl;
6982
6979
  let _2 = this._major.entries(zl), S2 = Hl();
6983
6980
  const w2 = (t3) => {
6984
6981
  if (!t3.nextActive) return;
@@ -6994,7 +6991,7 @@ class kl {
6994
6991
  const e3 = _2.next();
6995
6992
  if (e3.done) return void (_2 = void 0);
6996
6993
  const n3 = e3.value, r3 = n3[1];
6997
- r3 || console.warn("issue", r3), t3.majorIndex = n3[0], t3.active = true, t3.nextActive = false, Pl.bounds.min = g2, Pl.bounds.max = f2, Pl.reverse = p2, Pl.processSkip = c2, Pl.reuseResult = Bl;
6994
+ r3 || console.warn("issue", r3), t3.majorIndex = n3[0], t3.active = true, t3.nextActive = false, Pl.bounds.min = g2, Pl.bounds.max = f2, Pl.reverse = p2, Pl.processSkip = c2, Pl.reuseResult = Ll;
6998
6995
  const o3 = r3.entries(Pl), s3 = o3.next();
6999
6996
  if (!s3.done) {
7000
6997
  const e4 = s3.value;
@@ -7117,7 +7114,7 @@ class kl {
7117
7114
  const e3 = t2[_2], n3 = e3[0], r3 = e3[1], o3 = new Ia(p2);
7118
7115
  m2(o3, r3, n3);
7119
7116
  }, w2 = this._major;
7120
- zl.bounds.min = e2, zl.bounds.max = n2, zl.reverse = false, zl.processSkip = null, zl.reuseResult = Ll;
7117
+ zl.bounds.min = e2, zl.bounds.max = n2, zl.reverse = false, zl.processSkip = null, zl.reuseResult = Bl;
7121
7118
  const y2 = w2.entries(zl);
7122
7119
  let E2 = y2.next();
7123
7120
  for (; !E2.done; ) {
@@ -7173,7 +7170,7 @@ class kl {
7173
7170
  return _2.delete(i2, a2 - i2 + 1), this._count += p2, this._dataCoords = null, 0 !== p2;
7174
7171
  }
7175
7172
  const S2 = [], w2 = this._isShared, y2 = [];
7176
- zl.bounds.min = i2, zl.bounds.max = a2, Pl.reverse = false, Pl.processSkip = null, Pl.reuseResult = Ll;
7173
+ zl.bounds.min = i2, zl.bounds.max = a2, Pl.reverse = false, Pl.processSkip = null, Pl.reuseResult = Bl;
7177
7174
  const E2 = _2.entries(zl);
7178
7175
  let C2 = E2.next();
7179
7176
  for (; !C2.done; ) {
@@ -7217,7 +7214,7 @@ class kl {
7217
7214
  if (!o2 && (C2 *= -1, c.isRangeWithinRange(f2, t2))) return this.clear(), true;
7218
7215
  let b2 = 0;
7219
7216
  const v2 = this._major, x2 = [];
7220
- if (zl.bounds.min = a2, zl.bounds.max = E2 ? Number.MAX_SAFE_INTEGER : l2, Pl.reverse = !o2, Pl.processSkip = null, Pl.reuseResult = Ll, E2 && y2) {
7217
+ if (zl.bounds.min = a2, zl.bounds.max = E2 ? Number.MAX_SAFE_INTEGER : l2, Pl.reverse = !o2, Pl.processSkip = null, Pl.reuseResult = Bl, E2 && y2) {
7221
7218
  if (!o2) {
7222
7219
  zl.bounds.max = l2;
7223
7220
  const t4 = v2.entries(zl);
@@ -7235,9 +7232,9 @@ class kl {
7235
7232
  let T2 = Number.MAX_SAFE_INTEGER;
7236
7233
  r2 && (T2 = s2 ? r2.colEnd : r2.rowEnd);
7237
7234
  const N2 = /* @__PURE__ */ new Set(), F2 = E2 ? /* @__PURE__ */ new Map() : null, k2 = [], O2 = v2.entries(zl), D2 = { bounds: { min: g2, max: m2 } };
7238
- let B2 = O2.next();
7239
- for (; !B2.done; ) {
7240
- const t3 = B2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
7235
+ let L2 = O2.next();
7236
+ for (; !L2.done; ) {
7237
+ const t3 = L2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
7241
7238
  if (E2 && F2.set(e3, n3), g2 <= s3) {
7242
7239
  const t4 = n3.getCount();
7243
7240
  E2 ? (e3 >= a2 - C2 && da(n3.runs(D2), (t5, n4) => {
@@ -7253,14 +7250,14 @@ class kl {
7253
7250
  }
7254
7251
  b2 += r4 - t4, x2.push([e3, n3]);
7255
7252
  }
7256
- B2 = O2.next();
7253
+ L2 = O2.next();
7257
7254
  }
7258
- const L2 = this._optionsMinor;
7255
+ const B2 = this._optionsMinor;
7259
7256
  let P2 = false;
7260
7257
  for (let t3 = 0; t3 < k2.length; t3++) {
7261
7258
  const e3 = k2[t3], n3 = e3.majorIndex, r3 = e3.run;
7262
7259
  let o3 = F2.get(n3);
7263
- o3 || (o3 = new Ia(L2), F2.set(n3, o3), x2.push([n3, o3]), P2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), N2 && N2.delete(n3);
7260
+ o3 || (o3 = new Ia(B2), F2.set(n3, o3), x2.push([n3, o3]), P2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), N2 && N2.delete(n3);
7264
7261
  }
7265
7262
  if (this._updateMajorSpan(x2, P2), N2 && N2.size > 0) {
7266
7263
  const t3 = Array.from(N2.values()), e3 = Ds(t3);
@@ -7352,7 +7349,7 @@ class kl {
7352
7349
  kl || (kl = {});
7353
7350
  const Ol = 12;
7354
7351
  Object.seal({ done: false, value: null });
7355
- const Dl = [-1, -1, null], Bl = Object.seal({ done: false, value: [-1, null] }), Ll = Object.seal({ done: false, value: [-1, null] }), Pl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Bl }, zl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Ll }, Hl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
7352
+ const Dl = [-1, -1, null], Ll = Object.seal({ done: false, value: [-1, null] }), Bl = Object.seal({ done: false, value: [-1, null] }), Pl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Ll }, zl = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Bl }, Hl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
7356
7353
  class Vl {
7357
7354
  constructor(t2) {
7358
7355
  if (this._l = 0, this._at = null, this._dt = oc.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");
@@ -7379,16 +7376,16 @@ class Vl {
7379
7376
  return o2 ? this._vf64[t2] : this._vf32[t2];
7380
7377
  case Gl:
7381
7378
  return !!r2;
7382
- case Jl:
7379
+ case ql:
7383
7380
  case Kl:
7384
7381
  return this._cv(n2, o2 ? Number(r2) : r2);
7385
7382
  case Ul:
7386
7383
  return this._vi64[o2 ? t2 : r2];
7387
- case ql:
7384
+ case Jl:
7388
7385
  return this._vf64[o2 ? t2 : r2];
7389
- case Zl:
7390
- return Number.NaN;
7391
7386
  case Ql:
7387
+ return Number.NaN;
7388
+ case Zl:
7392
7389
  return Number.MAX_SAFE_INTEGER;
7393
7390
  case tc:
7394
7391
  return Number.MIN_SAFE_INTEGER;
@@ -7434,7 +7431,7 @@ class Vl {
7434
7431
  let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = sc(t2[0], r2);
7435
7432
  for (let e3 = 0; e3 < s2; e3++) {
7436
7433
  const n3 = t2[e3], o3 = sc(n3, r2);
7437
- o3 !== ql && o3 !== Ul || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
7434
+ o3 !== Jl && o3 !== Ul || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
7438
7435
  }
7439
7436
  c2 || (a2 = null, i2 = null);
7440
7437
  let d2, u2, g2, m2, f2, p2, _2, S2, w2 = false;
@@ -7455,10 +7452,10 @@ class Vl {
7455
7452
  case Ul:
7456
7453
  d2[n3] = r3;
7457
7454
  break;
7458
- case ql:
7455
+ case Jl:
7459
7456
  u2[n3] = r3;
7460
7457
  break;
7461
- case Jl:
7458
+ case ql:
7462
7459
  case Kl:
7463
7460
  d2[n3] = BigInt(e2?.(y2, r3) ?? 0);
7464
7461
  break;
@@ -7483,10 +7480,10 @@ class Vl {
7483
7480
  case Ul:
7484
7481
  _2[r3] = n3, m2[n3] = o3, n3++;
7485
7482
  break;
7486
- case ql:
7483
+ case Jl:
7487
7484
  _2[r3] = n3, f2[n3] = o3, n3++;
7488
7485
  break;
7489
- case Jl:
7486
+ case ql:
7490
7487
  case Kl:
7491
7488
  d2[r3] = e2?.(y2, o3) ?? 0;
7492
7489
  break;
@@ -7498,20 +7495,20 @@ class Vl {
7498
7495
  return new Vl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
7499
7496
  }
7500
7497
  }
7501
- const Wl = 0.1, $l = 1, jl = 2, Gl = 3, Ul = 4, ql = 5, Jl = 6, Kl = 7, Xl = 8, Yl = 9, Zl = 10, Ql = 11, tc = 12, ec = 13, nc = 14, rc = 127, oc = { Undefined: nc }, sc = (t2, e2) => {
7498
+ const Wl = 0.1, $l = 1, jl = 2, Gl = 3, Ul = 4, Jl = 5, ql = 6, Kl = 7, Xl = 8, Yl = 9, Ql = 10, Zl = 11, tc = 12, ec = 13, nc = 14, rc = 127, oc = { Undefined: nc }, sc = (t2, e2) => {
7502
7499
  switch (typeof t2) {
7503
7500
  case "number":
7504
7501
  const n2 = t2;
7505
- if (Number.isNaN(n2)) return Zl;
7502
+ if (Number.isNaN(n2)) return Ql;
7506
7503
  if (n2 === 1 / 0) return Xl;
7507
7504
  if (n2 === -1 / 0) return Yl;
7508
7505
  if (Object.is(n2, -0)) return jl;
7509
- if (n2 === Number.MAX_SAFE_INTEGER) return Ql;
7506
+ if (n2 === Number.MAX_SAFE_INTEGER) return Zl;
7510
7507
  if (n2 === Number.MIN_SAFE_INTEGER) return tc;
7511
7508
  if (Number.isInteger(n2) && n2 <= 2147483647 && n2 >= -2147483648) return $l;
7512
- return Math.fround(n2) === n2 ? jl : ql;
7509
+ return Math.fround(n2) === n2 ? jl : Jl;
7513
7510
  case "string":
7514
- return Jl;
7511
+ return ql;
7515
7512
  case "boolean":
7516
7513
  return Gl;
7517
7514
  case "object":
@@ -7808,15 +7805,15 @@ class mc {
7808
7805
  1 === p2 && (t2.colEnd = t2.colStart), 1 === _2 && (t2.rowEnd = t2.rowStart), A2 = new vl({ 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 } });
7809
7806
  } else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
7810
7807
  const T2 = i2.colStart, N2 = i2.rowStart, F2 = T2 - M2.colStart, k2 = N2 - M2.rowStart, O2 = x2 === v2 ? new kt.Builder() : new kt.TransposedBuilder(), D2 = new xl({ ...s2, bounds: i2, comparator: (I2 ? hc : dc)(i2, M2) }, R2, A2);
7811
- let B2, L2 = D2.next();
7812
- for (; !L2.done; ) {
7813
- const t2 = L2.value;
7808
+ let L2, B2 = D2.next();
7809
+ for (; !B2.done; ) {
7810
+ const t2 = B2.value;
7814
7811
  let e2 = t2[1], r3 = t2[3];
7815
7812
  const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + F2, l3 = s3 ? s3.rowIndex : i3.rowIndex + k2;
7816
7813
  let c2, u3;
7817
7814
  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);
7818
7815
  const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
7819
- O2.addValue(g3, m3, u3), L2 = D2.next();
7816
+ O2.addValue(g3, m3, u3), B2 = D2.next();
7820
7817
  }
7821
7818
  if (C2 && y2 > S2 || E2 > w2) {
7822
7819
  const t2 = this._values.clone();
@@ -7828,9 +7825,9 @@ class mc {
7828
7825
  const e2 = wl(T2, N2 + w2, T2 + y2 - 1, N2 + E2 - 1, I2), n2 = Rl(C2, e2, I2);
7829
7826
  t2.setValues(n2.tuples);
7830
7827
  }
7831
- B2 = new mc(t2, { colStart: T2, rowStart: N2, colEnd: T2 + y2 - 1, rowEnd: N2 + E2 - 1 }, this._type);
7832
- } else B2 = this._cloneFromBuilder(O2, s2, y2, E2);
7833
- return B2;
7828
+ L2 = new mc(t2, { colStart: T2, rowStart: N2, colEnd: T2 + y2 - 1, rowEnd: N2 + E2 - 1 }, this._type);
7829
+ } else L2 = this._cloneFromBuilder(O2, s2, y2, E2);
7830
+ return L2;
7834
7831
  }
7835
7832
  _fill(t2, n2, r2) {
7836
7833
  if (null === r2) return void t2.delete(n2);
@@ -8190,7 +8187,7 @@ const fc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
8190
8187
  const i2 = n2.getOrientation() === e.Orientation.Column, a2 = Al(s2, i2, wl(r2?.colStart ?? 0, r2?.rowStart ?? 0, void 0, void 0, i2), true), l2 = yl(a2.bounds, i2);
8191
8188
  n2.setValues(a2.tuples);
8192
8189
  return new mc(n2, l2, o2, !r2);
8193
- }, Tc = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Nc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), Fc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), kc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), Oc = /\s+/g, Dc = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, Bc = /[\uE000-\uF8FF]/g, Lc = "#REF!", Pc = Math.pow(2, 14), zc = Math.pow(2, 20);
8190
+ }, Tc = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Nc = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), Fc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), kc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), Oc = /\s+/g, Dc = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, Lc = /[\uE000-\uF8FF]/g, Bc = "#REF!", Pc = Math.pow(2, 14), zc = Math.pow(2, 20);
8194
8191
  let Hc, Vc;
8195
8192
  const Wc = (t2) => (Hc === t2 || (Vc = "" + (t2 + 1), Hc = t2), Vc);
8196
8193
  let $c, jc;
@@ -8200,18 +8197,18 @@ const Gc = (t2) => {
8200
8197
  let e2 = "";
8201
8198
  for (++t2; t2; t2 = Math.floor((t2 - 1) / 26)) e2 = String.fromCharCode((t2 - 1) % 26 + 65) + e2;
8202
8199
  return jc = e2, jc;
8203
- }, Uc = /[^a-zA-Z0-9]/, qc = (t2) => {
8200
+ }, Uc = /[^a-zA-Z0-9]/, Jc = (t2) => {
8204
8201
  if (!t2) return null;
8205
8202
  return Gc(t2.colIndex) + Wc(t2.rowIndex);
8206
- }, Jc = (t2) => {
8207
- if (!t2) return Lc;
8203
+ }, qc = (t2) => {
8204
+ if (!t2) return Bc;
8208
8205
  const e2 = Gc(t2.colIndex), n2 = Wc(t2.rowIndex);
8209
8206
  return (t2.$colIndex ? "$" + e2 : e2) + (t2.$rowIndex ? "$" + n2 : n2);
8210
8207
  }, Kc = (t2, e2) => {
8211
8208
  let n2 = t2 ?? e2;
8212
8209
  var r2;
8213
8210
  return n2 && (n2 = Po(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Uc.test(r2) && (n2 = zo(n2))), n2;
8214
- }, Xc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Lc, Yc = (t2, e2, n2 = qc) => {
8211
+ }, Xc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Bc, Yc = (t2, e2, n2 = Jc) => {
8215
8212
  if (!t2) return null;
8216
8213
  const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
8217
8214
  if (r2 === s2 && o2 === i2) return n2({ colIndex: r2, rowIndex: o2 });
@@ -8221,8 +8218,8 @@ const Gc = (t2) => {
8221
8218
  c2 = l2 ? Gc(r2) : a2 ? Wc(o2) : n2({ colIndex: r2, rowIndex: o2 });
8222
8219
  let h2 = null;
8223
8220
  return h2 = l2 ? Gc(s2) : a2 ? Wc(i2) : n2({ colIndex: s2, rowIndex: i2 }), c2 + ":" + h2;
8224
- }, Zc = (t2, e2, n2 = Jc) => {
8225
- if (!t2) return Lc;
8221
+ }, Qc = (t2, e2, n2 = qc) => {
8222
+ if (!t2) return Bc;
8226
8223
  const r2 = t2.colIndex, o2 = t2.rowIndex, s2 = r2 === Number.MIN_SAFE_INTEGER;
8227
8224
  let i2 = null;
8228
8225
  if (o2 === Number.MIN_SAFE_INTEGER ? (i2 = Gc(r2), t2.$colIndex && (i2 = "$" + i2)) : s2 ? (i2 = Wc(o2), t2.$rowIndex && (i2 = "$" + i2)) : i2 = n2(t2), t2.sheetName || e2) {
@@ -8230,8 +8227,8 @@ const Gc = (t2) => {
8230
8227
  i2 = Xc(n3, i2);
8231
8228
  }
8232
8229
  return i2;
8233
- }, Qc = (t2, e2, n2 = Jc) => {
8234
- if (!t2) return Lc;
8230
+ }, Zc = (t2, e2, n2 = qc) => {
8231
+ if (!t2) return Bc;
8235
8232
  const r2 = void 0 !== t2.rowStart && t2.rowStart === t2.rowEnd;
8236
8233
  if (void 0 !== t2.colStart && t2.colStart === t2.colEnd && r2) return n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
8237
8234
  t2 = { ...e2, ...t2 };
@@ -8240,8 +8237,8 @@ const Gc = (t2) => {
8240
8237
  o2 ? (i2 = Gc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = Wc(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
8241
8238
  let a2 = null;
8242
8239
  return o2 ? (a2 = Gc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = Wc(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
8243
- }, th = (t2, e2, n2 = Jc) => {
8244
- const r2 = Qc(t2, e2, n2), o2 = Kc(t2?.sheetName, e2?.sheetName);
8240
+ }, th = (t2, e2, n2 = qc) => {
8241
+ const r2 = Zc(t2, e2, n2), o2 = Kc(t2?.sheetName, e2?.sheetName);
8245
8242
  return Xc(o2, r2);
8246
8243
  }, eh = (t2, e2 = false) => {
8247
8244
  if (!t2) return null;
@@ -8294,18 +8291,18 @@ const Gc = (t2) => {
8294
8291
  o2.sheetName = r2[0];
8295
8292
  } else o2 = nh(t2, e2, n2);
8296
8293
  return o2 || null;
8297
- }, oh = (t2, e2, n2 = Qc, r2 = Jc) => {
8294
+ }, oh = (t2, e2, n2 = Zc, r2 = qc) => {
8298
8295
  if (!t2 || 0 === t2.length) return null;
8299
8296
  const o2 = [], s2 = t2.length;
8300
8297
  for (let i2 = 0; i2 < s2; i2++) {
8301
8298
  const s3 = t2[i2];
8302
8299
  let a2 = null;
8303
- s3 ? void 0 !== s3.rowIndex || void 0 !== s3.colIndex ? a2 = r2(s3) : void 0 !== s3.rowStart || void 0 !== s3.colStart ? a2 = n2(s3, e2, r2) : "string" == typeof s3 && (a2 = s3) : a2 = Lc, a2 && o2.push(a2);
8300
+ s3 ? void 0 !== s3.rowIndex || void 0 !== s3.colIndex ? a2 = r2(s3) : void 0 !== s3.rowStart || void 0 !== s3.colStart ? a2 = n2(s3, e2, r2) : "string" == typeof s3 && (a2 = s3) : a2 = Bc, a2 && o2.push(a2);
8304
8301
  }
8305
8302
  return o2;
8306
- }, sh = (t2, e2, n2 = th, r2 = Jc) => {
8303
+ }, sh = (t2, e2, n2 = th, r2 = qc) => {
8307
8304
  const o2 = oh(t2, e2, n2, r2);
8308
- return o2 ? o2.join(",") : Lc;
8305
+ return o2 ? o2.join(",") : Bc;
8309
8306
  }, ih = (t2, e2, n2, r2 = rh, o2, s2 = false) => {
8310
8307
  if (null !== e2) {
8311
8308
  if ("string" == typeof e2) {
@@ -8485,7 +8482,7 @@ const Gc = (t2) => {
8485
8482
  const c2 = fh(t3, e2, n2);
8486
8483
  if (r2) {
8487
8484
  if (l2 > i2) {
8488
- const t4 = s2.slice(i2, l2).replace(Bc, (t5, e3) => ph[o2++]);
8485
+ const t4 = s2.slice(i2, l2).replace(Lc, (t5, e3) => ph[o2++]);
8489
8486
  r2.push(t4);
8490
8487
  }
8491
8488
  const a4 = t3.lastIndexOf(":");
@@ -8498,9 +8495,9 @@ const Gc = (t2) => {
8498
8495
  });
8499
8496
  if (r2 && i2 < s2.length) {
8500
8497
  const t3 = s2.slice(i2);
8501
- r2.push(t3.replace(Bc, (t4, e3) => ph[o2++]));
8498
+ r2.push(t3.replace(Lc, (t4, e3) => ph[o2++]));
8502
8499
  }
8503
- return a2 = a2.toUpperCase().replace(Oc, ""), a2.replace(Bc, Sh);
8500
+ return a2 = a2.toUpperCase().replace(Oc, ""), a2.replace(Lc, Sh);
8504
8501
  }, vh = "Must specify an address.", xh = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Ih = "Only a single cell is allowed.", Rh = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.", Ah = (t2) => `Invalid address. Can not parse ${"string" == typeof t2 ? `'${t2}' ` : ""}as an address or named item.`, Mh = () => {
8505
8502
  throw new Error("Invalid range.");
8506
8503
  };
@@ -8656,12 +8653,12 @@ class Dh {
8656
8653
  }
8657
8654
  }
8658
8655
  }
8659
- const Bh = Object.freeze({ break: true });
8660
- var Lh;
8661
- (Lh || (Lh = {})).Type = { Style: "style", Table: "table", Merge: "merge", Hyperlink: "hyperlink", Comments: "comments", Unlock: "unlock", Contentful: "contentful", Conditional: "conditional", Formula: "formula", Spill: "spill", Continuous: "continuous", Pending: "pending", CalcError: "calcError" };
8662
- const Ph = Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Table]: false, [Lh.Type.Merge]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Comments]: false, [Lh.Type.Unlock]: false, [Lh.Type.Formula]: false, [Lh.Type.Spill]: false, [Lh.Type.Pending]: false, [Lh.Type.CalcError]: false, [Lh.Type.Contentful]: false, [Lh.Type.Conditional]: false, [Lh.Type.Continuous]: false }), zh = Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Table]: false, [Lh.Type.Merge]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Comments]: false, [Lh.Type.Unlock]: false, [Lh.Type.Formula]: false, [Lh.Type.Spill]: false, [Lh.Type.Pending]: false, [Lh.Type.CalcError]: false, [Lh.Type.Conditional]: false, [Lh.Type.Continuous]: false }), Hh = Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Table]: true, [Lh.Type.Merge]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Comments]: false, [Lh.Type.Unlock]: false, [Lh.Type.Formula]: false });
8663
- Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Table]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Comments]: false, [Lh.Type.Unlock]: false, [Lh.Type.Contentful]: false, [Lh.Type.Formula]: false });
8664
- const Vh = Object.freeze({ [Lh.Type.Style]: false, [Lh.Type.Hyperlink]: false, [Lh.Type.Continuous]: false, [Lh.Type.Contentful]: false }), Wh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", $h = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, jh = "The range is outside of the bounds of the sheet.", Gh = "Listener can not be null", Uh = "We can't insert items. The sheet is protected.", qh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Jh = "Overlapping ranges can not be merged.", Kh = "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.", Xh = "Unable to partially fill over merged cells.", Yh = "Unable to sort merged cells unless they are all the same size.", Zh = "Sheet has been closed. No further operations are allowed.", Qh = "IteratorContext can only be used during visit.", td = "When using addresses directly from the sheet do not include the sheet name.", ed = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, nd = "'setValue' expects a single value; when working with an array use 'setValue'.", rd = "Multiple selection ranges can not be copied.", od = "Unable to determine source.", sd = "When pasting before or after the cut area both areas must align.";
8656
+ const Lh = Object.freeze({ break: true });
8657
+ var Bh;
8658
+ (Bh || (Bh = {})).Type = { Style: "style", Table: "table", Merge: "merge", Hyperlink: "hyperlink", Comments: "comments", Unlock: "unlock", Contentful: "contentful", Conditional: "conditional", Formula: "formula", Spill: "spill", Continuous: "continuous", Pending: "pending", CalcError: "calcError" };
8659
+ const Ph = Object.freeze({ [Bh.Type.Style]: false, [Bh.Type.Table]: false, [Bh.Type.Merge]: false, [Bh.Type.Hyperlink]: false, [Bh.Type.Comments]: false, [Bh.Type.Unlock]: false, [Bh.Type.Formula]: false, [Bh.Type.Spill]: false, [Bh.Type.Pending]: false, [Bh.Type.CalcError]: false, [Bh.Type.Contentful]: false, [Bh.Type.Conditional]: false, [Bh.Type.Continuous]: false }), zh = Object.freeze({ [Bh.Type.Style]: false, [Bh.Type.Table]: false, [Bh.Type.Merge]: false, [Bh.Type.Hyperlink]: false, [Bh.Type.Comments]: false, [Bh.Type.Unlock]: false, [Bh.Type.Formula]: false, [Bh.Type.Spill]: false, [Bh.Type.Pending]: false, [Bh.Type.CalcError]: false, [Bh.Type.Conditional]: false, [Bh.Type.Continuous]: false }), Hh = Object.freeze({ [Bh.Type.Style]: false, [Bh.Type.Table]: true, [Bh.Type.Merge]: false, [Bh.Type.Hyperlink]: false, [Bh.Type.Comments]: false, [Bh.Type.Unlock]: false, [Bh.Type.Formula]: false });
8660
+ Object.freeze({ [Bh.Type.Style]: false, [Bh.Type.Table]: false, [Bh.Type.Hyperlink]: false, [Bh.Type.Comments]: false, [Bh.Type.Unlock]: false, [Bh.Type.Contentful]: false, [Bh.Type.Formula]: false });
8661
+ const Vh = Object.freeze({ [Bh.Type.Style]: false, [Bh.Type.Hyperlink]: false, [Bh.Type.Continuous]: false, [Bh.Type.Contentful]: false }), Wh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", $h = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, jh = "The range is outside of the bounds of the sheet.", Gh = "Listener can not be null", Uh = "We can't insert items. The sheet is protected.", Jh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, qh = "Overlapping ranges can not be merged.", Kh = "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.", Xh = "Unable to partially fill over merged cells.", Yh = "Unable to sort merged cells unless they are all the same size.", Qh = "Sheet has been closed. No further operations are allowed.", Zh = "IteratorContext can only be used during visit.", td = "When using addresses directly from the sheet do not include the sheet name.", ed = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, nd = "'setValue' expects a single value; when working with an array use 'setValue'.", rd = "Multiple selection ranges can not be copied.", od = "Unable to determine source.", sd = "When pasting before or after the cut area both areas must align.";
8665
8662
  var id, ad;
8666
8663
  (ad = id || (id = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, ad.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
8667
8664
  class ld {
@@ -8717,16 +8714,16 @@ const cd = (t2) => {
8717
8714
  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;
8718
8715
  }
8719
8716
  return '"' + e2 + '"';
8720
- }, wd = "Thin", yd = "Hairline", Ed = "Extra Light", Cd = "Ultra Light", bd = "Light", vd = "Normal", xd = "Regular", Id = "Medium", Rd = "Semi Bold", Ad = "Demi Bold", Md = "Bold", Td = "Extra Bold", Nd = "Ultra Bold", Fd = "Black", kd = "Heavy", Od = "Extra Black", Dd = "Ultra Black", Bd = "lighter", Ld = "normal", Pd = "bold", zd = "bolder", Hd = /* @__PURE__ */ new Map();
8721
- Hd.set(o.textToKey(wd), 100), Hd.set(o.textToKey(yd), 100), Hd.set(o.textToKey(Ed), 200), Hd.set(o.textToKey(Cd), 200), Hd.set(o.textToKey(bd), 300), Hd.set(o.textToKey(vd), 400), Hd.set(o.textToKey(xd), 400), Hd.set(o.textToKey(Id), 500), Hd.set(o.textToKey(Rd), 600), Hd.set(o.textToKey(Ad), 600), Hd.set(o.textToKey(vd), 400), Hd.set(o.textToKey(Md), 700), Hd.set(o.textToKey(Td), 800), Hd.set(o.textToKey(Nd), 800), Hd.set(o.textToKey(Fd), 900), Hd.set(o.textToKey(kd), 900), Hd.set(o.textToKey(Od), 950), Hd.set(o.textToKey(Dd), 950), Hd.set(o.textToKey(Bd), 100), Hd.set(o.textToKey(Ld), 400), Hd.set(o.textToKey(Pd), 700), Hd.set(o.textToKey(zd), 700);
8722
- const Vd = "xx-small", Wd = "x-small", $d = "small", jd = "medium", Gd = "large", Ud = "x-large", qd = "xx-large", Jd = "xxx-large", Kd = "smaller", Xd = "larger", Yd = "math", Zd = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Qd = /* @__PURE__ */ new Map();
8723
- Qd.set(o.textToKey(Vd), (t2) => 0.4 * t2), Qd.set(o.textToKey(Wd), (t2) => 0.5 * t2), Qd.set(o.textToKey($d), (t2) => 0.6 * t2), Qd.set(o.textToKey(jd), (t2) => t2), Qd.set(o.textToKey(Gd), (t2) => 1.1 * t2), Qd.set(o.textToKey(Ud), (t2) => 1.25 * t2), Qd.set(o.textToKey(qd), (t2) => 1.5 * t2), Qd.set(o.textToKey(Jd), (t2) => 2 * t2), Qd.set(o.textToKey(Kd), (t2) => 0.9 * t2), Qd.set(o.textToKey(Xd), (t2) => 1.1 * t2), Qd.set(o.textToKey(Yd), (t2) => t2);
8717
+ }, wd = "Thin", yd = "Hairline", Ed = "Extra Light", Cd = "Ultra Light", bd = "Light", vd = "Normal", xd = "Regular", Id = "Medium", Rd = "Semi Bold", Ad = "Demi Bold", Md = "Bold", Td = "Extra Bold", Nd = "Ultra Bold", Fd = "Black", kd = "Heavy", Od = "Extra Black", Dd = "Ultra Black", Ld = "lighter", Bd = "normal", Pd = "bold", zd = "bolder", Hd = /* @__PURE__ */ new Map();
8718
+ Hd.set(o.textToKey(wd), 100), Hd.set(o.textToKey(yd), 100), Hd.set(o.textToKey(Ed), 200), Hd.set(o.textToKey(Cd), 200), Hd.set(o.textToKey(bd), 300), Hd.set(o.textToKey(vd), 400), Hd.set(o.textToKey(xd), 400), Hd.set(o.textToKey(Id), 500), Hd.set(o.textToKey(Rd), 600), Hd.set(o.textToKey(Ad), 600), Hd.set(o.textToKey(vd), 400), Hd.set(o.textToKey(Md), 700), Hd.set(o.textToKey(Td), 800), Hd.set(o.textToKey(Nd), 800), Hd.set(o.textToKey(Fd), 900), Hd.set(o.textToKey(kd), 900), Hd.set(o.textToKey(Od), 950), Hd.set(o.textToKey(Dd), 950), Hd.set(o.textToKey(Ld), 100), Hd.set(o.textToKey(Bd), 400), Hd.set(o.textToKey(Pd), 700), Hd.set(o.textToKey(zd), 700);
8719
+ const Vd = "xx-small", Wd = "x-small", $d = "small", jd = "medium", Gd = "large", Ud = "x-large", Jd = "xx-large", qd = "xxx-large", Kd = "smaller", Xd = "larger", Yd = "math", Qd = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Zd = /* @__PURE__ */ new Map();
8720
+ Zd.set(o.textToKey(Vd), (t2) => 0.4 * t2), Zd.set(o.textToKey(Wd), (t2) => 0.5 * t2), Zd.set(o.textToKey($d), (t2) => 0.6 * t2), Zd.set(o.textToKey(jd), (t2) => t2), Zd.set(o.textToKey(Gd), (t2) => 1.1 * t2), Zd.set(o.textToKey(Ud), (t2) => 1.25 * t2), Zd.set(o.textToKey(Jd), (t2) => 1.5 * t2), Zd.set(o.textToKey(qd), (t2) => 2 * t2), Zd.set(o.textToKey(Kd), (t2) => 0.9 * t2), Zd.set(o.textToKey(Xd), (t2) => 1.1 * t2), Zd.set(o.textToKey(Yd), (t2) => t2);
8724
8721
  const tu = (t2, e2 = 11, n2 = "pt") => {
8725
8722
  if (!t2) return null;
8726
8723
  let r2 = e2;
8727
8724
  t2 = t2.trim().toLowerCase();
8728
8725
  const s2 = "pt" === n2 ? es.getDeviceScale() : 1, i2 = "pt" === n2 ? 1 : es.getDeviceScale();
8729
- if (Zd.test(t2)) {
8726
+ if (Qd.test(t2)) {
8730
8727
  const e3 = parseFloat(t2);
8731
8728
  isNaN(e3) || (t2 = e3 + n2);
8732
8729
  }
@@ -8736,7 +8733,7 @@ const tu = (t2, e2 = 11, n2 = "pt") => {
8736
8733
  else if (t2.endsWith("rem")) r2 = parseFloat(t2.substring(0, t2.length - 3).trim()) * e2;
8737
8734
  else if (t2.endsWith("%")) r2 = parseFloat(t2.substring(0, t2.length - 1).trim()) / 100 * e2;
8738
8735
  else if ("string" == typeof t2) {
8739
- const n3 = o.textToKey(t2), r3 = Qd.get(n3);
8736
+ const n3 = o.textToKey(t2), r3 = Zd.get(n3);
8740
8737
  if (r3) return r3(e2);
8741
8738
  }
8742
8739
  return isNaN(r2) ? null : r2;
@@ -8834,7 +8831,7 @@ const pu = new RegExp(`(\\s*(?:${mu}))`, "g"), _u = new RegExp("(\\s*[0-9]*[.]?[
8834
8831
  Ou.set(o.textToKey(wu), xo.HorizontalAlignment.Left), Ou.set(o.textToKey(Eu), xo.HorizontalAlignment.Left), Ou.set(o.textToKey(yu), xo.HorizontalAlignment.Right), Ou.set(o.textToKey(Cu), xo.HorizontalAlignment.Right), Ou.set(o.textToKey(bu), xo.HorizontalAlignment.Center), Ou.set(o.textToKey(vu), xo.HorizontalAlignment.Justify), Ou.set(o.textToKey(xu), xo.HorizontalAlignment.Justify);
8835
8832
  const Du = /* @__PURE__ */ new Map();
8836
8833
  Du.set(o.textToKey(Iu), xo.VerticalAlignment.Bottom), Du.set(o.textToKey(Ru), xo.VerticalAlignment.Top), Du.set(o.textToKey(Au), xo.VerticalAlignment.Center), Du.set(o.textToKey(Mu), xo.VerticalAlignment.Bottom), Du.set(o.textToKey(Tu), xo.VerticalAlignment.Bottom), Du.set(o.textToKey(Nu), xo.VerticalAlignment.Top), Du.set(o.textToKey(Fu), xo.VerticalAlignment.Justify), Du.set(o.textToKey(ku), xo.VerticalAlignment.Distributed);
8837
- const Bu = (t2) => {
8834
+ const Lu = (t2) => {
8838
8835
  if (t2 instanceof ii) return { color: t2.toString() };
8839
8836
  if ("string" == typeof t2) try {
8840
8837
  return { color: "none" === t2 || "transparent" === t2 ? null : t2 };
@@ -8842,7 +8839,7 @@ const Bu = (t2) => {
8842
8839
  throw t3;
8843
8840
  }
8844
8841
  return t2;
8845
- }, Lu = { shorthand: (t2, e2) => {
8842
+ }, Bu = { shorthand: (t2, e2) => {
8846
8843
  if (!t2 || "none" === t2 || "transparent" === t2) return null;
8847
8844
  try {
8848
8845
  return e2.parseColor(t2).toString();
@@ -8861,7 +8858,7 @@ const Bu = (t2) => {
8861
8858
  })), !t2) return null;
8862
8859
  const n2 = {};
8863
8860
  return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), n2;
8864
- }, properties: { color: Lu } }, zu = { shorthand: (t2, e2) => {
8861
+ }, properties: { color: Bu } }, zu = { shorthand: (t2, e2) => {
8865
8862
  if (t2.isIBorder) return t2.getProperties();
8866
8863
  if ("string" == typeof t2) {
8867
8864
  const n2 = Su(t2, (t3) => {
@@ -8920,11 +8917,11 @@ const Bu = (t2) => {
8920
8917
  } }, rotation: { shorthand: (t2, e2) => {
8921
8918
  let n2 = t2;
8922
8919
  return "string" == typeof t2 && (n2 = parseFloat(t2)), isNaN(n2) || "number" != typeof n2 ? null : (n2 %= 360, n2 < 0 && (n2 += 360), n2);
8923
- } } } }, $u = { shorthand: (t2, e2) => "none" === t2 || "transparent" === t2 || "object" == typeof t2 && 0 === Object.keys(t2).length ? { type: $s.Type.None } : (t2.getType?.(), $s.Type.None, t2) }, ju = { shorthand: (t2) => ("object" == typeof (t2 = Bu(t2)) && t2.color && (t2.type = $s.Type.Solid), t2), merge: (t2, e2) => t2.color ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === $s.Type.Solid ? { ...e2 } : e2?.type === $s.Type.Gradient ? { type: $s.Type.Solid, color: e2?.stops?.[0]?.color ?? Gs.Scheme.Bg1 } : e2?.type === $s.Type.Pattern ? { type: $s.Type.Solid, color: e2?.foreground ?? Gs.Scheme.Bg1 } : t2 ? { ...t2 } : null), properties: { color: Lu } }, Gu = { shorthand: (t2) => ("object" == typeof t2 && t2.stops && (t2.type = $s.Type.Gradient), t2), merge: (t2, e2, n2) => t2.stops ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === $s.Type.Gradient ? { ...e2 } : e2?.type === $s.Type.Solid ? { type: $s.Type.Gradient, stops: [{ offset: 0, color: e2?.color ?? Gs.Scheme.Accent1 }, { offset: 1, color: Gs.Scheme.Bg1 }] } : e2?.type === $s.Type.Pattern ? { type: $s.Type.Gradient, stops: [{ offset: 0, color: e2?.foreground ?? Gs.Scheme.Bg1 }, { offset: 1, color: e2?.background ?? Gs.Scheme.Accent1 }] } : t2 ? { ...t2 } : null), properties: { stops: { shorthand: (t2) => ("string" == typeof t2 && (t2 = t2.split(",").map((t3) => t3.trim())), Array.isArray(t2) && (t2 = t2.map((t3, e2) => {
8920
+ } } } }, $u = { shorthand: (t2, e2) => "none" === t2 || "transparent" === t2 || "object" == typeof t2 && 0 === Object.keys(t2).length ? { type: $s.Type.None } : (t2.getType?.(), $s.Type.None, t2) }, ju = { shorthand: (t2) => ("object" == typeof (t2 = Lu(t2)) && t2.color && (t2.type = $s.Type.Solid), t2), merge: (t2, e2) => t2.color ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === $s.Type.Solid ? { ...e2 } : e2?.type === $s.Type.Gradient ? { type: $s.Type.Solid, color: e2?.stops?.[0]?.color ?? Gs.Scheme.Bg1 } : e2?.type === $s.Type.Pattern ? { type: $s.Type.Solid, color: e2?.foreground ?? Gs.Scheme.Bg1 } : t2 ? { ...t2 } : null), properties: { color: Bu } }, Gu = { shorthand: (t2) => ("object" == typeof t2 && t2.stops && (t2.type = $s.Type.Gradient), t2), merge: (t2, e2, n2) => t2.stops ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === $s.Type.Gradient ? { ...e2 } : e2?.type === $s.Type.Solid ? { type: $s.Type.Gradient, stops: [{ offset: 0, color: e2?.color ?? Gs.Scheme.Accent1 }, { offset: 1, color: Gs.Scheme.Bg1 }] } : e2?.type === $s.Type.Pattern ? { type: $s.Type.Gradient, stops: [{ offset: 0, color: e2?.foreground ?? Gs.Scheme.Bg1 }, { offset: 1, color: e2?.background ?? Gs.Scheme.Accent1 }] } : t2 ? { ...t2 } : null), properties: { stops: { shorthand: (t2) => ("string" == typeof t2 && (t2 = t2.split(",").map((t3) => t3.trim())), Array.isArray(t2) && (t2 = t2.map((t3, e2) => {
8924
8921
  if (!t3) return;
8925
8922
  let n2 = t3;
8926
- return "string" == typeof t3 && (n2 = Bu(t3)), t3.isIColor && (n2 = { color: t3.toString() }), n2;
8927
- })), t2), arrayType: { shorthand: (t2) => t2 = Bu(t2), properties: { color: Lu } } } } }, Uu = { shorthand: (t2, e2) => {
8923
+ return "string" == typeof t3 && (n2 = Lu(t3)), t3.isIColor && (n2 = { color: t3.toString() }), n2;
8924
+ })), t2), arrayType: { shorthand: (t2) => t2 = Lu(t2), properties: { color: Bu } } } } }, Uu = { shorthand: (t2, e2) => {
8928
8925
  if ("object" == typeof t2) {
8929
8926
  const e3 = t2;
8930
8927
  (e3.foreground || e3.background || e3.patternType) && (e3.type = $s.Type.Pattern, e3.patternType = e3.patternType ?? $s.BuiltInSheetPattern.Solid);
@@ -8935,20 +8932,20 @@ const Bu = (t2) => {
8935
8932
  e2?.toJSON && (e2 = e2.toJSON());
8936
8933
  const r2 = $s.BuiltInSheetPattern.MediumGray;
8937
8934
  return e2?.type === $s.Type.Pattern ? { ...e2, ...t2 } : e2?.type === $s.Type.Solid ? { patternType: r2, foreground: e2?.color ?? Gs.Named.WindowText, background: Gs.Scheme.Bg1, ...t2 } : e2?.type === $s.Type.Gradient ? { patternType: r2, foreground: e2?.stops?.[0]?.color ?? Gs.Named.WindowText, background: e2?.stops?.[1]?.color ?? Gs.Scheme.Bg1, ...t2 } : t2 ? { type: $s.Type.Pattern, patternType: $s.BuiltInSheetPattern.Solid, foreground: Gs.Named.WindowText, background: Gs.Scheme.Bg1, ...t2 } : null;
8938
- }, properties: { foreground: Lu, background: Lu } }, qu = [$u, ju, Gu, Uu], Ju = [];
8939
- for (let t2 = 0; t2 < qu.length; t2++) {
8940
- const e2 = qu[t2]?.shorthand;
8941
- Ju.push(e2);
8935
+ }, properties: { foreground: Bu, background: Bu } }, Ju = [$u, ju, Gu, Uu], qu = [];
8936
+ for (let t2 = 0; t2 < Ju.length; t2++) {
8937
+ const e2 = Ju[t2]?.shorthand;
8938
+ qu.push(e2);
8942
8939
  }
8943
- const Ku = Ju.length, Xu = { properties: { font: Vu, fill: { shorthand: (t2, e2) => {
8940
+ const Ku = qu.length, Xu = { properties: { font: Vu, fill: { shorthand: (t2, e2) => {
8944
8941
  t2.isIFill && (t2 = t2.toJSON());
8945
8942
  for (let n2 = 0; n2 < Ku; n2++) {
8946
- let r2 = Ju[n2](t2, e2);
8943
+ let r2 = qu[n2](t2, e2);
8947
8944
  if (r2?.type) return r2;
8948
8945
  }
8949
8946
  return t2;
8950
- }, getSubType: (t2) => t2.type === $s.Type.None ? $u : t2.type === $s.Type.Solid ? ju : t2.type === $s.Type.Gradient ? Gu : t2.type === $s.Type.Pattern ? Uu : null }, alignment: Wu, border: zu, numberFormat: Hu } }, Yu = { properties: { style: Xu } }, Zu = 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 }), Qu = (e2, n2, r2, s2, i2, a2 = false) => {
8951
- if (null == e2) return Zu;
8947
+ }, getSubType: (t2) => t2.type === $s.Type.None ? $u : t2.type === $s.Type.Solid ? ju : t2.type === $s.Type.Gradient ? Gu : t2.type === $s.Type.Pattern ? Uu : null }, alignment: Wu, border: zu, numberFormat: Hu } }, Yu = { properties: { style: Xu } }, Qu = 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 }), Zu = (e2, n2, r2, s2, i2, a2 = false) => {
8948
+ if (null == e2) return Qu;
8952
8949
  let l2 = "", c2 = null, h2 = null, d2 = null;
8953
8950
  if (r2 === t.Error) l2 = e2.getLabel();
8954
8951
  else if (r2 === t.RichData) l2 = "(Rich Object)";
@@ -9867,7 +9864,7 @@ const Fg = new class {
9867
9864
  } else p2 = g2;
9868
9865
  let _2 = false;
9869
9866
  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;
9870
- }, Og = (t2, e2, n2, r2) => Qu(n2, e2, t2, e2.getNumberFormat(), (t3) => r2.styles.parseColor(t3), r2.date1904), Dg = (e2, n2, r2, o2, s2 = false) => {
9867
+ }, Og = (t2, e2, n2, r2) => Zu(n2, e2, t2, e2.getNumberFormat(), (t3) => r2.styles.parseColor(t3), r2.date1904), Dg = (e2, n2, r2, o2, s2 = false) => {
9871
9868
  if (e2 === t.Null) return null;
9872
9869
  let i2 = "";
9873
9870
  if (s2) i2 = "" + r2;
@@ -9881,11 +9878,11 @@ const Fg = new class {
9881
9878
  } else i2 = t2.displayText;
9882
9879
  }
9883
9880
  return bs(i2, n2.getFont(), n2.getAlignment(), e2 === t.String, s2);
9884
- }, Bg = (e2, n2) => {
9881
+ }, Lg = (e2, n2) => {
9885
9882
  const r2 = n2.getInsets();
9886
9883
  if (e2 === t.Null) return r2;
9887
9884
  let o2 = r2;
9888
- const s2 = Lg(e2, n2), i2 = n2.getAlignment().getIndent();
9885
+ const s2 = Bg(e2, n2), i2 = n2.getAlignment().getIndent();
9889
9886
  if (i2 && (s2 === xo.HorizontalAlignment.Left || s2 === xo.HorizontalAlignment.Right)) {
9890
9887
  o2 = { ...r2 };
9891
9888
  const t2 = n2.measureText(" ".repeat(1 * i2)), e3 = Math.min(3, Math.max(1, (26 - n2.getFont().getSize()) / 2));
@@ -9893,7 +9890,7 @@ const Fg = new class {
9893
9890
  s2 === xo.HorizontalAlignment.Left ? o2.left += a2 : s2 === xo.HorizontalAlignment.Right && (o2.right += a2);
9894
9891
  }
9895
9892
  return Object.freeze(o2);
9896
- }, Lg = (e2, n2) => {
9893
+ }, Bg = (e2, n2) => {
9897
9894
  const r2 = n2.getAlignment(), o2 = r2.getRotation(), s2 = r2.getHorizontal();
9898
9895
  return 0 !== o2 && s2 === xo.HorizontalAlignment.General ? o2 > 0 && o2 < 90 || o2 > 180 && o2 <= 270 ? xo.HorizontalAlignment.Right : xo.HorizontalAlignment.Left : s2 === xo.HorizontalAlignment.General ? e2 === t.Null ? xo.HorizontalAlignment.Left : e2 === t.Boolean || e2 === t.Error ? xo.HorizontalAlignment.Center : "@" === n2.getNumberFormat() ? xo.HorizontalAlignment.Left : e2 === t.Number ? xo.HorizontalAlignment.Right : xo.HorizontalAlignment.Left : s2;
9899
9896
  }, Pg = (e2, n2, r2, o2, s2, i2, a2, l2, c2) => {
@@ -9913,12 +9910,12 @@ const Fg = new class {
9913
9910
  })(r2, o2, null !== i2 && i2.colIndex + 1 === h2, null !== a2 && a2.colIndex - 1 === h2)) return null;
9914
9911
  const d2 = Wg(r2, o2, s2, c2), u2 = o2.getAlignment(), g2 = u2.getHorizontal(), m2 = u2.getOverflow() === xo.Overflow.Wrap || r2 === t.String && (g2 === xo.HorizontalAlignment.Justify || g2 === xo.HorizontalAlignment.Distributed || u2.getVertical() === xo.VerticalAlignment.Justify || u2.getVertical() === xo.VerticalAlignment.Distributed), f2 = g2 === xo.HorizontalAlignment.Fill, _2 = g2 === xo.HorizontalAlignment.CenterContinuous || f2;
9915
9912
  if (!d2 && !_2) return null;
9916
- const S2 = ((t2) => t2 === xo.HorizontalAlignment.Center || t2 === xo.HorizontalAlignment.CenterContinuous ? p.Center : t2 === xo.HorizontalAlignment.Right ? p.Right : p.Left)(Lg(r2, o2));
9913
+ const S2 = ((t2) => t2 === xo.HorizontalAlignment.Center || t2 === xo.HorizontalAlignment.CenterContinuous ? p.Center : t2 === xo.HorizontalAlignment.Right ? p.Right : p.Left)(Bg(r2, o2));
9917
9914
  let w2 = 0, y2 = 0, E2 = 0, C2 = 0, b2 = 1;
9918
9915
  if (_2 && null !== s2 && l2) {
9919
- qg.colIndex = n2, qg.rowIndex = e2;
9916
+ Jg.colIndex = n2, Jg.rowIndex = e2;
9920
9917
  const t2 = l2.colEnd;
9921
- b2 = Math.min(c2.nextContentful(qg, t2), t2) - n2 + 1;
9918
+ b2 = Math.min(c2.nextContentful(Jg, t2), t2) - n2 + 1;
9922
9919
  }
9923
9920
  const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
9924
9921
  let R2 = x2(h2);
@@ -9926,9 +9923,9 @@ const Fg = new class {
9926
9923
  let M2 = x2(h2 + b2), T2 = M2 - R2, N2 = h2, F2 = h2;
9927
9924
  const k2 = { x: 0, y: 0, width: T2, height: d2?.height ?? 0 };
9928
9925
  const O2 = h2 - h2 + b2;
9929
- let D2 = d2 ? d2.width - T2 : 0, B2 = k2;
9930
- 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);
9931
- return { anchorBounds: k2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: B2 };
9926
+ let D2 = d2 ? d2.width - T2 : 0, L2 = k2;
9927
+ 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);
9928
+ return { anchorBounds: k2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: L2 };
9932
9929
  };
9933
9930
  class zg {
9934
9931
  constructor(t2, e2) {
@@ -9980,7 +9977,7 @@ const Hg = (t2, e2, n2, r2) => {
9980
9977
  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 === xo.Overflow.Visible, C2 = d2 && (_2 === xo.Overflow.Wrap || w2 === xo.VerticalAlignment.Justify || w2 === xo.VerticalAlignment.Distributed), b2 = (c2 ?? "") + "\0" + m2 + f2 + g2 + y2 + S2 + E2 + C2 + a2 + l2 + (c2 ? "" : r2), v2 = h2.get(b2);
9981
9978
  if (v2) return v2;
9982
9979
  let x2 = null, I2 = null;
9983
- const R2 = Bg(e2, n2), A2 = R2.top + R2.bottom + +hm(n2);
9980
+ const R2 = Lg(e2, n2), A2 = R2.top + R2.bottom + +hm(n2);
9984
9981
  let M2 = false, T2 = false;
9985
9982
  l2 && (T2 = true, (0 !== S2 || C2) && (T2 = false));
9986
9983
  const N2 = T2 ? void 0 : Dg(e2, n2, r2, s2), F2 = R2.left + R2.right + 2;
@@ -10010,7 +10007,7 @@ const Hg = (t2, e2, n2, r2) => {
10010
10007
  const k2 = { width: x2, height: I2 }, O2 = Object.freeze(k2);
10011
10008
  return h2.set(b2, O2), O2;
10012
10009
  }, Wg = (t2, e2, n2, r2) => {
10013
- const o2 = Bg(t2, e2), s2 = Lg(t2, e2);
10010
+ const o2 = Lg(t2, e2), s2 = Bg(t2, e2);
10014
10011
  let i2 = o2.left + o2.right;
10015
10012
  s2 === xo.HorizontalAlignment.Left ? i2 = o2.right : s2 === xo.HorizontalAlignment.Right ? i2 = o2.left : s2 === xo.HorizontalAlignment.Center && (i2 = o2.left + o2.right);
10016
10013
  const a2 = Vg(t2, e2, n2, r2, Number.MAX_SAFE_INTEGER, false, false);
@@ -10035,13 +10032,13 @@ class $g {
10035
10032
  }
10036
10033
  getA1() {
10037
10034
  const t2 = this._coords;
10038
- return t2 ? Qc(this._options.resolveRange(t2).getCoords()) : Lc;
10035
+ return t2 ? Zc(this._options.resolveRange(t2).getCoords()) : Bc;
10039
10036
  }
10040
10037
  getSheet() {
10041
10038
  return this._options.sheet;
10042
10039
  }
10043
10040
  select(t2) {
10044
- return this._options.opener("#" + qc(this._coords), t2);
10041
+ return this._options.opener("#" + Jc(this._coords), t2);
10045
10042
  }
10046
10043
  getColumnFilter() {
10047
10044
  if (!this._ri) return null;
@@ -10072,7 +10069,7 @@ class $g {
10072
10069
  return null === o2 || 0 === o2.leftIndex && 0 === o2.rightIndex && o2.colSpan <= 1 ? (this._to = null, null) : (this._to = o2, this._to);
10073
10070
  }
10074
10071
  getRenderHorizontalAlignment() {
10075
- return Lg(this._t, this.getStyle());
10072
+ return Bg(this._t, this.getStyle());
10076
10073
  }
10077
10074
  isEmpty() {
10078
10075
  return null === this._v && !this._ri;
@@ -10105,7 +10102,7 @@ class $g {
10105
10102
  }
10106
10103
  getInsets() {
10107
10104
  if (null === this._v) return this.getStyle().getInsets();
10108
- return Bg(this._t, this.getStyle());
10105
+ return Lg(this._t, this.getStyle());
10109
10106
  }
10110
10107
  getTextFrame(e2) {
10111
10108
  let n2, r2;
@@ -10160,7 +10157,7 @@ class $g {
10160
10157
  getNumberFormat(t2) {
10161
10158
  if (void 0 !== t2) {
10162
10159
  const e2 = this._v;
10163
- return Qu(e2, this.getStyle(), this._t, t2, (t3) => this._options.styles.parseColor(t3), this._isDate1904());
10160
+ return Zu(e2, this.getStyle(), this._t, t2, (t3) => this._options.styles.parseColor(t3), this._isDate1904());
10164
10161
  }
10165
10162
  return Og(this._t, this.getStyle(), this._v, this._options);
10166
10163
  }
@@ -10317,8 +10314,8 @@ class Gg {
10317
10314
  return this.toText();
10318
10315
  }
10319
10316
  }
10320
- const Ug = [null], qg = { colIndex: -1, rowIndex: -1 };
10321
- let Jg;
10317
+ const Ug = [null], Jg = { colIndex: -1, rowIndex: -1 };
10318
+ let qg;
10322
10319
  const Kg = (t2, n2, r2, o2 = false) => {
10323
10320
  const s2 = r2 === e.Orientation.Row, i2 = t2.length, a2 = new Array(i2);
10324
10321
  for (let e2 = 0; e2 < i2; e2++) {
@@ -10346,13 +10343,13 @@ const Kg = (t2, n2, r2, o2 = false) => {
10346
10343
  if ((r3.colStart <= s2 && r3.colEnd >= i2) !== n2) return !n2;
10347
10344
  }
10348
10345
  return n2;
10349
- }, Zg = (t2, n2) => {
10346
+ }, Qg = (t2, n2) => {
10350
10347
  if (n2) {
10351
10348
  if (t2.colStart <= n2.colStart && t2.colEnd >= n2.colEnd) return e.Orientation.Row;
10352
10349
  if (t2.rowStart <= n2.rowStart && t2.rowEnd >= n2.rowEnd) return e.Orientation.Column;
10353
10350
  }
10354
10351
  return t2 ? ((t3) => t3.rowEnd - t3.rowStart > t3.colEnd - t3.colStart ? e.Orientation.Column : e.Orientation.Row)(t2) : e.Orientation.Row;
10355
- }, Qg = () => false, tm = () => true, em = () => null, nm = () => fa, rm = () => 0, om = new class extends $g {
10352
+ }, Zg = () => false, tm = () => true, em = () => null, nm = () => fa, rm = () => 0, om = new class extends $g {
10356
10353
  constructor() {
10357
10354
  super(null, null);
10358
10355
  }
@@ -10363,17 +10360,17 @@ const Kg = (t2, n2, r2, o2 = false) => {
10363
10360
  return t.Error;
10364
10361
  }
10365
10362
  getWarnings() {
10366
- return [Lc];
10363
+ return [Bc];
10367
10364
  }
10368
10365
  getStyle(t2 = false) {
10369
- return Jg || (Jg = new Zm().getNormal(), Jg);
10366
+ return qg || (qg = new Qm().getNormal(), qg);
10370
10367
  }
10371
10368
  toString() {
10372
- return `${this._coords ? qc(this._coords) : Lc} => ${this._v ?? "{blank}"}`;
10369
+ return `${this._coords ? Jc(this._coords) : Bc} => ${this._v ?? "{blank}"}`;
10373
10370
  }
10374
10371
  }(), sm = () => im, im = { forEach: () => {
10375
- }, [Symbol.iterator]: nm, entries: nm, values: nm, select: Mh, find: Mh, calculate: Mh, getCell: () => om, getValue: em, waitForCalcs: () => Promise.resolve(im), setValue: Mh, setFormula: Mh, setValues: Mh, updateCells: Mh, getCells: () => [[om]], getStyle: Mh, getValues: () => [[null]], toText: () => "", getBounds: em, getIntersect: sm, getUnion: sm, getDifferences: Mh, getResizeBy: sm, getResizeTo: sm, getOffsetBy: sm, getOffsetTo: sm, getFixed: sm, getUsedRange: sm, getEntireRows: sm, getEntireColumns: sm, getSurrounding: Mh, getExtended: Mh, isEntireRows: Qg, isEntireColumns: Qg, isEntireRange: Qg, getWidth: rm, getHeight: rm, size: 0, sort: Mh, clear: Mh, setHyperlink: Mh, setComments: Mh, merge: Mh, unmerge: Mh, getMerges: Mh, insert: Mh, insertFrom: Mh, delete: Mh, getDefaultShiftOrientation: Mh, getDefaultSortCriteria: Mh, autoFill: Mh, autoFit: Mh, getSnapshot: Mh, copyFrom: Mh, doBatch: Mh, startIncrementalUpdates: Mh, getRowHeaders: Mh, getColumnHeaders: Mh, getCounts: Mh, getCount: rm, isContentful: Qg, addListener: Mh, getColumnStart: rm, getRowStart: rm, getColumnEnd: rm, getRowEnd: rm, getRowCount: rm, getColumnCount: rm, getVisible: Mh, getCoords: em, isEmpty: tm, toString: () => Lc, getA1: () => Lc, isInvalid: tm, getSheet: em, isReadOnly: tm, isICellRange: true };
10376
- function am(t2, e2 = null, n2 = null, r2 = Lc) {
10372
+ }, [Symbol.iterator]: nm, entries: nm, values: nm, select: Mh, find: Mh, calculate: Mh, getCell: () => om, getValue: em, waitForCalcs: () => Promise.resolve(im), setValue: Mh, setFormula: Mh, setValues: Mh, updateCells: Mh, getCells: () => [[om]], getStyle: Mh, getValues: () => [[null]], toText: () => "", getBounds: em, getIntersect: sm, getUnion: sm, getDifferences: Mh, getResizeBy: sm, getResizeTo: sm, getOffsetBy: sm, getOffsetTo: sm, getFixed: sm, getUsedRange: sm, getEntireRows: sm, getEntireColumns: sm, getSurrounding: Mh, getExtended: Mh, isEntireRows: Zg, isEntireColumns: Zg, isEntireRange: Zg, getWidth: rm, getHeight: rm, size: 0, sort: Mh, clear: Mh, setHyperlink: Mh, setComments: Mh, merge: Mh, unmerge: Mh, getMerges: Mh, insert: Mh, insertFrom: Mh, delete: Mh, getDefaultShiftOrientation: Mh, getDefaultSortCriteria: Mh, autoFill: Mh, autoFit: Mh, getSnapshot: Mh, copyFrom: Mh, doBatch: Mh, startIncrementalUpdates: Mh, getRowHeaders: Mh, getColumnHeaders: Mh, getCounts: Mh, getCount: rm, isContentful: Zg, addListener: Mh, getColumnStart: rm, getRowStart: rm, getColumnEnd: rm, getRowEnd: rm, getRowCount: rm, getColumnCount: rm, getVisible: Mh, getCoords: em, isEmpty: tm, toString: () => Bc, getA1: () => Bc, isInvalid: tm, getSheet: em, isReadOnly: tm, isICellRange: true };
10373
+ function am(t2, e2 = null, n2 = null, r2 = Bc) {
10377
10374
  return t2 || n2 ? Object.freeze({ ...im, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Yc(n2, e2) : r2 }) : im;
10378
10375
  }
10379
10376
  const lm = /^[\\+-]?[0-9]*\.?[0-9]*$/, cm = (t2, e2, r2) => {
@@ -10515,7 +10512,7 @@ const lm = /^[\\+-]?[0-9]*\.?[0-9]*$/, cm = (t2, e2, r2) => {
10515
10512
  }, gm = (t2, n2, r2, o2) => {
10516
10513
  const s2 = o2?.asJSDate;
10517
10514
  let i2;
10518
- r2 ? i2 = zh : (s2 || o2?.includeMergeOverflow) && (i2 = {}, s2 && (i2[Lh.Type.Style] = false, i2[Lh.Type.Table] = false), o2.includeMergeOverflow && (i2[Lh.Type.Merge] = false));
10515
+ r2 ? i2 = zh : (s2 || o2?.includeMergeOverflow) && (i2 = {}, s2 && (i2[Bh.Type.Style] = false, i2[Bh.Type.Table] = false), o2.includeMergeOverflow && (i2[Bh.Type.Merge] = false));
10519
10516
  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 = [];
10520
10517
  let u2, g2 = -1, m2 = null, f2 = 0;
10521
10518
  for (u2 = c2.next(); !u2.done; ) {
@@ -10555,16 +10552,16 @@ class pm {
10555
10552
  o2._c = null;
10556
10553
  }, this.context = { getCoords() {
10557
10554
  const t2 = o2._c;
10558
- if (!t2) throw new Error(Qh);
10555
+ if (!t2) throw new Error(Zh);
10559
10556
  return t2;
10560
10557
  }, getCell() {
10561
10558
  const t2 = o2._c;
10562
- if (!t2) throw new Error(Qh);
10559
+ if (!t2) throw new Error(Zh);
10563
10560
  if (this.ignoreCellDetails) throw new Error("IteratorContext can only return a cell if the forEach ignoreCellDetails has not been set to false.");
10564
10561
  const e3 = o2._r, n3 = o2._t, s2 = o2._v;
10565
10562
  return null !== s2 || e3 ? new $g(r2, t2, n3, s2, e3, o2._p, o2._n) : new $g(r2, t2);
10566
10563
  }, getType: () => o2._t, getA1(t2) {
10567
- if (!o2.context) throw new Error(Qh);
10564
+ if (!o2.context) throw new Error(Zh);
10568
10565
  let e3 = o2._c;
10569
10566
  return t2 && (e3 = { ...o2._c, ...t2 }), r2.resolveRange(e3).toString();
10570
10567
  }, toJSDate(e3) {
@@ -10593,7 +10590,7 @@ const _m = (t2, e2) => {
10593
10590
  const t4 = e2.getType();
10594
10591
  h2 !== t4 && (u2 = true);
10595
10592
  }
10596
- if (u2) return Bh;
10593
+ if (u2) return Lh;
10597
10594
  }, { orientation: o2 === e.Orientation.Row ? e.Orientation.Column : e.Orientation.Row, ignoreCellDetails: true, includeEmpty: true, address: { colStart: n2.colStart, rowStart: n2.rowStart, colEnd: a2 ? n2.colEnd : n2.colStart + 1, rowEnd: a2 ? n2.rowStart + 1 : n2.rowEnd } }), u2 && l2.forEach((t3, e2) => {
10598
10595
  d2.set(e2, t3 + "");
10599
10596
  });
@@ -10780,7 +10777,7 @@ class xm {
10780
10777
  }
10781
10778
  }
10782
10779
  var Im, Rm;
10783
- (Rm = Im || (Im = {})).fastStringToCol = dh, Rm.fastStringToCell = lh, Rm.fastStringToRange = uh, Rm.rangeToString = Yc, Rm.cellToString = Jc, Rm.normalizeA1ToR1C1 = bh, Rm.resolveRelativeToA1 = wh;
10780
+ (Rm = Im || (Im = {})).fastStringToCol = dh, Rm.fastStringToCell = lh, Rm.fastStringToRange = uh, Rm.rangeToString = Yc, Rm.cellToString = qc, Rm.normalizeA1ToR1C1 = bh, Rm.resolveRelativeToA1 = wh;
10784
10781
  const Am = (t2, e2) => t2.offset - e2.offset, Mm = (t2) => {
10785
10782
  if (!t2 || 0 === t2.size) return [];
10786
10783
  let e2 = [];
@@ -10951,7 +10948,7 @@ class Dm extends xm {
10951
10948
  return n2.length > 0 && (t2.fields = n2), e2.sort, 0 === Object.keys(t2).length ? null : t2;
10952
10949
  }
10953
10950
  }
10954
- const Bm = "A table must have a least one row for the data.", Lm = "Table1", Pm = Object.freeze({ showRowStripes: true, showColumnStripes: false, showFirstColumn: false, showLastColumn: false }), zm = (t2, e2, n2) => {
10951
+ const Lm = "A table must have a least one row for the data.", Bm = "Table1", Pm = Object.freeze({ showRowStripes: true, showColumnStripes: false, showFirstColumn: false, showLastColumn: false }), zm = (t2, e2, n2) => {
10955
10952
  if (t2.length !== e2.length) return console.warn("make columns the same length"), false;
10956
10953
  const r2 = /* @__PURE__ */ new Set();
10957
10954
  for (let t3 = 0; t3 < e2.length; t3++) {
@@ -11051,7 +11048,7 @@ class Wm extends xm {
11051
11048
  if (super({ ...t2, createDescription: "Insert Table" }), this._isUpdatingHeader = false, this._colHeadersSizeUnlistener = null, this._rowHeadersSizeUnlistener = null, this._visibleRange = null, this._isHeaderVisible = true, this._isTotalVisible = true, this._isFirstColumnVisible = true, this._isLastColumnVisible = true, this._range = null, !t2.json) throw new Error("json is required");
11052
11049
  if (!t2.json.ref) throw new Error("json.ref is required");
11053
11050
  const e2 = this;
11054
- this._styles = t2.styles ?? t2.sheet?.getStyles() ?? new Zm(), this._names = t2.names, this._sheet = t2.sheet, this._processTableUpdate = t2.processTableUpdate, this._setNameOnContainer = t2.setNameOnContainer, this._options = { ...t2 }, this._styleCache = null, this._stylePropsCache = null, this._stylesRemoveListener = this._styles.addListeners({ onTableStylesChange() {
11051
+ this._styles = t2.styles ?? t2.sheet?.getStyles() ?? new Qm(), this._names = t2.names, this._sheet = t2.sheet, this._processTableUpdate = t2.processTableUpdate, this._setNameOnContainer = t2.setNameOnContainer, this._options = { ...t2 }, this._styleCache = null, this._stylePropsCache = null, this._stylesRemoveListener = this._styles.addListeners({ onTableStylesChange() {
11055
11052
  e2._styleCache = null, e2._stylePropsCache = null, e2._getEmitter().notify("onStyleChange"), e2._getEmitter().notify("onAnyChange");
11056
11053
  } });
11057
11054
  const n2 = { ...t2?.json };
@@ -11407,7 +11404,7 @@ class Wm extends xm {
11407
11404
  _processContainerShift(t2) {
11408
11405
  if (t2.isSplit) throw new Error("We can not partially insert or remove cells as this would split a table.");
11409
11406
  const n2 = this._getState();
11410
- if (t2.after && t2.after.rowStart + n2.headerRowCount >= t2.after.rowEnd + 1) throw new Error(Bm);
11407
+ if (t2.after && t2.after.rowStart + n2.headerRowCount >= t2.after.rowEnd + 1) throw new Error(Lm);
11411
11408
  const r2 = t2.orientation === e.Orientation.Column;
11412
11409
  if (t2.amount < 0 && t2.after && !r2) {
11413
11410
  const e2 = this._getHeaderCoords();
@@ -11463,7 +11460,7 @@ class Wm extends xm {
11463
11460
  const t3 = [...r2.columns];
11464
11461
  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;
11465
11462
  }
11466
- if (this._options.setContainerCoords?.(l2), this._updateState({ anchor: l2, columns: e2 }, { description: n2 }), !this._getUsedCoords()) throw new Error(Bm);
11463
+ if (this._options.setContainerCoords?.(l2), this._updateState({ anchor: l2, columns: e2 }, { description: n2 }), !this._getUsedCoords()) throw new Error(Lm);
11467
11464
  if (i3 || s3) {
11468
11465
  const t3 = s3 ? { columns: e2, forceUpdate: true } : this._columnsFromSheet();
11469
11466
  t3 && (this._updateColumns(t3.columns, false, t3.forceUpdate, a3), this._processHeaderListener());
@@ -11521,10 +11518,10 @@ class Wm extends xm {
11521
11518
  const e2 = t2 ?? {}, n2 = { headerRowCount: 1, totalsRowCount: 0 };
11522
11519
  var r2;
11523
11520
  if (e2.name && (n2.name = e2.name), e2.ref && (e2.ref = (r2 = e2.ref) && "string" == typeof r2 ? nh(r2) : r2), this._names) {
11524
- const t3 = this._names.findValidName(n2.name ?? Lm);
11521
+ const t3 = this._names.findValidName(n2.name ?? Bm);
11525
11522
  n2.name !== t3 && (n2.name = t3);
11526
11523
  }
11527
- 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 = { ...Pm, ...e2.styleOptions };
11524
+ 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 = { ...Pm, ...e2.styleOptions };
11528
11525
  const s2 = "Insert Table";
11529
11526
  this._updateState(n2, { description: s2 });
11530
11527
  const i2 = this._columnsFromSheet();
@@ -11566,8 +11563,8 @@ class Um {
11566
11563
  }
11567
11564
  getPropertiesAt(t2, e2) {
11568
11565
  const n2 = this._table, r2 = this._styles, o2 = this._properties;
11569
- Jm.rowIndex = t2, Jm.colIndex = e2;
11570
- const s2 = n2.getVisibleCellCoords(Jm), i2 = n2.getVisibleRefRangeCoords();
11566
+ qm.rowIndex = t2, qm.colIndex = e2;
11567
+ const s2 = n2.getVisibleCellCoords(qm), i2 = n2.getVisibleRefRangeCoords();
11571
11568
  if (!i2) return null;
11572
11569
  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();
11573
11570
  let g2 = {}, m2 = false, p2 = 0;
@@ -11640,7 +11637,7 @@ class Um {
11640
11637
  return m2 && o2.headerRow && n2.getColumnFilter(h2) && !n2.getColumnFilter(h2).hasHiddenButton() && (g2.insets = { right: 15 }), g2;
11641
11638
  }
11642
11639
  }
11643
- class qm {
11640
+ class Jm {
11644
11641
  constructor(t2, e2, n2, r2) {
11645
11642
  this._styles = t2, this._isBuiltIn = n2, this._doDelete = r2, this._properties = o.deepFreeze(this._resolveProperties(e2)), this.isShownInTableStyles();
11646
11643
  }
@@ -11686,7 +11683,7 @@ class qm {
11686
11683
  return true;
11687
11684
  }
11688
11685
  }
11689
- const Jm = { rowIndex: 0, colIndex: 0 };
11686
+ const qm = { rowIndex: 0, colIndex: 0 };
11690
11687
  class Km extends Ig {
11691
11688
  constructor(t2, e2) {
11692
11689
  super(t2, c.EmptyRange, e2);
@@ -11796,7 +11793,7 @@ let Ym = class {
11796
11793
  }), 1 === t2.length && t2.splice(0, 1), this._toJSONInternal(t2);
11797
11794
  }
11798
11795
  };
11799
- class Zm {
11796
+ class Qm {
11800
11797
  constructor(t2 = null, e2 = null, n2 = 11) {
11801
11798
  this._emitter = null, this._normalRanged = null, this._theme = t2 ?? new ta().getDefaultTheme(), this._defaultFontSize = n2;
11802
11799
  const r2 = this;
@@ -11876,7 +11873,7 @@ class Zm {
11876
11873
  return $m;
11877
11874
  })(), e2 = /* @__PURE__ */ new Map();
11878
11875
  return t2.forEach((t3, n2) => {
11879
- const r2 = t3.name.toLowerCase(), o2 = new qm(this, t3, true);
11876
+ const r2 = t3.name.toLowerCase(), o2 = new Jm(this, t3, true);
11880
11877
  e2.set(r2, o2);
11881
11878
  }), e2;
11882
11879
  }
@@ -11939,7 +11936,7 @@ class Zm {
11939
11936
  const n2 = t2.toLowerCase();
11940
11937
  let r2 = this._customTableStyles.get(n2) ?? this._builtInsTableStyles.get(n2);
11941
11938
  r2 && (t2 = r2.getName());
11942
- const o2 = new qm(this, { ...e2, name: t2 }, false, this._deleteCustomTableStyle.bind(this));
11939
+ const o2 = new Jm(this, { ...e2, name: t2 }, false, this._deleteCustomTableStyle.bind(this));
11943
11940
  return this._customTableStyles.set(n2, o2), o2;
11944
11941
  }
11945
11942
  _hideOrRemoveNamed(t2) {
@@ -12090,7 +12087,7 @@ class Zm {
12090
12087
  this._mruColors = r2;
12091
12088
  }
12092
12089
  }
12093
- const Qm = "BinaryResource must have only one initial data value.", tf = "Resource is closed.";
12090
+ const Zm = "BinaryResource must have only one initial data value.", tf = "Resource is closed.";
12094
12091
  class ef {
12095
12092
  constructor(t2) {
12096
12093
  if (this._listeners = /* @__PURE__ */ new Set(), this._type = t2.type, this._name = t2?.name, t2.base64) {
@@ -12101,7 +12098,7 @@ class ef {
12101
12098
  };
12102
12099
  }
12103
12100
  if (t2.fetch) {
12104
- if (this._asArrayBufferResolve) throw new Error(Qm);
12101
+ if (this._asArrayBufferResolve) throw new Error(Zm);
12105
12102
  const e2 = t2.fetch;
12106
12103
  this._asArrayBufferResolve = async () => {
12107
12104
  let n2, r2 = null;
@@ -12111,14 +12108,14 @@ class ef {
12111
12108
  };
12112
12109
  }
12113
12110
  if (t2.buffer) {
12114
- if (this._asArrayBufferResolve) throw new Error(Qm);
12111
+ if (this._asArrayBufferResolve) throw new Error(Zm);
12115
12112
  this._asArrayBufferResolve = async () => {
12116
12113
  let e2 = null;
12117
12114
  return e2 = "function" == typeof t2.buffer ? await t2.buffer() : t2.buffer, Promise.resolve(e2);
12118
12115
  };
12119
12116
  }
12120
12117
  if (t2.file) {
12121
- if (this._asArrayBufferResolve) throw new Error(Qm);
12118
+ if (this._asArrayBufferResolve) throw new Error(Zm);
12122
12119
  this._asArrayBufferResolve = async () => {
12123
12120
  const e2 = await Promise.resolve(t2.file);
12124
12121
  return await e2.arrayBuffer();
@@ -12638,8 +12635,8 @@ class Sf {
12638
12635
  for (let t4 = 0; t4 < s3; t4++) {
12639
12636
  const n3 = o3[t4];
12640
12637
  if (n3 === l3) continue;
12641
- qf[0] = { colStart: r3.ref.colStart, rowStart: l3, colEnd: r3.ref.colEnd, rowEnd: n3 - 1, value: r3 }, qf[1] = { colStart: r3.ref.colStart, rowStart: n3, colEnd: r3.ref.colStart, rowEnd: r3.ref.rowEnd, value: r3 };
12642
- const s4 = Kf(r3, qf, e.Orientation.Row, n3);
12638
+ 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 };
12639
+ const s4 = Kf(r3, Jf, e.Orientation.Row, n3);
12643
12640
  let i4 = s4[0];
12644
12641
  _2(i4, a3), g2.push(i4), i4 = s4[1], _2(i4, a3), g2.push(i4), l3 = n3;
12645
12642
  }
@@ -12686,7 +12683,7 @@ class Sf {
12686
12683
  _formulaAt(t2, e2) {
12687
12684
  Uf.colStart = e2, Uf.rowStart = t2, Uf.colEnd = e2, Uf.rowEnd = t2;
12688
12685
  const n2 = this._formulaSpatial.search(Uf);
12689
- if (0 === n2.length) throw new Error(`No formula found at ${qc({ rowIndex: t2, colIndex: e2 })}`);
12686
+ if (0 === n2.length) throw new Error(`No formula found at ${Jc({ rowIndex: t2, colIndex: e2 })}`);
12690
12687
  return n2[0];
12691
12688
  }
12692
12689
  getDirectPrecedentsAt(t2, e2, n2) {
@@ -12938,7 +12935,7 @@ class Sf {
12938
12935
  if (this._calculation.getStatus() === lf.Status.Starting) return this._addToPending(() => {
12939
12936
  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)) };
12940
12937
  return Promise.resolve(s3);
12941
- }), Jf;
12938
+ }), qf;
12942
12939
  const s2 = this._values.getOrientation() !== e.Orientation.Row, i2 = this._spillSpatial, a2 = this._errorSpatial, l2 = this._contentfulSpatial, h2 = [], d2 = this._formulaSpatial;
12943
12940
  let u2, g2, m2 = !d2.isEmpty(), f2 = m2 ? [] : null, p2 = this._values;
12944
12941
  if (t2 && t2.tuples) {
@@ -13021,19 +13018,19 @@ class Sf {
13021
13018
  let r2;
13022
13019
  Df = 0, Hf = 0, Vf = 0, $f = 0;
13023
13020
  const s2 = this._precedentSpatial, i2 = this._formulaSpatial;
13024
- Lf = 0, Pf = 0;
13021
+ Bf = 0, Pf = 0;
13025
13022
  const a2 = this._cycleId, l2 = e2.length;
13026
13023
  for (let t3 = 0; t3 < l2; t3++) {
13027
13024
  const r3 = e2[t3];
13028
- r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, Of[Df++] = r3, Bf[Pf++] = r3);
13025
+ r3.markId !== n2 && (r3.markId = n2, r3.cycleId = a2, r3.inDegree = 0, Of[Df++] = r3, Lf[Pf++] = r3);
13029
13026
  }
13030
13027
  const c2 = (e3, n3, o2) => {
13031
13028
  (t2 || e3.state === kh) && (r2 || (r2 = []), r2.push(n3), t2 || o2(e3));
13032
13029
  }, h2 = (t3) => {
13033
- t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, Of[Df++] = t3, Bf[Pf++] = t3);
13030
+ t3.markId !== n2 && (t3.markId = n2, t3.cycleId = a2, t3.inDegree = 0, Of[Df++] = t3, Lf[Pf++] = t3);
13034
13031
  };
13035
- for (; Lf < Pf; ) {
13036
- const t3 = Bf[Lf++], e3 = t3.colIndex, n3 = t3.rowIndex;
13032
+ for (; Bf < Pf; ) {
13033
+ const t3 = Lf[Bf++], e3 = t3.colIndex, n3 = t3.rowIndex;
13037
13034
  bf.colStart = e3, bf.rowStart = n3, bf.colEnd = e3, bf.rowEnd = n3;
13038
13035
  const r3 = s2.search(bf), i3 = r3.length;
13039
13036
  if (0 === i3) t3.dependents = o.EmptyArray;
@@ -13137,8 +13134,8 @@ class Sf {
13137
13134
  const F2 = b2.formula;
13138
13135
  let k2, O2;
13139
13136
  const D2 = C2.pending;
13140
- let B2 = D2;
13141
- 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 = Fl(S2)), w2.append(T2, N2, B2)), O2 && (k2 = C2.cachedValue ?? null, !O2.__originator)) {
13137
+ let L2 = D2;
13138
+ 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 = Fl(S2)), w2.append(T2, N2, L2)), O2 && (k2 = C2.cachedValue ?? null, !O2.__originator)) {
13142
13139
  O2.__originator = l2;
13143
13140
  const t3 = C2;
13144
13141
  kf.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
@@ -13149,7 +13146,7 @@ class Sf {
13149
13146
  }, (t4) => {
13150
13147
  });
13151
13148
  }
13152
- let L2 = 1, P2 = 1;
13149
+ let B2 = 1, P2 = 1;
13153
13150
  const z2 = I2 instanceof mc;
13154
13151
  let H2;
13155
13152
  const V2 = I2 instanceof n.Spill;
@@ -13163,38 +13160,38 @@ class Sf {
13163
13160
  if (H2) {
13164
13161
  if (z2) {
13165
13162
  const t5 = I2;
13166
- L2 = t5.getWidth(), P2 = t5.getHeight();
13163
+ B2 = t5.getWidth(), P2 = t5.getHeight();
13167
13164
  }
13168
- const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + L2 - 1, rowEnd: x2 + P2 - 1 };
13165
+ const t4 = { colStart: v2, rowStart: x2, colEnd: v2 + B2 - 1, rowEnd: x2 + P2 - 1 };
13169
13166
  f2.remove(H2), H2 && H2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
13170
13167
  }
13171
13168
  }
13172
13169
  let W2 = 1, $2 = 1;
13173
13170
  const j2 = k2, G2 = j2?.isIRange;
13174
- let U2, q2 = k2 instanceof n.Spill;
13171
+ let U2, J2 = k2 instanceof n.Spill;
13175
13172
  if (G2 && j2.size > 1) {
13176
13173
  W2 = j2.getWidth(), $2 = j2.getHeight();
13177
13174
  const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + W2 - 1, rowEnd: x2 + $2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
13178
- if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), q2 = o3, !q2) {
13175
+ if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), J2 = o3, !J2) {
13179
13176
  const e4 = d2.search(t3);
13180
- if (q2 = e4.length > 1, !q2 && 1 === e4.length) {
13177
+ if (J2 = e4.length > 1, !J2 && 1 === e4.length) {
13181
13178
  const n2 = e4[0], r3 = c.intersectRanges(t3, n2, bf);
13182
- (r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (q2 = true);
13179
+ (r3 && (r3.rowEnd !== r3.rowStart || r3.colStart !== r3.colEnd) || r3.colStart !== v2 || r3.rowStart !== x2) && (J2 = true);
13183
13180
  }
13184
13181
  }
13185
13182
  let s3, i3;
13186
- if (q2) {
13183
+ if (J2) {
13187
13184
  k2 = n.BuiltIn.Spill, W2 = 1, $2 = 1;
13188
13185
  s3 = [[T2, [[N2, [k2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
13189
13186
  } else {
13190
13187
  const e4 = ff(j2, T2, N2);
13191
13188
  e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
13192
13189
  }
13193
- U2 = { ...t3, value: new Th(t3, l2, q2) }, f2.insert(U2), E2 = _f(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Nh(i3, _2) });
13190
+ U2 = { ...t3, value: new Th(t3, l2, J2) }, f2.insert(U2), E2 = _f(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Nh(i3, _2) });
13194
13191
  }
13195
- (!c.isEqualRanges(H2, U2) || q2 || V2) && (H2 && g2.insert(H2), U2 && g2.insert(U2)), W2 === L2 && $2 === P2 || (C2.state = Oh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(W2, L2) - 1, rowEnd: x2 + Math.max($2, P2) - 1 }), a2 = false);
13196
- let J2 = k2 && k2.isFormulaError ? k2 : null;
13197
- F2.getError() && (J2 = F2.getError()), (J2 || R2 && !t2) && (J2 && !J2.equals(R2) || R2 && R2.equals(J2)), C2.cachedValue = k2, s2[i2++] = C2;
13192
+ (!c.isEqualRanges(H2, U2) || J2 || V2) && (H2 && g2.insert(H2), U2 && g2.insert(U2)), W2 === B2 && $2 === P2 || (C2.state = Oh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(W2, B2) - 1, rowEnd: x2 + Math.max($2, P2) - 1 }), a2 = false);
13193
+ let q2 = k2 && k2.isFormulaError ? k2 : null;
13194
+ F2.getError() && (q2 = F2.getError()), (q2 || R2 && !t2) && (q2 && !q2.equals(R2) || R2 && R2.equals(q2)), C2.cachedValue = k2, s2[i2++] = C2;
13198
13195
  }
13199
13196
  if (o2.node = null, o2.colIndex = Number.MAX_SAFE_INTEGER, o2.rowIndex = Number.MAX_SAFE_INTEGER, w2) {
13200
13197
  const t3 = w2.done(true);
@@ -13478,13 +13475,13 @@ const Af = (t2) => new _a(t2);
13478
13475
  let Mf = 0;
13479
13476
  const Tf = 1e4, Nf = new Array(Tf), Ff = new Array(Tf), kf = /* @__PURE__ */ new Set(), Of = new Array(Tf);
13480
13477
  let Df = 0;
13481
- const Bf = new Array(Tf);
13482
- let Lf = 0, Pf = 0;
13478
+ const Lf = new Array(Tf);
13479
+ let Bf = 0, Pf = 0;
13483
13480
  const zf = new Array(Tf);
13484
13481
  let Hf = 0, Vf = 0;
13485
13482
  const Wf = new Array(Tf);
13486
13483
  let $f = 0;
13487
- const jf = new Array(Tf), Gf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Uf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, qf = [null, null], Jf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
13484
+ 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], qf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
13488
13485
  function Kf(t2, e2, n2, r2) {
13489
13486
  const o2 = t2;
13490
13487
  if (o2?.getSplit) {
@@ -13503,9 +13500,9 @@ class Yf {
13503
13500
  this._instanceScope = t2;
13504
13501
  }
13505
13502
  async _initialize() {
13506
- const t2 = await it._validate(true), e2 = Qf();
13507
- this._calcScope = e2, this._runtime = new Zf(this._options, t2);
13508
- const { initializeBuiltIns: n2 } = await import("./CtMYadTWqGlUD_vF.mjs"), r2 = this;
13503
+ const t2 = await at._validate(true), e2 = Zf();
13504
+ this._calcScope = e2, this._runtime = new Qf(this._options, t2);
13505
+ const { initializeBuiltIns: n2 } = await import("./B1bmUqcYTn6RFIm7.mjs"), r2 = this;
13509
13506
  return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
13510
13507
  }
13511
13508
  getBuiltInFunctions() {
@@ -13625,7 +13622,7 @@ class Yf {
13625
13622
  getAddress(t2, e2 = false) {
13626
13623
  t2 || (t2 = this.getPosition());
13627
13624
  const n2 = this.getEntireCoords().sheetName;
13628
- return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? yh(t3, e3) : Zc(t3, e3))(t2, n2, e2) : ((t3, e3, n3 = false) => (n3 ? yh({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3) : Zc({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3)) + ":" + (n3 ? yh({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null) : Zc({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null)))(t2, n2, e2);
13625
+ return void 0 !== t2.colIndex ? ((t3, e3, n3 = false) => n3 ? yh(t3, e3) : Qc(t3, e3))(t2, n2, e2) : ((t3, e3, n3 = false) => (n3 ? yh({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3) : Qc({ colIndex: t3.colStart, rowIndex: t3.rowStart, $colIndex: t3.$colStart, $rowIndex: t3.$rowStart, sheetName: t3.sheetName }, e3)) + ":" + (n3 ? yh({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null) : Qc({ colIndex: t3.colEnd, rowIndex: t3.rowEnd, $colIndex: t3.$colEnd, $rowIndex: t3.$rowEnd }, null)))(t2, n2, e2);
13629
13626
  }
13630
13627
  parseAsDateTime(t2, e2 = false) {
13631
13628
  return (function(t3, e3 = false, n2 = false) {
@@ -13654,7 +13651,7 @@ class Yf {
13654
13651
  return t2;
13655
13652
  }
13656
13653
  }
13657
- class Zf {
13654
+ class Qf {
13658
13655
  constructor(t2, e2) {
13659
13656
  this._options = t2, this._license = e2;
13660
13657
  }
@@ -13678,7 +13675,7 @@ class Zf {
13678
13675
  }
13679
13676
  getVersion() {
13680
13677
  try {
13681
- const t2 = "0.7.16";
13678
+ const t2 = "0.7.17";
13682
13679
  if (-1 === t2.indexOf(".env.")) return `${t2}`;
13683
13680
  } catch (t2) {
13684
13681
  return "local";
@@ -13691,7 +13688,7 @@ class Zf {
13691
13688
  return this._license?.getLicensee?.() ?? null;
13692
13689
  }
13693
13690
  }
13694
- const Qf = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () => _c }), tp = { getSheetIndex: (t2) => -1, getSheetCount: () => 1, getSheetName: () => null, getEntireCoords: () => _c, getNamed: (t2, e2) => null, getFunction: (t2) => null, isDate1904: () => false }, ep = (t2, e2) => {
13691
+ const Zf = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () => _c }), tp = { getSheetIndex: (t2) => -1, getSheetCount: () => 1, getSheetName: () => null, getEntireCoords: () => _c, getNamed: (t2, e2) => null, getFunction: (t2) => null, isDate1904: () => false }, ep = (t2, e2) => {
13695
13692
  if (!t2) return;
13696
13693
  const n2 = t2.length;
13697
13694
  if (0 === n2) return;
@@ -14222,7 +14219,7 @@ class vp extends ia {
14222
14219
  this._context = r2;
14223
14220
  const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
14224
14221
  this._functions = new bp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
14225
- const i2 = await import("./IyYqukbNKXYTC_jZ.mjs");
14222
+ const i2 = await import("./Cc4XgfsHfqiDbMwW.mjs");
14226
14223
  this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = lf.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
14227
14224
  } catch (t2) {
14228
14225
  throw this._status = lf.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
@@ -14383,8 +14380,8 @@ class Dp {
14383
14380
  return this._sheet;
14384
14381
  }
14385
14382
  }
14386
- let Bp = false;
14387
- class Lp {
14383
+ let Lp = false;
14384
+ class Bp {
14388
14385
  constructor(t2, e2) {
14389
14386
  this._mapStylesByName = /* @__PURE__ */ new Map(), this._arrStyleNames = [], this._mapStylesByName = t2, this._arrStyleNames = e2;
14390
14387
  }
@@ -14962,7 +14959,7 @@ class Gp {
14962
14959
  }
14963
14960
  }
14964
14961
  const Up = { transactional: true, ignoreDataChanges: true };
14965
- class qp extends aa {
14962
+ class Jp extends aa {
14966
14963
  constructor(t2) {
14967
14964
  super({ ...t2, type: "namedReference" });
14968
14965
  const e2 = this;
@@ -15050,7 +15047,7 @@ class qp extends aa {
15050
15047
  return this._getDescription();
15051
15048
  }
15052
15049
  }
15053
- const Jp = "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) => {
15050
+ 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) => {
15054
15051
  const e2 = [];
15055
15052
  for (let n2 = 0; n2 < t2.getCount(); n2++) {
15056
15053
  let r2 = null;
@@ -15059,10 +15056,10 @@ const Jp = "Item must be specified.", Kp = "Name must be a non-empty string", Xp
15059
15056
  } catch (t3) {
15060
15057
  b.warn("Invalid range", t3);
15061
15058
  }
15062
- e2.push(r2 ? r2.toString().toLowerCase() : Lc);
15059
+ e2.push(r2 ? r2.toString().toLowerCase() : Bc);
15063
15060
  }
15064
15061
  return e2.sort(), e2.join(",");
15065
- }, Zp = /^[^a-zA-Z_\\]+$/, Qp = /^[^a-zA-Z0-9_.]+$/;
15062
+ }, Qp = /^[^a-zA-Z_\\]+$/, Zp = /^[^a-zA-Z0-9_.]+$/;
15066
15063
  class t_ {
15067
15064
  constructor(t2) {
15068
15065
  this._emitter = null, this._closed = false, this._lastLookup = o.EmptyArray, this._lastLookupAddress = null, this._lastLookupScope = null, this._lastLookupType = null, this._allowExtrudes = false, this._options = { ...t2 };
@@ -15180,8 +15177,8 @@ class t_ {
15180
15177
  if (t2.length > 255) throw new Error("Name must not exceed 255 characters.");
15181
15178
  if (-1 !== t2.indexOf(" ")) throw new Error("Name must not contain any spaces.");
15182
15179
  const r2 = t2.trim().toLowerCase(), o2 = r2.substring(1, t2.length - 1);
15183
- if (new RegExp(Zp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
15184
- if (new RegExp(Qp).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
15180
+ if (new RegExp(Qp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
15181
+ if (new RegExp(Zp).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
15185
15182
  if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
15186
15183
  if (((t3, e3 = zc, n3 = Pc, r3 = false) => {
15187
15184
  let o3 = gh(t3, r3);
@@ -15212,7 +15209,7 @@ class t_ {
15212
15209
  if (!n2) throw new Error(Xp(t2));
15213
15210
  this._delete(o2, { description: `Delete Named '${o2.getName()}'` });
15214
15211
  }
15215
- s2 = new qp({ value: r2, addressToRanges: this._options.addressToRanges, json: { name: t2, ref: r2.toString() }, transactions: this._transactions }), this.add(s2), i2.commit();
15212
+ s2 = new Jp({ value: r2, addressToRanges: this._options.addressToRanges, json: { name: t2, ref: r2.toString() }, transactions: this._transactions }), this.add(s2), i2.commit();
15216
15213
  } catch (t3) {
15217
15214
  throw i2.rollback(), t3;
15218
15215
  }
@@ -15220,7 +15217,7 @@ class t_ {
15220
15217
  }
15221
15218
  add(t2) {
15222
15219
  if (this._closed) throw new Error(ra);
15223
- if (!t2) throw new Error(Jp);
15220
+ if (!t2) throw new Error(qp);
15224
15221
  if (!t2.getName || "string" == typeof t2) throw new Error("Add must take a 'INamed' object. To add a string use 'addReference'.");
15225
15222
  if (this._validateName(t2.getName(), t2.getScope(), false), this._options.isReadOnly?.()) throw new Error("Names are read-only.");
15226
15223
  const e2 = this._beginCommit(`Insert Named Item '${t2.getName()}'`), n2 = this._add([t2]);
@@ -15233,7 +15230,7 @@ class t_ {
15233
15230
  return e2.startsWith("_xlnm.") && (e2 = e2.substring(6)), t2.getScope() ? e2 + ":" + t2.getScope().toLowerCase() : e2;
15234
15231
  }
15235
15232
  _delete(t2, e2) {
15236
- if (!t2) throw new Error(Jp);
15233
+ if (!t2) throw new Error(qp);
15237
15234
  if (this._closed) throw new Error(ra);
15238
15235
  const n2 = this._beginCommit(e2?.description ?? `Delete Named Item '${t2.getName()}'`);
15239
15236
  let r2 = null;
@@ -15364,7 +15361,7 @@ class t_ {
15364
15361
  for (let r3 = 0; r3 < n2; r3++) {
15365
15362
  const n3 = t2[r3];
15366
15363
  try {
15367
- const t3 = this._options.addressToRanges(n3.ref), r4 = new qp({ value: t3, addressToRanges: this._options.addressToRanges, deleteFromContainer: (t4) => {
15364
+ const t3 = this._options.addressToRanges(n3.ref), r4 = new Jp({ value: t3, addressToRanges: this._options.addressToRanges, deleteFromContainer: (t4) => {
15368
15365
  this._delete(r4, t4);
15369
15366
  }, json: n3, transactions: this._transactions });
15370
15367
  e3.push(r4);
@@ -15490,7 +15487,7 @@ class s_ {
15490
15487
  this._add = t2, this._get = e2, this._getByName = n2;
15491
15488
  }
15492
15489
  add(t2, e2) {
15493
- if (!t2) throw new Error(Bm);
15490
+ if (!t2) throw new Error(Lm);
15494
15491
  return this._add(t2, e2);
15495
15492
  }
15496
15493
  getItems(t2) {
@@ -15867,7 +15864,7 @@ class u_ {
15867
15864
  class g_ extends ia {
15868
15865
  constructor(t2) {
15869
15866
  if (super({ ...t2 }), this._coordsCache = null, !t2.json) throw new Error("json is required");
15870
- this._sheet = t2.sheet, this._styles = t2.sheet?.getStyles() ?? new Zm(), this._options = { ...t2 }, t2.setOnContainerCoordsChange(this._processCoordsChange.bind(this)), t2.setCreateSpatial(this._createSpatial.bind(this)), this._getContainerRanges = t2.getContainerRanges, this._setContainerRanges = t2.setContainerRanges;
15867
+ this._sheet = t2.sheet, this._styles = t2.sheet?.getStyles() ?? new Qm(), this._options = { ...t2 }, t2.setOnContainerCoordsChange(this._processCoordsChange.bind(this)), t2.setCreateSpatial(this._createSpatial.bind(this)), this._getContainerRanges = t2.getContainerRanges, this._setContainerRanges = t2.setContainerRanges;
15871
15868
  const e2 = this;
15872
15869
  this._options.transactions.addStateListener(this, { onRestoreOrRevert() {
15873
15870
  e2._coordsCache = null;
@@ -16125,7 +16122,7 @@ const __ = (t2, n2, r2) => {
16125
16122
  const [t3, n3] = ((t4, e3) => {
16126
16123
  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 = [];
16127
16124
  t4.onStart?.();
16128
- const u2 = { rows: [], cols: [] }, g2 = new Lp(h3, d3);
16125
+ const u2 = { rows: [], cols: [] }, g2 = new Bp(h3, d3);
16129
16126
  g2.setNode(u2), t4.onTable?.(g2, l3);
16130
16127
  let m2 = 0;
16131
16128
  r3.forEachSpan((e4, n5) => {
@@ -16140,7 +16137,7 @@ const __ = (t2, n2, r2) => {
16140
16137
  const n5 = e4.getCoords();
16141
16138
  f2 = f2 + n5.max - n5.min + 1, p2.push({ min: n5.min, max: n5.max, value: e4.getCellHeader() });
16142
16139
  }, { address: l3, includeEmpty: true, includeStyles: true, ignoreHidden: false }), m2 * f2 > 5e4) {
16143
- 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.");
16140
+ 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.");
16144
16141
  return [null, null];
16145
16142
  }
16146
16143
  let _2 = 0, S2 = -1, w2 = null;
@@ -16353,7 +16350,7 @@ class k_ {
16353
16350
  let a2 = s2;
16354
16351
  if (e2?.address) {
16355
16352
  const t3 = o2._parseHeaderRangeAddress(e2?.address);
16356
- if (t3 && (a2 = Bs(s2, t3), !a2)) return;
16353
+ if (t3 && (a2 = Ls(s2, t3), !a2)) return;
16357
16354
  }
16358
16355
  const l2 = o2._scanHeaders(t2, n2, r2, i2, a2, e2);
16359
16356
  if (l2 && l2.break) return l2.break;
@@ -16392,7 +16389,7 @@ class k_ {
16392
16389
  getUsedRange(t2) {
16393
16390
  const e2 = this._header, n2 = e2._headerRunCoords;
16394
16391
  if (!n2 || n2.min < 0 || n2.max > e2._maxDataIndex) return null;
16395
- return Bs(n2, this._coords) ? e2.getRange(n2, t2) : null;
16392
+ return Ls(n2, this._coords) ? e2.getRange(n2, t2) : null;
16396
16393
  }
16397
16394
  getCount() {
16398
16395
  const t2 = this._coords;
@@ -16433,7 +16430,7 @@ class k_ {
16433
16430
  }
16434
16431
  getA1() {
16435
16432
  const t2 = this._coords, e2 = this._header, n2 = e2._isColumn ? { colStart: t2.min, colEnd: t2.max } : { rowStart: t2.min, rowEnd: t2.max };
16436
- return Qc(n2, e2._maxRangeCoords) ?? Lc;
16433
+ return Zc(n2, e2._maxRangeCoords) ?? Bc;
16437
16434
  }
16438
16435
  get [Symbol.toStringTag]() {
16439
16436
  return "[SheetCellHeaderRange]";
@@ -16519,8 +16516,8 @@ class O_ {
16519
16516
  }
16520
16517
  getA1() {
16521
16518
  const t2 = this._coords, e2 = this._header;
16522
- return ((t3, e3, n2 = Qc) => {
16523
- if (!t3) return Lc;
16519
+ return ((t3, e3, n2 = Zc) => {
16520
+ if (!t3) return Bc;
16524
16521
  const r2 = t3.length, o2 = new Array(r2);
16525
16522
  for (let s2 = 0; s2 < r2; s2++) o2[s2] = n2(t3[s2], e3);
16526
16523
  return o2.join(",");
@@ -16534,7 +16531,7 @@ class O_ {
16534
16531
  s2[e4] = { colStart: n2 ? r3.min : i2, rowStart: n2 ? i2 : r3.min, colEnd: n2 ? r3.max : a2, rowEnd: n2 ? a2 : r3.max };
16535
16532
  }
16536
16533
  return s2;
16537
- })(t2, e2._maxRangeCoords, e2._isColumn), e2._maxRangeCoords) ?? Lc;
16534
+ })(t2, e2._maxRangeCoords, e2._isColumn), e2._maxRangeCoords) ?? Bc;
16538
16535
  }
16539
16536
  get [Symbol.toStringTag]() {
16540
16537
  return "[SheetCellHeaderRanges]";
@@ -16591,7 +16588,7 @@ class D_ {
16591
16588
  const r2 = this._scaleFactor;
16592
16589
  this._defaultPxSize = w_(n2, r2);
16593
16590
  const o2 = y_(t2, n2, r2);
16594
- this._indexedSizes = o2.sizes, this._indexedHidden = o2.hidden, this._lastHeaderRead = null, this._readCache = Ls(this._lastHeaders), this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null;
16591
+ this._indexedSizes = o2.sizes, this._indexedHidden = o2.hidden, this._lastHeaderRead = null, this._readCache = Bs(this._lastHeaders), this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null;
16595
16592
  const s2 = this._options.sheet.getStyles().getNormal();
16596
16593
  let i2 = false, a2 = false, l2 = false, c2 = -1;
16597
16594
  for (let e3 = t2.length - 1; e3 >= 0; e3--) {
@@ -16617,13 +16614,13 @@ class D_ {
16617
16614
  const i2 = o2?.min ?? null, a2 = o2?.max ?? null, l2 = s2?.includeEmpty ?? false, c2 = s2?.includeStyles ?? false, h2 = s2?.ignoreHidden ?? false, d2 = s2?.includeSizes ?? false, u2 = this, g2 = this._options.sheet.getStyles().getNormal(), m2 = this._defaultSize, f2 = this._scaleFactor, p2 = this._emptyHeader;
16618
16615
  let _2;
16619
16616
  const S2 = { getCoords() {
16620
- if (!_2) throw new Error(Qh);
16617
+ if (!_2) throw new Error(Zh);
16621
16618
  return { min: _2.min, max: _2.max };
16622
16619
  }, getIndex: () => _2.min, getCellHeader() {
16623
- if (!_2) throw new Error(Qh);
16620
+ if (!_2) throw new Error(Zh);
16624
16621
  return _2.value ? n2(u2, _2.value) : p2;
16625
16622
  }, getA1(t3) {
16626
- if (!_2) throw new Error(Qh);
16623
+ if (!_2) throw new Error(Zh);
16627
16624
  return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
16628
16625
  } }, w2 = zs(e2, (e3) => {
16629
16626
  const n3 = e3.value;
@@ -16641,7 +16638,7 @@ class D_ {
16641
16638
  if (!t2) throw new Error(vh);
16642
16639
  const n2 = this._parseHeaderRangeAddress(t2);
16643
16640
  return n2.min < 0 || n2.max > this._maxDataIndex ? (function(t3) {
16644
- const e3 = { getCoords: () => null, getOrientation: () => t3.getOrientation(), toString: () => Lc, getA1: () => Lc, getCount: v_, getHeaderCount: v_, getVisibleCount: v_, isEntireHeaders: x_, forEach: b_, forEachSpan: b_, forEachVisibleSpan: b_, getUsedRange: Mh, getSnapshot: Mh, updateHeaders: Mh, clear: Mh, setHidden: Mh, setSize: Mh, at: Mh, doBatch: Mh, getSheetHeader: () => t3, isICellHeaderRange: true };
16641
+ const e3 = { getCoords: () => null, getOrientation: () => t3.getOrientation(), toString: () => Bc, getA1: () => Bc, getCount: v_, getHeaderCount: v_, getVisibleCount: v_, isEntireHeaders: x_, forEach: b_, forEachSpan: b_, forEachVisibleSpan: b_, getUsedRange: Mh, getSnapshot: Mh, updateHeaders: Mh, clear: Mh, setHidden: Mh, setSize: Mh, at: Mh, doBatch: Mh, getSheetHeader: () => t3, isICellHeaderRange: true };
16645
16642
  return Object.freeze(e3);
16646
16643
  })(this) : new k_(this, n2);
16647
16644
  }
@@ -17011,7 +17008,7 @@ class D_ {
17011
17008
  return "[SheetHeader]";
17012
17009
  }
17013
17010
  }
17014
- class B_ {
17011
+ class L_ {
17015
17012
  constructor(t2, e2) {
17016
17013
  this._c = t2, this._tvTl = e2;
17017
17014
  }
@@ -17022,7 +17019,7 @@ class B_ {
17022
17019
  return this._c;
17023
17020
  }
17024
17021
  }
17025
- const L_ = (t2) => {
17022
+ const B_ = (t2) => {
17026
17023
  let e2 = "";
17027
17024
  const n2 = yh, r2 = t2.length;
17028
17025
  for (let o2 = 0; o2 < r2; o2++) {
@@ -17052,7 +17049,7 @@ class z_ {
17052
17049
  this._c = t2, this._tokens = e2, this._references = n2 || o.EmptyArray;
17053
17050
  }
17054
17051
  getFormulaTextAt(t2, e2, n2 = false) {
17055
- return n2 ? L_(this._tokens) : P_(this._tokens, t2, e2);
17052
+ return n2 ? B_(this._tokens) : P_(this._tokens, t2, e2);
17056
17053
  }
17057
17054
  getTokensAt(t2, e2, n2) {
17058
17055
  let r2 = this._tokens;
@@ -17311,7 +17308,7 @@ class G_ {
17311
17308
  const n2 = this._state.selection;
17312
17309
  if (n2) {
17313
17310
  let e3 = {};
17314
- !n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell = qc(n2.cell)), n2.ranges && n2.ranges.length > 0 && (e3.ranges = oh(n2.ranges), void 0 !== n2.rangeIndex && -1 !== n2.rangeIndex && 0 !== n2.rangeIndex && (e3.rangeIndex = n2.rangeIndex)), Object.keys(e3).length > 0 && (t2.selection = e3);
17311
+ !n2.cell || 0 === n2.cell.colIndex && 0 === n2.cell.rowIndex || (e3.cell = Jc(n2.cell)), n2.ranges && n2.ranges.length > 0 && (e3.ranges = oh(n2.ranges), void 0 !== n2.rangeIndex && -1 !== n2.rangeIndex && 0 !== n2.rangeIndex && (e3.rangeIndex = n2.rangeIndex)), Object.keys(e3).length > 0 && (t2.selection = e3);
17315
17312
  }
17316
17313
  if (delete t2.freezePanes, this._state.freezePanes && (0 !== this._state.freezePanes.coords.colIndex || 0 !== this._state.freezePanes.coords.rowIndex)) {
17317
17314
  const e3 = {};
@@ -17365,13 +17362,13 @@ class G_ {
17365
17362
  }
17366
17363
  }
17367
17364
  async function U_() {
17368
- const { getCrypto: t2 } = await import("./C1geTB5AlM3uG2rR.mjs");
17365
+ const { getCrypto: t2 } = await import("./DhqwA8xYXp7t4NdE.mjs");
17369
17366
  return t2();
17370
17367
  }
17371
- const q_ = async (t2, e2, ...n2) => {
17372
- const r2 = J_(...n2);
17368
+ const J_ = async (t2, e2, ...n2) => {
17369
+ const r2 = q_(...n2);
17373
17370
  return t2.subtle.digest(e2, r2);
17374
- }, J_ = (...t2) => {
17371
+ }, q_ = (...t2) => {
17375
17372
  const e2 = t2.reduce((t3, e3) => t3 + e3.byteLength, 0), n2 = new Uint8Array(e2);
17376
17373
  let r2 = 0;
17377
17374
  return t2.forEach((t3) => {
@@ -17416,10 +17413,10 @@ class X_ {
17416
17413
  for (let t4 = 0; t4 < e3.length; t4++) n3[t4] = e3.charCodeAt(t4);
17417
17414
  return n3.buffer;
17418
17415
  })(e2);
17419
- let a2 = await q_(o2, n2, i2, s2.buffer);
17416
+ let a2 = await J_(o2, n2, i2, s2.buffer);
17420
17417
  for (let t3 = 0; t3 < r2; t3++) {
17421
17418
  const e3 = new Uint32Array([t3]).buffer;
17422
- a2 = await q_(o2, n2, a2, e3);
17419
+ a2 = await J_(o2, n2, a2, e3);
17423
17420
  }
17424
17421
  return K_(a2);
17425
17422
  }
@@ -17507,8 +17504,8 @@ class Y_ {
17507
17504
  return t2 = this._toJSON(t2) ?? {}, this._password && (t2.password = this._password), this._identities && (t2.identities = this._identities), t2;
17508
17505
  }
17509
17506
  }
17510
- const Z_ = Object.freeze({ selectLockedCells: true, selectUnlockedCells: true, autoFilter: false, deleteColumns: false, deleteRows: false, formatCells: false, formatColumns: false, formatRows: false, insertColumns: false, insertHyperlinks: false, insertRows: false, objects: false, pivotTables: false, scenarios: false, sheet: false, sort: false, verifier: null });
17511
- class Q_ extends Y_ {
17507
+ const Q_ = Object.freeze({ selectLockedCells: true, selectUnlockedCells: true, autoFilter: false, deleteColumns: false, deleteRows: false, formatCells: false, formatColumns: false, formatRows: false, insertColumns: false, insertHyperlinks: false, insertRows: false, objects: false, pivotTables: false, scenarios: false, sheet: false, sort: false, verifier: null });
17508
+ class Z_ extends Y_ {
17512
17509
  isAutoFilterAllowed() {
17513
17510
  return this._isPropertyAllowed("autoFilter");
17514
17511
  }
@@ -17570,7 +17567,7 @@ class Q_ extends Y_ {
17570
17567
  const n2 = Object.keys(e2);
17571
17568
  for (let r2 = 0; r2 < n2.length; r2++) {
17572
17569
  const o2 = e2[n2[r2]];
17573
- null != o2 && o2 !== Z_[n2[r2]] && (t2[n2[r2]] = o2);
17570
+ null != o2 && o2 !== Q_[n2[r2]] && (t2[n2[r2]] = o2);
17574
17571
  }
17575
17572
  }
17576
17573
  return super._toJSON(t2);
@@ -17767,7 +17764,7 @@ class tS {
17767
17764
  return false;
17768
17765
  }
17769
17766
  getA1() {
17770
- return sh(this.getCoords(), this._sheet._entireCoords, Qc, Jc);
17767
+ return sh(this.getCoords(), this._sheet._entireCoords, Zc, qc);
17771
17768
  }
17772
17769
  getSheet() {
17773
17770
  return this._sheet;
@@ -17870,7 +17867,7 @@ class eS {
17870
17867
  const o2 = this.getCoords();
17871
17868
  r2 || (r2 = o2);
17872
17869
  const s2 = this._sheet, i2 = s2._isDataColumn, a2 = { majorStart: i2 ? o2.colStart : o2.rowStart, majorEnd: i2 ? o2.colEnd : o2.rowEnd, minorStart: i2 ? o2.rowStart : o2.colStart, minorEnd: i2 ? o2.rowEnd : o2.colEnd }, l2 = (n2?.orientation ?? e.Orientation.Row) === e.Orientation.Column !== i2, h2 = Al(Array.isArray(t2) ? t2 : [[t2]], l2, a2);
17873
- return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${Qc(r2, s2._entireCoords)}`, ...n2 }, null, { isCell: true }), this;
17870
+ return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${Zc(r2, s2._entireCoords)}`, ...n2 }, null, { isCell: true }), this;
17874
17871
  }
17875
17872
  setValues(t2, e2) {
17876
17873
  if (!Array.isArray(t2)) throw new C("'setValues' expects a 2d array; when working with a single value use 'setValue'.");
@@ -17897,7 +17894,7 @@ class eS {
17897
17894
  }
17898
17895
  const h2 = { majorStart: i2 ? r2.colStart : r2.rowStart, majorEnd: i2 ? r2.colEnd : r2.rowEnd, minorStart: i2 ? r2.rowStart : r2.colStart, minorEnd: i2 ? r2.rowEnd : r2.colEnd }, d2 = a2 !== i2;
17899
17896
  let u2 = null;
17900
- return u2 = l2 ? Al(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : Rl(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${Qc(r2, s2._entireCoords)}`, ...n2 }), o2;
17897
+ return u2 = l2 ? Al(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : Rl(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${Zc(r2, s2._entireCoords)}`, ...n2 }), o2;
17901
17898
  }
17902
17899
  getValues(t2) {
17903
17900
  this._validateMaxSize(t2?.maxSize);
@@ -17908,7 +17905,7 @@ class eS {
17908
17905
  this._validateMaxSize(n2?.maxSize);
17909
17906
  const r2 = this.getCoords();
17910
17907
  return ((n3, r3, o2) => {
17911
- const s2 = { [Lh.Type.Style]: false, [Lh.Type.Table]: false }, i2 = o2?.orientation ?? e.Orientation.Row, a2 = o2?.maxSize ?? 1e4, l2 = n3({ includeEmpty: true, orientation: i2, reverse: o2?.reverse, ignoreHidden: o2?.ignoreHidden, includeMergeOverflow: o2?.includeMergeOverflow, includeRangeTypes: s2, bounds: r3 }), c2 = i2 !== e.Orientation.Row, h2 = o2?.ignoreFormatting ?? false;
17908
+ const s2 = { [Bh.Type.Style]: false, [Bh.Type.Table]: false }, i2 = o2?.orientation ?? e.Orientation.Row, a2 = o2?.maxSize ?? 1e4, l2 = n3({ includeEmpty: true, orientation: i2, reverse: o2?.reverse, ignoreHidden: o2?.ignoreHidden, includeMergeOverflow: o2?.includeMergeOverflow, includeRangeTypes: s2, bounds: r3 }), c2 = i2 !== e.Orientation.Row, h2 = o2?.ignoreFormatting ?? false;
17912
17909
  let d2, u2 = -1, g2 = 0, m2 = 0;
17913
17910
  d2 = l2.next();
17914
17911
  let f2 = "";
@@ -17918,7 +17915,7 @@ class eS {
17918
17915
  r4 !== u2 && (-1 !== u2 && (f2 += "\n"), u2 = r4, m2 = 0);
17919
17916
  const o3 = e2.context.getCell();
17920
17917
  let s3 = h2 ? o3.toTextUnformatted() : o3.toText();
17921
- o3.getType() === t.String && (Lo(s3) || (s3 = `"${s3}"`)), m2 > 0 && (f2 += ","), f2 += s3, d2 = l2.next(), m2++, g2++;
17918
+ o3.getType() === t.String && (Bo(s3) || (s3 = `"${s3}"`)), m2 > 0 && (f2 += ","), f2 += s3, d2 = l2.next(), m2++, g2++;
17922
17919
  }
17923
17920
  return f2;
17924
17921
  })(this._sheet._cellIterator.bind(this._sheet), r2, n2);
@@ -18192,14 +18189,14 @@ class eS {
18192
18189
  }
18193
18190
  getA1() {
18194
18191
  const t2 = this._sheet;
18195
- return Qc(this.getCoords(), t2._entireCoords);
18192
+ return Zc(this.getCoords(), t2._entireCoords);
18196
18193
  }
18197
18194
  get [Symbol.toStringTag]() {
18198
18195
  return "[SheetRange]";
18199
18196
  }
18200
18197
  toString() {
18201
18198
  const t2 = this._sheet;
18202
- return Qc(this.getCoords(), t2._entireCoords);
18199
+ return Zc(this.getCoords(), t2._entireCoords);
18203
18200
  }
18204
18201
  get isICellRange() {
18205
18202
  return true;
@@ -18213,11 +18210,11 @@ class hS {
18213
18210
  constructor(t2) {
18214
18211
  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;
18215
18212
  const e2 = Object.freeze({ ...t2 });
18216
- it._validate(true), this._transactions = e2.transactions ?? new O(), this._ownTransactions = !e2.transactions;
18213
+ at._validate(true), this._transactions = e2.transactions ?? new O(), this._ownTransactions = !e2.transactions;
18217
18214
  const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
18218
18215
  try {
18219
18216
  this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? nS) - 1, rowEnd: (e2.maxRows ?? rS) - 1 }), this._strings = e2.strings ?? new sf(), this._ownStrings = !e2.strings;
18220
- const t3 = e2.styles ?? new Zm();
18217
+ const t3 = e2.styles ?? new Qm();
18221
18218
  this._styles = t3, this._ownStyles = !e2.styles, this._names = e2.names ?? new t_({ addressToRanges: (t4) => r2.getRanges(t4), getCurrentScope: () => r2.getName(), isReadOnly: () => r2._options.readonly ?? false, transactions: r2._transactions }), this._ownNames = !e2.names, this._namesRemoveListener = this._names.addListeners({ onCollectionChange: (t4) => {
18222
18219
  r2._calculateFull();
18223
18220
  } }, { transactional: false }), this._calculation = e2.calculation ?? new vp({ getNamed: (t4, e3) => {
@@ -18228,7 +18225,7 @@ class hS {
18228
18225
  const o2 = async () => {
18229
18226
  this._ownsCalculation && await this._calculation.start(), this._starting = null;
18230
18227
  };
18231
- this._starting = o2(), e2.container?.setNameChangeCallback && e2.container.setNameChangeCallback(() => {
18228
+ if (this._starting = o2(), e2.container?.setNameChangeCallback && e2.container.setNameChangeCallback(() => {
18232
18229
  r2._emitter.notify("onNameChange");
18233
18230
  const t4 = this._getState().rangesListenerMap, e3 = /* @__PURE__ */ new Map();
18234
18231
  t4.forEach((t5, n4) => {
@@ -18254,7 +18251,11 @@ class hS {
18254
18251
  return r2._getRangedEntries("conditionalSpatial", [o3], { ignoreHidden: e3, fullyContained: n3, onEntry: (t5) => {
18255
18252
  s2.add(t5.getModel());
18256
18253
  } }), Array.from(s2);
18257
- }), this._isDate1904 = e2.date1904 ?? false, this._options = e2, this._emitter = new sa(this, this._transactions), this._entireRange = this.getRange(this._entireCoords), this._initState(), e2?.container?.beforeFromJSON?.(this), e2.json && this._fromJSON(e2.json), n2.commit({ forceAmend: this._ownTransactions, viewAfter: { initial: true, skipProtectionCheck: true } });
18254
+ }), this._isDate1904 = e2.date1904 ?? false, this._options = e2, this._emitter = new sa(this, this._transactions), this._entireRange = this.getRange(this._entireCoords), this._initState(), e2?.container?.beforeFromJSON?.(this), e2.json && this._fromJSON(e2.json), e2.readonly) {
18255
+ const t4 = this.getUsedRange()?.getCoords();
18256
+ this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? (t4 ? t4.colEnd + 1 : void 0) ?? nS) - 1, rowEnd: (e2.maxRows ?? (t4 ? t4.rowEnd + 1 : void 0) ?? rS) - 1 });
18257
+ }
18258
+ n2.commit({ forceAmend: this._ownTransactions, viewAfter: { initial: true, skipProtectionCheck: true } });
18258
18259
  } catch (t3) {
18259
18260
  throw n2.rollback(), t3;
18260
18261
  }
@@ -18401,22 +18402,22 @@ class hS {
18401
18402
  void 0 === a3 && (a3 = true), e2.push({ ...o4, value: { [s3]: a3 } });
18402
18403
  }
18403
18404
  };
18404
- if (s2(Lh.Type.Merge) && r2.mergeSpatial) {
18405
+ if (s2(Bh.Type.Merge) && r2.mergeSpatial) {
18405
18406
  const n3 = r2.mergeSpatial.search(t2), s3 = n3.length;
18406
18407
  for (let r3 = 0; r3 < s3; r3++) {
18407
18408
  const s4 = n3[r3], i3 = o2 ? s4 : c.intersectRanges(t2, s4);
18408
18409
  e2.push({ ...i3, value: { merge: s4.value } });
18409
18410
  }
18410
18411
  }
18411
- if (i2(Lh.Type.Unlock, r2.unlockSpatial, "unlock"), i2(Lh.Type.Contentful, r2.contentfulSpatial, "contentful"), i2(Lh.Type.Continuous, r2.continuousFillSpatial, "continuous"), i2(Lh.Type.Hyperlink, r2.hyperlinkSpatial, "hyperlink"), i2(Lh.Type.Comments, r2.commentsSpatial, "comments"), i2(Lh.Type.Style, r2.directStyleSpatial, "directStyle"), i2(Lh.Type.Formula, r2.formulaSpatial, "formula"), i2(Lh.Type.Pending, r2.pendingSpatial, "pending"), i2(Lh.Type.CalcError, r2.calcErrorsSpatial, "calcError"), i2(Lh.Type.Spill, r2.spillSpatial, "spills"), s2(Lh.Type.Conditional) && r2.conditionalSpatial) {
18412
- const o3 = r2.conditionalSpatial.search(t2), s3 = n2[Lh.Type.Conditional], i3 = o3.length;
18412
+ if (i2(Bh.Type.Unlock, r2.unlockSpatial, "unlock"), i2(Bh.Type.Contentful, r2.contentfulSpatial, "contentful"), i2(Bh.Type.Continuous, r2.continuousFillSpatial, "continuous"), i2(Bh.Type.Hyperlink, r2.hyperlinkSpatial, "hyperlink"), i2(Bh.Type.Comments, r2.commentsSpatial, "comments"), i2(Bh.Type.Style, r2.directStyleSpatial, "directStyle"), i2(Bh.Type.Formula, r2.formulaSpatial, "formula"), i2(Bh.Type.Pending, r2.pendingSpatial, "pending"), i2(Bh.Type.CalcError, r2.calcErrorsSpatial, "calcError"), i2(Bh.Type.Spill, r2.spillSpatial, "spills"), s2(Bh.Type.Conditional) && r2.conditionalSpatial) {
18413
+ const o3 = r2.conditionalSpatial.search(t2), s3 = n2[Bh.Type.Conditional], i3 = o3.length;
18413
18414
  for (let n3 = 0; n3 < i3; n3++) {
18414
18415
  const r3 = o3[n3], i4 = c.intersectRanges(t2, r3);
18415
18416
  s3 && !i4 || e2.push({ ...i4, value: { conditionals: [r3.value] } });
18416
18417
  }
18417
18418
  }
18418
- if (s2(Lh.Type.Table) && r2.tableSpatial) {
18419
- const o3 = r2.tableSpatial.search(t2), s3 = n2[Lh.Type.Table], i3 = o3.length;
18419
+ if (s2(Bh.Type.Table) && r2.tableSpatial) {
18420
+ const o3 = r2.tableSpatial.search(t2), s3 = n2[Bh.Type.Table], i3 = o3.length;
18420
18421
  for (let n3 = 0; n3 < i3; n3++) {
18421
18422
  const r3 = o3[n3];
18422
18423
  if (s3 && !c.isRangeWithinRange(t2, r3)) continue;
@@ -18616,7 +18617,7 @@ class hS {
18616
18617
  const e3 = (t3) => this._getState().cellValuesGrid.getValueAt(t3.rowStart, t3.colStart), n3 = [], r3 = t2.length;
18617
18618
  for (let o3 = 0; o3 < r3; o3++) {
18618
18619
  const r4 = t2[o3];
18619
- n3.push({ ...r4, value: new B_(r4, e3) });
18620
+ n3.push({ ...r4, value: new L_(r4, e3) });
18620
18621
  }
18621
18622
  o2.load(n3);
18622
18623
  }
@@ -18704,9 +18705,9 @@ class hS {
18704
18705
  (r2 = r2 ?? ((t3, e2) => {
18705
18706
  b2._validateCoords(t3, e2 ?? jh);
18706
18707
  }))(E2);
18707
- const v2 = { [Lh.Type.Style]: false, [Lh.Type.Table]: false };
18708
+ const v2 = { [Bh.Type.Style]: false, [Bh.Type.Table]: false };
18708
18709
  let x2 = false;
18709
- m2 && this._hasRangedEntries("unlockSpatial", E2) && (v2[Lh.Type.Unlock] = false, x2 = true), this._hasRangedEntries("mergeSpatial", E2) && (v2[Lh.Type.Merge] = false, x2 = true);
18710
+ m2 && this._hasRangedEntries("unlockSpatial", E2) && (v2[Bh.Type.Unlock] = false, x2 = true), this._hasRangedEntries("mergeSpatial", E2) && (v2[Bh.Type.Merge] = false, x2 = true);
18710
18711
  const I2 = this._rangeStateIterator({ bounds: E2, orientation: g2, includeRangeTypes: v2 });
18711
18712
  let R2 = I2.next(), A2 = -1, M2 = -1, T2 = -1, N2 = -1, F2 = null;
18712
18713
  if (!R2.done) {
@@ -18725,19 +18726,19 @@ class hS {
18725
18726
  } while (F2);
18726
18727
  return F2;
18727
18728
  };
18728
- const O2 = c2.getState(this), D2 = O2.cellValuesGrid.clone(), B2 = O2.calcGraph.clone(), L2 = O2.formulaSpatial.clone(), P2 = O2.spillSpatial.clone(), z2 = O2.pendingSpatial.clone(), H2 = O2.calcErrorsSpatial.clone(), V2 = O2.contentfulSpatial.clone(), W2 = Fl(u2), $2 = Fl(u2, (t3, e2) => {
18729
+ const O2 = c2.getState(this), D2 = O2.cellValuesGrid.clone(), L2 = O2.calcGraph.clone(), B2 = O2.formulaSpatial.clone(), P2 = O2.spillSpatial.clone(), z2 = O2.pendingSpatial.clone(), H2 = O2.calcErrorsSpatial.clone(), V2 = O2.contentfulSpatial.clone(), W2 = Fl(u2), $2 = Fl(u2, (t3, e2) => {
18729
18730
  if (t3 === e2) return e2;
18730
18731
  }), j2 = Fl(u2, (t3, e2) => {
18731
18732
  if (t3 === e2) return e2;
18732
18733
  }), G2 = Fl(u2, (t3, e2) => {
18733
18734
  if (t3 === e2) return e2;
18734
18735
  }), U2 = [];
18735
- let q2 = null, J2 = null;
18736
+ let J2 = null, q2 = null;
18736
18737
  if (false !== n2?.textParser) {
18737
18738
  const t3 = n2 && true !== n2.textParser ? n2.textParser : {};
18738
- J2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, q2 = new pm(p2, null, this._cellOptions);
18739
+ q2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t3 }, J2 = new pm(p2, null, this._cellOptions);
18739
18740
  }
18740
- const K2 = [], X2 = this._cellOptions, Y2 = /* @__PURE__ */ new Map(), Z2 = wm, Q2 = (t3, e2, n3) => {
18741
+ const K2 = [], X2 = this._cellOptions, Y2 = /* @__PURE__ */ new Map(), Q2 = wm, Z2 = (t3, e2, n3) => {
18741
18742
  const r3 = k2?.(e2, n3);
18742
18743
  if (r3?.merge) {
18743
18744
  const t4 = r3.merge.getCoords(), o4 = u2 ? t4.colStart : t4.rowStart, s3 = u2 ? t4.rowStart : t4.colStart;
@@ -18750,13 +18751,13 @@ class hS {
18750
18751
  U2.push({ colStart: u2 ? e2 : n3, rowStart: u2 ? n3 : e2, colEnd: (u2 ? e2 : n3) + t4.width - 1, rowEnd: (u2 ? n3 : e2) + t4.height - 1 });
18751
18752
  }
18752
18753
  }
18753
- let o3 = kg(t3, X2, J2, Y2);
18754
+ let o3 = kg(t3, X2, q2, Y2);
18754
18755
  if (void 0 === o3) return;
18755
18756
  const a3 = o3.value;
18756
18757
  if (o3.stringToParse) {
18757
- SS[0].colIndex = u2 ? e2 : n3, SS[0].rowIndex = u2 ? n3 : e2, SS[1] = a3, SS[2] = r3, q2.setState(SS);
18758
- const t4 = J2?.parse(o3.stringToParse, q2.context), s3 = kg(t4, X2, J2, Y2, true);
18759
- if (q2.clear(), null === s3) return s3;
18758
+ SS[0].colIndex = u2 ? e2 : n3, SS[0].rowIndex = u2 ? n3 : e2, SS[1] = a3, SS[2] = r3, J2.setState(SS);
18759
+ const t4 = q2?.parse(o3.stringToParse, J2.context), s3 = kg(t4, X2, q2, Y2, true);
18760
+ if (J2.clear(), null === s3) return s3;
18760
18761
  void 0 !== s3 && (o3 = { ...s3 });
18761
18762
  }
18762
18763
  if (m2) {
@@ -18789,9 +18790,9 @@ class hS {
18789
18790
  for (let t6 = 0; t6 < a3; t6++) {
18790
18791
  const e4 = i5[t6];
18791
18792
  let r5 = null;
18792
- if (x2 || "number" != typeof e4 ? (x2 || null !== e4 || s2) && (r5 = Q2(e4, n3, c3)) : r5 = e4, null == r5) {
18793
+ if (x2 || "number" != typeof e4 ? (x2 || null !== e4 || s2) && (r5 = Z2(e4, n3, c3)) : r5 = e4, null == r5) {
18793
18794
  if (null === r5 && W2.append(n3, c3), h3.length > 0) {
18794
- const t7 = Z2(h3, p2);
18795
+ const t7 = Q2(h3, p2);
18795
18796
  o4.push([l3, t7]), h3 = [];
18796
18797
  }
18797
18798
  l3 = c3 + 1;
@@ -18799,7 +18800,7 @@ class hS {
18799
18800
  c3++;
18800
18801
  }
18801
18802
  if (et2 = c3, h3.length > 0) {
18802
- const t6 = Z2(h3, p2);
18803
+ const t6 = Q2(h3, p2);
18803
18804
  o4.push([l3, t6]), h3 = null;
18804
18805
  }
18805
18806
  }
@@ -18809,22 +18810,22 @@ class hS {
18809
18810
  for (let t4 = 0; t4 < o3; t4++) {
18810
18811
  const e2 = r3[t4];
18811
18812
  D2.delete(r3[t4]), V2.insertNonOverlapping({ ...e2, value: null });
18812
- const n3 = B2.delete(e2);
18813
- this._updateFormulaSpatial(L2, null, n3);
18813
+ const n3 = L2.delete(e2);
18814
+ this._updateFormulaSpatial(B2, null, n3);
18814
18815
  }
18815
18816
  let i3;
18816
18817
  K2.length > 0 && (D2.setValues(K2), i3 = { tuples: K2, bounds: l2 });
18817
18818
  let g3, m3 = G2.done();
18818
18819
  if (m3.length > 1 && (m3 = hl(m3, e.Orientation.Column, 1)), i3 || m3.length > 0) {
18819
- const t4 = B2.setInputs(i3, m3);
18820
- g3 = this._updateFormulaSpatial(L2, t4.inserts, t4.removes, O2.directStyleSpatial);
18820
+ const t4 = L2.setInputs(i3, m3);
18821
+ g3 = this._updateFormulaSpatial(B2, t4.inserts, t4.removes, O2.directStyleSpatial);
18821
18822
  }
18822
18823
  const f3 = ym(K2, u2), C2 = f3.length;
18823
18824
  for (let t4 = 0; t4 < C2; t4++) V2.insertNonOverlapping(f3[t4]);
18824
18825
  const b3 = $2.done();
18825
18826
  b3.length > 0 && this._updateStyles(b3), U2.length > 0 && this._merge(U2);
18826
18827
  const v3 = j2.done();
18827
- if (v3.length > 0 && this._setHyperlinks(v3), this._updateState({ cellValuesGrid: D2, contentfulSpatial: V2, calcGraph: B2, formulaSpatial: L2, spillSpatial: P2, pendingSpatial: z2, calcErrorsSpatial: H2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
18828
+ if (v3.length > 0 && this._setHyperlinks(v3), this._updateState({ cellValuesGrid: D2, contentfulSpatial: V2, calcGraph: L2, formulaSpatial: B2, spillSpatial: P2, pendingSpatial: z2, calcErrorsSpatial: H2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
18828
18829
  const t4 = "boolean" == typeof n2.autoFit ? ES : n2.autoFit;
18829
18830
  this._autoFit([E2], t4);
18830
18831
  }
@@ -18875,7 +18876,7 @@ class hS {
18875
18876
  const t3 = dm(c2 ? this._rowHeaders : this._colHeaders);
18876
18877
  x2 = ga(t3);
18877
18878
  }
18878
- const R2 = this._cellIterator({ bounds: u2, orientation: l2, ignoreHidden: !I2 && l2, includeRangeTypes: { [Lh.Type.Style]: false, [Lh.Type.Merge]: false } }), A2 = c2 ? s2 : o2;
18879
+ const R2 = this._cellIterator({ bounds: u2, orientation: l2, ignoreHidden: !I2 && l2, includeRangeTypes: { [Bh.Type.Style]: false, [Bh.Type.Merge]: false } }), A2 = c2 ? s2 : o2;
18879
18880
  let M2 = (c2 ? u2.rowStart : u2.colStart) - A2, T2 = R2.next();
18880
18881
  for (; !T2.done; ) {
18881
18882
  const t3 = T2.value.context, e2 = t3.getCell();
@@ -18898,7 +18899,7 @@ class hS {
18898
18899
  if (0 === w2.length) return;
18899
18900
  const N2 = /* @__PURE__ */ new Map(), F2 = /* @__PURE__ */ new Map(), k2 = n2?.collators ?? ca.DefaultCollators, O2 = k2.length;
18900
18901
  for (let t3 = 0; t3 < O2; t3++) N2.set(k2[t3].type, k2[t3].compare), F2.set(k2[t3].type, t3);
18901
- let D2 = null, B2 = null, L2 = null;
18902
+ let D2 = null, L2 = null, B2 = null;
18902
18903
  w2.sort((t3, e2) => {
18903
18904
  const n3 = p2.length;
18904
18905
  for (let r3 = 0; r3 < n3; r3++) {
@@ -18913,14 +18914,14 @@ class hS {
18913
18914
  let t4 = F2.get(h3);
18914
18915
  u3 = F2.get(d2) - t4;
18915
18916
  } else {
18916
- let t4 = B2;
18917
+ let t4 = L2;
18917
18918
  if (D2 !== h3) {
18918
- t4 = N2.get(h3), B2 = t4, D2 = h3;
18919
+ t4 = N2.get(h3), L2 = t4, D2 = h3;
18919
18920
  let e3 = F2.get(d2);
18920
18921
  const r4 = k2[e3].defaultOptions;
18921
- L2 = { ...r4, ...n4.collatorOptions };
18922
+ B2 = { ...r4, ...n4.collatorOptions };
18922
18923
  }
18923
- u3 = t4(i3, a3, L2);
18924
+ u3 = t4(i3, a3, B2);
18924
18925
  }
18925
18926
  return n4.reverse && (u3 *= -1), u3;
18926
18927
  }
@@ -18975,24 +18976,24 @@ class hS {
18975
18976
  const F2 = N2 ? A2 + 1 : M2, k2 = (N2 ? T2 : R2 - 1) - F2 + 1, O2 = i2 ? t2.colEnd : t2.rowEnd;
18976
18977
  l2.push(c.unionRanges(p2, t2));
18977
18978
  const D2 = [];
18978
- let B2 = null;
18979
+ let L2 = null;
18979
18980
  h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
18980
- const L2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Lh.Type.Style]: false } });
18981
- let P2 = L2.next();
18981
+ const B2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Bh.Type.Style]: false } });
18982
+ let P2 = B2.next();
18982
18983
  for (; !P2.done; ) {
18983
18984
  const t3 = P2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
18984
- B2?.oppositeIndex !== n3[v2] && (B2 = { oppositeIndex: n3[v2], lastIndex: N2 ? R2 - 1 : A2 + 1, values: [] }, D2.push(B2));
18985
+ L2?.oppositeIndex !== n3[v2] && (L2 = { oppositeIndex: n3[v2], lastIndex: N2 ? R2 - 1 : A2 + 1, values: [] }, D2.push(L2));
18985
18986
  const r3 = n3[b2];
18986
- if (N2) for (let t4 = B2.lastIndex + 1; t4 < r3; t4++) B2.values.push(null);
18987
- else for (let t4 = B2.lastIndex - 1; t4 > r3; t4--) B2.values.push(null);
18988
- B2.lastIndex = r3;
18987
+ if (N2) for (let t4 = L2.lastIndex + 1; t4 < r3; t4++) L2.values.push(null);
18988
+ else for (let t4 = L2.lastIndex - 1; t4 > r3; t4--) L2.values.push(null);
18989
+ L2.lastIndex = r3;
18989
18990
  const o3 = e2.toDate();
18990
- if (o3) B2.values.push(o3);
18991
+ if (o3) L2.values.push(o3);
18991
18992
  else {
18992
18993
  let t4 = e2.getValue();
18993
- B2.values.push(t4);
18994
+ L2.values.push(t4);
18994
18995
  }
18995
- P2 = L2.next();
18996
+ P2 = B2.next();
18996
18997
  }
18997
18998
  const z2 = D2.length;
18998
18999
  for (let t3 = 0; t3 < z2; t3++) {
@@ -19056,19 +19057,19 @@ class hS {
19056
19057
  }
19057
19058
  this._merge(n3);
19058
19059
  }
19059
- const U2 = this._getState(), q2 = {}, J2 = {};
19060
- J2.directStyleSpatial = U2.directStyleSpatial, J2.continuousFillSpatial = U2.continuousFillSpatial;
19060
+ const U2 = this._getState(), J2 = {}, q2 = {};
19061
+ q2.directStyleSpatial = U2.directStyleSpatial, q2.continuousFillSpatial = U2.continuousFillSpatial;
19061
19062
  let K2 = t2, X2 = p2;
19062
19063
  if (!N2) {
19063
19064
  let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % I2;
19064
19065
  const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
19065
19066
  0 !== e2 && (X2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, K2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
19066
19067
  }
19067
- const Y2 = Object.keys(J2), Z2 = Y2.length;
19068
- for (let t3 = 0; t3 < Z2; t3++) {
19069
- const e2 = Y2[t3], n3 = J2[e2].createCopiedEntries(K2, X2), r3 = U2[e2].clone(), o3 = n3.removes, s3 = o3.length;
19068
+ const Y2 = Object.keys(q2), Q2 = Y2.length;
19069
+ for (let t3 = 0; t3 < Q2; t3++) {
19070
+ const e2 = Y2[t3], n3 = q2[e2].createCopiedEntries(K2, X2), r3 = U2[e2].clone(), o3 = n3.removes, s3 = o3.length;
19070
19071
  for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
19071
- r3.load(n3.inserts), q2[e2] = r3;
19072
+ r3.load(n3.inserts), J2[e2] = r3;
19072
19073
  }
19073
19074
  if (N2) {
19074
19075
  const e2 = this.getTables().getItems({ address: { rowIndex: t2.rowEnd, colIndex: t2.colEnd } });
@@ -19077,8 +19078,8 @@ class hS {
19077
19078
  t3.resize({ colStart: n3.colStart, rowStart: n3.rowStart, colEnd: i2 ? n3.colEnd : p2.colEnd, rowEnd: i2 ? p2.rowEnd : n3.rowEnd });
19078
19079
  }
19079
19080
  }
19080
- const Q2 = U2.calcGraph.clone();
19081
- Q2.autoFill(t2, p2), q2.calcGraph = Q2, this._updateState(q2), f2 = { ...a2, ranges: l2 }, m2.commit({ viewBefore: { view: this.getView(), selection: Cm([t2]), selectOptions: r2?.autoSelect }, viewAfter: { view: this.getView(), selection: f2, selectOptions: r2?.autoSelect } }), this._autoSelect(r2?.autoSelect ?? false, f2);
19081
+ const Z2 = U2.calcGraph.clone();
19082
+ Z2.autoFill(t2, p2), J2.calcGraph = Z2, this._updateState(J2), f2 = { ...a2, ranges: l2 }, m2.commit({ viewBefore: { view: this.getView(), selection: Cm([t2]), selectOptions: r2?.autoSelect }, viewAfter: { view: this.getView(), selection: f2, selectOptions: r2?.autoSelect } }), this._autoSelect(r2?.autoSelect ?? false, f2);
19082
19083
  } catch (t3) {
19083
19084
  throw m2?.rollback(), t3;
19084
19085
  }
@@ -19164,7 +19165,7 @@ class hS {
19164
19165
  if (e4) if (h2) {
19165
19166
  d2 || (d2 = xi.Styles.lookupStyle(h2)?.formatType);
19166
19167
  const t6 = xi.Styles.lookupStyle(e4)?.formatType;
19167
- Qr(t6, d2) > 0 ? (d2 = t6, h2 = e4) : u2 = true;
19168
+ Zr(t6, d2) > 0 ? (d2 = t6, h2 = e4) : u2 = true;
19168
19169
  } else h2 = e4;
19169
19170
  }
19170
19171
  }
@@ -19352,7 +19353,7 @@ class hS {
19352
19353
  const d2 = this._getMerges(t2);
19353
19354
  if (ic(t2) || d2.length > 0) {
19354
19355
  const e2 = c.unionRangesArrays(d2), n3 = c.unionRangesArrays(t2);
19355
- if (!(!e2 && !n3 || e2 && n3 && c.isRangeWithinRange(e2, n3))) throw console.warn(Jh, t2), new C(Jh);
19356
+ if (!(!e2 && !n3 || e2 && n3 && c.isRangeWithinRange(e2, n3))) throw console.warn(qh, t2), new C(qh);
19356
19357
  this._unmerge(d2);
19357
19358
  }
19358
19359
  const u2 = this._createIncrementalUpdater({ orientation: e.Orientation.Column }), g2 = [], m2 = [];
@@ -19654,9 +19655,9 @@ class hS {
19654
19655
  s3 && (_3 = true), a2.singleMerge && (g2 = false, f2 = false);
19655
19656
  const C2 = h2.colStart - d2.colStart, v3 = h2.rowStart - d2.rowStart, A2 = i2.adjustCells;
19656
19657
  let M2 = { ...Hh };
19657
- if (delete M2[Lh.Type.Style], !g2) {
19658
+ if (delete M2[Bh.Type.Style], !g2) {
19658
19659
  const t3 = this.getProtection().isLocked();
19659
- M2 = {}, t3 && (M2[Lh.Type.Unlock] = false);
19660
+ M2 = {}, t3 && (M2[Bh.Type.Unlock] = false);
19660
19661
  }
19661
19662
  const T2 = e.Orientation.Column;
19662
19663
  let N2;
@@ -19705,13 +19706,13 @@ class hS {
19705
19706
  }
19706
19707
  const F2 = n2._getState(), k2 = {}, O2 = { transpose: s3 ?? false };
19707
19708
  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);
19708
- const D2 = l2, B2 = D2._getState(), L2 = Object.keys(k2), P2 = L2.length;
19709
+ const D2 = l2, L2 = D2._getState(), B2 = Object.keys(k2), P2 = B2.length;
19709
19710
  for (let t3 = 0; t3 < P2; t3++) {
19710
- const e2 = L2[t3], n3 = k2[e2].createCopiedEntries(d2, x2, O2), r4 = B2[e2].clone(), o2 = n3.removes, s4 = o2.length;
19711
+ const e2 = B2[t3], n3 = k2[e2].createCopiedEntries(d2, x2, O2), r4 = L2[e2].clone(), o2 = n3.removes, s4 = o2.length;
19711
19712
  for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
19712
- r4.load(n3.inserts), B2[e2] = r4;
19713
+ r4.load(n3.inserts), L2[e2] = r4;
19713
19714
  }
19714
- 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: Cm(b2), ranges: E2 }) });
19715
+ 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: Cm(b2), ranges: E2 }) });
19715
19716
  } catch (t3) {
19716
19717
  throw console.warn(t3), R2.rollback(), new Error(((t4) => `Unable to paste: ${t4}`)(t3.message), { cause: t3 });
19717
19718
  }
@@ -19771,7 +19772,7 @@ class hS {
19771
19772
  return null;
19772
19773
  }
19773
19774
  _getDefaultShiftOrientation(t2) {
19774
- return Zg(t2, this._entireCoords);
19775
+ return Qg(t2, this._entireCoords);
19775
19776
  }
19776
19777
  _getDefaultSortCriteria(t2, e2, n2) {
19777
19778
  return Sm(this, t2, n2 ? this._cellToCoords(n2) : null, e2);
@@ -19878,7 +19879,7 @@ class hS {
19878
19879
  }
19879
19880
  }
19880
19881
  _autoFit(n2, r2) {
19881
- if (this._closed) throw new Error(Zh);
19882
+ if (this._closed) throw new Error(Qh);
19882
19883
  r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
19883
19884
  const o2 = "Autofit";
19884
19885
  let s2;
@@ -19908,10 +19909,10 @@ class hS {
19908
19909
  const r3 = [];
19909
19910
  let f3 = -1, p3 = false, A3 = b2, T3 = 1, N3 = 1, F3 = 1;
19910
19911
  const D2 = R2[n3];
19911
- let B2 = D2.colStart, L2 = D2.rowStart, P2 = D2.colEnd, z2 = D2.rowEnd;
19912
+ let L2 = D2.colStart, B2 = D2.rowStart, P2 = D2.colEnd, z2 = D2.rowEnd;
19912
19913
  const H2 = this._getUsedCoords();
19913
- (u2 || d2) && H2 && (B2 = u2 ? H2.colStart : D2.colStart, L2 = d2 ? H2.rowStart : D2.rowStart, P2 = u2 ? H2.colEnd : D2.colEnd, z2 = d2 ? H2.rowEnd : D2.rowEnd);
19914
- const V2 = { includeRangeTypes: { [Lh.Type.Style]: false, [Lh.Type.Merge]: false, [Lh.Type.Continuous]: false, [Lh.Type.Contentful]: false }, ignoreHidden: false, bounds: { colStart: B2, rowStart: L2, colEnd: P2, rowEnd: z2 }, orientation: e.Orientation.Column }, W2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
19914
+ (u2 || d2) && H2 && (L2 = u2 ? H2.colStart : D2.colStart, B2 = d2 ? H2.rowStart : D2.rowStart, P2 = u2 ? H2.colEnd : D2.colEnd, z2 = d2 ? H2.rowEnd : D2.rowEnd);
19915
+ const V2 = { includeRangeTypes: { [Bh.Type.Style]: false, [Bh.Type.Merge]: false, [Bh.Type.Continuous]: false, [Bh.Type.Contentful]: false }, ignoreHidden: false, bounds: { colStart: L2, rowStart: B2, colEnd: P2, rowEnd: z2 }, orientation: e.Orientation.Column }, W2 = h2 ? [] : void 0, $2 = l2 ? [] : void 0, j2 = (t2, e2, n4) => {
19915
19916
  if (t2 > e2) return null;
19916
19917
  const r4 = [];
19917
19918
  let o4 = t2;
@@ -19937,38 +19938,38 @@ class hS {
19937
19938
  gS.colStart = n4.colIndex, gS.rowStart = n4.rowIndex, gS.colEnd = r4.colIndex, gS.rowEnd = r4.rowIndex;
19938
19939
  const o4 = c.intersectRanges(gS, D2, uS), s4 = Hg(0, o4, e2, v2).getBestFit();
19939
19940
  if (h2) {
19940
- const t3 = Math.max(n4.rowIndex, L2), e3 = Math.min(r4.rowIndex, z2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: k2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19941
+ const t3 = Math.max(n4.rowIndex, B2), e3 = Math.min(r4.rowIndex, z2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: k2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19941
19942
  W2.push(i4);
19942
19943
  }
19943
19944
  if (l2) {
19944
- const t3 = Math.max(n4.colIndex, B2), e3 = Math.min(r4.colIndex, P2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19945
+ const t3 = Math.max(n4.colIndex, L2), e3 = Math.min(r4.colIndex, P2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(o5), autoSize: true }, sizeSet: null === o5 ? -1 : o5 };
19945
19946
  $2.push(i4);
19946
19947
  }
19947
19948
  U2 = G2.next();
19948
19949
  }
19949
- const q2 = this._cellStateIterator({ ...V2, includeRangeTypes: { [Lh.Type.Merge]: false, [Lh.Type.Table]: false, [Lh.Type.Style]: false, [Lh.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19950
- let J2, K2, X2, Y2 = q2.next(), Z2 = 1, Q2 = 1;
19950
+ const J2 = this._cellStateIterator({ ...V2, includeRangeTypes: { [Bh.Type.Merge]: false, [Bh.Type.Table]: false, [Bh.Type.Style]: false, [Bh.Type.Continuous]: false }, ignoreEmptyIntersections: true });
19951
+ let q2, K2, X2, Y2 = J2.next(), Q2 = 1, Z2 = 1;
19951
19952
  for (; !Y2.done; ) {
19952
19953
  const e2 = Y2.value, n4 = e2[0], l3 = e2[2];
19953
19954
  let h3 = b2;
19954
19955
  const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
19955
- d3 === J2 ? h3 = K2 : (h3 = d3 ? Hg(0, c.cellToRange(n4, mS), l3, v2) : b2, K2 = h3);
19956
+ d3 === q2 ? h3 = K2 : (h3 = d3 ? Hg(0, c.cellToRange(n4, mS), l3, v2) : b2, K2 = h3);
19956
19957
  let u3 = 1, g3 = 1;
19957
19958
  const m3 = l3?.merge ?? null;
19958
- if (m3 === X2) u3 = Z2, g3 = Q2;
19959
+ if (m3 === X2) u3 = Q2, g3 = Z2;
19959
19960
  else {
19960
19961
  if (m3) {
19961
19962
  const t2 = m3.getCoords();
19962
19963
  u3 = t2.colEnd - t2.colStart + 1, g3 = t2.rowEnd - t2.rowStart + 1;
19963
19964
  } else u3 = 1, g3 = 1;
19964
- Z2 = u3, Q2 = g3;
19965
+ Q2 = u3, Z2 = g3;
19965
19966
  }
19966
19967
  const x3 = n4.colIndex, I3 = n4.rowIndex, R3 = e2[1], M3 = yc(R3), k3 = c.isCellWithinRange(n4, D2), O3 = l3?.continuous ?? null;
19967
19968
  if (O3) {
19968
19969
  F3 = O3.getCoords().colEnd - x3 + 1;
19969
19970
  }
19970
- let B3 = false, L3 = false;
19971
- if (J2 === d3 && u3 === T3 && g3 === N3 && M3 !== t.String && M3 !== t.Error && k3 === p3 || (B3 = true, M3 === t.RichData && (L3 = true), L3 && (B3 = false)), J2 = 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;
19971
+ let L3 = false, B3 = false;
19972
+ if (q2 === d3 && u3 === T3 && g3 === N3 && M3 !== t.String && M3 !== t.Error && k3 === p3 || (L3 = true, M3 === t.RichData && (B3 = true), B3 && (L3 = false)), q2 = 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;
19972
19973
  else switch (M3) {
19973
19974
  case t.Number:
19974
19975
  0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
@@ -19982,7 +19983,7 @@ class hS {
19982
19983
  case t.Boolean:
19983
19984
  R3 ? S2 = true : w2 = true;
19984
19985
  }
19985
- Y2 = q2.next();
19986
+ Y2 = J2.next();
19986
19987
  }
19987
19988
  -1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: T3, spanHeight: N3, 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), colSpan: F3, measureWidth: -1, measureHeight: -1, isFit: p3 });
19988
19989
  let tt2 = -1, et2 = -1;
@@ -20154,7 +20155,7 @@ class hS {
20154
20155
  return r2;
20155
20156
  }
20156
20157
  _addRangesListeners(t2, e2, n2) {
20157
- if (this._closed) throw new Error(Zh);
20158
+ if (this._closed) throw new Error(Qh);
20158
20159
  if (!e2) throw new C(Gh);
20159
20160
  n2 = n2 ? { ...pS, ...n2 } : pS;
20160
20161
  const r2 = n2?.transactional ?? false, o2 = this, s2 = aS++ % Number.MAX_SAFE_INTEGER, i2 = () => {
@@ -20194,7 +20195,7 @@ class hS {
20194
20195
  return h2.load(g2), d2.set(s2, l2), u2 && (this._updateState({ rangeListenerSpatial: h2, rangesListenerMap: d2 }), u2.commit({ forceAmend: true })), i2;
20195
20196
  }
20196
20197
  _addRangesListeners2(t2, e2, n2, r2) {
20197
- if (this._closed) throw new Error(Zh);
20198
+ if (this._closed) throw new Error(Qh);
20198
20199
  if (!e2) throw new C(Gh);
20199
20200
  n2 = n2 ? { ...pS, ...n2 } : pS;
20200
20201
  const s2 = n2?.transactional ?? false, i2 = this, a2 = o.uuidV4(), l2 = cS++, h2 = () => {
@@ -20262,7 +20263,7 @@ class hS {
20262
20263
  let s2, i2, a2 = false;
20263
20264
  for (let t3 = 0; t3 < o2; t3++) {
20264
20265
  const n3 = e2[t3];
20265
- n3 === id.Content.Values ? r2[Lh.Type.Contentful] = false : n3 === id.Content.Formulas ? r2[Lh.Type.Formula] = false : n3 === id.Content.Formats ? r2[Lh.Type.Style] = false : n3 === id.Content.Tables && (r2[Lh.Type.Table] = false, a2 = true);
20266
+ n3 === id.Content.Values ? r2[Bh.Type.Contentful] = false : n3 === id.Content.Formulas ? r2[Bh.Type.Formula] = false : n3 === id.Content.Formats ? r2[Bh.Type.Style] = false : n3 === id.Content.Tables && (r2[Bh.Type.Table] = false, a2 = true);
20266
20267
  }
20267
20268
  const l2 = () => {
20268
20269
  s2 = /* @__PURE__ */ new Set(), i2 = {};
@@ -20297,7 +20298,7 @@ class hS {
20297
20298
  return t2 ? ((t2 = "string" == typeof t2 ? { text: t2 } : { ...t2 }).from || (t2.from = this.getSelection().getCoords().cell), this.getEntireRange().find(t2)) : fa;
20298
20299
  }
20299
20300
  _find(t2, n2) {
20300
- if (this._closed) throw new Error(Zh);
20301
+ if (this._closed) throw new Error(Qh);
20301
20302
  "string" == typeof n2 && (n2 = { text: n2 });
20302
20303
  const r2 = n2?.text;
20303
20304
  if (!r2) return null;
@@ -20435,7 +20436,7 @@ class hS {
20435
20436
  return a2 || i2;
20436
20437
  }
20437
20438
  _extendRange(t2, n2) {
20438
- if (this._closed) throw new Error(Zh);
20439
+ if (this._closed) throw new Error(Qh);
20439
20440
  const r2 = this._entireCoords, o2 = this, s2 = { ignoreHidden: true, onEntry: (t3, e2) => e2 }, i2 = { ignoreHidden: true, onEntry: (t3, e2) => void 0 === t3.tvTl() ? null : e2 };
20440
20441
  let a2;
20441
20442
  const l2 = o2._getRangedEntries("mergeSpatial", [c.cellToRange(n2)], i2);
@@ -20615,7 +20616,7 @@ class hS {
20615
20616
  return this._view;
20616
20617
  }
20617
20618
  setView(t2) {
20618
- if (this._closed) throw new Error(Zh);
20619
+ if (this._closed) throw new Error(Qh);
20619
20620
  if (!t2) throw new C("View can not be empty.");
20620
20621
  this._viewRemoveListener?.(), this._view = t2, this._viewRemoveListener = t2.addListeners(this._viewListener, { transactional: false });
20621
20622
  const e2 = this.getSelection().getCoords();
@@ -20625,7 +20626,7 @@ class hS {
20625
20626
  return this._tabColor;
20626
20627
  }
20627
20628
  setTabColor(t2) {
20628
- if (this._closed) throw new Error(Zh);
20629
+ if (this._closed) throw new Error(Qh);
20629
20630
  return this._tabColor = "string" == typeof t2 ? this._styles.parseColor(t2) : t2 ?? null, this._emitter.notify("onTabColorChange"), this;
20630
20631
  }
20631
20632
  getRowHeaders() {
@@ -20635,7 +20636,7 @@ class hS {
20635
20636
  return this._colHeaders;
20636
20637
  }
20637
20638
  async toJSON(n2 = false) {
20638
- if (this._closed) throw new Error(Zh);
20639
+ if (this._closed) throw new Error(Qh);
20639
20640
  await this._emitter.notify("onBeforeSave", { async: true }), await Promise.resolve(this._starting);
20640
20641
  let r2 = {};
20641
20642
  const o2 = this._getState();
@@ -20821,7 +20822,7 @@ class hS {
20821
20822
  async _addMovable(t2) {
20822
20823
  if (!this.getProtection().isObjectsAllowed()) throw new C(Uh);
20823
20824
  if (!t2) throw new C("No movable options provided");
20824
- if (this._closed) throw new Error(Zh);
20825
+ if (this._closed) throw new Error(Qh);
20825
20826
  const e2 = {};
20826
20827
  t2?.type && (e2.content = { type: t2.type, json: t2?.json }), t2?.anchorType && (e2.anchorType = t2?.anchorType), t2.bounds && (e2.anchor = null);
20827
20828
  const n2 = this._getState().movableSpatial, r2 = this._beginCommit({ description: t2?.description ?? "Insert Drawing" }), o2 = this._createMovableEntry(e2, n2.size(), t2.fromResourceId), s2 = n2.clone();
@@ -20872,7 +20873,7 @@ class hS {
20872
20873
  _validateOrRemoveOverlaps(t2, e2, n2 = null, r2 = false) {
20873
20874
  const o2 = this;
20874
20875
  "merge" !== e2 && lc(this._getMerges([t2]), t2, (t3, n3) => {
20875
- if (n3 || !r2) throw new C(qh(e2));
20876
+ if (n3 || !r2) throw new C(Jh(e2));
20876
20877
  o2._unmerge([t3]);
20877
20878
  });
20878
20879
  const s2 = [], i2 = this.getTables().getItems({ address: t2 }), a2 = i2.length;
@@ -20881,7 +20882,7 @@ class hS {
20881
20882
  n2 !== e3 && s2.push(e3.getAnchorCoords());
20882
20883
  }
20883
20884
  lc(s2, t2, (t3, n3, o3) => {
20884
- if (n3 || !r2) throw new C(qh(e2));
20885
+ if (n3 || !r2) throw new C(Jh(e2));
20885
20886
  i2[o3].delete();
20886
20887
  });
20887
20888
  }
@@ -21082,7 +21083,7 @@ class hS {
21082
21083
  }
21083
21084
  close() {
21084
21085
  if (this._closed) return;
21085
- this._protectionRemoveListener?.(), this._protection = new Q_(void 0, this._options.readonly);
21086
+ this._protectionRemoveListener?.(), this._protection = new Z_(void 0, this._options.readonly);
21086
21087
  const t2 = this._getState().tableMapModel.keys();
21087
21088
  for (const e2 of t2) e2.close();
21088
21089
  this._searchMovables().forEach((t3) => {
@@ -21090,7 +21091,7 @@ class hS {
21090
21091
  }), this._emitter.notify("onClose"), this._ownResources, this._namesRemoveListener?.(), this._ownNames && this._names.close(), this._ownsCalculation && this._calculation.close(), this._ownStyles, this._colHeaders.close(), this._rowHeaders.close(), this._emitter.close(), this._transactionsRemoveListener?.(), this._closed = true;
21091
21092
  }
21092
21093
  beginCommit(t2) {
21093
- if (this._closed) throw new Error(Zh);
21094
+ if (this._closed) throw new Error(Qh);
21094
21095
  return this._beginCommit("string" == typeof t2 ? { description: t2 } : t2);
21095
21096
  }
21096
21097
  _getState() {
@@ -21331,8 +21332,8 @@ class hS {
21331
21332
  } }, this._emptyCell = new jg(this._cellOptions);
21332
21333
  }
21333
21334
  _clearState() {
21334
- this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new Q_(void 0, this._options.readonly), this._protectionRemoveListener = this._protection.addListeners({ onChange() {
21335
- if (t2._closed) throw new Error(Zh);
21335
+ this._lastGetRangeRead = null, this._lastCellDecoded.address = null, this._lastCellSelected.coords = null, this._lastCellRead.coords = null, this._protectionRemoveListener?.(), this._protection = new Z_(void 0, this._options.readonly), this._protectionRemoveListener = this._protection.addListeners({ onChange() {
21336
+ if (t2._closed) throw new Error(Qh);
21336
21337
  t2._getState().movableMapModel.forEach((t3) => {
21337
21338
  t3.value.processProtectionCallback?.();
21338
21339
  }), t2._getState().tableMapModel.forEach((t3) => {
@@ -21387,7 +21388,7 @@ class hS {
21387
21388
  r3 = new Map(r3);
21388
21389
  const s3 = o3.spatials;
21389
21390
  o3 = { ...o3 }, o3.spatials = e2, r3.set(n3, o3), t2._updateState({ conditionalModels: r3 }), o3.processCoordsChange({ before: s3, after: o3.spatials });
21390
- } } }), mergeSpatial: new ol({ updateEntryOptions: { getShifted: (t3, e2) => e2 ? (e2.value = new B_(c.sanitizeRange(e2), t3.value._tvTl), e2) : null, getSplit(t3, e2) {
21391
+ } } }), mergeSpatial: new ol({ updateEntryOptions: { getShifted: (t3, e2) => e2 ? (e2.value = new L_(c.sanitizeRange(e2), t3.value._tvTl), e2) : null, getSplit(t3, e2) {
21391
21392
  throw new C("We can't insert through merges. Unmerge and try again.");
21392
21393
  }, onUpdated: n2, onRemoved: n2 } }), movableMapModel: /* @__PURE__ */ new Map(), movableSpatial: new ol({ updateEntryOptions: { getShifted(e2, n3, r3) {
21393
21394
  const o3 = e2.value.processShiftCallback?.(r3);
@@ -21793,14 +21794,14 @@ class hS {
21793
21794
  }
21794
21795
  k2.load(t2);
21795
21796
  }
21796
- const O2 = m2.tableMapModel, D2 = m2.tableMapName, B2 = m2.tableSpatial, L2 = s2.tables;
21797
- if (L2) {
21798
- const t2 = [], e2 = L2.length;
21797
+ const O2 = m2.tableMapModel, D2 = m2.tableMapName, L2 = m2.tableSpatial, B2 = s2.tables;
21798
+ if (B2) {
21799
+ const t2 = [], e2 = B2.length;
21799
21800
  for (let n3 = 0; n3 < e2; n3++) {
21800
- const e3 = L2[n3], r3 = this._createTableEntry(e3), o2 = r3.value.model;
21801
+ const e3 = B2[n3], r3 = this._createTableEntry(e3), o2 = r3.value.model;
21801
21802
  O2.set(o2, r3), D2.set(r3.value.currentName, o2), t2.push(r3);
21802
21803
  }
21803
- B2.load(t2);
21804
+ L2.load(t2);
21804
21805
  }
21805
21806
  const P2 = m2.conditionalSpatial, z2 = m2.conditionalModels, H2 = s2.conditionals;
21806
21807
  if (H2) {
@@ -21811,7 +21812,7 @@ class hS {
21811
21812
  }
21812
21813
  }
21813
21814
  const V2 = m2.calcGraph, W2 = V2.fromJSON({ formulas: s2.formulas, data: y2, dynamic: s2.dynamicArray, volatile: s2.volatile });
21814
- m2 = this._updateState({ hyperlinkSpatial: A2, commentsSpatial: T2, movableSpatial: k2, movableMapModel: F2, tableSpatial: B2, tableMapModel: O2, tableMapName: D2, conditionalSpatial: P2, conditionalModels: z2, calcGraph: V2 });
21815
+ m2 = this._updateState({ hyperlinkSpatial: A2, commentsSpatial: T2, movableSpatial: k2, movableMapModel: F2, tableSpatial: L2, tableMapModel: O2, tableMapName: D2, conditionalSpatial: P2, conditionalModels: z2, calcGraph: V2 });
21815
21816
  const $2 = this._getUsedCoords();
21816
21817
  $2 && this._autoFit([$2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), W2 && this._realizeCalcedValues(W2), s2.protection && this._protection.fromJSON(s2.protection), this._emitter.notify("onLoad");
21817
21818
  } finally {
@@ -21820,10 +21821,10 @@ class hS {
21820
21821
  this._initializing = false;
21821
21822
  }
21822
21823
  getName() {
21823
- return this._closed ? Lc : this._options.container?.getName?.() ?? null;
21824
+ return this._closed ? Bc : this._options.container?.getName?.() ?? null;
21824
21825
  }
21825
21826
  setName(t2) {
21826
- if (this._closed) throw new Error(Zh);
21827
+ if (this._closed) throw new Error(Qh);
21827
21828
  const e2 = this._options.container?.setName;
21828
21829
  if (!e2) throw new C("Unable to set name for sheet.");
21829
21830
  return e2(t2), this;
@@ -21832,7 +21833,7 @@ class hS {
21832
21833
  return this._closed ? $p.Visibility.VeryHidden : this._options.container?.getVisibility?.() ?? $p.Visibility.Hidden;
21833
21834
  }
21834
21835
  setVisibility(t2 = true) {
21835
- if (this._closed) throw new Error(Zh);
21836
+ if (this._closed) throw new Error(Qh);
21836
21837
  const e2 = this._options.container?.setVisibility;
21837
21838
  if (!e2) throw new C("Unable to set visibility for sheet.");
21838
21839
  let n2;
@@ -22179,7 +22180,7 @@ const OS = async (t2, e2) => {
22179
22180
  }
22180
22181
  return new kS({ json: e2, readonlyFunctions: o2, name: t2 });
22181
22182
  };
22182
- class BS {
22183
+ class LS {
22183
22184
  constructor(t2) {
22184
22185
  this._emitter = null, this._options = t2, this._emitter = new sa(this), this._initState();
22185
22186
  }
@@ -22268,7 +22269,7 @@ class BS {
22268
22269
  return t2.toJSON();
22269
22270
  }
22270
22271
  }
22271
- const LS = Object.freeze({ lockStructure: false, lockWindows: false, lockRevision: false, workbookPassword: null, revisionsPassword: null });
22272
+ const BS = Object.freeze({ lockStructure: false, lockWindows: false, lockRevision: false, workbookPassword: null, revisionsPassword: null });
22272
22273
  class PS extends Y_ {
22273
22274
  isWindowsAllowed() {
22274
22275
  return this._isPropertyAllowed("windows");
@@ -22289,14 +22290,14 @@ class PS extends Y_ {
22289
22290
  const n2 = Object.keys(e2), r2 = n2.length;
22290
22291
  for (let o2 = 0; o2 < r2; o2++) {
22291
22292
  const r3 = n2[o2], s2 = e2[r3];
22292
- null != s2 && s2 !== LS[r3] && (t2[r3] = s2);
22293
+ null != s2 && s2 !== BS[r3] && (t2[r3] = s2);
22293
22294
  }
22294
22295
  }
22295
22296
  return super._toJSON(t2);
22296
22297
  }
22297
22298
  }
22298
- const zS = (t2) => `Invalid SheetKey: ${t2}`, HS = "A workbook must contain at least one visible worksheet.", VS = "Internal error no visible sheetRefs", WS = "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.", jS = "A sheet name", GS = `${jS} can not be blank.`, US = `${jS} can not be longer than 31 characters.`, qS = `${jS} can not begin or end with a "'" (single quote).`;
22299
- class JS {
22299
+ const zS = (t2) => `Invalid SheetKey: ${t2}`, HS = "A workbook must contain at least one visible worksheet.", VS = "Internal error no visible sheetRefs", WS = "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.", jS = "A sheet name", GS = `${jS} can not be blank.`, US = `${jS} can not be longer than 31 characters.`, JS = `${jS} can not begin or end with a "'" (single quote).`;
22300
+ class qS {
22300
22301
  constructor(t2, e2) {
22301
22302
  this._add = t2, this._get = e2;
22302
22303
  }
@@ -22313,7 +22314,7 @@ class JS {
22313
22314
  return this._get().length;
22314
22315
  }
22315
22316
  }
22316
- const KS = new RegExp(/[\\/\\*?:[\]]+/), XS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), YS = (t2) => `Sheet${t2 + 1}`, ZS = (t2, e2) => ({ ...im, getSheet: () => null, toString: () => th(t2, e2) }), QS = (t2, e2 = false) => {
22317
+ const KS = new RegExp(/[\\/\\*?:[\]]+/), XS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), YS = (t2) => `Sheet${t2 + 1}`, QS = (t2, e2) => ({ ...im, getSheet: () => null, toString: () => th(t2, e2) }), ZS = (t2, e2 = false) => {
22317
22318
  if (!t2) throw new Error(GS);
22318
22319
  if (KS.test(t2)) {
22319
22320
  if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : jS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
@@ -22326,7 +22327,7 @@ const KS = new RegExp(/[\\/\\*?:[\]]+/), XS = new RegExp(/\(((\d+)(?!.*\d))\)$/,
22326
22327
  t2 = t2.substring(0, 31);
22327
22328
  }
22328
22329
  if ("'" === t2.charAt(0) || "'" === t2.charAt(n2 - 1)) {
22329
- if (!e2) throw new Error(qS);
22330
+ if (!e2) throw new Error(JS);
22330
22331
  t2 = t2.replace(/^'|'$/g, "");
22331
22332
  }
22332
22333
  return t2;
@@ -22346,7 +22347,7 @@ class tw extends tS {
22346
22347
  const n2 = t2 ? { ...t2 } : null;
22347
22348
  if (!(n2 ? this._workbook._getSheetRef(n2.sheetName, $p.Visibility.VeryHidden) : null)) {
22348
22349
  const t3 = this._workbook.getSelectedSheet();
22349
- return delete n2?.sheetName, ZS(n2, n2 ? { sheetName: Lc, ...t3.getEntireRange().getCoords() } : null);
22350
+ return delete n2?.sheetName, QS(n2, n2 ? { sheetName: Bc, ...t3.getEntireRange().getCoords() } : null);
22350
22351
  }
22351
22352
  let r2 = this._options;
22352
22353
  return e2 && (r2 = { ...this._options, getOptions: _m(this._options.getOptions, e2) }), new ew(t2, this._sheet, this._workbook, r2);
@@ -22376,7 +22377,7 @@ class tw extends tS {
22376
22377
  }
22377
22378
  toString() {
22378
22379
  const t2 = this.getCoords(), e2 = this._sheet, n2 = e2.getEntireRange().getCoords(), r2 = { sheetName: e2.getName(), ...n2 };
22379
- return sh(t2, r2, th, Jc);
22380
+ return sh(t2, r2, th, qc);
22380
22381
  }
22381
22382
  }
22382
22383
  class ew extends eS {
@@ -22482,12 +22483,12 @@ class nw {
22482
22483
  } catch (t3) {
22483
22484
  throw o2.rollback(), t3;
22484
22485
  }
22485
- this._sheets = new JS((t3) => e2._addSheetOptions(t3), (t3, e3) => t3 ? [this.getSheet(t3, e3)] : this._getSheets(e3)), this._initializing = false;
22486
+ this._sheets = new qS((t3) => e2._addSheetOptions(t3), (t3, e3) => t3 ? [this.getSheet(t3, e3)] : this._getSheets(e3)), this._initializing = false;
22486
22487
  }
22487
22488
  _initState() {
22488
22489
  let t2 = this._getSheetRefs();
22489
22490
  for (let e3 = t2 && t2.length - 1; e3 >= 0; e3--) ;
22490
- this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new ta().getDefaultTheme(), this._styles = this._options?.styles ?? new Zm(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new IS()), this._listenerProtection?.(), this._protection = new PS(void 0, this._options.readonly ?? false), this._listenerProtection = this._protection.addListeners({ onChange: (t3) => {
22491
+ this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new ta().getDefaultTheme(), this._styles = this._options?.styles ?? new Qm(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new IS()), this._listenerProtection?.(), this._protection = new PS(void 0, this._options.readonly ?? false), this._listenerProtection = this._protection.addListeners({ onChange: (t3) => {
22491
22492
  e2._emitter.notify("onProtectionChange");
22492
22493
  } });
22493
22494
  const e2 = this;
@@ -22596,11 +22597,11 @@ class nw {
22596
22597
  }
22597
22598
  _validateNewSheetName(t2, e2 = true) {
22598
22599
  if (null == t2) return t2;
22599
- if (QS(t2), e2 && this._getState().sheetsByLowerCaseName.has(t2.toLowerCase())) throw new C("That name is already taken. Try a different one.");
22600
+ if (ZS(t2), e2 && this._getState().sheetsByLowerCaseName.has(t2.toLowerCase())) throw new C("That name is already taken. Try a different one.");
22600
22601
  return t2.substring(0, 31);
22601
22602
  }
22602
22603
  findValidSheetName(t2) {
22603
- t2 && (t2 = QS(t2, true));
22604
+ t2 && (t2 = ZS(t2, true));
22604
22605
  try {
22605
22606
  return ((t3, e2) => {
22606
22607
  try {
@@ -22859,7 +22860,7 @@ class nw {
22859
22860
  const n2 = t2 ? { ...t2 } : null;
22860
22861
  if (!(n2 ? this._getSheetRef(n2.sheetName, $p.Visibility.VeryHidden) : null)) {
22861
22862
  const t3 = this.getSelectedSheet();
22862
- return t3 ? (delete n2?.sheetName, ZS(n2, n2 ? { sheetName: Lc, ...t3.getEntireRange().getCoords() } : null)) : void console.warn(VS);
22863
+ return t3 ? (delete n2?.sheetName, QS(n2, n2 ? { sheetName: Bc, ...t3.getEntireRange().getCoords() } : null)) : void console.warn(VS);
22863
22864
  }
22864
22865
  const r2 = this.getSelectedSheet();
22865
22866
  let o2 = null;
@@ -23052,7 +23053,7 @@ class nw {
23052
23053
  }
23053
23054
  _fromJSON(t2) {
23054
23055
  if (this._emitter.notify("onBeforeLoad", { params: t2 }), this._initState(), !t2.sheets || 0 === t2.sheets.length) throw new C(HS);
23055
- t2.theme && (this._theme = new Zi(t2.theme), this._styles.setTheme(this._theme));
23056
+ t2.theme && (this._theme = new Qi(t2.theme), this._styles.setTheme(this._theme));
23056
23057
  const e2 = this._strings.beginPersist(), n2 = this._resources.beginPersist(), r2 = this._styles.beginPersist();
23057
23058
  try {
23058
23059
  e2.fromJSON(t2.strings), n2.fromJSON(t2.resources), r2.fromJSON(t2.styles), t2.date1904 && (this._isDate1904 = true), t2.view || (t2.view = {});
@@ -23075,7 +23076,7 @@ class nw {
23075
23076
  }
23076
23077
  _createScripts(t2) {
23077
23078
  const e2 = this;
23078
- return new BS({ transactions: this._transactions, json: t2, workbook: e2, getBuiltInFunctions: () => e2._calculation?.getFunctions(), onAdd: (t3, n2) => {
23079
+ return new LS({ transactions: this._transactions, json: t2, workbook: e2, getBuiltInFunctions: () => e2._calculation?.getFunctions(), onAdd: (t3, n2) => {
23079
23080
  const r2 = e2._calculation;
23080
23081
  r2.getStatus() !== lf.Status.Off && r2.start().then(() => {
23081
23082
  const t4 = n2.getFunctions().getItems({ type: "formula" }), e3 = t4.length;
@@ -23218,7 +23219,7 @@ export {
23218
23219
  xo as ITextFrame,
23219
23220
  Ni as ITheme,
23220
23221
  Fi as IThemeCollection,
23221
- it as LicenseManager,
23222
+ at as LicenseManager,
23222
23223
  xi as NumberFormat,
23223
23224
  cf as Picture,
23224
23225
  Vp as RangeClipboardItem,
@@ -23228,11 +23229,11 @@ export {
23228
23229
  rs as SimpleFontFace,
23229
23230
  ca as Sort,
23230
23231
  sf as StringCollection,
23231
- Zm as StyleCollection,
23232
+ Qm as StyleCollection,
23232
23233
  gp as T,
23233
23234
  Wm as Table,
23234
23235
  Go as TextUtils,
23235
- Zi as Theme,
23236
+ Qi as Theme,
23236
23237
  ta as ThemeCollection,
23237
23238
  O as TransactionStore,
23238
23239
  P as TransactionUndoManager,
@@ -23240,7 +23241,7 @@ export {
23240
23241
  nw as Workbook,
23241
23242
  IS as WorkbookView,
23242
23243
  P_ as a,
23243
- L_ as b,
23244
+ B_ as b,
23244
23245
  vc as c,
23245
23246
  Ch as d,
23246
23247
  Gc as e,