@sheetxl/sdk 0.4.19 → 0.4.20

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 (103) hide show
  1. package/browser/cjs/{D8kiw7ChCC7ethCe.cjs → B8nuUUIsnE-6vbAQ.cjs} +1 -1
  2. package/browser/cjs/{B9v3u3hwmPue1Crf.cjs → BHa5nV8AH6dlgs29.cjs} +1 -1
  3. package/browser/cjs/{BSWe1zW77SdisEXi.cjs → BRvrxzKBJ-g1N73t.cjs} +4 -4
  4. package/browser/cjs/{Doku1UVzxfUkKjsU.cjs → BTPJz0JSs5PWhtbO.cjs} +1 -1
  5. package/browser/cjs/{Bg5cGAcyMKhc1LVR.cjs → BTa_vDbaAzt6YXV1.cjs} +1 -1
  6. package/browser/cjs/{BmLK2Q7ZKH-MpZf2.cjs → BVwLRpPOJOkPiLVI.cjs} +1 -1
  7. package/browser/cjs/{oROZhcugo511lwYD.cjs → Ba3X8U1ch1pBFv_a.cjs} +2 -2
  8. package/browser/cjs/{BWO4PWgRzvVsWDJA.cjs → BfMzZ_GULllzBk6l.cjs} +1 -1
  9. package/browser/cjs/{CBHpVFiJCCNa32Qd.cjs → BkFMWwFWaisNXSf2.cjs} +2 -2
  10. package/browser/cjs/{hReZyLibRX_QhdqA.cjs → BvS85P-7zLIudyqb.cjs} +1 -1
  11. package/browser/cjs/{C9nSUDDtDNZklTgo.cjs → Bw07AlLqg6ZIoMRL.cjs} +1 -1
  12. package/browser/cjs/{C501EF7RGelm6o3R.cjs → C2DyH3SwPIgmFosH.cjs} +3 -3
  13. package/browser/cjs/{DoXjUhbXYEMYEj6w.cjs → C4KbNJbRD0LfrFFV.cjs} +1 -1
  14. package/browser/cjs/{DWPbAMkxOt6Cb9cp.cjs → CEW45o7VnarqfsgH.cjs} +2 -2
  15. package/browser/cjs/{DaYyPfJx_pc2iDDm.cjs → CFwigDisNJzRlbSY.cjs} +1 -1
  16. package/browser/cjs/{-XdpUGDwGmHHx1Rt.cjs → CHIrWDL1wDd2pj7r.cjs} +1 -1
  17. package/browser/cjs/{hW1yREos32gpIHsR.cjs → CW9IcRQqCCBSJ1g0.cjs} +1 -1
  18. package/browser/cjs/{DPc0gEusAoUYAI0O.cjs → CYueUIoDZwYE9fRk.cjs} +1 -1
  19. package/browser/cjs/{DaEr2QpQ5d613oTn.cjs → CZ4_zpdkkZ0zH7aN.cjs} +1 -1
  20. package/browser/cjs/{mN18HSNpekubzWOx.cjs → CbYFnsibjJUHV0xm.cjs} +1 -1
  21. package/browser/cjs/{CAyn-VHwt044Jaid.cjs → CgISg2QUFvnxelIg.cjs} +1 -1
  22. package/browser/cjs/{DoPx_0PJzz8WOjE-.cjs → CxXM6xsDd2bFDSNd.cjs} +1 -1
  23. package/browser/cjs/{C0dfikqxNZtNj-22.cjs → D9SMcp02EIWqiYk0.cjs} +1 -1
  24. package/browser/cjs/{DWRcbn9JzkP-rey4.cjs → D_zdscoLJ72sNgWv.cjs} +4 -4
  25. package/browser/cjs/{BPzvAcSjBOPCLRae.cjs → HoZidg9qBDX62oNO.cjs} +1 -1
  26. package/browser/cjs/{CrfDFjK9RNj481-9.cjs → We0naT5G_vQo6RkK.cjs} +1 -1
  27. package/browser/cjs/{D6QgMx0WUlWgYoae.cjs → XxdMKuC0y29VOQ05.cjs} +1 -1
  28. package/browser/cjs/{qjfxOoVcFF4_7fg8.cjs → ZJeHuklpnM-x2Uor.cjs} +1 -1
  29. package/browser/cjs/{eL4wAPO18NOtxRmW.cjs → aBAvcAfOvtWy7o9B.cjs} +1 -1
  30. package/browser/cjs/{BnloHxo3XPFlt9gf.cjs → gn5aPOY6C-poXjky.cjs} +1 -1
  31. package/browser/cjs/index.cjs +2 -2
  32. package/browser/cjs/{V_uwtlknwPnP2Un_.cjs → lTo12h7XrLmPRVhi.cjs} +1 -1
  33. package/browser/cjs/{CJx8P3pZaRnS6Kny.cjs → mf_wa0ubPjGaRkSW.cjs} +2 -2
  34. package/browser/cjs/wcsUsHAbDuK3rvVp.cjs +60 -0
  35. package/browser/esm/{D36yXHRPCJFPE2Cn.mjs → 9tFMamEgahdtRDzr.mjs} +1 -1
  36. package/browser/esm/{C94a-TJowUoPL9Fp.mjs → B0RFp5vlJWj9U4Wn.mjs} +2 -2
  37. package/browser/esm/{DnRa0ZQVLa2Fqzju.mjs → BNS7zLc3zoynBPYO.mjs} +2 -2
  38. package/browser/esm/{OBWvICzxYhna2IxF.mjs → BNURhfAYTEVJWTYT.mjs} +1 -1
  39. package/browser/esm/{BYu-X1qYzm9tZ3jy.mjs → BcUYcXaMbk6W8AWk.mjs} +1 -1
  40. package/browser/esm/{Bf7DBXkGk1UG9hJQ.mjs → BikAM7lQn1NrVPNP.mjs} +1 -1
  41. package/browser/esm/{aR99Cx5S9piceH0j.mjs → BoB-LPOX1uKjZhKH.mjs} +1 -1
  42. package/browser/esm/{CxdfUZ_whNEdCrBM.mjs → Bqc8bvJoWC0_qUKU.mjs} +1 -1
  43. package/browser/esm/{dRf_0yDP86DLaRrp.mjs → C0d1-jgvvUt3Bpg9.mjs} +4 -4
  44. package/browser/esm/{DW6X_ih_Ttv8w6c2.mjs → CDbE_dl8edWRC33Z.mjs} +1 -1
  45. package/browser/esm/{C0HNcnUg1sYe6vKJ.mjs → CivKgcEQiXpDFLHE.mjs} +1 -1
  46. package/browser/esm/{BaqE8hRXzTNVxA7s.mjs → CqYcEZmhnI3bq0wV.mjs} +2 -2
  47. package/browser/esm/{N5WXqNpZDnhetIYG.mjs → D3YTY3N6YHU69ymA.mjs} +1 -1
  48. package/browser/esm/{XrA8fo2R4AS3HzFz.mjs → DIePzm-XT-alFdDB.mjs} +1 -1
  49. package/browser/esm/{5v6eKDgISAObg5Sk.mjs → DK_FQ6Q7AZUprApR.mjs} +4620 -4612
  50. package/{node/esm/BefBv4Sji_c90mMN.mjs → browser/esm/DOK9VvFQyTAsf7SL.mjs} +1 -1
  51. package/browser/esm/{CV8kpqwdAKIIEJia.mjs → DP9RiXAeb1fiRFpG.mjs} +1 -1
  52. package/browser/esm/{D9GMsV9S5kpEpaQ3.mjs → DV9p0Ai4HUPYjT-H.mjs} +2 -2
  53. package/{node/esm/CrBwUqwLJqFG3U4m.mjs → browser/esm/DaJrKgrSikJvUv0q.mjs} +1 -1
  54. package/browser/esm/{Br2kerMrZq0pplwK.mjs → DbvBy4EEBdPhE-8G.mjs} +1 -1
  55. package/{node/esm/DLn3G10hRwsZCSWB.mjs → browser/esm/DdDDFLZKFx1DAkKM.mjs} +1 -1
  56. package/browser/esm/{BwotCxIgIVf7Syhx.mjs → DhIglmQyhLXPjrbo.mjs} +4 -4
  57. package/{node/esm/BgePMvIc6yA6_ebp.mjs → browser/esm/DlNI2fuUSYxsUPt8.mjs} +1 -1
  58. package/browser/esm/{Dnypbs7l46y-W1pE.mjs → DoIENSc8L0Rof6Kz.mjs} +3 -3
  59. package/browser/esm/{1v0wWt1fqPRDORx-.mjs → DuvsEieHOiBb-GPZ.mjs} +1 -1
  60. package/browser/esm/{B6zlCMitM169AEV5.mjs → HTDFLMWuQb82Y-GF.mjs} +1 -1
  61. package/browser/esm/{CZ6VZ3NtZyMBJLvF.mjs → _q37vK_NIykwwqbg.mjs} +1 -1
  62. package/{node/esm/JP2SydGPgN2PrEam.mjs → browser/esm/aF3uflTbayaEj07D.mjs} +1 -1
  63. package/{node/esm/DIiCZ8EuWYWD1G4X.mjs → browser/esm/bIOUtGNQ6YQktkYZ.mjs} +1 -1
  64. package/browser/esm/{C_hMM356eOyIGEgy.mjs → fP2GLQ5W7VVbn5TA.mjs} +1 -1
  65. package/{node/esm/Cy781c813953r7bq.mjs → browser/esm/iYqJLAQld4jtK1Be.mjs} +1 -1
  66. package/browser/esm/index.mjs +2 -2
  67. package/browser/esm/{CyZcmz9fV3_Zu57s.mjs → io70M3K8dlSe5V-4.mjs} +1 -1
  68. package/{node/esm/BrAfC_Hz1HZiZjNh.mjs → browser/esm/mxJXDPqwl0wNxd66.mjs} +1 -1
  69. package/licenses/dependencies.txt +3 -3
  70. package/node/esm/{D36yXHRPCJFPE2Cn.mjs → 9tFMamEgahdtRDzr.mjs} +1 -1
  71. package/node/esm/{BvdYpC2TrqFNZ1dz.mjs → B7ZcsKf8cxOEMq7p.mjs} +1 -1
  72. package/node/esm/{BxOnww5rEBN0LYwd.mjs → BI2k0XM8cAqRUH3e.mjs} +3 -3
  73. package/node/esm/{OBWvICzxYhna2IxF.mjs → BNURhfAYTEVJWTYT.mjs} +1 -1
  74. package/node/esm/{BSLIxDVCng1Ep_kU.mjs → BPSX88j1UHZNFlgn.mjs} +1 -1
  75. package/node/esm/{BNu3V1ap_WR3jqdX.mjs → BXc12GgwQ08R7S8e.mjs} +1 -1
  76. package/node/esm/{Bx9qRsBq80w6DZmQ.mjs → BcQcJWzyihj46-gX.mjs} +4 -4
  77. package/node/esm/{CHeQiTLK58a6NVsG.mjs → BpBhk74DpxGo00aZ.mjs} +1 -1
  78. package/node/esm/{CxdfUZ_whNEdCrBM.mjs → Bqc8bvJoWC0_qUKU.mjs} +1 -1
  79. package/node/esm/{07j0n4N6h6oBOk_2.mjs → C4d62D9fLTRjV7rI.mjs} +2 -2
  80. package/node/esm/{CteSWuaSiS_quyBE.mjs → C6lX28OYg20N0MeO.mjs} +1 -1
  81. package/node/esm/{CjPySw20pNmqGeem.mjs → CDjHCv3dEEOY9Foy.mjs} +1 -1
  82. package/node/esm/{DbXESzawTrm7E2Do.mjs → CHnRYVDwiNY7YZxQ.mjs} +1 -1
  83. package/node/esm/{C0HNcnUg1sYe6vKJ.mjs → CivKgcEQiXpDFLHE.mjs} +1 -1
  84. package/node/esm/{N5WXqNpZDnhetIYG.mjs → D3YTY3N6YHU69ymA.mjs} +1 -1
  85. package/{browser/esm/BefBv4Sji_c90mMN.mjs → node/esm/DOK9VvFQyTAsf7SL.mjs} +1 -1
  86. package/node/esm/{CV8kpqwdAKIIEJia.mjs → DP9RiXAeb1fiRFpG.mjs} +1 -1
  87. package/node/esm/{DK54CIvklXVGAymn.mjs → D_13otLly5j8n5Gg.mjs} +2 -2
  88. package/{browser/esm/CrBwUqwLJqFG3U4m.mjs → node/esm/DaJrKgrSikJvUv0q.mjs} +1 -1
  89. package/{browser/esm/DLn3G10hRwsZCSWB.mjs → node/esm/DdDDFLZKFx1DAkKM.mjs} +1 -1
  90. package/{browser/esm/BgePMvIc6yA6_ebp.mjs → node/esm/DlNI2fuUSYxsUPt8.mjs} +1 -1
  91. package/node/esm/{DjenIXryJ8ccxNad.mjs → Dsf-AEKpZlzGOrcG.mjs} +1 -1
  92. package/node/esm/{B6zlCMitM169AEV5.mjs → HTDFLMWuQb82Y-GF.mjs} +1 -1
  93. package/node/esm/{BSbOEM-6aEtAEUn2.mjs → MrOJ8ENTixputV8_.mjs} +1 -1
  94. package/node/esm/{BhJMGJ-z8AHuc4PL.mjs → Tl8jbxaeK1y9aMPJ.mjs} +1 -1
  95. package/{browser/esm/JP2SydGPgN2PrEam.mjs → node/esm/aF3uflTbayaEj07D.mjs} +1 -1
  96. package/{browser/esm/DIiCZ8EuWYWD1G4X.mjs → node/esm/bIOUtGNQ6YQktkYZ.mjs} +1 -1
  97. package/{browser/esm/Cy781c813953r7bq.mjs → node/esm/iYqJLAQld4jtK1Be.mjs} +1 -1
  98. package/node/esm/index.mjs +725 -725
  99. package/node/esm/{CyZcmz9fV3_Zu57s.mjs → io70M3K8dlSe5V-4.mjs} +1 -1
  100. package/{browser/esm/BrAfC_Hz1HZiZjNh.mjs → node/esm/mxJXDPqwl0wNxd66.mjs} +1 -1
  101. package/node/esm/{kQVOc3F7_ib5L98K.mjs → rpVHlxg6GM8pJL5c.mjs} +2 -2
  102. package/package.json +5 -5
  103. package/browser/cjs/CxV1-OXj1ZO7MZQF.cjs +0 -60
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.19
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.20
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.
@@ -300,7 +300,7 @@ let _ = class {
300
300
  super(t5), this.name = "NotImplementedError";
301
301
  }
302
302
  };
303
- const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), b = { getCurrencySymbol: () => "$", getNumberDecimalSeparator: () => ".", getNumberGroupSeparator: () => ",", isDate1904: () => false, getLocation: () => "unknown", getVersion: () => "1.0.0", getOS: () => "unknown", getUser: () => "unidentified", getDescription: () => "Stubbed Formula Context" }, C = new S(), v = { Up: "up", Down: "down", Left: "left", Right: "right" }, x = { TopLeft: "tl", Top: "t", TopRight: "tr", Left: "l", Center: "c", Right: "r", BottomLeft: "bl", Bottom: "b", BottomRight: "br" }, I = { html: "text/html", plain: "text/plain", png: "image/png" }, R = Object.freeze({ left: 0, top: 0 }), A = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), M = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), N = Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: M, EmptyRect: A, EmptyTopLeft: R }, Symbol.toStringTag, { value: "Module" })), T = { Column: "column", Row: "row" }, k = { ...T, Both: "both" }, F = Object.freeze({ colIndex: 0, rowIndex: 0 }), O = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), D = (t5, e2) => t5.colStart === e2.colStart ? t5.rowStart - e2.rowStart : t5.colStart - e2.colStart, L = (t5, e2) => t5.rowStart === e2.rowStart ? t5.colStart - e2.colStart : t5.rowStart - e2.rowStart, B = (t5, e2) => t5.rowEnd === e2.rowEnd ? e2.colEnd - t5.colEnd : e2.rowEnd - t5.rowEnd, P = (t5, e2) => t5.colEnd === e2.colEnd ? e2.rowEnd - t5.rowEnd : e2.colEnd - t5.colEnd, z = (t5, e2) => t5.colIndex === e2.colIndex ? t5.rowIndex - e2.rowIndex : t5.colIndex - e2.colIndex, j = (t5, e2) => t5.rowIndex === e2.rowIndex ? t5.colIndex - e2.colIndex : t5.rowIndex - e2.rowIndex, W = (t5 = T.Row, e2 = false) => e2 ? t5 !== T.Column ? B : P : t5 !== T.Column ? L : D, H = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowIndex === e2.rowIndex && t5.colIndex === e2.colIndex, V = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowStart === e2.rowStart && t5.rowEnd === e2.rowEnd && t5.colStart === e2.colStart && t5.colEnd === e2.colEnd, $ = (t5, e2) => !(!t5 || !e2 || t5.colStart > e2.colEnd || e2.colStart > t5.colEnd || t5.rowStart > e2.rowEnd || e2.rowStart > t5.rowEnd), G = (t5, e2) => {
303
+ const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), b = { getCurrencySymbol: () => "$", getNumberDecimalSeparator: () => ".", getNumberGroupSeparator: () => ",", isDate1904: () => false, getLocation: () => "unknown", getVersion: () => "1.0.0", getOS: () => "unknown", getUser: () => "unidentified", getDescription: () => "Stubbed Formula Context" }, C = new S(), v = { Up: "up", Down: "down", Left: "left", Right: "right" }, x = { TopLeft: "tl", Top: "t", TopRight: "tr", Left: "l", Center: "c", Right: "r", BottomLeft: "bl", Bottom: "b", BottomRight: "br" }, I = { html: "text/html", plain: "text/plain", png: "image/png" }, R = Object.freeze({ left: 0, top: 0 }), A = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), M = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), T = Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: M, EmptyRect: A, EmptyTopLeft: R }, Symbol.toStringTag, { value: "Module" })), N = { Column: "column", Row: "row" }, k = { ...N, Both: "both" }, F = Object.freeze({ colIndex: 0, rowIndex: 0 }), O = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), D = (t5, e2) => t5.colStart === e2.colStart ? t5.rowStart - e2.rowStart : t5.colStart - e2.colStart, L = (t5, e2) => t5.rowStart === e2.rowStart ? t5.colStart - e2.colStart : t5.rowStart - e2.rowStart, B = (t5, e2) => t5.rowEnd === e2.rowEnd ? e2.colEnd - t5.colEnd : e2.rowEnd - t5.rowEnd, P = (t5, e2) => t5.colEnd === e2.colEnd ? e2.rowEnd - t5.rowEnd : e2.colEnd - t5.colEnd, z = (t5, e2) => t5.colIndex === e2.colIndex ? t5.rowIndex - e2.rowIndex : t5.colIndex - e2.colIndex, j = (t5, e2) => t5.rowIndex === e2.rowIndex ? t5.colIndex - e2.colIndex : t5.rowIndex - e2.rowIndex, W = (t5 = N.Row, e2 = false) => e2 ? t5 !== N.Column ? B : P : t5 !== N.Column ? L : D, H = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowIndex === e2.rowIndex && t5.colIndex === e2.colIndex, V = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowStart === e2.rowStart && t5.rowEnd === e2.rowEnd && t5.colStart === e2.colStart && t5.colEnd === e2.colEnd, $ = (t5, e2) => !(!t5 || !e2 || t5.colStart > e2.colEnd || e2.colStart > t5.colEnd || t5.rowStart > e2.rowEnd || e2.rowStart > t5.rowEnd), G = (t5, e2) => {
304
304
  if (t5 === e2) return true;
305
305
  if (!t5 || !e2) return false;
306
306
  if (t5.length !== e2.length) return false;
@@ -313,7 +313,7 @@ const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colSt
313
313
  const r2 = Math.min(t5.colStart, e2.colStart), o2 = Math.min(t5.rowStart, e2.rowStart), s2 = Math.max(t5.colEnd, e2.colEnd), i2 = Math.max(t5.rowEnd, e2.rowEnd);
314
314
  let a2 = n2;
315
315
  return a2 ? (a2.colStart = r2, a2.rowStart = o2, a2.colEnd = s2, a2.rowEnd = i2) : a2 = { colStart: r2, rowStart: o2, colEnd: s2, rowEnd: i2 }, a2;
316
- }, J = (t5, e2) => {
316
+ }, q = (t5, e2) => {
317
317
  if (!e2 || 0 === e2.length) return t5;
318
318
  const n2 = { ...t5 };
319
319
  for (let t6 = 0; t6 < e2.length; t6++) {
@@ -321,15 +321,15 @@ const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colSt
321
321
  $(n2, r2) && (n2.rowStart = Math.min(n2.rowStart, r2.rowStart), n2.colStart = Math.min(n2.colStart, r2.colStart), n2.rowEnd = Math.max(n2.rowEnd, r2.rowEnd), n2.colEnd = Math.max(n2.colEnd, r2.colEnd));
322
322
  }
323
323
  return n2;
324
- }, q = [null, null], K = (t5, e2, n2) => {
324
+ }, J = [null, null], K = (t5, e2, n2) => {
325
325
  if (t5[0].value === t5[1].value) return e2;
326
326
  };
327
- function X(t5, e2 = 2, n2, r2 = T.Row, o2) {
327
+ function X(t5, e2 = 2, n2, r2 = N.Row, o2) {
328
328
  let s2 = [...t5];
329
329
  if (e2 <= 0 || t5.length <= 1) return s2;
330
- let i2 = r2 === T.Column, a2 = 0, l2 = false;
330
+ let i2 = r2 === N.Column, a2 = 0, l2 = false;
331
331
  do {
332
- const t6 = s2.sort(W(i2 ? T.Row : T.Column));
332
+ const t6 = s2.sort(W(i2 ? N.Row : N.Column));
333
333
  s2 = [], s2.push(t6[0]);
334
334
  const e3 = t6.length;
335
335
  let c2 = 0, h2 = t6[0], u2 = h2.colStart, d2 = h2.rowStart, g2 = h2.colEnd, m2 = h2.rowEnd;
@@ -357,7 +357,7 @@ const Y = Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: F, E
357
357
  if (!t5) return null;
358
358
  let n2 = e2;
359
359
  return n2 || (n2 = { ...t5 }, delete n2.colIndex, delete n2.rowIndex), n2.colStart = t5.colIndex ?? 0, n2.rowStart = t5.rowIndex ?? 0, n2.colEnd = t5.colIndex ?? 0, n2.rowEnd = t5.rowIndex ?? 0, n2;
360
- }, columnFirstCellComparator: z, columnFirstRangeComparator: D, createCellComparator: (t5 = T.Row, e2 = false) => e2 ? t5 !== T.Column ? (t6, e3) => t6.rowIndex === e3.rowIndex ? e3.colIndex - t6.colIndex : e3.rowIndex - t6.rowIndex : (t6, e3) => t6.colIndex === e3.colIndex ? e3.rowIndex - t6.rowIndex : e3.colIndex - t6.colIndex : t5 !== T.Column ? j : z, createConflatingRanges: (t5, e2 = false) => {
360
+ }, columnFirstCellComparator: z, columnFirstRangeComparator: D, createCellComparator: (t5 = N.Row, e2 = false) => e2 ? t5 !== N.Column ? (t6, e3) => t6.rowIndex === e3.rowIndex ? e3.colIndex - t6.colIndex : e3.rowIndex - t6.rowIndex : (t6, e3) => t6.colIndex === e3.colIndex ? e3.rowIndex - t6.rowIndex : e3.colIndex - t6.colIndex : t5 !== N.Column ? j : z, createConflatingRanges: (t5, e2 = false) => {
361
361
  const n2 = [];
362
362
  let r2, o2, s2 = Number.MIN_SAFE_INTEGER, i2 = Number.MIN_SAFE_INTEGER;
363
363
  return { append: (a2, l2, c2) => {
@@ -371,11 +371,11 @@ const Y = Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: F, E
371
371
  r2 && n2.push(r2);
372
372
  const d2 = e2 ? a2 : l2, g2 = e2 ? l2 : a2;
373
373
  r2 = { colStart: d2, rowStart: g2, colEnd: d2, rowEnd: g2 }, u2 && (r2.value = c2), s2 = a2, i2 = l2, o2 = c2;
374
- }, done: (t6) => (r2 && (n2.push(r2), r2 = null), t6 ? X(n2, 3, true === t6 ? K : t6, e2 ? T.Column : T.Row, q) : n2) };
375
- }, createRangeComparator: W, defaultRange: (t5, e2, n2) => t5 ? n2 ? (n2.colStart = t5.colStart ?? e2.colStart, n2.rowStart = t5.rowStart ?? e2.rowStart, n2.colEnd = t5.colEnd ?? e2.colEnd, n2.rowEnd = t5.rowEnd ?? e2.rowEnd, n2) : { colStart: t5.colStart ?? e2.colStart, rowStart: t5.rowStart ?? e2.rowStart, colEnd: t5.colEnd ?? e2.colEnd, rowEnd: t5.rowEnd ?? e2.rowEnd } : e2, extendRangeToIntersectingRanges: J, extendRangeToUnionRanges: (t5, e2) => {
374
+ }, done: (t6) => (r2 && (n2.push(r2), r2 = null), t6 ? X(n2, 3, true === t6 ? K : t6, e2 ? N.Column : N.Row, J) : n2) };
375
+ }, createRangeComparator: W, defaultRange: (t5, e2, n2) => t5 ? n2 ? (n2.colStart = t5.colStart ?? e2.colStart, n2.rowStart = t5.rowStart ?? e2.rowStart, n2.colEnd = t5.colEnd ?? e2.colEnd, n2.rowEnd = t5.rowEnd ?? e2.rowEnd, n2) : { colStart: t5.colStart ?? e2.colStart, rowStart: t5.rowStart ?? e2.rowStart, colEnd: t5.colEnd ?? e2.colEnd, rowEnd: t5.rowEnd ?? e2.rowEnd } : e2, extendRangeToIntersectingRanges: q, extendRangeToUnionRanges: (t5, e2) => {
376
376
  if (!e2 || 0 === e2.length) return t5;
377
377
  let n2 = t5, r2 = null;
378
- for (; !V(n2, r2); ) r2 = n2, n2 = J(r2, e2);
378
+ for (; !V(n2, r2); ) r2 = n2, n2 = q(r2, e2);
379
379
  return n2;
380
380
  }, indexOfCoords: (t5, e2) => {
381
381
  const n2 = { colStart: t5.colIndex, rowStart: t5.rowIndex, colEnd: t5.colIndex, rowEnd: t5.rowIndex };
@@ -743,7 +743,7 @@ const Et = (t5, e2 = false) => (document.hasFocus() || e2) && (t5 === document.a
743
743
  r2?.src && URL.revokeObjectURL(r2.src);
744
744
  }
745
745
  r2 || n2(At);
746
- }), Nt = "image/svg+xml", Tt = Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: Rt, getImageDataUrl: (t5, e2 = 1) => new Promise(async (n2, r2) => {
746
+ }), Tt = "image/svg+xml", Nt = Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: Rt, getImageDataUrl: (t5, e2 = 1) => new Promise(async (n2, r2) => {
747
747
  let o2 = null;
748
748
  try {
749
749
  o2 = new Image(), o2.src = t5, o2.addEventListener("load", function() {
@@ -772,12 +772,12 @@ const Et = (t5, e2 = false) => (document.hasFocus() || e2) && (t5 === document.a
772
772
  }
773
773
  }, o2 = async () => {
774
774
  try {
775
- const r3 = new TextDecoder().decode(t5), o3 = URL.createObjectURL(new Blob([r3], { type: Nt })), s2 = await Mt(o3);
776
- n2 = { mimeType: e2 ?? Nt, naturalDimensions: s2, asUrl: o3, asSVGText: r3 };
775
+ const r3 = new TextDecoder().decode(t5), o3 = URL.createObjectURL(new Blob([r3], { type: Tt })), s2 = await Mt(o3);
776
+ n2 = { mimeType: e2 ?? Tt, naturalDimensions: s2, asUrl: o3, asSVGText: r3 };
777
777
  } catch (t6) {
778
778
  }
779
779
  };
780
- if (e2 === Nt ? await o2() : e2.startsWith("image/") ? await r2() : (await r2(), n2 || await o2()), !n2) throw new Error("Failed to load image");
780
+ if (e2 === Tt ? await o2() : e2.startsWith("image/") ? await r2() : (await r2(), n2 || await o2()), !n2) throw new Error("Failed to load image");
781
781
  return n2;
782
782
  } }, Symbol.toStringTag, { value: "Module" }));
783
783
  function kt(t5, e2) {
@@ -909,7 +909,7 @@ const Vt = "The Safari browser does not support advanced copy and paste.\nCopy a
909
909
  document.hasFocus() ? t5() : globalThis.addEventListener?.("focus", () => {
910
910
  t5();
911
911
  }, { once: true }), document.activeElement.focus?.();
912
- }), Jt = async (t5, e2, n2) => {
912
+ }), qt = async (t5, e2, n2) => {
913
913
  if (wt() === St.Safari) return await n2(new Error(Gt.Safari));
914
914
  try {
915
915
  const r2 = async (t6) => {
@@ -926,7 +926,7 @@ const Vt = "The Safari browser does not support advanced copy and paste.\nCopy a
926
926
  if ("No valid data on clipboard" === t6.message || "DataError" === t6.name) return;
927
927
  return await n2(t6);
928
928
  }
929
- }, qt = async (t5) => {
929
+ }, Jt = async (t5) => {
930
930
  try {
931
931
  return await t5.read({ unsanitized: [I.html] });
932
932
  } catch (t6) {
@@ -934,7 +934,7 @@ const Vt = "The Safari browser does not support advanced copy and paste.\nCopy a
934
934
  return await t5.read();
935
935
  }, Kt = async (t5, e2) => {
936
936
  if (!t5) return null;
937
- const n2 = await qt(t5);
937
+ const n2 = await Jt(t5);
938
938
  let r2 = false;
939
939
  for (let t6 = 0; !r2 && n2 && t6 < n2.length; t6++) if (r2 = n2[t6].types.includes(e2), r2) return await n2[t6].getType(e2);
940
940
  return r2 ? void 0 : null;
@@ -1021,7 +1021,7 @@ class se {
1021
1021
  this._disableCheckOnFocus = t5?.disableCheckOnFocus ?? false, this._init();
1022
1022
  }
1023
1023
  async _checkForChanges() {
1024
- this._nativeClipboard && this._state && !this._disableCheckOnFocus && await Jt("clipboard-read", async () => {
1024
+ this._nativeClipboard && this._state && !this._disableCheckOnFocus && await qt("clipboard-read", async () => {
1025
1025
  await Ut();
1026
1026
  const t5 = await Xt(this._nativeClipboard, ee);
1027
1027
  if (!this._state) return true;
@@ -1045,14 +1045,14 @@ class se {
1045
1045
  async read() {
1046
1046
  if (!this._nativeClipboard) return this._state?.items ?? null;
1047
1047
  const t5 = this;
1048
- return await Jt("clipboard-read", async () => {
1048
+ return await qt("clipboard-read", async () => {
1049
1049
  if (await Ut(), this._state?.uuid) {
1050
1050
  const e2 = await Xt(this._nativeClipboard, ee);
1051
1051
  if (e2 && e2 === t5._state.uuid) return true;
1052
1052
  const n2 = await Yt(this._nativeClipboard, I.html);
1053
1053
  if (oe(t5._state?.uuid, n2)) return true;
1054
1054
  }
1055
- return t5._state = { items: await qt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), true;
1055
+ return t5._state = { items: await Jt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), true;
1056
1056
  }, async (t6) => {
1057
1057
  this.dispatchEvent(new Event("clipboarderrorread"));
1058
1058
  }), this._state?.items ?? [];
@@ -1067,7 +1067,7 @@ class se {
1067
1067
  const s2 = () => {
1068
1068
  e2._state = { uuid: r2, ref: t5.ref, items: n2 }, e2.dispatchEvent(new Event("clipboardwrite")), e2.dispatchEvent(new Event("clipboardchange"));
1069
1069
  };
1070
- await Jt("clipboard-write", async () => {
1070
+ await qt("clipboard-write", async () => {
1071
1071
  await Ut(), r2 && 0 === o2.length && (o2.push(new ClipboardItem({ [ee]: new Blob([r2], { type: ee }) })), o2.push(new ClipboardItem({ [I.html]: new Blob([ne(r2)], { type: I.html }) })));
1072
1072
  for (let t6 = 0; t6 < Math.min(1, o2.length); t6++) {
1073
1073
  const e3 = o2[t6];
@@ -1630,7 +1630,7 @@ class fe extends ae {
1630
1630
  }
1631
1631
  const pe = () => {
1632
1632
  try {
1633
- return "0.4.19";
1633
+ return "0.4.20";
1634
1634
  } catch (t5) {
1635
1635
  return "";
1636
1636
  }
@@ -1707,164 +1707,175 @@ KeyFrom: '${t5.keyFrom()}'`, console.log(l2(o2))), Promise.resolve();
1707
1707
  for (let t7 = 0; t7 < r2.length; t7++) r2[t7].charCodeAt(0) <= n3 && (r2[t7] = String.fromCharCode((r2[t7].charCodeAt(0) + e3) % n3));
1708
1708
  return r2.join("");
1709
1709
  })(t5, n2 - e2), ve = (t5) => "object" == typeof window ? window.atob(t5) : Buffer.from(t5, "base64").toString("ascii");
1710
- function xe() {
1711
- const t5 = ["W6ldQei3k8oSWQnvW7lcGW", "gCk+WQxcTmk/CW", "WRRcSmovzmk3jCo3CZVdKsm/xq", "W4mSe0NdTmoQWRxcJ8kOWRZdQmkQ", "W6fTW5FcG8ohW4jCjtnJFZyhWOum", "WPldNmoag8kgW47dPSo9WOrRWQ0TW58", "u2pdJdFcM13cGCk2W6iUb8knl8oZWO3cJq", "W4aSe2RdQmoVWQO", "W7ZcUSkcx8oCWO7cVmoqWQe", "l8kAW5C8WR8f", "W7hcGWBcO8koBG", "WP/dGKBdU8oulmkUm0tcPbDlsa", "o8otWQ/dPSoqW7pcQa", "vCk1xSoWW6JdNLLu", "fXpcTKOfW5ldHsuxW6q", "rSoHx1ldTMy", "W6PNW4dcOmoEW4nFmHe", "W48ShK3dS8oSWRq", "W4qOW5FcGCk1W7X1oKJcLshcOdG", "y8o+W7RcSSkptCky", "W5/cVmoMgSo0jW", "W4BcUSoBhq", "W6xcH8oTmmoegSoU", "WOtdTSkFrmkPCSkBW7TGW4TMWOC1W4O", "ccrNW5pcVmoTW6/dLXKIo8okWQ8z", "s8o5W7ldPCo0jmo8WQqxumk4W4NdGW", "W7xdUeuB", "WP/cH8oyv1zOmeas", "W5/cVmo+fmo8k8og", "oeX7W5aPwdRcIa", "BMxdVSkABCo5", "imk8WRlcUmkRySkgWPWiuCk8W64", "yw5UW47cRSo5WOO", "n8oyWONdRSooW6m", "W5SIW4q", "iCouWPJdTCoiW6NcM8koWQhcNq", "qdbPa8o1i3JdRa", "uCkGx8o3W6ldN1zjW7BdSa", "W6xcPSo0W6S", "W7FdQfiglCo9", "W7ddGbVdL8ofWOXpW4NcKCoWWQ9hWONdQvxcTa", "W6ldQfGwpmo5WRzzW5dcN1iqmXi", "gfr+W48ludRcItL5WRneWP7dQNO", "WRhcUarhF8kQW7PLW6/cN1CGfq", "j8kwW4WWzCkJW7pcTsSIjtnIWPiNW4FdGSkVaXa", "W7RdL8kLkG", "z8ozmmkxW4OncqldQf8", "BbaOWO1oh37dJMC", "o1LIn8o4ag7dRrRdPa", "CxxdVCkrESopz0JcTmorW7q", "W5FdUCkqpmoGyCkkjINdPr43rSkJ", "cmkBW4u4WPOinKtdTJxcGMJcRCkuWQBcJSoFWQSuWPn/W7zbWRrfWP/cGa", "WPyJW6GUWPdcOv4", "fSk/WOxcP8kKEG", "W5pdMHxdLmkx", "dCowWPJdQ8ovW77cRCktWRa", "WO8iW4SFFmoLWOxcO3pcQLKKWRddSa", "jmkdW5i1", "W5pcUmoYF8oTW7XFCSkBwatdPdNdI1b8WOBdR8kSzq", "CCodjW", "WQXAW4ZcNmotqWu", "W7hcVSkXFSoSW6jBumkquG", "WRSUASkYqg/cGeHSW4pdQCor", "qI9tWP0rt3/cQSk8W74", "W5FdLXtdLCkaWRj2W5JcNCoWWQHhW40", "W4xcGmkgtSoBW5ldTmkHW5e", "W5aktqD4W5CfW4q", "W4X3WQzFW5pdUarCfmohzs9y", "v8k6WQbhW6ZcRIpdGcXm", "jhZdStKQW686", "WQW+BCky", "WQidW4SBFmoJWPhdPMxcHLSWWRFdQG", "W43dJCoGWRJdRmkxcSokWQhdPL1rlG", "WRaUCmkxqw4", "W4pcNbXqWRhdQZuHWRLLwLe", "W5L4W5hcQmoCW58", "FK3dHW4/W6W", "W7VdMvRdKmkaWRK", "CxxdU8ksz8o+yW", "nffAW5uFxq", "W6G9W5hcPmkYW6TsnvxcNG/cTW", "mSkqW4CvWP8cnWRdItNcQMJcUG", "W4FdKWNdLmkjWRzd", "W5C5c2ldTq", "WRq5WPtdT8kbWPWglanNxr8j", "W4VcIXFcR8kqBSoZfKtcOq", "CxxdVCkrEG", "k8koW5S9FmkRW6pdVcGLzHPLWOiNWONdMSkV", "W7hcSSk8Fmo2W7K", "egJdJshcHXhcISkoW796aSkInmodWORdMgOaWQ4", "x3mHW4/cRSoPWORcN8o7WQ4FWPPUpmkgymo3W5Xl", "W4JdICo6WPtdVmkmnSoCWOZdQv1r", "W4FcGmkgtmoAWPBcOmoFWOXlWQCwW6in", "e0ZcUGJdJCkQW79GE3/dNmoXEZa", "W6ZdVNmfl8o0", "W4RcHCoufSkZW5yeW53dOCoG", "W6fTW5FcISoxW5i", "E8k+WRnCW7BcQq", "n8oyWPRdOSomW67cPCkiWRVcHG", "WP0mW5epDComWOm", "W6fTW43cPmoaW4PejcTPAsaNWO4", "W63cPCk9DSoRW6jB", "W5tcUCkKESoUW7HAo8kBreddSGddIGK1", "W7FcRCoHW6VdNCoC", "qmkRWRvuW7hcSqFdUsPnqIJcNXW", "WO9dwSkN", "aLr+W48xvs/cLdm", "WPHtxCkaWQy", "WO5uqInSW4CnW7K", "e8kPWQ7cTSkXFG", "WRutpvpdQxVdP8oMc3i", "dSklqu85yW", "W6NdQfGuoSoW", "qtb8oCoVnxJdLSkq", "iCovWONdT8ooW7/cV8kuWOxcH8oRWPlcOW", "mCkiW4G4z8k+W5pdSdmQlZP/", "cCkTWQZcPmkGumkY", "CmoIy1tdVhDzWPpdKH0FnW", "W5NdKXtdNmkrWQG", "W7tcP8oNW6VdL8onW7hcISoEWOG", "W58IW5dcUCkYW759mq", "vmk6D3GSymkl", "sSoQyvtdOhO", "f8o+W7maWQRdRsZdSa1ctt0", "WRtcNSo1vfXTpveZW6C+wsFcN8ocxmo5dG", "j0jOpmoIn27dKH7dTmowWQq", "WO4JW6uJWOFcTW", "gmkPWRtcK8kWF8kOWPKWwSkRW6/dHwDB", "W4tcGmkgB8ogWPpcV8oRWQHhWRSrW64gWRm", "W6NcKmoyb8o/nSonWPrz", "d8k+WQNcV8kXvmkLWPmiwSkR", "W7BcUSoWW5RdJSouW70", "WQbhW77cJSoOqXv8", "zGKZzmkJrZ7dLaxdLmoEWPGa", "hmopW5NdOSoeW6RcPCkvWRtcGCoRWPpcUq", "W6BdVCkTvZz6", "aSkDW5q2FCkI", "hCkJjGVcOtqTWP/dMHiQh8oR", "bCo1gCkgWRxcM295W4/dPv/dLa", "W4RcNbNcQ8kjDmoP", "WP5iACo+a8oLWPddSuVdPCkAbq", "W4dcPSoBhmoKyG", "aSkxW5KWFCkJW7JdUW", "cezGpSo/f2RdKHO", "iSovWORdRW", "WQOso1pdS3ddRSoYaMiUW7FdJSkIWQ7cNCoSWOG7", "bXFcSv4sW4/dIJGEW7m", "WONcPCojASkToq", "WQtcNSouwLzIiG", "x3mHW6/cRSoPWORcN8o7WQ4FWQf5kG", "W47cHCkDt3S6dCk1eSo/FW", "W5ddMXVdKSkjW6a", "W4RcLSk8qSoxWP8", "b8kawx4SEq", "lKO0eLNcPa", "W4eVpcKxyq", "wdjrWOagEG", "W4JcLHxcVSkvAmo/cG", "sJXReSoUiNJdLmkrCG", "WODlqcO", "xxvIW4BcQCo5WORdKCoMWQrlW4PQmSkCymo3WPLjW7zZWOlcHKvRW7beWRBcVW", "WRqDW48tFSo+WRhcO3xcIf89WQ0", "wdrcWOubAMZcRmk4", "js9LW5pcUCoOW7JcPWCInSoBWQqoeK3cScmmFq", "W7/cTSk8DCoNW6nUACkCrvddSI0", "W7xcUSoWW6/dJSovW6S", "qmkRWRvuW7hcSqC", "b1VcPWFdKmkcW6LeAh/dNSo2", "yvZdIb0+W7C", "sSk4WO8dz8kMmSk1E2ZdICowfW", "W5qKW4/dO8kWW6DKmv7cMbK", "W7VcIrP7WQRdTG", "yYDxWOGbyN7cImkVW67dM0u4tq", "BXvZW6ieuIpcUa", "ymoFomkeW5i", "crZcS3SBW5ldJW", "WOvyvrjRW5Kn", "W5FcGmkkwq", "W6lcR8oOW6FdKW", "j2XeW6ZcOmoSWOC", "W7qyWQ3dISkohfzWW51wjGG9", "W5dcIWf/", "gSk0WRdcUmk3BW", "p27dGdFcHG7cISo5W7n2gSkfkCo1WOhcJxCnW6S", "W60NewRdRCoQWR3dI8kjWQxdRmkMW4/dLYuBmhS", "WOpcSSocAmkJna", "yYnPg8o1mgNdTSkBzvtcNJhcLrpcO8kIaqjHW5WeF2xdJW", "mCkMAM0zu8k+WQPlBv1WkdPQzfrXWOe", "WQOop0tdS3VdLCoegMm", "CCovmSkaW44knWtdSKq", "W4NdJCk7l1ddRsNcSWe", "W6hcRCoRW6pdJSokW70", "hSkJiWZcPJuVWRJdKGupkSoN", "W5ldKW7dUCkqWQLkW47cOSo7WQ5rW4ddJv4", "W67dH8kIi0ZdRZpcLWOOhXqMW40", "WPeJW78pWPBcPG", "s8oDi8kmW5akhaRdSLL2BG", "zsnnWOCnFf3cQSk0W6NdGvq5", "tCk9WO9AW7ZcUa", "W7VcPHHGWQVdTJyAWQi", "WQ8JE8kvqx7cGa", "eSkCqeuKEmkx", "WOdcV8oToSo3jmok", "WP1xr8kHWPddTfjKoSkXW4JdHGK", "j0jUp8o/ag4", "W53cHXxcUmkuAConef7cUG"];
1712
- return (xe = function() {
1713
- return t5;
1714
- })();
1715
- }
1716
- function Ie(t5, e2, n2, r2, o2) {
1717
- return ze(t5 - 607, o2);
1718
- }
1719
- function Re(t5, e2, n2, r2, o2) {
1720
- return ze(o2 - 879, n2);
1710
+ function xe(t5, e2, n2, r2, o2) {
1711
+ return We(o2 - 108, n2);
1721
1712
  }
1722
1713
  !function() {
1723
- const t5 = "nQE4", e2 = 602, n2 = "xv2R", r2 = 121, o2 = 393, s2 = "YZ#I", i2 = 3, a2 = "BvI8", l2 = "%]Ov", c2 = 15;
1724
- function h2(t6, e3, n3, r3, o3) {
1725
- return ze(t6 - -346, o3);
1726
- }
1727
- const u2 = xe();
1714
+ const t5 = "qHsg", e2 = 771, n2 = "@rOU", r2 = 431, o2 = "ubpF", s2 = "s$wz", i2 = 419, a2 = "#cT5", l2 = "ldC(", c2 = "fpz7", h2 = 1125, u2 = 525;
1728
1715
  function d2(t6, e3, n3, r3, o3) {
1729
- return ze(e3 - -450, t6);
1730
- }
1731
- function g2(t6, e3, n3, r3, o3) {
1732
- return ze(o3 - -915, t6);
1716
+ return We(t6 - 292, r3);
1733
1717
  }
1718
+ const g2 = Be();
1734
1719
  function m2(t6, e3, n3, r3, o3) {
1735
- return ze(r3 - -1e3, n3);
1720
+ return We(e3 - u2, n3);
1736
1721
  }
1737
1722
  function f2(t6, e3, n3, r3, o3) {
1738
- return ze(t6 - 8, o3);
1723
+ return We(t6 - -107, r3);
1724
+ }
1725
+ function p2(t6, e3, n3, r3, o3) {
1726
+ return We(n3 - 183, e3);
1739
1727
  }
1740
1728
  for (; ; ) try {
1741
- if (658980 === -parseInt(m2(0, 0, t5, -727)) / 1 + parseInt(m2(0, 0, "Pr4i", -e2)) / 2 + parseInt(d2(n2, -123)) / 3 * (parseInt(d2("JE9e", -r2)) / 4) + -parseInt(f2(425, 0, 0, 0, "*Aeh")) / 5 * (parseInt(f2(o2, 0, 0, 0, "^Sfr")) / 6) + -parseInt(g2(s2, 0, 0, 0, -666)) / 7 + -parseInt(h2(-i2, 0, 0, 0, "Pr4i")) / 8 * (parseInt(g2(a2, 0, 0, 0, -643)) / 9) + parseInt(d2(l2, -c2)) / 10) break;
1742
- u2.push(u2.shift());
1729
+ if (378311 === parseInt(d2(842, 0, 0, t5)) / 1 + parseInt(d2(e2, 0, 0, n2)) / 2 * (parseInt(f2(r2, 0, 0, "LZfK")) / 3) + -parseInt(d2(894, 0, 0, o2)) / 4 + parseInt(d2(847, 0, 0, s2)) / 5 * (parseInt(f2(i2, 0, 0, a2)) / 6) + -parseInt(d2(797, 0, 0, l2)) / 7 * (parseInt(m2(0, 1050, c2)) / 8) + parseInt(m2(0, h2, "E7K4")) / 9 + -parseInt(p2(0, "0%h#", 717)) / 10) break;
1730
+ g2.push(g2.shift());
1743
1731
  } catch (t6) {
1744
- u2.push(u2.shift());
1732
+ g2.push(g2.shift());
1745
1733
  }
1746
1734
  }();
1735
+ const Ie = () => {
1736
+ const t5 = "E!1X", e2 = 312, n2 = "cJ]S", r2 = "ubpF";
1737
+ function o2(t6, e3, n3, r3, o3) {
1738
+ return We(e3 - -240, n3);
1739
+ }
1740
+ if (typeof window === o2(0, 301, "kk%Y")) return window[s2 = 665, i2 = t5, We(s2 - 202, i2)][o2(0, e2, n2)];
1741
+ var s2, i2;
1742
+ return bt[o2(0, 327, r2)]();
1743
+ };
1744
+ function Re(t5, e2, n2, r2, o2) {
1745
+ return We(n2 - -112, r2);
1746
+ }
1747
1747
  const Ae = () => {
1748
- const t5 = 1056, e2 = 982, n2 = "Ar9C", r2 = 1123, o2 = "fnMx", s2 = 102;
1749
- if (typeof window === i2(1145, 1150, 1245, "CZ^P")) return window[i2(1110, t5, e2, n2)][i2(r2, 1034, 985, "jBcb")];
1750
- function i2(t6, e3, n3, r3, o3) {
1751
- return ze(e3 - 708, r3);
1752
- }
1753
- return bt[a2 = o2, l2 = s2, ze(l2 - -211, a2)]();
1754
- var a2, l2;
1755
- }, Me = () => {
1756
- const t5 = "#37p", e2 = 190;
1757
- function n2(t6, e3, n3, r2, o2) {
1758
- return ze(e3 - -265, n3);
1759
- }
1760
- return Ae()[n2(0, 73, "#pUA")](n2(0, 163, "%CRV")) || Ae() === ze(443 - e2, t5);
1761
- }, Ne = (t5, e2, n2, r2) => {
1762
- const o2 = 643;
1763
- function s2(t6, e3, n3, r3, o3) {
1764
- return ze(n3 - -159, r3);
1765
- }
1766
- function i2(t6, e3, n3, r3, o3) {
1767
- return ze(t6 - 47, o3);
1768
- }
1769
- function a2(t6, e3, n3, r3, o3) {
1770
- return ze(o3 - -571, r3);
1771
- }
1772
- function l2(t6, e3, n3, r3, s3) {
1773
- return ze(s3 - o2, n3);
1774
- }
1775
- return { licensee: () => t5[i2(361, 0, 0, 0, "BvI8")], expiration: () => new Date(t5[i2(375, 0, 0, 0, "Pr4i")]), domains: () => t5[i2(392, 0, 0, 0, "Fk1I")] ?? [], developerCount: () => t5[a2(0, 0, 0, "[beQ", -309)] ?? 1, cpuCount: () => t5[s2(0, 0, 266, "2rZ)")] ?? 0, type: () => t5[l2(0, 0, "vb)n", 0, 1093)] ?? i2(443, 0, 0, 0, "3ZP3"), exceptions: () => e2, isValidFor: (t6) => {
1776
- const n3 = 492;
1777
- return !(e2?.[r3 = "xv2R", o3 = 650, s2(0, 0, o3 - n3, r3)] > 0);
1778
- var r3, o3;
1748
+ const t5 = 267, e2 = "cJ]S", n2 = "UgJ5", r2 = 219;
1749
+ function o2(t6, e3, n3, r3, o3) {
1750
+ return We(r3 - -387, t6);
1751
+ }
1752
+ return Ie()[o2("#IWZ", 0, 0, t5)](o2(e2, 0, 0, 68)) || Ie() === o2(n2, 0, 0, r2);
1753
+ }, Me = (t5, e2, n2, r2) => {
1754
+ const o2 = "lNbi", s2 = 1049, i2 = 570, a2 = 0, l2 = 576;
1755
+ function c2(t6, e3, n3, r3, o3) {
1756
+ return We(o3 - l2, e3);
1757
+ }
1758
+ function h2(t6, e3, n3, r3, o3) {
1759
+ return We(t6 - -524, r3);
1760
+ }
1761
+ function u2(t6, e3, n3, r3, o3) {
1762
+ return We(e3 - -496, n3);
1763
+ }
1764
+ function d2(t6, e3, n3, r3, o3) {
1765
+ return We(t6 - 48, r3);
1766
+ }
1767
+ return { licensee: () => t5[d2(516, 0, 0, "]upj")], expiration: () => new Date(t5[d2(640, 0, 0, "3*&g")]), domains: () => t5[u2(0, 91, "xbiX")] ?? [], developerCount: () => t5[h2(114, 0, 0, "Kjyx")] ?? 1, cpuCount: () => t5[c2(0, "@rOU", 0, 0, 1148)] ?? 0, type: () => t5[c2(0, "xbiX", 0, 0, 1183)] ?? d2(632, 0, 0, "uipl"), exceptions: () => e2, isValidFor: (t6) => {
1768
+ return !(e2?.[n3 = "RNuP", r3 = i2, d2(r3 - a2, 0, 0, n3)] > 0);
1769
+ var n3, r3;
1779
1770
  }, isValid: () => true, isEval: () => false, features: () => {
1780
- return Object[e3 = "#wdE", n3 = 493, ze(n3 - 152, e3)](t5[a2(0, 0, 0, "Fk1I", -208)] ?? {});
1771
+ return Object[e3 = "qHsg", n3 = 190, We(n3 - -396, e3)](t5[h2(111, 0, 0, "@rOU")] ?? {});
1781
1772
  var e3, n3;
1782
- }, keyFrom: () => n2, getBuildVersion: _e[a2(0, 0, 0, "jpUj", -238)], getBuildDate: _e[l2(0, 0, "^Kre", 0, 940)] };
1773
+ }, keyFrom: () => n2, getBuildVersion: _e[u2(0, 33, "#IWZ")], getBuildDate: _e[c2(0, o2, 0, 0, s2)] };
1783
1774
  }, Te = (t5) => {
1784
- const e2 = 628, n2 = "Jp]&", r2 = 583, o2 = "BvI8", s2 = "vb)n", i2 = "BslY", a2 = 449, l2 = "#37p", c2 = 600, h2 = "Jp]&", u2 = 817;
1785
- function d2(t6, e3, n3, r3, o3) {
1786
- return ze(t6 - 201, e3);
1775
+ const e2 = "oNln", n2 = 1439, r2 = "JAkW", o2 = 28, s2 = 372, i2 = 656, a2 = 682, l2 = "GupK", c2 = 26;
1776
+ let h2 = bt[u2 = 733, d2 = "bGjp", We(u2 - 101, d2)];
1777
+ var u2, d2;
1778
+ function g2(t6, e3, n3, r3, o3) {
1779
+ return We(r3 - 811, n3);
1787
1780
  }
1788
- let g2 = bt[m2("O!o(", -480, -498)];
1789
- if (Me() || bt[d2(e2, "Pr4i")]()) {
1790
- const t6 = _e[d2(547, "WIX#")](), e3 = new Date(t6), a3 = /* @__PURE__ */ new Date(), l3 = 864e5;
1791
- Math[m2(n2, -433, -507)]((a3[d2(r2, o2)]() - e3[m2(s2, -380, -430)]()) / l3) >= 120 && (g2 = [d2(593, i2)]);
1792
- } else g2 = [d2(a2, l2)];
1793
1781
  function m2(t6, e3, n3, r3, o3) {
1794
- return ze(n3 - -767, t6);
1782
+ return We(e3 - c2, n3);
1795
1783
  }
1796
- return { licensee: () => m2("Ar9C", 0, -474), expiration: () => null, domains: () => [Ae()], developerCount: () => 1, cpuCount: () => 0, type: () => ze(174 - -191, "BvI8"), isEval: () => true, exceptions: () => g2, isValidFor: () => 0 === g2[d2(480, "OU&F")], isValid: () => false, features: () => {
1797
- return Object[t6 = 1208, e3 = "@oZF", ze(t6 - u2, e3)]({});
1798
- var t6, e3;
1799
- }, keyFrom: () => t5, getBuildVersion: _e[d2(c2, h2)], getBuildDate: _e[m2("TAa]", 0, -352)] };
1784
+ function f2(t6, e3, n3, r3, o3) {
1785
+ return We(t6 - -197, n3);
1786
+ }
1787
+ function p2(t6, e3, n3, r3, o3) {
1788
+ return We(o3 - -609, r3);
1789
+ }
1790
+ if (Ae() || bt[g2(0, 0, "UgJ5", 1434)]()) {
1791
+ const t6 = _e[g2(0, 0, "xbiX", 1450)](), i3 = new Date(t6), a3 = /* @__PURE__ */ new Date(), l3 = 864e5;
1792
+ Math[m2(0, 545, ")GzC")]((a3[g2(0, 0, e2, n2)]() - i3[p2(0, 0, 0, r2, o2)]()) / l3) >= 120 && (h2 = [f2(s2, 0, "^vEt")]);
1793
+ } else h2 = [m2(0, i2, "#IWZ")];
1794
+ return { licensee: () => g2(0, 0, "lYT4", 1437), expiration: () => null, domains: () => [Ie()], developerCount: () => 1, cpuCount: () => 0, type: () => m2(0, 510, "lYT4"), isEval: () => true, exceptions: () => h2, isValidFor: () => 0 === h2[p2(0, 0, 0, "E7K4", -34)], isValid: () => false, features: () => Object[f2(316, 0, "bGjp")]({}), keyFrom: () => t5, getBuildVersion: _e[m2(0, a2, l2)], getBuildDate: _e[m2(0, 503, "JAkW")] };
1800
1795
  };
1801
- function ke(t5, e2, n2, r2, o2) {
1802
- return ze(n2 - -28, t5);
1796
+ function Ne(t5, e2, n2, r2, o2) {
1797
+ return We(e2 - -733, n2);
1803
1798
  }
1804
- const Fe = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
1805
- let Oe = false, De = false;
1799
+ const ke = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
1800
+ let Fe = false, Oe = false;
1801
+ const De = Re(0, 0, 464, "hTOX")[Re(0, 0, 500, "Ax&f")]("")[Re(0, 0, 458, "fbFn")]((t5, e2) => e2 + t5, "");
1806
1802
  function Le(t5, e2, n2, r2, o2) {
1807
- return ze(e2 - 709, n2);
1803
+ return We(t5 - -50, o2);
1804
+ }
1805
+ function Be() {
1806
+ const t5 = ["W6/dPWy0W7VdVa", "W6j+j8otkCkhjmoTWObTWPuJFbq", "tc1YmSoNAtxcSCoAWRi", "W5rqW63cVmkUW5a3fmoSACkZj3XJW4vjWOzZEa", "AvPyWRqcF2i", "WOuHg2CYWPL3omkmzMBcOG", "jv9DW4ddPXZcOcjeW5ddOLu", "WQL0W5RcVSkqWPnwWO8pxWBcHCk9", "WPddJmoNWQ1Lo8kneSo+E8ktgCkC", "fhSLpCklv8kPW5/cUSkK", "bmk4FtRcPvVcGCkPWR3cKxCtW4S", "agOWbmkAxq", "W4LIq8oNhCkHW5e+WQdcHmoJjmolWQba", "CN/cKmoAWR3cVmkEoMu", "dSoQWOT+W4bwW53cGgK", "Dx59nG", "DdH0h8oSAq", "WPDSW4JdTL52mGeoEZrGW6VcIa", "qMHxBmkoWRJcRsxcNG", "W5DkW6FcTmkZW5S+", "W5riW6tcSmkU", "kqifW6nbm2ddJCkdW6feWOi", "WRlcGdWBmSkfzSojlmo+W7ddGSk5", "W4nDW7ZcUmkZW4qOg8oYACk+nND0", "W6j+pCo4nmkcnCobWQO", "wCkoWQqQbadcQq", "WPrkW4tcOSkAWPvPWQi5", "hwW2WPquWPdcRG", "amofWOyMD8krW6PuW5mGW4VdSG", "yJigotVdOvpcNYJcJHddICouW4j7uIPcW47cHa", "B8kUWPtcRSkscMbsWRRcMSoThCoRCW", "vSkRW7i/WPqD", "E8k+WPpcPW", "vKNdS0aUWO/dHY0OcSoSeae", "WRRcKqzkySoquCkAq8o+W4e9W7VdTsFcQgpcHG", "WRL8p8kJW4K", "WPSoWP/cNWNcKvC", "W510g0q+W73cG8oZvCoT", "xmkQW6NdVmoLmxpcJ8o2dSo0W48NkCoz", "pdf9W5VcQ8k2tgL6", "cY3cOSoorKTooG7cPq", "zvZdR040WPm", "W67dMwThs8ou", "W7GCW51pjatcHCk9", "W5FcOZldTbBcOq", "W6rVu8ornmkDxa", "tZKgptVdP0FdMJBcPbZdMCouW4u", "zMj5et1WcCkFySoEWPZdJq", "aIVdQ8kgWQZdP08EqCobyq", "W5BdVqb+WRjmW74mAXddMu7dIxbPWOVcP0T1", "xLtcGCoAWQBcU8kMde5e", "cMCZ", "W7ZcICkMW7a6FCo/omoYy8kyjq", "WR0YdKKUWPr6kmkT", "zh9UnJHTdmkusmom", "ge5bW4FdRbRcSJfdW5ddS0ldOa", "WPSoWP/cJWxcIfmVWRBdSq", "W65TcKG+W7O", "WQbWW7ddICk/gsdcU8kTWRfmoXeoBmkkW58+jmod", "xND/oIzTiCkEuSoEWOhdHmo/", "W4BcGCkKW7aMCa", "W6XOh8oxn8kpna", "FmkYW6ZdO8ohoxpcJG", "WPpcJGrdECocqmk4sCoP", "W6j+pCo0lSkppmoSWPHNWOm1xb/cQa", "rSkQW6NdVmo5ngBcKSo8", "WRpcGtOumCkbymoggCo1W5ddJCk5", "xmksWPeQbahcOSkQFa", "WOeZWRL4mmoU", "WPeHg2KUWPn+mSk7yLNcOSkf", "DZ8GjCoBWPNcIq", "lmofWPGMBq", "cvToW53dVbS", "WQ95W5tdUKjJaGe0DtLPW5e", "W7JcOsNdSWZcLZRdJCokyG0", "sbGgaCo7WQJcQSkq", "W47cPxrfDSo/W5aPW4lcQG", "W6L+j8orl8ko", "bYhdSCkdWQ3cQdTeaq", "W7SbW59EiqlcICkHW7Dz", "W5boDCkzcCknkWO", "vXirk8oQWRG", "v8kZWQJdVmo5m2lcImoQbCo0W5a7kSowWP/cTg01", "W4hcVtBdVbtcVd/cG8oiBHZcQWieW6umWRPNWR7dQG", "v8kZWQJdTCoOig7cLmo4fmk9W48N", "W6FdK3TGD8ozpmodd8oDW5FdSG", "WR18oCkVW4ZcVSkb", "bNOaWO0zWOO", "WPaoWOxcRbtcLa", "W6rVu8ohkmkzvCk/WQFcNuab", "W5lcVN5oBa", "WQLlWO4jzrRcSSkVW5XFW6C", "W6DVu8oKnmkCsG", "W6LxWQJcSSk/W5e", "W4BcQwnbCCoGW4yYW5xcUJFdGq3dOa", "WOyHg0qUWPXOdmk6BNZcS8kzW6K", "WPRcKqzk", "FvDjWPmdBMldNSk8W7jBWPZcLgZdUa", "W4hcVtBdVbtcVd/cG8oaAblcRWuz", "W4ejW45spWlcPmkRW61lW77dTh4", "WOb8W5xdUW", "vNhcTmoqW73cTuOyqSo0u8oK", "nCkxEsFcVCkWwNH0W53cVZNdGW", "W5hcVSohAW", "W64vWPBcUSk7ixnNW7mYW4RcTW", "W4pcQSoABsJdHSk5pmklkSowW6jZ", "FmkKW7JdUCoIkq", "CxTyz8ktWRq", "W7uCW4v9iXNcJq", "W4ddGYrxW4zyW5SWqJFdQw7cP2HjWQ0", "W7RdQGu1", "W4VdKGHxrCoPv8kM", "vWivemo9WQtcTSknhctdISkigq", "WPDSW5ldKvL+kGaeDsrG", "iIxcVmoDs2i", "W7f3rCombSk8", "W4RcISkAW7yWBa", "hbtcKmoBWRxcJmkceq", "W4z8c3eIW6FcImomvCoW", "ACkPW7VdUa", "WRpdJmoOWQjPu3O", "WQnUsmoGlSoqv8k0WPFdNfKfESkmfmod", "pHVdTCksWQRdThm1Cq", "iIP/WPBcQ8kPrCojg8kpEMW", "W4pcMCo6WQ3dRCoJW45xc8o+WQJcQ8k1", "kdlcT8oFrw8", "WPz7W4pdTLzY", "WONcSmojWPFdNmkQWQBdQsG4WRe", "W7HZdKa8W6FcGSkyvCoShmoMF8kduCkgWOxdNa", "WQq/qCofyKHGtmovEKfCW54d", "W7hdKd1p", "tsrPgCoW", "W5HUnK40W6S", "WONcHGTtCSo3uW", "fKPbW47dVqa", "cuPBW6xdOaVcHY1zW5VdJeldVq", "FCk5W7ZdSCo5phq", "W5P2W4qUzmk+WOpcVSoSWPVdN8oHWOm", "WP03d8kxx8o8W5mTWP/cL8o8oG", "BXaEaG", "W6nxzmkvcCkk", "FSk5W7ZdKSoLowVcGSopbCkMW5mGkSoo", "wSk2W5GJWQCrWPNdHG", "WQC/qCoGBLbYDColya", "WQqPWPrYoSo4W5ddSmoUWQhdVmoDWOlcSsZdOI7dOmoF", "W7GlWPlcSSk5pfuMW7mZW4VcOmoEdHLg", "WPhdUYiwk8k9WOudW7xcMIRdRXS", "W7ddG3Xk", "W4DPqCoebmkHW5K", "jMCZWPOuWO/cRYFdLwqcEcziW4OLlmkFWOBcSqD8W7S1WOdcPHS", "uNldTSkVWPtdP1qn", "W63cOSoxzIpdH8kmBSkmk8owWQDHa3FcTSkJWQ53WOdcNNDVvrpdOfPLW4O", "WRVdPtpdKINcSHpdHa", "WQZdNmoTWQPJva", "W4jOua", "bw4QiCkAvSkUW4tcP8kIz8o+W4C", "WP5TWRNdG8kKnIdcVmkTWQCE", "WRq1EColAev/ECoJCLTnW6GtohBcKSk5", "B8k1W7VdUCoKCa", "cdFdGmkwWQtdRa", "BwXzBCkoWQ/cQq", "o8oAWPKUCmklW5S", "WOzqW5xdO8oTygD0W7eBW7JcRW", "WPOoWORcVXxcJLC1", "wmksWOe/bGJcOmk8", "W6DVu8oKnmkCsSklWPhcLvOqA8kl", "W4JcI8ocWQldPmo4W7O", "wZWQWOOQWR7cUvi", "WP3cHGLiCSodDCkbrCo+WPuuW7y", "W5VdTmkAW4K", "W4m8WPxcPX0LDI8IyJ5lW4a", "qc1/mmoWCJK", "W4lcL8o6WRddP8o9W7TYc8oKWRtcGmk+WR/cGseAW7X0", "tqqGfSoUWQ0", "aCojWOi4dY3cVSkT", "m8oqWPOOBCkn", "WODSWP7dGSk0eq", "W5xdQrCXW6ddOsjefG", "rujpWRGyCW", "uCoOouBdHa", "CLBcGCoeWRVcRmkqev8", "W43cPshdSq3cTc/dISolAv/cVGKfW6LdWRuIWQlcVmoYW5z+xgi", "ECkUWOtcUSkyaW", "hh0KWOKmWPxcNg7dRwu", "W70jW4L4pGpcJSk6", "rY1OeCo2Dq", "CNnSitXQmSksuSox", "W4/cNmk6W74Gyq", "pmoCWPHHDCkDW5XqW5GMW50", "EK3dOfS0WOJdLceOaW", "CxvKptXDamkpr8owWOtdMW", "fszWW4lcP8kuwW", "WPrSW5ldSKv7nq", "W6xdMhL0y8oc", "W7ddRCoBW6NcGCkLWPhdPH4OW6erW6G8", "FmkKW6VdTCoGjg7cICo3eW", "xNfBBCksWRlcPsxcGG", "W5VdUSkyW4dcMmkYWP3dPWm+", "W5CxWOhcTSkVma", "zwHGmIf3fG", "W5LkD8kvc8oE", "F1JdRvWLWR3dTq", "iIP5WPxcTSkErq", "W5BcVN5n"];
1807
+ return (Be = function() {
1808
+ return t5;
1809
+ })();
1810
+ }
1811
+ function Pe(t5, e2, n2, r2, o2) {
1812
+ return We(t5 - 549, o2);
1808
1813
  }
1809
- const Be = Ie(983, 0, 0, 0, "jBcb")[Ie(991, 0, 0, 0, "vb)n")]("")[Re(0, 0, "YZ#I", 0, 1330)]((t5, e2) => e2 + t5, "");
1810
- class Pe {
1814
+ class ze {
1811
1815
  constructor() {
1812
- const t5 = 11, e2 = "[beQ";
1813
- function n2(t6, e3, n3, r2, o2) {
1814
- return ke(n3, 0, e3 - -266);
1816
+ function t5(t6, e2, n2, r2, o2) {
1817
+ return Re(0, 0, t6 - -671, r2);
1815
1818
  }
1816
- this[n2(0, 41, "%]Ov")][n2(0, t5, e2)] = null;
1819
+ this[t5(-178, 0, 0, "ldC(")][t5(-194, 0, 0, "iv2w")] = null;
1817
1820
  }
1818
- async [ke("jBcb", 0, 402)](t5, e2 = false) {
1819
- const n2 = "%]Ov", r2 = "HkLN", o2 = 1351, s2 = "HkLN", i2 = "JE9e", a2 = 755, l2 = 1157, c2 = "U$e2", h2 = "uhBF", u2 = 663, d2 = 742, g2 = 416, m2 = "F@Kd", f2 = 449, p2 = "e3y4", _2 = 1364, S2 = 457, w2 = "YZ#I", y2 = 461, E2 = 424, b2 = "1S$@", C2 = 357, v2 = 358, x2 = 444, I2 = 601, R2 = "^Sfr", A2 = 634, M2 = 643, N2 = 1252, T2 = "#37p", k2 = "OHcB", F2 = 504, O2 = 849, D2 = 1302, L2 = "O!o(", B2 = 407, P2 = 128;
1820
- if (!t5 || t5[V2(494, "F@Kd")](V2(447, n2)) || t5[$2(-315, -253, r2)](V2(457, "Jp]&")) || t5[z2(o2, 1453, 1250, "Fk1I")](V2(480, s2)) || t5[j2(i2, 761, 761, a2)](z2(1203, 1136, l2, c2))) return Oe = true, await this[j2(h2, 720, u2, d2)](true);
1821
- function z2(t6, e3, n3, r3, o3) {
1822
- return Ie(t6 - 333, 0, 0, 0, r3);
1821
+ async [xe(0, 0, "TY2$", 0, 565)](t5, e2 = false) {
1822
+ const n2 = "#IWZ", r2 = 1508, o2 = "ldC(", s2 = 1585, i2 = "]upj", a2 = "GEzz", l2 = "Ui7k", c2 = "cJ]S", h2 = "LZfK", u2 = 1439, d2 = "RNuP", g2 = 255, m2 = "#cT5", f2 = "fpz7", p2 = "b[@z", _2 = 993;
1823
+ if (!t5 || t5[b2("s$wz", -498, -414, -423)](C2(-377, -228, -323, -385, n2)) || t5[S2(r2, 1517, o2, s2)](b2(i2, -396, -397, -404)) || t5[C2(-270, -358, -268, -204, a2)](C2(-193, -302, -242, -267, "62Ss")) || t5[y2(-148, -86, -118, -139, "iv2w")](C2(-404, -414, -312, -324, l2))) return Fe = true, await this[y2(-185, -98, -173, -103, "3*&g")](true);
1824
+ function S2(t6, e3, n3, r3, o3) {
1825
+ return Le(r3 - _2, 0, 0, 0, n3);
1823
1826
  }
1824
- function j2(t6, e3, n3, r3, o3) {
1825
- return Le(0, r3 - -228, t6);
1827
+ if (Fe = false, !e2 && ke[b2("0%h#", -471, -521, -598)]) {
1828
+ const t6 = await this[C2(-281, -337, -238, -161, "9xS4")]();
1829
+ if (t6[C2(-162, -264, -252, -353, c2)]() && !t6[S2(0, 0, h2, 1490)]()) return t6;
1826
1830
  }
1827
- if (Oe = false, !e2 && Fe[V2(g2, m2)]) {
1828
- const t6 = await this[V2(f2, p2)]();
1829
- if (t6[z2(_2, 0, 0, "uhBF")]() && !t6[H2(S2, w2, 544, y2)]()) return t6;
1831
+ function w2(t6, e3, n3, r3, o3) {
1832
+ return Le(t6 - -348, 0, 0, 0, n3);
1830
1833
  }
1831
- Fe[H2(E2, b2, 495, C2)] = t5, Fe[V2(v2, "nQE4")] = H2(x2, c2, 393, 484), Fe[$2(-105, -134, "vb)n")] = null, Fe[H2(I2, R2, A2, M2)] = null;
1832
- const W2 = await this[z2(N2, 0, 0, T2)]();
1833
- function H2(t6, e3, n3, r3, o3) {
1834
- return Re(0, 0, e3, 0, t6 - -722);
1834
+ function y2(t6, e3, n3, r3, o3) {
1835
+ return Le(e3 - -613, 0, 0, 0, o3);
1835
1836
  }
1836
- if (!W2[z2(1380, 0, 0, n2)]()) throw await this[H2(460, i2)](true), new Error($2(-76, -136, k2));
1837
- function V2(t6, e3, n3, r3, o3) {
1838
- return ke(e3, 0, t6 - P2);
1837
+ ke[b2("F!kI", -395, -356, -293)] = t5, ke[S2(0, 0, "@rOU", u2)] = b2(d2, -493, -462, -376), ke[y2(-93, -183, -147, -183, "JAkW")] = null, ke[C2(-414, -386, -321, -370, "uipl")] = null;
1838
+ const E2 = await this[y2(0, -210, 0, 0, "#IWZ")]();
1839
+ if (!E2[w2(g2, 0, "GupK")]()) throw await this[w2(105, 0, m2)](true), new Error(y2(0, -42, 0, 0, "Kjyx"));
1840
+ function b2(t6, e3, n3, r3, o3) {
1841
+ return Le(n3 - -935, 0, 0, 0, t6);
1839
1842
  }
1840
- function $2(t6, e3, n3, r3, o3) {
1841
- return Le(0, e3 - -1214, n3);
1843
+ function C2(t6, e3, n3, r3, o3) {
1844
+ return Pe(n3 - -1418, 0, 0, 0, o3);
1842
1845
  }
1843
- if (bt[V2(F2, "JE9e")]()) {
1844
- await be[$2(0, -173, "nQE4")](t5, e2);
1845
- if (!(await this[j2("O!o(", 0, 0, O2)]())[H2(423, "#pUA")]()) throw await this[z2(D2, 0, 0, L2)](true), new Error(H2(B2, "Ar9C"));
1846
+ if (bt[C2(-412, -457, -413, -464, f2)]()) {
1847
+ await be[b2("E!1X", 0, -516)](t5, e2);
1848
+ if (!(await this[S2(0, 0, o2, 1511)]())[w2(156, 0, p2)]()) throw await this[C2(0, 0, -303, 0, "KC4i")](true), new Error(C2(0, 0, -398, 0, "^vEt"));
1846
1849
  }
1847
- return W2;
1850
+ return E2;
1848
1851
  }
1849
- async [ke("O!o(", 0, 340)](t5 = false) {
1850
- const e2 = "(Dh6", n2 = "jpUj", r2 = 923, o2 = "8uLH", s2 = 52, i2 = 51, a2 = "xv2R", l2 = "e3y4", c2 = "TAa]", h2 = "&vi!", u2 = "HkLN", d2 = 72, g2 = "F@Kd", m2 = 5, f2 = "6b7Z", p2 = 30, _2 = 50, S2 = 37, w2 = 9, y2 = "Jp]&", E2 = 22, b2 = "(Dh6", C2 = 939, v2 = "uhBF", x2 = 39, I2 = 92, R2 = 29, A2 = 763, M2 = "*Aeh", N2 = 94, T2 = 133, k2 = "%CRV", F2 = 760, O2 = "3ZP3", D2 = 130, L2 = "BslY", B2 = 204, P2 = 348, z2 = "Fk1I", j2 = 199, W2 = 189, H2 = "Ar9C", V2 = 1194, $2 = 166;
1851
- function G2(t6, e3, n3, r3, o3) {
1852
- return Le(0, e3 - -217, o3);
1852
+ async [Pe(1159, 0, 0, 0, "uipl")](t5 = false) {
1853
+ const e2 = "uipl", n2 = 793, r2 = "Hb[]", o2 = "9xS4", s2 = 1047, i2 = "lYT4", a2 = "kk%Y", l2 = 1615, c2 = 1453, h2 = 1595, u2 = "s$wz", d2 = 904, g2 = 1136, m2 = "KC4i", f2 = "Ax&f", p2 = 840, _2 = 1180, S2 = 370, w2 = "RNuP", y2 = 1121, E2 = 1058, b2 = "cB#h", C2 = 1081, v2 = 58, x2 = 36, I2 = "hTOX", R2 = 808, A2 = 1154, M2 = 1054, T2 = "bGjp", N2 = "LZfK", k2 = 1235, F2 = 1137, O2 = "v#HV", D2 = 1594, L2 = "]upj", B2 = 1475, P2 = 1471, z2 = ")GzC", j2 = 1188, W2 = "Ui7k", H2 = 1058;
1854
+ if (ke[J2(-368, -356, -277, "62Ss")]) return ke[V2(881, e2, n2)];
1855
+ function V2(t6, e3, n3, r3, o3) {
1856
+ return Re(0, 0, n3 - 357, e3);
1853
1857
  }
1854
- if (Fe[J2(-595, -615, -565, -540, "CZ^P")]) return Fe[J2(-570, -563, -542, -526, "1S$@")];
1855
- if (!this[J2(-393, -545, -444, -450, e2)][Q2(-113, n2, -24, 20)] && (this[J2(-492, -407, -429, -465, "*Aeh")][G2(0, r2, 0, 0, o2)] = new Error("FV")), Fe[Q2(s2, "vb)n", i2, 1)]) return Fe[Z2(-336, a2, -283, -386)];
1856
- let U2 = null;
1857
- function J2(t6, e3, n3, r3, o3) {
1858
- return ke(o3, 0, n3 - -821);
1858
+ if (!this[K2(r2, 1656, 1500, 1497, 1565)][J2(-164, -251, -196, o2)] && (this[J2(-311, -320, -225, "LZfK")][Q2(s2, 1061, i2)] = new Error("FV")), ke[J2(-423, -322, -386, a2)]) return ke[$2("Ax&f", 126, 40, 116)];
1859
+ function $2(t6, e3, n3, r3, o3) {
1860
+ return Le(r3 - -445, 0, 0, 0, t6);
1859
1861
  }
1860
- Fe[J2(-407, -538, -439, -405, l2)] = new Promise((t6) => {
1861
- U2 = t6;
1862
+ let G2 = null;
1863
+ ke[K2("(VlU", l2, c2, h2, 1537)] = new Promise((t6) => {
1864
+ G2 = t6;
1862
1865
  });
1863
- let q2, K2 = null;
1866
+ let U2, q2 = null;
1867
+ function J2(t6, e3, n3, r3, o3) {
1868
+ return Le(e3 - -780, 0, 0, 0, r3);
1869
+ }
1870
+ function K2(t6, e3, n3, r3, o3) {
1871
+ return Ne(0, o3 - 1680, t6);
1872
+ }
1864
1873
  const X2 = async (t6, e3) => {
1865
- const n3 = 189, r3 = 191;
1874
+ function n3(t7, e4, n4, r3, o3) {
1875
+ return J2(0, t7 - 1325, 0, r3);
1876
+ }
1866
1877
  try {
1867
- const h3 = ((t7) => {
1878
+ const r3 = ((t7) => {
1868
1879
  let e4 = t7;
1869
1880
  const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
1870
1881
  if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = ve(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
@@ -1876,193 +1887,186 @@ class Pe {
1876
1887
  } catch (t8) {
1877
1888
  throw new Error("Invalid license key.");
1878
1889
  }
1879
- })(e3), u3 = await (async (t7) => {
1880
- const e4 = 221, n4 = "uhBF", r4 = "jpUj", o4 = 1279, s4 = "U$e2", i4 = 1042, a4 = 1148, l4 = "%]Ov", c4 = 1198, h4 = "OU&F", u4 = "%z#E", d4 = 1125, g3 = "%]Ov", m3 = 1174, f3 = "^Sfr", p3 = 1055, _3 = 1103, S3 = 1059, w3 = 1126, y3 = "YZ#I", E3 = 981, b3 = 53, C3 = "[beQ", v3 = 670, x3 = t7[I3(37, 130, "xF!p")];
1881
- function I3(t8, e5, n5, r5, o5) {
1882
- return ze(e5 - -224, n5);
1890
+ })(e3), o3 = await (async (t7) => {
1891
+ const e4 = "E7K4", n4 = "lNbi", r4 = 1271, o4 = "v#HV", s4 = "#IWZ", i3 = 210, a3 = "rXNx", l3 = "F!kI", c3 = 1310, h3 = 29, u3 = "fpz7", d3 = "r@di", g3 = "rXNx", m3 = "JAkW", f3 = "GupK", p3 = 203, _3 = 27, S3 = "UgJ5", w3 = 1281, y3 = 1269, E3 = "^vEt", b3 = t7[x3(-302, -326, -406, "hTOX")];
1892
+ function C3(t8, e5, n5, r5, o5) {
1893
+ return We(e5 - -503, o5);
1883
1894
  }
1884
- const R3 = t7[I3(0, e4, n4)] ? new Date(t7[F3(1108, r4, 1183)]) : null;
1885
- function A3(t8, e5, n5, r5, o5) {
1886
- return ze(t8 - 808, n5);
1895
+ function v3(t8, e5, n5, r5, o5) {
1896
+ return We(o5 - -262, e5);
1887
1897
  }
1888
- const M3 = t7[F3(o4, s4, 1216)], N3 = [];
1889
- function T3(t8, e5, n5, r5, o5) {
1890
- return ze(t8 - v3, r5);
1898
+ function x3(t8, e5, n5, r5, o5) {
1899
+ return We(e5 - -875, r5);
1891
1900
  }
1892
- function k3(t8, e5, n5, r5, o5) {
1893
- return ze(o5 - -801, r5);
1901
+ function I3(t8, e5, n5, r5, o5) {
1902
+ return We(r5 - -738, n5);
1894
1903
  }
1895
- function F3(t8, e5, n5, r5, o5) {
1896
- return ze(n5 - 795, e5);
1904
+ const R3 = t7[C3(0, -9, 0, 0, "#IWZ")] ? new Date(t7[C3(0, 149, 0, 0, e4)]) : null, A3 = t7[C3(0, 131, 0, 0, n4)], M3 = [];
1905
+ function T3(t8, e5, n5, r5, o5) {
1906
+ return We(t8 - 783, r5);
1897
1907
  }
1898
- if (R3 ? isNaN(R3) ? N3[A3(1241, 0, l4)](A3(c4, 0, "TAa]")) : R3 < /* @__PURE__ */ new Date() && N3[A3(1084, 0, h4)](A3(1197, 0, u4) + R3[F3(1062, "xF!p", d4)]()) : N3[F3(i4, "uhBF", 1145)](A3(a4, 0, n4)), bt[T3(1102, 0, 0, g3)]()) {
1899
- if (!M3) return N3[k3(0, 0, 0, "fnMx", -490)](A3(m3, 0, f3)), N3;
1900
- const t8 = await be[A3(p3, 0, "YZ#I")]();
1901
- t8 !== M3 && N3[k3(0, 0, 0, "YZ#I", -363)](F3(0, "1S$@", _3) + M3 + k3(0, 0, 0, "%z#E", -383) + t8);
1908
+ if (R3 ? isNaN(R3) ? M3[T3(1274, 0, 0, a3)](v3(0, l3, 0, 0, 254)) : R3 < /* @__PURE__ */ new Date() && M3[T3(c3, 0, 0, "8FXk")](C3(0, h3, 0, 0, u3) + R3[I3(0, 0, d3, -193)]()) : M3[T3(r4, 0, 0, o4)](v3(0, s4, 0, 0, i3)), bt[I3(0, 0, "F!kI", -218)]()) {
1909
+ if (!A3) return M3[I3(0, 0, "fbFn", -114)](I3(0, 0, g3, -199)), M3;
1910
+ const t8 = await be[I3(0, 0, "v#HV", -129)]();
1911
+ t8 !== A3 && M3[T3(1290, 0, 0, "#IWZ")](I3(0, 0, "qHsg", -205) + A3 + T3(1292, 0, 0, m3) + t8);
1902
1912
  } else {
1903
- if (Me()) return N3;
1904
- if (x3 && 0 !== x3[T3(1023, 0, 0, "@oZF")]) {
1913
+ if (Ae()) return M3;
1914
+ if (b3 && 0 !== b3[v3(0, f3, 0, 0, p3)]) {
1905
1915
  let t8 = false;
1906
- const e5 = Ae();
1907
- for (let n5 = 0; !t8 && n5 < x3[A3(w3, 0, y3)]; n5++) t8 = e5[k3(0, 0, 0, "#37p", -360)](x3[n5]);
1908
- !t8 && N3[T3(E3, 0, 0, "fnMx")](I3(0, b3, C3));
1909
- } else N3[A3(S3, 0, "3ZP3")](A3(1072, 0, "1S$@"));
1916
+ const e5 = Ie();
1917
+ for (let n5 = 0; !t8 && n5 < b3[I3(0, 0, "iv2w", -105)]; n5++) t8 = e5[C3(0, _3, 0, 0, S3)](b3[n5]);
1918
+ !t8 && M3[T3(w3, 0, 0, "3*&g")](T3(y3, 0, 0, E3));
1919
+ } else M3[x3(0, -340, 0, n4)](x3(0, -225, 0, "8kk["));
1910
1920
  }
1911
- return N3;
1912
- })(h3), d3 = Ne(h3, u3, t6);
1913
- return d3[a3 = z2, l3 = j2, c3 = W2, tt2(a3 - n3, l3 - r3, c3 - 105, a3)]()[o3 = H2, s3 = 1102, i3 = 1190, Q2(o3 - 446, o3, i3 - V2, s3 - $2)] > 0 && (q2 = d3), d3;
1921
+ return M3;
1922
+ })(r3), s3 = Me(r3, o3, t6);
1923
+ return s3[n3(1080, 0, 0, W2)]()[n3(H2, 0, 0, "hTOX")] > 0 && (U2 = s3), s3;
1914
1924
  } catch (e4) {
1915
- q2 = ((t7) => {
1916
- const e5 = 1069;
1917
- function n4(t8, e6, n5, r4, o4) {
1918
- return ze(n5 - -816, t8);
1925
+ U2 = ((t7) => {
1926
+ const e5 = "v#HV", n4 = 87, r3 = "s$wz";
1927
+ function o3(t8, e6, n5, r4, o4) {
1928
+ return We(t8 - 244, n5);
1919
1929
  }
1920
- return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => n4("Fl#D", 0, -435), exceptions: () => {
1921
- return [(r4 = "U$e2", o4 = e5, n4(r4, 0, o4 - 1628) + t7 + "'")];
1922
- var r4, o4;
1923
- }, isValidFor: (t8) => false, isValid: () => false, isEval: () => false, features: () => Object[n4("jpUj", 0, -403)]({}), keyFrom: () => t7, getBuildVersion: _e[n4("*Aeh", 0, -482)], getBuildDate: _e[n4("(Dh6", 0, -536)] };
1930
+ return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => o3(780, 0, "#cT5"), exceptions: () => {
1931
+ return [(e6 = r3, n5 = -295, o3(n5 - -1076, 0, e6) + t7 + "'")];
1932
+ var e6, n5;
1933
+ }, isValidFor: (t8) => false, isValid: () => false, isEval: () => false, features: () => Object[o3(757, 0, "bGjp")]({}), keyFrom: () => t7, getBuildVersion: _e[o3(848, 0, "#cT5")], getBuildDate: _e[s3 = e5, i3 = n4, We(i3 - -414, s3)] };
1934
+ var s3, i3;
1924
1935
  })(t6);
1925
1936
  }
1926
- var o3, s3, i3, a3, l3, c3;
1927
1937
  };
1928
- Fe[J2(0, 0, -595, 0, "e3y4")] && (K2 = await X2(Fe[Z2(-269, c2, -420, -364)], Fe[G2(0, 856, 0, 0, "BslY")]));
1938
+ ke[K2("lYT4", 0, 0, 0, 1602)] && (q2 = await X2(ke[J2(0, -271, 0, ")GzC")], ke[$2("lYT4", 0, 0, 160)]));
1929
1939
  let Y2 = false;
1930
- if (Oe && (Y2 = true, K2 = Te(Q2(-18, "Jp]&", -100, -164))), !K2) {
1931
- if (bt[Z2(-472, h2, -472, -432)]()) {
1932
- if (!K2) {
1933
- const t6 = process[Q2(-37, u2, -81, 0)], e3 = t6[tt2(55, 110, d2, "xv2R")] || t6[G2(0, 926, 0, 0, "%]Ov")] || t6[Z2(-468, "OU&F", -429, -387)] || t6[Q2(-21, g2, m2, -12)];
1934
- e3 && (K2 = await X2(G2(0, 851, 0, 0, a2), e3));
1940
+ if (Fe && (Y2 = true, q2 = Te(J2(0, -333, 0, "cB#h"))), !q2) {
1941
+ if (bt[$2("E7K4", 0, 0, 9)]()) {
1942
+ if (!q2) {
1943
+ const t6 = process[J2(0, -187, 0, u2)], e3 = t6[J2(0, -189, 0, "cB#h")] || t6[Q2(d2, 998, "E!1X")] || t6[Q2(1080, g2, m2)] || t6[V2(0, f2, p2)];
1944
+ e3 && (q2 = await X2($2("lNbi", 0, 0, 86), e3));
1935
1945
  }
1936
- if (!K2) {
1937
- const t6 = await be[J2(0, 0, -547, 0, "%CRV")]();
1938
- t6 && (K2 = await X2(Z2(-445, "D19A", -410, -437), t6));
1946
+ if (!q2) {
1947
+ const t6 = await be[$2("GEzz", 0, 0, 108)]();
1948
+ t6 && (q2 = await X2(Q2(1269, _2, "LZfK"), t6));
1939
1949
  }
1940
- !K2 && (Y2 = true);
1950
+ !q2 && (Y2 = true);
1941
1951
  } else {
1942
- if (!K2) try {
1943
- const t6 = await fetch("./" + Be);
1952
+ if (!q2) try {
1953
+ const t6 = await fetch("./" + De);
1944
1954
  let e3 = null;
1945
- if (200 === t6[Q2(47, f2, 28, -p2, 54)]) {
1946
- const n3 = (await t6[Q2(-_2, "*Aeh", S2, 37, 95)]())[J2(0, 0, -560, 0, c2)]("\n");
1947
- for (let t7 = 0; !e3 && t7 < n3[Q2(-w2, y2, -E2, 65, -37)]; t7++) {
1948
- const r3 = n3[t7][J2(0, 0, -462, 0, b2)]();
1949
- r3[G2(0, C2, 0, 0, v2)]("#") || 0 === r3[Q2(x2, "nQE4", 55, I2, R2)] || (e3 = r3);
1955
+ if (200 === t6[J2(0, -S2, 0, w2)]) {
1956
+ const n3 = (await t6[Q2(y2, E2, b2, 1026, C2)]())[$2("hTOX", 0, 0, -x2)]("\n");
1957
+ for (let t7 = 0; !e3 && t7 < n3[V2(0, I2, R2)]; t7++) {
1958
+ const r3 = n3[t7][V2(0, "0%h#", 836)]();
1959
+ r3[Q2(A2, 1114, "xbiX", M2, 1045)]("#") || 0 === r3[V2(0, T2, 747)] || (e3 = r3);
1950
1960
  }
1951
1961
  }
1952
1962
  if (e3) {
1953
- const t7 = G2(0, A2, 0, 0, M2) + Be + "')";
1954
- K2 = await X2(t7, e3);
1963
+ const t7 = K2(N2, 0, 0, 0, 1413) + De + "')";
1964
+ q2 = await X2(t7, e3);
1955
1965
  }
1956
1966
  } catch (t6) {
1957
1967
  }
1958
- !K2 && Me() && (Y2 = true);
1968
+ !q2 && Ae() && (Y2 = true);
1959
1969
  }
1960
1970
  }
1961
1971
  function Q2(t6, e3, n3, r3, o3) {
1962
- return Ie(n3 - -953, 0, 0, 0, e3);
1963
- }
1964
- function Z2(t6, e3, n3, r3, o3) {
1965
- return Le(0, r3 - -1502, e3);
1966
- }
1967
- function tt2(t6, e3, n3, r3, o3) {
1968
- return We(t6 - 48, e3 - B2, n3 - P2, r3);
1972
+ return Re(0, 0, e3 - 652, n3);
1969
1973
  }
1970
- if (!K2 && Y2 && (K2 = Te(J2(0, 0, -494, 0, "^Sfr"))), !K2 && q2 && (K2 = q2), !K2 && (K2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [G2(0, 788, 0, 0, "^Sfr")], isValidFor: (t6) => false, isValid: () => false, features: () => Object[tt2(13, 26, -56, "vb)n")]({}), keyFrom: () => tt2(14, 0, -26, "Jp]&"), getBuildVersion: _e[tt2(N2, T2, 236, k2)], getBuildDate: _e[G2(0, F2, 0, 0, "OU&F")] }), Fe[J2(0, 0, -477, 0, "JE9e")] = K2, U2(K2), t5) {
1971
- if (!(Fe[Z2(0, "^Kre", 0, -515)] && Fe[Q2(0, O2, 54)]) && (Y2 || K2[Q2(0, "HkLN", 49)]()[tt2(D2, 32, -28, "jpUj")] > 0 || K2[J2(0, 0, -401, 0, L2)]()?.pb)) {
1972
- if (De) return void setTimeout(() => {
1973
- var t6, e3, n3;
1974
- this[t6 = "DI8J", e3 = -394, n3 = -416, tt2(t6 - 251, n3 - -493, e3 - 266, t6)](false, false);
1974
+ if (!q2 && Y2 && (q2 = Te(K2("Ui7k", 0, 0, 0, 1529))), !q2 && U2 && (q2 = U2), !q2 && (q2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [J2(0, -360, 0, "#IWZ")], isValidFor: (t6) => false, isValid: () => false, features: () => Object[J2(0, -316, 0, "v#HV")]({}), keyFrom: () => J2(0, -349, 0, "Ax&f"), getBuildVersion: _e[$2("KC4i", 0, 0, -10)], getBuildDate: _e[Q2(k2, F2, "TY2$")] }), ke[Q2(1146, 1120, O2)] = q2, G2(q2), t5) {
1975
+ if (!(ke[K2("RNuP", 0, 0, 0, D2)] && ke[$2("JAkW", 0, 0, v2)]) && (Y2 || q2[K2("#IWZ", 0, 0, 0, 1530)]()[K2(")GzC", 0, 0, 0, 1520)] > 0 || q2[J2(0, -279, 0, "oNln")]()?.pb)) {
1976
+ if (Oe) return void setTimeout(() => {
1977
+ var t6, e3;
1978
+ this[t6 = z2, e3 = j2, J2(0, e3 - 1410, 0, t6)](false, false);
1975
1979
  }, 8e3);
1976
- await this[Z2(0, e2, 0, -416)](false, false);
1980
+ await this[K2(L2, 0, 0, 0, B2)](false, false);
1977
1981
  }
1978
1982
  }
1979
- return Fe[G2(0, 911, 0, 0, "TAa]")];
1983
+ return ke[K2("#IWZ", 0, 0, 0, P2)];
1980
1984
  }
1981
- async [ke("HkLN", 0, 374)](t5) {
1982
- const e2 = 1389, n2 = "2rZ)", r2 = 65, o2 = "CZ^P", s2 = 1232, i2 = 1204, a2 = "*Aeh", l2 = 69, c2 = "jpUj", h2 = "6b7Z", u2 = "bL!X", d2 = 1194, g2 = 1093, m2 = 478;
1983
- function f2(t6, e3, n3, r3, o3) {
1984
- return We(t6 - 94, e3 - 1393, n3 - m2, r3);
1985
+ async [Re(0, 0, 380, "qHsg")](t5) {
1986
+ const e2 = ")GzC", n2 = 1423, r2 = "@rOU", o2 = 367, s2 = 96;
1987
+ function i2(t6, e3, n3, r3, o3) {
1988
+ return xe(0, 0, n3, 0, r3 - -795);
1985
1989
  }
1986
- function p2(t6, e3, n3, r3, o3) {
1987
- return Ie(n3 - -797, 0, 0, 0, r3);
1990
+ function a2(t6, e3, n3, r3, o3) {
1991
+ return Ne(0, n3 - s2, r3);
1988
1992
  }
1989
- Fe[p2(134, 225, 180, "1S$@")] = true;
1990
- const _2 = await this[f2(e2, 1355, 1275, n2)]();
1991
- var S2, w2;
1992
- function y2(t6, e3, n3, r3, o3) {
1993
- return Re(0, 0, e3, 0, o3 - -1675);
1993
+ ke[a2(-24, -35, -125, "b[@z")] = true;
1994
+ const l2 = await this[a2(0, 0, -43, e2)]();
1995
+ function c2(t6, e3, n3, r3, o3) {
1996
+ return Ne(0, e3 - 1534, n3);
1994
1997
  }
1995
- return await be[p2(0, 0, r2, o2)](t5), !Fe[f2(s2, i2, 1201, a2)] && (_2[p2(0, 0, l2, c2)]() || _2[y2(-520, "uhBF", -399, -579, -492)]()[y2(-601, h2, -497, -481, -514)] > 0) && await this[S2 = u2, w2 = 225, ke(S2, 0, w2 - -122)](t5), Promise[f2(1129, d2, g2, "Jp]&")]();
1998
+ return await be[a2(0, 0, -93, "8kk[")](t5), !ke[c2(0, n2, "fbFn")] && (l2[a2(0, 0, -76, "E!1X")]() || l2[c2(0, 1447, "xbiX")]()[i2(0, 0, "uipl", -192)] > 0) && await this[i2(0, 0, r2, -200)](t5), Promise[h2 = o2, u2 = "s$wz", Pe(h2 - -801, 0, 0, 0, u2)]();
1999
+ var h2, u2;
1996
2000
  }
1997
- async [We(-79, -166, -200, "Ar9C")](t5 = false, e2 = false, n2 = false) {
1998
- const r2 = 528, o2 = 304, s2 = "1S$@", i2 = 1282, a2 = "Pr4i", l2 = 498, c2 = 279;
2001
+ async [Pe(1174, 0, 0, 0, "iv2w")](t5 = false, e2 = false, n2 = false) {
2002
+ const r2 = 1002, o2 = "@rOU", s2 = "oNln", i2 = 1133, a2 = 101, l2 = 330, c2 = 647;
1999
2003
  function h2(t6, e3, n3, r3, o3) {
2000
- return Le(0, t6 - -730, r3);
2004
+ return Re(0, 0, n3 - c2, r3);
2001
2005
  }
2002
- function u2(t6, e3, n3, r3, o3) {
2003
- return Ie(o3 - -482, 0, 0, 0, r3);
2006
+ ke[h2(0, 0, 1150, "Ax&f")] = true;
2007
+ const u2 = await this[d2 = "r@di", g2 = -101, Ne(0, g2 - a2, d2)]();
2008
+ var d2, g2, m2, f2, p2, _2;
2009
+ function S2(t6, e3, n3, r3, o3) {
2010
+ return Re(0, 0, t6 - -409, r3);
2004
2011
  }
2005
- Fe[h2(415, 502, 320, "OHcB")] = true;
2006
- const d2 = await this[h2(331, 0, 0, "Fl#D")]();
2007
- var g2, m2;
2008
- Fe[u2(0, 0, 0, "O!o(", r2)] || !(d2[h2(264, 0, 0, "#37p")]() || d2[h2(o2, 0, 0, "vb)n")]()[g2 = s2, m2 = i2, Le(0, m2 - c2, g2)] > 0) ? await be[u2(0, 0, 0, "uFFc", l2)](d2, t5, e2, n2) : await this[u2(0, 0, 0, a2, 448)](t5);
2012
+ ke[S2(22, 0, 0, "GEzz")] || !(u2[m2 = "s$wz", f2 = 755, Le(f2 - l2, 0, 0, 0, m2)]() || u2[h2(0, 0, r2, o2)]()[S2(-45, 0, 0, s2)] > 0) ? await be[p2 = "xbiX", _2 = 206, xe(0, 0, p2, 0, _2 - -480)](u2, t5, e2, n2) : await this[h2(0, 0, i2, "RNuP")](t5);
2009
2013
  }
2010
- async [We(-221, -206, -262, "%CRV")](t5, e2) {
2011
- const n2 = "O!o(", r2 = 408, o2 = "jpUj", s2 = "*Aeh", i2 = 325, a2 = 1105, l2 = "@oZF";
2012
- if (!t5 && (Fe[c2(166, 105, 88, "fnMx")] || Fe[c2(-29, -5, -52, "uFFc")])) return;
2014
+ async [Pe(1198, 0, 0, 0, "F!kI")](t5, e2) {
2015
+ const n2 = 271, r2 = "8kk[", o2 = 1103, s2 = 1081, i2 = 90;
2016
+ function a2(t6, e3, n3, r3, o3) {
2017
+ return Ne(0, n3 - 208, r3);
2018
+ }
2019
+ function l2(t6, e3, n3, r3, o3) {
2020
+ return Pe(o3 - -834, 0, 0, 0, r3);
2021
+ }
2022
+ if (!t5 && (ke[a2(0, 0, 74, "Hb[]")] || ke[a2(0, 0, -8, "r@di")])) return;
2013
2023
  function c2(t6, e3, n3, r3, o3) {
2014
- return Le(0, e3 - -1013, r3);
2024
+ return Re(0, 0, o3 - 651, t6);
2015
2025
  }
2016
- var h2, u2;
2017
- function d2(t6, e3, n3, r3, o3) {
2018
- return ke(t6, 0, e3 - 58);
2026
+ function h2(t6, e3, n3, r3, o3) {
2027
+ return Re(0, 0, n3 - i2, t6);
2019
2028
  }
2020
- Fe[c2(0, -34, 0, "Jp]&")] = true, Fe[d2(n2, r2)] = true, await this[h2 = 1187, u2 = o2, Re(0, 0, u2, 0, h2 - -135)](t5);
2021
- const g2 = bt[c2(0, 54, 0, s2)](), m2 = t5 || g2 ? console[f2 = 190, p2 = "jBcb", Ie(f2 - -863, 0, 0, 0, p2)] : bt[d2("%z#E", i2)];
2022
- var f2, p2, _2, S2;
2023
- g2 && m2(""), await this[_2 = a2, S2 = l2, Ie(_2 - 84, 0, 0, 0, S2)](t5, e2), m2("");
2029
+ ke[l2(0, 0, 0, "lYT4", n2)] = true, ke[a2(0, 0, -43, "0%h#")] = true, await this[l2(0, 0, 0, "hTOX", 335)](t5);
2030
+ const u2 = bt[c2(r2, 0, 0, 0, o2)](), d2 = t5 || u2 ? console[c2("#cT5", 0, 0, 0, s2)] : bt[h2("b[@z", 0, 538)];
2031
+ u2 && d2(""), await this[h2("xbiX", 0, 629)](t5, e2), d2("");
2024
2032
  }
2025
- [Le(0, 1121, "YZ#I")]() {
2026
- return this[t5 = "xF!p", e2 = -403, We(t5 - 61, e2 - -355, e2 - 37, t5)]();
2033
+ [xe(0, 0, "oNln", 0, 756)]() {
2034
+ return this[t5 = 73, e2 = "TY2$", xe(0, 0, e2, 0, t5 - -680)]();
2027
2035
  var t5, e2;
2028
2036
  }
2029
- [Re(0, 0, "CZ^P", 0, 1171)](t5) {
2030
- return this[e2 = 128, n2 = "Fk1I", ke(n2, 0, e2 - -266)](true, t5);
2037
+ [Pe(1027, 0, 0, 0, "0%h#")](t5) {
2038
+ return this[e2 = 790, n2 = "^vEt", Re(0, 0, e2 - 266, n2)](true, t5);
2031
2039
  var e2, n2;
2032
2040
  }
2033
- [ke("Fl#D", 0, 398)]() {
2034
- const t5 = 427;
2035
- function e2(e3, n2, r2, o2, s2) {
2036
- return We(e3 - t5, s2 - -190, r2 - 262, n2);
2037
- }
2038
- return Fe[e2(-361, "^Kre", -502, 0, -399)] || Fe[e2(-341, "JE9e", -359, 0, -367)];
2041
+ [Re(0, 0, 394, "F!kI")]() {
2042
+ return ke[n2 = 76, r2 = "rXNx", xe(0, 0, r2, 0, n2 - -525)] || ke[t5 = "TY2$", e2 = 1183, Ne(0, e2 - 1433, t5)];
2043
+ var t5, e2, n2, r2;
2039
2044
  }
2040
- [ke("uhBF", 0, 292)](t5) {
2041
- De = true;
2045
+ [Ne(0, -233, "E!1X")](t5) {
2046
+ Oe = true;
2042
2047
  }
2043
- async [Le(0, 1045, "jpUj")]() {
2044
- return this[t5 = -49, e2 = "jBcb", Ie(t5 - -942, 0, 0, 0, e2)](true);
2048
+ async [Pe(1011, 0, 0, 0, "^vEt")]() {
2049
+ return this[t5 = "E7K4", e2 = 1266, Re(0, 0, e2 - 734, t5)](true);
2045
2050
  var t5, e2;
2046
2051
  }
2047
- async [Ie(938, 0, 0, 0, "e3y4")](t5, e2) {
2048
- const n2 = 742, r2 = "[5XY", o2 = "[beQ";
2049
- function s2(t6, e3, n3, r3, o3) {
2050
- return Le(0, e3 - -268, r3);
2051
- }
2052
- const i2 = await this[s2(0, n2, 0, r2)]();
2053
- return await this[s2(0, 808, 0, o2)](true, t5, e2), i2;
2052
+ async [Ne(0, -222, "(VlU")](t5, e2) {
2053
+ const n2 = 1248, r2 = "v#HV";
2054
+ const o2 = await this[s2 = n2, i2 = ")GzC", Le(s2 - 704, 0, 0, 0, i2)]();
2055
+ var s2, i2, a2, l2;
2056
+ return await this[a2 = r2, l2 = -219, Le(l2 - -630, 0, 0, 0, a2)](true, t5, e2), o2;
2054
2057
  }
2055
- async [Re(0, 0, "BslY", 0, 1198)]() {
2056
- const t5 = 73;
2057
- var e2, n2, r2, o2;
2058
- return await be[e2 = -90, n2 = "%CRV", r2 = -230, o2 = -129, We(e2 - 128, o2 - 52, r2 - t5, n2)]();
2058
+ async [Pe(1165, 0, 0, 0, "GupK")]() {
2059
+ const t5 = 487;
2060
+ var e2, n2;
2061
+ return await be[e2 = "GupK", n2 = 347, Ne(0, n2 - t5, e2)]();
2059
2062
  }
2060
2063
  }
2061
- function ze(t5, e2) {
2062
- const n2 = xe();
2063
- return ze = function(e3, r2) {
2064
- let o2 = n2[e3 -= 246];
2065
- if (void 0 === ze.VEKBmo) {
2064
+ const je = new ze();
2065
+ function We(t5, e2) {
2066
+ const n2 = Be();
2067
+ return We = function(e3, r2) {
2068
+ let o2 = n2[e3 -= 453];
2069
+ if (void 0 === We.eTjQkO) {
2066
2070
  const e4 = function(t6, e5) {
2067
2071
  let n3, r3, o3 = [], s3 = 0, i3 = "";
2068
2072
  for (t6 = function(t7) {
@@ -2076,15 +2080,11 @@ function ze(t5, e2) {
2076
2080
  for (let e6 = 0; e6 < t6.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t6.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
2077
2081
  return i3;
2078
2082
  };
2079
- ze.QcgBVj = e4, t5 = arguments, ze.VEKBmo = true;
2083
+ We.JrgyAA = e4, t5 = arguments, We.eTjQkO = true;
2080
2084
  }
2081
2085
  const s2 = e3 + n2[0], i2 = t5[s2];
2082
- return i2 ? o2 = i2 : (void 0 === ze.CZNuEj && (ze.CZNuEj = true), o2 = ze.QcgBVj(o2, r2), t5[s2] = o2), o2;
2083
- }, ze(t5, e2);
2084
- }
2085
- const je = new Pe();
2086
- function We(t5, e2, n2, r2, o2) {
2087
- return ze(e2 - -487, r2);
2086
+ return i2 ? o2 = i2 : (void 0 === We.abgmsc && (We.abgmsc = true), o2 = We.JrgyAA(o2, r2), t5[s2] = o2), o2;
2087
+ }, We(t5, e2);
2088
2088
  }
2089
2089
  const He = (t5, e2) => {
2090
2090
  const n2 = [];
@@ -2117,13 +2117,13 @@ const He = (t5, e2) => {
2117
2117
  i2.push({ x: r3, y: a2 });
2118
2118
  }
2119
2119
  return t5 = He(i2, { x: n2.x, y: n2.y });
2120
- }, Je = (t5, e2, n2, r2, o2, s2, i2, a2, l2 = true) => {
2120
+ }, qe = (t5, e2, n2, r2, o2, s2, i2, a2, l2 = true) => {
2121
2121
  if (t5 === n2 && e2 === r2 || o2 === i2 && s2 === a2) return false;
2122
2122
  let c2 = (a2 - s2) * (n2 - t5) - (i2 - o2) * (r2 - e2);
2123
2123
  if (0 === c2) return false;
2124
2124
  let h2 = ((i2 - o2) * (e2 - s2) - (a2 - s2) * (t5 - o2)) / c2, u2 = ((n2 - t5) * (e2 - s2) - (r2 - e2) * (t5 - o2)) / c2;
2125
2125
  return (!l2 || !(h2 < 0 || h2 > 1 || u2 < 0 || u2 > 1)) && { x: t5 + h2 * (n2 - t5), y: e2 + h2 * (r2 - e2) };
2126
- }, qe = (t5, e2, n2 = true) => Je(t5.p1.x, t5.p1.y, t5.p2.x, t5.p2.y, e2.p1.x, e2.p1.y, e2.p2.x, e2.p2.y, n2), Ke = (t5) => ({ top: { p1: t5[0], p2: t5[1] }, left: { p1: t5[3], p2: t5[0] }, right: { p1: t5[1], p2: t5[2] }, bottom: { p1: t5[2], p2: t5[3] } }), Xe = (t5, e2, n2) => {
2126
+ }, Je = (t5, e2, n2 = true) => qe(t5.p1.x, t5.p1.y, t5.p2.x, t5.p2.y, e2.p1.x, e2.p1.y, e2.p2.x, e2.p2.y, n2), Ke = (t5) => ({ top: { p1: t5[0], p2: t5[1] }, left: { p1: t5[3], p2: t5[0] }, right: { p1: t5[1], p2: t5[2] }, bottom: { p1: t5[2], p2: t5[3] } }), Xe = (t5, e2, n2) => {
2127
2127
  let r2 = n2 * Math.PI / 180, o2 = Math.sin(r2), s2 = Math.cos(r2);
2128
2128
  return { x: t5 * s2 - e2 * o2, y: t5 * o2 + e2 * s2 };
2129
2129
  }, Ye = (t5, e2) => {
@@ -2143,33 +2143,33 @@ const He = (t5, e2) => {
2143
2143
  o2 = He(o2, { x: e2.width / 2 - t5.width / 2, y: e2.height / 2 - t5.height / 2 }), o2 = Ue(o2, n2);
2144
2144
  let s2 = Ke(o2), i2 = Ke(r2);
2145
2145
  if (n2 > 90) {
2146
- const t6 = qe(s2.top, i2.top);
2146
+ const t6 = Je(s2.top, i2.top);
2147
2147
  if (t6) {
2148
- const e4 = t6, n3 = qe(s2.bottom, i2.bottom, false) || o2[3];
2149
- o2[0] = qe(s2.top, Ye(s2.bottom, n3), false) || o2[0], o2[1] = e4, o2[3] = n3, o2[2] = qe(s2.bottom, Ye(s2.top, e4), false) || o2[2], s2 = Ke(o2);
2148
+ const e4 = t6, n3 = Je(s2.bottom, i2.bottom, false) || o2[3];
2149
+ o2[0] = Je(s2.top, Ye(s2.bottom, n3), false) || o2[0], o2[1] = e4, o2[3] = n3, o2[2] = Je(s2.bottom, Ye(s2.top, e4), false) || o2[2], s2 = Ke(o2);
2150
2150
  }
2151
- const e3 = qe(s2.top, i2.left);
2151
+ const e3 = Je(s2.top, i2.left);
2152
2152
  if (e3) {
2153
- const t7 = e3, n3 = qe(s2.bottom, i2.right, false) || o2[2];
2154
- o2[0] = t7, o2[1] = qe(s2.top, Ye(s2.bottom, n3), false) || o2[1], o2[3] = qe(s2.bottom, Ye(s2.top, t7), false) || o2[3], o2[2] = n3;
2153
+ const t7 = e3, n3 = Je(s2.bottom, i2.right, false) || o2[2];
2154
+ o2[0] = t7, o2[1] = Je(s2.top, Ye(s2.bottom, n3), false) || o2[1], o2[3] = Je(s2.bottom, Ye(s2.top, t7), false) || o2[3], o2[2] = n3;
2155
2155
  }
2156
2156
  } else if (n2 < 90) {
2157
- const t6 = qe(s2.top, i2.top);
2157
+ const t6 = Je(s2.top, i2.top);
2158
2158
  if (t6) {
2159
- const e4 = t6, n3 = qe(s2.bottom, i2.bottom, false) || o2[2];
2160
- o2[0] = e4, o2[1] = qe(s2.top, Ye(s2.bottom, n3), false) || o2[1], o2[3] = qe(s2.bottom, Ye(s2.top, e4), false) || o2[3], o2[2] = n3, s2 = Ke(o2);
2159
+ const e4 = t6, n3 = Je(s2.bottom, i2.bottom, false) || o2[2];
2160
+ o2[0] = e4, o2[1] = Je(s2.top, Ye(s2.bottom, n3), false) || o2[1], o2[3] = Je(s2.bottom, Ye(s2.top, e4), false) || o2[3], o2[2] = n3, s2 = Ke(o2);
2161
2161
  }
2162
- const e3 = qe(s2.top, i2.right);
2162
+ const e3 = Je(s2.top, i2.right);
2163
2163
  if (e3) {
2164
- const t7 = e3, n3 = qe(s2.bottom, i2.left, false) || o2[3];
2165
- o2[0] = qe(s2.top, Ye(s2.bottom, n3), false) || o2[0], o2[1] = t7, o2[3] = n3, o2[2] = qe(s2.bottom, Ye(s2.top, t7), false) || o2[2];
2164
+ const t7 = e3, n3 = Je(s2.bottom, i2.left, false) || o2[3];
2165
+ o2[0] = Je(s2.top, Ye(s2.bottom, n3), false) || o2[0], o2[1] = t7, o2[3] = n3, o2[2] = Je(s2.bottom, Ye(s2.top, t7), false) || o2[2];
2166
2166
  }
2167
2167
  }
2168
2168
  o2 = Ue(o2, -n2);
2169
2169
  const a2 = Ge(o2);
2170
2170
  return { width: a2.width, height: a2.height };
2171
2171
  }, findIntersectMath: (t5, e2, n2, r2) => {
2172
- let o2 = Je(t5.x, t5.y, e2.x, e2.y, 5e4, 0, -5e4, 0);
2172
+ let o2 = qe(t5.x, t5.y, e2.x, e2.y, 5e4, 0, -5e4, 0);
2173
2173
  return o2 && (n2 = Math.min(n2, o2.x), r2 = Math.max(r2, o2.x)), { min: n2, max: r2 };
2174
2174
  }, leastSquaresSlopeAndIntercept: (t5) => {
2175
2175
  let e2 = 0, n2 = 0, r2 = 0, o2 = 0, s2 = 0, i2 = 0, a2 = 0, l2 = t5.length;
@@ -3098,16 +3098,16 @@ function Mn(t5, e2, n2) {
3098
3098
  }(t5, e2, n2);
3099
3099
  if (console.warn(r2), In.includes(t5)) throw new RangeError(r2);
3100
3100
  }
3101
- const Nn = Symbol.for("constructDateFrom");
3102
- function Tn(t5, e2) {
3103
- return "function" == typeof t5 ? t5(e2) : t5 && "object" == typeof t5 && Nn in t5 ? t5[Nn](e2) : t5 instanceof Date ? new t5.constructor(e2) : new Date(e2);
3101
+ const Tn = Symbol.for("constructDateFrom");
3102
+ function Nn(t5, e2) {
3103
+ return "function" == typeof t5 ? t5(e2) : t5 && "object" == typeof t5 && Tn in t5 ? t5[Tn](e2) : t5 instanceof Date ? new t5.constructor(e2) : new Date(e2);
3104
3104
  }
3105
3105
  let kn = {};
3106
3106
  function Fn() {
3107
3107
  return kn;
3108
3108
  }
3109
3109
  function On(t5, e2) {
3110
- return Tn(e2 || t5, t5);
3110
+ return Nn(e2 || t5, t5);
3111
3111
  }
3112
3112
  class Dn {
3113
3113
  constructor() {
@@ -3130,13 +3130,13 @@ class Ln extends Dn {
3130
3130
  }
3131
3131
  class Bn extends Dn {
3132
3132
  constructor(t5, e2) {
3133
- super(), this.priority = 10, this.subPriority = -1, this.context = t5 || ((t6) => Tn(e2, t6));
3133
+ super(), this.priority = 10, this.subPriority = -1, this.context = t5 || ((t6) => Nn(e2, t6));
3134
3134
  }
3135
3135
  set(t5, e2) {
3136
- return e2.timestampIsSet ? t5 : Tn(t5, function(t6, e3) {
3136
+ return e2.timestampIsSet ? t5 : Nn(t5, function(t6, e3) {
3137
3137
  const n2 = function(t7) {
3138
3138
  return "function" == typeof t7 && t7.prototype?.constructor === t7;
3139
- }(e3) ? new e3(0) : Tn(e3, 0);
3139
+ }(e3) ? new e3(0) : Nn(e3, 0);
3140
3140
  return n2.setFullYear(t6.getFullYear(), t6.getMonth(), t6.getDate()), n2.setHours(t6.getHours(), t6.getMinutes(), t6.getSeconds(), t6.getMilliseconds()), n2;
3141
3141
  }(t5, this.context));
3142
3142
  }
@@ -3158,7 +3158,7 @@ function Un(t5, e2) {
3158
3158
  const n2 = e2.match(t5);
3159
3159
  return n2 ? { value: parseInt(n2[0], 10), rest: e2.slice(n2[0].length) } : null;
3160
3160
  }
3161
- function Jn(t5, e2) {
3161
+ function qn(t5, e2) {
3162
3162
  switch (t5) {
3163
3163
  case 1:
3164
3164
  return Un(Wn, e2);
@@ -3172,7 +3172,7 @@ function Jn(t5, e2) {
3172
3172
  return Un(new RegExp("^\\d{1," + t5 + "}"), e2);
3173
3173
  }
3174
3174
  }
3175
- class qn extends Pn {
3175
+ class Jn extends Pn {
3176
3176
  constructor() {
3177
3177
  super(...arguments), this.incompatibleTokens = ["Y", "R", "q", "Q", "L", "w", "I", "D", "i", "e", "c", "t", "T"], this.priority = 110;
3178
3178
  }
@@ -3182,7 +3182,7 @@ class qn extends Pn {
3182
3182
  case "M":
3183
3183
  return Gn(Un(zn, t5), r2);
3184
3184
  case "MM":
3185
- return Gn(Jn(2, t5), r2);
3185
+ return Gn(qn(2, t5), r2);
3186
3186
  case "Mo":
3187
3187
  return Gn(n2.ordinalNumber(t5, { unit: "month" }), r2);
3188
3188
  case "MMM":
@@ -3205,7 +3205,7 @@ function Yn(t5, e2, n2) {
3205
3205
  const r2 = Fn(), o2 = n2?.weekStartsOn ?? n2?.locale?.options?.weekStartsOn ?? r2.weekStartsOn ?? r2.locale?.options?.weekStartsOn ?? 0, s2 = On(t5, n2?.in), i2 = s2.getDay(), a2 = 7 - o2;
3206
3206
  return function(t6, e3, n3) {
3207
3207
  const r3 = On(t6, n3?.in);
3208
- return isNaN(e3) ? Tn(n3?.in || t6, NaN) : e3 ? (r3.setDate(r3.getDate() + e3), r3) : r3;
3208
+ return isNaN(e3) ? Nn(n3?.in || t6, NaN) : e3 ? (r3.setDate(r3.getDate() + e3), r3) : r3;
3209
3209
  }(s2, e2 < 0 || e2 > 6 ? e2 - (i2 + a2) % 7 : ((e2 % 7 + 7) % 7 + a2) % 7 - (i2 + a2) % 7, n2);
3210
3210
  }
3211
3211
  const Qn = { y: new class extends Pn {
@@ -3216,11 +3216,11 @@ const Qn = { y: new class extends Pn {
3216
3216
  const r2 = (t6) => ({ year: t6, isTwoDigitYear: "yy" === e2 });
3217
3217
  switch (e2) {
3218
3218
  case "y":
3219
- return Gn(Jn(4, t5), r2);
3219
+ return Gn(qn(4, t5), r2);
3220
3220
  case "yo":
3221
3221
  return Gn(n2.ordinalNumber(t5, { unit: "year" }), r2);
3222
3222
  default:
3223
- return Gn(Jn(e2.length, t5), r2);
3223
+ return Gn(qn(e2.length, t5), r2);
3224
3224
  }
3225
3225
  }
3226
3226
  validate(t5, e2) {
@@ -3244,7 +3244,7 @@ const Qn = { y: new class extends Pn {
3244
3244
  const o2 = "era" in e2 && 1 !== e2.era ? 1 - n2.year : n2.year;
3245
3245
  return t5.setFullYear(o2, 0, 1), t5.setHours(0, 0, 0, 0), t5;
3246
3246
  }
3247
- }(), M: new qn(), d: new class extends Pn {
3247
+ }(), M: new Jn(), d: new class extends Pn {
3248
3248
  constructor() {
3249
3249
  super(...arguments), this.priority = 90, this.subPriority = 1, this.incompatibleTokens = ["Y", "R", "q", "Q", "w", "I", "D", "i", "e", "c", "t", "T"];
3250
3250
  }
@@ -3255,7 +3255,7 @@ const Qn = { y: new class extends Pn {
3255
3255
  case "do":
3256
3256
  return n2.ordinalNumber(t5, { unit: "date" });
3257
3257
  default:
3258
- return Jn(e2.length, t5);
3258
+ return qn(e2.length, t5);
3259
3259
  }
3260
3260
  }
3261
3261
  validate(t5, e2) {
@@ -3293,7 +3293,7 @@ const Qn = { y: new class extends Pn {
3293
3293
  }
3294
3294
  }() }, Zn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, er = /^'([^]*?)'?$/, nr = /''/g, rr = /\S/, or = /[a-zA-Z]/;
3295
3295
  function sr(t5, e2, n2, r2) {
3296
- const o2 = () => Tn(r2?.in || n2, NaN), s2 = Object.assign({}, Fn()), i2 = r2?.locale ?? s2.locale ?? yn, 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;
3296
+ const o2 = () => Nn(r2?.in || n2, NaN), s2 = Object.assign({}, Fn()), i2 = r2?.locale ?? s2.locale ?? yn, 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;
3297
3297
  if (!e2) return t5 ? o2() : On(n2, r2?.in);
3298
3298
  const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new Bn(r2?.in, n2)], u2 = e2.match(tr).map((t6) => {
3299
3299
  const e3 = t6[0];
@@ -3423,7 +3423,7 @@ function Mr(t5) {
3423
3423
  return -1 === t6.indexOf("E") ? t6 : t6.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/, "$1E").replace(/(E[+-])(\d)$/, "$10$2");
3424
3424
  }(e2.toUpperCase()));
3425
3425
  }
3426
- function Nr(t5, e2) {
3426
+ function Tr(t5, e2) {
3427
3427
  switch (typeof t5) {
3428
3428
  case "string":
3429
3429
  return t5;
@@ -3439,7 +3439,7 @@ function Nr(t5, e2) {
3439
3439
  }
3440
3440
  throw new Error("unsupported value in General format: " + t5);
3441
3441
  }
3442
- function Tr(t5, e2, n2, r2) {
3442
+ function Nr(t5, e2, n2, r2) {
3443
3443
  var o2, s2 = "", i2 = 0, a2 = 0, l2 = n2.y, c2 = 0;
3444
3444
  switch (t5) {
3445
3445
  case 98:
@@ -3745,7 +3745,7 @@ function Gr(t5, e2, n2) {
3745
3745
  function Ur(t5, e2, n2) {
3746
3746
  return (0 | n2) === n2 ? Gr(t5, e2, n2) : Vr(t5, e2, n2);
3747
3747
  }
3748
- function Jr(t5) {
3748
+ function qr(t5) {
3749
3749
  var e2 = [], n2 = false;
3750
3750
  const r2 = t5.length;
3751
3751
  for (var o2 = 0, s2 = 0; o2 < r2; ++o2) switch (t5.charCodeAt(o2)) {
@@ -3763,7 +3763,7 @@ function Jr(t5) {
3763
3763
  if (e2[e2.length] = t5.substr(s2), true === n2) throw new Error("Format |" + t5 + "| unterminated string ");
3764
3764
  return e2;
3765
3765
  }
3766
- var qr = /\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;
3766
+ var Jr = /\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;
3767
3767
  function Kr(t5) {
3768
3768
  for (var e2 = 0, n2 = "", r2 = "", o2 = t5.length; e2 < o2; ) switch (n2 = t5.charAt(e2)) {
3769
3769
  case "G":
@@ -3807,7 +3807,7 @@ function Kr(t5) {
3807
3807
  break;
3808
3808
  case "[":
3809
3809
  for (r2 = n2; "]" !== t5.charAt(e2++) && e2 < t5.length; ) r2 += t5.charAt(e2);
3810
- if (r2.match(qr)) return true;
3810
+ if (r2.match(Jr)) return true;
3811
3811
  break;
3812
3812
  case ".":
3813
3813
  case "0":
@@ -3875,10 +3875,10 @@ function Qr(t5, e2, n2) {
3875
3875
  case "number":
3876
3876
  null == (r2 = 14 === t5 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : wr)[t5]) && (r2 = n2.table && n2.table[yr[t5]] || wr[yr[t5]]), null == r2 && (r2 = Er[t5] || "General");
3877
3877
  }
3878
- if (pr(r2, 0)) return Nr(e2, n2);
3878
+ if (pr(r2, 0)) return Tr(e2, n2);
3879
3879
  ar(e2) && (e2 = Rr(e2, n2.date1904));
3880
3880
  var o2 = function(t6, e3) {
3881
- var n3 = Jr(t6), r3 = n3.length, o3 = n3[r3 - 1].indexOf("@");
3881
+ var n3 = qr(t6), r3 = n3.length, o3 = n3[r3 - 1].indexOf("@");
3882
3882
  if (-1 !== o3 && "\\" === n3[r3 - 1][o3 - 1] && (o3 = -1), r3 < 4 && o3 > -1 && --r3, n3.length > 4) throw new Error("We can't find right format for |" + n3.join("|") + "|");
3883
3883
  if ("number" != typeof e3) return [4, 4 === n3.length || o3 > -1 ? n3[n3.length - 1] : "@"];
3884
3884
  switch (n3.length) {
@@ -3899,7 +3899,7 @@ function Qr(t5, e2, n2) {
3899
3899
  }
3900
3900
  return [r3, s2];
3901
3901
  }(r2, e2);
3902
- if (pr(o2[1])) return Nr(e2, n2);
3902
+ if (pr(o2[1])) return Tr(e2, n2);
3903
3903
  if (true === e2) e2 = "TRUE";
3904
3904
  else if (false === e2) e2 = "FALSE";
3905
3905
  else if ("" === e2 || null == e2) return "";
@@ -3958,7 +3958,7 @@ function Qr(t5, e2, n2) {
3958
3958
  case "[":
3959
3959
  for (l2 = h2; "]" !== t6.charAt(c2++) && c2 < t6.length; ) l2 += t6.charAt(c2);
3960
3960
  if ("]" !== l2.slice(-1)) throw new Error('unterminated "[" block: |' + l2 + "|");
3961
- if (l2.match(qr)) {
3961
+ if (l2.match(Jr)) {
3962
3962
  if (null == o3 && null == (o3 = Cr(e3, n3))) return "";
3963
3963
  a2[a2.length] = { t: "Z", v: l2.toLowerCase() }, u2 = l2.charAt(1);
3964
3964
  } else l2.indexOf("$") > -1 && (l2 = (l2.match(/\$([^-[\]]*)/) || [])[1] || "$", Kr(t6) || (a2[a2.length] = { t: "t", v: l2 }));
@@ -4063,7 +4063,7 @@ function Qr(t5, e2, n2) {
4063
4063
  case "e":
4064
4064
  case "b":
4065
4065
  case "Z":
4066
- a2[c2].v = Tr(a2[c2].t.charCodeAt(0), a2[c2].v, o3, w2), a2[c2].t = "t";
4066
+ a2[c2].v = Nr(a2[c2].t.charCodeAt(0), a2[c2].v, o3, w2), a2[c2].t = "t";
4067
4067
  break;
4068
4068
  case "n":
4069
4069
  case "?":
@@ -4071,7 +4071,7 @@ function Qr(t5, e2, n2) {
4071
4071
  E2 += a2[c2].v, c2 = y2 - 1;
4072
4072
  break;
4073
4073
  case "G":
4074
- a2[c2].t = "t", a2[c2].v = Nr(e3, n3);
4074
+ a2[c2].t = "t", a2[c2].v = Tr(e3, n3);
4075
4075
  }
4076
4076
  var b2, C2, v2 = "";
4077
4077
  if (E2.length > 0) {
@@ -4120,7 +4120,7 @@ function Zr(t5, e2) {
4120
4120
  }
4121
4121
  return wr[e2] = t5, e2;
4122
4122
  }
4123
- const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: Jr, _table: wr, load_table: function(t5) {
4123
+ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: qr, _table: wr, load_table: function(t5) {
4124
4124
  for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t5[e2] && Zr(t5[e2], e2);
4125
4125
  }, parse_date_code: Cr, is_date: Kr, get_table: function() {
4126
4126
  return to._table = wr;
@@ -4155,7 +4155,7 @@ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: Jr, _table: wr,
4155
4155
  const a2 = (s2 + o2) / 2;
4156
4156
  let l2 = 0;
4157
4157
  return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
4158
- }, xo = 0, Io = 1, Ro = 2, Ao = 0, Mo = 1, No = 2, To = 0, ko = 1, Fo = 2, Oo = (t5, e2) => {
4158
+ }, xo = 0, Io = 1, Ro = 2, Ao = 0, Mo = 1, To = 2, No = 0, ko = 1, Fo = 2, Oo = (t5, e2) => {
4159
4159
  let n2 = e2 / 100;
4160
4160
  return ((t6, e3) => {
4161
4161
  let n3 = So(t6);
@@ -4197,11 +4197,11 @@ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: Jr, _table: wr,
4197
4197
  return s2 = fo(s2), s2;
4198
4198
  }, Wo = (t5, e2, n2, r2) => {
4199
4199
  let o2 = So(e2), s2 = n2 / 100;
4200
- r2 === To ? o2[t5] = s2 : r2 === ko ? o2[t5] += s2 : r2 === Fo && (o2[t5] *= s2);
4200
+ r2 === No ? o2[t5] = s2 : r2 === ko ? o2[t5] += s2 : r2 === Fo && (o2[t5] *= s2);
4201
4201
  let i2 = wo(o2);
4202
4202
  return i2 = fo(i2), i2;
4203
4203
  }, Ho = (t5) => {
4204
- let e2 = So(t5), n2 = 0.213 * e2[Ao] + 0.715 * e2[Mo] + 0.072 * e2[No];
4204
+ let e2 = So(t5), n2 = 0.213 * e2[Ao] + 0.715 * e2[Mo] + 0.072 * e2[To];
4205
4205
  e2[0] = n2, e2[1] = n2, e2[2] = n2;
4206
4206
  let r2 = wo(e2);
4207
4207
  return r2 = fo(r2), r2;
@@ -4222,13 +4222,13 @@ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: Jr, _table: wr,
4222
4222
  const e2 = [0, 0, 0];
4223
4223
  e2[0] = yo(t5[0]), e2[1] = yo(t5[1]), e2[2] = yo(t5[2]);
4224
4224
  return fo(e2);
4225
- }, Jo = (t5, e2, n2, r2 = null) => {
4225
+ }, qo = (t5, e2, n2, r2 = null) => {
4226
4226
  const o2 = (t6) => {
4227
4227
  let e3 = t6.toString(16);
4228
4228
  return 1 === e3.length ? "0" + e3 : e3;
4229
4229
  };
4230
4230
  return (null === r2 ? "" : o2(Math.round(255 * r2))) + o2(Number(t5)).toUpperCase() + o2(Number(e2)).toUpperCase() + o2(Number(n2)).toUpperCase();
4231
- }, qo = 0.2126, Ko = 0.7152, Xo = 0.0722;
4231
+ }, Jo = 0.2126, Ko = 0.7152, Xo = 0.0722;
4232
4232
  var Yo;
4233
4233
  ((t5) => {
4234
4234
  t5.RGBA = class {
@@ -4289,7 +4289,7 @@ var Yo;
4289
4289
  };
4290
4290
  class e2 extends t5.RGBA {
4291
4291
  toString(t6 = true) {
4292
- return t6 && null !== this._private.alpha ? "#" + Jo(this.red, this.green, this.blue, this.alpha ?? 1).toUpperCase() : "#" + Jo(this.red, this.green, this.blue).toUpperCase();
4292
+ return t6 && null !== this._private.alpha ? "#" + qo(this.red, this.green, this.blue, this.alpha ?? 1).toUpperCase() : "#" + qo(this.red, this.green, this.blue).toUpperCase();
4293
4293
  }
4294
4294
  }
4295
4295
  t5.HEX = e2;
@@ -4401,10 +4401,10 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
4401
4401
  }
4402
4402
  }, Rs = (t5) => {
4403
4403
  if (t5 === os.MediumDate || t5 === os.LongDate || t5 === os.ShortDate || t5 === os.MediumTime || t5 === os.LongTime || t5 === os.ShortTime) return true;
4404
- }, As = (t5, e2) => t5 === e2 ? 0 : Rs(t5) ? 1 : Rs(e2) ? -1 : t5 === os.Percentage ? 1 : e2 === os.Percentage ? -1 : t5 === os.Currency || t5 === os.Accounting ? 1 : e2 === os.Currency || e2 === os.Accounting ? -1 : 0, Ms = (t5) => (t5 instanceof Date || "[object Date]" === Object.prototype.toString.call(t5)) && !isNaN(t5.getTime()), Ns = (t5, e2, n2) => {
4404
+ }, As = (t5, e2) => t5 === e2 ? 0 : Rs(t5) ? 1 : Rs(e2) ? -1 : t5 === os.Percentage ? 1 : e2 === os.Percentage ? -1 : t5 === os.Currency || t5 === os.Accounting ? 1 : e2 === os.Currency || e2 === os.Accounting ? -1 : 0, Ms = (t5) => (t5 instanceof Date || "[object Date]" === Object.prototype.toString.call(t5)) && !isNaN(t5.getTime()), Ts = (t5, e2, n2) => {
4405
4405
  return "month" === n2 || "months" === n2 || "m" === n2 ? (r2 = t5, 12 * ((o2 = e2).getUTCFullYear() - r2.getUTCFullYear()) + (o2.getUTCMonth() - r2.getUTCMonth()) + (o2.getUTCDate() - r2.getUTCDate() < 0 ? -1 : 0)) : "year" === n2 || "years" === n2 || "y" === n2 ? ((t6, e3) => Math.abs(e3.getFullYear() - t6.getFullYear()))(t5, e2) : "day" === n2 || "days" === n2 || "d" === n2 ? ((t6, e3) => Math.floor((Date.UTC(e3.getFullYear(), e3.getMonth(), e3.getDate()) - Date.UTC(t6.getFullYear(), t6.getMonth(), t6.getDate())) / 864e5))(t5, e2) : void console.warn("invalid unit" + n2);
4406
4406
  var r2, o2;
4407
- }, Ts = "d", ks = "m", Fs = "y", Os = (t5, e2, n2) => {
4407
+ }, Ns = "d", ks = "m", Fs = "y", Os = (t5, e2, n2) => {
4408
4408
  if ("month" === n2 || "months" === n2 || "m" === n2) {
4409
4409
  const n3 = new Date(t5.getTime());
4410
4410
  return new Date(n3.setMonth(n3.getMonth() + e2));
@@ -4425,14 +4425,14 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
4425
4425
  }, Ds = (t5, e2 = false) => {
4426
4426
  let n2 = to.parse_date_code(t5, { date1904: e2 });
4427
4427
  return n2 ? new Date(n2.y, n2.m - 1, n2.d, n2.H, n2.M, n2.S, Math.round(1e3 * n2.u)) : null;
4428
- }, Ls = (t5, e2 = false) => isNaN(t5) ? null : to.dateNumLocal(t5, e2), Bs = new class extends qn {
4428
+ }, Ls = (t5, e2 = false) => isNaN(t5) ? null : to.dateNumLocal(t5, e2), Bs = new class extends Jn {
4429
4429
  parse(t5, e2, n2) {
4430
4430
  const r2 = (t6) => t6 - 1;
4431
4431
  switch (e2) {
4432
4432
  case "M":
4433
4433
  return Gn(Un(zn, t5), r2);
4434
4434
  case "MM":
4435
- return Gn(Jn(2, t5), r2);
4435
+ return Gn(qn(2, t5), r2);
4436
4436
  case "Mo":
4437
4437
  return Gn(n2.ordinalNumber(t5, { unit: "month" }), r2);
4438
4438
  case "MMM":
@@ -4516,7 +4516,7 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
4516
4516
  "General" !== l2 && (1 === m2.length && m2.push(0), 2 === m2.length && (null === r2 ? m2.push(0) : m2.unshift(0)));
4517
4517
  let f2 = { hour: m2[0] ?? 0, minute: m2[1] ?? 0, second: m2[2] ?? 0, millis: 1e3 * (r2 ?? 0) };
4518
4518
  return { numberFormat: l2, parsed: js(f2, e2), leadingText: u2 };
4519
- }, Js = {}, qs = (t5, e2 = false, n2 = null) => {
4519
+ }, qs = {}, Js = (t5, e2 = false, n2 = null) => {
4520
4520
  const r2 = n2 ?? Date.now(), o2 = new Date(r2).getFullYear();
4521
4521
  let s2 = t5.trim().replaceAll(/\s+/g, " ");
4522
4522
  s2 = s2.replaceAll(/\s*([-/])\s*/g, "$1");
@@ -4526,7 +4526,7 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
4526
4526
  for (let t6 = 0; t6 < Ps.length; t6++) {
4527
4527
  let n3 = s2;
4528
4528
  Ps[t6].containsDot ? n3 = i2 : Ps[t6].containsDash && (n3 = a2);
4529
- let c2 = sr(n3, Ps[t6].parseFormat, r2, Js), h2 = to.dateNumLocal(c2, e2);
4529
+ let c2 = sr(n3, Ps[t6].parseFormat, r2, qs), h2 = to.dateNumLocal(c2, e2);
4530
4530
  if (Ms(c2) && (Ps[t6].windowYear || h2 > 0)) {
4531
4531
  if (Ps[t6].windowYear) {
4532
4532
  let t7 = c2.getFullYear() <= 29 ? 2e3 + c2.getFullYear() : 1900 + c2.getFullYear();
@@ -4663,7 +4663,7 @@ var Ai, Mi;
4663
4663
  return "sans-serif";
4664
4664
  }
4665
4665
  }, Mi.GenericName = { Serif: "serif", SanSerif: "sans-serif", MonoSpace: "monospace", Cursive: "cursive", Fantasy: "fantasy", SystemUI: "system-ui", UISystem: "ui-system", UISerif: "ui-serif", UISanSerif: "ui-sans-serif", UIMonoSpace: "ui-monospace", UIRounded: "ui-rounded", Math: "math", Emoji: "emoji", Fangsong: "fangsong" };
4666
- class Ni {
4666
+ class Ti {
4667
4667
  constructor(t5) {
4668
4668
  this._private = { input: t5 }, "string" == typeof t5 ? this._private.name = t5 : Object.assign(this._private, t5);
4669
4669
  }
@@ -4686,18 +4686,18 @@ class Ni {
4686
4686
  return true;
4687
4687
  }
4688
4688
  }
4689
- const Ti = ["Arial", "Arial Black", "Brush Script MT", "Calibri", "Comic Sans MS", "Courier New", "Garamond", "Georgia", "Impact", "Luminari", "Palatino Linotype", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana"], ki = /* @__PURE__ */ new Map();
4689
+ const Ni = ["Arial", "Arial Black", "Brush Script MT", "Calibri", "Comic Sans MS", "Courier New", "Garamond", "Georgia", "Impact", "Luminari", "Palatino Linotype", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana"], ki = /* @__PURE__ */ new Map();
4690
4690
  ki.set(Ai.GenericName.Serif, ["Tahoma"]), ki.set(Ai.GenericName.SanSerif, ["Calibri"]), ki.set(Ai.GenericName.MonoSpace, ["Courier New"]), ki.set(Ai.GenericName.Cursive, ["Comic Sans MS"]), ki.set(Ai.GenericName.Fantasy, ["Luminari"]), ki.set(Ai.GenericName.UISystem, ["Arial"]), ki.set(Ai.GenericName.UISerif, ["Tahoma"]), ki.set(Ai.GenericName.UISanSerif, ["Arial"]), ki.set(Ai.GenericName.UIMonoSpace, ["Courier New"]), ki.set(Ai.GenericName.UIRounded, ["Arial"]), ki.set(Ai.GenericName.Math, []), ki.set(Ai.GenericName.Emoji, []), ki.set(Ai.GenericName.Fangsong, []);
4691
4691
  const Fi = /* @__PURE__ */ new Map();
4692
4692
  let Oi = [];
4693
- Li(Ti);
4693
+ Li(Ni);
4694
4694
  const Di = eval;
4695
4695
  function Li(t5) {
4696
- t5 || Li(Ti);
4696
+ t5 || Li(Ni);
4697
4697
  let e2 = [];
4698
4698
  for (let n2 = 0; n2 < t5.length; n2++) {
4699
4699
  let r2 = t5[n2];
4700
- "string" == typeof r2 && (r2 = new Ni(r2));
4700
+ "string" == typeof r2 && (r2 = new Ti(r2));
4701
4701
  let o2 = true;
4702
4702
  const s2 = "document";
4703
4703
  try {
@@ -4728,7 +4728,7 @@ const Bi = /* @__PURE__ */ new Map(), Pi = Object.freeze(Object.defineProperty({
4728
4728
  }, setFontList: Li }, Symbol.toStringTag, { value: "Module" }));
4729
4729
  class zi {
4730
4730
  constructor(t5, e2, n2, r2 = null, o2 = null, s2 = null) {
4731
- this._private = { wrapped: true, insets: N.EmptyRect, orientation: Zs.Orientation.Horizontal, autoFit: Zs.Autofit.None, fontScale: 1, vertical: false, columnCount: 1, columnSpacing: 0, verticalAlignment: Zs.VerticalAlignment.Center, horizontalCentered: false, lineReduction: 0, isSpaceFirstLastPara: false, presetTextWarp: null, paragraphs: bt.EmptyArray }, this._bounds = null, this._textBounds = null, this._lines = null, this._lastLayoutDims = void 0, this._lastLayout = void 0, this._private = Object.assign(this._private, t5 || {}), this._defaultFont = e2, this._alignment = n2, this._lines = r2, this._bounds = Object.freeze(o2), this._textBounds = Object.freeze(s2);
4731
+ this._private = { wrapped: true, insets: T.EmptyRect, orientation: Zs.Orientation.Horizontal, autoFit: Zs.Autofit.None, fontScale: 1, vertical: false, columnCount: 1, columnSpacing: 0, verticalAlignment: Zs.VerticalAlignment.Center, horizontalCentered: false, lineReduction: 0, isSpaceFirstLastPara: false, presetTextWarp: null, paragraphs: bt.EmptyArray }, this._bounds = null, this._textBounds = null, this._lines = null, this._lastLayoutDims = void 0, this._lastLayout = void 0, this._private = Object.assign(this._private, t5 || {}), this._defaultFont = e2, this._alignment = n2, this._lines = r2, this._bounds = Object.freeze(o2), this._textBounds = Object.freeze(s2);
4732
4732
  }
4733
4733
  visitParas(t5) {
4734
4734
  t5?.visitTextFrame?.(this);
@@ -4761,7 +4761,7 @@ class zi {
4761
4761
  return bt.deepEqual(this._private, t5._private);
4762
4762
  }
4763
4763
  createTemporaryTextFrame(t5, e2) {
4764
- return qi(t5, this._defaultFont, this._alignment, e2 ?? this._private.wrapped);
4764
+ return Ji(t5, this._defaultFont, this._alignment, e2 ?? this._private.wrapped);
4765
4765
  }
4766
4766
  get bounds() {
4767
4767
  if (null === this._bounds) throw new Error(ji);
@@ -5036,7 +5036,7 @@ const Ui = (t5, e2, n2, r2 = null, o2 = Ai.getSharedMeasurer()) => {
5036
5036
  for (let t7 = 0; t7 < n3; t7++) s2 += e3[t7].text, 0 === t7 && (i2 = e3[t7]);
5037
5037
  0 === t6 && (a2 = l2[t6]);
5038
5038
  }
5039
- const h2 = t5.insets ?? N.EmptyRect, u2 = new Gi(o2), d2 = r2?.width ? r2.width - h2.right - h2.left : r2?.width, g2 = r2?.height ? r2.height - h2.bottom - h2.top : null, m2 = u2.wrap(s2, { fontName: i2.fontName, fontSize: i2.fontSize * Ai.getDeviceScale(), bold: i2.bold, italic: i2.italic, superSub: i2.superSub, letterSpacing: i2.letterSpacing, maxWidth: t5.wrapped && d2 ? d2 : null, maxHeight: g2 });
5039
+ const h2 = t5.insets ?? T.EmptyRect, u2 = new Gi(o2), d2 = r2?.width ? r2.width - h2.right - h2.left : r2?.width, g2 = r2?.height ? r2.height - h2.bottom - h2.top : null, m2 = u2.wrap(s2, { fontName: i2.fontName, fontSize: i2.fontSize * Ai.getDeviceScale(), bold: i2.bold, italic: i2.italic, superSub: i2.superSub, letterSpacing: i2.letterSpacing, maxWidth: t5.wrapped && d2 ? d2 : null, maxHeight: g2 });
5040
5040
  let f2 = [];
5041
5041
  const p2 = m2.lines, _2 = p2.length, S2 = new Array(_2);
5042
5042
  for (let t6 = 0; t6 < _2; t6++) {
@@ -5045,14 +5045,14 @@ const Ui = (t5, e2, n2, r2 = null, o2 = Ai.getSharedMeasurer()) => {
5045
5045
  }
5046
5046
  const w2 = new Hi({ runs: f2, align: a2.align });
5047
5047
  return new zi({ paragraphs: [w2], wrapped: t5.wrapped, verticalAlignment: t5.verticalAlignment }, e2, n2, S2, { x: m2.bounds.x, y: m2.bounds.y, width: m2.bounds.widthWhitespace, height: m2.bounds.height }, { x: m2.bounds.x, y: m2.bounds.y, width: m2.bounds.width, height: m2.bounds.height });
5048
- }, Ji = (t5) => {
5048
+ }, qi = (t5) => {
5049
5049
  let e2 = false, n2 = false;
5050
5050
  for (let r2 = 0; r2 < t5.length; r2++) {
5051
5051
  const o2 = t5.charCodeAt(r2);
5052
5052
  if (o2 >= 65 && o2 <= 90 ? e2 = true : o2 >= 97 && o2 <= 122 && (n2 = true), e2 && n2) return 0;
5053
5053
  }
5054
5054
  return e2 ? 1 : n2 ? -1 : 0;
5055
- }, qi = (t5, e2, n2, r2, o2 = false) => {
5055
+ }, Ji = (t5, e2, n2, r2, o2 = false) => {
5056
5056
  if (null == t5) return null;
5057
5057
  const s2 = new Vi({ text: t5, fontName: e2.toCSS().fontFamily, fontSize: e2.getSize(), bold: e2.getWeight() > 400, italic: e2.getStyle() === Ai.Style.Italic, superSub: !o2 && (e2.getVerticalAlignment() === Ai.VerticalAlignment.Sub || e2.getVerticalAlignment() === Ai.VerticalAlignment.Super), letterSpacing: e2.getLetterSpacing() }), i2 = o2 ? Zs.HorizontalAlignment.Left : n2.getHorizontal(), a2 = n2.getVertical(), l2 = new Hi({ runs: [s2], align: i2 });
5058
5058
  let c2 = [];
@@ -5225,8 +5225,8 @@ var da, ga, ma, fa, pa, _a;
5225
5225
  createFillAt(t6, e3) {
5226
5226
  e3 = { ...this._options, ...e3 };
5227
5227
  let n3 = 0, r3 = this._options?.unit;
5228
- r3 || (r3 = 1 === t6.length ? Ts : ((t7, e4 = false) => {
5229
- if (!t7 || t7.length < 1) return Ts;
5228
+ r3 || (r3 = 1 === t6.length ? Ns : ((t7, e4 = false) => {
5229
+ if (!t7 || t7.length < 1) return Ns;
5230
5230
  let n4 = t7;
5231
5231
  e4 || (n4 = t7.slice(), n4 = n4.sort((t8, e5) => t8.getTime() - e5.getTime()));
5232
5232
  let r4 = false, o4 = -1, s4 = -1;
@@ -5234,7 +5234,7 @@ var da, ga, ma, fa, pa, _a;
5234
5234
  let e5 = n4[t8];
5235
5235
  if (t8 > n4.length - 1 && e5.getTime() < n4[t8 + 1].getTime()) throw new Error("Dates are expected to be sorted.");
5236
5236
  let i3 = 12 * e5.getFullYear() + e5.getMonth();
5237
- if (i3 === s4) return Ts;
5237
+ if (i3 === s4) return Ns;
5238
5238
  s4 = i3;
5239
5239
  let a2 = e5.getFullYear();
5240
5240
  a2 > o4 ? o4 = a2 : r4 = true;
@@ -5246,7 +5246,7 @@ var da, ga, ma, fa, pa, _a;
5246
5246
  let s3 = 1;
5247
5247
  e3?.reverse && (s3 *= -1, n3 *= -1);
5248
5248
  for (let e4 = 1; e4 < t6.length; e4++) {
5249
- let n4 = Ns(t6[e4 - 1], t6[e4], r3);
5249
+ let n4 = Ts(t6[e4 - 1], t6[e4], r3);
5250
5250
  if (1 === e4) s3 = n4;
5251
5251
  else if (n4 !== s3) return null;
5252
5252
  }
@@ -5389,8 +5389,8 @@ var da, ga, ma, fa, pa, _a;
5389
5389
  let h2 = null;
5390
5390
  for (let t7 = 0; !h2 && s3 && t7 < s3.length; t7++) s3[t7].asKey === n3[1] && (h2 = s3[t7]);
5391
5391
  let u2 = false, d2 = false;
5392
- const g2 = Ji(r3);
5393
- 1 === g2 ? u2 = true : (-1 === g2 || -1 === Ji(r3[0])) && (d2 = true);
5392
+ const g2 = qi(r3);
5393
+ 1 === g2 ? u2 = true : (-1 === g2 || -1 === qi(r3[0])) && (d2 = true);
5394
5394
  const m2 = c2[l2.major];
5395
5395
  let f2 = l2.minor, p2 = 1;
5396
5396
  if (n3.length > 1) {
@@ -5479,7 +5479,7 @@ var da, ga, ma, fa, pa, _a;
5479
5479
  return "function" == typeof u3 ? u3(c3) : u3[c3 % u3.length];
5480
5480
  };
5481
5481
  }
5482
- }, t5.Types = { Series: new t5.Composite([new t5.Date(), new t5.Linear(), new t5.Ordinal(), new t5.List()]), DateDays: new t5.Date({ unit: Ts }), DateMonths: new t5.Date({ unit: ks }), DateYears: new t5.Date({ unit: Fs }), Copy: new t5.Copy() }, t5.fillTo = (t6, e3, n3, r3) => {
5482
+ }, t5.Types = { Series: new t5.Composite([new t5.Date(), new t5.Linear(), new t5.Ordinal(), new t5.List()]), DateDays: new t5.Date({ unit: Ns }), DateMonths: new t5.Date({ unit: ks }), DateYears: new t5.Date({ unit: Fs }), Copy: new t5.Copy() }, t5.fillTo = (t6, e3, n3, r3) => {
5483
5483
  const o3 = [], s3 = e3.length, i3 = t6.createFillAt(e3, r3);
5484
5484
  for (let t7 = s3; t7 < n3; t7++) o3.push(i3(t7));
5485
5485
  return o3;
@@ -5552,10 +5552,10 @@ for (let t5 = 0; t5 < xa.length; t5++) va.set(pa.AdjustmentType[xa[t5]].toLowerC
5552
5552
  const Ia = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), Ra = new RegExp("\\s*[,]\\s*|\\s+");
5553
5553
  let Aa = null;
5554
5554
  const Ma = { [pa.Scheme.Bg1]: "window", [pa.Scheme.Bg2]: "E7E6E6", [pa.Scheme.Tx1]: "windowText", [pa.Scheme.Tx2]: "44546A", [pa.Scheme.Accent1]: "4472C4", [pa.Scheme.Accent2]: "ED7D31", [pa.Scheme.Accent3]: "A5A5A5", [pa.Scheme.Accent4]: "FFC000", [pa.Scheme.Accent5]: "5B9BD5", [pa.Scheme.Accent6]: "70AD47", [pa.Scheme.Hlink]: "0563C1", [pa.Scheme.FolHlink]: "954F72" };
5555
- class Na {
5555
+ class Ta {
5556
5556
  constructor(t5, e2, n2, r2 = null) {
5557
5557
  let o2 = null, s2 = null;
5558
- if (t5 instanceof Na) o2 = t5.getVal(), t5.getAdjustments() && (s2 = [...t5.getAdjustments()]);
5558
+ if (t5 instanceof Ta) o2 = t5.getVal(), t5.getAdjustments() && (s2 = [...t5.getAdjustments()]);
5559
5559
  else if ("string" == typeof t5) {
5560
5560
  const e3 = this._parse(t5);
5561
5561
  o2 = e3.val, s2 = e3.adjs;
@@ -5592,7 +5592,7 @@ class Na {
5592
5592
  n2 = ((t6, e3) => {
5593
5593
  e3 = (e3 % 360 + 360) % 360;
5594
5594
  const n3 = [1, 0, 0, 0, 1, 0, 0, 0, 1], r3 = Math.cos(e3 * Math.PI / 180), o3 = Math.sin(e3 * Math.PI / 180);
5595
- n3[0] = qo + 0.7874 * r3 - qo * o3, n3[1] = Ko - Ko * r3 - Ko * o3, n3[2] = Xo - Xo * r3 + 0.9278 * o3, n3[3] = qo - qo * r3 + 0.143 * o3, n3[4] = Ko + (1 - Ko) * r3 + 0.14 * o3, n3[5] = Xo - Xo * r3 - 0.283 * o3, n3[6] = qo - qo * r3 - 0.7874 * o3, n3[7] = Ko - Ko * r3 + Ko * o3, n3[8] = Xo + 0.9278 * r3 + Xo * o3;
5595
+ n3[0] = Jo + 0.7874 * r3 - Jo * o3, n3[1] = Ko - Ko * r3 - Ko * o3, n3[2] = Xo - Xo * r3 + 0.9278 * o3, n3[3] = Jo - Jo * r3 + 0.143 * o3, n3[4] = Ko + (1 - Ko) * r3 + 0.14 * o3, n3[5] = Xo - Xo * r3 - 0.283 * o3, n3[6] = Jo - Jo * r3 - 0.7874 * o3, n3[7] = Ko - Ko * r3 + Ko * o3, n3[8] = Xo + 0.9278 * r3 + Xo * o3;
5596
5596
  const s3 = (t7) => Math.round(Math.max(0, Math.min(255, t7))), i2 = t6[0], a2 = t6[1], l2 = t6[2];
5597
5597
  return [s3(n3[0] * i2 + n3[1] * a2 + n3[2] * l2), s3(n3[3] * i2 + n3[4] * a2 + n3[5] * l2), s3(n3[6] * i2 + n3[7] * a2 + n3[8] * l2)];
5598
5598
  })(n2, 180), n2 = $o(n2, false);
@@ -5613,7 +5613,7 @@ class Na {
5613
5613
  let n3 = [...t6.srgb], r3 = void 0 !== t6.alpha ? t6.alpha : 1;
5614
5614
  for (var o2 = 0; e3 && o2 < e3.length; o2++) {
5615
5615
  const t7 = e3[o2], s2 = Object.keys(t7)[0], i2 = t7[s2];
5616
- s2 === pa.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.Hue ? n3 = Po(xo, n3, i2) : s2 === pa.AdjustmentType.Sat ? n3 = Po(Io, n3, i2) : s2 === pa.AdjustmentType.Lum ? n3 = Po(Ro, n3, i2) : s2 === pa.AdjustmentType.HueOff ? n3 = zo(xo, n3, i2) : s2 === pa.AdjustmentType.SatOff ? n3 = zo(Io, n3, i2) : s2 === pa.AdjustmentType.LumOff ? n3 = zo(Ro, n3, i2) : s2 === pa.AdjustmentType.HueMod ? n3 = jo(xo, n3, i2) : s2 === pa.AdjustmentType.SatMod ? n3 = jo(Io, n3, i2) : s2 === pa.AdjustmentType.LumMod ? n3 = jo(Ro, n3, i2) : s2 === pa.AdjustmentType.Red ? n3 = Wo(Ao, n3, i2, To) : s2 === pa.AdjustmentType.Green ? n3 = Wo(Mo, n3, i2, To) : s2 === pa.AdjustmentType.Blue ? n3 = Wo(No, n3, i2, To) : s2 === pa.AdjustmentType.RedOff ? n3 = Wo(Ao, n3, i2, ko) : s2 === pa.AdjustmentType.GreenOff ? n3 = Wo(Mo, n3, i2, ko) : s2 === pa.AdjustmentType.BlueOff ? n3 = Wo(No, n3, i2, ko) : s2 === pa.AdjustmentType.RedMod ? n3 = Wo(Ao, n3, i2, Fo) : s2 === pa.AdjustmentType.GreenMod ? n3 = Wo(Mo, n3, i2, Fo) : s2 === pa.AdjustmentType.BlueMod ? n3 = Wo(No, n3, i2, Fo) : s2 === pa.AdjustmentType.Shade ? n3 = Oo(n3, i2) : s2 === pa.AdjustmentType.Tint ? n3 = Bo(n3, i2) : s2 === pa.AdjustmentType.ETint ? n3 = Lo(n3, i2) : s2 === pa.AdjustmentType.Gray ? n3 = Ho(n3) : s2 === pa.AdjustmentType.Comp ? n3 = Vo(n3) : s2 === pa.AdjustmentType.Inv ? n3 = $o(n3, i2) : s2 === pa.AdjustmentType.Gamma ? n3 = Go(n3) : s2 === pa.AdjustmentType.InvGamma ? n3 = Uo(n3) : console.warn("unknown adjustmentType: " + s2);
5616
+ s2 === pa.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.Hue ? n3 = Po(xo, n3, i2) : s2 === pa.AdjustmentType.Sat ? n3 = Po(Io, n3, i2) : s2 === pa.AdjustmentType.Lum ? n3 = Po(Ro, n3, i2) : s2 === pa.AdjustmentType.HueOff ? n3 = zo(xo, n3, i2) : s2 === pa.AdjustmentType.SatOff ? n3 = zo(Io, n3, i2) : s2 === pa.AdjustmentType.LumOff ? n3 = zo(Ro, n3, i2) : s2 === pa.AdjustmentType.HueMod ? n3 = jo(xo, n3, i2) : s2 === pa.AdjustmentType.SatMod ? n3 = jo(Io, n3, i2) : s2 === pa.AdjustmentType.LumMod ? n3 = jo(Ro, n3, i2) : s2 === pa.AdjustmentType.Red ? n3 = Wo(Ao, n3, i2, No) : s2 === pa.AdjustmentType.Green ? n3 = Wo(Mo, n3, i2, No) : s2 === pa.AdjustmentType.Blue ? n3 = Wo(To, n3, i2, No) : s2 === pa.AdjustmentType.RedOff ? n3 = Wo(Ao, n3, i2, ko) : s2 === pa.AdjustmentType.GreenOff ? n3 = Wo(Mo, n3, i2, ko) : s2 === pa.AdjustmentType.BlueOff ? n3 = Wo(To, n3, i2, ko) : s2 === pa.AdjustmentType.RedMod ? n3 = Wo(Ao, n3, i2, Fo) : s2 === pa.AdjustmentType.GreenMod ? n3 = Wo(Mo, n3, i2, Fo) : s2 === pa.AdjustmentType.BlueMod ? n3 = Wo(To, n3, i2, Fo) : s2 === pa.AdjustmentType.Shade ? n3 = Oo(n3, i2) : s2 === pa.AdjustmentType.Tint ? n3 = Bo(n3, i2) : s2 === pa.AdjustmentType.ETint ? n3 = Lo(n3, i2) : s2 === pa.AdjustmentType.Gray ? n3 = Ho(n3) : s2 === pa.AdjustmentType.Comp ? n3 = Vo(n3) : s2 === pa.AdjustmentType.Inv ? n3 = $o(n3, i2) : s2 === pa.AdjustmentType.Gamma ? n3 = Go(n3) : s2 === pa.AdjustmentType.InvGamma ? n3 = Uo(n3) : console.warn("unknown adjustmentType: " + s2);
5617
5617
  }
5618
5618
  return { srgb: n3, alpha: r3 };
5619
5619
  })(t5.srgbAlpha, this._private.adjs), n2 = ((t6, e3 = 255) => {
@@ -5626,7 +5626,7 @@ class Na {
5626
5626
  this._private.adjusted = e2, this._private.parsedVal = t5, this._private.resolved = new Yo.RGBA(n2[0], n2[1], n2[2], r2);
5627
5627
  }
5628
5628
  static parse(t5, e2, n2, r2 = null) {
5629
- if (t5 instanceof Na) return t5;
5629
+ if (t5 instanceof Ta) return t5;
5630
5630
  const o2 = t5;
5631
5631
  let s2 = null, i2 = o2?.trim(), a2 = null;
5632
5632
  try {
@@ -5651,7 +5651,7 @@ class Na {
5651
5651
  }
5652
5652
  t6.push({ [r3]: s3 });
5653
5653
  }
5654
- a2 = new Na({ val: s2, adjs: t6 }, e2, n2, r2);
5654
+ a2 = new Ta({ val: s2, adjs: t6 }, e2, n2, r2);
5655
5655
  } catch (t6) {
5656
5656
  throw t6;
5657
5657
  }
@@ -5662,14 +5662,14 @@ class Na {
5662
5662
  const t5 = /* @__PURE__ */ new Map(), e2 = Object.keys(Ma);
5663
5663
  for (let n2 = 0; n2 < e2.length; n2++) {
5664
5664
  const r2 = e2[n2];
5665
- t5.set(r2.toLowerCase(), Na.parse(Ma[r2], null));
5665
+ t5.set(r2.toLowerCase(), Ta.parse(Ma[r2], null));
5666
5666
  }
5667
5667
  Aa = (e3) => t5.get(e3.toLowerCase())?.toRGBA();
5668
5668
  }
5669
5669
  return Aa;
5670
5670
  }
5671
5671
  isEqual(t5) {
5672
- return t5 instanceof Na && this.toString().toLowerCase() === t5.toString().toLowerCase();
5672
+ return t5 instanceof Ta && this.toString().toLowerCase() === t5.toString().toLowerCase();
5673
5673
  }
5674
5674
  getVal() {
5675
5675
  return this._private.val;
@@ -5678,7 +5678,7 @@ class Na {
5678
5678
  return this._private.adjs;
5679
5679
  }
5680
5680
  adjust(t5) {
5681
- return new Na({ val: this._private.val, adjs: this._private.adjs ? this._private.adjs.concat(t5) : t5 }, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
5681
+ return new Ta({ val: this._private.val, adjs: this._private.adjs ? this._private.adjs.concat(t5) : t5 }, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
5682
5682
  }
5683
5683
  getType() {
5684
5684
  return this._resolve(), this._private.parsedVal.type ?? null;
@@ -5702,7 +5702,7 @@ class Na {
5702
5702
  }
5703
5703
  toBlackOrWhite(t5 = false, e2 = 157) {
5704
5704
  const n2 = this.toRGBA(t5), r2 = 0.299 * n2.red + 0.587 * n2.green + 0.114 * n2.blue > e2;
5705
- return new Na(r2 ? "#000000" : "#FFFFFF", this._private.schemeLookup, this._private.indexedLookup, this._private.last);
5705
+ return new Ta(r2 ? "#000000" : "#FFFFFF", this._private.schemeLookup, this._private.indexedLookup, this._private.last);
5706
5706
  }
5707
5707
  get [Symbol.toStringTag]() {
5708
5708
  return this.toString();
@@ -5724,16 +5724,16 @@ class Na {
5724
5724
  return true;
5725
5725
  }
5726
5726
  }
5727
- var Ta, ka;
5728
- (ka = Ta || (Ta = {})).StrokeStyle = { None: "none", DashDot: "dashDot", MediumDashDot: "mediumDashDot", Dotted: "dotted", Hair: "hair", Thin: "thin", Medium: "medium", Thick: "thick", MediumDashDotDot: "mediumDashDotDot", DashDotDot: "dashDotDot", Dashed: "dashed", MediumDashed: "mediumDashed", SlantDashDot: "slantDashDot", Double: "double" }, ka.Edge = { Left: "left", Top: "top", Right: "right", Bottom: "bottom", Horizontal: "horizontal", Vertical: "vertical", DiagonalUp: "diagonalUp", DiagonalDown: "diagonalDown" };
5729
- const Fa = [], Oa = /* @__PURE__ */ new Map(), Da = Object.freeze([[Ta.StrokeStyle.Thin, "Thin", 1, null], [Ta.StrokeStyle.Hair, "Hair", 1, [1, 1]], [Ta.StrokeStyle.Dotted, "Dotted", 1, [2, 2]], [Ta.StrokeStyle.Dashed, "Dashed", 1, [3, 1]], [Ta.StrokeStyle.DashDot, "Dash Dot", 1, [3, 3, 9, 3]], [Ta.StrokeStyle.DashDotDot, "Dash Dot Dot", 1, [3, 3, 3, 3, 9, 3]], [Ta.StrokeStyle.Double, "Double", 3, null], [Ta.StrokeStyle.Medium, "Medium", 2, null], [Ta.StrokeStyle.MediumDashed, "Medium Dashed", 2, [9, 3]], [Ta.StrokeStyle.MediumDashDot, "Medium Dash Dot", 2, [3, 3, 9, 3]], [Ta.StrokeStyle.MediumDashDotDot, "Medium Dash Dot Dot", 2, [3, 3, 3, 3, 9, 3]], [Ta.StrokeStyle.SlantDashDot, "Slant Dash Dot", 2, [5, 1, 11, 1]], [Ta.StrokeStyle.Thick, "Thick", 3, null], [Ta.StrokeStyle.None, "None", 0, null]]);
5727
+ var Na, ka;
5728
+ (ka = Na || (Na = {})).StrokeStyle = { None: "none", DashDot: "dashDot", MediumDashDot: "mediumDashDot", Dotted: "dotted", Hair: "hair", Thin: "thin", Medium: "medium", Thick: "thick", MediumDashDotDot: "mediumDashDotDot", DashDotDot: "dashDotDot", Dashed: "dashed", MediumDashed: "mediumDashed", SlantDashDot: "slantDashDot", Double: "double" }, ka.Edge = { Left: "left", Top: "top", Right: "right", Bottom: "bottom", Horizontal: "horizontal", Vertical: "vertical", DiagonalUp: "diagonalUp", DiagonalDown: "diagonalDown" };
5729
+ const Fa = [], Oa = /* @__PURE__ */ new Map(), Da = Object.freeze([[Na.StrokeStyle.Thin, "Thin", 1, null], [Na.StrokeStyle.Hair, "Hair", 1, [1, 1]], [Na.StrokeStyle.Dotted, "Dotted", 1, [2, 2]], [Na.StrokeStyle.Dashed, "Dashed", 1, [3, 1]], [Na.StrokeStyle.DashDot, "Dash Dot", 1, [3, 3, 9, 3]], [Na.StrokeStyle.DashDotDot, "Dash Dot Dot", 1, [3, 3, 3, 3, 9, 3]], [Na.StrokeStyle.Double, "Double", 3, null], [Na.StrokeStyle.Medium, "Medium", 2, null], [Na.StrokeStyle.MediumDashed, "Medium Dashed", 2, [9, 3]], [Na.StrokeStyle.MediumDashDot, "Medium Dash Dot", 2, [3, 3, 9, 3]], [Na.StrokeStyle.MediumDashDotDot, "Medium Dash Dot Dot", 2, [3, 3, 3, 3, 9, 3]], [Na.StrokeStyle.SlantDashDot, "Slant Dash Dot", 2, [5, 1, 11, 1]], [Na.StrokeStyle.Thick, "Thick", 3, null], [Na.StrokeStyle.None, "None", 0, null]]);
5730
5730
  for (let t5 = 0; t5 < Da.length; t5++) {
5731
5731
  const e2 = Da[t5], n2 = e2[0], r2 = Object.freeze({ style: n2, description: e2[1], width: e2[2], pattern: e2[3] });
5732
5732
  Fa.push(r2), Oa.set(n2, r2);
5733
5733
  }
5734
5734
  ((t5) => {
5735
5735
  t5.isEqualStrokes = (t6, e2) => !(t6 && !e2 || e2 && !t6) && (t6 === e2 || t6.getStyle() === e2.getStyle() && t6.getColor().isEqual(e2.getColor())), t5.oppositeEdge = (e2) => e2 === t5.Edge.Left ? t5.Edge.Right : e2 === t5.Edge.Right ? t5.Edge.Left : e2 === t5.Edge.Top ? t5.Edge.Bottom : e2 === t5.Edge.Bottom ? t5.Edge.Top : e2, t5.BuiltInDefinitionsArray = Fa, t5.BuiltInDefinitions = Oa;
5736
- })(Ta || (Ta = {}));
5736
+ })(Na || (Na = {}));
5737
5737
  const La = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, Ba = (t5) => !(!t5.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !t5.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)), Pa = Object.freeze({ formatValue: hs, isFractionFormat: Ba, adjustDecimalPlaces: (t5, e2) => {
5738
5738
  if (!t5) return "";
5739
5739
  const n2 = (t6, e3) => {
@@ -5773,11 +5773,11 @@ Va.forEach(function(t5, e2, n2) {
5773
5773
  }), Ga.sort(function(t5, e2) {
5774
5774
  return t5.primary - e2.primary;
5775
5775
  });
5776
- const Ja = Va.get(os.General.toLowerCase());
5777
- class qa {
5776
+ const qa = Va.get(os.General.toLowerCase());
5777
+ class Ja {
5778
5778
  lookupStyle(t5) {
5779
- if (!t5) return Ja;
5780
- if ("number" == typeof t5 && (t5 = ja(t5)), !t5.toLowerCase) return console.warn("Invalid numberFormat", t5), Ja;
5779
+ if (!t5) return qa;
5780
+ if ("number" == typeof t5 && (t5 = ja(t5)), !t5.toLowerCase) return console.warn("Invalid numberFormat", t5), qa;
5781
5781
  t5 = t5.toLowerCase();
5782
5782
  let e2 = Va.get(t5);
5783
5783
  if (e2) return e2;
@@ -5794,13 +5794,13 @@ class qa {
5794
5794
  }
5795
5795
  }
5796
5796
  var Ka, Xa, Ya, Qa;
5797
- (Xa = Ka || (Ka = {})).Type = os, Xa.Parser = Pa, Xa.Styles = new qa(), Xa.ParseRunType = La, (Qa = Ya || (Ya = {})).BuiltInName = { Normal: "Normal", RowLevel: "RowLevel_#", ColLevel: "ColLevel_#", Comma: "Comma", Currency: "Currency", Percent: "Percent", Comma0: "Comma [0]", Currency0: "Currency [0]", Hyperlink: "Hyperlink", FollowedHyperlink: "Followed Hyperlink", Note: "Note", WarningText: "Warning Text", Unknown12: "??-12", Unknown13: "??-13", Unknown14: "??-14", Title: "Title", Heading1: "Heading 1", Heading2: "Heading 2", Heading3: "Heading 3", Heading4: "Heading 4", Input: "Input", Output: "Output", Calculation: "Calculation", CheckCell: "Check Cell", LinkedCell: "Linked Cell", Total: "Total", Good: "Good", Bad: "Bad", Neutral: "Neutral", Accent1: "Accent1", Accent1_20: "20% - Accent1", Accent1_40: "40% - Accent1", Accent1_60: "60% - Accent1", Accent2: "Accent2", Accent2_20: "20% - Accent2", Accent2_40: "40% - Accent2", Accent2_60: "60% - Accent2", Accent3: "Accent3", Accent3_20: "20% - Accent3", Accent3_40: "40% - Accent3", Accent3_60: "60% - Accent3", Accent4: "Accent4", Accent4_20: "20% - Accent4", Accent4_40: "40% - Accent4", Accent4_60: "60% - Accent4", Accent5: "Accent5", Accent5_20: "20% - Accent5", Accent5_40: "40% - Accent5", Accent5_60: "60% - Accent5", Accent6: "Accent6", Accent6_20: "20% - Accent6", Accent6_40: "40% - Accent6", Accent6_60: "60% - Accent6", ExplanatoryText: "Explanatory Text" }, Qa.IconSet = { Arrows3: "3Arrows", ArrowsGray3: "3ArrowsGray", Flags3: "3Flags", Signs3: "3Signs", Symbols3: "3Symbols", Symbols3_2: "3Symbols2", TrafficLights3: "3TrafficLights1", TrafficLights3_2: "3TrafficLights2", Arrows4: "4Arrows", ArrowsGray4: "4ArrowsGray", Rating4: "4Rating", RedToBlack4: "4RedToBlack", TrafficLights4: "4TrafficLights", Arrows5: "5Arrows", ArrowsGray5: "5ArrowsGray", Quarters5: "5Quarters", Rating5: "5Rating" };
5797
+ (Xa = Ka || (Ka = {})).Type = os, Xa.Parser = Pa, Xa.Styles = new Ja(), Xa.ParseRunType = La, (Qa = Ya || (Ya = {})).BuiltInName = { Normal: "Normal", RowLevel: "RowLevel_#", ColLevel: "ColLevel_#", Comma: "Comma", Currency: "Currency", Percent: "Percent", Comma0: "Comma [0]", Currency0: "Currency [0]", Hyperlink: "Hyperlink", FollowedHyperlink: "Followed Hyperlink", Note: "Note", WarningText: "Warning Text", Unknown12: "??-12", Unknown13: "??-13", Unknown14: "??-14", Title: "Title", Heading1: "Heading 1", Heading2: "Heading 2", Heading3: "Heading 3", Heading4: "Heading 4", Input: "Input", Output: "Output", Calculation: "Calculation", CheckCell: "Check Cell", LinkedCell: "Linked Cell", Total: "Total", Good: "Good", Bad: "Bad", Neutral: "Neutral", Accent1: "Accent1", Accent1_20: "20% - Accent1", Accent1_40: "40% - Accent1", Accent1_60: "60% - Accent1", Accent2: "Accent2", Accent2_20: "20% - Accent2", Accent2_40: "40% - Accent2", Accent2_60: "60% - Accent2", Accent3: "Accent3", Accent3_20: "20% - Accent3", Accent3_40: "40% - Accent3", Accent3_60: "60% - Accent3", Accent4: "Accent4", Accent4_20: "20% - Accent4", Accent4_40: "40% - Accent4", Accent4_60: "60% - Accent4", Accent5: "Accent5", Accent5_20: "20% - Accent5", Accent5_40: "40% - Accent5", Accent5_60: "60% - Accent5", Accent6: "Accent6", Accent6_20: "20% - Accent6", Accent6_40: "40% - Accent6", Accent6_60: "60% - Accent6", ExplanatoryText: "Explanatory Text" }, Qa.IconSet = { Arrows3: "3Arrows", ArrowsGray3: "3ArrowsGray", Flags3: "3Flags", Signs3: "3Signs", Symbols3: "3Symbols", Symbols3_2: "3Symbols2", TrafficLights3: "3TrafficLights1", TrafficLights3_2: "3TrafficLights2", Arrows4: "4Arrows", ArrowsGray4: "4ArrowsGray", Rating4: "4Rating", RedToBlack4: "4RedToBlack", TrafficLights4: "4TrafficLights", Arrows5: "5Arrows", ArrowsGray5: "5ArrowsGray", Quarters5: "5Quarters", Rating5: "5Rating" };
5798
5798
  const Za = (t5, e2, n2, r2, o2) => {
5799
5799
  const s2 = JSON.parse(JSON.stringify(t5.definition));
5800
5800
  s2.adjs || (s2.adjs = []);
5801
5801
  let i2 = "", a2 = 0, l2 = 0;
5802
5802
  e2 > 0 ? (l2 = e2, a2 = 100 - e2, i2 = `Lighter ${e2}%`) : e2 < 0 && (a2 = 100 + e2, i2 = `Darker ${-e2}%`), a2 && s2.adjs.push({ [pa.AdjustmentType.LumMod]: a2 }), l2 && s2.adjs.push({ [pa.AdjustmentType.LumOff]: l2 });
5803
- const c2 = new Na({ val: s2.val, adjs: s2.adjs }, n2), h2 = c2.toString();
5803
+ const c2 = new Ta({ val: s2.val, adjs: s2.adjs }, n2), h2 = c2.toString();
5804
5804
  r2?.set(h2, c2);
5805
5805
  const u2 = c2.toRGBA().toString();
5806
5806
  return o2?.set(u2, c2), { description: t5.description + ", " + i2, definition: s2 };
@@ -5812,7 +5812,7 @@ const Za = (t5, e2, n2, r2, o2) => {
5812
5812
  const a2 = (o3) => {
5813
5813
  for (let a3 = 0; a3 < o3.length; a3++) i2.push(Za(t5[s2], o3[a3], e2, n2, r2));
5814
5814
  };
5815
- let l2 = new Na({ val: t5[s2].definition.val, adjs: t5[s2].definition.adjs }, e2).toHSLA().lum;
5815
+ let l2 = new Ta({ val: t5[s2].definition.val, adjs: t5[s2].definition.adjs }, e2).toHSLA().lum;
5816
5816
  a2(0 === l2 ? [50, 35, 25, 15, 5] : 100 === l2 ? [-5, -15, -25, -35, -50] : l2 <= 20 ? [90, 75, 50, 25, 10] : l2 >= 80 ? [-10, -25, -50, -75, -90] : [80, 60, 40, -25, -50]);
5817
5817
  }
5818
5818
  return o2;
@@ -5827,7 +5827,7 @@ const rl = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
5827
5827
  for (let t6 = 0; t6 < hl.length; t6++) {
5828
5828
  const e3 = hl[t6], n3 = r2[t6 + 1];
5829
5829
  if (!n3) continue;
5830
- const o3 = Na.parse(n3);
5830
+ const o3 = Ta.parse(n3);
5831
5831
  n3 && (s2[e3] = o3.toString());
5832
5832
  }
5833
5833
  }
@@ -5845,7 +5845,7 @@ const Sl = new class {
5845
5845
  constructor() {
5846
5846
  this._colors = {};
5847
5847
  for (let t5 = 0; t5 < hl.length; t5++) {
5848
- const e2 = hl[t5], n2 = Na.parse(fl[e2]);
5848
+ const e2 = hl[t5], n2 = Ta.parse(fl[e2]);
5849
5849
  this._colors[e2] = n2;
5850
5850
  }
5851
5851
  }
@@ -5901,7 +5901,7 @@ class wl {
5901
5901
  const e2 = Object.keys(t5);
5902
5902
  if (0 !== e2.length) for (let n2 = 0; n2 < e2.length; n2++) {
5903
5903
  const r2 = e2[n2];
5904
- this._overrides[r2] = "name" === r2 ? t5[r2] : Na.parse(t5[r2]);
5904
+ this._overrides[r2] = "name" === r2 ? t5[r2] : Ta.parse(t5[r2]);
5905
5905
  }
5906
5906
  }
5907
5907
  _value(t5, e2) {
@@ -5955,7 +5955,7 @@ const yl = new class {
5955
5955
  constructor() {
5956
5956
  this._colors = {};
5957
5957
  for (let t5 = 0; t5 < hl.length; t5++) {
5958
- const e2 = hl[t5], n2 = Na.parse(fl[e2]);
5958
+ const e2 = hl[t5], n2 = Ta.parse(fl[e2]);
5959
5959
  this._colors[e2] = n2;
5960
5960
  }
5961
5961
  }
@@ -6033,7 +6033,7 @@ class bl {
6033
6033
  const r3 = i2.getColorScheme();
6034
6034
  let o3 = r3[n3].bind(r3)();
6035
6035
  o3 || (o3 = fl[al[t6] ?? t6]);
6036
- return e3 = new Na(o3).toRGBA(), i2._cacheColors[t6] = e3, e3;
6036
+ return e3 = new Ta(o3).toRGBA(), i2._cacheColors[t6] = e3, e3;
6037
6037
  };
6038
6038
  }
6039
6039
  get builtInID() {
@@ -6055,7 +6055,7 @@ class bl {
6055
6055
  return this._schemeLookup;
6056
6056
  }
6057
6057
  parseColor(t5) {
6058
- return Na.parse(t5, this._schemeLookup);
6058
+ return Ta.parse(t5, this._schemeLookup);
6059
6059
  }
6060
6060
  toJSON() {
6061
6061
  const t5 = { name: this.getName() }, e2 = this._colors.toJSON();
@@ -6240,7 +6240,7 @@ class Ml {
6240
6240
  this._transactions.remove(this), this._transactionsRemoveListener();
6241
6241
  }
6242
6242
  }
6243
- class Nl {
6243
+ class Tl {
6244
6244
  constructor(t5) {
6245
6245
  this._emitter = null, this._closed = false, this._options = { ...t5 };
6246
6246
  const e2 = this;
@@ -6348,7 +6348,7 @@ class Nl {
6348
6348
  this._closed || (this._emitter.notify("onClose"), this._closed = true, this._transactionsRemoveListener?.());
6349
6349
  }
6350
6350
  }
6351
- class Tl extends Nl {
6351
+ class Nl extends Tl {
6352
6352
  _fromJSON(t5) {
6353
6353
  const e2 = {};
6354
6354
  if (e2.name = t5?.name ?? null, !e2.name) throw new Error(Al);
@@ -6618,10 +6618,10 @@ class Wl {
6618
6618
  }
6619
6619
  }
6620
6620
  const Hl = (t5) => [{ min: 0, max: t5.length - 1, value: { s: 0, e: t5.length - 1, v: t5 } }], Vl = new Wl(), $l = Object.seal({ done: false, value: [-1, null] }), Gl = Object.freeze({ reverse: false, bounds: { min: 0, max: Number.MAX_SAFE_INTEGER }, skipRuns: null, reuseResult: $l }), Ul = 4;
6621
- var Jl;
6621
+ var ql;
6622
6622
  ((t5) => {
6623
6623
  const e2 = (t6, e3) => {
6624
- const n3 = t6 !== T.Row;
6624
+ const n3 = t6 !== N.Row;
6625
6625
  return e3 ? (t7, e4) => {
6626
6626
  if (t7 === e4) return 0;
6627
6627
  const r2 = t7[0], o2 = t7[1], s2 = e4[1];
@@ -6652,8 +6652,8 @@ var Jl;
6652
6652
  class n2 {
6653
6653
  constructor(t6, n3) {
6654
6654
  if (this._isColumn = true, this._isByCell = false, this._isReverse = false, this._cursor = null, this._reuse = null, this._localReuse = { done: false, value: [null, null] }, this._eventsMajor = null, this._eventMajorIndex = 0, this._majorStart = 0, this._majorEnd = 0, this._eventMinorPeek = null, this._minorStart = 0, this._minorEnd = 0, !t6 || 0 === t6.length) return;
6655
- let r2 = T.Column, o2 = false, s2 = true, i2 = false;
6656
- n3 && (r2 = n3.orientation ?? T.Column, this._isColumn = s2 = r2 !== T.Row, this._isReverse = o2 = n3.reverse ?? false, this._isByCell = i2 = n3.byCell ?? false);
6655
+ let r2 = N.Column, o2 = false, s2 = true, i2 = false;
6656
+ n3 && (r2 = n3.orientation ?? N.Column, this._isColumn = s2 = r2 !== N.Row, this._isReverse = o2 = n3.reverse ?? false, this._isByCell = i2 = n3.byCell ?? false);
6657
6657
  const a2 = t6.length, l2 = new Array(2 * a2);
6658
6658
  for (let e3 = 0; e3 < a2; e3++) {
6659
6659
  const n4 = t6[e3], r3 = [null, null];
@@ -6661,7 +6661,7 @@ var Jl;
6661
6661
  }
6662
6662
  l2.sort(e2(r2, o2)), this._eventsMajor = l2;
6663
6663
  const c2 = l2[0][1];
6664
- this._majorStart = o2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, this._majorEnd = s2 ? o2 ? c2.colEnd + 1 : c2.colStart - 1 : o2 ? c2.rowEnd + 1 : c2.rowStart - 1, this._eventsMinor = new Ze(null, e2(s2 ? T.Row : T.Column, o2));
6664
+ this._majorStart = o2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, this._majorEnd = s2 ? o2 ? c2.colEnd + 1 : c2.colStart - 1 : o2 ? c2.rowEnd + 1 : c2.rowStart - 1, this._eventsMinor = new Ze(null, e2(s2 ? N.Row : N.Column, o2));
6665
6665
  const h2 = new Array(16);
6666
6666
  h2.length = 0, this._cursor = { cell: null, range: { colStart: c2.colStart, rowStart: c2.rowStart, colEnd: c2.colEnd, rowEnd: c2.rowEnd }, overlaps: h2 }, i2 && (this._cursor.cell = { colIndex: o2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER, rowIndex: o2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER });
6667
6667
  const u2 = n3?.reuseIterator;
@@ -6671,7 +6671,7 @@ var Jl;
6671
6671
  const e3 = this._isColumn, n3 = this._isReverse;
6672
6672
  if (t6) {
6673
6673
  if (!this._isByCell) throw new Error("nextCell is only supported when byCell is true");
6674
- const r3 = Y.createCellComparator(e3 ? T.Column : T.Row, n3);
6674
+ const r3 = Y.createCellComparator(e3 ? N.Column : N.Row, n3);
6675
6675
  let o3;
6676
6676
  do {
6677
6677
  const s3 = this._cursor, i3 = s3.cell;
@@ -6813,8 +6813,8 @@ var Jl;
6813
6813
  }
6814
6814
  }
6815
6815
  t5.IteratorInstance = n2;
6816
- })(Jl || (Jl = {}));
6817
- const ql = (t5, e2 = v.Right, n2 = null) => {
6816
+ })(ql || (ql = {}));
6817
+ const Jl = (t5, e2 = v.Right, n2 = null) => {
6818
6818
  if (!t5) return t5;
6819
6819
  if (0 === t5.length) return [];
6820
6820
  const r2 = e2 === v.Right, o2 = e2 === v.Left, s2 = e2 === v.Up, i2 = e2 === v.Down;
@@ -7368,7 +7368,7 @@ class Mc {
7368
7368
  }
7369
7369
  visitRanges(t5, e2, n2 = null) {
7370
7370
  let r2 = this.search(t5);
7371
- n2 && (r2 = ql(r2, n2));
7371
+ n2 && (r2 = Jl(r2, n2));
7372
7372
  const o2 = [], s2 = [];
7373
7373
  let i2 = null;
7374
7374
  const a2 = r2.length;
@@ -7408,18 +7408,18 @@ class Mc {
7408
7408
  return this._getReadTree().all(t5);
7409
7409
  }
7410
7410
  shift(t5) {
7411
- const e2 = t5.range, n2 = t5.direction, r2 = t5.cloneIfUpdate ?? false, o2 = t5.coordValidator ?? null, s2 = t5.onShift ?? null, i2 = n2 === v.Left || n2 === v.Right, a2 = i2 ? T.Column : T.Row, l2 = n2 === v.Up || n2 === v.Left ? -1 : 1, c2 = (i2 ? e2.colEnd - e2.colStart + 1 : e2.rowEnd - e2.rowStart + 1) * l2, h2 = [], u2 = [];
7411
+ const e2 = t5.range, n2 = t5.direction, r2 = t5.cloneIfUpdate ?? false, o2 = t5.coordValidator ?? null, s2 = t5.onShift ?? null, i2 = n2 === v.Left || n2 === v.Right, a2 = i2 ? N.Column : N.Row, l2 = n2 === v.Up || n2 === v.Left ? -1 : 1, c2 = (i2 ? e2.colEnd - e2.colStart + 1 : e2.rowEnd - e2.rowStart + 1) * l2, h2 = [], u2 = [];
7412
7412
  let d2 = null;
7413
7413
  const g2 = this.getBoundingCoords();
7414
7414
  if (!g2) return this;
7415
- const m2 = n2 === v.Up || n2 === v.Left ? v.Right : v.Left, f2 = /* @__PURE__ */ new Map(), p2 = /* @__PURE__ */ new Map(), _2 = this._options?.updateEntryOptions, S2 = _2?.isMergeOnShift ?? false, w2 = _2?.isSplitOnExpand ?? false, y2 = _2?.isTrailingEdge ?? false, E2 = n2 === v.Left || n2 === v.Up, b2 = _2?.getSplit ?? Bc, C2 = _2?.getShifted, x2 = _2?.onShifted, I2 = _2?.onRemoved, R2 = _2?.onMerged, A2 = _2?.onUpdated, M2 = x2 ? [] : null, N2 = I2 ? [] : null, F2 = A2 ? [] : null;
7415
+ const m2 = n2 === v.Up || n2 === v.Left ? v.Right : v.Left, f2 = /* @__PURE__ */ new Map(), p2 = /* @__PURE__ */ new Map(), _2 = this._options?.updateEntryOptions, S2 = _2?.isMergeOnShift ?? false, w2 = _2?.isSplitOnExpand ?? false, y2 = _2?.isTrailingEdge ?? false, E2 = n2 === v.Left || n2 === v.Up, b2 = _2?.getSplit ?? Bc, C2 = _2?.getShifted, x2 = _2?.onShifted, I2 = _2?.onRemoved, R2 = _2?.onMerged, A2 = _2?.onUpdated, M2 = x2 ? [] : null, T2 = I2 ? [] : null, F2 = A2 ? [] : null;
7416
7416
  this.visitRanges({ colStart: e2.colStart - (i2 ? 1 : 0), rowStart: e2.rowStart - (i2 ? 0 : 1), colEnd: i2 ? g2.colEnd : e2.colEnd, rowEnd: i2 ? e2.rowEnd : g2.rowEnd }, (t6) => {
7417
7417
  if ((i2 ? t6.colEnd < e2.colStart : t6.rowEnd < e2.rowStart) && !y2) return;
7418
7418
  const r3 = zc(e2, t6, i2 ? k.Column : k.Row), l3 = t6.group;
7419
7419
  if (E2 && !l3 && e2.colStart <= t6.colStart && e2.rowStart <= t6.rowStart && e2.colEnd >= t6.colEnd && e2.rowEnd >= t6.rowEnd) {
7420
7420
  const n3 = jc(t6, null, { after: null, before: t6, intersect: e2, isSplit: r3, orientation: a2, amount: c2 }, C2, b2, s2, false);
7421
7421
  if (void 0 === n3) return;
7422
- if (null === n3) return d2 = Y.unionRanges(d2, t6), N2 && N2.push(t6), void h2.push(t6);
7422
+ if (null === n3) return d2 = Y.unionRanges(d2, t6), T2 && T2.push(t6), void h2.push(t6);
7423
7423
  }
7424
7424
  let g3 = { ...t6 };
7425
7425
  n2 === v.Right ? e2.colStart <= g3.colStart ? (g3.colStart += c2, g3.colEnd += c2) : g3.colEnd += c2 : n2 === v.Left ? e2.colStart < g3.colStart ? (g3.colStart = Math.max(g3.colStart + c2, e2.colStart), g3.colEnd = Math.max(g3.colEnd + c2, g3.colStart - 1)) : g3.colEnd += Math.max(c2, e2.colStart - g3.colEnd - 1) : n2 === v.Down ? e2.rowStart <= g3.rowStart ? (g3.rowStart += c2, g3.rowEnd += c2) : g3.rowEnd += c2 : n2 === v.Up && (e2.rowStart < g3.rowStart ? (g3.rowStart = Math.max(g3.rowStart + c2, e2.rowStart), g3.rowEnd = Math.max(g3.rowEnd + c2, e2.rowStart - 1)) : g3.rowEnd += Math.max(c2, e2.rowStart - g3.rowEnd - 1)), (g3.colEnd < g3.colStart || g3.rowEnd < g3.rowStart) && (g3 = null);
@@ -7445,11 +7445,11 @@ class Mc {
7445
7445
  if (S2 && g2 && d2) {
7446
7446
  let t6 = true;
7447
7447
  if (c2 > 0 && (t6 = i2 ? e2.rowStart > g2.rowStart || e2.rowEnd < g2.rowEnd : e2.colStart > g2.colStart || e2.colEnd < g2.colEnd), t6) {
7448
- const t7 = Nc(d2, Y.unionRanges(g2, d2), i2 ? 0 : 1, i2 ? 1 : 0);
7448
+ const t7 = Tc(d2, Y.unionRanges(g2, d2), i2 ? 0 : 1, i2 ? 1 : 0);
7449
7449
  R2 && (D2 = O2._mergeNodes(t7, false));
7450
7450
  }
7451
7451
  }
7452
- return A2 && F2.length > 0 && A2(F2), x2 && M2.length > 0 && x2(M2), R2 && D2.length > 0 && R2(D2), I2 && N2.length > 0 && I2(N2), O2;
7452
+ return A2 && F2.length > 0 && A2(F2), x2 && M2.length > 0 && x2(M2), R2 && D2.length > 0 && R2(D2), I2 && T2.length > 0 && I2(T2), O2;
7453
7453
  }
7454
7454
  insertNonOverlapping(t5, e2) {
7455
7455
  const n2 = e2?.onIntersect ?? ((t6, e3) => ({ ...t6, value: e3.value })), r2 = this.search(t5), o2 = /* @__PURE__ */ new Map(), s2 = /* @__PURE__ */ new Map(), i2 = this._options?.updateEntryOptions, a2 = i2?.onUpdated, l2 = i2?.onRemoved, c2 = i2?.onMerged, h2 = i2?.getSplit, u2 = i2?.getIntersect, d2 = i2?.getUpdate;
@@ -7466,7 +7466,7 @@ class Mc {
7466
7466
  }
7467
7467
  return e3 ? [e3] : bt.EmptyArray;
7468
7468
  }
7469
- const s3 = n3?.getSplit ?? Tc, i3 = (t7, e4, n4 = true) => {
7469
+ const s3 = n3?.getSplit ?? Nc, i3 = (t7, e4, n4 = true) => {
7470
7470
  const r4 = e4.search(t7), o4 = r4.length;
7471
7471
  for (let a4 = 0; a4 < o4; a4++) {
7472
7472
  const o5 = r4[a4];
@@ -7554,11 +7554,11 @@ class Mc {
7554
7554
  p2 = t6;
7555
7555
  }
7556
7556
  if (this._updateNodes(p2, r2, e2?.onUpdates), o2.size > 0 && this._updateGroupedEntries(o2, s2), _2 && !e2?.noMerge) {
7557
- const n3 = Nc(t5, Y.unionRanges(_2, t5)), r3 = this.search(n3);
7557
+ const n3 = Tc(t5, Y.unionRanges(_2, t5)), r3 = this.search(n3);
7558
7558
  if (r3.length > 1) {
7559
7559
  const t6 = i2?.getMerged ?? Pc;
7560
7560
  let n4 = r3;
7561
- n4 = Dc(n4, T.Column, 1, t6), n4 = Dc(n4, T.Row, 1, t6), r3.length !== n4.length && (c2 && n4.length > 0 && (m2 = n4), this._updateNodes(n4, r3, e2?.onUpdates));
7561
+ n4 = Dc(n4, N.Column, 1, t6), n4 = Dc(n4, N.Row, 1, t6), r3.length !== n4.length && (c2 && n4.length > 0 && (m2 = n4), this._updateNodes(n4, r3, e2?.onUpdates));
7562
7562
  }
7563
7563
  }
7564
7564
  return g2 && a2(g2), m2 && c2(m2), f2 && l2(f2), this;
@@ -7624,7 +7624,7 @@ class Mc {
7624
7624
  if (n2.length > 1) {
7625
7625
  const t6 = this._options?.updateEntryOptions.getMerged ?? Pc;
7626
7626
  let e3 = n2;
7627
- e3.length > 1 && (e3 = Dc(e3, T.Column, 1, t6)), e3.length > 1 && (e3 = Dc(e3, T.Row, 1, t6)), n2.length !== e3.length && (r2 = e3, this._updateNodes(e3, n2));
7627
+ e3.length > 1 && (e3 = Dc(e3, N.Column, 1, t6)), e3.length > 1 && (e3 = Dc(e3, N.Row, 1, t6)), n2.length !== e3.length && (r2 = e3, this._updateNodes(e3, n2));
7628
7628
  }
7629
7629
  return r2;
7630
7630
  }
@@ -7664,8 +7664,8 @@ class Mc {
7664
7664
  return this._getWritableTree().fromJSON(t5), this;
7665
7665
  }
7666
7666
  }
7667
- const Nc = (t5, e2 = t5, n2 = 1, r2 = 1) => ({ ...t5, colStart: Math.max(t5.colStart - n2, e2.colStart), rowStart: Math.max(t5.rowStart - r2, e2.rowStart), colEnd: Math.min(t5.colEnd + n2, e2.colEnd), rowEnd: Math.min(t5.rowEnd + r2, e2.rowEnd) });
7668
- function Tc(t5, e2, n2, r2) {
7667
+ const Tc = (t5, e2 = t5, n2 = 1, r2 = 1) => ({ ...t5, colStart: Math.max(t5.colStart - n2, e2.colStart), rowStart: Math.max(t5.rowStart - r2, e2.rowStart), colEnd: Math.min(t5.colEnd + n2, e2.colEnd), rowEnd: Math.min(t5.rowEnd + r2, e2.rowEnd) });
7668
+ function Nc(t5, e2, n2, r2) {
7669
7669
  return [{ ...e2[0], value: t5.value }, { ...e2[0], value: t5.value }];
7670
7670
  }
7671
7671
  function kc(t5, e2) {
@@ -7684,7 +7684,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7684
7684
  i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
7685
7685
  const l2 = e3.rowStart - t6.rowStart;
7686
7686
  Hc[0] = t6, Hc[1] = e3;
7687
- const c2 = n2(a2, Hc, T.Row, l2);
7687
+ const c2 = n2(a2, Hc, N.Row, l2);
7688
7688
  void 0 !== c2 && (s2.push(c2[0]), a2 = c2[1]);
7689
7689
  }
7690
7690
  if (a2.rowEnd > o2.rowEnd) {
@@ -7694,7 +7694,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7694
7694
  i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
7695
7695
  const l2 = e3.rowStart - t6.rowStart;
7696
7696
  Hc[0] = t6, Hc[1] = e3;
7697
- const c2 = n2(a2, Hc, T.Row, l2);
7697
+ const c2 = n2(a2, Hc, N.Row, l2);
7698
7698
  void 0 !== c2 && (s2.push(c2[1]), a2 = c2[0]);
7699
7699
  }
7700
7700
  if (a2.colStart < o2.colStart) {
@@ -7704,7 +7704,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7704
7704
  i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
7705
7705
  const l2 = e3.colStart - t6.colStart;
7706
7706
  Hc[0] = t6, Hc[1] = e3;
7707
- const c2 = n2(a2, Hc, T.Column, l2);
7707
+ const c2 = n2(a2, Hc, N.Column, l2);
7708
7708
  void 0 !== c2 && (s2.push(c2[0]), a2 = c2[1]);
7709
7709
  }
7710
7710
  if (a2.colEnd > o2.colEnd) {
@@ -7714,7 +7714,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7714
7714
  i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
7715
7715
  const l2 = e3.colStart - t6.colStart;
7716
7716
  Hc[0] = t6, Hc[1] = e3;
7717
- const c2 = n2(a2, Hc, T.Column, l2);
7717
+ const c2 = n2(a2, Hc, N.Column, l2);
7718
7718
  void 0 !== c2 && (s2.push(c2[1]), a2 = c2[0]);
7719
7719
  }
7720
7720
  return a2 === t5 && (a2 = { ...t5 }), s2.push(a2), s2;
@@ -7722,12 +7722,12 @@ function Fc(t5, e2, n2 = null, r2 = true) {
7722
7722
  function Oc(t5) {
7723
7723
  return null === t5.value ? null : t5;
7724
7724
  }
7725
- function Dc(t5, e2 = T.Column, n2 = 2, r2, o2) {
7725
+ function Dc(t5, e2 = N.Column, n2 = 2, r2, o2) {
7726
7726
  let s2 = [...t5];
7727
7727
  if (n2 <= 0 || t5.length <= 1) return s2;
7728
- let i2 = e2 === T.Column, a2 = 0, l2 = false;
7728
+ let i2 = e2 === N.Column, a2 = 0, l2 = false;
7729
7729
  do {
7730
- const t6 = s2.sort(Y.createRangeComparator(i2 ? T.Row : T.Column));
7730
+ const t6 = s2.sort(Y.createRangeComparator(i2 ? N.Row : N.Column));
7731
7731
  s2 = [], l2 = false, s2.push(t6[0]);
7732
7732
  for (let n3 = 1; n3 < t6.length; n3++) {
7733
7733
  const a3 = t6[n3], c2 = s2[s2.length - 1];
@@ -7749,10 +7749,10 @@ function Dc(t5, e2 = T.Column, n2 = 2, r2, o2) {
7749
7749
  } while (a2 < n2 && l2 && s2.length > 1);
7750
7750
  return s2;
7751
7751
  }
7752
- const Lc = (t5, e2 = 2, n2 = T.Row, r2, o2, s2) => {
7752
+ const Lc = (t5, e2 = 2, n2 = N.Row, r2, o2, s2) => {
7753
7753
  if (t5.length <= 1) return [...t5];
7754
7754
  let i2 = [];
7755
- const a2 = n2 === T.Column, l2 = new Jl.IteratorInstance(t5, { orientation: a2 ? T.Row : T.Column });
7755
+ const a2 = n2 === N.Column, l2 = new ql.IteratorInstance(t5, { orientation: a2 ? N.Row : N.Column });
7756
7756
  let c2 = l2.next();
7757
7757
  for (; !c2.done; ) {
7758
7758
  const t6 = c2.value;
@@ -7771,7 +7771,7 @@ const Lc = (t5, e2 = 2, n2 = T.Row, r2, o2, s2) => {
7771
7771
  }
7772
7772
  i2.push(n3);
7773
7773
  }
7774
- return e2 > 1 && (i2 = Dc(i2, a2 ? T.Row : T.Column, e2, r2, s2)), i2;
7774
+ return e2 > 1 && (i2 = Dc(i2, a2 ? N.Row : N.Column, e2, r2, s2)), i2;
7775
7775
  };
7776
7776
  function Bc(t5, e2, n2, r2) {
7777
7777
  const o2 = t5.value;
@@ -7797,7 +7797,7 @@ const zc = (t5, e2, n2 = k.Both) => {
7797
7797
  return n2 === k.Both && (o2 = s2 = true), !(!o2 || !r2(true)) || !(!s2 || !r2(false));
7798
7798
  };
7799
7799
  function jc(t5, e2, n2, r2, o2, s2, i2) {
7800
- const a2 = n2.orientation === T.Column, l2 = n2.intersect, c2 = (e3, c3) => {
7800
+ const a2 = n2.orientation === N.Column, l2 = n2.intersect, c2 = (e3, c3) => {
7801
7801
  let h2 = e3.value, u2 = null, d2 = c3.after;
7802
7802
  if (i2) {
7803
7803
  let n3 = null, r3 = 0, s3 = 0;
@@ -7863,7 +7863,7 @@ const Wc = (t5, e2, n2, r2, o2, s2, i2) => {
7863
7863
  const x2 = a2 <= C2 * _3, I2 = l2 <= v2 * y2;
7864
7864
  if (x2 || I2) {
7865
7865
  const t7 = o3?.canTile?.({ colStart: E2, rowStart: b2, colEnd: Math.min(E2 + (x2 ? a2 : _3) - 1, S2), rowEnd: Math.min(b2 + (I2 ? l2 : y2) - 1, w2) }, r2);
7866
- !x2 || true !== t7 && t7 !== T.Column || (_3 = a2, C2 = 1), !I2 || true !== t7 && t7 !== T.Row || (y2 = l2, v2 = 1);
7866
+ !x2 || true !== t7 && t7 !== N.Column || (_3 = a2, C2 = 1), !I2 || true !== t7 && t7 !== N.Row || (y2 = l2, v2 = 1);
7867
7867
  }
7868
7868
  for (let t7 = 0; t7 < C2; t7++) {
7869
7869
  const e3 = E2 + t7 * d2;
@@ -7881,11 +7881,11 @@ const Wc = (t5, e2, n2, r2, o2, s2, i2) => {
7881
7881
  }, Gc = (t5, e2, n2) => {
7882
7882
  const r2 = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 };
7883
7883
  return r2.colStart = e2 ? t5.majorStart : t5.minorStart, r2.rowStart = e2 ? t5.minorStart : t5.majorStart, r2.colEnd = e2 ? t5.majorEnd : t5.minorEnd, r2.rowEnd = e2 ? t5.minorEnd : t5.majorEnd, r2;
7884
- }, Uc = { majorStart: 0, majorEnd: 0, minorStart: 0, minorEnd: 0 }, Jc = (t5, e2) => t5[0] - e2[0];
7885
- class qc {
7884
+ }, Uc = { majorStart: 0, majorEnd: 0, minorStart: 0, minorEnd: 0 }, qc = (t5, e2) => t5[0] - e2[0];
7885
+ class Jc {
7886
7886
  constructor(t5, e2) {
7887
7887
  this._isColumn = true, this._isReverse = false, this._skipMajors = false, this._majorMin = Number.MAX_SAFE_INTEGER, this._majorMax = Number.MIN_SAFE_INTEGER, this._minorMin = Number.MAX_SAFE_INTEGER, this._minorMax = Number.MIN_SAFE_INTEGER, this._majorIndex = Number.MIN_SAFE_INTEGER, this._minorIndex = Number.MIN_SAFE_INTEGER, this._delegateMajorIndex = Number.MIN_SAFE_INTEGER, this._delegateMinorIndex = Number.MIN_SAFE_INTEGER, this._delegate = t5;
7888
- const n2 = (e2.orientation ?? T.Column) === T.Column;
7888
+ const n2 = (e2.orientation ?? N.Column) === N.Column;
7889
7889
  this._isColumn = n2, this._isReverse = e2.reverse ?? false, this._skipMajors = e2.skipMajors ?? false;
7890
7890
  const r2 = e2.bounds, o2 = r2.colStart, s2 = r2.rowStart, i2 = r2.colEnd, a2 = r2.rowEnd;
7891
7891
  this._majorMin = n2 ? o2 : s2, this._majorMax = n2 ? i2 : a2, this._minorMin = n2 ? s2 : o2, this._minorMax = n2 ? a2 : i2, this._processMajorSkip = n2 ? e2.processColumnSkip : e2.processRowSkip, this._processMinorSkip = n2 ? e2.processRowSkip : e2.processColumnSkip;
@@ -7948,7 +7948,7 @@ class Kc {
7948
7948
  this._isColumn = true, this._majorSize = Number.MAX_SAFE_INTEGER, this._minorSize = Number.MAX_SAFE_INTEGER, this._majorMin = Number.MAX_SAFE_INTEGER, this._majorMax = Number.MIN_SAFE_INTEGER, this._minorMin = Number.MAX_SAFE_INTEGER, this._minorMax = Number.MIN_SAFE_INTEGER, this._majorIndex = Number.MAX_SAFE_INTEGER, this._minorIndex = Number.MAX_SAFE_INTEGER, this._minorOffset = 0, this._minorRepeat = 0, this._majorOffset = -1, this._majorRepeat = 1, this._pattern = [];
7949
7949
  const e2 = t5.delegate;
7950
7950
  this._delegate = e2;
7951
- const n2 = (t5.orientation ?? T.Column) === T.Column;
7951
+ const n2 = (t5.orientation ?? N.Column) === N.Column;
7952
7952
  this._isColumn = n2;
7953
7953
  const r2 = t5.dims, o2 = t5.bounds, s2 = o2.colStart, i2 = o2.rowStart, a2 = o2.colEnd, l2 = o2.rowEnd;
7954
7954
  if (this._majorSize = 1 + (n2 ? a2 - s2 : l2 - i2), this._minorSize = 1 + (n2 ? l2 - i2 : a2 - s2), this._majorMin = n2 ? s2 : i2, this._minorMin = n2 ? i2 : s2, this._majorMax = (n2 ? s2 + r2.major : i2 + r2.major) - 1, this._minorMax = (n2 ? i2 + r2.minor : s2 + r2.minor) - 1, this._majorSize > this._majorMax + 1 || this._minorSize > this._minorMax + 1) throw new Error("The dimensions must be larger than the bounds.");
@@ -8018,7 +8018,7 @@ class Kc {
8018
8018
  }
8019
8019
  class Xc {
8020
8020
  constructor(t5, e2, n2) {
8021
- this._comparator = t5?.comparator ?? Y.createCellComparator(t5.orientation ?? T.Column, t5.reverse ?? false), this._iterator1 = e2, this._iterator2 = n2;
8021
+ this._comparator = t5?.comparator ?? Y.createCellComparator(t5.orientation ?? N.Column, t5.reverse ?? false), this._iterator1 = e2, this._iterator2 = n2;
8022
8022
  const r2 = e2.next();
8023
8023
  this._nextResult1 = r2;
8024
8024
  const o2 = n2.next();
@@ -8140,11 +8140,11 @@ const Yc = "Must be an array of arrays.", Qc = (t5, e2, n2) => {
8140
8140
  r2 && n2.push(r2);
8141
8141
  const u2 = t5 ? a2 : l2, d2 = t5 ? l2 : a2;
8142
8142
  r2 = { colStart: u2, rowStart: d2, colEnd: u2, rowEnd: d2, value: c2 }, s2 = a2, i2 = l2, o2 = c2;
8143
- }, done: (e3 = false) => (r2 && (n2.push(r2), r2 = null), e3 ? Dc(n2, t5 ? T.Column : T.Row, 2, eh, nh) : n2) };
8143
+ }, done: (e3 = false) => (r2 && (n2.push(r2), r2 = null), e3 ? Dc(n2, t5 ? N.Column : N.Row, 2, eh, nh) : n2) };
8144
8144
  };
8145
8145
  class oh {
8146
8146
  constructor(t5) {
8147
- this._major = null, this._dataCoords = null, this._count = 0, this._isColumn = true, this._lastMajor = Number.MIN_SAFE_INTEGER, this._lastMinorSpan = null, this._maxCoords = null, this._isShared = false, this._options = { orientation: T.Row, ...t5 }, this._isColumn = (t5?.orientation ?? T.Column) === T.Column, t5?.maxCoords && (this._maxCoords = Object.freeze({ colStart: Math.max(0, t5.maxCoords.colStart ?? 0), rowStart: Math.max(0, t5.maxCoords.rowStart ?? 0), colEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.colEnd ?? Number.MAX_SAFE_INTEGER), rowEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.rowEnd ?? Number.MAX_SAFE_INTEGER) })), this._createRun = t5?.createRun ?? ((t6) => new Wl(t6)), this._optionsMinor = {}, this._major = new Xl({ nodeSize: sh });
8147
+ this._major = null, this._dataCoords = null, this._count = 0, this._isColumn = true, this._lastMajor = Number.MIN_SAFE_INTEGER, this._lastMinorSpan = null, this._maxCoords = null, this._isShared = false, this._options = { orientation: N.Row, ...t5 }, this._isColumn = (t5?.orientation ?? N.Column) === N.Column, t5?.maxCoords && (this._maxCoords = Object.freeze({ colStart: Math.max(0, t5.maxCoords.colStart ?? 0), rowStart: Math.max(0, t5.maxCoords.rowStart ?? 0), colEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.colEnd ?? Number.MAX_SAFE_INTEGER), rowEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.rowEnd ?? Number.MAX_SAFE_INTEGER) })), this._createRun = t5?.createRun ?? ((t6) => new Wl(t6)), this._optionsMinor = {}, this._major = new Xl({ nodeSize: sh });
8148
8148
  }
8149
8149
  getRuns(t5) {
8150
8150
  const e2 = this._isColumn, n2 = this._maxCoords, r2 = this.getCoords();
@@ -8172,7 +8172,7 @@ class oh {
8172
8172
  } };
8173
8173
  }
8174
8174
  getOrientation() {
8175
- return this._isColumn ? T.Column : T.Row;
8175
+ return this._isColumn ? N.Column : N.Row;
8176
8176
  }
8177
8177
  entries(t5) {
8178
8178
  const e2 = this._isColumn;
@@ -8181,7 +8181,7 @@ class oh {
8181
8181
  if (!i2) return zl;
8182
8182
  let a2, l2, c2, h2 = i2.majorStart, u2 = i2.majorEnd, d2 = i2.minorStart, g2 = i2.minorEnd, m2 = false;
8183
8183
  if (t5) {
8184
- t5?.orientation && (n2 = t5?.orientation === T.Column, r2 = e2 === n2);
8184
+ t5?.orientation && (n2 = t5?.orientation === N.Column, r2 = e2 === n2);
8185
8185
  const i3 = t5?.bounds;
8186
8186
  if (i3) {
8187
8187
  const t6 = $c(i3.colStart, i3.rowStart, i3.colEnd, i3.rowEnd, e2, o2, s2);
@@ -8296,7 +8296,7 @@ class oh {
8296
8296
  setValues(t5) {
8297
8297
  if (!t5) throw new jt();
8298
8298
  if (0 === t5.length) return this;
8299
- const e2 = (t5 = t5.sort(Jc))[0][0], n2 = t5[t5.length - 1][0];
8299
+ const e2 = (t5 = t5.sort(qc))[0][0], n2 = t5[t5.length - 1][0];
8300
8300
  let r2 = Number.MIN_SAFE_INTEGER, o2 = Number.MAX_SAFE_INTEGER;
8301
8301
  const s2 = this._isColumn, i2 = this._maxCoords;
8302
8302
  if (i2) {
@@ -8308,7 +8308,7 @@ class oh {
8308
8308
  let a2 = Number.MAX_SAFE_INTEGER, l2 = Number.MIN_SAFE_INTEGER, c2 = 0, h2 = e2 - 1;
8309
8309
  const u2 = [], d2 = (t6, e3, n3) => {
8310
8310
  if (h2 === n3) throw new dn.OutOfOrderError(`Duplicate major Indices: {${n3}}.`);
8311
- h2 = n3, e3 = e3.sort(Jc), t6 = t6.clone();
8311
+ h2 = n3, e3 = e3.sort(qc), t6 = t6.clone();
8312
8312
  let s3 = Number.MIN_SAFE_INTEGER;
8313
8313
  const i3 = e3.length;
8314
8314
  for (let h3 = 0; h3 < i3; h3++) {
@@ -8447,8 +8447,8 @@ class oh {
8447
8447
  o2 || (x2 = Number.MAX_SAFE_INTEGER, I2 = Number.MIN_SAFE_INTEGER);
8448
8448
  let R2 = Number.MAX_SAFE_INTEGER;
8449
8449
  r2 && (R2 = s2 ? r2.colEnd : r2.rowEnd);
8450
- const A2 = /* @__PURE__ */ new Set(), M2 = _2 ? /* @__PURE__ */ new Map() : null, N2 = [], T2 = y2.entries(hh), k2 = { bounds: { min: c2, max: h2 } };
8451
- let F2 = T2.next();
8450
+ const A2 = /* @__PURE__ */ new Set(), M2 = _2 ? /* @__PURE__ */ new Map() : null, T2 = [], N2 = y2.entries(hh), k2 = { bounds: { min: c2, max: h2 } };
8451
+ let F2 = N2.next();
8452
8452
  for (; !F2.done; ) {
8453
8453
  const t6 = F2.value, e3 = t6[0], n3 = t6[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
8454
8454
  if (_2 && M2.set(e3, n3), c2 <= s3) {
@@ -8456,7 +8456,7 @@ class oh {
8456
8456
  _2 ? (e3 >= a2 - S2 && Dl(n3.runs(k2), (t8, n4) => {
8457
8457
  const r5 = n4.min, o4 = n4.max;
8458
8458
  let s4 = t8;
8459
- r5 - 1 <= h2 && o4 > h2 && (s4 = s4.slice(0, h2 + 1 - r5)), r5 < c2 && o4 + 1 >= c2 && (s4 = s4.slice(c2 - r5)), N2.push({ majorIndex: e3 + S2, minorIndex: Math.max(r5, c2), run: s4 });
8459
+ r5 - 1 <= h2 && o4 > h2 && (s4 = s4.slice(0, h2 + 1 - r5)), r5 < c2 && o4 + 1 >= c2 && (s4 = s4.slice(c2 - r5)), T2.push({ majorIndex: e3 + S2, minorIndex: Math.max(r5, c2), run: s4 });
8460
8460
  }), n3.delete(c2, h2 - c2 + 1)) : n3.shift(c2, S2);
8461
8461
  const r4 = n3.getCount();
8462
8462
  if (0 === r4) A2.add(e3), x2 = Math.min(x2, s3), I2 = Math.max(I2, o3);
@@ -8466,12 +8466,12 @@ class oh {
8466
8466
  }
8467
8467
  w2 += r4 - t7, E2.push([e3, n3]);
8468
8468
  }
8469
- F2 = T2.next();
8469
+ F2 = N2.next();
8470
8470
  }
8471
8471
  const O2 = this._optionsMinor;
8472
8472
  let D2 = false;
8473
- for (let t6 = 0; t6 < N2.length; t6++) {
8474
- const e3 = N2[t6], n3 = e3.majorIndex, r3 = e3.run;
8473
+ for (let t6 = 0; t6 < T2.length; t6++) {
8474
+ const e3 = T2[t6], n3 = e3.majorIndex, r3 = e3.run;
8475
8475
  let o3 = M2.get(n3);
8476
8476
  o3 || (o3 = new Xl(O2), M2.set(n3, o3), E2.push([n3, o3]), D2 = true), o3.setRunAt(e3.minorIndex, r3), w2 += r3.length, b2 = Math.min(b2, n3), C2 = Math.max(C2, n3), A2 && A2.delete(n3);
8477
8477
  }
@@ -8514,7 +8514,7 @@ class oh {
8514
8514
  const l2 = this._isColumn, c2 = this._maxCoords, h2 = this.getCoords();
8515
8515
  let u2, d2 = $c(n2.colStart ?? Number.MIN_SAFE_INTEGER, n2.rowStart ?? Number.MIN_SAFE_INTEGER, n2.colEnd ?? Number.MAX_SAFE_INTEGER, n2.rowEnd ?? Number.MAX_SAFE_INTEGER, l2, c2, h2);
8516
8516
  d2 = { ...d2 };
8517
- const g2 = o2 !== T.Row, m2 = t5.getMaxCoords();
8517
+ const g2 = o2 !== N.Row, m2 = t5.getMaxCoords();
8518
8518
  u2 = $c(a2?.colStart ?? Number.MIN_SAFE_INTEGER, a2?.rowStart ?? Number.MIN_SAFE_INTEGER, a2?.colEnd ?? Number.MAX_SAFE_INTEGER, a2?.rowEnd ?? Number.MAX_SAFE_INTEGER, g2, m2), u2 = { ...u2 };
8519
8519
  const f2 = u2.majorStart - d2.majorStart, p2 = u2.minorStart - d2.minorStart, _2 = r2 === o2 ? new dn.Builder() : new dn.TransposedBuilder();
8520
8520
  for (; !i2.done; ) {
@@ -8644,9 +8644,9 @@ class dh {
8644
8644
  static fromArray(t5, e2, n2, r2, o2 = gh) {
8645
8645
  const s2 = t5.length;
8646
8646
  if (0 === s2) return new dh({ type: Mh.Undefined, length: s2, getCoercedValue: n2 });
8647
- let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Nh(t5[0], r2);
8647
+ let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Th(t5[0], r2);
8648
8648
  for (let e3 = 0; e3 < s2; e3++) {
8649
- const n3 = t5[e3], o3 = Nh(n3, r2);
8649
+ const n3 = t5[e3], o3 = Th(n3, r2);
8650
8650
  o3 !== Sh && o3 !== _h || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
8651
8651
  }
8652
8652
  c2 || (a2 = null, i2 = null);
@@ -8711,7 +8711,7 @@ class dh {
8711
8711
  return new dh({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
8712
8712
  }
8713
8713
  }
8714
- const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8, bh = 9, Ch = 10, vh = 11, xh = 12, Ih = 13, Rh = 14, Ah = 127, Mh = { Undefined: Rh }, Nh = (t5, e2) => {
8714
+ const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8, bh = 9, Ch = 10, vh = 11, xh = 12, Ih = 13, Rh = 14, Ah = 127, Mh = { Undefined: Rh }, Th = (t5, e2) => {
8715
8715
  switch (typeof t5) {
8716
8716
  case "number":
8717
8717
  const n2 = t5;
@@ -8743,7 +8743,7 @@ const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8,
8743
8743
  return Ah;
8744
8744
  }
8745
8745
  return Ah;
8746
- }, Th = (t5) => {
8746
+ }, Nh = (t5) => {
8747
8747
  if (!t5 || t5.length <= 1) return false;
8748
8748
  if (2 === t5.length) return Y.isRangesIntersect(t5[0], t5[1]);
8749
8749
  const e2 = new Mc();
@@ -8755,7 +8755,7 @@ const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8,
8755
8755
  }, kh = (t5, e2, n2) => {
8756
8756
  const r2 = [];
8757
8757
  if (Y.isRangesIntersect(t5, e2)) {
8758
- const o2 = bt.subtractRect({ top: t5.rowStart, left: t5.colStart, bottom: t5.rowEnd + 1, right: t5.colEnd + 1 }, { top: e2.rowStart, left: e2.colStart, bottom: e2.rowEnd + 1, right: e2.colEnd + 1 }, n2 === T.Column);
8758
+ const o2 = bt.subtractRect({ top: t5.rowStart, left: t5.colStart, bottom: t5.rowEnd + 1, right: t5.colEnd + 1 }, { top: e2.rowStart, left: e2.colStart, bottom: e2.rowEnd + 1, right: e2.colEnd + 1 }, n2 === N.Column);
8759
8759
  for (let t6 = 0; t6 < o2.length; t6++) {
8760
8760
  const e3 = { colStart: o2[t6].left, rowStart: o2[t6].top, colEnd: o2[t6].right - 1, rowEnd: o2[t6].bottom - 1 };
8761
8761
  r2.push(e3);
@@ -8838,7 +8838,7 @@ class Ph {
8838
8838
  let o2 = this._values.getValueAt(t5 + r2.rowStart, e2 + r2.colStart) ?? null;
8839
8839
  void 0 === o2 && (o2 = null);
8840
8840
  const s2 = n2?.type, i2 = void 0 !== s2 ? s2 : this._type;
8841
- return i2 && (o2 = qh(o2, $h(o2, true), i2)), o2;
8841
+ return i2 && (o2 = Jh(o2, $h(o2, true), i2)), o2;
8842
8842
  }
8843
8843
  _applyBuilder(t5, e2, n2 = false) {
8844
8844
  if (!e2) return t5;
@@ -8983,7 +8983,7 @@ class Ph {
8983
8983
  let r2 = this._coords;
8984
8984
  if (null == t5) return this;
8985
8985
  let o2 = n2?.type, a2 = n2?.otherType ?? o2;
8986
- const c2 = o2 ? qh(null, s.Null, o2) : null, h2 = a2 ? qh(null, s.Null, a2) : null;
8986
+ const c2 = o2 ? Jh(null, s.Null, o2) : null, h2 = a2 ? Jh(null, s.Null, a2) : null;
8987
8987
  let u2;
8988
8988
  if (t5.isIRange) u2 = t5;
8989
8989
  else {
@@ -9017,28 +9017,28 @@ class Ph {
9017
9017
  const t6 = { ...A2 };
9018
9018
  1 === f2 && (t6.colEnd = t6.colStart), 1 === p2 && (t6.rowEnd = t6.rowStart), R2 = new Kc({ delegate: d2._entries({ ...n2, type: a2 ?? null, orientation: v2, bounds: t6, reuseResult: false }), bounds: t6, orientation: v2, dims: { major: x2 ? _2 : S2, minor: x2 ? S2 : _2 } });
9019
9019
  } else R2 = d2._entries({ ...n2, type: a2 ?? null, orientation: v2, bounds: A2, reuseResult: false });
9020
- const M2 = r2.colStart, N2 = r2.rowStart, T2 = M2 - A2.colStart, k2 = N2 - A2.rowStart, F2 = v2 === C2 ? new dn.Builder() : new dn.TransposedBuilder(), O2 = new Xc({ ...n2, bounds: r2, comparator: (x2 ? Oh : Dh)(r2, A2) }, I2, R2);
9020
+ const M2 = r2.colStart, T2 = r2.rowStart, N2 = M2 - A2.colStart, k2 = T2 - A2.rowStart, F2 = v2 === C2 ? new dn.Builder() : new dn.TransposedBuilder(), O2 = new Xc({ ...n2, bounds: r2, comparator: (x2 ? Oh : Dh)(r2, A2) }, I2, R2);
9021
9021
  let D2, L2 = O2.next();
9022
9022
  for (; !L2.done; ) {
9023
9023
  const t6 = L2.value;
9024
9024
  let n3 = t6[1], r3 = t6[3];
9025
- const o3 = t6[0], s2 = t6[2], i2 = o3 ? o3.colIndex : s2.colIndex + T2, a3 = o3 ? o3.rowIndex : s2.rowIndex + k2;
9025
+ const o3 = t6[0], s2 = t6[2], i2 = o3 ? o3.colIndex : s2.colIndex + N2, a3 = o3 ? o3.rowIndex : s2.rowIndex + k2;
9026
9026
  let u3, d3;
9027
- n3 instanceof l.Value ? u3 = n3 : r3 instanceof l.Value && (u3 = r3), d3 = u3 || e2(n3 ?? c2, r3 ?? h2, { colIndex: i2 - M2, rowIndex: a3 - N2 }, this);
9027
+ n3 instanceof l.Value ? u3 = n3 : r3 instanceof l.Value && (u3 = r3), d3 = u3 || e2(n3 ?? c2, r3 ?? h2, { colIndex: i2 - M2, rowIndex: a3 - T2 }, this);
9028
9028
  const g3 = x2 ? i2 : a3, m3 = x2 ? a3 : i2;
9029
9029
  F2.addValue(g3, m3, d3), L2 = O2.next();
9030
9030
  }
9031
9031
  if (E2 && w2 > _2 || y2 > S2) {
9032
9032
  const t6 = this._values.clone();
9033
9033
  if (this._applyBuilder(t6, F2), w2 > _2) {
9034
- const e3 = $c(M2 + _2, N2, M2 + w2 - 1, N2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
9034
+ const e3 = $c(M2 + _2, T2, M2 + w2 - 1, T2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
9035
9035
  t6.setValues(n3.tuples);
9036
9036
  }
9037
9037
  if (y2 > S2) {
9038
- const e3 = $c(M2, N2 + S2, M2 + w2 - 1, N2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
9038
+ const e3 = $c(M2, T2 + S2, M2 + w2 - 1, T2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
9039
9039
  t6.setValues(n3.tuples);
9040
9040
  }
9041
- D2 = new Ph(t6, { colStart: M2, rowStart: N2, colEnd: M2 + w2 - 1, rowEnd: N2 + y2 - 1 }, this._type);
9041
+ D2 = new Ph(t6, { colStart: M2, rowStart: T2, colEnd: M2 + w2 - 1, rowEnd: T2 + y2 - 1 }, this._type);
9042
9042
  } else D2 = this._cloneFromBuilder(F2, n2, w2, y2);
9043
9043
  return D2;
9044
9044
  }
@@ -9139,7 +9139,7 @@ class Ph {
9139
9139
  let e2 = this._values.entries(t5);
9140
9140
  const n2 = t5?.type ?? this._type;
9141
9141
  let r2 = null;
9142
- if (t5?.includeEmpty && (e2 = new qc(e2, t5), n2 && (r2 = qh(null, s.Null, n2))), n2) {
9142
+ if (t5?.includeEmpty && (e2 = new Jc(e2, t5), n2 && (r2 = Jh(null, s.Null, n2))), n2) {
9143
9143
  const o2 = e2, s2 = t5.coerce ?? false, i2 = t5.includeBoolean ?? false, a2 = t5.includeMistyped ?? false;
9144
9144
  e2 = { [Symbol.iterator]: () => e2, next() {
9145
9145
  for (; ; ) {
@@ -9150,7 +9150,7 @@ class Ph {
9150
9150
  if (null == c2) c2 = r2;
9151
9151
  else if (n2 && (s2 || !a2)) {
9152
9152
  let t7 = $h(c2, true), e4 = t7 !== n2;
9153
- if (e4 && (s2 && (c2 = qh(c2, t7, n2, i2), e4 = c2?.isFormulaError), e4 && !a2)) continue;
9153
+ if (e4 && (s2 && (c2 = Jh(c2, t7, n2, i2), e4 = c2?.isFormulaError), e4 && !a2)) continue;
9154
9154
  }
9155
9155
  return c2 === l2 ? t6 : { done: false, value: [e3[0], c2] };
9156
9156
  }
@@ -9235,7 +9235,7 @@ class Ph {
9235
9235
  return true;
9236
9236
  }
9237
9237
  }
9238
- const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER }, jh = Object.freeze([Object.freeze([null])]), Wh = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), Hh = Object.freeze({ colIndex: 0, rowIndex: 0 }), Vh = () => Wh, $h = (t5, e2 = false) => "number" == typeof t5 ? isNaN(t5) || t5 === 1 / 0 || t5 === -1 / 0 ? s.Error : s.Number : "string" == typeof t5 ? s.String : "boolean" == typeof t5 ? s.Boolean : t5?.isFormulaError ? s.Error : null === t5 ? s.Null : bt.isObject(t5) && t5.hasOwnProperty("type") && "string" == typeof t5.type ? s.RichData : e2 && Ms(t5) ? "Date" : void 0 === t5 ? (console.warn("undefined"), s.Null) : null, Gh = /* @__PURE__ */ new Map([[s.Null, "any"], [s.Number, "number"], [s.String, "string"], [s.Boolean, "boolean"], [s.Error, "FormulaError"], [s.RichData, "richData"], ["*", "Scalar"]]), Uh = /* @__PURE__ */ new Map([["p", "IReferenceRange"], ["r", "IRange"]]), Jh = { orientation: i.Orientation.Row }, qh = (t5, e2, n2 = s.Number, r2 = false, o2 = false) => {
9238
+ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER }, jh = Object.freeze([Object.freeze([null])]), Wh = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), Hh = Object.freeze({ colIndex: 0, rowIndex: 0 }), Vh = () => Wh, $h = (t5, e2 = false) => "number" == typeof t5 ? isNaN(t5) || t5 === 1 / 0 || t5 === -1 / 0 ? s.Error : s.Number : "string" == typeof t5 ? s.String : "boolean" == typeof t5 ? s.Boolean : t5?.isFormulaError ? s.Error : null === t5 ? s.Null : bt.isObject(t5) && t5.hasOwnProperty("type") && "string" == typeof t5.type ? s.RichData : e2 && Ms(t5) ? "Date" : void 0 === t5 ? (console.warn("undefined"), s.Null) : null, Gh = /* @__PURE__ */ new Map([[s.Null, "any"], [s.Number, "number"], [s.String, "string"], [s.Boolean, "boolean"], [s.Error, "FormulaError"], [s.RichData, "richData"], ["*", "Scalar"]]), Uh = /* @__PURE__ */ new Map([["p", "IReferenceRange"], ["r", "IRange"]]), qh = { orientation: i.Orientation.Row }, Jh = (t5, e2, n2 = s.Number, r2 = false, o2 = false) => {
9239
9239
  if (e2 === n2 || !n2) return e2 === s.Number && (t5 = Qh(t5, null, "number")), t5;
9240
9240
  if (n2 === s.Number) {
9241
9241
  switch (e2) {
@@ -9291,7 +9291,7 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9291
9291
  return Ds(t5, o2) ?? l.BuiltIn.Value;
9292
9292
  case s.String:
9293
9293
  try {
9294
- const e3 = qs(t5, o2);
9294
+ const e3 = Js(t5, o2);
9295
9295
  if (e3) return e3.asJSDate ?? l.BuiltIn.Value;
9296
9296
  } catch (t6) {
9297
9297
  }
@@ -9320,7 +9320,7 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9320
9320
  if (n3 instanceof l.Value) return n3;
9321
9321
  } else {
9322
9322
  if (r2) {
9323
- if (i3 = qh(i3, $h(i3, true), r2, s2), s2) continue;
9323
+ if (i3 = Jh(i3, $h(i3, true), r2, s2), s2) continue;
9324
9324
  if (i3 instanceof l.Value) return i3;
9325
9325
  }
9326
9326
  e2.push(i3);
@@ -9340,10 +9340,10 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9340
9340
  if (r3 instanceof l.Value) return r3;
9341
9341
  e3.push(r3), n3 = t6.next();
9342
9342
  }
9343
- })(n2.values({ type: r2, coerce: true, includeMistyped: !s2, ...Jh }), e2);
9343
+ })(n2.values({ type: r2, coerce: true, includeMistyped: !s2, ...qh }), e2);
9344
9344
  }
9345
9345
  if (r2) {
9346
- if (n2 = qh(n2, $h(n2, true), r2, null !== o2), s2) return;
9346
+ if (n2 = Jh(n2, $h(n2, true), r2, null !== o2), s2) return;
9347
9347
  if (n2 instanceof l.Value) return n2;
9348
9348
  }
9349
9349
  e2.push(n2);
@@ -9367,7 +9367,7 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9367
9367
  const s2 = t7.length, i3 = new Array(s2);
9368
9368
  for (let e4 = 0; e4 < s2; e4++) {
9369
9369
  let n3 = t7[e4];
9370
- if (r2 && (n3 = qh(n3, $h(n3, true), r2)), n3 instanceof l.Value) return n3;
9370
+ if (r2 && (n3 = Jh(n3, $h(n3, true), r2)), n3 instanceof l.Value) return n3;
9371
9371
  i3[e4] = n3;
9372
9372
  }
9373
9373
  o3[e3] = i3;
@@ -9377,7 +9377,7 @@ const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
9377
9377
  } else {
9378
9378
  if (a2) r2 && a2.getScalarType() !== r2 && (a2 = a2.toType(r2));
9379
9379
  else try {
9380
- if (!i2 && (n2 = Qh(n2), r2 && (n2 = qh(n2, $h(n2, true), r2, true), n2?.isFormulaError && r2 !== s.Error))) return e2.push(n2), n2;
9380
+ if (!i2 && (n2 = Qh(n2), r2 && (n2 = Jh(n2, $h(n2, true), r2, true), n2?.isFormulaError && r2 !== s.Error))) return e2.push(n2), n2;
9381
9381
  a2 = t5.getRange(n2), r2 && (a2 = a2.toType(r2));
9382
9382
  } catch (t6) {
9383
9383
  return t6;
@@ -9516,7 +9516,7 @@ const fu = (t5) => {
9516
9516
  }, Mu = (t5, e2, n2 = vu, r2 = Su) => {
9517
9517
  const o2 = Au(t5, e2, n2, r2);
9518
9518
  return o2 ? o2.join(",") : au;
9519
- }, Nu = (t5, e2, n2, r2 = Ru, o2, s2 = false) => {
9519
+ }, Tu = (t5, e2, n2, r2 = Ru, o2, s2 = false) => {
9520
9520
  if (null !== e2) {
9521
9521
  if ("string" == typeof e2) {
9522
9522
  const i2 = r2(e2, n2, s2);
@@ -9526,7 +9526,7 @@ const fu = (t5) => {
9526
9526
  const e3 = i3.length;
9527
9527
  for (let a2 = 0; a2 < e3; a2++) {
9528
9528
  const e4 = i3[a2];
9529
- Nu(t5, e4, n2, r2, o2, s2);
9529
+ Tu(t5, e4, n2, r2, o2, s2);
9530
9530
  }
9531
9531
  }
9532
9532
  return;
@@ -9543,14 +9543,14 @@ const fu = (t5) => {
9543
9543
  }
9544
9544
  } else t5.push(null);
9545
9545
  } else t5.push(null);
9546
- }, Tu = (t5, e2, n2 = Ru, r2, o2 = false) => {
9546
+ }, Nu = (t5, e2, n2 = Ru, r2, o2 = false) => {
9547
9547
  if (!t5) return [e2];
9548
9548
  let s2;
9549
9549
  s2 = "string" == typeof t5 ? gi(t5) : t5.isICellRanges ? t5.getCoords() : Array.isArray(t5) ? t5 : [t5];
9550
9550
  const i2 = [], a2 = s2.length;
9551
9551
  for (let t6 = 0; t6 < a2; t6++) {
9552
9552
  const a3 = s2[t6];
9553
- Nu(i2, a3, e2, n2, r2, o2);
9553
+ Tu(i2, a3, e2, n2, r2, o2);
9554
9554
  }
9555
9555
  return i2;
9556
9556
  }, ku = (t5, e2) => {
@@ -9689,7 +9689,7 @@ const fu = (t5) => {
9689
9689
  }
9690
9690
  let d2;
9691
9691
  return r2 ? (d2 = r2, d2.colStart = o2, d2.rowStart = s2, d2.colEnd = i2, d2.rowEnd = a2, d2.$colStart = l2, d2.$rowStart = c2, d2.$colEnd = h2, d2.$rowEnd = u2) : d2 = { colStart: o2, rowStart: s2, colEnd: i2, rowEnd: a2, $colStart: l2, $rowStart: c2, $colEnd: h2, $rowEnd: u2 }, t5.sheetName && (d2.sheetName = t5.sheetName), d2;
9692
- }, Ju = (t5, e2, n2, r2) => {
9692
+ }, qu = (t5, e2, n2, r2) => {
9693
9693
  ju.length = 0;
9694
9694
  let o2 = 0, s2 = t5.replace(su, Wu), i2 = 0, a2 = s2.replace(ru, (t6, a3, l2) => {
9695
9695
  const c2 = zu(t6, e2, n2);
@@ -9711,7 +9711,7 @@ const fu = (t5) => {
9711
9711
  r2.push(t6.replace(iu, (t7, e3) => ju[o2++]));
9712
9712
  }
9713
9713
  return a2 = a2.toUpperCase().replace(ou, ""), a2.replace(iu, Hu);
9714
- }, qu = "Must specify an address.", Ku = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Xu = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.", Yu = (t5) => `Invalid address. Can not parse ${"string" == typeof t5 ? `'${t5}' ` : ""}as an address or named item.`, Qu = () => {
9714
+ }, Ju = "Must specify an address.", Ku = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Xu = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.", Yu = (t5) => `Invalid address. Can not parse ${"string" == typeof t5 ? `'${t5}' ` : ""}as an address or named item.`, Qu = () => {
9715
9715
  throw new Error("Invalid range.");
9716
9716
  };
9717
9717
  class Zu {
@@ -9872,7 +9872,7 @@ var id;
9872
9872
  const ad = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: false, [id.Type.Merge]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Formula]: false, [id.Type.Spill]: false, [id.Type.Pending]: false, [id.Type.CalcError]: false, [id.Type.Contentful]: false, [id.Type.Conditional]: false, [id.Type.Continuous]: false }), ld = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: false, [id.Type.Merge]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Formula]: false, [id.Type.Spill]: false, [id.Type.Pending]: false, [id.Type.CalcError]: false, [id.Type.Conditional]: false, [id.Type.Continuous]: false }), cd = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: true, [id.Type.Merge]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Formula]: false }), hd = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Contentful]: false, [id.Type.Formula]: false }), ud = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", dd = (t5 = "update") => `Unable to ${t5}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, gd = "The range is outside of the bounds of the sheet.", md = "Listener can not be null", fd = "We can't insert items. The sheet is protected.", pd = (t5) => `We can't create a ${t5} that overlaps with another table or merge.`, _d = "Overlapping ranges can not be merged.", Sd = "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.", wd = "Unable to partially fill over merged cells.", yd = "Unable to sort merged cells unless they are all the same size.", Ed = "Sheet has been closed. No further operations are allowed.", bd = "IteratorContext can only be used during visit.", Cd = "When using addresses directly from the sheet do not include the sheet name.", vd = (t5) => `Unable to return more than ${t5} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, xd = "Multiple selection ranges can not be copied.", Id = "Unable to determine source.", Rd = "When pasting before or after the cut area both areas must align.";
9873
9873
  var Ad, Md;
9874
9874
  (Md = Ad || (Ad = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, Md.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
9875
- class Nd {
9875
+ class Td {
9876
9876
  constructor(t5, e2, n2) {
9877
9877
  if (!n2) throw new jt();
9878
9878
  if ("string" == typeof n2 && (n2 = { address: n2 }), "string" != typeof n2.address) throw new Error("Invalid hyperlink");
@@ -9899,7 +9899,7 @@ class Nd {
9899
9899
  return true;
9900
9900
  }
9901
9901
  }
9902
- const Td = (t5) => {
9902
+ const Nd = (t5) => {
9903
9903
  if ("string" != typeof t5) return null;
9904
9904
  let r2 = e(t5);
9905
9905
  Array.isArray(r2) && 0 === r2.length && (r2 = null), r2 = r2 ? { "font-family": r2 } : n(t5);
@@ -9925,8 +9925,8 @@ const Td = (t5) => {
9925
9925
  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;
9926
9926
  }
9927
9927
  return '"' + e2 + '"';
9928
- }, Wd = "Thin", Hd = "Hairline", Vd = "Extra Light", $d = "Ultra Light", Gd = "Light", Ud = "Normal", Jd = "Regular", qd = "Medium", Kd = "Semi Bold", Xd = "Demi Bold", Yd = "Bold", Qd = "Extra Bold", Zd = "Ultra Bold", tg = "Black", eg = "Heavy", ng = "Extra Black", rg = "Ultra Black", og = "lighter", sg = "normal", ig = "bold", ag = "bolder", lg = /* @__PURE__ */ new Map();
9929
- lg.set(bt.textToKey(Wd), 100), lg.set(bt.textToKey(Hd), 100), lg.set(bt.textToKey(Vd), 200), lg.set(bt.textToKey($d), 200), lg.set(bt.textToKey(Gd), 300), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(Jd), 400), lg.set(bt.textToKey(qd), 500), lg.set(bt.textToKey(Kd), 600), lg.set(bt.textToKey(Xd), 600), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(Yd), 700), lg.set(bt.textToKey(Qd), 800), lg.set(bt.textToKey(Zd), 800), lg.set(bt.textToKey(tg), 900), lg.set(bt.textToKey(eg), 900), lg.set(bt.textToKey(ng), 950), lg.set(bt.textToKey(rg), 950), lg.set(bt.textToKey(og), 100), lg.set(bt.textToKey(sg), 400), lg.set(bt.textToKey(ig), 700), lg.set(bt.textToKey(ag), 700);
9928
+ }, Wd = "Thin", Hd = "Hairline", Vd = "Extra Light", $d = "Ultra Light", Gd = "Light", Ud = "Normal", qd = "Regular", Jd = "Medium", Kd = "Semi Bold", Xd = "Demi Bold", Yd = "Bold", Qd = "Extra Bold", Zd = "Ultra Bold", tg = "Black", eg = "Heavy", ng = "Extra Black", rg = "Ultra Black", og = "lighter", sg = "normal", ig = "bold", ag = "bolder", lg = /* @__PURE__ */ new Map();
9929
+ lg.set(bt.textToKey(Wd), 100), lg.set(bt.textToKey(Hd), 100), lg.set(bt.textToKey(Vd), 200), lg.set(bt.textToKey($d), 200), lg.set(bt.textToKey(Gd), 300), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(qd), 400), lg.set(bt.textToKey(Jd), 500), lg.set(bt.textToKey(Kd), 600), lg.set(bt.textToKey(Xd), 600), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(Yd), 700), lg.set(bt.textToKey(Qd), 800), lg.set(bt.textToKey(Zd), 800), lg.set(bt.textToKey(tg), 900), lg.set(bt.textToKey(eg), 900), lg.set(bt.textToKey(ng), 950), lg.set(bt.textToKey(rg), 950), lg.set(bt.textToKey(og), 100), lg.set(bt.textToKey(sg), 400), lg.set(bt.textToKey(ig), 700), lg.set(bt.textToKey(ag), 700);
9930
9930
  const cg = "xx-small", hg = "x-small", ug = "small", dg = "medium", gg = "large", mg = "x-large", fg = "xx-large", pg = "xxx-large", _g = "smaller", Sg = "larger", wg = "math", yg = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Eg = /* @__PURE__ */ new Map();
9931
9931
  Eg.set(bt.textToKey(cg), (t5) => 0.4 * t5), Eg.set(bt.textToKey(hg), (t5) => 0.5 * t5), Eg.set(bt.textToKey(ug), (t5) => 0.6 * t5), Eg.set(bt.textToKey(dg), (t5) => t5), Eg.set(bt.textToKey(gg), (t5) => 1.1 * t5), Eg.set(bt.textToKey(mg), (t5) => 1.25 * t5), Eg.set(bt.textToKey(fg), (t5) => 1.5 * t5), Eg.set(bt.textToKey(pg), (t5) => 2 * t5), Eg.set(bt.textToKey(_g), (t5) => 0.9 * t5), Eg.set(bt.textToKey(Sg), (t5) => 1.1 * t5), Eg.set(bt.textToKey(wg), (t5) => t5);
9932
9932
  const bg = (t5, e2 = 11, n2 = "pt") => {
@@ -9991,8 +9991,8 @@ const Ig = new RegExp(`(\\s*(?:${vg}))`, "g"), Rg = (t5) => {
9991
9991
  }
9992
9992
  return `linear-gradient(${o2}deg, ${r2})`;
9993
9993
  }, Mg = /* @__PURE__ */ new Map();
9994
- Mg.set(Ta.StrokeStyle.None, { size: null, cssKey: "none" }), Mg.set(Ta.StrokeStyle.DashDot, { size: 0.5, cssKey: "dot-dash" }), Mg.set(Ta.StrokeStyle.DashDotDot, { size: 0.5, cssKey: "dot-dot-dash" }), Mg.set(Ta.StrokeStyle.Dashed, { size: 0.5, cssKey: "dashed" }), Mg.set(Ta.StrokeStyle.MediumDashed, { size: 1, cssKey: "dashed" }), Mg.set(Ta.StrokeStyle.Dotted, { size: 0.5, cssKey: "dotted" }), Mg.set(Ta.StrokeStyle.MediumDashDot, { size: 1, cssKey: "dot-dash" }), Mg.set(Ta.StrokeStyle.MediumDashDotDot, { size: 1, cssKey: "dot-dot-dash" }), Mg.set(Ta.StrokeStyle.Hair, { size: 0.5, cssKey: "hairline" }), Mg.set(Ta.StrokeStyle.Thin, { size: 0.5, cssKey: "solid" }), Mg.set(Ta.StrokeStyle.Thick, { size: 1.5, cssKey: "solid" }), Mg.set(Ta.StrokeStyle.Medium, { size: 1, cssKey: "solid" }), Mg.set(Ta.StrokeStyle.Double, { size: 2, cssKey: "double" }), Mg.set(Ta.StrokeStyle.SlantDashDot, { size: 1, cssKey: "dot-dash-slanted" });
9995
- const Ng = (t5) => {
9994
+ Mg.set(Na.StrokeStyle.None, { size: null, cssKey: "none" }), Mg.set(Na.StrokeStyle.DashDot, { size: 0.5, cssKey: "dot-dash" }), Mg.set(Na.StrokeStyle.DashDotDot, { size: 0.5, cssKey: "dot-dot-dash" }), Mg.set(Na.StrokeStyle.Dashed, { size: 0.5, cssKey: "dashed" }), Mg.set(Na.StrokeStyle.MediumDashed, { size: 1, cssKey: "dashed" }), Mg.set(Na.StrokeStyle.Dotted, { size: 0.5, cssKey: "dotted" }), Mg.set(Na.StrokeStyle.MediumDashDot, { size: 1, cssKey: "dot-dash" }), Mg.set(Na.StrokeStyle.MediumDashDotDot, { size: 1, cssKey: "dot-dot-dash" }), Mg.set(Na.StrokeStyle.Hair, { size: 0.5, cssKey: "hairline" }), Mg.set(Na.StrokeStyle.Thin, { size: 0.5, cssKey: "solid" }), Mg.set(Na.StrokeStyle.Thick, { size: 1.5, cssKey: "solid" }), Mg.set(Na.StrokeStyle.Medium, { size: 1, cssKey: "solid" }), Mg.set(Na.StrokeStyle.Double, { size: 2, cssKey: "double" }), Mg.set(Na.StrokeStyle.SlantDashDot, { size: 1, cssKey: "dot-dash-slanted" });
9995
+ const Tg = (t5) => {
9996
9996
  if (!t5) return "none";
9997
9997
  const e2 = Mg.get(t5.getStyle());
9998
9998
  if (!e2) return null;
@@ -10001,19 +10001,19 @@ const Ng = (t5) => {
10001
10001
  n2 = n2 ? " " + n2 : "";
10002
10002
  return `${null !== e2.size ? `${e2.size}pt ` : ""}${e2.cssKey}${n2}`;
10003
10003
  };
10004
- let Tg = [];
10004
+ let Ng = [];
10005
10005
  const kg = /* @__PURE__ */ new Set(), Fg = /* @__PURE__ */ new Map(), Og = (t5, e2) => {
10006
10006
  let n2 = null !== t5.size ? `${t5.size.toString()} ${t5.cssKey}` : t5.cssKey;
10007
- Fg.set(n2, e2), kg.has(t5.cssKey) || (Tg.push(t5.cssKey), kg.add(t5.cssKey));
10007
+ Fg.set(n2, e2), kg.has(t5.cssKey) || (Ng.push(t5.cssKey), kg.add(t5.cssKey));
10008
10008
  };
10009
10009
  Mg.forEach(Og);
10010
- const Dg = Object.keys(Ta.StrokeStyle);
10010
+ const Dg = Object.keys(Na.StrokeStyle);
10011
10011
  for (let t5 = 0; t5 < Dg.length; t5++) {
10012
- Og({ size: null, cssKey: Dg[t5].toLowerCase() }, Ta.StrokeStyle[Dg[t5]]);
10012
+ Og({ size: null, cssKey: Dg[t5].toLowerCase() }, Na.StrokeStyle[Dg[t5]]);
10013
10013
  }
10014
- Og({ size: null, cssKey: "double" }, Ta.StrokeStyle.Double), Og({ size: null, cssKey: "solid" }, Ta.StrokeStyle.Medium), Og({ size: null, cssKey: "hidden" }, Ta.StrokeStyle.None), Tg.sort((t5, e2) => e2.length - t5.length);
10014
+ Og({ size: null, cssKey: "double" }, Na.StrokeStyle.Double), Og({ size: null, cssKey: "solid" }, Na.StrokeStyle.Medium), Og({ size: null, cssKey: "hidden" }, Na.StrokeStyle.None), Ng.sort((t5, e2) => e2.length - t5.length);
10015
10015
  let Lg = "";
10016
- for (let t5 = 0; t5 < Tg.length; t5++) Lg.length > 0 && (Lg += "|"), Lg += "\\b" + Tg[t5] + "\\b";
10016
+ for (let t5 = 0; t5 < Ng.length; t5++) Lg.length > 0 && (Lg += "|"), Lg += "\\b" + Ng[t5] + "\\b";
10017
10017
  const Bg = new RegExp(`(\\s*(?:${Lg}))`, "g"), Pg = new RegExp("(\\s*[0-9]*[.]?[0-9]+(?:pt|px){0,1})", "g"), zg = (t5) => {
10018
10018
  if (!t5) return null;
10019
10019
  let e2 = t5.toLowerCase(), n2 = e2.match(Bg);
@@ -10034,12 +10034,12 @@ const Bg = new RegExp(`(\\s*(?:${Lg}))`, "g"), Pg = new RegExp("(\\s*[0-9]*[.]?[
10034
10034
  const i2 = e2 ? e2.trim() : null;
10035
10035
  let a2 = null === s2 ? o2 : `${s2.toString()} ${o2}`, l2 = Fg.get(a2);
10036
10036
  return l2 || (l2 = Fg.get(o2)), l2 ? { color: i2, style: l2 } : null;
10037
- }, jg = "start", Wg = "end", Hg = "left", Vg = "right", $g = "center", Gg = "justify", Ug = "justify-all", Jg = "baseline", qg = "top", Kg = "middle", Xg = "bottom", Yg = "sub", Qg = "text-top", Zg = "justify", tm = "distributed", em = /* @__PURE__ */ new Map();
10037
+ }, jg = "start", Wg = "end", Hg = "left", Vg = "right", $g = "center", Gg = "justify", Ug = "justify-all", qg = "baseline", Jg = "top", Kg = "middle", Xg = "bottom", Yg = "sub", Qg = "text-top", Zg = "justify", tm = "distributed", em = /* @__PURE__ */ new Map();
10038
10038
  em.set(bt.textToKey(jg), Zs.HorizontalAlignment.Left), em.set(bt.textToKey(Hg), Zs.HorizontalAlignment.Left), em.set(bt.textToKey(Wg), Zs.HorizontalAlignment.Right), em.set(bt.textToKey(Vg), Zs.HorizontalAlignment.Right), em.set(bt.textToKey($g), Zs.HorizontalAlignment.Center), em.set(bt.textToKey(Gg), Zs.HorizontalAlignment.Justify), em.set(bt.textToKey(Ug), Zs.HorizontalAlignment.Justify);
10039
10039
  const nm = /* @__PURE__ */ new Map();
10040
- nm.set(bt.textToKey(Jg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(qg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Kg), Zs.VerticalAlignment.Center), nm.set(bt.textToKey(Xg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Yg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Qg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Zg), Zs.VerticalAlignment.Justify), nm.set(bt.textToKey(tm), Zs.VerticalAlignment.Distributed);
10040
+ nm.set(bt.textToKey(qg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Jg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Kg), Zs.VerticalAlignment.Center), nm.set(bt.textToKey(Xg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Yg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Qg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Zg), Zs.VerticalAlignment.Justify), nm.set(bt.textToKey(tm), Zs.VerticalAlignment.Distributed);
10041
10041
  const rm = (t5, e2) => {
10042
- if (t5 instanceof Na) return { color: t5 };
10042
+ if (t5 instanceof Ta) return { color: t5 };
10043
10043
  if ("string" == typeof t5) try {
10044
10044
  return { color: "none" === t5 || "transparent" === t5 ? null : e2(t5) };
10045
10045
  } catch (t6) {
@@ -10078,16 +10078,16 @@ const rm = (t5, e2) => {
10078
10078
  return t5;
10079
10079
  }, getSubType: (t5) => t5.type === ma.Type.None ? im : t5.type === ma.Type.Solid ? am : t5.type === ma.Type.Gradient ? lm : t5.type === ma.Type.Pattern ? cm : null }, um = { properties: { font: { shorthand: (t5, e2) => {
10080
10080
  if ("string" == typeof t5) {
10081
- const e3 = Td(t5);
10081
+ const e3 = Nd(t5);
10082
10082
  if (e3) {
10083
10083
  const t6 = {};
10084
10084
  if (e3.family && (t6.family = e3.family), e3.fallbacks && (t6.fallbacks = e3.fallbacks), e3.size && (t6.size = bg(e3.size)), Object.keys(e3).length > 0) return t6;
10085
10085
  }
10086
10086
  }
10087
10087
  return t5;
10088
- }, properties: { family: { shorthand: (t5, e2) => Td(t5)?.family ?? null }, fallbacks: { shorthand: (t5, e2) => {
10088
+ }, properties: { family: { shorthand: (t5, e2) => Nd(t5)?.family ?? null }, fallbacks: { shorthand: (t5, e2) => {
10089
10089
  if ("string" != typeof t5) return t5;
10090
- let n2 = Td(t5);
10090
+ let n2 = Nd(t5);
10091
10091
  if (!n2) return null;
10092
10092
  let r2 = [n2.family];
10093
10093
  return n2.fallbacks && (r2 = r2.concat(n2.fallbacks)), r2;
@@ -10186,8 +10186,8 @@ const rm = (t5, e2) => {
10186
10186
  }
10187
10187
  const b2 = Is(r2, t5), C2 = { displayText: a2 ?? "", conditionalColor: b2 ? o2(b2) : null, repeatChars: c2 ?? bt.EmptyArray, spacingChars: h2 ?? bt.EmptyArray, repeatPlaceholder: l2, formattedRuns: m2, canWrap: w2, asDate: g2, isDateFormat: u2, isTimeFormat: d2, isDate1904: i2 };
10188
10188
  return Object.freeze(C2);
10189
- }, fm = Object.freeze({ fallbacks: bt.EmptyArray, weight: 400, style: Ai.Style.Normal, fill: pa.Scheme.Tx1, letterSpacing: null, underline: Ai.UnderlineStyle.None, strike: false, scheme: Ai.Scheme.Minor, verticalAlign: Ai.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), pm = Object.freeze({ style: Ta.StrokeStyle.None, color: pa.Scheme.Tx1 }), _m = Object.freeze({ [Ta.Edge.Top]: pm, [Ta.Edge.Left]: pm, [Ta.Edge.Bottom]: pm, [Ta.Edge.Right]: pm, [Ta.Edge.Horizontal]: pm, [Ta.Edge.Vertical]: pm, [Ta.Edge.DiagonalUp]: pm, [Ta.Edge.DiagonalDown]: pm }), Sm = Object.freeze({ horizontal: Zs.HorizontalAlignment.General, vertical: Zs.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: Zs.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: Zs.ReadingDirection.Auto, readingDirection: Zs.ReadingDirection.Auto }), wm = Object.freeze({ locked: false, formulaHidden: false }), ym = Object.freeze({ fill: { type: ma.Type.None }, numberFormat: "General", alignment: Sm, font: fm, border: _m, protection: wm, quotePrefix: false, namedStyle: null }), Em = (() => {
10190
- const t5 = [{ named: Ya.BuiltInName.Normal }, { named: Ya.BuiltInName.RowLevel }, { named: Ya.BuiltInName.ColLevel }, { named: Ya.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Percent, numberFormat: "0%" }, { named: Ya.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Ya.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Ya.BuiltInName.Hyperlink, font: { ...fm, fill: pa.Scheme.Hlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.FollowedHyperlink, font: { ...fm, fill: pa.Scheme.FolHlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.Note, fill: "FFFFFFCC", font: { ...fm, style: Ai.Style.Normal, fill: pa.Scheme.Tx1 }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" }, top: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" }, right: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" } } }, { named: Ya.BuiltInName.WarningText, font: { ...fm, fill: "FFFF0000" } }, { named: Ya.BuiltInName.Unknown12 }, { named: Ya.BuiltInName.Unknown13 }, { named: Ya.BuiltInName.Unknown14 }, { named: Ya.BuiltInName.Title, font: { ...fm, size: 18, fill: pa.Scheme.Tx2 } }, { named: Ya.BuiltInName.Heading1, font: { ...fm, size: 15, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Ta.StrokeStyle.Thick, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Heading2, font: { ...fm, size: 13, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Ta.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading3, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Ta.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading4, font: { weight: "bold", fill: pa.Scheme.Tx2, ...fm } }, { named: Ya.BuiltInName.Input, fill: "FFFFCC99", font: { ...fm, fill: "FF3F3F76" }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.Output, fill: "FFF2F2F2", font: { ...fm, fill: "FF3F3F3F" }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" }, top: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" }, right: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.Calculation, fill: "FFF2F2F2", font: { ...fm, fill: "FFFA7D00" }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.CheckCell, fill: "FFA5A5A5", font: { ...fm, fill: pa.Scheme.Bg1 }, border: { left: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" }, top: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" }, right: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" }, bottom: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.LinkedCell, font: { ...fm, fill: "FFFA7D00" }, border: { bottom: { style: Ta.StrokeStyle.Double, color: "FFFF8001" } } }, { named: Ya.BuiltInName.Total, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx1 }, border: { top: { style: Ta.StrokeStyle.Thin, color: pa.Scheme.Accent1 }, bottom: { style: Ta.StrokeStyle.Double, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Good, fill: "FFC6EFCE", font: { ...fm, fill: "FF006100" } }, { named: Ya.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...fm, fill: "FF9C0006" } }, { named: Ya.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...fm, fill: "FF9C5700" } }, { named: Ya.BuiltInName.Accent1 }, { named: Ya.BuiltInName.Accent1_20 }, { named: Ya.BuiltInName.Accent1_40 }, { named: Ya.BuiltInName.Accent1_60 }, { named: Ya.BuiltInName.Accent2 }, { named: Ya.BuiltInName.Accent2_20 }, { named: Ya.BuiltInName.Accent2_40 }, { named: Ya.BuiltInName.Accent2_60 }, { named: Ya.BuiltInName.Accent3 }, { named: Ya.BuiltInName.Accent3_20 }, { named: Ya.BuiltInName.Accent3_40 }, { named: Ya.BuiltInName.Accent3_60 }, { named: Ya.BuiltInName.Accent4 }, { named: Ya.BuiltInName.Accent4_20 }, { named: Ya.BuiltInName.Accent4_40 }, { named: Ya.BuiltInName.Accent4_60 }, { named: Ya.BuiltInName.Accent5 }, { named: Ya.BuiltInName.Accent5_20 }, { named: Ya.BuiltInName.Accent5_40 }, { named: Ya.BuiltInName.Accent5_60 }, { named: Ya.BuiltInName.Accent6 }, { named: Ya.BuiltInName.Accent6_20 }, { named: Ya.BuiltInName.Accent6_40 }, { named: Ya.BuiltInName.Accent6_60 }, { named: Ya.BuiltInName.ExplanatoryText, font: { ...fm, style: Ai.Style.Italic, fill: "FF7F7F7F" } }];
10189
+ }, fm = Object.freeze({ fallbacks: bt.EmptyArray, weight: 400, style: Ai.Style.Normal, fill: pa.Scheme.Tx1, letterSpacing: null, underline: Ai.UnderlineStyle.None, strike: false, scheme: Ai.Scheme.Minor, verticalAlign: Ai.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), pm = Object.freeze({ style: Na.StrokeStyle.None, color: pa.Scheme.Tx1 }), _m = Object.freeze({ [Na.Edge.Top]: pm, [Na.Edge.Left]: pm, [Na.Edge.Bottom]: pm, [Na.Edge.Right]: pm, [Na.Edge.Horizontal]: pm, [Na.Edge.Vertical]: pm, [Na.Edge.DiagonalUp]: pm, [Na.Edge.DiagonalDown]: pm }), Sm = Object.freeze({ horizontal: Zs.HorizontalAlignment.General, vertical: Zs.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: Zs.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: Zs.ReadingDirection.Auto, readingDirection: Zs.ReadingDirection.Auto }), wm = Object.freeze({ locked: false, formulaHidden: false }), ym = Object.freeze({ fill: { type: ma.Type.None }, numberFormat: "General", alignment: Sm, font: fm, border: _m, protection: wm, quotePrefix: false, namedStyle: null }), Em = (() => {
10190
+ const t5 = [{ named: Ya.BuiltInName.Normal }, { named: Ya.BuiltInName.RowLevel }, { named: Ya.BuiltInName.ColLevel }, { named: Ya.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Percent, numberFormat: "0%" }, { named: Ya.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Ya.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Ya.BuiltInName.Hyperlink, font: { ...fm, fill: pa.Scheme.Hlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.FollowedHyperlink, font: { ...fm, fill: pa.Scheme.FolHlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.Note, fill: "FFFFFFCC", font: { ...fm, style: Ai.Style.Normal, fill: pa.Scheme.Tx1 }, border: { left: { style: Na.StrokeStyle.Thin, color: "FFB2B2B2" }, top: { style: Na.StrokeStyle.Thin, color: "FFB2B2B2" }, right: { style: Na.StrokeStyle.Thin, color: "FFB2B2B2" }, bottom: { style: Na.StrokeStyle.Thin, color: "FFB2B2B2" } } }, { named: Ya.BuiltInName.WarningText, font: { ...fm, fill: "FFFF0000" } }, { named: Ya.BuiltInName.Unknown12 }, { named: Ya.BuiltInName.Unknown13 }, { named: Ya.BuiltInName.Unknown14 }, { named: Ya.BuiltInName.Title, font: { ...fm, size: 18, fill: pa.Scheme.Tx2 } }, { named: Ya.BuiltInName.Heading1, font: { ...fm, size: 15, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Na.StrokeStyle.Thick, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Heading2, font: { ...fm, size: 13, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Na.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading3, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Na.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading4, font: { weight: "bold", fill: pa.Scheme.Tx2, ...fm } }, { named: Ya.BuiltInName.Input, fill: "FFFFCC99", font: { ...fm, fill: "FF3F3F76" }, border: { left: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.Output, fill: "FFF2F2F2", font: { ...fm, fill: "FF3F3F3F" }, border: { left: { style: Na.StrokeStyle.Thin, color: "FF3F3F3F" }, top: { style: Na.StrokeStyle.Thin, color: "FF3F3F3F" }, right: { style: Na.StrokeStyle.Thin, color: "FF3F3F3F" }, bottom: { style: Na.StrokeStyle.Thin, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.Calculation, fill: "FFF2F2F2", font: { ...fm, fill: "FFFA7D00" }, border: { left: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Na.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.CheckCell, fill: "FFA5A5A5", font: { ...fm, fill: pa.Scheme.Bg1 }, border: { left: { style: Na.StrokeStyle.Double, color: "FF3F3F3F" }, top: { style: Na.StrokeStyle.Double, color: "FF3F3F3F" }, right: { style: Na.StrokeStyle.Double, color: "FF3F3F3F" }, bottom: { style: Na.StrokeStyle.Double, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.LinkedCell, font: { ...fm, fill: "FFFA7D00" }, border: { bottom: { style: Na.StrokeStyle.Double, color: "FFFF8001" } } }, { named: Ya.BuiltInName.Total, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx1 }, border: { top: { style: Na.StrokeStyle.Thin, color: pa.Scheme.Accent1 }, bottom: { style: Na.StrokeStyle.Double, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Good, fill: "FFC6EFCE", font: { ...fm, fill: "FF006100" } }, { named: Ya.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...fm, fill: "FF9C0006" } }, { named: Ya.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...fm, fill: "FF9C5700" } }, { named: Ya.BuiltInName.Accent1 }, { named: Ya.BuiltInName.Accent1_20 }, { named: Ya.BuiltInName.Accent1_40 }, { named: Ya.BuiltInName.Accent1_60 }, { named: Ya.BuiltInName.Accent2 }, { named: Ya.BuiltInName.Accent2_20 }, { named: Ya.BuiltInName.Accent2_40 }, { named: Ya.BuiltInName.Accent2_60 }, { named: Ya.BuiltInName.Accent3 }, { named: Ya.BuiltInName.Accent3_20 }, { named: Ya.BuiltInName.Accent3_40 }, { named: Ya.BuiltInName.Accent3_60 }, { named: Ya.BuiltInName.Accent4 }, { named: Ya.BuiltInName.Accent4_20 }, { named: Ya.BuiltInName.Accent4_40 }, { named: Ya.BuiltInName.Accent4_60 }, { named: Ya.BuiltInName.Accent5 }, { named: Ya.BuiltInName.Accent5_20 }, { named: Ya.BuiltInName.Accent5_40 }, { named: Ya.BuiltInName.Accent5_60 }, { named: Ya.BuiltInName.Accent6 }, { named: Ya.BuiltInName.Accent6_20 }, { named: Ya.BuiltInName.Accent6_40 }, { named: Ya.BuiltInName.Accent6_60 }, { named: Ya.BuiltInName.ExplanatoryText, font: { ...fm, style: Ai.Style.Italic, fill: "FF7F7F7F" } }];
10191
10191
  for (let e2 = 29; e2 <= 52; e2++) {
10192
10192
  const n2 = (e2 - 29) % 4, r2 = Math.floor((e2 - 29) / 4);
10193
10193
  let o2 = "";
@@ -10288,21 +10288,21 @@ class Im extends xm {
10288
10288
  return t5 ? this._c.parseColor(t5) : null;
10289
10289
  }
10290
10290
  isNone() {
10291
- return this.getStyle() === Ta.StrokeStyle.None;
10291
+ return this.getStyle() === Na.StrokeStyle.None;
10292
10292
  }
10293
10293
  toCSS() {
10294
- const t5 = Ng(this);
10294
+ const t5 = Tg(this);
10295
10295
  switch (this._edge) {
10296
- case Ta.Edge.Left:
10296
+ case Na.Edge.Left:
10297
10297
  return { borderLeft: t5 };
10298
- case Ta.Edge.Right:
10298
+ case Na.Edge.Right:
10299
10299
  return { borderRight: t5 };
10300
- case Ta.Edge.Top:
10300
+ case Na.Edge.Top:
10301
10301
  return { borderTop: t5 };
10302
- case Ta.Edge.Bottom:
10302
+ case Na.Edge.Bottom:
10303
10303
  return { borderBottom: t5 };
10304
- case Ta.Edge.DiagonalUp:
10305
- case Ta.Edge.DiagonalDown:
10304
+ case Na.Edge.DiagonalUp:
10305
+ case Na.Edge.DiagonalDown:
10306
10306
  return { borderDiagonalUp: t5 };
10307
10307
  }
10308
10308
  }
@@ -10312,22 +10312,22 @@ class Im extends xm {
10312
10312
  }
10313
10313
  class Rm extends xm {
10314
10314
  getLeft() {
10315
- return new Im(Ta.Edge.Left, this._c, this._values(Ta.Edge.Left));
10315
+ return new Im(Na.Edge.Left, this._c, this._values(Na.Edge.Left));
10316
10316
  }
10317
10317
  getRight() {
10318
- return new Im(Ta.Edge.Right, this._c, this._values(Ta.Edge.Right));
10318
+ return new Im(Na.Edge.Right, this._c, this._values(Na.Edge.Right));
10319
10319
  }
10320
10320
  getTop() {
10321
- return new Im(Ta.Edge.Top, this._c, this._values(Ta.Edge.Top));
10321
+ return new Im(Na.Edge.Top, this._c, this._values(Na.Edge.Top));
10322
10322
  }
10323
10323
  getBottom() {
10324
- return new Im(Ta.Edge.Bottom, this._c, this._values(Ta.Edge.Bottom));
10324
+ return new Im(Na.Edge.Bottom, this._c, this._values(Na.Edge.Bottom));
10325
10325
  }
10326
10326
  getDiagonalUp() {
10327
- return new Im(Ta.Edge.DiagonalUp, this._c, this._values(Ta.Edge.DiagonalUp));
10327
+ return new Im(Na.Edge.DiagonalUp, this._c, this._values(Na.Edge.DiagonalUp));
10328
10328
  }
10329
10329
  getDiagonalDown() {
10330
- return new Im(Ta.Edge.DiagonalDown, this._c, this._values(Ta.Edge.DiagonalDown));
10330
+ return new Im(Na.Edge.DiagonalDown, this._c, this._values(Na.Edge.DiagonalDown));
10331
10331
  }
10332
10332
  isEmpty() {
10333
10333
  return false;
@@ -10443,13 +10443,13 @@ class Mm extends xm {
10443
10443
  return true;
10444
10444
  }
10445
10445
  }
10446
- const Nm = Object.freeze({ background: "none" });
10447
- class Tm extends xm {
10446
+ const Tm = Object.freeze({ background: "none" });
10447
+ class Nm extends xm {
10448
10448
  getType() {
10449
10449
  return ma.Type.None;
10450
10450
  }
10451
10451
  toCSS(t5) {
10452
- return Nm;
10452
+ return Tm;
10453
10453
  }
10454
10454
  toJSON() {
10455
10455
  return { type: ma.Type.None };
@@ -10566,7 +10566,7 @@ class Lm {
10566
10566
  return Ai.getSharedMeasurer()(t5, e2 * Ai.getDeviceScale(), i2, { isBold: o2.getWeight() > 400, isItalic: o2.getStyle().includes("italic"), letterSpacing: o2.getLetterSpacing(), ...r2 });
10567
10567
  }
10568
10568
  createTemporaryTextFrame(t5, e2 = false) {
10569
- return qi(t5, this.getFont(), this.getAlignment(), e2);
10569
+ return Ji(t5, this.getFont(), this.getAlignment(), e2);
10570
10570
  }
10571
10571
  getBestFit() {
10572
10572
  if (void 0 !== this._bestFit) return this._bestFit;
@@ -10589,7 +10589,7 @@ class Lm {
10589
10589
  getFill() {
10590
10590
  const t5 = this._p;
10591
10591
  let e2 = t5.values("fill"), n2 = t5.value("fill");
10592
- return n2.type === ma.Type.None ? new Tm(this._c, e2) : n2.type === ma.Type.Solid || !n2.type && n2.color ? new km(this._c, e2) : n2.type === ma.Type.Gradient ? new Om(this._c, e2) : n2.type === ma.Type.Pattern ? new Dm(this._c, e2) : new Tm(this._c, e2);
10592
+ return n2.type === ma.Type.None ? new Nm(this._c, e2) : n2.type === ma.Type.Solid || !n2.type && n2.color ? new km(this._c, e2) : n2.type === ma.Type.Gradient ? new Om(this._c, e2) : n2.type === ma.Type.Pattern ? new Dm(this._c, e2) : new Nm(this._c, e2);
10593
10593
  }
10594
10594
  getAlignment() {
10595
10595
  return new Am(this._c, this._p.values("alignment"));
@@ -10695,13 +10695,13 @@ class jm {
10695
10695
  if (c2 && !h2 || h2 && !c2) return;
10696
10696
  const u2 = this._c;
10697
10697
  if (c2 || h2) {
10698
- const n3 = r2 ? Ta.Edge.Top : Ta.Edge.Left, s3 = r2 ? Ta.Edge.Bottom : Ta.Edge.Right;
10698
+ const n3 = r2 ? Na.Edge.Top : Na.Edge.Left, s3 = r2 ? Na.Edge.Bottom : Na.Edge.Right;
10699
10699
  if (!zm(c2[n3], h2[n3]) || !zm(c2[s3], h2[s3])) return;
10700
- const i2 = this._r, a3 = t5._r, l3 = 1 + (r2 ? i2.rowEnd - i2.rowStart : i2.colEnd - i2.colStart), d2 = 1 + (r2 ? i2.colEnd - i2.colStart : i2.rowEnd - i2.rowStart), g2 = 1 + (r2 ? a3.colEnd - a3.colStart : a3.rowEnd - a3.rowStart), m2 = r2 ? Ta.Edge.Horizontal : Ta.Edge.Vertical;
10700
+ const i2 = this._r, a3 = t5._r, l3 = 1 + (r2 ? i2.rowEnd - i2.rowStart : i2.colEnd - i2.colStart), d2 = 1 + (r2 ? i2.colEnd - i2.colStart : i2.rowEnd - i2.rowStart), g2 = 1 + (r2 ? a3.colEnd - a3.colStart : a3.rowEnd - a3.rowStart), m2 = r2 ? Na.Edge.Horizontal : Na.Edge.Vertical;
10701
10701
  if (l3 > 1 && !zm(c2[m2], h2[m2])) return;
10702
- const f2 = r2 ? Ta.Edge.Right : Ta.Edge.Bottom, p2 = r2 ? Ta.Edge.Left : Ta.Edge.Top;
10702
+ const f2 = r2 ? Na.Edge.Right : Na.Edge.Bottom, p2 = r2 ? Na.Edge.Left : Na.Edge.Top;
10703
10703
  if (!zm(c2[f2], h2[p2])) return;
10704
- const _2 = r2 ? Ta.Edge.Vertical : Ta.Edge.Horizontal, S2 = c2[f2];
10704
+ const _2 = r2 ? Na.Edge.Vertical : Na.Edge.Horizontal, S2 = c2[f2];
10705
10705
  if (d2 > 1 && !zm(S2, c2[_2])) return;
10706
10706
  const w2 = 1 === g2 ? h2[p2] : h2[_2];
10707
10707
  if (g2 > 1 && !zm(w2, h2[_2])) return;
@@ -10718,7 +10718,7 @@ class jm {
10718
10718
  return true;
10719
10719
  }
10720
10720
  _splitBorderRange(t5, e2, n2, r2) {
10721
- const o2 = r2 ? Ta.Edge.Left : Ta.Edge.Top, s2 = r2 ? Ta.Edge.Right : Ta.Edge.Bottom, i2 = r2 ? Ta.Edge.Vertical : Ta.Edge.Horizontal, a2 = r2 ? e2.colStart : e2.rowStart, l2 = r2 ? e2.colEnd : e2.rowEnd, c2 = r2 ? n2.colStart : n2.rowStart, h2 = r2 ? n2.colEnd : n2.rowEnd;
10721
+ const o2 = r2 ? Na.Edge.Left : Na.Edge.Top, s2 = r2 ? Na.Edge.Right : Na.Edge.Bottom, i2 = r2 ? Na.Edge.Vertical : Na.Edge.Horizontal, a2 = r2 ? e2.colStart : e2.rowStart, l2 = r2 ? e2.colEnd : e2.rowEnd, c2 = r2 ? n2.colStart : n2.rowStart, h2 = r2 ? n2.colEnd : n2.rowEnd;
10722
10722
  let u2 = { ...t5 };
10723
10723
  return delete u2[o2], delete u2[s2], delete u2[i2], a2 === c2 ? t5[o2] && (u2[o2] = t5[o2]) : t5[i2] && (u2[o2] = t5[i2]), l2 === h2 ? t5[s2] && (u2[s2] = t5[s2]) : t5[i2] && (u2[s2] = t5[i2]), h2 - c2 > 0 && t5[i2] && (u2[i2] = t5[i2]), 0 === Object.keys(u2).length ? null : u2;
10724
10724
  }
@@ -10772,7 +10772,7 @@ const Um = new class {
10772
10772
  get isICellProtection() {
10773
10773
  return true;
10774
10774
  }
10775
- }(), Jm = (t5, e2, n2 = null, r2 = null, o2 = false) => {
10775
+ }(), qm = (t5, e2, n2 = null, r2 = null, o2 = false) => {
10776
10776
  if (void 0 === t5) return;
10777
10777
  if (null === t5) return Wm;
10778
10778
  if (t5 && t5.isICell) {
@@ -10813,12 +10813,12 @@ const Um = new class {
10813
10813
  } else p2 = g2;
10814
10814
  let _2 = false;
10815
10815
  return void 0 !== c2 && (null === c2 ? (a2.value = null, a2.type = s.Null) : (a2.value = c2, a2.type = l2), _2 = true), void 0 !== p2 && (a2.style = p2, _2 = true), void 0 !== u2 && (a2.hyperlink = u2, _2 = true), void 0 !== d2 && (a2.formula = d2, _2 = true), o2 || (a2.stringToParse = m2, _2 = true), _2 ? (a2.type = l2, a2) : void 0;
10816
- }, qm = (t5, e2, n2, r2) => mm(n2, e2, t5, e2.getNumberFormat(), (t6) => r2.styles.parseColor(t6), r2.date1904), Km = (t5, e2, n2, r2, o2 = false) => {
10816
+ }, Jm = (t5, e2, n2, r2) => mm(n2, e2, t5, e2.getNumberFormat(), (t6) => r2.styles.parseColor(t6), r2.date1904), Km = (t5, e2, n2, r2, o2 = false) => {
10817
10817
  if (t5 === s.Null) return null;
10818
10818
  let i2 = "";
10819
10819
  if (o2) i2 = "" + n2;
10820
10820
  else {
10821
- const o3 = qm(t5, e2, n2, r2);
10821
+ const o3 = Jm(t5, e2, n2, r2);
10822
10822
  if (o3.formattedRuns) {
10823
10823
  const t6 = o3.formattedRuns.runs;
10824
10824
  for (let e3 = 0; e3 < t6.length; e3++) {
@@ -10826,7 +10826,7 @@ const Um = new class {
10826
10826
  }
10827
10827
  } else i2 = o3.displayText;
10828
10828
  }
10829
- return qi(i2, e2.getFont(), e2.getAlignment(), t5 === s.String, o2);
10829
+ return Ji(i2, e2.getFont(), e2.getAlignment(), t5 === s.String, o2);
10830
10830
  }, Xm = (t5, e2) => {
10831
10831
  const n2 = e2.getInsets();
10832
10832
  if (t5 === s.Null) return n2;
@@ -10869,12 +10869,12 @@ const Um = new class {
10869
10869
  const E2 = l2.colHeaders, b2 = E2.findOffset.bind(E2), C2 = E2.findIndex.bind(E2);
10870
10870
  let v2 = b2(c2);
10871
10871
  const I2 = v2;
10872
- let R2 = b2(c2 + y2), A2 = R2 - v2, M2 = c2, N2 = c2;
10873
- const T2 = { x: 0, y: 0, width: A2, height: h2?.height ?? 0 };
10872
+ let R2 = b2(c2 + y2), A2 = R2 - v2, M2 = c2, T2 = c2;
10873
+ const N2 = { x: 0, y: 0, width: A2, height: h2?.height ?? 0 };
10874
10874
  const k2 = c2 - c2 + y2;
10875
- let F2 = h2 ? h2.width - A2 : 0, O2 = T2;
10876
- d2 && (F2 = 0), A2 > 0 && F2 > 0 && (m2 === x.Center && (F2 /= 2), m2 !== x.Left && m2 !== x.Center || (N2 = C2(R2 + F2), null !== i2 && (N2 = Math.min(N2, i2.colIndex - 1)), R2 = b2(N2), w2 = F2, _2 = N2 - c2), m2 !== x.Right && m2 !== x.Center || (M2 = C2(v2 - F2), null !== o2 && (M2 = Math.max(M2, o2.colIndex + 1)), v2 = b2(M2), S2 = F2, p2 = c2 - M2), T2.x = I2 - v2, O2.x = T2.x);
10877
- return { anchorBounds: T2, leftIndex: p2, rightIndex: _2, leftOffset: S2, rightOffset: w2, colSpan: k2, colBounds: O2 };
10875
+ let F2 = h2 ? h2.width - A2 : 0, O2 = N2;
10876
+ d2 && (F2 = 0), A2 > 0 && F2 > 0 && (m2 === x.Center && (F2 /= 2), m2 !== x.Left && m2 !== x.Center || (T2 = C2(R2 + F2), null !== i2 && (T2 = Math.min(T2, i2.colIndex - 1)), R2 = b2(T2), w2 = F2, _2 = T2 - c2), m2 !== x.Right && m2 !== x.Center || (M2 = C2(v2 - F2), null !== o2 && (M2 = Math.max(M2, o2.colIndex + 1)), v2 = b2(M2), S2 = F2, p2 = c2 - M2), N2.x = I2 - v2, O2.x = N2.x);
10877
+ return { anchorBounds: N2, leftIndex: p2, rightIndex: _2, leftOffset: S2, rightOffset: w2, colSpan: k2, colBounds: O2 };
10878
10878
  };
10879
10879
  class Zm {
10880
10880
  constructor(t5, e2) {
@@ -10929,8 +10929,8 @@ const tf = (t5, e2, n2, r2) => {
10929
10929
  const I2 = Xm(t5, e2), R2 = I2.top + I2.bottom + +xf(e2);
10930
10930
  let A2 = false, M2 = false;
10931
10931
  a2 && (M2 = true, (0 !== _2 || E2) && (M2 = false));
10932
- const N2 = M2 ? void 0 : Km(t5, e2, n2, r2), T2 = I2.left + I2.right + 2;
10933
- if (N2) {
10932
+ const T2 = M2 ? void 0 : Km(t5, e2, n2, r2), N2 = I2.left + I2.right + 2;
10933
+ if (T2) {
10934
10934
  if (t5 === s.Number && "General" === w2 && i2) {
10935
10935
  let t6 = n2, r3 = bt.splitNumber(t6), o3 = "";
10936
10936
  o3 = Math.abs(t6) >= Math.pow(10, 12) || Math.abs(t6) <= Math.pow(10, -12) ? `0.${"0".repeat(Math.max(2, Math.min(r3.ipLength, 5)))}E+00` : 0 === Math.abs(r3.ipLength) ? "0.0" : Math.abs(r3.fpLength) > 0 ? "0".repeat(r3.ipLength) + ".0" : "0".repeat(r3.ipLength), t6 < 0 && (o3 = "-" + o3), o3 = "0".repeat(o3.length);
@@ -10938,11 +10938,11 @@ const tf = (t5, e2, n2, r2) => {
10938
10938
  v2 = s2.width, x2 = s2.lineHeight;
10939
10939
  } else {
10940
10940
  let t6 = null;
10941
- E2 && (t6 = { width: Math.max(1, o2 - T2) });
10942
- const e3 = N2.layout(t6);
10941
+ E2 && (t6 = { width: Math.max(1, o2 - N2) });
10942
+ const e3 = T2.layout(t6);
10943
10943
  v2 = e3.bounds.width, x2 = e3.bounds.height;
10944
10944
  }
10945
- if (null !== v2 && (v2 += T2), null !== x2 && (x2 += R2), A2 = t5 === s.String, _2) {
10945
+ if (null !== v2 && (v2 += N2), null !== x2 && (x2 += R2), A2 = t5 === s.String, _2) {
10946
10946
  A2 && p2 === Zs.Overflow.Wrap && (A2 = false);
10947
10947
  const t6 = ((t7, e3) => {
10948
10948
  const { x: n3, y: r3, width: o3, height: s2 } = t7, i3 = e3 * Math.PI / 180, a3 = Math.sin(i3), l3 = Math.cos(i3), c3 = o3 / 2, h3 = s2 / 2, u3 = Ki(-c3, -h3, a3, l3), d3 = Ki(c3, -h3, a3, l3), g3 = Ki(-c3, h3, a3, l3), m3 = Ki(c3, h3, a3, l3);
@@ -11047,7 +11047,7 @@ class rf {
11047
11047
  let e2, n2;
11048
11048
  if (t5 && (n2 = this.getFormulaText()), e2 = n2 ?? this._v, null === e2) return null;
11049
11049
  const r2 = this.getStyle();
11050
- return n2 ? ((t6, e3) => e3 === s.Null ? null : qi(e3, t6.getFont(), t6.getAlignment(), false, true))(r2, e2, this._options) : Km(this._t, r2, e2, this._options, t5);
11050
+ return n2 ? ((t6, e3) => e3 === s.Null ? null : Ji(e3, t6.getFont(), t6.getAlignment(), false, true))(r2, e2, this._options) : Km(this._t, r2, e2, this._options, t5);
11051
11051
  }
11052
11052
  getValue() {
11053
11053
  return this._v;
@@ -11081,7 +11081,7 @@ class rf {
11081
11081
  createTemporaryCell(t5) {
11082
11082
  const e2 = this._options;
11083
11083
  if (null === t5) return new rf(e2, this._coords, null);
11084
- const n2 = Jm(t5, this._options);
11084
+ const n2 = qm(t5, this._options);
11085
11085
  let r2 = this._rs;
11086
11086
  if (void 0 !== n2.style) {
11087
11087
  const t6 = this._coords ?? Y.EmptyCell, o3 = Y.cellToRange(t6), s3 = () => tf(0, o3, this._rs, this._options), i2 = Cm(this._options.styles, n2.style, s3), a2 = (this._rs?.directStyle ?? new jm(e2.styles, o3)).cloneWithUpdate(i2);
@@ -11098,7 +11098,7 @@ class rf {
11098
11098
  const e2 = this._v;
11099
11099
  return mm(e2, this.getStyle(), this._t, t5, (t6) => this._options.styles.parseColor(t6), this._isDate1904());
11100
11100
  }
11101
- return qm(this._t, this.getStyle(), this._v, this._options);
11101
+ return Jm(this._t, this.getStyle(), this._v, this._options);
11102
11102
  }
11103
11103
  toDate() {
11104
11104
  return this._t !== s.Number ? null : this._rs ? this.getNumberFormat().asDate : null;
@@ -11145,7 +11145,7 @@ class rf {
11145
11145
  }
11146
11146
  getHyperlink() {
11147
11147
  const t5 = this._rs?.hyperlink;
11148
- return t5 ? new Nd(this.toText.bind(this), this._options.opener, t5) : null;
11148
+ return t5 ? new Td(this.toText.bind(this), this._options.opener, t5) : null;
11149
11149
  }
11150
11150
  getErrors() {
11151
11151
  const t5 = this._rs;
@@ -11398,7 +11398,7 @@ const Cf = /^[\\+-]?[0-9]*\.?[0-9]*$/, vf = (t5, e2, n2) => {
11398
11398
  try {
11399
11399
  f2 = Us(t5, e2?.date1904, true);
11400
11400
  let n3 = t5;
11401
- f2 && (n3 = f2.leadingText), n3.trim().length > 0 && (m2 = qs(n3, e2?.date1904)), !m2 && f2?.leadingText.trim().length > 0 && (f2 = null);
11401
+ f2 && (n3 = f2.leadingText), n3.trim().length > 0 && (m2 = Js(n3, e2?.date1904)), !m2 && f2?.leadingText.trim().length > 0 && (f2 = null);
11402
11402
  } catch (t6) {
11403
11403
  }
11404
11404
  if (m2 || f2) {
@@ -11458,7 +11458,7 @@ const Cf = /^[\\+-]?[0-9]*\.?[0-9]*$/, vf = (t5, e2, n2) => {
11458
11458
  const n2 = { ...t5 };
11459
11459
  return e2 ? "boolean" == typeof e2 ? (n2.$colStart = e2, n2.$rowStart = e2, n2.$colEnd = e2, n2.$rowEnd = e2, n2) : ("boolean" == typeof e2.colStart && (n2.$colStart = e2.colStart), "boolean" == typeof e2.rowStart && (n2.$rowStart = e2.rowStart), "boolean" == typeof e2.colEnd && (n2.$colEnd = e2.colEnd), "boolean" == typeof e2.rowEnd && (n2.$rowEnd = e2.rowEnd), n2) : n2;
11460
11460
  };
11461
- class Nf {
11461
+ class Tf {
11462
11462
  constructor(t5, e2, n2) {
11463
11463
  const r2 = this;
11464
11464
  this.setState = (t6) => {
@@ -11498,7 +11498,7 @@ class Nf {
11498
11498
  } };
11499
11499
  }
11500
11500
  }
11501
- const Tf = (t5, e2) => {
11501
+ const Nf = (t5, e2) => {
11502
11502
  if (t5 || e2) return t5 && e2 ? { ...t5, ...e2 } : t5 || e2;
11503
11503
  }, kf = (t5, e2, n2, r2 = i.Orientation.Row) => {
11504
11504
  const o2 = t5.getRange(e2, { excludeHidden: r2 }), s2 = o2.forEach((t6, e3) => ({ break: e3.getCoords() }), { excludeCellDetails: true, orientation: r2 });
@@ -11699,7 +11699,7 @@ class zf {
11699
11699
  }
11700
11700
  }
11701
11701
  var jf, Wf;
11702
- (Wf = jf || (jf = {})).fastStringToCol = Du, Wf.fastStringToCell = ku, Wf.fastStringToRange = Lu, Wf.rangeToString = Eu, Wf.cellToString = Su, Wf.normalizeA1ToR1C1 = Ju, Wf.resolveRelativeToA1 = Vu;
11702
+ (Wf = jf || (jf = {})).fastStringToCol = Du, Wf.fastStringToCell = ku, Wf.fastStringToRange = Lu, Wf.rangeToString = Eu, Wf.cellToString = Su, Wf.normalizeA1ToR1C1 = qu, Wf.resolveRelativeToA1 = Vu;
11703
11703
  const Hf = (t5, e2) => t5.offset - e2.offset, Vf = (t5) => {
11704
11704
  if (!t5 || 0 === t5.size) return [];
11705
11705
  let e2 = [];
@@ -11769,14 +11769,14 @@ const Gf = (t5, e2) => t5.offset - e2.offset, Uf = (t5) => {
11769
11769
  return t5.forEach((t6, n2) => {
11770
11770
  t6 && 0 !== Object.keys(t6).length && e2.push({ ...t6, offset: n2 });
11771
11771
  }), e2.sort(Gf);
11772
- }, Jf = (t5, e2 = /* @__PURE__ */ new Map()) => {
11772
+ }, qf = (t5, e2 = /* @__PURE__ */ new Map()) => {
11773
11773
  if (!t5 || 0 === t5.length) return e2;
11774
11774
  for (let n2 = 0; n2 < t5.length; n2++) {
11775
11775
  const r2 = { ...t5[n2] }, o2 = r2.offset;
11776
11776
  delete r2.offset, e2.set(o2, r2);
11777
11777
  }
11778
11778
  return e2;
11779
- }, qf = (t5) => {
11779
+ }, Jf = (t5) => {
11780
11780
  let e2 = 0;
11781
11781
  const n2 = t5.entries();
11782
11782
  let r2 = null;
@@ -11807,7 +11807,7 @@ class Kf extends zf {
11807
11807
  }
11808
11808
  apply(t5) {
11809
11809
  const e2 = this._getState().byOffset, n2 = new Map(e2);
11810
- return Jf(t5, n2), this._updateState({ byOffset: n2, hiddenCount: qf(n2) }, { description: "Set Filter Criteria" }), this.reapply();
11810
+ return qf(t5, n2), this._updateState({ byOffset: n2, hiddenCount: Jf(n2) }, { description: "Set Filter Criteria" }), this.reapply();
11811
11811
  }
11812
11812
  setFieldAt(t5, e2) {
11813
11813
  const n2 = this._getState(), r2 = n2.anchor.colEnd - n2.anchor.colStart + 1;
@@ -11848,7 +11848,7 @@ class Kf extends zf {
11848
11848
  if (r2.forEach((t6, r3) => {
11849
11849
  t6 && 0 !== Object.keys(t6).length && (r3 >= e2 && o2.delete(r3), r3 > e2 && o2.set(r3 + n2, t6));
11850
11850
  }), n2 > 0 && this._getState().hiddenCount > 0) for (let t6 = e2; t6 < e2 + n2; t6++) o2.set(t6, { hiddenButton: true });
11851
- this._updateState({ byOffset: o2, hiddenCount: qf(o2), sort: null }, { description: "Update Fields" });
11851
+ this._updateState({ byOffset: o2, hiddenCount: Jf(o2), sort: null }, { description: "Update Fields" });
11852
11852
  }
11853
11853
  return super._processContainerShift(t5);
11854
11854
  }
@@ -11861,7 +11861,7 @@ class Kf extends zf {
11861
11861
  }
11862
11862
  _fromJSON(t5) {
11863
11863
  const e2 = t5 ?? {}, n2 = { byOffset: /* @__PURE__ */ new Map(), hiddenCount: 0 };
11864
- e2.fields && (Jf(e2.fields, n2.byOffset), n2.hiddenCount = qf(n2.byOffset)), e2.sort, this._updateState(n2, { description: "Load" });
11864
+ e2.fields && (qf(e2.fields, n2.byOffset), n2.hiddenCount = Jf(n2.byOffset)), e2.sort, this._updateState(n2, { description: "Load" });
11865
11865
  }
11866
11866
  toJSON() {
11867
11867
  const t5 = {}, e2 = this._getState();
@@ -11934,7 +11934,7 @@ class tp {
11934
11934
  return this._filter?.getFieldAt(this._offset)?.hiddenButton ?? false;
11935
11935
  }
11936
11936
  }
11937
- class ep extends Tl {
11937
+ class ep extends Nl {
11938
11938
  constructor(t5, e2, n2, r2) {
11939
11939
  super({ ...r2, type: "namedTable" }), this._names = t5, this._sheet = e2, this._table = n2;
11940
11940
  const o2 = this;
@@ -12738,7 +12738,7 @@ class dp {
12738
12738
  }, e3 = (t7, e4 = 0) => 0 === e4 ? t7 : e4 > 0 ? `${t7} lumMod ${100 - e4}, lumOff ${e4}` : e4 < 0 ? `${t7} lumMod ${100 + e4}` : void 0, n2 = (t7) => ({ type: ma.Type.Pattern, patternType: ma.BuiltInSheetPattern.Solid, foreground: t7, background: t7 }), r2 = (t7, e4 = false) => {
12739
12739
  const n3 = { fill: t7 };
12740
12740
  return e4 && (n3.weight = 700), n3;
12741
- }, o2 = (t7, e4 = Ta.StrokeStyle.Thin) => ({ style: e4, color: t7 }), s2 = (t7, e4) => {
12741
+ }, o2 = (t7, e4 = Na.StrokeStyle.Thin) => ({ style: e4, color: t7 }), s2 = (t7, e4) => {
12742
12742
  for (let n3 = 0; n3 < 7; n3++) t7.push(e4(`accent${n3 + 1}`));
12743
12743
  };
12744
12744
  let i2 = 0, a2 = [];
@@ -12750,42 +12750,42 @@ class dp {
12750
12750
  i2 += 7, a2 = [], a2.push(["dk1", "dk1", "lt1"]), s2(a2, (t7) => ["dk1", t7, "lt1"]);
12751
12751
  for (let e4 = 0; e4 < 7; e4++) {
12752
12752
  const s3 = t6("l", e4 + i2), l2 = a2[e4][0], c2 = a2[e4][1], h2 = a2[e4][2];
12753
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2) } }, headerRow: { font: r2(h2, true), fill: n2(c2) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { border: { top: o2(c2) } }, secondRowStripe: { border: { top: o2(c2) } }, firstColumnStripe: { border: { left: o2(c2) } }, secondColumnStripe: { border: { left: o2(c2) } } }));
12753
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2) } }, headerRow: { font: r2(h2, true), fill: n2(c2) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { border: { top: o2(c2) } }, secondRowStripe: { border: { top: o2(c2) } }, firstColumnStripe: { border: { left: o2(c2) } }, secondColumnStripe: { border: { left: o2(c2) } } }));
12754
12754
  }
12755
12755
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15)]), s2(a2, (t7) => [t7, e3(t7, 80)]);
12756
12756
  for (let e4 = 0; e4 < 7; e4++) {
12757
12757
  const s3 = t6("l", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1];
12758
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2), horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(l2, true) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(h2) }, firstColumnStripe: { fill: n2(h2) } }));
12758
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2), horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(l2, true) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(h2) }, firstColumnStripe: { fill: n2(h2) } }));
12759
12759
  }
12760
12760
  i2 = 1, a2 = [], a2.push(["dk1", "dk1", e3("bg1", -15)]), s2(a2, (t7) => [t7, e3(t7, 40), e3(t7, 80)]);
12761
12761
  for (let e4 = 0; e4 < 7; e4++) {
12762
12762
  const s3 = t6("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], u2 = a2[e4][1], d2 = a2[e4][2];
12763
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(u2), right: o2(u2), top: o2(u2), bottom: o2(u2), horizontal: o2(u2) } }, headerRow: { font: r2(c2, true), fill: n2(h2) }, totalRow: { font: r2(l2, true), border: { top: o2(h2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12763
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(u2), right: o2(u2), top: o2(u2), bottom: o2(u2), horizontal: o2(u2) } }, headerRow: { font: r2(c2, true), fill: n2(h2) }, totalRow: { font: r2(l2, true), border: { top: o2(h2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12764
12764
  }
12765
12765
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t7) => [t7, e3(t7, 80), e3(t7, 60)]);
12766
12766
  for (let e4 = 0; e4 < 7; e4++) {
12767
12767
  const s3 = t6("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], u2 = a2[e4][1], d2 = a2[e4][2];
12768
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(u2), border: { horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(c2, true), fill: n2(h2), border: { bottom: o2(c2, Ta.StrokeStyle.Thick) } }, totalRow: { font: r2(c2, true), fill: n2(h2), border: { top: o2(c2, Ta.StrokeStyle.Thick) } }, firstColumn: { font: r2(c2, true), fill: n2(h2) }, lastColumn: { font: r2(c2, true), fill: n2(h2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12768
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(u2), border: { horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(c2, true), fill: n2(h2), border: { bottom: o2(c2, Na.StrokeStyle.Thick) } }, totalRow: { font: r2(c2, true), fill: n2(h2), border: { top: o2(c2, Na.StrokeStyle.Thick) } }, firstColumn: { font: r2(c2, true), fill: n2(h2) }, lastColumn: { font: r2(c2, true), fill: n2(h2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12769
12769
  }
12770
12770
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t7) => [t7, e3(t7, 80), e3(t7, 60)]);
12771
12771
  for (let s3 = 0; s3 < 7; s3++) {
12772
12772
  const l2 = t6("m", s3 + i2), c2 = "dk1", h2 = "lt1", u2 = a2[s3][0], d2 = e3("bg1", -15);
12773
- rp.set(l2.toLocaleLowerCase(), Object.freeze({ name: l2, wholeTable: { font: r2(c2), border: { top: o2(c2, Ta.StrokeStyle.Medium), bottom: o2(c2, Ta.StrokeStyle.Medium), left: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0, right: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0, horizontal: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0, vertical: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0 } }, headerRow: { font: r2(h2, true), fill: n2(u2), border: { bottom: o2(c2, Ta.StrokeStyle.Medium) } }, totalRow: { border: { top: o2(c2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(h2, true), fill: n2(u2) }, lastColumn: { font: r2(h2, true), fill: n2(u2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12773
+ rp.set(l2.toLocaleLowerCase(), Object.freeze({ name: l2, wholeTable: { font: r2(c2), border: { top: o2(c2, Na.StrokeStyle.Medium), bottom: o2(c2, Na.StrokeStyle.Medium), left: 0 === s3 ? o2(c2, Na.StrokeStyle.Thin) : void 0, right: 0 === s3 ? o2(c2, Na.StrokeStyle.Thin) : void 0, horizontal: 0 === s3 ? o2(c2, Na.StrokeStyle.Thin) : void 0, vertical: 0 === s3 ? o2(c2, Na.StrokeStyle.Thin) : void 0 } }, headerRow: { font: r2(h2, true), fill: n2(u2), border: { bottom: o2(c2, Na.StrokeStyle.Medium) } }, totalRow: { border: { top: o2(c2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(h2, true), fill: n2(u2) }, lastColumn: { font: r2(h2, true), fill: n2(u2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12774
12774
  }
12775
12775
  i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35), "dk1"]), s2(a2, (t7) => [t7, e3(t7, 80), e3(t7, 60), e3(t7, 40)]);
12776
12776
  for (let e4 = 0; e4 < 7; e4++) {
12777
12777
  const s3 = t6("m", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1], u2 = a2[e4][2], d2 = a2[e4][3];
12778
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2), border: { top: o2(d2), right: o2(d2), left: o2(d2), bottom: o2(d2), vertical: o2(d2), horizontal: o2(d2) } }, headerRow: { font: r2(l2), fill: n2(h2) }, totalRow: { font: r2(l2), border: { top: o2(c2, Ta.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
12778
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2), border: { top: o2(d2), right: o2(d2), left: o2(d2), bottom: o2(d2), vertical: o2(d2), horizontal: o2(d2) } }, headerRow: { font: r2(l2), fill: n2(h2) }, totalRow: { font: r2(l2), border: { top: o2(c2, Na.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
12779
12779
  }
12780
12780
  i2 = 1, a2 = [], a2.push(["dk1", e3("dk1", 15), e3("dk1", 25), e3("dk1", 50)]), s2(a2, (t7) => ["dk1", e3(t7, -50), e3(t7, -25), t7]);
12781
12781
  for (let e4 = 0; e4 < 7; e4++) {
12782
12782
  const s3 = t6("d", e4 + i2), l2 = "lt1", c2 = a2[e4][0], h2 = a2[e4][1], u2 = a2[e4][2], d2 = a2[e4][3];
12783
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(d2) }, headerRow: { font: r2(l2, true), fill: n2(c2), border: { bottom: o2(l2, Ta.StrokeStyle.Medium) } }, totalRow: { font: r2(l2, true), fill: n2(h2), border: { top: o2(l2, Ta.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true), fill: n2(u2), border: { right: o2(l2, Ta.StrokeStyle.Medium) } }, lastColumn: { font: r2(l2, true), fill: n2(u2), border: { left: o2(l2, Ta.StrokeStyle.Medium) } }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
12783
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(d2) }, headerRow: { font: r2(l2, true), fill: n2(c2), border: { bottom: o2(l2, Na.StrokeStyle.Medium) } }, totalRow: { font: r2(l2, true), fill: n2(h2), border: { top: o2(l2, Na.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true), fill: n2(u2), border: { right: o2(l2, Na.StrokeStyle.Medium) } }, lastColumn: { font: r2(l2, true), fill: n2(u2), border: { left: o2(l2, Na.StrokeStyle.Medium) } }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
12784
12784
  }
12785
12785
  i2 += 7, a2 = [], a2.push([e3("bg1", -15), "dk1", e3("bg1", -35)]), a2.push([e3("accent1", 80), "accent2", e3("accent1", 60)]), a2.push([e3("accent3", 80), "accent4", e3("accent3", 60)]), a2.push([e3("accent5", 80), "accent6", e3("accent5", 60)]);
12786
12786
  for (let e4 = 0; e4 < 4; e4++) {
12787
12787
  const s3 = t6("d", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], u2 = a2[e4][1], d2 = a2[e4][2];
12788
- rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2) }, headerRow: { font: r2(c2, true), fill: n2(u2) }, totalRow: { font: r2(l2, true), border: { top: o2(l2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12788
+ rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2) }, headerRow: { font: r2(c2, true), fill: n2(u2) }, totalRow: { font: r2(l2, true), border: { top: o2(l2, Na.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
12789
12789
  }
12790
12790
  return rp;
12791
12791
  })(), e2 = /* @__PURE__ */ new Map();
@@ -12914,7 +12914,7 @@ class dp {
12914
12914
  return this._indexedLookup;
12915
12915
  }
12916
12916
  parseColor(t5) {
12917
- return Na.parse(t5, this._schemeLookup, this._indexedLookup);
12917
+ return Ta.parse(t5, this._schemeLookup, this._indexedLookup);
12918
12918
  }
12919
12919
  recentColors() {
12920
12920
  return this._mruColors;
@@ -12938,7 +12938,7 @@ class dp {
12938
12938
  }
12939
12939
  getCustomIndexedColors() {
12940
12940
  const t5 = Math.max(this._indexedColors?.length, 66), e2 = [];
12941
- for (let n2 = 0; n2 < t5; n2++) null !== this._indexedColors[n2] && e2.push(this._indexedColors[n2] ?? new Na(rs(n2)?.toString()));
12941
+ for (let n2 = 0; n2 < t5; n2++) null !== this._indexedColors[n2] && e2.push(this._indexedColors[n2] ?? new Ta(rs(n2)?.toString()));
12942
12942
  return e2;
12943
12943
  }
12944
12944
  addListeners(t5, e2) {
@@ -13219,7 +13219,7 @@ class wp {
13219
13219
  }
13220
13220
  var yp, Ep;
13221
13221
  yp || (yp = {});
13222
- class bp extends Nl {
13222
+ class bp extends Tl {
13223
13223
  constructor(t5) {
13224
13224
  super(t5), t5.json && (this._resource = t5.fromResourceId(t5.json.resId));
13225
13225
  }
@@ -13237,20 +13237,20 @@ class bp extends Nl {
13237
13237
  }
13238
13238
  async _asDataUrl() {
13239
13239
  if (this._dataUrl) return this._dataUrl;
13240
- const t5 = await this.getDetails(), e2 = await Tt.getImageDataUrl(t5.asUrl());
13240
+ const t5 = await this.getDetails(), e2 = await Nt.getImageDataUrl(t5.asUrl());
13241
13241
  return this._dataUrl = e2.dataUrl, this._dataUrl;
13242
13242
  }
13243
13243
  toHtml() {
13244
13244
  return null;
13245
13245
  }
13246
13246
  async toImage() {
13247
- const t5 = (await this._asDataUrl()).substring(Tt.DATA_URL_PNG_PREFIX.length), e2 = It.base64ToArrayBuffer(t5);
13247
+ const t5 = (await this._asDataUrl()).substring(Nt.DATA_URL_PNG_PREFIX.length), e2 = It.base64ToArrayBuffer(t5);
13248
13248
  return new Blob([e2], { type: I.png });
13249
13249
  }
13250
13250
  async getDetails() {
13251
13251
  return this._details || (this._details = new Promise(async (t5, e2) => {
13252
13252
  try {
13253
- const e3 = await this._resource.toBuffer(), n2 = await this._resource.getType(), r2 = await Tt.loadImageDetails(e3, n2);
13253
+ const e3 = await this._resource.toBuffer(), n2 = await this._resource.getType(), r2 = await Nt.loadImageDetails(e3, n2);
13254
13254
  t5({ getNaturalDimensions: () => r2.naturalDimensions, asUrl: () => r2.asUrl, asSVGText: () => r2.asSVGText });
13255
13255
  } catch (t6) {
13256
13256
  e2(t6);
@@ -13368,7 +13368,7 @@ const vp = (t5, e2) => {
13368
13368
  r2.insertNonOverlapping({ colStart: e3.colStart, rowStart: e3.rowStart, colEnd: e3.colEnd, rowEnd: e3.rowEnd, value: new td(e3, b2) }), g2 && l2?.insertNonOverlapping(e3), a2?.push(e3), p2 = Y.unionRanges(p2, e3);
13369
13369
  }
13370
13370
  return p2;
13371
- }, Np = (t5, e2, n2) => {
13371
+ }, Tp = (t5, e2, n2) => {
13372
13372
  if (!e2) return t5;
13373
13373
  const r2 = e2.block;
13374
13374
  if (!r2) return t5;
@@ -13379,7 +13379,7 @@ const vp = (t5, e2) => {
13379
13379
  let d2 = e2.dynamic;
13380
13380
  return d2 || (d2 = [], e2.dynamic = d2), d2.push(u2), o2.push(u2), o2;
13381
13381
  };
13382
- class Tp {
13382
+ class Np {
13383
13383
  constructor(t5) {
13384
13384
  this._fullCalcRequired = false, this._iterationId = 0, this._cycleId = 1, this._pendingInvalidations = /* @__PURE__ */ new Set(), this._emitter = null, this._isProcessingJSON = false, this._collectDirties = (t6, e3 = false, n3, r3) => {
13385
13385
  const o2 = this._formulaSpatial, s2 = this._precedentSpatial;
@@ -13553,7 +13553,7 @@ class Tp {
13553
13553
  }
13554
13554
  clone(t5) {
13555
13555
  if (void 0 !== t5 && this._cloneKey === t5) return this;
13556
- const e2 = new Tp(this._options);
13556
+ const e2 = new Np(this._options);
13557
13557
  e2._cloneKey = t5, e2._values = this._values.clone(e2), e2._contentfulSpatial = this._contentfulSpatial.clone(e2), e2._formulaSpatial = this._formulaSpatial.clone(e2), e2._precedentSpatial = this._precedentSpatial.clone(e2), e2._volatile = new Set(this._volatile), e2._spillSpatial = this._spillSpatial.clone(e2), e2._errorSpatial = this._errorSpatial.clone(e2), e2._pendingSpatial = this._pendingSpatial.clone(e2), e2._invalidations = this._invalidations.clone(e2), e2._notifyValues = this._notifyValues.clone(e2), e2._notifySpills = this._notifySpills.clone(e2), e2._notifyFormats = this._notifyFormats.clone(e2), e2._notifyPending = this._notifyPending.clone(e2);
13558
13558
  const n2 = this._notifyFormulaInsertEntries;
13559
13559
  n2 && (e2._notifyFormulaInsertEntries = [...n2]);
@@ -13923,18 +13923,18 @@ class Tp {
13923
13923
  }
13924
13924
  _markAndPlan(t5, e2, n2) {
13925
13925
  let r2;
13926
- qp = 0, Zp = 0, t_ = 0, n_ = 0;
13926
+ Jp = 0, Zp = 0, t_ = 0, n_ = 0;
13927
13927
  const o2 = this._precedentSpatial, s2 = this._formulaSpatial;
13928
13928
  Xp = 0, Yp = 0;
13929
13929
  const i2 = this._cycleId, a2 = e2.length;
13930
13930
  for (let t6 = 0; t6 < a2; t6++) {
13931
13931
  const r3 = e2[t6];
13932
- r3.markId !== n2 && (r3.markId = n2, r3.cycleId = i2, r3.inDegree = 0, Jp[qp++] = r3, Kp[Yp++] = r3);
13932
+ r3.markId !== n2 && (r3.markId = n2, r3.cycleId = i2, r3.inDegree = 0, qp[Jp++] = r3, Kp[Yp++] = r3);
13933
13933
  }
13934
13934
  const l2 = (e3, n3, o3) => {
13935
13935
  (t5 || e3.state === nd) && (r2 || (r2 = []), r2.push(n3), t5 || o3(e3));
13936
13936
  }, c2 = (t6) => {
13937
- t6.markId !== n2 && (t6.markId = n2, t6.cycleId = i2, t6.inDegree = 0, Jp[qp++] = t6, Kp[Yp++] = t6);
13937
+ t6.markId !== n2 && (t6.markId = n2, t6.cycleId = i2, t6.inDegree = 0, qp[Jp++] = t6, Kp[Yp++] = t6);
13938
13938
  };
13939
13939
  for (; Xp < Yp; ) {
13940
13940
  const t6 = Kp[Xp++], e3 = t6.colIndex, n3 = t6.rowIndex;
@@ -13946,8 +13946,8 @@ class Tp {
13946
13946
  s4 ? l2(s4, o3, c2) : Op(o3, n3, e3, c2);
13947
13947
  }
13948
13948
  }
13949
- for (let t6 = 0; t6 < qp; t6++) {
13950
- const e3 = Jp[t6], r3 = e3.block, o3 = e3.rowIndex, i3 = e3.colIndex, a3 = r3.formula.getDirectPrecedentsAt(o3, i3);
13949
+ for (let t6 = 0; t6 < Jp; t6++) {
13950
+ const e3 = qp[t6], r3 = e3.block, o3 = e3.rowIndex, i3 = e3.colIndex, a3 = r3.formula.getDirectPrecedentsAt(o3, i3);
13951
13951
  let l3 = 0;
13952
13952
  const c3 = e3.precedents;
13953
13953
  for (let t7 = 0; t7 < a3.length; t7++) {
@@ -13988,7 +13988,7 @@ class Tp {
13988
13988
  s4 ? l2(s4, o3, h2) : Op(o3, n3, e3, h2);
13989
13989
  }
13990
13990
  }
13991
- return n_ < qp ? { completed: false, onces: r2 } : { completed: true, onces: r2 };
13991
+ return n_ < Jp ? { completed: false, onces: r2 } : { completed: true, onces: r2 };
13992
13992
  }
13993
13993
  _evaluate(t5) {
13994
13994
  const e2 = this._calculation._getContext(), n2 = this._calculation._getScope();
@@ -14036,13 +14036,13 @@ class Tp {
14036
14036
  }
14037
14037
  E2.pendingPrecedents = R2;
14038
14038
  }
14039
- const M2 = _2 ? C2 : v2, N2 = _2 ? v2 : C2;
14039
+ const M2 = _2 ? C2 : v2, T2 = _2 ? v2 : C2;
14040
14040
  n2.node = E2, n2.colIndex = C2, n2.rowIndex = v2;
14041
- const T2 = b2.formula;
14041
+ const N2 = b2.formula;
14042
14042
  let k2, F2;
14043
14043
  const O2 = E2.pending;
14044
14044
  let D2 = O2;
14045
- if ((R2 || E2.pendingPromise) && (D2 = true, k2 = E2.cachedValue ?? null, E2.pendingPromise && (E2.pendingResolved ? (E2.pendingPromise = null, E2.pendingResolved = false, D2 = false) : (E2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (n2.formula = T2, n2.colIndex = C2, n2.rowIndex = v2, k2 = T2.evaluate(e2, void 0, E2.inputs), n2.formula = null, F2 = k2 && k2.then ? k2 : null, D2 = !!F2), D2 !== O2 && (E2.pending = D2, S2 || (S2 = rh(_2)), S2.append(M2, N2, D2)), F2 && (k2 = E2.cachedValue ?? null, !F2.__originator)) {
14045
+ if ((R2 || E2.pendingPromise) && (D2 = true, k2 = E2.cachedValue ?? null, E2.pendingPromise && (E2.pendingResolved ? (E2.pendingPromise = null, E2.pendingResolved = false, D2 = false) : (E2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (n2.formula = N2, n2.colIndex = C2, n2.rowIndex = v2, k2 = N2.evaluate(e2, void 0, E2.inputs), n2.formula = null, F2 = k2 && k2.then ? k2 : null, D2 = !!F2), D2 !== O2 && (E2.pending = D2, S2 || (S2 = rh(_2)), S2.append(M2, T2, D2)), F2 && (k2 = E2.cachedValue ?? null, !F2.__originator)) {
14046
14046
  F2.__originator = a2;
14047
14047
  const t6 = E2;
14048
14048
  Up.add(t6), t6.pendingPromise = F2, t6.pendingResolved = false, F2.then((n3) => {
@@ -14089,16 +14089,16 @@ class Tp {
14089
14089
  let o3, s3;
14090
14090
  if (U2) {
14091
14091
  k2 = l.BuiltIn.Spill, W2 = 1, H2 = 1;
14092
- o3 = [[M2, [[N2, [k2]]]]], f2.setValues(o3), s3 = { colStart: C2, rowStart: v2, colEnd: C2, rowEnd: v2 };
14092
+ o3 = [[M2, [[T2, [k2]]]]], f2.setValues(o3), s3 = { colStart: C2, rowStart: v2, colEnd: C2, rowEnd: v2 };
14093
14093
  } else {
14094
- const e3 = Ap(V2, M2, N2);
14094
+ const e3 = Ap(V2, M2, T2);
14095
14095
  e3 && (o3 = e3.tuples), o3 && f2.setValues(o3), s3 = t6;
14096
14096
  }
14097
- G2 = { ...t6, value: new Zu(t6, a2, U2) }, m2.insert(G2), y2 = Np(y2, E2, t6), u2.insertNonOverlapping(s3), c2.insertNonOverlapping(s3), h2.insertNonOverlapping({ ...s3, value: new td(s3, p2) });
14097
+ G2 = { ...t6, value: new Zu(t6, a2, U2) }, m2.insert(G2), y2 = Tp(y2, E2, t6), u2.insertNonOverlapping(s3), c2.insertNonOverlapping(s3), h2.insertNonOverlapping({ ...s3, value: new td(s3, p2) });
14098
14098
  }
14099
14099
  (!Y.isEqualRanges(z2, G2) || U2 || j2) && (z2 && d2.insert(z2), G2 && d2.insert(G2)), W2 === L2 && H2 === B2 || (E2.state = rd, c2.insertNonOverlapping({ colStart: C2, rowStart: v2, colEnd: C2 + Math.max(W2, L2) - 1, rowEnd: v2 + Math.max(H2, B2) - 1 }), s2 = false);
14100
- let J2 = k2 && k2.isFormulaError ? k2 : null;
14101
- T2.getError() && (J2 = T2.getError()), (J2 || I2 && !t5) && (J2 && !J2.equals(I2) || I2 && I2.equals(J2)), E2.cachedValue = k2, r2[o2++] = E2;
14100
+ let q2 = k2 && k2.isFormulaError ? k2 : null;
14101
+ N2.getError() && (q2 = N2.getError()), (q2 || I2 && !t5) && (q2 && !q2.equals(I2) || I2 && I2.equals(q2)), E2.cachedValue = k2, r2[o2++] = E2;
14102
14102
  }
14103
14103
  if (n2.node = null, n2.colIndex = Number.MAX_SAFE_INTEGER, n2.rowIndex = Number.MAX_SAFE_INTEGER, S2) {
14104
14104
  const t6 = S2.done(true);
@@ -14252,7 +14252,7 @@ class Tp {
14252
14252
  }
14253
14253
  h3.value = new Zu(d3, 0, u3), r3.push(h3);
14254
14254
  const v2 = { colStart: g3, rowStart: m3, colEnd: f3, rowEnd: p2, value: u3 };
14255
- Y.isSingleCell(v2) || t6.push(v2), Np(s3, C2, d3);
14255
+ Y.isSingleCell(v2) || t6.push(v2), Tp(s3, C2, d3);
14256
14256
  }
14257
14257
  this._spillSpatial.load(r3), this._precedentSpatial.load(s3), t6.length > 0 && (n2.spillInserts = t6);
14258
14258
  }
@@ -14380,8 +14380,8 @@ const kp = (t5, e2, n2, r2) => {
14380
14380
  new l.Calc("Cyclical dependency");
14381
14381
  const Wp = (t5) => new Wl(t5);
14382
14382
  let Hp = 0;
14383
- const Vp = 1e4, $p = new Array(Vp), Gp = new Array(Vp), Up = /* @__PURE__ */ new Set(), Jp = new Array(Vp);
14384
- let qp = 0;
14383
+ const Vp = 1e4, $p = new Array(Vp), Gp = new Array(Vp), Up = /* @__PURE__ */ new Set(), qp = new Array(Vp);
14384
+ let Jp = 0;
14385
14385
  const Kp = new Array(Vp);
14386
14386
  let Xp = 0, Yp = 0;
14387
14387
  const Qp = new Array(Vp);
@@ -14408,7 +14408,7 @@ class c_ {
14408
14408
  async _initialize() {
14409
14409
  const t5 = await je._validate(true), e2 = u_();
14410
14410
  this._calcScope = e2, this._runtime = new h_(this._options, t5);
14411
- const { initializeBuiltIns: n2 } = await import("./kQVOc3F7_ib5L98K.mjs"), r2 = this;
14411
+ const { initializeBuiltIns: n2 } = await import("./rpVHlxg6GM8pJL5c.mjs"), r2 = this;
14412
14412
  return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
14413
14413
  }
14414
14414
  getBuiltInFunctions() {
@@ -14501,7 +14501,7 @@ class c_ {
14501
14501
  if ("string" == typeof t5) {
14502
14502
  if (e2) throw l.BuiltIn.Ref;
14503
14503
  try {
14504
- const n3 = Tu(t5, r2(), Ru, () => {
14504
+ const n3 = Nu(t5, r2(), Ru, () => {
14505
14505
  throw l.BuiltIn.Ref;
14506
14506
  }, e2);
14507
14507
  if (n3.length > 1) throw l.BuiltIn.Ref;
@@ -14522,7 +14522,7 @@ class c_ {
14522
14522
  if (a2) {
14523
14523
  const e3 = a2.calc;
14524
14524
  s2 = e3 && e3.isIReferenceRange ? e3.cachedValue : new Cp(o2, void 0, t5, null, r2);
14525
- } else n2.dynamicPrecedentsInserts = Np(n2.dynamicPrecedentsInserts, i2, t5), s2 = new Cp(o2, void 0, t5, null, r2);
14525
+ } else n2.dynamicPrecedentsInserts = Tp(n2.dynamicPrecedentsInserts, i2, t5), s2 = new Cp(o2, void 0, t5, null, r2);
14526
14526
  return s2;
14527
14527
  }
14528
14528
  getAddress(t5, e2 = false) {
@@ -14535,7 +14535,7 @@ class c_ {
14535
14535
  let r2 = t6, o2 = Us(t6, e3, true);
14536
14536
  o2 && (r2 = o2.leadingText);
14537
14537
  let s2 = null;
14538
- if (r2.trim().length > 0 && (s2 = qs(r2, e3), !s2 && n2)) return null;
14538
+ if (r2.trim().length > 0 && (s2 = Js(r2, e3), !s2 && n2)) return null;
14539
14539
  !s2 && o2?.leadingText.trim().length > 0 && (o2 = null);
14540
14540
  let i2 = 0;
14541
14541
  return s2 && (i2 += s2.asOADate), o2 && (i2 += o2.parsed.oaDateTime), i2;
@@ -14581,7 +14581,7 @@ class h_ {
14581
14581
  }
14582
14582
  getVersion() {
14583
14583
  try {
14584
- const t5 = "0.4.19";
14584
+ const t5 = "0.4.20";
14585
14585
  if (-1 === t5.indexOf(".env.")) return `${t5}`;
14586
14586
  } catch (t5) {
14587
14587
  return "local";
@@ -14697,7 +14697,7 @@ var v_;
14697
14697
  (v_ || (v_ = {})).Context = { Workbook: "workbook", Sheet: "sheet", Ranges: "ranges", Range: "range", Calculation: "calculation" };
14698
14698
  class x_ {
14699
14699
  constructor(t5, e2, n2, r2 = null, o2 = false) {
14700
- this._ct = v_.Context.Calculation, this._builtIn = false, this._broadcast = false, this._pj = null, this._json = t5, this._n = t5.name, this._d = new T_(t5), this._ct = t5.context ?? v_.Context.Calculation;
14700
+ this._ct = v_.Context.Calculation, this._builtIn = false, this._broadcast = false, this._pj = null, this._json = t5, this._n = t5.name, this._d = new N_(t5), this._ct = t5.context ?? v_.Context.Calculation;
14701
14701
  const s2 = t5.parameters;
14702
14702
  let i2;
14703
14703
  this._pj = s2, e2 || (console.log(`TypeFunction '${t5.name}' was not provided a function implementation.`), e2 = () => {
@@ -14872,7 +14872,7 @@ class M_ extends A_ {
14872
14872
  return this._e;
14873
14873
  }
14874
14874
  }
14875
- class N_ extends A_ {
14875
+ class T_ extends A_ {
14876
14876
  constructor(t5) {
14877
14877
  super(t5), this._a = t5.async ?? false, this._stream = t5.stream ?? false;
14878
14878
  }
@@ -14883,14 +14883,14 @@ class N_ extends A_ {
14883
14883
  return this._stream;
14884
14884
  }
14885
14885
  }
14886
- class T_ {
14886
+ class N_ {
14887
14887
  constructor(t5) {
14888
14888
  if (this._n = t5.name, t5.parameters) {
14889
14889
  const e2 = t5.parameters.length, n2 = new Array(e2);
14890
14890
  for (let r2 = 0; r2 < e2; r2++) n2[r2] = new M_(t5.parameters[r2]);
14891
14891
  this._p = Object.freeze(n2);
14892
14892
  } else this._p = bt.EmptyArray;
14893
- t5.returnType ? this._r = new N_(t5.returnType) : this._r = new N_({ scalar: null, arrayDepth: 0, range: null });
14893
+ t5.returnType ? this._r = new T_(t5.returnType) : this._r = new T_({ scalar: null, arrayDepth: 0, range: null });
14894
14894
  }
14895
14895
  getName() {
14896
14896
  return this._n;
@@ -14959,7 +14959,7 @@ const F_ = (t5, e2, n2, r2, o2, s2, i2, a2) => {
14959
14959
  if (1 !== r3.size) return n3 ? l.BuiltIn.Value : r3;
14960
14960
  r3 = r3.getValueAt(0, 0);
14961
14961
  }
14962
- return e3 && (r3 = qh(r3, $h(r3, true), e3)), r3;
14962
+ return e3 && (r3 = Jh(r3, $h(r3, true), e3)), r3;
14963
14963
  })(n2, r2, true);
14964
14964
  return t6 instanceof l.Known ? t6 : void e2.push(t6);
14965
14965
  }
@@ -14989,7 +14989,7 @@ const F_ = (t5, e2, n2, r2, o2, s2, i2, a2) => {
14989
14989
  }
14990
14990
  {
14991
14991
  if (!Array.isArray(n2)) {
14992
- if (r2 && (n2 = qh(n2, $h(n2, true), r2, false), n2?.isFormulaError)) return e2.push(n2), n2;
14992
+ if (r2 && (n2 = Jh(n2, $h(n2, true), r2, false), n2?.isFormulaError)) return e2.push(n2), n2;
14993
14993
  n2 = [n2];
14994
14994
  }
14995
14995
  const l2 = n2.length;
@@ -15088,7 +15088,7 @@ class D_ {
15088
15088
  return true;
15089
15089
  }
15090
15090
  }
15091
- class L_ extends Nl {
15091
+ class L_ extends Tl {
15092
15092
  constructor(t5) {
15093
15093
  super(t5), this._status = Ep.Status.Off, this._statusTransition = null, this._emitter = new Ml(this);
15094
15094
  }
@@ -15106,7 +15106,7 @@ class L_ extends Nl {
15106
15106
  this._context = r2;
15107
15107
  const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
15108
15108
  this._functions = new D_({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
15109
- const i2 = await import("./BSbOEM-6aEtAEUn2.mjs");
15109
+ const i2 = await import("./MrOJ8ENTixputV8_.mjs");
15110
15110
  this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = Ep.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
15111
15111
  } catch (t5) {
15112
15112
  throw this._status = Ep.Status.Off, this._emitter.notify("onError", t5), this._emitter.notify("onStatusChange"), t5;
@@ -15117,7 +15117,7 @@ class L_ extends Nl {
15117
15117
  }
15118
15118
  _createGraph(t5) {
15119
15119
  const e2 = this._options;
15120
- return new Tp({ ...e2, ...t5, getFormulaParser: () => this._formulaParser, calculation: this });
15120
+ return new Np({ ...e2, ...t5, getFormulaParser: () => this._formulaParser, calculation: this });
15121
15121
  }
15122
15122
  async stop() {
15123
15123
  this._status === Ep.Status.Ready && (this._status = Ep.Status.Stopping, this._emitter.notify("onStatusChange"), this._emitter.notify("onStopping"), this._status = Ep.Status.Off, this._emitter.notify("onStatusChange"), this._emitter.notify("onStop"));
@@ -15165,7 +15165,7 @@ class G_ {
15165
15165
  t6.includes(r3) && delete o2[r3];
15166
15166
  }
15167
15167
  }
15168
- const s2 = Td(o2.fontFamily);
15168
+ const s2 = Nd(o2.fontFamily);
15169
15169
  r2.font = {}, s2 && (r2.font.family = s2.family, r2.font.fallbacks = s2.fallbacks, r2.font.size = s2.size), r2.font.size = o2.fontSize, r2.font.weight = o2.fontWeight, r2.font.style = o2.fontStyle, r2.font.fill = o2.color;
15170
15170
  const i2 = ((t6) => {
15171
15171
  if (!t6) return Dd;
@@ -15255,7 +15255,7 @@ class G_ {
15255
15255
  }
15256
15256
  }
15257
15257
  let U_ = false;
15258
- class J_ {
15258
+ class q_ {
15259
15259
  constructor(t5, e2) {
15260
15260
  this._mapStylesByName = /* @__PURE__ */ new Map(), this._arrStyleNames = [], this._mapStylesByName = t5, this._arrStyleNames = e2;
15261
15261
  }
@@ -15279,7 +15279,7 @@ class J_ {
15279
15279
  this._node.htmlText = t5.replace(/(?:\r\n|\r|\n)/g, "<br>");
15280
15280
  }
15281
15281
  }
15282
- const q_ = (t5) => {
15282
+ const J_ = (t5) => {
15283
15283
  const e2 = {};
15284
15284
  if (!t5) return e2;
15285
15285
  t5.endsWith(";") || (t5 += ";");
@@ -15324,7 +15324,7 @@ const q_ = (t5) => {
15324
15324
  }
15325
15325
  const s3 = t7.getAttribute("style");
15326
15326
  if (s3) {
15327
- const t8 = q_(s3);
15327
+ const t8 = J_(s3);
15328
15328
  t8 && (n3 = Object.assign(n3, t8));
15329
15329
  }
15330
15330
  return t7.getAttribute("align") && !n3.textAlign && (n3.textAlign = t7.getAttribute("align")), n3;
@@ -15347,7 +15347,7 @@ const q_ = (t5) => {
15347
15347
  const t9 = new RegExp("{(.*?)}", "gs");
15348
15348
  let e5, r4 = 0;
15349
15349
  for (; null !== (e5 = t9.exec(o3)); ) try {
15350
- const t10 = o3.substring(r4, e5.index), s4 = q_(e5[1]);
15350
+ const t10 = o3.substring(r4, e5.index), s4 = J_(e5[1]);
15351
15351
  n3.set(t10.trim(), s4), r4 = e5.index + e5[0].length;
15352
15352
  } catch (t10) {
15353
15353
  console.warn(t10);
@@ -15830,7 +15830,7 @@ class eS {
15830
15830
  }
15831
15831
  }
15832
15832
  const nS = { transactional: true, ignoreDataChanges: true };
15833
- class rS extends Tl {
15833
+ class rS extends Nl {
15834
15834
  constructor(t5) {
15835
15835
  super({ ...t5, type: "namedReference" });
15836
15836
  const e2 = this;
@@ -16264,7 +16264,7 @@ class hS {
16264
16264
  return true;
16265
16265
  }
16266
16266
  }
16267
- class uS extends Nl {
16267
+ class uS extends Tl {
16268
16268
  constructor(t5) {
16269
16269
  super(t5), t5.json && this._updateState({ data: t5.json });
16270
16270
  }
@@ -16284,7 +16284,7 @@ class uS extends Nl {
16284
16284
  return "Chart";
16285
16285
  }
16286
16286
  }
16287
- class dS extends Nl {
16287
+ class dS extends Tl {
16288
16288
  constructor(t5) {
16289
16289
  super(t5), t5.json && this._updateState({ data: t5.json });
16290
16290
  }
@@ -16304,7 +16304,7 @@ class dS extends Nl {
16304
16304
  return "Shape";
16305
16305
  }
16306
16306
  }
16307
- class gS extends Nl {
16307
+ class gS extends Tl {
16308
16308
  constructor(t5) {
16309
16309
  super(t5), t5.json && this._updateState({ data: t5.json });
16310
16310
  }
@@ -16705,7 +16705,7 @@ class bS {
16705
16705
  return [new bS(t5[0], e2), new bS(t5[1], e2)];
16706
16706
  }
16707
16707
  }
16708
- class CS extends Nl {
16708
+ class CS extends Tl {
16709
16709
  constructor(t5) {
16710
16710
  if (super({ ...t5 }), this._coordsCache = null, !t5.json) throw new Error("json is required");
16711
16711
  this._sheet = t5.sheet, this._styles = t5.sheet?.getStyles() ?? new dp(), this._options = { ...t5 }, t5.setOnContainerCoordsChange(this._processCoordsChange.bind(this)), t5.setCreateSpatial(this._createSpatial.bind(this)), this._getContainerRanges = t5.getContainerRanges, this._setContainerRanges = t5.setContainerRanges;
@@ -16849,7 +16849,7 @@ class vS {
16849
16849
  this._add = t5, this._get = e2;
16850
16850
  }
16851
16851
  add(t5, e2) {
16852
- if (!t5) throw new Error(qu);
16852
+ if (!t5) throw new Error(Ju);
16853
16853
  return this._add(t5, e2);
16854
16854
  }
16855
16855
  search(t5) {
@@ -16907,7 +16907,7 @@ class IS {
16907
16907
  var c2;
16908
16908
  r2(a2.getRotation(), l2.getRotation()) || (n2["mso-rotate"] = (c2 = a2.getRotation(), (c2 %= 360) < 0 && (c2 += 360), c2 > 180 ? c2 = 360 - c2 : c2 > 1 && (c2 *= -1), c2)), r2(a2.getIndent(), l2.getIndent()) || (n2["mso-char-indent-count"] = a2.getIndent()), r2(t5.getFill(), s2.getFill()) || xS(n2, t5.getFill());
16909
16909
  const h2 = t5.getBorder();
16910
- return h2.getTop().isNone() || (n2["border-top"] = Ng(h2.getTop())), h2.getLeft().isNone() || (n2["border-left"] = Ng(h2.getLeft())), h2.getRight().isNone() || (n2["border-right"] = Ng(h2.getRight())), h2.getBottom().isNone() || (n2["border-bottom"] = Ng(h2.getBottom())), h2.getDiagonalUp().isNone() || (n2["border-mso-diagonal-up"] = Ng(h2.getDiagonalUp())), h2.getDiagonalDown().isNone() || (n2["border-mso-diagonal-down"] = Ng(h2.getDiagonalDown())), 0 === Object.keys(n2).length ? null : n2;
16910
+ return h2.getTop().isNone() || (n2["border-top"] = Tg(h2.getTop())), h2.getLeft().isNone() || (n2["border-left"] = Tg(h2.getLeft())), h2.getRight().isNone() || (n2["border-right"] = Tg(h2.getRight())), h2.getBottom().isNone() || (n2["border-bottom"] = Tg(h2.getBottom())), h2.getDiagonalUp().isNone() || (n2["border-mso-diagonal-up"] = Tg(h2.getDiagonalUp())), h2.getDiagonalDown().isNone() || (n2["border-mso-diagonal-down"] = Tg(h2.getDiagonalDown())), 0 === Object.keys(n2).length ? null : n2;
16911
16911
  }
16912
16912
  _createCSSNormalStyle() {
16913
16913
  const t5 = this._normalStyle, e2 = { "padding-top": "1px", "padding-left": "1px", "padding-right": "1px", "mso-ignore": "padding" }, n2 = t5.getFont(), r2 = t5.getAlignment();
@@ -16950,7 +16950,7 @@ class IS {
16950
16950
  }
16951
16951
  }
16952
16952
  const RS = (t5, e2, n2) => {
16953
- const r2 = t5.getOrientation() === T.Column, o2 = (r2 ? "Column" : "Row") + " Copy", s2 = t5.getSnapshot(n2);
16953
+ const r2 = t5.getOrientation() === N.Column, o2 = (r2 ? "Column" : "Row") + " Copy", s2 = t5.getSnapshot(n2);
16954
16954
  return { ...s2, getName: () => o2, getCoords: () => e2, copyTo: async (t6, o3) => {
16955
16955
  const i2 = r2 ? t6.getColumnHeaders() : t6.getRowHeaders(), a2 = { ...n2, ...o3 };
16956
16956
  if (true === a2.includeHeaders) {
@@ -16966,7 +16966,7 @@ const RS = (t5, e2, n2) => {
16966
16966
  const [t6, n3] = ((t7, e3) => {
16967
16967
  const n4 = e3.getRowHeaders(), r3 = e3.getColumnHeaders(), o3 = e3.getUsedRange()?.getCoords(), s3 = n4.getUsedRange()?.getCoords(), i3 = r3.getUsedRange()?.getCoords(), a3 = { ...Y.EmptyRange, ...o3, colEnd: Math.max(o3?.colEnd ?? 0, i3?.max ?? 0), rowEnd: Math.max(o3?.rowEnd ?? 0, s3?.max ?? 0) }, l3 = /* @__PURE__ */ new Map(), c3 = [];
16968
16968
  t7.onStart?.();
16969
- const h2 = { rows: [], cols: [] }, u2 = new J_(l3, c3);
16969
+ const h2 = { rows: [], cols: [] }, u2 = new q_(l3, c3);
16970
16970
  u2.setNode(h2), t7.onTable?.(u2, a3);
16971
16971
  let d2 = 0;
16972
16972
  r3.forEachSpan((e4, n5) => {
@@ -17044,7 +17044,7 @@ const RS = (t5, e2, n2) => {
17044
17044
  const n3 = { ...o2, ...e3 };
17045
17045
  return e3.isCut, s2(t6, n3);
17046
17046
  }, getMarkOptions: () => o2, getSource: () => t5, getName: () => r2, getCoords: () => i2, toText: () => (c2(), l2), toHtml: () => (c2(), a2), toImage: () => null, isISnapshot: true };
17047
- }, MS = (t5, e2) => Math.round(t5 * e2), NS = (t5, e2, n2) => {
17047
+ }, MS = (t5, e2) => Math.round(t5 * e2), TS = (t5, e2, n2) => {
17048
17048
  const r2 = [], o2 = [];
17049
17049
  if (!t5 || 0 === t5.length) return { sizes: r2, hidden: o2 };
17050
17050
  if (!e2 || !n2) return console.warn("_HeaderUtils:default size and scaleFactor should be available"), { sizes: r2, hidden: o2 };
@@ -17061,7 +17061,7 @@ const RS = (t5, e2, n2) => {
17061
17061
  }
17062
17062
  return { sizes: r2, hidden: o2 };
17063
17063
  };
17064
- function TS(t5, e2, n2) {
17064
+ function NS(t5, e2, n2) {
17065
17065
  void 0 !== n2 && (null !== n2 ? t5[e2] = n2 : delete t5[e2]);
17066
17066
  }
17067
17067
  const kS = () => {
@@ -17088,7 +17088,7 @@ const DS = (t5, e2, n2, r2) => {
17088
17088
  isNaN(l2) && (console.warn("headerSize can not be NaN"), l2 = void 0), 0 === l2 && (a2 = true, l2 = void 0), i2 = !o2.autoSize;
17089
17089
  } else null === l2 ? (l2 = null, i2 = !o2.autoSize) : void 0 !== l2 && (console.warn("headerSize can not be type", l2), l2 = void 0);
17090
17090
  }
17091
- return TS(s2, "sz", l2), TS(s2, "h", a2), TS(s2, "csz", i2), 0 === Object.keys(s2).length ? null : s2;
17091
+ return NS(s2, "sz", l2), NS(s2, "h", a2), NS(s2, "csz", i2), 0 === Object.keys(s2).length ? null : s2;
17092
17092
  }
17093
17093
  }
17094
17094
  };
@@ -17182,7 +17182,7 @@ class WS {
17182
17182
  const t5 = -1 === this._defaultCustomSize ? this._options.defaultSize() : this._defaultCustomSize, e2 = this._options.scaleFactor();
17183
17183
  if (t5 !== this._defaultSize || e2 !== this._scaleFactor) {
17184
17184
  this._defaultSize = t5, this._scaleFactor = e2, this._defaultPxSize = MS(t5, e2);
17185
- const n2 = NS(this._headers, t5, e2);
17185
+ const n2 = TS(this._headers, t5, e2);
17186
17186
  this._indexedSizes = n2.sizes, this._indexedHidden = n2.hidden, this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null;
17187
17187
  }
17188
17188
  }
@@ -17194,7 +17194,7 @@ class WS {
17194
17194
  this._defaultSize = n2;
17195
17195
  const r2 = this._scaleFactor;
17196
17196
  this._defaultPxSize = MS(n2, r2);
17197
- const o2 = NS(t5, n2, r2);
17197
+ const o2 = TS(t5, n2, r2);
17198
17198
  this._indexedSizes = o2.sizes, this._indexedHidden = o2.hidden, this._lastHeaderRead = null, this._readCache = la(this._lastHeaders), this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null;
17199
17199
  const s2 = this._options.sheet.getStyles().getNormal();
17200
17200
  let i2 = false, a2 = false, l2 = false, c2 = -1;
@@ -17242,7 +17242,7 @@ class WS {
17242
17242
  return _2 = null, w2;
17243
17243
  }
17244
17244
  getRange(t5, e2) {
17245
- if (!t5) throw new Error(qu);
17245
+ if (!t5) throw new Error(Ju);
17246
17246
  const n2 = this, r2 = this._parseHeaderRangeAddress(t5);
17247
17247
  if (r2.min < 0 || r2.max > this._maxDataIndex) return function(t6) {
17248
17248
  const e3 = { getCoords: () => null, getOrientation: () => t6.getOrientation(), toString: () => au, getA1: () => au, getCount: FS, getVisibleCount: FS, isEntireHeaders: OS, forEach: kS, forEachSpan: kS, forEachVisibleSpan: kS, getUsedRange: Qu, getSnapshot: Qu, updateHeaders: Qu, clear: Qu, setHidden: Qu, setSize: Qu, at: Qu, doBatch: Qu, getSheetHeader: () => t6, isICellHeaderRange: true };
@@ -17401,10 +17401,10 @@ class WS {
17401
17401
  if (!t5 || 0 === t5.length) return null;
17402
17402
  const n2 = e2?.skipCustomSize ?? false, r2 = this._isColumn, o2 = this.getSheet().getStyles(), s2 = this._beginCommit({ description: e2?.description ?? `Update ${r2 ? jS : zS}` });
17403
17403
  let i2 = [...this._getState().headers], a2 = false, l2 = false;
17404
- const c2 = r2 ? Ta.Edge.Top : Ta.Edge.Left;
17405
- Ta.oppositeEdge(c2);
17406
- const h2 = r2 ? Ta.Edge.Right : Ta.Edge.Bottom;
17407
- Ta.oppositeEdge(h2);
17404
+ const c2 = r2 ? Na.Edge.Top : Na.Edge.Left;
17405
+ Na.oppositeEdge(c2);
17406
+ const h2 = r2 ? Na.Edge.Right : Na.Edge.Bottom;
17407
+ Na.oppositeEdge(h2);
17408
17408
  const u2 = this, d2 = (t6, e3) => {
17409
17409
  if (this.isProtected()) throw new Error(this._isColumn ? BS : PS);
17410
17410
  l2 = l2 || null === e3, !l2 && e3 && (l2 = !!e3.isICellHeader || (void 0 !== e3?.size || void 0 !== e3?.hidden)), a2 = a2 || null === e3 || void 0 !== e3?.style || e3?.isICellHeader;
@@ -17769,7 +17769,7 @@ class US {
17769
17769
  return false;
17770
17770
  }
17771
17771
  }
17772
- class JS {
17772
+ class qS {
17773
17773
  constructor(t5, e2, n2, r2, o2, s2, i2, a2, l2, c2) {
17774
17774
  this.uuid = t5, this.spatialsIds = e2, this.isRanges = r2, this.coords = n2, this.sheet = o2, this.generation = s2, this.handler = i2, this.handlerW = a2, this.removeListener = l2, this.options = c2;
17775
17775
  }
@@ -17799,20 +17799,20 @@ class JS {
17799
17799
  const e2 = this.spatialsIds, n2 = e2.indexOf(t5.value.uuid);
17800
17800
  console.assert(-1 !== n2, "invalid uuid");
17801
17801
  const r2 = this.coords, o2 = r2.slice(0, n2).concat(r2.slice(n2 + 1)), s2 = e2.slice(0, n2).concat(e2.slice(n2 + 1));
17802
- return new JS(this.uuid, s2, o2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17802
+ return new qS(this.uuid, s2, o2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17803
17803
  }
17804
17804
  processShift(t5) {
17805
17805
  const e2 = this.spatialsIds.indexOf(t5.value.uuid);
17806
17806
  console.assert(-1 !== e2, "invalid uuid");
17807
17807
  const n2 = [...this.coords];
17808
- return n2[e2] = { ...n2[e2], ...Y.sanitizeRange(t5) }, new JS(this.uuid, this.spatialsIds, n2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17808
+ return n2[e2] = { ...n2[e2], ...Y.sanitizeRange(t5) }, new qS(this.uuid, this.spatialsIds, n2, this.isRanges, this.sheet, this.generation, this.handler, this.handlerW, this.removeListener, this.options);
17809
17809
  }
17810
17810
  processSplit(t5) {
17811
17811
  }
17812
17812
  processMerge(t5) {
17813
17813
  }
17814
17814
  }
17815
- const qS = Object.freeze({ coords: Y.EmptyCell, topLeft: N.EmptyTopLeft }), KS = Object.freeze({ cell: Y.EmptyCell, ranges: bt.EmptyArray, rangeIndex: 0 }), XS = Object.freeze({ selection: KS, topLeft: N.EmptyTopLeft, freezePanes: qS, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: $_.HeaderTextStyle.One, columnHeaderStyle: $_.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
17815
+ const JS = Object.freeze({ coords: Y.EmptyCell, topLeft: T.EmptyTopLeft }), KS = Object.freeze({ cell: Y.EmptyCell, ranges: bt.EmptyArray, rangeIndex: 0 }), XS = Object.freeze({ selection: KS, topLeft: T.EmptyTopLeft, freezePanes: JS, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: $_.HeaderTextStyle.One, columnHeaderStyle: $_.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
17816
17816
  class YS {
17817
17817
  constructor(t5) {
17818
17818
  if (this._emitter = null, !t5?.sheet) throw new Error("SheetView requires a sheet.");
@@ -17835,7 +17835,7 @@ class YS {
17835
17835
  return this._state.freezePanes = this._mergeFreezePanes(t5), this._emitter.notify("onFreezeSplitChange"), this;
17836
17836
  }
17837
17837
  _mergeFreezePanes(t5) {
17838
- return t5 ? { ...this._state.freezePanes, coords: { colIndex: t5?.coords?.colIndex ?? this._state.freezePanes.coords.colIndex, rowIndex: t5?.coords?.rowIndex ?? this._state.freezePanes.coords.rowIndex }, topLeft: { left: t5?.topLeft?.left ?? this._state.topLeft.left, top: t5?.topLeft?.top ?? this._state.topLeft.top } } : qS;
17838
+ return t5 ? { ...this._state.freezePanes, coords: { colIndex: t5?.coords?.colIndex ?? this._state.freezePanes.coords.colIndex, rowIndex: t5?.coords?.rowIndex ?? this._state.freezePanes.coords.rowIndex }, topLeft: { left: t5?.topLeft?.left ?? this._state.topLeft.left, top: t5?.topLeft?.top ?? this._state.topLeft.top } } : JS;
17839
17839
  }
17840
17840
  isShowRowHeaders() {
17841
17841
  return this._state.showRowHeaders;
@@ -17944,7 +17944,7 @@ class YS {
17944
17944
  const r2 = this._state[e2[n3]];
17945
17945
  null != r2 && r2 !== XS[e2[n3]] && (t5[e2[n3]] = r2);
17946
17946
  }
17947
- delete t5.movableSelection, delete t5.gridLineColor, this._state.gridLineColor instanceof Na && (t5.gridLineColor = this._state.gridLineColor.toString()), delete t5.topLeft, !this._state.topLeft || 0 === this._state.topLeft.left && 0 === this._state.topLeft.top || (t5.topLeft = { left: this._state.topLeft.left ?? 0, top: this._state.topLeft.top ?? 0 }), delete t5.selection;
17947
+ delete t5.movableSelection, delete t5.gridLineColor, this._state.gridLineColor instanceof Ta && (t5.gridLineColor = this._state.gridLineColor.toString()), delete t5.topLeft, !this._state.topLeft || 0 === this._state.topLeft.left && 0 === this._state.topLeft.top || (t5.topLeft = { left: this._state.topLeft.left ?? 0, top: this._state.topLeft.top ?? 0 }), delete t5.selection;
17948
17948
  const n2 = this._state.selection;
17949
17949
  if (n2) {
17950
17950
  let e3 = {};
@@ -18002,7 +18002,7 @@ class YS {
18002
18002
  }
18003
18003
  }
18004
18004
  async function QS() {
18005
- const { getCrypto: t5 } = await import("./CteSWuaSiS_quyBE.mjs");
18005
+ const { getCrypto: t5 } = await import("./C6lX28OYg20N0MeO.mjs");
18006
18006
  return t5();
18007
18007
  }
18008
18008
  const ZS = async (t5, e2, ...n2) => {
@@ -18219,11 +18219,11 @@ class iw {
18219
18219
  }
18220
18220
  _createRanges(t5, e2) {
18221
18221
  let n2 = this._options;
18222
- return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
18222
+ return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
18223
18223
  }
18224
18224
  _createRange(t5, e2) {
18225
18225
  let n2 = this._options;
18226
- return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, n2);
18226
+ return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, n2);
18227
18227
  }
18228
18228
  _validateWrite() {
18229
18229
  const t5 = this._readOnly;
@@ -18379,7 +18379,7 @@ class iw {
18379
18379
  return uf(this.getCoords(), this._sheet._entireCoords, true);
18380
18380
  }
18381
18381
  isOverlapping() {
18382
- return Th(this.getCoords());
18382
+ return Nh(this.getCoords());
18383
18383
  }
18384
18384
  at(t5) {
18385
18385
  const e2 = this.getCoords();
@@ -18423,11 +18423,11 @@ class aw {
18423
18423
  if (!t5) return bf(n2, n2._entireCoords);
18424
18424
  if (n2._validateCoords(t5), n2._closed) return bf(null, n2._entireCoords, t5);
18425
18425
  let r2 = this._options;
18426
- return e2 && (r2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, r2);
18426
+ return e2 && (r2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, r2);
18427
18427
  }
18428
18428
  _createRanges(t5, e2) {
18429
18429
  let n2 = this._options;
18430
- return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
18430
+ return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
18431
18431
  }
18432
18432
  _deriveRanges(t5, e2) {
18433
18433
  const n2 = this.getCoords();
@@ -18446,7 +18446,7 @@ class aw {
18446
18446
  r2 = { ...o2, ...t6 };
18447
18447
  }
18448
18448
  var s2, i2;
18449
- return s2 = r2, (i2 = o2) && (void 0 === i2.$colStart ? delete s2.$colStart : s2.$colStart = i2.$colStart, void 0 === i2.$rowStart ? delete s2.$rowStart : s2.$rowStart = i2.$rowStart, void 0 === i2.$colEnd ? delete s2.$colEnd : s2.$colEnd = i2.$colEnd, void 0 === i2.$rowEnd ? delete s2.$rowEnd : s2.$rowEnd = i2.$rowEnd), this._createRange(r2, Tf(this._options?.getOptions, e2));
18449
+ return s2 = r2, (i2 = o2) && (void 0 === i2.$colStart ? delete s2.$colStart : s2.$colStart = i2.$colStart, void 0 === i2.$rowStart ? delete s2.$rowStart : s2.$rowStart = i2.$rowStart, void 0 === i2.$colEnd ? delete s2.$colEnd : s2.$colEnd = i2.$colEnd, void 0 === i2.$rowEnd ? delete s2.$rowEnd : s2.$rowEnd = i2.$rowEnd), this._createRange(r2, Nf(this._options?.getOptions, e2));
18450
18450
  }
18451
18451
  _validateMaxSize(t5 = 5e4) {
18452
18452
  const e2 = this.getCoords(), n2 = this._sheet, r2 = n2._colHeaders.getVisibleCount(e2.colStart, e2.colEnd);
@@ -18884,7 +18884,7 @@ class pw {
18884
18884
  return n2 && (this._lastRangeRead.address = { ...t5 }, this._lastRangeRead.range = o2), o2;
18885
18885
  }
18886
18886
  getRanges(t5, e2) {
18887
- if (!t5) throw new Error(qu);
18887
+ if (!t5) throw new Error(Ju);
18888
18888
  const n2 = this._rangesToCoords(t5);
18889
18889
  if (0 === n2.length) throw this._createRangeError(t5);
18890
18890
  return this._createRanges(n2, e2);
@@ -18923,7 +18923,7 @@ class pw {
18923
18923
  if (!(Number.isInteger(n2) && Number.isFinite(n2) && Number.isInteger(r2) && Number.isFinite(r2) && Number.isInteger(o2) && Number.isFinite(o2) && Number.isInteger(s2) && Number.isFinite(s2))) throw new Error("Invalid range. All points must be valid integers.");
18924
18924
  }
18925
18925
  _createRangeError(t5) {
18926
- return t5 ? new Error(qu) : new Error(Yu(t5));
18926
+ return t5 ? new Error(Ju) : new Error(Yu(t5));
18927
18927
  }
18928
18928
  _protectionCheck(t5 = null, e2 = null, n2 = null) {
18929
18929
  if (t5 && this._closed) return;
@@ -18943,7 +18943,7 @@ class pw {
18943
18943
  _rangesToCoords(t5, e2 = null, n2 = true, r2 = false) {
18944
18944
  if (e2 && this._closed) return bt.EmptyArray;
18945
18945
  if (null == t5) return bt.EmptyArray;
18946
- const o2 = this, s2 = Tu(t5, this._entireCoords, r2 ? Iu : Ru, (t6) => {
18946
+ const o2 = this, s2 = Nu(t5, this._entireCoords, r2 ? Iu : Ru, (t6) => {
18947
18947
  if (n2 && "string" == typeof t6) {
18948
18948
  const e3 = o2.getNames()?.getByName(t6);
18949
18949
  if (e3) return e3.getRanges().getCoords();
@@ -18967,7 +18967,7 @@ class pw {
18967
18967
  return this._protectionCheck(e2, s2), s2;
18968
18968
  }
18969
18969
  _rangeToCoords(t5, e2 = null, n2 = true) {
18970
- if (!t5) throw new Error(qu);
18970
+ if (!t5) throw new Error(Ju);
18971
18971
  const r2 = e2 ? (t6) => e2(t6) : void 0, o2 = this._rangesToCoords(t5, r2, n2);
18972
18972
  if (0 === o2.length) throw new Error(Yu(t5));
18973
18973
  return o2[0];
@@ -19016,7 +19016,7 @@ class pw {
19016
19016
  return { next(o2) {
19017
19017
  const s2 = r2.next(o2);
19018
19018
  if (s2.done) return Pl;
19019
- const i2 = s2.value, a2 = new Nf(n2, t5, e2), l2 = a2.context;
19019
+ const i2 = s2.value, a2 = new Tf(n2, t5, e2), l2 = a2.context;
19020
19020
  return { done: false, value: { value: a2.setState(i2), context: l2 } };
19021
19021
  }, [Symbol.iterator]() {
19022
19022
  return this;
@@ -19034,7 +19034,7 @@ class pw {
19034
19034
  c2._collectRanges({ rowStart: t6, rowEnd: n3, colStart: o3, colEnd: s3 }, l2, r2, e2);
19035
19035
  }, h2);
19036
19036
  }, d2);
19037
- const m2 = new Jl.IteratorInstance(l2, t5), f2 = t5?.reverse ?? false, p2 = t5?.byCell;
19037
+ const m2 = new ql.IteratorInstance(l2, t5), f2 = t5?.reverse ?? false, p2 = t5?.byCell;
19038
19038
  let _2;
19039
19039
  const S2 = { next: (t6) => {
19040
19040
  if (_2 = m2.next(t6), _2.done) return Pl;
@@ -19146,7 +19146,7 @@ class pw {
19146
19146
  return o3 && (y2 = e3), { done: false, value: [e3, n3, r3, u3, f3] };
19147
19147
  };
19148
19148
  let R2 = { next: v2, return: (t6) => null, throw: (t6) => null };
19149
- return s2 && (R2 = new qc(R2, a2)), R2;
19149
+ return s2 && (R2 = new Jc(R2, a2)), R2;
19150
19150
  }
19151
19151
  _indexMerges(t5, e2 = null) {
19152
19152
  if (!(t5 && 0 !== t5.length || e2 && 0 !== e2.length)) return;
@@ -19257,22 +19257,22 @@ class pw {
19257
19257
  let C2 = false;
19258
19258
  g2 && this._hasRangedEntries("unlockSpatial", y2) && (b2[id.Type.Unlock] = false, C2 = true), this._hasRangedEntries("mergeSpatial", y2) && (b2[id.Type.Merge] = false, C2 = true);
19259
19259
  const v2 = this._rangeStateIterator({ bounds: y2, orientation: d2, includeRangeTypes: b2, reuseIterator: { done: false, value: null } });
19260
- let x2 = v2.next(), I2 = -1, R2 = -1, A2 = -1, M2 = -1, N2 = null;
19260
+ let x2 = v2.next(), I2 = -1, R2 = -1, A2 = -1, M2 = -1, T2 = null;
19261
19261
  if (!x2.done) {
19262
19262
  const t6 = x2.value, e3 = t6.start, n3 = t6.end;
19263
- I2 = u2 ? e3.colIndex : e3.rowIndex, R2 = u2 ? n3.colIndex : n3.rowIndex, A2 = u2 ? e3.rowIndex : e3.colIndex, M2 = u2 ? n3.rowIndex : n3.colIndex, N2 = t6.intersection;
19263
+ I2 = u2 ? e3.colIndex : e3.rowIndex, R2 = u2 ? n3.colIndex : n3.rowIndex, A2 = u2 ? e3.rowIndex : e3.colIndex, M2 = u2 ? n3.rowIndex : n3.colIndex, T2 = t6.intersection;
19264
19264
  }
19265
- let T2 = (t6, e3) => {
19265
+ let N2 = (t6, e3) => {
19266
19266
  do {
19267
- if (!N2 || t6 <= A2 && e3 < A2) return null;
19268
- if (t6 >= I2 && e3 >= A2 && t6 <= R2 && e3 <= M2) return N2;
19269
- if (x2 = v2.next(), x2.done) N2 = null, T2 = null, C2 = false;
19267
+ if (!T2 || t6 <= A2 && e3 < A2) return null;
19268
+ if (t6 >= I2 && e3 >= A2 && t6 <= R2 && e3 <= M2) return T2;
19269
+ if (x2 = v2.next(), x2.done) T2 = null, N2 = null, C2 = false;
19270
19270
  else {
19271
19271
  const t7 = x2.value;
19272
- I2 = u2 ? t7.start.colIndex : t7.start.rowIndex, R2 = u2 ? t7.end.colIndex : t7.end.rowIndex, A2 = u2 ? t7.start.rowIndex : t7.start.colIndex, M2 = u2 ? t7.end.rowIndex : t7.end.colIndex, N2 = t7.intersection;
19272
+ I2 = u2 ? t7.start.colIndex : t7.start.rowIndex, R2 = u2 ? t7.end.colIndex : t7.end.rowIndex, A2 = u2 ? t7.start.rowIndex : t7.start.colIndex, M2 = u2 ? t7.end.rowIndex : t7.end.colIndex, T2 = t7.intersection;
19273
19273
  }
19274
- } while (N2);
19275
- return N2;
19274
+ } while (T2);
19275
+ return T2;
19276
19276
  };
19277
19277
  const k2 = c2.getState(this), F2 = k2.cellValuesGrid.clone(), O2 = k2.calcGraph.clone(), D2 = k2.formulaSpatial.clone(), L2 = k2.spillSpatial.clone(), B2 = k2.pendingSpatial.clone(), P2 = k2.calcErrorsSpatial.clone(), z2 = k2.contentfulSpatial.clone(), j2 = rh(u2), W2 = rh(u2, (t6, e3) => {
19278
19278
  if (t6 === e3) return e3;
@@ -19284,10 +19284,10 @@ class pw {
19284
19284
  let G2 = null, U2 = null;
19285
19285
  if (false !== e2?.textParser) {
19286
19286
  const t6 = e2 && true !== e2.textParser ? e2.textParser : {};
19287
- U2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t6 }, G2 = new Nf(f2, null, this._cellOptions);
19287
+ U2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t6 }, G2 = new Tf(f2, null, this._cellOptions);
19288
19288
  }
19289
- const J2 = [], q2 = this._cellOptions, K2 = /* @__PURE__ */ new Map(), X2 = Ff, Y2 = (t6, e3, n3) => {
19290
- const r3 = T2?.(e3, n3);
19289
+ const q2 = [], J2 = this._cellOptions, K2 = /* @__PURE__ */ new Map(), X2 = Ff, Y2 = (t6, e3, n3) => {
19290
+ const r3 = N2?.(e3, n3);
19291
19291
  if (r3?.merge) {
19292
19292
  const t7 = r3.merge.getCoords(), o3 = u2 ? t7.colStart : t7.rowStart, s3 = u2 ? t7.rowStart : t7.colStart;
19293
19293
  if (o3 !== e3 || s3 !== n3) return;
@@ -19299,12 +19299,12 @@ class pw {
19299
19299
  $2.push({ colStart: u2 ? e3 : n3, rowStart: u2 ? n3 : e3, colEnd: (u2 ? e3 : n3) + t7.width - 1, rowEnd: (u2 ? n3 : e3) + t7.height - 1 });
19300
19300
  }
19301
19301
  }
19302
- let i2 = Jm(t6, q2, U2, K2);
19302
+ let i2 = qm(t6, J2, U2, K2);
19303
19303
  if (void 0 === i2) return;
19304
19304
  const a3 = i2.value;
19305
19305
  if (i2.stringToParse) {
19306
19306
  vw[0].colIndex = u2 ? e3 : n3, vw[0].rowIndex = u2 ? n3 : e3, vw[1] = a3, vw[2] = r3, G2.setState(vw);
19307
- const t7 = U2?.parse(i2.stringToParse, G2.context), o3 = Jm(t7, q2, U2, K2, true);
19307
+ const t7 = U2?.parse(i2.stringToParse, G2.context), o3 = qm(t7, J2, U2, K2, true);
19308
19308
  if (G2.clear(), null === o3) return o3;
19309
19309
  void 0 !== o3 && (i2 = { ...o3 });
19310
19310
  }
@@ -19352,7 +19352,7 @@ class pw {
19352
19352
  s4.push([l3, t9]), h3 = null;
19353
19353
  }
19354
19354
  }
19355
- s4.length > 0 && J2.push([n4, s4]);
19355
+ s4.length > 0 && q2.push([n4, s4]);
19356
19356
  }
19357
19357
  const n3 = j2.done(), r3 = n3.length;
19358
19358
  for (let t7 = 0; t7 < r3; t7++) {
@@ -19362,13 +19362,13 @@ class pw {
19362
19362
  this._updateFormulaSpatial(D2, null, r4);
19363
19363
  }
19364
19364
  let s3;
19365
- J2.length > 0 && (F2.setValues(J2), s3 = { tuples: J2, bounds: l2 });
19365
+ q2.length > 0 && (F2.setValues(q2), s3 = { tuples: q2, bounds: l2 });
19366
19366
  let d3, g3 = V2.done();
19367
19367
  if (g3.length > 1 && (g3 = Dc(g3, i.Orientation.Column, 1)), s3 || g3.length > 0) {
19368
19368
  const t7 = O2.setInputs(s3, g3);
19369
19369
  d3 = this._updateFormulaSpatial(D2, t7.inserts, t7.removes, k2.directStyleSpatial);
19370
19370
  }
19371
- const m3 = Of(J2, u2), E3 = m3.length;
19371
+ const m3 = Of(q2, u2), E3 = m3.length;
19372
19372
  for (let t7 = 0; t7 < E3; t7++) z2.insertNonOverlapping(m3[t7]);
19373
19373
  const b3 = W2.done();
19374
19374
  b3.length > 0 && this._updateStyles(b3), $2.length > 0 && this._merge($2);
@@ -19445,8 +19445,8 @@ class pw {
19445
19445
  }
19446
19446
  if (!S2) return;
19447
19447
  if (0 === _2.length) return;
19448
- const A2 = /* @__PURE__ */ new Map(), M2 = /* @__PURE__ */ new Map(), N2 = e2?.collators ?? Fl.DefaultCollators, T2 = N2.length;
19449
- for (let t6 = 0; t6 < T2; t6++) A2.set(N2[t6].type, N2[t6].compare), M2.set(N2[t6].type, t6);
19448
+ const A2 = /* @__PURE__ */ new Map(), M2 = /* @__PURE__ */ new Map(), T2 = e2?.collators ?? Fl.DefaultCollators, N2 = T2.length;
19449
+ for (let t6 = 0; t6 < N2; t6++) A2.set(T2[t6].type, T2[t6].compare), M2.set(T2[t6].type, t6);
19450
19450
  let k2 = null, F2 = null, O2 = null;
19451
19451
  _2.sort((t6, e3) => {
19452
19452
  const n3 = f2.length;
@@ -19466,7 +19466,7 @@ class pw {
19466
19466
  if (k2 !== h3) {
19467
19467
  t7 = A2.get(h3), F2 = t7, k2 = h3;
19468
19468
  let e4 = M2.get(u3);
19469
- const r4 = N2[e4].defaultOptions;
19469
+ const r4 = T2[e4].defaultOptions;
19470
19470
  O2 = { ...r4, ...n4.collatorOptions };
19471
19471
  }
19472
19472
  d3 = t7(i2, a3, O2);
@@ -19521,7 +19521,7 @@ class pw {
19521
19521
  if (o2 % y2 !== 0) throw new Error(((t6) => `When filling with merged cells the amount to fill must be a multiple of the input range [${t6}].`)(y2));
19522
19522
  const E2 = s2 ? "rowIndex" : "colIndex", b2 = s2 ? "colIndex" : "rowIndex", C2 = s2 ? t5.rowEnd + 1 - t5.rowStart : t5.colEnd + 1 - t5.colStart, v2 = s2 ? t5.rowStart : t5.colStart, x2 = s2 ? t5.rowEnd : t5.colEnd, I2 = s2 ? e2.rowStart : e2.colStart, R2 = s2 ? e2.rowEnd : e2.colEnd, A2 = s2 ? r2 === i.Direction.Down : r2 === i.Direction.Right;
19523
19523
  A2 || (d2.reverse = true);
19524
- const M2 = A2 ? x2 + 1 : I2, N2 = (A2 ? R2 : v2 - 1) - M2 + 1, T2 = s2 ? t5.colEnd : t5.rowEnd;
19524
+ const M2 = A2 ? x2 + 1 : I2, T2 = (A2 ? R2 : v2 - 1) - M2 + 1, N2 = s2 ? t5.colEnd : t5.rowEnd;
19525
19525
  l2.push(Y.unionRanges(f2, t5));
19526
19526
  const k2 = [];
19527
19527
  let F2 = null;
@@ -19557,7 +19557,7 @@ class pw {
19557
19557
  }, P2 = this;
19558
19558
  if (c2) {
19559
19559
  const t6 = k2[k2.length - 1];
19560
- if (k2[k2.length - 1]?.oppositeIndex !== T2) return null;
19560
+ if (k2[k2.length - 1]?.oppositeIndex !== N2) return null;
19561
19561
  const e3 = B2(u2, t6.values);
19562
19562
  return c2((t7) => {
19563
19563
  const n3 = P2._rangeToCoords(t7);
@@ -19571,8 +19571,8 @@ class pw {
19571
19571
  const z2 = this._createIncrementalUpdater({ orientation: s2 ? i.Orientation.Column : i.Orientation.Row }), j2 = k2.length;
19572
19572
  k2.sort((t6, e3) => t6.oppositeIndex - e3.oppositeIndex);
19573
19573
  for (let t6 = 0; t6 < j2; t6++) {
19574
- const e3 = t6, n3 = B2(u2, k2[e3].values), r3 = k2[e3].oppositeIndex, o3 = A2 ? C2 : C2 + N2 - 1, i2 = this.isDate1904();
19575
- for (let t7 = 0; t7 < N2; t7++) {
19574
+ const e3 = t6, n3 = B2(u2, k2[e3].values), r3 = k2[e3].oppositeIndex, o3 = A2 ? C2 : C2 + T2 - 1, i2 = this.isDate1904();
19575
+ for (let t7 = 0; t7 < T2; t7++) {
19576
19576
  let e4 = n3(o3 + (A2 ? t7 : -t7));
19577
19577
  Ms(e4) && (e4 = Ls(e4, i2));
19578
19578
  const a3 = M2 + t7;
@@ -19607,15 +19607,15 @@ class pw {
19607
19607
  }
19608
19608
  const V2 = this._getState(), $2 = {}, G2 = {};
19609
19609
  G2.directStyleSpatial = V2.directStyleSpatial, G2.continuousFillSpatial = V2.continuousFillSpatial;
19610
- let U2 = t5, J2 = f2;
19610
+ let U2 = t5, q2 = f2;
19611
19611
  if (!A2) {
19612
19612
  let e3 = (s2 ? p2.rowEnd + 1 - p2.rowStart : p2.colEnd + 1 - p2.colStart) % C2;
19613
19613
  const n3 = s2 ? "rowStart" : "colStart", r3 = s2 ? "rowEnd" : "colEnd";
19614
- 0 !== e3 && (J2 = { ...f2, [r3]: Math.min(f2[r3], f2[n3] + e3) }, U2 = { ...t5, [n3]: t5[r3] - e3 + 1 }, f2[n3] = f2[n3] + e3);
19614
+ 0 !== e3 && (q2 = { ...f2, [r3]: Math.min(f2[r3], f2[n3] + e3) }, U2 = { ...t5, [n3]: t5[r3] - e3 + 1 }, f2[n3] = f2[n3] + e3);
19615
19615
  }
19616
- const q2 = Object.keys(G2), K2 = q2.length;
19616
+ const J2 = Object.keys(G2), K2 = J2.length;
19617
19617
  for (let t6 = 0; t6 < K2; t6++) {
19618
- const e3 = q2[t6], n3 = G2[e3].createCopiedEntries(U2, J2), r3 = V2[e3].clone(), o3 = n3.removes, s3 = o3.length;
19618
+ const e3 = J2[t6], n3 = G2[e3].createCopiedEntries(U2, q2), r3 = V2[e3].clone(), o3 = n3.removes, s3 = o3.length;
19619
19619
  for (let t7 = 0; t7 < s3; t7++) r3.remove(o3[t7]);
19620
19620
  r3.load(n3.inserts), $2[e3] = r3;
19621
19621
  }
@@ -19895,7 +19895,7 @@ class pw {
19895
19895
  let c2 = t5[0];
19896
19896
  try {
19897
19897
  const h2 = this._getMerges(t5);
19898
- if (Th(t5) || h2.length > 0) {
19898
+ if (Nh(t5) || h2.length > 0) {
19899
19899
  const e3 = Y.unionRangesArrays(h2), n3 = Y.unionRangesArrays(t5);
19900
19900
  if (!(!e3 && !n3 || e3 && n3 && Y.isRangeWithinRange(e3, n3))) throw console.warn(_d, t5), new Error(_d);
19901
19901
  this._unmerge(h2);
@@ -19949,7 +19949,7 @@ class pw {
19949
19949
  }
19950
19950
  }
19951
19951
  _unmerge(t5, e2) {
19952
- if (this._protectionCheck(mw, t5), Th(t5)) throw new Error("We can't unmerge intersecting ranges.");
19952
+ if (this._protectionCheck(mw, t5), Nh(t5)) throw new Error("We can't unmerge intersecting ranges.");
19953
19953
  if (!this._getState()) return null;
19954
19954
  const n2 = Y.unionRangesArrays(t5), r2 = Bf(t5), o2 = this._beginCommit({ description: e2?.description ?? "Unmerge" }), s2 = o2.getState(this).mergeSpatial, i2 = [];
19955
19955
  try {
@@ -20188,7 +20188,7 @@ class pw {
20188
20188
  let M2;
20189
20189
  if (d2) {
20190
20190
  M2 = m2.startIncrementalUpdates({ orientation: o2.transpose ? i.Orientation.Row : i.Orientation.Column });
20191
- const t6 = { orientation: A2, includeRangeTypes: R2, bounds: c2 }, e3 = new Nf(this._strings, t6, this._cellOptions), n4 = (t7, n5, s3) => {
20191
+ const t6 = { orientation: A2, includeRangeTypes: R2, bounds: c2 }, e3 = new Tf(this._strings, t6, this._cellOptions), n4 = (t7, n5, s3) => {
20192
20192
  const i2 = t7[0], a4 = e3.setState(t7), h4 = e3.context, m3 = h4.getCell(), _4 = m3.isTopLeft();
20193
20193
  let S3 = x2, w3 = E3;
20194
20194
  if (r3) {
@@ -20229,11 +20229,11 @@ class pw {
20229
20229
  n4(e4, r4.rowIndex - o3.rowIndex, r4.colIndex - o3.colIndex), _3 = h3.next();
20230
20230
  }
20231
20231
  }
20232
- const N2 = e2._getState(), T2 = {}, k2 = { transpose: r3 ?? false };
20233
- u2 && (T2.directStyleSpatial = N2.directStyleSpatial, T2.continuousFillSpatial = N2.continuousFillSpatial, T2.mergeSpatial = N2.mergeSpatial), h2 && (t5._clear([c2], void 0, void 0, false, true), w2.push(c2), T2.rangesListenerSpatial2 = N2.rangesListenerSpatial2);
20234
- const F2 = a2, O2 = F2._getState(), D2 = Object.keys(T2), L2 = D2.length;
20232
+ const T2 = e2._getState(), N2 = {}, k2 = { transpose: r3 ?? false };
20233
+ u2 && (N2.directStyleSpatial = T2.directStyleSpatial, N2.continuousFillSpatial = T2.continuousFillSpatial, N2.mergeSpatial = T2.mergeSpatial), h2 && (t5._clear([c2], void 0, void 0, false, true), w2.push(c2), N2.rangesListenerSpatial2 = T2.rangesListenerSpatial2);
20234
+ const F2 = a2, O2 = F2._getState(), D2 = Object.keys(N2), L2 = D2.length;
20235
20235
  for (let t6 = 0; t6 < L2; t6++) {
20236
- const e3 = D2[t6], n4 = T2[e3].createCopiedEntries(c2, b2, k2), r4 = O2[e3].clone(), o3 = n4.removes, s3 = o3.length;
20236
+ const e3 = D2[t6], n4 = N2[e3].createCopiedEntries(c2, b2, k2), r4 = O2[e3].clone(), o3 = n4.removes, s3 = o3.length;
20237
20237
  for (let t7 = 0; t7 < s3; t7++) r4.remove(o3[t7]);
20238
20238
  r4.load(n4.inserts), O2[e3] = r4;
20239
20239
  }
@@ -20340,13 +20340,13 @@ class pw {
20340
20340
  o2._validateCoords(t6, e3 ?? Sd);
20341
20341
  });
20342
20342
  const s2 = n2?.description ?? "Insert Cells", a2 = (e2 ?? this._getDefaultShiftOrientation(t5[0])) === i.Orientation.Column;
20343
- if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t5, s2), Th(t5)) throw new Error("We can't insert cells with overlapping selections.");
20343
+ if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t5, s2), Nh(t5)) throw new Error("We can't insert cells with overlapping selections.");
20344
20344
  const l2 = this._entireCoords;
20345
20345
  let c2 = l2.colEnd, h2 = l2.rowEnd;
20346
20346
  const u2 = Bf(t5), d2 = this._beginCommit({ description: s2, operation: { name: "insertCells" } }), g2 = d2.getState(this), m2 = a2 ? i.Direction.Right : i.Direction.Down;
20347
20347
  try {
20348
20348
  let e3 = g2.cellValuesGrid, o3 = g2.contentfulSpatial, s3 = g2.unlockSpatial, f2 = g2.mergeSpatial, p2 = g2.directStyleSpatial, _2 = g2.continuousFillSpatial, S2 = g2.conditionalSpatial, w2 = g2.hyperlinkSpatial, y2 = g2.commentsSpatial, E2 = g2.movableSpatial, b2 = g2.tableSpatial, C2 = g2.calcGraph, v2 = g2.rangesListenerSpatial2, x2 = g2.rangeListenerSpatial, I2 = g2.rangesListenerMap;
20349
- const R2 = /* @__PURE__ */ new Map(), A2 = ql(t5.slice(), i.Direction.Left), M2 = A2.length;
20349
+ const R2 = /* @__PURE__ */ new Map(), A2 = Jl(t5.slice(), i.Direction.Left), M2 = A2.length;
20350
20350
  for (let t6 = 0; t6 < M2; t6++) {
20351
20351
  const n3 = A2[t6];
20352
20352
  c2 = Math.min(c2, n3.colStart), h2 = Math.min(h2, n3.rowStart);
@@ -20359,18 +20359,18 @@ class pw {
20359
20359
  }
20360
20360
  e3 = e3.clone(), e3.shift(n3, m2), this._updateState({ cellValuesGrid: e3 });
20361
20361
  }
20362
- const d3 = n3.colStart <= l2.colStart && n3.colEnd >= l2.colEnd, M3 = n3.rowStart <= l2.rowStart && n3.rowEnd >= l2.rowEnd, N3 = (t7, e4, n4, r3) => {
20362
+ const d3 = n3.colStart <= l2.colStart && n3.colEnd >= l2.colEnd, M3 = n3.rowStart <= l2.rowStart && n3.rowEnd >= l2.rowEnd, T3 = (t7, e4, n4, r3) => {
20363
20363
  let o4 = null;
20364
20364
  n4 > 1 && (o4 = t7.at(n4 - 1));
20365
20365
  const s4 = r3 - n4 + 1;
20366
20366
  e4?.(n4, s4), o4 && t7.updateHeaderPairs([{ address: { min: n4, max: r3 }, update: o4 }]);
20367
20367
  };
20368
- d3 && N3(this._rowHeaders, this._rowHeadersShiftCallback, n3.rowStart, n3.rowEnd), M3 && N3(this._colHeaders, this._colHeadersShiftCallback, n3.colStart, n3.colEnd), o3 = o3.shift({ range: n3, direction: m2, cloneIfUpdate: o3 === g2.contentfulSpatial, coordValidator: r2 }), s3 = s3.shift({ range: n3, direction: m2, cloneIfUpdate: s3 === g2.unlockSpatial, coordValidator: r2 }), f2 = f2.shift({ range: n3, direction: m2, cloneIfUpdate: f2 === g2.mergeSpatial, coordValidator: r2 }), p2 = p2.shift({ range: n3, direction: m2, cloneIfUpdate: p2 === g2.directStyleSpatial, coordValidator: r2 }), _2 = _2.shift({ range: n3, direction: m2, cloneIfUpdate: _2 === g2.continuousFillSpatial, coordValidator: r2 }), S2 = S2.shift({ range: n3, direction: m2, cloneIfUpdate: S2 === g2.conditionalSpatial, coordValidator: r2 }), w2 = w2.shift({ range: n3, direction: m2, cloneIfUpdate: w2 === g2.hyperlinkSpatial, coordValidator: r2 }), y2 = y2.shift({ range: n3, direction: m2, cloneIfUpdate: y2 === g2.commentsSpatial, coordValidator: r2 }), E2 = E2.shift({ range: n3, direction: m2, cloneIfUpdate: E2 === g2.movableSpatial, coordValidator: r2 }), b2 = b2.shift({ range: n3, direction: m2, cloneIfUpdate: b2 === g2.tableSpatial, coordValidator: r2 }), C2 = C2.shift({ range: n3, direction: m2, cloneIfUpdate: C2 === g2.calcGraph }), x2 = x2.shift({ range: n3, direction: m2, cloneIfUpdate: x2 === g2.rangeListenerSpatial, onShift: (t7) => {
20368
+ d3 && T3(this._rowHeaders, this._rowHeadersShiftCallback, n3.rowStart, n3.rowEnd), M3 && T3(this._colHeaders, this._colHeadersShiftCallback, n3.colStart, n3.colEnd), o3 = o3.shift({ range: n3, direction: m2, cloneIfUpdate: o3 === g2.contentfulSpatial, coordValidator: r2 }), s3 = s3.shift({ range: n3, direction: m2, cloneIfUpdate: s3 === g2.unlockSpatial, coordValidator: r2 }), f2 = f2.shift({ range: n3, direction: m2, cloneIfUpdate: f2 === g2.mergeSpatial, coordValidator: r2 }), p2 = p2.shift({ range: n3, direction: m2, cloneIfUpdate: p2 === g2.directStyleSpatial, coordValidator: r2 }), _2 = _2.shift({ range: n3, direction: m2, cloneIfUpdate: _2 === g2.continuousFillSpatial, coordValidator: r2 }), S2 = S2.shift({ range: n3, direction: m2, cloneIfUpdate: S2 === g2.conditionalSpatial, coordValidator: r2 }), w2 = w2.shift({ range: n3, direction: m2, cloneIfUpdate: w2 === g2.hyperlinkSpatial, coordValidator: r2 }), y2 = y2.shift({ range: n3, direction: m2, cloneIfUpdate: y2 === g2.commentsSpatial, coordValidator: r2 }), E2 = E2.shift({ range: n3, direction: m2, cloneIfUpdate: E2 === g2.movableSpatial, coordValidator: r2 }), b2 = b2.shift({ range: n3, direction: m2, cloneIfUpdate: b2 === g2.tableSpatial, coordValidator: r2 }), C2 = C2.shift({ range: n3, direction: m2, cloneIfUpdate: C2 === g2.calcGraph }), x2 = x2.shift({ range: n3, direction: m2, cloneIfUpdate: x2 === g2.rangeListenerSpatial, onShift: (t7) => {
20369
20369
  I2 === g2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, g2.rangesListenerMap, t7);
20370
20370
  } }), v2 = v2.shift({ range: n3, direction: m2, cloneIfUpdate: v2 === g2.rangesListenerSpatial2, coordValidator: r2 });
20371
20371
  }
20372
- let N2 = g2.formulaSpatial, T2 = g2.spillSpatial, k2 = g2.pendingSpatial;
20373
- C2 !== g2.calcGraph && (N2 = N2.clone(), T2 = T2.clone(), k2 = k2.clone()), this._updateState({ contentfulSpatial: o3, unlockSpatial: s3, mergeSpatial: f2, directStyleSpatial: p2, continuousFillSpatial: _2, conditionalSpatial: S2, hyperlinkSpatial: w2, commentsSpatial: y2, movableSpatial: E2, tableSpatial: b2, calcGraph: C2, formulaSpatial: N2, spillSpatial: T2, pendingSpatial: k2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(d2, u2, n2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
20372
+ let T2 = g2.formulaSpatial, N2 = g2.spillSpatial, k2 = g2.pendingSpatial;
20373
+ C2 !== g2.calcGraph && (T2 = T2.clone(), N2 = N2.clone(), k2 = k2.clone()), this._updateState({ contentfulSpatial: o3, unlockSpatial: s3, mergeSpatial: f2, directStyleSpatial: p2, continuousFillSpatial: _2, conditionalSpatial: S2, hyperlinkSpatial: w2, commentsSpatial: y2, movableSpatial: E2, tableSpatial: b2, calcGraph: C2, formulaSpatial: T2, spillSpatial: N2, pendingSpatial: k2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(d2, u2, n2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
20374
20374
  } catch (t6) {
20375
20375
  if (console.warn(t6), d2.rollback(), t6 instanceof Pt) throw new Error(t6.message ?? Sd);
20376
20376
  throw t6;
@@ -20378,13 +20378,13 @@ class pw {
20378
20378
  }
20379
20379
  _deleteCells(t5, e2, n2) {
20380
20380
  const r2 = (e2 ?? this._getDefaultShiftOrientation(t5[0])) === i.Orientation.Column, o2 = n2?.description ?? "Delete Cells";
20381
- if (this._protectionCheck(() => [r2 ? "deleteColumns" : "deleteRows"], t5, o2), Th(t5)) throw new Error("We can't delete cells with overlapping selections.");
20381
+ if (this._protectionCheck(() => [r2 ? "deleteColumns" : "deleteRows"], t5, o2), Nh(t5)) throw new Error("We can't delete cells with overlapping selections.");
20382
20382
  const s2 = this._entireCoords;
20383
20383
  let a2 = s2.colEnd, l2 = s2.rowEnd;
20384
20384
  const c2 = r2 ? i.Direction.Left : i.Direction.Up, h2 = Bf(t5), u2 = this._beginCommit({ description: o2, operation: { name: "deleteCells" } }), d2 = u2.getState(this);
20385
20385
  try {
20386
20386
  let e3 = d2.cellValuesGrid, r3 = d2.contentfulSpatial, o3 = d2.mergeSpatial, g2 = d2.unlockSpatial, m2 = d2.directStyleSpatial, f2 = d2.continuousFillSpatial, p2 = d2.conditionalSpatial, _2 = d2.hyperlinkSpatial, S2 = d2.commentsSpatial, w2 = d2.movableSpatial, y2 = d2.movableMapModel, E2 = d2.tableSpatial, b2 = d2.tableMapModel, C2 = d2.calcGraph, v2 = d2.rangesListenerSpatial2, x2 = d2.rangeListenerSpatial, I2 = d2.rangesListenerMap;
20387
- const R2 = /* @__PURE__ */ new Map(), A2 = ql(t5.slice(), i.Direction.Left), M2 = A2.length;
20387
+ const R2 = /* @__PURE__ */ new Map(), A2 = Jl(t5.slice(), i.Direction.Left), M2 = A2.length;
20388
20388
  for (let t6 = 0; t6 < M2; t6++) {
20389
20389
  const n3 = A2[t6];
20390
20390
  a2 = Math.min(a2, n3.colStart), l2 = Math.min(l2, n3.rowStart);
@@ -20416,9 +20416,9 @@ class pw {
20416
20416
  let n3 = Number.MAX_SAFE_INTEGER, r3 = Number.MIN_SAFE_INTEGER, o3 = false, a3 = "", f2 = -1, p2 = false, _2 = false, S2 = false, w2 = Number.MAX_SAFE_INTEGER, y2 = Number.MIN_SAFE_INTEGER;
20417
20417
  const E2 = this._styles.getNormal(), b2 = this._cellOptions, C2 = e2.orientations === i.Orientations.Row, v2 = /* @__PURE__ */ new Map(), x2 = Lc(t5, 1);
20418
20418
  x2.sort(Y.createRangeComparator(i.Orientation.Column));
20419
- const I2 = x2.length, R2 = { skipCustomSize: e2.skipCustomSize }, A2 = Ai.getDeviceScale(), M2 = this._defaultRowHeight() * A2, N2 = (t6, e3 = 1) => {
20419
+ const I2 = x2.length, R2 = { skipCustomSize: e2.skipCustomSize }, A2 = Ai.getDeviceScale(), M2 = this._defaultRowHeight() * A2, T2 = (t6, e3 = 1) => {
20420
20420
  if (0 !== t6 && null !== t6 && !(e3 > 1)) return t6 = Math.max(t6, M2), (e4) => u2 ? t6 : Math.max(e4, t6);
20421
- }, T2 = (t6, e3 = 1) => {
20421
+ }, N2 = (t6, e3 = 1) => {
20422
20422
  if (0 !== t6 && null !== t6 && !(e3 > 1)) return (e4) => h2 ? t6 : Math.max(e4, t6);
20423
20423
  };
20424
20424
  for (let t6 = 0; t6 < I2; t6++) {
@@ -20454,11 +20454,11 @@ class pw {
20454
20454
  ww.colStart = n4.colIndex, ww.rowStart = n4.rowIndex, ww.colEnd = r4.colIndex, ww.rowEnd = r4.rowIndex;
20455
20455
  const o4 = Y.intersectRanges(ww, F2, Sw), s2 = tf(0, o4, e4, b2).getBestFit();
20456
20456
  if (c2) {
20457
- const t8 = Math.max(n4.rowIndex, D2), e5 = { address: { min: t8, max: Math.min(r4.rowIndex, B2) }, update: { size: N2(s2.height), autoSize: true } };
20457
+ const t8 = Math.max(n4.rowIndex, D2), e5 = { address: { min: t8, max: Math.min(r4.rowIndex, B2) }, update: { size: T2(s2.height), autoSize: true } };
20458
20458
  j2.push(e5);
20459
20459
  }
20460
20460
  if (l2) {
20461
- const t8 = Math.max(n4.colIndex, O2), e5 = { address: { min: t8, max: Math.min(r4.colIndex, L2) }, update: { size: T2(s2.width), autoSize: true } };
20461
+ const t8 = Math.max(n4.colIndex, O2), e5 = { address: { min: t8, max: Math.min(r4.colIndex, L2) }, update: { size: N2(s2.width), autoSize: true } };
20462
20462
  W2.push(e5);
20463
20463
  }
20464
20464
  $2 = V2.next();
@@ -20476,15 +20476,15 @@ class pw {
20476
20476
  e4 && this._rowHeaders.updateHeaderPairs(e4, R2);
20477
20477
  }
20478
20478
  const G2 = this._cellStateIterator({ ...z2, includeRangeTypes: { [id.Type.Merge]: false, [id.Type.Table]: false, [id.Type.Style]: false }, ignoreEmptyIntersections: true });
20479
- let U2, J2, q2, K2 = G2.next(), X2 = 1, Q2 = 1;
20479
+ let U2, q2, J2, K2 = G2.next(), X2 = 1, Q2 = 1;
20480
20480
  for (; !K2.done; ) {
20481
20481
  const t7 = K2.value, i2 = t7[0], l3 = t7[2];
20482
20482
  let c3 = E2;
20483
20483
  const h3 = l3?.directStyle ?? null;
20484
- h3 === U2 ? c3 = J2 : (c3 = h3 ? tf(0, Y.cellToRange(i2, yw), l3, b2) : E2, J2 = c3);
20484
+ h3 === U2 ? c3 = q2 : (c3 = h3 ? tf(0, Y.cellToRange(i2, yw), l3, b2) : E2, q2 = c3);
20485
20485
  let u3 = 1, d3 = 1;
20486
20486
  const C3 = l3?.merge ?? null;
20487
- if (C3 === q2) u3 = X2, d3 = Q2;
20487
+ if (C3 === J2) u3 = X2, d3 = Q2;
20488
20488
  else {
20489
20489
  if (C3) {
20490
20490
  const t8 = C3.getCoords();
@@ -20492,17 +20492,17 @@ class pw {
20492
20492
  } else u3 = 1, d3 = 1;
20493
20493
  X2 = u3, Q2 = d3;
20494
20494
  }
20495
- const v3 = i2.colIndex, x3 = i2.rowIndex, R3 = t7[1], N3 = $h(R3), T3 = Y.isCellWithinRange(i2, F2);
20495
+ const v3 = i2.colIndex, x3 = i2.rowIndex, R3 = t7[1], T3 = $h(R3), N3 = Y.isCellWithinRange(i2, F2);
20496
20496
  let O3 = false, D3 = false;
20497
- if (U2 !== h3 || u3 !== M3 || d3 !== k2 || N3 === s.String || N3 === s.Error || T3 !== m3) {
20498
- if (O3 = true, (u3 > 1 || d3 > 1 || N3 === s.RichData) && (D3 = true), !D3 && l3) {
20497
+ if (U2 !== h3 || u3 !== M3 || d3 !== k2 || T3 === s.String || T3 === s.Error || N3 !== m3) {
20498
+ if (O3 = true, (u3 > 1 || d3 > 1 || T3 === s.RichData) && (D3 = true), !D3 && l3) {
20499
20499
  const t8 = c3.getAlignment().getHorizontal();
20500
20500
  t8 !== Zs.HorizontalAlignment.CenterContinuous && t8 !== Zs.HorizontalAlignment.Fill || (D3 = true);
20501
20501
  }
20502
20502
  D3 && (O3 = false);
20503
20503
  }
20504
- if (U2 = h3, q2 = C3, (g3 !== v3 || O3) && (g3 !== v3 && (A3 = this._colHeaders.getSpanSize(v3)), -1 !== g3 && e3.push({ col: g3, style: I3, spanWidth: u3, spanHeight: d3, minVal: n3, maxVal: r3, hasZero: o3, text: a3, textId: f2, hasFalse: _2, hasTrue: p2, hasEmpty: S2, minRow: w2, maxRow: y2, colWidth: A3, measureWidth: -1, measureHeight: -1, isFit: m3 }), g3 = v3, I3 = c3, m3 = T3, M3 = u3, k2 = d3, n3 = Number.MAX_SAFE_INTEGER, r3 = Number.MIN_SAFE_INTEGER, o3 = false, a3 = "", f2 = -1, _2 = false, p2 = false, S2 = false, w2 = x3), y2 = x3, !D3) if (null === R3) S2 = true;
20505
- else switch (N3) {
20504
+ if (U2 = h3, J2 = C3, (g3 !== v3 || O3) && (g3 !== v3 && (A3 = this._colHeaders.getSpanSize(v3)), -1 !== g3 && e3.push({ col: g3, style: I3, spanWidth: u3, spanHeight: d3, minVal: n3, maxVal: r3, hasZero: o3, text: a3, textId: f2, hasFalse: _2, hasTrue: p2, hasEmpty: S2, minRow: w2, maxRow: y2, colWidth: A3, measureWidth: -1, measureHeight: -1, isFit: m3 }), g3 = v3, I3 = c3, m3 = N3, M3 = u3, k2 = d3, n3 = Number.MAX_SAFE_INTEGER, r3 = Number.MIN_SAFE_INTEGER, o3 = false, a3 = "", f2 = -1, _2 = false, p2 = false, S2 = false, w2 = x3), y2 = x3, !D3) if (null === R3) S2 = true;
20505
+ else switch (T3) {
20506
20506
  case s.Number:
20507
20507
  0 === R3 && (o3 = true), n3 = Math.min(n3, R3), r3 = Math.max(r3, R3);
20508
20508
  break;
@@ -20558,7 +20558,7 @@ class pw {
20558
20558
  let s2 = e3[n4 + 1], i2 = r4.measureWidth ?? 0;
20559
20559
  for (; s2 && s2.col === o4; ) s2.measureWidth && (i2 = Math.max(s2.measureWidth ?? 0, i2)), n4++, r4 = e3[n4], s2 = e3[n4 + 1];
20560
20560
  0 === i2 && (i2 = null);
20561
- const a4 = T2(i2, r4.spanWidth);
20561
+ const a4 = N2(i2, r4.spanWidth);
20562
20562
  t7.push({ address: { min: o4, max: o4 }, update: { size: a4, autoSize: true } });
20563
20563
  }
20564
20564
  this._colHeaders.updateHeaderPairs(t7, R2);
@@ -20576,7 +20576,7 @@ class pw {
20576
20576
  }
20577
20577
  const o4 = r4.length, s2 = new Array(o4);
20578
20578
  for (let t8 = 0; t8 < o4; t8++) {
20579
- const e4 = r4[t8], n5 = N2(e4.value, 1), o5 = { address: { min: e4.min, max: e4.max }, update: { size: n5, autoSize: true } };
20579
+ const e4 = r4[t8], n5 = T2(e4.value, 1), o5 = { address: { min: e4.min, max: e4.max }, update: { size: n5, autoSize: true } };
20580
20580
  s2[t8] = o5;
20581
20581
  }
20582
20582
  this._rowHeaders.updateHeaderPairs(s2, R2);
@@ -20762,7 +20762,7 @@ class pw {
20762
20762
  m2.push(a3);
20763
20763
  }
20764
20764
  c2.load(m2), n2 = { ...n2 };
20765
- const S2 = new JS(i2, p2, f2, r2, this, a2, d2, g2, l2, n2), w2 = new Map(u2.rangesListenerMap2);
20765
+ const S2 = new qS(i2, p2, f2, r2, this, a2, d2, g2, l2, n2), w2 = new Map(u2.rangesListenerMap2);
20766
20766
  return w2.set(i2, S2), this._updateState({ rangesListenerSpatial2: c2, rangesListenerMap2: w2 }), o2 || this._rangesListenerSorted.set(a2, S2), h2.commit({ forceAmend: true }), l2;
20767
20767
  }
20768
20768
  _getUsedCoords(t5) {
@@ -21204,9 +21204,9 @@ class pw {
21204
21204
  } catch (t6) {
21205
21205
  console.warn(t6);
21206
21206
  }
21207
- const r2 = ql(n2.mergeSpatial.all());
21207
+ const r2 = Jl(n2.mergeSpatial.all());
21208
21208
  r2.length > 0 && (e2.merges = Au(r2));
21209
- const o2 = ql(n2.directStyleSpatial.all());
21209
+ const o2 = Jl(n2.directStyleSpatial.all());
21210
21210
  if (o2.length > 0) {
21211
21211
  const t6 = this._styles.beginPersist();
21212
21212
  try {
@@ -21225,7 +21225,7 @@ class pw {
21225
21225
  t6.endPersist();
21226
21226
  }
21227
21227
  }
21228
- const a2 = ql(n2.hyperlinkSpatial.all()), l2 = a2.length;
21228
+ const a2 = Jl(n2.hyperlinkSpatial.all()), l2 = a2.length;
21229
21229
  if (l2 > 0) {
21230
21230
  const t6 = [];
21231
21231
  for (let e3 = 0; e3 < l2; e3++) {
@@ -21235,7 +21235,7 @@ class pw {
21235
21235
  }
21236
21236
  e2.hyperlinks = t6;
21237
21237
  }
21238
- const c2 = ql(n2.commentsSpatial.all()), h2 = c2.length;
21238
+ const c2 = Jl(n2.commentsSpatial.all()), h2 = c2.length;
21239
21239
  if (h2 > 0) {
21240
21240
  const t6 = [];
21241
21241
  for (let e3 = 0; e3 < h2; e3++) {
@@ -21263,7 +21263,7 @@ class pw {
21263
21263
  } finally {
21264
21264
  u2.endPersist();
21265
21265
  }
21266
- const d2 = ql(n2.tableSpatial.all()), g2 = d2.length;
21266
+ const d2 = Jl(n2.tableSpatial.all()), g2 = d2.length;
21267
21267
  if (g2 > 0) {
21268
21268
  const t6 = [];
21269
21269
  for (let e3 = 0; e3 < g2; e3++) {
@@ -21361,7 +21361,7 @@ class pw {
21361
21361
  async _addImage(t5, e2 = { type: "picture" }) {
21362
21362
  if (!t5) throw new Error("An image must be provided as a string or a resource option.");
21363
21363
  if (!this.getProtection().isObjectsAllowed()) throw new Error(fd);
21364
- const n2 = this._resources.add(t5), r2 = await n2.toBuffer(), o2 = await n2.getType(), s2 = this._getBoundsAtCoords(Lf(this.getSelection().getCoords())[0]), { naturalDimensions: i2, asUrl: a2 } = await Tt.loadImageDetails(r2, o2);
21364
+ const n2 = this._resources.add(t5), r2 = await n2.toBuffer(), o2 = await n2.getType(), s2 = this._getBoundsAtCoords(Lf(this.getSelection().getCoords())[0]), { naturalDimensions: i2, asUrl: a2 } = await Nt.loadImageDetails(r2, o2);
21365
21365
  URL.revokeObjectURL(a2);
21366
21366
  const l2 = { ...s2, ...i2, ...e2?.bounds };
21367
21367
  if (bt.isNullOrUndefined(e2?.bounds?.x) || bt.isNullOrUndefined(e2?.bounds?.y)) {
@@ -22256,25 +22256,25 @@ class pw {
22256
22256
  }
22257
22257
  I2.load(t6);
22258
22258
  }
22259
- const R2 = c2.tableMapModel, A2 = c2.tableMapName, M2 = c2.tableSpatial, N2 = n2.tables;
22260
- if (N2) {
22261
- const t6 = [], e3 = N2.length;
22259
+ const R2 = c2.tableMapModel, A2 = c2.tableMapName, M2 = c2.tableSpatial, T2 = n2.tables;
22260
+ if (T2) {
22261
+ const t6 = [], e3 = T2.length;
22262
22262
  for (let n3 = 0; n3 < e3; n3++) {
22263
- const e4 = N2[n3], r3 = this._createTableEntry(e4), o3 = r3.value.model;
22263
+ const e4 = T2[n3], r3 = this._createTableEntry(e4), o3 = r3.value.model;
22264
22264
  R2.set(o3, r3), A2.set(r3.value.currentName, o3), t6.push(r3);
22265
22265
  }
22266
22266
  M2.load(t6);
22267
22267
  }
22268
- const T2 = c2.conditionalSpatial, k2 = c2.conditionalModels, F2 = n2.conditionals;
22268
+ const N2 = c2.conditionalSpatial, k2 = c2.conditionalModels, F2 = n2.conditionals;
22269
22269
  if (F2) {
22270
22270
  const t6 = F2.length;
22271
22271
  for (let e3 = 0; e3 < t6; e3++) {
22272
22272
  const t7 = F2[e3];
22273
- this._createConditionalEntries(t7, T2, k2);
22273
+ this._createConditionalEntries(t7, N2, k2);
22274
22274
  }
22275
22275
  }
22276
22276
  const O2 = c2.calcGraph, D2 = O2.fromJSON({ formulas: n2.formulas, data: f2, dynamic: n2.dynamicArray, volatile: n2.volatile });
22277
- c2 = this._updateState({ hyperlinkSpatial: E2, commentsSpatial: C2, movableSpatial: I2, movableMapModel: x2, tableSpatial: M2, tableMapModel: R2, tableMapName: A2, conditionalSpatial: T2, conditionalModels: k2, calcGraph: O2 });
22277
+ c2 = this._updateState({ hyperlinkSpatial: E2, commentsSpatial: C2, movableSpatial: I2, movableMapModel: x2, tableSpatial: M2, tableMapModel: R2, tableMapName: A2, conditionalSpatial: N2, conditionalModels: k2, calcGraph: O2 });
22278
22278
  const L2 = this._getUsedCoords();
22279
22279
  L2 && this._autoFit([L2], { orientations: i.Orientations.Row, skipCustomSize: true }), e2.commit(), D2 && this._realizeCalcedValues(D2), n2.protection && this._protection.fromJSON(n2.protection), this._emitter.notify("onLoad");
22280
22280
  } finally {
@@ -22330,7 +22330,7 @@ class pw {
22330
22330
  const _w = { address: null, scope: null }, Sw = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, ww = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, yw = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Ew = { includeHidden: false };
22331
22331
  Object.freeze({ [Ad.Content.Values]: Number.MAX_SAFE_INTEGER, [Ad.Content.Formulas]: Number.MAX_SAFE_INTEGER }), Object.freeze({ [Ad.Content.Values]: 1, [Ad.Content.Formulas]: 1 });
22332
22332
  const bw = { ignoreDataChanges: false }, Cw = { colStart: -1, rowStart: -1, colEnd: -1, rowEnd: -1 }, vw = [{ colIndex: -1, rowIndex: -1 }, null, null, null, null], xw = [Ad.Content.Values], Iw = { size: null, autoSize: true }, Rw = { skipCustomSize: true, expandOnly: true, minContent: true }, Aw = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Mw = { showFormulaBar: true, showTabs: true, tabRatio: 600, showHorizontalScrollbar: true, showVerticalScrollbar: true, showStatusBar: true, activeSheetId: null };
22333
- class Nw {
22333
+ class Tw {
22334
22334
  constructor(t5) {
22335
22335
  this._emitter = null, this._emitter = new Ml(this), this._state = { ...Mw }, t5?.json && this._fromJSON(t5?.json);
22336
22336
  }
@@ -22396,7 +22396,7 @@ class Nw {
22396
22396
  this._state = { ...Mw, ...this._state, ...t5 }, e2 && this._emitter.notify("onViewChange");
22397
22397
  }
22398
22398
  }
22399
- class Tw {
22399
+ class Nw {
22400
22400
  constructor(t5) {
22401
22401
  this._emitter = null, this._closed = false, this._options = { ...t5 };
22402
22402
  const e2 = this;
@@ -22647,7 +22647,7 @@ class jw {
22647
22647
  return this._modules;
22648
22648
  }
22649
22649
  async createModule(t5) {
22650
- const e2 = await import("./DK54CIvklXVGAymn.mjs"), n2 = await e2.ScriptingUtils.compileTypescript(t5);
22650
+ const e2 = await import("./D_13otLly5j8n5Gg.mjs"), n2 = await e2.ScriptingUtils.compileTypescript(t5);
22651
22651
  return n2 ? await zw(n2, t5?.declarationsOnly ?? false) : null;
22652
22652
  }
22653
22653
  addModule(t5, e2, n2) {
@@ -22688,7 +22688,7 @@ class jw {
22688
22688
  n2[o3] = i2;
22689
22689
  }
22690
22690
  }
22691
- const r2 = new Tw({ transactions: this._options?.transactions, initial: n2, onRemove: this._options?.onRemove, onAdd: this._options?.onAdd });
22691
+ const r2 = new Nw({ transactions: this._options?.transactions, initial: n2, onRemove: this._options?.onRemove, onAdd: this._options?.onAdd });
22692
22692
  this._modules = r2;
22693
22693
  const o2 = r2.search();
22694
22694
  if (0 === o2.length) return Promise.resolve(bt.EmptyArray);
@@ -22739,7 +22739,7 @@ class Hw extends rw {
22739
22739
  return super._toJSON(t5);
22740
22740
  }
22741
22741
  }
22742
- const Vw = (t5) => `Invalid SheetKey: ${t5}`, $w = "A workbook must contain at least one visible worksheet.", Gw = "Internal error no visible sheetRefs", Uw = "Workbook has been closed. No further operations are allowed.", Jw = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", qw = "A sheet name", Kw = `${qw} can not be blank.`, Xw = `${qw} can not be longer than 31 characters.`, Yw = `${qw} can not begin or end with a "'" (single quote).`;
22742
+ const Vw = (t5) => `Invalid SheetKey: ${t5}`, $w = "A workbook must contain at least one visible worksheet.", Gw = "Internal error no visible sheetRefs", Uw = "Workbook has been closed. No further operations are allowed.", qw = "This workbook structure is protected. To make a change, unprotect the workbook. You might be requested to enter a password.", Jw = "A sheet name", Kw = `${Jw} can not be blank.`, Xw = `${Jw} can not be longer than 31 characters.`, Yw = `${Jw} can not begin or end with a "'" (single quote).`;
22743
22743
  class Qw {
22744
22744
  constructor(t5, e2) {
22745
22745
  this._add = t5, this._get = e2;
@@ -22760,7 +22760,7 @@ class Qw {
22760
22760
  const Zw = new RegExp(/[\\/\\*?:[\]]+/), ty = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), ey = (t5) => `Sheet${t5 + 1}`, ny = (t5, e2) => ({ ...Ef, getSource: () => null, toString: () => vu(t5, e2) }), ry = (t5, e2 = false) => {
22761
22761
  if (!t5) throw new Error(Kw);
22762
22762
  if (Zw.test(t5)) {
22763
- if (!e2) throw new Error(((t6) => `${t6 ? `'${t6}'` : qw} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t5));
22763
+ if (!e2) throw new Error(((t6) => `${t6 ? `'${t6}'` : Jw} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t5));
22764
22764
  t5 = t5.replace(Zw, "");
22765
22765
  }
22766
22766
  if (0 === t5.length) throw new Error(Kw);
@@ -22784,7 +22784,7 @@ class oy extends iw {
22784
22784
  }
22785
22785
  _createRanges(t5, e2) {
22786
22786
  let n2 = this._options;
22787
- return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
22787
+ return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
22788
22788
  }
22789
22789
  _createRange(t5, e2) {
22790
22790
  const n2 = t5 ? { ...t5 } : null;
@@ -22793,7 +22793,7 @@ class oy extends iw {
22793
22793
  return delete n2?.sheetName, ny(n2, n2 ? { sheetName: au, ...t6.getEntireRange().getCoords() } : null);
22794
22794
  }
22795
22795
  let r2 = this._options;
22796
- return e2 && (r2 = { ...this._options, getOptions: Tf(this._options.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
22796
+ return e2 && (r2 = { ...this._options, getOptions: Nf(this._options.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
22797
22797
  }
22798
22798
  async select(t5) {
22799
22799
  const e2 = [];
@@ -22829,14 +22829,14 @@ class sy extends aw {
22829
22829
  }
22830
22830
  _createRanges(t5, e2) {
22831
22831
  let n2 = this._options;
22832
- return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
22832
+ return e2 && (n2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
22833
22833
  }
22834
22834
  _createRange(t5, e2) {
22835
22835
  const n2 = this._sheet;
22836
22836
  if (!t5) return bf(n2, n2._entireCoords);
22837
22837
  if (n2._validateCoords(t5), n2._closed) return bf(null, n2._entireCoords, t5);
22838
22838
  let r2 = this._options;
22839
- return e2 && (r2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
22839
+ return e2 && (r2 = { ...this._options, getOptions: Nf(this._options?.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
22840
22840
  }
22841
22841
  getSource() {
22842
22842
  return this._workbook;
@@ -22932,7 +22932,7 @@ class iy {
22932
22932
  _initState() {
22933
22933
  let t5 = this._getSheetRefs();
22934
22934
  for (let e3 = t5 && t5.length - 1; e3 >= 0; e3--) ;
22935
- this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new vl().getDefaultTheme(), this._styles = this._options?.styles ?? new dp(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Nw()), this._listenerProtection?.(), this._protection = new Hw(void 0, this._options.readonly ?? false), this._listenerProtection = this._protection.addListeners({ onChange: (t6) => {
22935
+ this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new vl().getDefaultTheme(), this._styles = this._options?.styles ?? new dp(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Tw()), this._listenerProtection?.(), this._protection = new Hw(void 0, this._options.readonly ?? false), this._listenerProtection = this._protection.addListeners({ onChange: (t6) => {
22936
22936
  e2._emitter.notify("onProtectionChange");
22937
22937
  } });
22938
22938
  const e2 = this;
@@ -23068,7 +23068,7 @@ class iy {
23068
23068
  }
23069
23069
  _addSheetOptions(t5) {
23070
23070
  if (this._closed) throw new Error(Uw);
23071
- if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23071
+ if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23072
23072
  let e2 = null;
23073
23073
  t5 = { ...t5, description: t5?.description ?? "Add Sheet" };
23074
23074
  const n2 = this.beginCommit(t5);
@@ -23109,7 +23109,7 @@ class iy {
23109
23109
  }
23110
23110
  _updateSheetRefStates(t5) {
23111
23111
  if (this._closed) throw new Error(Uw);
23112
- if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new Error(Jw);
23112
+ if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new Error(qw);
23113
23113
  const e2 = t5, n2 = [], r2 = [];
23114
23114
  for (let t6 = 0; t6 < e2.length; t6++) e2[t6].visibility === Z_.Visibility.Visible ? (n2.push(e2[t6]), r2.push(e2[t6])) : e2[t6].visibility === Z_.Visibility.Hidden && r2.push(e2[t6]);
23115
23115
  this._updateState({ sheetRefsAll: e2, sheetRefsVisible: n2, sheetRefsVisibleAndHidden: r2 });
@@ -23183,7 +23183,7 @@ class iy {
23183
23183
  }
23184
23184
  _validateDeleteSheet(t5) {
23185
23185
  if (this._closed) throw new Error(Uw);
23186
- if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23186
+ if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23187
23187
  let e2 = this._getSheetRef(t5);
23188
23188
  if (!e2) throw new Error(((t6) => `Invalid reference for delete: ${t6}`)(t5));
23189
23189
  const n2 = this._getState().sheetRefsVisible;
@@ -23260,7 +23260,7 @@ class iy {
23260
23260
  }
23261
23261
  async _duplicateSheet(t5) {
23262
23262
  if (this._closed) throw new Error(Uw);
23263
- if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23263
+ if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23264
23264
  const e2 = this._getSheetRefs(), n2 = this.getSelectedSheetIndex();
23265
23265
  let r2 = null;
23266
23266
  if (t5) {
@@ -23325,7 +23325,7 @@ class iy {
23325
23325
  return this.getSelectedSheet().getSelectedCell();
23326
23326
  }
23327
23327
  _rangesAddressToCoords(t5, e2 = true, n2 = Z_.Visibility.Hidden) {
23328
- if (!t5) throw new Error(qu);
23328
+ if (!t5) throw new Error(Ju);
23329
23329
  const r2 = this.getSelectedSheet(), o2 = r2?.getEntireRange().getCoords(), s2 = { ...o2 }, i2 = r2?.getName();
23330
23330
  if (i2 && (s2.sheetName = i2), "string" == typeof t5) {
23331
23331
  const e3 = t5.trim().toLowerCase();
@@ -23334,7 +23334,7 @@ class iy {
23334
23334
  "r" === e3 ? r3.rowStart = r3.rowEnd = n3.rowIndex : r3.colStart = r3.colEnd = n3.colIndex, t5 = r3;
23335
23335
  }
23336
23336
  }
23337
- const a2 = this, l2 = Tu(t5, s2, Ru, (t6) => {
23337
+ const a2 = this, l2 = Nu(t5, s2, Ru, (t6) => {
23338
23338
  if (!e2) return null;
23339
23339
  if ("string" == typeof t6) {
23340
23340
  const e3 = a2.getNames().getByName(t6);
@@ -23367,7 +23367,7 @@ class iy {
23367
23367
  }
23368
23368
  _setSheetName(t5, e2) {
23369
23369
  if (this._closed) throw new Error(Uw);
23370
- if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23370
+ if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23371
23371
  const n2 = this._getSheetRef(t5);
23372
23372
  if (!n2) throw new Error(Vw(t5));
23373
23373
  if (e2 === n2.name) return n2.sheet;
@@ -23387,7 +23387,7 @@ class iy {
23387
23387
  }
23388
23388
  _setSheetVisibility(t5, e2 = Z_.Visibility.Visible) {
23389
23389
  if (this._closed) throw new Error(Uw);
23390
- if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23390
+ if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23391
23391
  const n2 = this._getSheetRef(t5);
23392
23392
  if (!n2) return null;
23393
23393
  if (e2 === n2.visibility) return;
@@ -23411,7 +23411,7 @@ class iy {
23411
23411
  }
23412
23412
  _moveSheet(t5, e2) {
23413
23413
  if (this._closed) throw new Error(Uw);
23414
- if (!this.getProtection().isStructureAllowed()) throw new Error(Jw);
23414
+ if (!this.getProtection().isStructureAllowed()) throw new Error(qw);
23415
23415
  let n2 = null;
23416
23416
  const r2 = this.beginCommit(`Move Sheet '${t5.name}'`);
23417
23417
  try {
@@ -23489,7 +23489,7 @@ class iy {
23489
23489
  const e3 = o2[t6], n3 = e3.visibility || Z_.Visibility.Visible, r3 = t6 + 1;
23490
23490
  n3 === Z_.Visibility.Visible ? a2 = r3 : null !== i2 && i2 === r3 && (i2 = null), this._createSheet(r3, e3.name, n3, void 0, e3.sheet);
23491
23491
  }
23492
- this._updateState({ lastId: a2 }), t5.names && this._names.fromJSON(t5.names), t5.view.activeSheetId = i2 ?? a2, this.setView(new Nw({ json: t5.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
23492
+ this._updateState({ lastId: a2 }), t5.names && this._names.fromJSON(t5.names), t5.view.activeSheetId = i2 ?? a2, this.setView(new Tw({ json: t5.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
23493
23493
  const l2 = this;
23494
23494
  this._protection = new Hw(t5?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (t6) => {
23495
23495
  l2._emitter.notify("onProtectionChange", { source: t6 });
@@ -23616,7 +23616,7 @@ export {
23616
23616
  L_ as Calculation,
23617
23617
  Lt as ChainedError,
23618
23618
  Zt as ClipboardUtils,
23619
- Na as Color,
23619
+ Ta as Color,
23620
23620
  Ct as CommonMessages,
23621
23621
  bt as CommonUtils,
23622
23622
  Y as CoordUtils,
@@ -23629,7 +23629,7 @@ export {
23629
23629
  Qe as GeomUtils,
23630
23630
  Il as IAnchored,
23631
23631
  j_ as IAutoFilter,
23632
- Ta as IBorder,
23632
+ Na as IBorder,
23633
23633
  Ep as ICalculation,
23634
23634
  Ad as ICell,
23635
23635
  P_ as ICellHeaderRange,
@@ -23652,7 +23652,7 @@ export {
23652
23652
  Zs as ITextFrame,
23653
23653
  el as ITheme,
23654
23654
  nl as IThemeCollection,
23655
- Tt as ImageUtils,
23655
+ Nt as ImageUtils,
23656
23656
  se as InternalClipboard,
23657
23657
  kt as JSONStableStringify,
23658
23658
  je as LicenseManager,
@@ -23665,13 +23665,13 @@ export {
23665
23665
  zt as PartialError,
23666
23666
  bp as Picture,
23667
23667
  Y_ as RangeClipboardItem,
23668
- T as RangeOrientation,
23668
+ N as RangeOrientation,
23669
23669
  k as RangeOrientations,
23670
23670
  fp as Resource,
23671
23671
  _p as ResourceCollection,
23672
23672
  s as ScalarType,
23673
23673
  pw as Sheet,
23674
- Ni as SimpleFontFace,
23674
+ Ti as SimpleFontFace,
23675
23675
  Fl as Sort,
23676
23676
  wp as StringCollection,
23677
23677
  S as StubbedFormulaContext,
@@ -23686,14 +23686,14 @@ export {
23686
23686
  dn as Tuple,
23687
23687
  Wt as TypedError,
23688
23688
  Ot as TypedObject,
23689
- N as TypesUtils,
23689
+ T as TypesUtils,
23690
23690
  ae as UndoManager,
23691
23691
  Bt as UserError,
23692
23692
  iy as Workbook,
23693
- Nw as WorkbookView,
23693
+ Tw as WorkbookView,
23694
23694
  $S as a,
23695
23695
  VS as b,
23696
- qh as c,
23696
+ Jh as c,
23697
23697
  Uu as d,
23698
23698
  fu as e,
23699
23699
  Vh as f,