@sheetxl/sdk 0.8.0-beta.11 → 0.8.0-beta.13

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 (349) hide show
  1. package/THIRD-PARTY-NOTICES.md +172 -0
  2. package/browser/esm/{BMyDRQ716j79h_bH.mjs → -GEhXGMfNcWmHPby.mjs} +6 -6
  3. package/browser/esm/{B7aUIvgUjncMMD_i.mjs → 9WXf_BTKjW1cQisZ.mjs} +95 -94
  4. package/browser/esm/{PcHFjNzQsE54POri.mjs → B2SgIPPBX0wjzuq8.mjs} +1 -1
  5. package/browser/esm/{DEiPS3Dr-s4fPbVZ.mjs → BC2RwlNwCdRywkoD.mjs} +1 -1
  6. package/browser/esm/{BpgskG1Er_lGQ_yS.mjs → BEqhm9xAUPiHUCFv.mjs} +1 -1
  7. package/browser/esm/BHgqi7KNrl7Vjr0W.mjs +348 -0
  8. package/browser/esm/{BkBhLS0l6z8sxI6D.mjs → BJKH0tDRx2FeSWvt.mjs} +2 -2
  9. package/browser/esm/{CU3DmJ-YnVVrC1_k.mjs → BTgWtqdQoh2cB6DL.mjs} +1 -1
  10. package/browser/esm/{Dyq_ivuHvlXLwPCl.mjs → BVshV1iY3bcUH9_E.mjs} +1135 -1129
  11. package/browser/esm/{BFagR2JeWs74iAG3.mjs → BYQ63XU7JzB4_itX.mjs} +1 -1
  12. package/browser/esm/{DvAaxH6z_tGvrRzl.mjs → Bax5aOzQkbHKXW_X.mjs} +239 -230
  13. package/browser/esm/{DLLE0FZNsKxbBzRn.mjs → BiDGKhtzV6yIy66o.mjs} +45 -45
  14. package/browser/esm/BmYrWK5OmHRtgyqM.mjs +367 -0
  15. package/browser/esm/{ClPfI4lODvCece29.mjs → BoAlHgjPQ6mxb_oO.mjs} +74 -74
  16. package/browser/esm/{BoV6zPBnfqCBCqZ7.mjs → C0mjTq8lhrX3HiPa.mjs} +4328 -3166
  17. package/browser/esm/{nvU0ClAbf0g94YBK.mjs → C5j0IdwtYkWlOftv.mjs} +604 -596
  18. package/browser/esm/{DWNzqw7DUKwoxjri.mjs → CL84-iL2QeKlLzo5.mjs} +2 -2
  19. package/browser/esm/{Ctjb0SsxV4K4MMqG.mjs → CLkBe-6n-pStQhnz.mjs} +2 -2
  20. package/{node/esm/CZICGK_ss0HoGHCP.mjs → browser/esm/CPzfhTPX2Y4dHX2p.mjs} +2 -2
  21. package/browser/esm/{Dlmig06rIo7cInRk.mjs → CSJuIjYUOE387FIP.mjs} +1 -1
  22. package/browser/esm/{BjkCiv5Jz6WYKZeu.mjs → Cdw0mGuoV3IU2LhR.mjs} +2 -2
  23. package/browser/esm/Ced5uyofOWHuL_Jy.mjs +114 -0
  24. package/browser/esm/{CkxWugaJFjDGZNZ-.mjs → Ci_LJ4S_GvYX0STI.mjs} +1 -1
  25. package/browser/esm/{zlLuW405RSguy4Kn.mjs → CwygVKP_RXmne5Ot.mjs} +47 -47
  26. package/browser/esm/{C4MqfLn9Dm-l3OIk.mjs → D-mfK0noQrM2jZLT.mjs} +1 -1
  27. package/browser/esm/{BnG31I6Oj_HEtSPS.mjs → D9SH_8v3FYCnxOFK.mjs} +1 -1
  28. package/browser/esm/{BVDiOXGMc5_FMGfy.mjs → DPD8fop6az9HZNiK.mjs} +2 -2
  29. package/browser/esm/DW-MmlgMH87l-_cw.mjs +302 -0
  30. package/browser/esm/{CaB7J-xgfKO2uAkG.mjs → DctIlUsO78-OU2ht.mjs} +2 -2
  31. package/browser/esm/DdcKkVb4jM6Y_epY.mjs +184 -0
  32. package/browser/esm/{CHU6iu_WGlm7fLET.mjs → DfKzE0IY0TjaEIxG.mjs} +1 -1
  33. package/browser/esm/{C2VbEI_XVAoseAwa.mjs → DkloMquaR1pbZCER.mjs} +44 -43
  34. package/browser/esm/{C16ycKja6zG0crV_.mjs → Dz86-De57bv2VYIi.mjs} +19447 -16481
  35. package/browser/esm/{BtvLTTfSBdAKplVG.mjs → HApSgmV2FXRRwQac.mjs} +1 -1
  36. package/browser/esm/{CQYjO777cmAznUzK.mjs → IbVAQU4YqtFqLwYk.mjs} +1 -1
  37. package/browser/esm/index.mjs +823 -644
  38. package/browser/esm/mHQ95RAfxHzcUN2r.mjs +18 -0
  39. package/browser/esm/pm00uZZu_H3gxHFx.mjs +117 -0
  40. package/browser/esm/{CV5EGEjG5_-CPpP0.mjs → quEvwgrEuOb0h3q-.mjs} +1926 -1298
  41. package/browser/esm/{ClbvFbFzFzXLBKNN.mjs → zZngLMg6mg6nnNGX.mjs} +66 -66
  42. package/licenses/dependencies.txt +71 -1
  43. package/node/esm/{BqiexuA89caYnAPz.mjs → -K4Cek-bTUItkB_8.mjs} +1 -1
  44. package/node/esm/-b8yNV4v9qiq8EMY.mjs +117 -0
  45. package/node/esm/{D8zEN-6ZdDqDvTxM.mjs → 1V-m67YHbxmg3xk2.mjs} +74 -74
  46. package/node/esm/{D_t5AUxSm7_icjzq.mjs → 4ROAfJC1mokmqubv.mjs} +1 -1
  47. package/node/esm/B89et7t3uRmtxk4v.mjs +115 -0
  48. package/node/esm/BKBkCBNGhMU0nQdY.mjs +372 -0
  49. package/node/esm/{OVfaSb506tNSIvbv.mjs → BQ2XqExomMceAjfe.mjs} +20822 -18373
  50. package/node/esm/{2Kihw_-5lVTEnwMa.mjs → Bfg7qjCXCwXbzW3K.mjs} +1 -1
  51. package/node/esm/{D1TKBVmoKGAXf37B.mjs → BtMeAB_dqJnOfzJM.mjs} +2 -2
  52. package/node/esm/{D6e2z7eZpxOJXHc7.mjs → Byc_bxU_MdjYtt0x.mjs} +1 -1
  53. package/node/esm/{CNCNJNg890KdgkWh.mjs → Bzrl292TNCK3Cpid.mjs} +1 -1
  54. package/node/esm/{De2IONBxQhz-Qbyh.mjs → C0P9zspoypRAj7yv.mjs} +1 -1
  55. package/node/esm/{CzXT00vrQa1_gvW9.mjs → C9gpMN3galHGZyoK.mjs} +1 -1
  56. package/node/esm/CKCG2peOkTq0gIIW.mjs +310 -0
  57. package/node/esm/{DUTskXCXref-IJnI.mjs → CWBS90g3Hz-kQDkY.mjs} +46 -46
  58. package/node/esm/{BIwObuhTJYf0jpUa.mjs → CoGSVnn-hNMtTEus.mjs} +2 -2
  59. package/node/esm/{CwePQwTILHHjGDkZ.mjs → CzrLqStvrcPE2-hb.mjs} +194 -185
  60. package/node/esm/{CCN5vD410obwdz38.mjs → D16EdlZG1hX5WUUK.mjs} +96 -95
  61. package/node/esm/{CDHdgJXH2vS71WMc.mjs → D1mDga2K5sjs8y07.mjs} +1 -1
  62. package/node/esm/{cGwrLA1RCE-WhJ7w.mjs → D2jtztjE6c23RKvZ.mjs} +1 -1
  63. package/node/esm/{Bbf1Pm9Gk7YpLTvg.mjs → D9nRcWsYk3M82iD8.mjs} +1 -1
  64. package/node/esm/{yavzZOiZW_EjG9lE.mjs → DALYzTxZ9Ur9C69Q.mjs} +1 -1
  65. package/node/esm/{DkwIPzKc3UwdUIfM.mjs → DF0nL7s01dp7n0Bx.mjs} +10 -10
  66. package/node/esm/{DNRhGK-8Tr9xcRyc.mjs → DO5ldLqhTvIfPXLW.mjs} +3348 -2610
  67. package/node/esm/DQz8J8ci7EJdqbuB.mjs +351 -0
  68. package/node/esm/{BIRq1kT7lLRzns9t.mjs → DR2OQTKqqyIkZnse.mjs} +2 -2
  69. package/node/esm/{857CIBgQgGpnqrXk.mjs → DSTLPBgpsGW6qP9e.mjs} +73 -73
  70. package/node/esm/{CGp6VZL-gZa9Uezx.mjs → DiXp7KSOZUSWXaZ5.mjs} +1 -1
  71. package/node/esm/{CZiqiay42tFTrLI4.mjs → DwvXHsycOQR219c7.mjs} +1 -1
  72. package/node/esm/{B21JjOLghRoDOrkx.mjs → Hc6B04OyVzHx2F5I.mjs} +38 -37
  73. package/node/esm/{Ct3h15sCus4Tgt6M.mjs → NkPNHsq2T3DXg76x.mjs} +561 -553
  74. package/node/esm/{B084DssTcdBheTp_.mjs → Nl_IIkO1jbk0s9i-.mjs} +4552 -3373
  75. package/node/esm/{D2KBymQJd1XhpeQD.mjs → OQT5lGqq8a4r5xNa.mjs} +1 -1
  76. package/node/esm/OTaaFGhF-k_iwobp.mjs +18 -0
  77. package/node/esm/{CdJHUJSBRHZoryPe.mjs → Z1elC_roIu7LhceZ.mjs} +53 -53
  78. package/{browser/esm/D5np__Jb1euAyaLw.mjs → node/esm/e3F3OVXCxLJrSukW.mjs} +2 -2
  79. package/node/esm/index.mjs +806 -625
  80. package/node/esm/{mFiBSM7XgBHV9AY7.mjs → suOBVUz-pca6ilJH.mjs} +1607 -1601
  81. package/package.json +8 -6
  82. package/resources/contents.json +108 -0
  83. package/resources/fonts/aptos-bold-italic.hinted.json +125 -0
  84. package/resources/fonts/aptos-bold-italic.metrics.json +221 -0
  85. package/resources/fonts/aptos-bold-italic.rows.json +8 -0
  86. package/resources/fonts/aptos-bold.hinted.json +125 -0
  87. package/resources/fonts/aptos-bold.metrics.json +221 -0
  88. package/resources/fonts/aptos-bold.rows.json +8 -0
  89. package/resources/fonts/aptos-display-bold-italic.hinted.json +125 -0
  90. package/resources/fonts/aptos-display-bold-italic.metrics.json +221 -0
  91. package/resources/fonts/aptos-display-bold-italic.rows.json +8 -0
  92. package/resources/fonts/aptos-display-bold.hinted.json +125 -0
  93. package/resources/fonts/aptos-display-bold.metrics.json +221 -0
  94. package/resources/fonts/aptos-display-bold.rows.json +8 -0
  95. package/resources/fonts/aptos-display-italic.hinted.json +124 -0
  96. package/resources/fonts/aptos-display-italic.metrics.json +221 -0
  97. package/resources/fonts/aptos-display-italic.rows.json +8 -0
  98. package/resources/fonts/aptos-display-regular.hinted.json +125 -0
  99. package/resources/fonts/aptos-display-regular.metrics.json +221 -0
  100. package/resources/fonts/aptos-display-regular.rows.json +8 -0
  101. package/resources/fonts/aptos-italic.hinted.json +125 -0
  102. package/resources/fonts/aptos-italic.metrics.json +221 -0
  103. package/resources/fonts/aptos-italic.rows.json +8 -0
  104. package/resources/fonts/aptos-narrow-bold-italic.hinted.json +125 -0
  105. package/resources/fonts/aptos-narrow-bold-italic.metrics.json +221 -0
  106. package/resources/fonts/aptos-narrow-bold-italic.rows.json +8 -0
  107. package/resources/fonts/aptos-narrow-bold.hinted.json +125 -0
  108. package/resources/fonts/aptos-narrow-bold.metrics.json +221 -0
  109. package/resources/fonts/aptos-narrow-bold.rows.json +8 -0
  110. package/resources/fonts/aptos-narrow-italic.hinted.json +125 -0
  111. package/resources/fonts/aptos-narrow-italic.metrics.json +221 -0
  112. package/resources/fonts/aptos-narrow-italic.rows.json +8 -0
  113. package/resources/fonts/aptos-narrow-regular.hinted.json +125 -0
  114. package/resources/fonts/aptos-narrow-regular.metrics.json +221 -0
  115. package/resources/fonts/aptos-narrow-regular.rows.json +8 -0
  116. package/resources/fonts/aptos-regular.hinted.json +125 -0
  117. package/resources/fonts/aptos-regular.metrics.json +221 -0
  118. package/resources/fonts/aptos-regular.rows.json +8 -0
  119. package/resources/fonts/arial-bold-italic.rows.json +0 -1
  120. package/resources/fonts/arial-bold.rows.json +0 -1
  121. package/resources/fonts/arial-italic.rows.json +0 -1
  122. package/resources/fonts/arial-regular.rows.json +0 -1
  123. package/resources/fonts/calibri-bold-italic.rows.json +0 -1
  124. package/resources/fonts/calibri-bold.rows.json +0 -1
  125. package/resources/fonts/calibri-italic.rows.json +0 -1
  126. package/resources/fonts/calibri-regular.rows.json +0 -1
  127. package/resources/fonts/cambria-bold-italic.rows.json +0 -1
  128. package/resources/fonts/cambria-bold.rows.json +0 -1
  129. package/resources/fonts/cambria-italic.rows.json +0 -1
  130. package/resources/fonts/cambria-regular.rows.json +0 -1
  131. package/resources/fonts/contents.json +240 -0
  132. package/resources/fonts/courier-new-bold-italic.rows.json +0 -1
  133. package/resources/fonts/courier-new-bold.rows.json +0 -1
  134. package/resources/fonts/courier-new-italic.rows.json +0 -1
  135. package/resources/fonts/courier-new-regular.rows.json +0 -1
  136. package/resources/fonts/times-new-roman-bold-italic.rows.json +0 -1
  137. package/resources/fonts/times-new-roman-bold.rows.json +0 -1
  138. package/resources/fonts/times-new-roman-italic.rows.json +0 -1
  139. package/resources/fonts/times-new-roman-regular.rows.json +0 -1
  140. package/resources/locales/de/model.msg.json +12 -2
  141. package/resources/locales/en/model.msg.json +13 -2
  142. package/types/scripting-api.json +10638 -10446
  143. package/types/scripting-enums.json +20 -1
  144. package/types/scripting.d.ts +1536 -477
  145. package/types/src/.generated/wasm/sdk.d.ts +5 -27
  146. package/types/src/address/AddressUtils.d.ts +8 -0
  147. package/types/src/address/_SheetNameQuoteChars.d.ts +3 -0
  148. package/types/src/{sheet → anomalies}/_Anomalies.d.ts +3 -3
  149. package/types/src/anomalies/_FocusTable.d.ts +5 -0
  150. package/types/src/{sheet/_AnomalyFormulaChecks.d.ts → anomalies/_FormulaChecks.d.ts} +10 -2
  151. package/types/src/{sheet/_AnomalyLabelChecks.d.ts → anomalies/_LabelChecks.d.ts} +1 -1
  152. package/types/src/anomalies/_LiteralChecks.d.ts +35 -0
  153. package/types/src/anomalies/_SeriesChecks.d.ts +13 -0
  154. package/types/src/calculation/Calculation.d.ts +61 -98
  155. package/types/src/calculation/ExternalBookBindings.d.ts +2 -29
  156. package/types/src/calculation/ICalculation.d.ts +96 -9
  157. package/types/src/calculation/NamedFormulaCollection.d.ts +110 -10
  158. package/types/src/calculation/TokenType.d.ts +0 -10
  159. package/types/src/calculation/_CloneBoundary.d.ts +0 -24
  160. package/types/src/calculation/_FormulaToolkit.d.ts +0 -5
  161. package/types/src/calculation/compiler/ASTTypes.d.ts +6 -15
  162. package/types/src/calculation/compiler/CompilerUtils.d.ts +0 -227
  163. package/types/src/calculation/compiler/FormulaLexer.d.ts +0 -8
  164. package/types/src/calculation/compiler/FormulaParser.d.ts +0 -61
  165. package/types/src/calculation/compiler/ParserUtils.d.ts +0 -24
  166. package/types/src/calculation/compiler/Types.d.ts +1 -45
  167. package/types/src/calculation/engine/CalcBackend.d.ts +83 -127
  168. package/types/src/calculation/engine/index.d.ts +0 -8
  169. package/types/src/calculation/executor/CalcExecutor.d.ts +50 -116
  170. package/types/src/calculation/executor/CalcExecutorUtils.d.ts +47 -12
  171. package/types/src/calculation/executor/CircularReference.d.ts +0 -17
  172. package/types/src/calculation/executor/_BlockOrder.d.ts +29 -0
  173. package/types/src/calculation/executor/_WhatIf.d.ts +31 -0
  174. package/types/src/calculation/formula/FormulaBlock.d.ts +4 -31
  175. package/types/src/calculation/formula/FormulaRecordView.d.ts +0 -15
  176. package/types/src/calculation/formula/IFormulaBlock.d.ts +5 -12
  177. package/types/src/calculation/formula/LambdaValue.d.ts +0 -15
  178. package/types/src/calculation/formula/TokenUtils.d.ts +1 -8
  179. package/types/src/calculation/functions/_DataTableFunction.d.ts +14 -0
  180. package/types/src/calculation/grid/CalcGrid.d.ts +8 -64
  181. package/types/src/calculation/grid/CalcGridBackend.d.ts +12 -35
  182. package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -15
  183. package/types/src/calculation/grid/CalcGridUtils.d.ts +21 -23
  184. package/types/src/calculation/grid/ICalcGrid.d.ts +28 -109
  185. package/types/src/calculation/grid/_CalcRequest.d.ts +17 -33
  186. package/types/src/calculation/spatial/CircularEntry.d.ts +0 -10
  187. package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +54 -82
  188. package/types/src/calculation/spatial/SpillEntry.d.ts +20 -3
  189. package/types/src/calculation/state/CalcNode.d.ts +0 -1
  190. package/types/src/calculation/state/CalcScope.d.ts +29 -9
  191. package/types/src/calculation/state/CalcState.d.ts +19 -9
  192. package/types/src/calculation/state/CalculationContext.d.ts +32 -38
  193. package/types/src/calculation/state/DeferredCalls.d.ts +207 -0
  194. package/types/src/calculation/state/IContextContainer.d.ts +19 -55
  195. package/types/src/calculation/state/_KeepBlanks.d.ts +5 -0
  196. package/types/src/calculation/state/_PendingOverlayGrid.d.ts +52 -33
  197. package/types/src/calculation/state/_WhatIfLayer.d.ts +77 -0
  198. package/types/src/calculation/symbol/ExternalSheetSymbols.d.ts +0 -42
  199. package/types/src/calculation/symbol/ISymbolRegistry.d.ts +0 -6
  200. package/types/src/calculation/symbol/SheetSymbolProvider.d.ts +0 -12
  201. package/types/src/calculation/symbol/SymbolRegistry.d.ts +0 -9
  202. package/types/src/calculation/toolkit/index.d.ts +0 -8
  203. package/types/src/cell/ICell.d.ts +59 -54
  204. package/types/src/cellControl/CellControl.d.ts +67 -0
  205. package/types/src/cellControl/CellControlCollection.d.ts +29 -0
  206. package/types/src/cellControl/CellControlRegistry.d.ts +47 -0
  207. package/types/src/cellControl/ICellControl.d.ts +99 -0
  208. package/types/src/cellControl/ICellControlCollection.d.ts +67 -0
  209. package/types/src/cellControl/index.d.ts +4 -0
  210. package/types/src/cellRange/ICellRange.d.ts +226 -67
  211. package/types/src/cellRange/ICellRanges.d.ts +4 -3
  212. package/types/src/chart/Chart.d.ts +0 -16
  213. package/types/src/chart/_ChartParts.d.ts +0 -39
  214. package/types/src/chart/_ChartSource.d.ts +0 -14
  215. package/types/src/chart/createChart.d.ts +1 -1
  216. package/types/src/chart/kinds/ChartKind.d.ts +4 -4
  217. package/types/src/chart/kinds/_Placeholder.d.ts +0 -1
  218. package/types/src/chart/layout/ChartLayout.d.ts +5 -1
  219. package/types/src/chart/layout/TextMeasurer.d.ts +0 -20
  220. package/types/src/chart/layout/_LayoutUtils.d.ts +0 -16
  221. package/types/src/chart/math/BoxStats.d.ts +0 -8
  222. package/types/src/chart/math/DateUnitCalcs.d.ts +0 -10
  223. package/types/src/chart/math/Histogram.d.ts +0 -17
  224. package/types/src/chart/math/OrdUnitCalcs.d.ts +0 -53
  225. package/types/src/chart/math/Treemap.d.ts +0 -15
  226. package/types/src/chart/math/Trendlines.d.ts +0 -8
  227. package/types/src/chart/math/UnitCalcs.d.ts +0 -22
  228. package/types/src/chart/model/_Edits.d.ts +0 -33
  229. package/types/src/chart/model/_Grouping.d.ts +0 -25
  230. package/types/src/chart/model/_Inference.d.ts +0 -18
  231. package/types/src/chart/model/_NewChart.d.ts +0 -41
  232. package/types/src/chart/model/_OfPie.d.ts +0 -7
  233. package/types/src/chart/resolve/_LegacyStyles.d.ts +0 -20
  234. package/types/src/chart/resolve/_Resolve.d.ts +3 -12
  235. package/types/src/chart/resolve/_ResolvedChart.d.ts +5 -8
  236. package/types/src/collections/ISparseGrid.d.ts +11 -2
  237. package/types/src/collections/MixedTypedArrayList.d.ts +8 -2
  238. package/types/src/collections/SparseGrid.d.ts +3 -8
  239. package/types/src/collections/_GridUtils.d.ts +0 -10
  240. package/types/src/comment/_NoteBox.d.ts +0 -15
  241. package/types/src/condition/AnchoredConditional.d.ts +3 -25
  242. package/types/src/condition/BuiltInOperators/AbstractOperator.d.ts +0 -49
  243. package/types/src/condition/BuiltinSelectors/DisplaySelector.d.ts +0 -10
  244. package/types/src/condition/ICondition.d.ts +2 -2
  245. package/types/src/condition/_ConditionUtils.d.ts +0 -38
  246. package/types/src/externalBook/ExternalBookCollection.d.ts +0 -15
  247. package/types/src/externalBook/ExternalBookName.d.ts +2 -3
  248. package/types/src/externalBook/IExternalBook.d.ts +16 -18
  249. package/types/src/fetch/Fetcher.d.ts +15 -0
  250. package/types/src/fetch/IFetcher.d.ts +48 -0
  251. package/types/src/fetch/_WorkbookFetch.d.ts +43 -0
  252. package/types/src/fetch/index.d.ts +3 -0
  253. package/types/src/fill/PaintUtils.d.ts +3 -1
  254. package/types/src/font/AdvanceTable.d.ts +16 -42
  255. package/types/src/font/IFont.d.ts +32 -9
  256. package/types/src/font/TableFileAdvanceBuilder.d.ts +6 -3
  257. package/types/src/font/_FontUtils.d.ts +0 -8
  258. package/types/src/font/_StandIns.d.ts +33 -0
  259. package/types/src/hyperlink/IHyperlink.d.ts +10 -0
  260. package/types/src/hyperlink/_Hyperlink.d.ts +4 -1
  261. package/types/src/index.d.ts +2 -1
  262. package/types/src/io/IWorkbookIO.d.ts +3 -3
  263. package/types/src/io/WorkbookOrigin.d.ts +2 -2
  264. package/types/src/license/LicenseManager.d.ts +2 -1
  265. package/types/src/license/_Utils.d.ts +4 -3
  266. package/types/src/license/details.d.ts +3 -1
  267. package/types/src/license/keys.d.ts +6 -0
  268. package/types/src/license/license-key.d.ts +15 -33
  269. package/types/src/license/token.d.ts +55 -0
  270. package/types/src/named/INamedCollection.d.ts +36 -0
  271. package/types/src/named/NamedCollection.d.ts +18 -0
  272. package/types/src/picture/IPicture.d.ts +45 -0
  273. package/types/src/picture/Picture.d.ts +12 -0
  274. package/types/src/pivot/PivotTable.d.ts +0 -7
  275. package/types/src/primitives/AsyncValue.d.ts +46 -0
  276. package/types/src/primitives/PrimitiveUtils.d.ts +1 -110
  277. package/types/src/primitives/Range.d.ts +0 -60
  278. package/types/src/primitives/ScalarCollation.d.ts +0 -106
  279. package/types/src/primitives/stats/AggregateStats.d.ts +0 -19
  280. package/types/src/print/PageLayout.d.ts +0 -6
  281. package/types/src/reference/ReferenceUtils.d.ts +4 -2
  282. package/types/src/resource/IResource.d.ts +9 -0
  283. package/types/src/resource/IResourceCollection.d.ts +4 -0
  284. package/types/src/resource/Resource.d.ts +2 -0
  285. package/types/src/resource/_AddResource.d.ts +13 -0
  286. package/types/src/richData/CellImage.d.ts +95 -0
  287. package/types/src/richData/Hyperlink.d.ts +49 -0
  288. package/types/src/richData/IRichDataCollection.d.ts +76 -0
  289. package/types/src/richData/IRichDataKind.d.ts +55 -11
  290. package/types/src/richData/RichArray.d.ts +42 -0
  291. package/types/src/richData/RichDataCollection.d.ts +23 -0
  292. package/types/src/richData/RichDataRegistry.d.ts +52 -14
  293. package/types/src/richData/RichDataValues.d.ts +20 -0
  294. package/types/src/richData/RichRecord.d.ts +68 -0
  295. package/types/src/richData/RichText.d.ts +5 -5
  296. package/types/src/richData/index.d.ts +6 -0
  297. package/types/src/scripting/FunctionArguments.d.ts +17 -1
  298. package/types/src/scripting/FunctionCollection.d.ts +8 -0
  299. package/types/src/scripting/Scripts.d.ts +10 -0
  300. package/types/src/scripting/TypedFunction.d.ts +2 -109
  301. package/types/src/sheet/ICellContainerOptions.d.ts +6 -0
  302. package/types/src/sheet/IWorksheet.d.ts +26 -22
  303. package/types/src/sheet/NamedCellRange.d.ts +0 -21
  304. package/types/src/sheet/SheetCell.d.ts +25 -3
  305. package/types/src/sheet/SheetRange.d.ts +8 -2
  306. package/types/src/sheet/SheetRanges.d.ts +2 -2
  307. package/types/src/sheet/Worksheet.d.ts +117 -104
  308. package/types/src/sheet/_DelimitedText.d.ts +13 -0
  309. package/types/src/sheet/_IgnoredErrors.d.ts +0 -12
  310. package/types/src/sheet/_ListenerAnchor.d.ts +7 -1
  311. package/types/src/sheet/_ScalarListFactory.d.ts +46 -17
  312. package/types/src/sheet/_SheetCoords.d.ts +0 -7
  313. package/types/src/sheet/_SheetFilterUtils.d.ts +0 -8
  314. package/types/src/sheet/_SheetMutations.d.ts +4 -1
  315. package/types/src/sheet/_SheetStateReader.d.ts +0 -10
  316. package/types/src/sheet/_SheetStateTypes.d.ts +23 -14
  317. package/types/src/sheet/_SheetUtils.d.ts +1 -1
  318. package/types/src/sheet/style/_RowLine.d.ts +32 -0
  319. package/types/src/sheet/style/_StyleUtils.d.ts +6 -14
  320. package/types/src/sheetView/_SheetViewUtils.d.ts +0 -1
  321. package/types/src/slicer/_BuiltInSlicerStyles.d.ts +0 -5
  322. package/types/src/style/ICellStyle.d.ts +4 -0
  323. package/types/src/table/AnchoredTable.d.ts +0 -147
  324. package/types/src/text/TextFrame.d.ts +4 -1
  325. package/types/src/text/TextStacked.d.ts +0 -24
  326. package/types/src/text/TextWrapper.d.ts +3 -5
  327. package/types/src/text/_LineBox.d.ts +24 -0
  328. package/types/src/text/_TextUtils.d.ts +5 -2
  329. package/types/src/text/_TextWrapperFallback.d.ts +2 -1
  330. package/types/src/wasm/sdkWasm.d.ts +1 -1
  331. package/types/src/workbook/IWorkbook.d.ts +40 -1
  332. package/types/src/workbook/Workbook.d.ts +25 -13
  333. package/types/src/workbook/WorkbookRanges.d.ts +1 -1
  334. package/browser/esm/BGOFfpxr2jPIdqmV.mjs +0 -40
  335. package/browser/esm/BLoUBId2xZpXAK_H.mjs +0 -698
  336. package/browser/esm/C5E6zSGAALWf61n4.mjs +0 -199
  337. package/browser/esm/S2dNNx1a5ydRnARM.mjs +0 -367
  338. package/browser/esm/f1IoRb7tEb0QmCSt.mjs +0 -110
  339. package/browser/esm/gssVX_FH1XFN-twD.mjs +0 -210
  340. package/node/esm/BrCKGFRsX_ezFJ4B.mjs +0 -811
  341. package/node/esm/DOU54VsOjG-m-NyQ.mjs +0 -210
  342. package/node/esm/Db0v7zXNnyjBIjjI.mjs +0 -372
  343. package/node/esm/Df1bL6VFvrqIdSLB.mjs +0 -40
  344. package/node/esm/DrTZbfemSLq2mseG.mjs +0 -111
  345. package/types/src/dataTable/DataTable.d.ts +0 -67
  346. package/types/src/dataTable/DataTableCollection.d.ts +0 -19
  347. package/types/src/dataTable/IDataTable.d.ts +0 -99
  348. package/types/src/dataTable/IDataTableCollection.d.ts +0 -18
  349. package/types/src/dataTable/index.d.ts +0 -6
@@ -1,25 +1,25 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.13
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { An as e, Bn as t, Dn as n, Fn as r, Gn as i, Hn as a, In as o, Jn as s, Kn as c, Ln as l, Nn as u, Pn as d, Rn as f, Tn as p, Un as m, Vn as h, Wn as g, Xn as _, Yn as v, Zn as y, dr as b, ir as x, jn as S, kn as ee, nr as te, or as C, qn as w, rr as ne, sr as re, zn as ie } from "./C16ycKja6zG0crV_.mjs";
8
- import { FormulaError as T } from "@sheetxl/primitives";
9
- function E(e) {
7
+ import { $n as e, Bn as t, Fn as n, Gn as r, Jn as i, Kn as a, Ln as o, Qn as s, Un as c, Vn as l, Wn as u, Xn as d, Yn as f, Zn as p, _r as m, ar as h, er as g, fr as _, gr as v, ir as y, mr as ee, nr as b, or as x, pr as te, qn as S, rr as C, sr as w, tr as ne, xr as T, zn as re } from "./Dz86-De57bv2VYIi.mjs";
8
+ import { FormulaError as E } from "@sheetxl/primitives";
9
+ function D(e) {
10
10
  console && console.error && console.error(`Error: ${e}`);
11
11
  }
12
- function D(e) {
12
+ function O(e) {
13
13
  console && console.warn && console.warn(`Warning: ${e}`);
14
14
  }
15
- function ae(e) {
15
+ function ie(e) {
16
16
  let t = (/* @__PURE__ */ new Date()).getTime(), n = e();
17
17
  return {
18
18
  time: (/* @__PURE__ */ new Date()).getTime() - t,
19
19
  value: n
20
20
  };
21
21
  }
22
- function O(e) {
22
+ function ae(e) {
23
23
  function t() {}
24
24
  t.prototype = e;
25
25
  let n = new t();
@@ -988,10 +988,10 @@ function ke(e, t = !1) {
988
988
  let t = Ee(e);
989
989
  return Ae(t.value, {}, t.flags.ignoreCase);
990
990
  } catch (n) {
991
- if (n.message === De) t && D(`${Oe}\tUnable to optimize: < ${e.toString()} >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);
991
+ if (n.message === De) t && O(`${Oe}\tUnable to optimize: < ${e.toString()} >\n\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);
992
992
  else {
993
993
  let n = "";
994
- t && (n = "\n This will disable the lexer's first char optimizations.\n See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."), E(`${Oe}\n\tFailed parsing: < ${e.toString()} >\n\tUsing the @chevrotain/regexp-to-ast library\n\tPlease open an issue at: https://github.com/chevrotain/chevrotain/issues` + n);
994
+ t && (n = "\n This will disable the lexer's first char optimizations.\n See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."), D(`${Oe}\n\tFailed parsing: < ${e.toString()} >\n\tUsing the @chevrotain/regexp-to-ast library\n\tPlease open an issue at: https://github.com/chevrotain/chevrotain/issues` + n);
995
995
  }
996
996
  }
997
997
  return [];
@@ -1244,14 +1244,14 @@ function Le(e, t) {
1244
1244
  t !== i && (t = i, Je(e, i, m[r]));
1245
1245
  });
1246
1246
  } else if (n.PATTERN instanceof RegExp) {
1247
- if (n.PATTERN.unicode) g = !1, t.ensureOptimizations && E(`${Oe}\tUnable to analyze < ${n.PATTERN.toString()} > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);
1247
+ if (n.PATTERN.unicode) g = !1, t.ensureOptimizations && D(`${Oe}\tUnable to analyze < ${n.PATTERN.toString()} > pattern.\n\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);
1248
1248
  else {
1249
1249
  let i = ke(n.PATTERN, t.ensureOptimizations);
1250
1250
  i.length === 0 && (g = !1), i.forEach((t) => {
1251
1251
  Je(e, t, m[r]);
1252
1252
  });
1253
1253
  }
1254
- } else t.ensureOptimizations && E(`${Oe}\tTokenType: <${n.name}> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`), g = !1;
1254
+ } else t.ensureOptimizations && D(`${Oe}\tTokenType: <${n.name}> is using a custom token pattern without providing <start_chars_hint> parameter.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`), g = !1;
1255
1255
  return e;
1256
1256
  }, []);
1257
1257
  }), {
@@ -1571,7 +1571,7 @@ var J = class {
1571
1571
  this.traceInitIndent++;
1572
1572
  let n = Array(this.traceInitIndent + 1).join(" ");
1573
1573
  this.traceInitIndent < this.traceInitMaxIdent && console.log(`${n}--\x3e <${e}>`);
1574
- let { time: r, value: i } = ae(t), a = r > 10 ? console.warn : console.log;
1574
+ let { time: r, value: i } = ie(t), a = r > 10 ? console.warn : console.log;
1575
1575
  return this.traceInitIndent < this.traceInitMaxIdent && a(`${n}<-- <${e}> time: ${r}ms`), this.traceInitIndent--, i;
1576
1576
  }
1577
1577
  return t();
@@ -1659,7 +1659,7 @@ var J = class {
1659
1659
  throw Error("Errors detected in definition of Lexer:\n" + e);
1660
1660
  }
1661
1661
  this.lexerDefinitionWarning.forEach((e) => {
1662
- D(e.message);
1662
+ O(e.message);
1663
1663
  }), this.TRACE_INIT("Choosing sub-methods implementations", () => {
1664
1664
  if (r && (this.handleModes = () => {}), !1 === this.trackStartLines && (this.computeNewColumn = (e) => e), !1 === this.trackEndLines && (this.updateTokenEndLineColumnLocation = () => {}), /full/i.test(this.config.positionTracking)) this.createTokenInstance = this.createFullToken;
1665
1665
  else if (/onlyStart/i.test(this.config.positionTracking)) this.createTokenInstance = this.createStartOnlyToken;
@@ -1674,7 +1674,7 @@ var J = class {
1674
1674
  }), this.TRACE_INIT("clearRegExpParserCache", () => {
1675
1675
  we = {};
1676
1676
  }), this.TRACE_INIT("toFastProperties", () => {
1677
- O(this);
1677
+ ae(this);
1678
1678
  });
1679
1679
  });
1680
1680
  }
@@ -1686,14 +1686,14 @@ var J = class {
1686
1686
  return this.tokenizeInternal(e, t);
1687
1687
  }
1688
1688
  tokenizeInternal(e, t) {
1689
- let n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _ = e, v = _.length, y = 0, b = 0, x = this.hasCustom ? 0 : Math.floor(e.length / 10), S = Array(x), ee = [], te = this.trackStartLines ? 1 : void 0, C = this.trackStartLines ? 1 : void 0, w = {};
1689
+ let n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _ = e, v = _.length, y = 0, ee = 0, b = this.hasCustom ? 0 : Math.floor(e.length / 10), x = Array(b), te = [], S = this.trackStartLines ? 1 : void 0, C = this.trackStartLines ? 1 : void 0, w = {};
1690
1690
  for (let e = 0; e < this.cachedGroupKeys.length; e++) w[this.cachedGroupKeys[e]] = [];
1691
- let ne = this.trackStartLines, re = this.config.lineTerminatorsPattern, ie = 0, T = [], E = [], D = [], ae = [];
1692
- Object.freeze(ae);
1693
- let O = !1, k = (e) => {
1694
- if (D.length === 1 && e.tokenType.PUSH_MODE === void 0) {
1691
+ let ne = this.trackStartLines, T = this.config.lineTerminatorsPattern, re = 0, E = [], D = [], O = [], ie = [];
1692
+ Object.freeze(ie);
1693
+ let ae = !1, k = (e) => {
1694
+ if (O.length === 1 && e.tokenType.PUSH_MODE === void 0) {
1695
1695
  let t = this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);
1696
- ee.push({
1696
+ te.push({
1697
1697
  offset: e.startOffset,
1698
1698
  line: e.startLine,
1699
1699
  column: e.startColumn,
@@ -1701,38 +1701,38 @@ var J = class {
1701
1701
  message: t
1702
1702
  });
1703
1703
  } else {
1704
- D.pop();
1705
- let e = D.at(-1);
1706
- T = this.patternIdxToConfig[e], E = this.charCodeToPatternIdxToConfig[e], ie = T.length;
1704
+ O.pop();
1705
+ let e = O.at(-1);
1706
+ E = this.patternIdxToConfig[e], D = this.charCodeToPatternIdxToConfig[e], re = E.length;
1707
1707
  let t = this.canModeBeOptimized[e] && !1 === this.config.safeMode;
1708
- O = !(!E || !t);
1708
+ ae = !(!D || !t);
1709
1709
  }
1710
1710
  };
1711
1711
  function A(e) {
1712
- D.push(e), E = this.charCodeToPatternIdxToConfig[e], T = this.patternIdxToConfig[e], ie = T.length;
1712
+ O.push(e), D = this.charCodeToPatternIdxToConfig[e], E = this.patternIdxToConfig[e], re = E.length;
1713
1713
  let t = this.canModeBeOptimized[e] && !1 === this.config.safeMode;
1714
- O = !(!E || !t);
1714
+ ae = !(!D || !t);
1715
1715
  }
1716
1716
  let j;
1717
1717
  A.call(this, t);
1718
1718
  let M = this.config.recoveryEnabled;
1719
1719
  for (; y < v;) {
1720
1720
  s = null, u = -1;
1721
- let t = _.charCodeAt(y), x;
1722
- if (O) {
1723
- let e = K(t), n = E[e];
1724
- x = n === void 0 ? ae : n;
1725
- } else x = T;
1726
- let N = x.length;
1721
+ let t = _.charCodeAt(y), b;
1722
+ if (ae) {
1723
+ let e = K(t), n = D[e];
1724
+ b = n === void 0 ? ie : n;
1725
+ } else b = E;
1726
+ let N = b.length;
1727
1727
  for (n = 0; n < N; n++) {
1728
- j = x[n];
1728
+ j = b[n];
1729
1729
  let r = j.pattern;
1730
1730
  switch (c = null, j.matchType) {
1731
1731
  case 0:
1732
1732
  t === j.short && (u = 1, s = r);
1733
1733
  break;
1734
1734
  case 1:
1735
- g = r.exec(_, y, S, w), g === null ? s = null : (s = g[0], u = s.length, g.payload !== void 0 && (c = g.payload));
1735
+ g = r.exec(_, y, x, w), g === null ? s = null : (s = g[0], u = s.length, g.payload !== void 0 && (c = g.payload));
1736
1736
  break;
1737
1737
  case 3: {
1738
1738
  let e = j.asciiClass;
@@ -1752,8 +1752,8 @@ var J = class {
1752
1752
  s = e.substring(y, y + u);
1753
1753
  let t = o.length;
1754
1754
  for (i = 0; i < t; i++) {
1755
- let t = T[o[i]], n = t.pattern;
1756
- if (l = null, t.matchType === 1 ? (g = n.exec(_, y, S, w), g === null ? a = null : (a = g[0], g.payload !== void 0 && (l = g.payload))) : (n.lastIndex = y, a = this.match(n, e, y)), a && a.length > s.length) {
1755
+ let t = E[o[i]], n = t.pattern;
1756
+ if (l = null, t.matchType === 1 ? (g = n.exec(_, y, x, w), g === null ? a = null : (a = g[0], g.payload !== void 0 && (l = g.payload))) : (n.lastIndex = y, a = this.match(n, e, y)), a && a.length > s.length) {
1757
1757
  s = a, u = a.length, c = l, j = t;
1758
1758
  break;
1759
1759
  }
@@ -1763,32 +1763,32 @@ var J = class {
1763
1763
  }
1764
1764
  }
1765
1765
  if (u !== -1) {
1766
- if (d = j.group, d !== void 0 && (s = s === null ? e.substring(y, y + u) : s, f = j.tokenTypeIdx, p = this.createTokenInstance(s, y, f, j.tokenType, te, C, u), this.handlePayload(p, c), !1 === d ? b = this.addToken(S, b, p) : w[d].push(p)), !0 === ne && !0 === j.canLineTerminator) {
1766
+ if (d = j.group, d !== void 0 && (s = s === null ? e.substring(y, y + u) : s, f = j.tokenTypeIdx, p = this.createTokenInstance(s, y, f, j.tokenType, S, C, u), this.handlePayload(p, c), !1 === d ? ee = this.addToken(x, ee, p) : w[d].push(p)), !0 === ne && !0 === j.canLineTerminator) {
1767
1767
  let t, n, r = 0;
1768
- re.lastIndex = 0;
1768
+ T.lastIndex = 0;
1769
1769
  do
1770
- s = s === null ? e.substring(y, y + u) : s, t = re.test(s), !0 === t && (n = re.lastIndex - 1, r++);
1770
+ s = s === null ? e.substring(y, y + u) : s, t = T.test(s), !0 === t && (n = T.lastIndex - 1, r++);
1771
1771
  while (!0 === t);
1772
- r === 0 ? C = this.computeNewColumn(C, u) : (te += r, C = u - n, this.updateTokenEndLineColumnLocation(p, d, n, r, te, C, u));
1772
+ r === 0 ? C = this.computeNewColumn(C, u) : (S += r, C = u - n, this.updateTokenEndLineColumnLocation(p, d, n, r, S, C, u));
1773
1773
  } else C = this.computeNewColumn(C, u);
1774
1774
  y += u, this.handleModes(j, k, A, p);
1775
1775
  } else {
1776
- let t = y, n = te, i = C, a = !1 === M;
1777
- for (; !1 === a && y < v;) for (y++, r = 0; r < ie; r++) {
1778
- let t = T[r], n = t.pattern;
1776
+ let t = y, n = S, i = C, a = !1 === M;
1777
+ for (; !1 === a && y < v;) for (y++, r = 0; r < re; r++) {
1778
+ let t = E[r], n = t.pattern;
1779
1779
  switch (t.matchType) {
1780
1780
  case 0:
1781
1781
  _.charCodeAt(y) === t.short && (a = !0);
1782
1782
  break;
1783
1783
  case 1:
1784
- a = n.exec(_, y, S, w) !== null;
1784
+ a = n.exec(_, y, x, w) !== null;
1785
1785
  break;
1786
1786
  case 3:
1787
1787
  case 2: n.lastIndex = y, a = n.exec(e) !== null;
1788
1788
  }
1789
1789
  if (!0 === a) break;
1790
1790
  }
1791
- if (m = y - t, C = this.computeNewColumn(C, m), h = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(_, t, m, n, i, D.at(-1)), ee.push({
1791
+ if (m = y - t, C = this.computeNewColumn(C, m), h = this.config.errorMessageProvider.buildUnexpectedCharactersMessage(_, t, m, n, i, O.at(-1)), te.push({
1792
1792
  offset: t,
1793
1793
  line: n,
1794
1794
  column: i,
@@ -1797,10 +1797,10 @@ var J = class {
1797
1797
  }), !1 === M) break;
1798
1798
  }
1799
1799
  }
1800
- return this.hasCustom || (S.length = b), {
1801
- tokens: S,
1800
+ return this.hasCustom || (x.length = ee), {
1801
+ tokens: x,
1802
1802
  groups: w,
1803
- errors: ee
1803
+ errors: te
1804
1804
  };
1805
1805
  }
1806
1806
  handleModes(e, t, n, r) {
@@ -2954,7 +2954,7 @@ var zn, Bn = class e {
2954
2954
  this.selfAnalysisDone = !0;
2955
2955
  let n = this.className;
2956
2956
  this.TRACE_INIT("toFastProps", () => {
2957
- O(this);
2957
+ ae(this);
2958
2958
  }), this.TRACE_INIT("Grammar Recording", () => {
2959
2959
  try {
2960
2960
  this.enableRecording(), this.definedRulesNames.forEach((e) => {
@@ -4107,7 +4107,7 @@ Bn.DEFER_DEFINITION_ERRORS_HANDLING = !1, zn = Bn, [
4107
4107
  this.traceInitIndent++;
4108
4108
  let n = Array(this.traceInitIndent + 1).join(" ");
4109
4109
  this.traceInitIndent < this.traceInitMaxIdent && console.log(`${n}--\x3e <${e}>`);
4110
- let { time: r, value: i } = ae(t), a = r > 10 ? console.warn : console.log;
4110
+ let { time: r, value: i } = ie(t), a = r > 10 ? console.warn : console.log;
4111
4111
  return this.traceInitIndent < this.traceInitMaxIdent && a(`${n}<-- <${e}> time: ${r}ms`), this.traceInitIndent--, i;
4112
4112
  }
4113
4113
  return t();
@@ -4128,7 +4128,7 @@ var Vn = class extends Bn {
4128
4128
  }
4129
4129
  }, Hn = class e {
4130
4130
  static shared(t) {
4131
- let n = t?.locale ?? re, r = t?.maxColumn ?? Kn, i = t?.maxRow ?? qn, a = Gn.get(n);
4131
+ let n = t?.locale ?? m, r = t?.maxColumn ?? Kn, i = t?.maxRow ?? qn, a = Gn.get(n);
4132
4132
  a || (a = /* @__PURE__ */ new Map(), Gn.set(n, a));
4133
4133
  let o = `${r}:${i}`, s = a.get(o);
4134
4134
  return s || (s = new e({
@@ -4138,7 +4138,7 @@ var Vn = class extends Bn {
4138
4138
  }), a.set(o, s)), s;
4139
4139
  }
4140
4140
  constructor(e) {
4141
- let t = e?.maxColumn ?? Kn, n = e?.maxRow ?? qn, r = e?.locale ?? re;
4141
+ let t = e?.maxColumn ?? Kn, n = e?.maxRow ?? qn, r = e?.locale ?? m;
4142
4142
  this._locale = r, this._maxColumn = t, this._maxRow = n;
4143
4143
  let { separatorFunction: i, separatorColumn: a, separatorRow: o, separatorDecimal: s } = r.separators;
4144
4144
  if (a === o) throw Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${a}')`);
@@ -4154,16 +4154,16 @@ var Vn = class extends Bn {
4154
4154
  pattern: /[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/
4155
4155
  }), d = Y({
4156
4156
  name: "TableReference",
4157
- pattern: { exec: ne },
4157
+ pattern: { exec: te },
4158
4158
  line_breaks: !1,
4159
4159
  start_chars_hint: Wn
4160
4160
  }), f = Y({
4161
4161
  name: "BracketedString",
4162
- pattern: { exec: te },
4162
+ pattern: { exec: _ },
4163
4163
  line_breaks: !1,
4164
4164
  start_chars_hint: [91],
4165
4165
  longer_alt: [d, l]
4166
- }), p = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), m = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), h = Y({
4166
+ }), p = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), h = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), g = Y({
4167
4167
  name: "LiteralError",
4168
4168
  pattern: new RegExp(p(r.errorLiterals) + [
4169
4169
  "#PARSE!",
@@ -4182,63 +4182,63 @@ var Vn = class extends Bn {
4182
4182
  "#BUSY!",
4183
4183
  "#PYTHON!",
4184
4184
  "#TIMEOUT!"
4185
- ].map(m).join("|"))
4186
- }), g = Y({
4185
+ ].map(h).join("|"))
4186
+ }), v = Y({
4187
4187
  name: "RefError",
4188
- pattern: new RegExp(p(r.errorRefs) + ["#REF!", "#NAME\\?"].map(m).join("|"))
4189
- }), _ = Y({
4188
+ pattern: new RegExp(p(r.errorRefs) + ["#REF!", "#NAME\\?"].map(h).join("|"))
4189
+ }), y = Y({
4190
4190
  name: "SingleQuotedString",
4191
4191
  pattern: /'(''|[^'])*'/
4192
- }), v = Y({
4192
+ }), ee = Y({
4193
4193
  name: "SheetQuoted",
4194
4194
  pattern: /'(?:''|[^'])*?'!/
4195
- }), y = Y({
4195
+ }), b = Y({
4196
4196
  name: "Sheet",
4197
4197
  pattern: /[A-Za-z_.\d\u007F-\uFFFF]*!/
4198
- }), b = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, x = Y({
4198
+ }), x = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, S = Y({
4199
4199
  name: "NamedToken",
4200
4200
  pattern: { exec: (e, t) => {
4201
- b.lastIndex = t;
4202
- let n = b.exec(e);
4201
+ x.lastIndex = t;
4202
+ let n = x.exec(e);
4203
4203
  if (!n) return null;
4204
4204
  let r = n[0], i = r.indexOf(".:");
4205
4205
  return i === -1 ? r.endsWith(":") && (r = r.slice(0, -1)) : r = r.substring(0, i), [r];
4206
4206
  } },
4207
4207
  line_breaks: !1,
4208
4208
  start_chars_hint: Wn
4209
- }), S = Y({
4209
+ }), C = Y({
4210
4210
  name: "Cell",
4211
4211
  pattern: { exec: Xn(t, n) },
4212
4212
  line_breaks: !1,
4213
4213
  start_chars_hint: [36, ...Un],
4214
- longer_alt: x
4215
- }), ee = Y({
4214
+ longer_alt: S
4215
+ }), w = Y({
4216
4216
  name: "Column",
4217
4217
  pattern: { exec: Yn(t) },
4218
4218
  line_breaks: !1,
4219
4219
  start_chars_hint: [36, ...Un],
4220
- longer_alt: x
4221
- }), C = Y({
4220
+ longer_alt: S
4221
+ }), ne = Y({
4222
4222
  name: "AbsRow",
4223
4223
  pattern: /[$][0-9]+/
4224
- }), w = s === "." ? "\\." : s, ie = Y({
4224
+ }), T = s === "." ? "\\." : s, re = Y({
4225
4225
  name: "NumberToken",
4226
- pattern: RegExp(`[0-9]+${w}(?!:)[0-9]*([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|${w}[0-9]+([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+`)
4227
- }), T = Y({
4226
+ pattern: RegExp(`[0-9]+${T}(?!:)[0-9]*([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|${T}[0-9]+([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+`)
4227
+ }), E = Y({
4228
4228
  name: "ScientificDigit",
4229
4229
  pattern: /[0-9]+\*\*[+-]?[0-9]+/
4230
- }), E = Y({
4230
+ }), D = Y({
4231
4231
  name: "DigitToken",
4232
4232
  pattern: /[0-9]+/
4233
- }), D = ["TRUE", "FALSE"];
4233
+ }), O = ["TRUE", "FALSE"];
4234
4234
  for (let e of [r.booleanTrue, r.booleanFalse]) {
4235
4235
  let t = e?.trim();
4236
- t && !D.some((e) => e.toLowerCase() === t.toLowerCase()) && D.push(t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
4236
+ t && !O.some((e) => e.toLowerCase() === t.toLowerCase()) && O.push(t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
4237
4237
  }
4238
- let ae = Y({
4238
+ let ie = Y({
4239
4239
  name: "BooleanToken",
4240
- pattern: new RegExp(D.join("|"), "i")
4241
- }), O = Y({
4240
+ pattern: new RegExp(O.join("|"), "i")
4241
+ }), ae = Y({
4242
4242
  name: "ArgSeparator",
4243
4243
  pattern: Zn(i)
4244
4244
  }), k = Y({
@@ -4301,7 +4301,7 @@ var Vn = class extends Bn {
4301
4301
  }), fe = Y({
4302
4302
  name: "ArrayAnchorOp",
4303
4303
  pattern: /#/,
4304
- longer_alt: [h, g]
4304
+ longer_alt: [g, v]
4305
4305
  }), pe = Y({
4306
4306
  name: "GtOp",
4307
4307
  pattern: />/
@@ -4314,31 +4314,31 @@ var Vn = class extends Bn {
4314
4314
  }), U = [
4315
4315
  c,
4316
4316
  l,
4317
- v,
4318
- _,
4317
+ ee,
4319
4318
  y,
4319
+ b,
4320
4320
  u,
4321
4321
  d,
4322
4322
  f,
4323
- h,
4324
4323
  g,
4325
- O,
4324
+ v,
4325
+ ae,
4326
4326
  ...a === i ? [] : [k],
4327
4327
  A,
4328
4328
  M,
4329
4329
  N,
4330
4330
  P,
4331
4331
  j,
4332
- S,
4333
- ae,
4334
- ee,
4335
4332
  C,
4336
4333
  ie,
4337
- T,
4334
+ w,
4335
+ ne,
4336
+ re,
4338
4337
  E,
4338
+ D,
4339
4339
  fe,
4340
4340
  V,
4341
- x,
4341
+ S,
4342
4342
  F,
4343
4343
  I,
4344
4344
  L,
@@ -4371,13 +4371,13 @@ var Vn = class extends Bn {
4371
4371
  let W = {};
4372
4372
  U.forEach((e) => {
4373
4373
  W[e.name] = e;
4374
- }), a === i && (W.ColSeparator = O), this._vocabulary = W;
4374
+ }), a === i && (W.ColSeparator = ae), this._vocabulary = W;
4375
4375
  }
4376
4376
  tokenize(e, t = !0) {
4377
4377
  let n = this._lexer.tokenize(e);
4378
4378
  if (t && n.errors.length > 0) {
4379
4379
  let t = n.errors[0], r = t.line, i = t.column, a = e.substr(t.offset, t.length || 1), o = a ? `Unexpected character '${a}'` : t.message;
4380
- throw new T.Parse(o, {
4380
+ throw new E.Parse(o, {
4381
4381
  line: r,
4382
4382
  column: i,
4383
4383
  offset: t.offset,
@@ -4469,28 +4469,28 @@ function Zn(e) {
4469
4469
  return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
4470
4470
  }
4471
4471
  var Qn = class {
4472
- constructor(e = re) {
4472
+ constructor(e = m) {
4473
4473
  let t = function(e) {
4474
- let t = [...p];
4474
+ let t = [...n];
4475
4475
  if (e) for (let n of Object.values(e)) {
4476
4476
  let e = n?.trim();
4477
4477
  e && !t.some((t) => t.toLowerCase() === e.toLowerCase()) && t.push(e);
4478
4478
  }
4479
4479
  return t.sort((e, t) => t.length - e.length), t.map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
4480
- }(e.specifiers), n = Y({
4480
+ }(e.specifiers), r = Y({
4481
4481
  name: "WhiteSpace",
4482
4482
  pattern: /\s+/,
4483
4483
  group: J.SKIPPED
4484
- }), r = Y({
4484
+ }), i = Y({
4485
4485
  name: "TableSpecifier",
4486
4486
  pattern: RegExp(`\\[#(?:${t})\\]`, "i")
4487
- }), i = [
4488
- n,
4487
+ }), a = [
4489
4488
  r,
4489
+ i,
4490
4490
  Y({
4491
4491
  name: "BracketedColumn",
4492
4492
  pattern: /\[(?:'['#[\]]|'(?!['#[\]])|[^'[\]])*\]/,
4493
- longer_alt: [r]
4493
+ longer_alt: [i]
4494
4494
  }),
4495
4495
  Y({
4496
4496
  name: "BareSpecifier",
@@ -4505,11 +4505,11 @@ var Qn = class {
4505
4505
  pattern: new RegExp(e.separators.separatorFunction.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"))
4506
4506
  })
4507
4507
  ];
4508
- this._lexer = new J(i, { ensureOptimizations: !0 });
4509
- let a = {};
4510
- i.forEach((e) => {
4511
- a[e.name] = e;
4512
- }), this._vocabulary = a;
4508
+ this._lexer = new J(a, { ensureOptimizations: !0 });
4509
+ let o = {};
4510
+ a.forEach((e) => {
4511
+ o[e.name] = e;
4512
+ }), this._vocabulary = o;
4513
4513
  }
4514
4514
  getVocabulary() {
4515
4515
  return this._vocabulary;
@@ -4518,7 +4518,7 @@ var Qn = class {
4518
4518
  return this._lexer.tokenize(e);
4519
4519
  }
4520
4520
  }, $n = class extends Vn {
4521
- constructor(e = re) {
4521
+ constructor(e = m) {
4522
4522
  let t = new Qn(e), n = t.getVocabulary();
4523
4523
  super(n, {
4524
4524
  nodeLocationTracking: "none",
@@ -4542,13 +4542,13 @@ var Qn = class {
4542
4542
  }), c.RULE("ruleItem", () => c.OR([{ ALT: () => c.SUBRULE(c.ruleSpecifier) }, { ALT: () => c.SUBRULE(c.ruleColumnOrRange) }])), c.RULE("ruleSpecifier", () => c.OR([{ ALT: () => {
4543
4543
  let t = c.CONSUME(r);
4544
4544
  return c.ACTION(() => {
4545
- let n = y(t.image, e);
4545
+ let n = w(t.image, e);
4546
4546
  return n.image = t.image, n;
4547
4547
  });
4548
4548
  } }, { ALT: () => {
4549
4549
  let t = c.CONSUME(a);
4550
4550
  return c.ACTION(() => {
4551
- let n = y(t.image, e);
4551
+ let n = w(t.image, e);
4552
4552
  return n.image = t.image, n;
4553
4553
  });
4554
4554
  } }])), c.RULE("ruleColumnOrRange", () => {
@@ -4556,11 +4556,11 @@ var Qn = class {
4556
4556
  return c.OPTION(() => {
4557
4557
  t = c.CONSUME(o), n = c.CONSUME2(i);
4558
4558
  }), c.ACTION(() => {
4559
- let r = v(e.image);
4559
+ let r = h(e.image);
4560
4560
  if (r.image = e.image, !n) return r;
4561
- let i = v(n.image);
4561
+ let i = h(n.image);
4562
4562
  i.image = n.image;
4563
- let a = l(":", r, i, !0);
4563
+ let a = S(":", r, i, !0);
4564
4564
  return a.image = t?.image ?? ":", a;
4565
4565
  });
4566
4566
  }), c.performSelfAnalysis();
@@ -4587,13 +4587,13 @@ var Qn = class {
4587
4587
  return e.image = "@", [e];
4588
4588
  }
4589
4589
  }
4590
- let n = v(e);
4590
+ let n = h(e);
4591
4591
  n.image = e;
4592
4592
  let r = g("@", n, !0);
4593
4593
  return r.image = "@", [r];
4594
4594
  }
4595
4595
  if (n !== "[" && n !== "#") {
4596
- let t = v(e);
4596
+ let t = h(e);
4597
4597
  return t.image = e, [t];
4598
4598
  }
4599
4599
  return this._parseInner(t);
@@ -4601,7 +4601,7 @@ var Qn = class {
4601
4601
  parse(e, t, n) {
4602
4602
  this.reset();
4603
4603
  let r = () => ({
4604
- root: _("", []),
4604
+ root: x("", []),
4605
4605
  errors: []
4606
4606
  });
4607
4607
  if (!n) return r();
@@ -4614,7 +4614,7 @@ var Qn = class {
4614
4614
  if (a === -1) return r();
4615
4615
  let o = n.slice(0, a), s = n.slice(a + 1, -1), c = this._parseContent(s);
4616
4616
  return {
4617
- root: _(o, c),
4617
+ root: x(o, c),
4618
4618
  errors: this.errors.length > 0 ? [...this.errors] : []
4619
4619
  };
4620
4620
  }
@@ -4629,7 +4629,7 @@ var Qn = class {
4629
4629
  ":."
4630
4630
  ]), nr = (e) => {
4631
4631
  if (!e) return null;
4632
- if (e.type === b.Cell) {
4632
+ if (e.type === T.Cell) {
4633
4633
  let t = e.value;
4634
4634
  return t.rowIndex === -(2 ** 53 - 1) ? "col" : t.colIndex === -(2 ** 53 - 1) ? "row" : null;
4635
4635
  }
@@ -4659,70 +4659,70 @@ var sr = {
4659
4659
  return e.expected === X && t ? `Unexpected '${t}'` : yt.buildMismatchTokenMessage(e);
4660
4660
  }
4661
4661
  }, cr = class extends Vn {
4662
- constructor(p) {
4663
- let _ = p?.lexer ?? Hn.shared(p?.lexerOptions), v = _.getVocabulary();
4664
- super(v, {
4662
+ constructor(n) {
4663
+ let m = n?.lexer ?? Hn.shared(n?.lexerOptions), h = m.getVocabulary();
4664
+ super(h, {
4665
4665
  skipValidations: !0,
4666
4666
  recoveryEnabled: !0,
4667
- ...p,
4667
+ ...n,
4668
4668
  nodeLocationTracking: "full",
4669
4669
  errorMessageProvider: sr,
4670
4670
  maxLookahead: 1
4671
4671
  }), this._ruleInfixOp = this.RULE("ruleInfixOp", () => {
4672
- let { PlusOp: e, MinOp: t, MulOp: r, DivOp: i, ExOp: a, ConcatOp: o, GtOp: s, EqOp: c, LtOp: u, NeqOp: d, GteOp: f, LteOp: p } = this._vocab, m = [];
4673
- return m.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
4674
- let n = this.OR(this._c1 ||= [
4672
+ let { PlusOp: e, MinOp: t, MulOp: n, DivOp: r, ExOp: i, ConcatOp: a, GtOp: s, EqOp: c, LtOp: l, NeqOp: u, GteOp: d, LteOp: f } = this._vocab, p = [];
4673
+ return p.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
4674
+ let o = this.OR(this._c1 ||= [
4675
4675
  { ALT: () => this.CONSUME(e).image },
4676
4676
  { ALT: () => this.CONSUME(t).image },
4677
+ { ALT: () => this.CONSUME(n).image },
4677
4678
  { ALT: () => this.CONSUME(r).image },
4678
4679
  { ALT: () => this.CONSUME(i).image },
4679
4680
  { ALT: () => this.CONSUME(a).image },
4680
- { ALT: () => this.CONSUME(o).image },
4681
4681
  { ALT: () => this.CONSUME(s).image },
4682
4682
  { ALT: () => this.CONSUME(c).image },
4683
+ { ALT: () => this.CONSUME(l).image },
4683
4684
  { ALT: () => this.CONSUME(u).image },
4684
4685
  { ALT: () => this.CONSUME(d).image },
4685
- { ALT: () => this.CONSUME(f).image },
4686
- { ALT: () => this.CONSUME(p).image }
4687
- ]), l = {
4688
- value: n,
4686
+ { ALT: () => this.CONSUME(f).image }
4687
+ ]), m = {
4688
+ value: o,
4689
4689
  index: this.getLexerPosition(),
4690
- isRange: x.includes(n)
4690
+ isRange: ee.includes(o)
4691
4691
  }, h = this.SUBRULE2(this._rulePostfixOp);
4692
- m.push({
4693
- op: l,
4692
+ p.push({
4693
+ op: m,
4694
4694
  node: h
4695
4695
  });
4696
4696
  }), this.ACTION(() => {
4697
- let e = m.length - 1, t = n.length;
4698
- for (let r = 0; e > 0 && r < t; r++) {
4699
- let t = n[r], i = 1;
4700
- for (; i < m.length;) {
4701
- let n = m[i].op;
4697
+ let e = p.length - 1, t = o.length;
4698
+ for (let n = 0; e > 0 && n < t; n++) {
4699
+ let t = o[n], r = 1;
4700
+ for (; r < p.length;) {
4701
+ let n = p[r].op;
4702
4702
  if (t.includes(n.value)) {
4703
- let t = m[i - 1].node, r = m[i].node, a = l(n.value, t, r, n.isRange);
4704
- a = this._tag(a, n.index), m[i - 1].node = a, m.splice(i, 1), e--;
4705
- } else i++;
4703
+ let t = p[r - 1].node, i = p[r].node, a = S(n.value, t, i, n.isRange);
4704
+ a = this._tag(a, n.index), p[r - 1].node = a, p.splice(r, 1), e--;
4705
+ } else r++;
4706
4706
  }
4707
4707
  }
4708
- }), m[0].node;
4708
+ }), p[0].node;
4709
4709
  }), this._rulePlusMinusOp = this.RULE("rulePlusMinusOp", () => {
4710
4710
  let { PlusOp: e, MinOp: t } = this._vocab;
4711
4711
  return this.OR([{ ALT: () => this.CONSUME(e) }, { ALT: () => this.CONSUME(t) }]);
4712
4712
  }), this._rulePostfixOp = this.RULE("rulePostfixOp", () => {
4713
- let { PercentOp: e } = this._vocab, t = this.SUBRULE(this._rulePrefixOp), n = [];
4713
+ let { PercentOp: t } = this._vocab, n = this.SUBRULE(this._rulePrefixOp), r = [];
4714
4714
  return this.MANY(() => {
4715
- let t = this.CONSUME(e).image;
4715
+ let e = this.CONSUME(t).image;
4716
4716
  this.ACTION(() => {
4717
- n.push([t, this.getLexerPosition()]);
4717
+ r.push([e, this.getLexerPosition()]);
4718
4718
  });
4719
4719
  }), this.ACTION(() => {
4720
- let e = n.length;
4721
- if (e !== 0) for (let r = 0; r < e; r++) {
4722
- let e = n[r], i = e[0], a = e[1], o = x.includes(i);
4723
- t = m(i, t, o), t = this._tag(t, a);
4720
+ let t = r.length;
4721
+ if (t !== 0) for (let i = 0; i < t; i++) {
4722
+ let t = r[i], a = t[0], o = t[1], s = ee.includes(a);
4723
+ n = e(a, n, s), n = this._tag(n, o);
4724
4724
  }
4725
- }), t;
4725
+ }), n;
4726
4726
  }), this._rulePrefixOp = this.RULE("rulePrefixOp", () => {
4727
4727
  let { PlusOp: e, MinOp: t, ImplicitIntersectOp: n } = this._vocab, r = [];
4728
4728
  this.MANY(() => {
@@ -4739,41 +4739,47 @@ var sr = {
4739
4739
  return this.ACTION(() => {
4740
4740
  let e = r.length;
4741
4741
  if (e !== 0) for (let t = e - 1; t >= 0; t--) {
4742
- let e = r[t], n = e[0], a = e[1], o = x.includes(n);
4742
+ let e = r[t], n = e[0], a = e[1], o = ee.includes(n);
4743
4743
  i = g(n, i, o), i = this._tag(i, a);
4744
4744
  }
4745
4745
  }), i;
4746
4746
  }), this._ruleRangeOp = this.RULE("ruleRangeOp", () => {
4747
- let { RangeOp: e, RangeTrimFullOp: t, RangeTrimLeadingOp: n, RangeTrimTrailingOp: r, ArrayAnchorOp: i } = this._vocab, a = [];
4748
- return a.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
4749
- this.CONSUME(i), a.push({ anchor: this.getLexerPosition() });
4747
+ let { RangeOp: t, RangeTrimFullOp: n, RangeTrimLeadingOp: r, RangeTrimTrailingOp: i, ArrayAnchorOp: a } = this._vocab, o = [];
4748
+ return o.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
4749
+ this.CONSUME(a), o.push({ anchor: this.getLexerPosition() });
4750
4750
  }), this.MANY(() => {
4751
- let o = {
4751
+ let e = {
4752
4752
  value: this.OR(this._c2 ||= [
4753
- { ALT: () => this.CONSUME(e).image },
4754
4753
  { ALT: () => this.CONSUME(t).image },
4755
4754
  { ALT: () => this.CONSUME(n).image },
4756
- { ALT: () => this.CONSUME(r).image }
4755
+ { ALT: () => this.CONSUME(r).image },
4756
+ { ALT: () => this.CONSUME(i).image }
4757
4757
  ]),
4758
4758
  index: this.getLexerPosition()
4759
4759
  }, s = this.SUBRULE2(this._ruleCallOp);
4760
- a.push({
4761
- op: o,
4760
+ o.push({
4761
+ op: e,
4762
4762
  node: s
4763
4763
  }), this.MANY3(() => {
4764
- this.CONSUME2(i), a.push({ anchor: this.getLexerPosition() });
4764
+ this.CONSUME2(a), o.push({ anchor: this.getLexerPosition() });
4765
4765
  });
4766
4766
  }), this.ACTION(() => {
4767
- for (let e = 1; e < a.length; e++) {
4768
- let t = a[e];
4769
- if (t.anchor !== void 0) {
4770
- a[0].node = this._tag(m("#", a[0].node, !0), t.anchor);
4767
+ for (let e = 1; e + 1 < o.length; e++) {
4768
+ let t = o[e], n = o[e + 1];
4769
+ if (t.op?.value !== ":" || n.op?.value !== ":") continue;
4770
+ let r = nr(t.node);
4771
+ r && nr(n.node) === r && nr(o[e - 1].node) !== r && (t.node = this._tag(S(":", t.node, n.node, !0), n.op.index), o.splice(e + 1, 1));
4772
+ }
4773
+ for (let t = 1; t < o.length; t++) {
4774
+ let n = o[t];
4775
+ if (n.anchor !== void 0) {
4776
+ o[0].node = this._tag(e("#", o[0].node, !0), n.anchor);
4771
4777
  continue;
4772
4778
  }
4773
- let n = t.op, r = l(n.value, a[0].node, t.node, !0);
4774
- r = this._tag(r, n.index), a[0].node = r;
4779
+ let r = n.op, i = S(r.value, o[0].node, n.node, !0);
4780
+ i = this._tag(i, r.index), o[0].node = i;
4775
4781
  }
4776
- }), a[0].node;
4782
+ }), o[0].node;
4777
4783
  }), this._ruleCallOp = this.RULE("ruleCallOp", () => {
4778
4784
  let { OpenParen: e, CloseParen: t } = this._vocab, n = this.SUBRULE(this._ruleFormula);
4779
4785
  return this.MANY({
@@ -4783,7 +4789,7 @@ var sr = {
4783
4789
  },
4784
4790
  DEF: () => {
4785
4791
  this.CONSUME(e);
4786
- let r = this.getLexerPosition(), i = this.SUBRULE(this._ruleFunctionArguments), a = n, o = this.ACTION(() => this._tag(S(a, i), r)), s = this.OPTION(() => this.CONSUME(t));
4792
+ let r = this.getLexerPosition(), i = this.SUBRULE(this._ruleFunctionArguments), a = n, o = this.ACTION(() => this._tag(l(a, i), r)), s = this.OPTION(() => this.CONSUME(t));
4787
4793
  this.ACTION(() => {
4788
4794
  s || this._reportError(o, "Missing closing parenthesis ')'", r), this._tagClose(o, this.getLexerPosition()), n = o;
4789
4795
  });
@@ -4805,7 +4811,7 @@ var sr = {
4805
4811
  for (; e.length > 1;) {
4806
4812
  let t = e.length - 1;
4807
4813
  for (let n = 0; n < t; n++) {
4808
- let r = e[n], i = e[n + 1], a = l(" ", r, i, !0), o = this._tokenMap.get(r);
4814
+ let r = e[n], i = e[n + 1], a = S(" ", r, i, !0), o = this._tokenMap.get(r);
4809
4815
  o && delete o.tokenIndexClose;
4810
4816
  let s = this._tokenMap.get(i), c = s?.tokenIndex;
4811
4817
  if (c !== void 0) {
@@ -4835,77 +4841,77 @@ var sr = {
4835
4841
  }), t;
4836
4842
  }), this._ruleParen = this.RULE("ruleParen", () => {
4837
4843
  let { OpenParen: e, CloseParen: t } = this._vocab;
4838
- return this._processParen(b.Paren, e, t);
4844
+ return this._processParen(T.Paren, e, t);
4839
4845
  }), this._ruleLiteralArray = this.RULE("ruleLiteralArray", () => {
4840
- let { OpenCurlyParen: e, CloseCurlyParen: n, ColSeparator: r, RowSeparator: i } = this._vocab, a = t();
4846
+ let { OpenCurlyParen: e, CloseCurlyParen: t, ColSeparator: n, RowSeparator: r } = this._vocab, a = d();
4841
4847
  this.CONSUME(e);
4842
- let o = this.getLexerPosition(), s = this.ACTION(() => this._tag(f(a), o)), c = this.SUBRULE(this._ruleLiteralForArray);
4848
+ let o = this.getLexerPosition(), s = this.ACTION(() => this._tag(i(a), o)), c = this.SUBRULE(this._ruleLiteralForArray);
4843
4849
  this.ACTION(() => {
4844
4850
  a.value.push(c);
4845
4851
  }), this.MANY(() => {
4846
4852
  let e = !1;
4847
4853
  this.OR([{ ALT: () => {
4848
- this.CONSUME(r), e = !0;
4849
- } }, { ALT: () => this.CONSUME(i) }]);
4850
- let n = this.SUBRULE2(this._ruleLiteralForArray);
4854
+ this.CONSUME(n), e = !0;
4855
+ } }, { ALT: () => this.CONSUME(r) }]);
4856
+ let t = this.SUBRULE2(this._ruleLiteralForArray);
4851
4857
  this.ACTION(() => {
4852
- e || (a = t(), s.value.push(a)), a.value.push(n);
4858
+ e || (a = d(), s.value.push(a)), a.value.push(t);
4853
4859
  });
4854
4860
  });
4855
- let l = this.OPTION(() => this.CONSUME(n));
4861
+ let l = this.OPTION(() => this.CONSUME(t));
4856
4862
  return s = this.ACTION(() => (l || this._reportError(s, "Missing closing parenthesis '}'", o), this._tagClose(s, this.getLexerPosition()))), s;
4857
4863
  }), this._ruleLiteralForArray = this.RULE("ruleLiteralForArray", () => {
4858
- let { StringToken: t, BooleanToken: n, LiteralError: r, RefError: o } = this._vocab;
4864
+ let { StringToken: e, BooleanToken: n, LiteralError: r, RefError: i } = this._vocab;
4859
4865
  return this.OR([
4860
4866
  { ALT: () => {
4861
- let e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), n = this.ACTION(() => this._tag(a(t.image, this._locale), this.getLexerPosition()));
4862
- return this.ACTION(() => e ? i(e.image, n) : n);
4867
+ let e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), n = this.ACTION(() => this._tag(s(t.image, this._locale), this.getLexerPosition()));
4868
+ return this.ACTION(() => e ? ne(e.image, n) : n);
4863
4869
  } },
4864
4870
  { ALT: () => {
4865
- let e = this.CONSUME(t);
4866
- return this.ACTION(() => this._tag(s(e.image), this.getLexerPosition()));
4871
+ let t = this.CONSUME(e);
4872
+ return this.ACTION(() => this._tag(y(t.image), this.getLexerPosition()));
4867
4873
  } },
4868
4874
  { ALT: () => {
4869
- let t = this.CONSUME(n);
4870
- return this.ACTION(() => this._tag(e(t.image, this._locale), this.getLexerPosition()));
4875
+ let e = this.CONSUME(n);
4876
+ return this.ACTION(() => this._tag(t(e.image, this._locale), this.getLexerPosition()));
4871
4877
  } },
4872
4878
  { ALT: () => {
4873
4879
  let e = this.CONSUME(r);
4874
- return this.ACTION(() => this._tag(ie(e.image, this._locale), this.getLexerPosition()));
4880
+ return this.ACTION(() => this._tag(f(e.image, this._locale), this.getLexerPosition()));
4875
4881
  } },
4876
4882
  { ALT: () => {
4877
- let e = this.CONSUME(o);
4878
- return this.ACTION(() => this._tag(c(e.image, this._locale), this.getLexerPosition()));
4883
+ let e = this.CONSUME(i);
4884
+ return this.ACTION(() => this._tag(b(e.image, this._locale), this.getLexerPosition()));
4879
4885
  } }
4880
4886
  ]);
4881
4887
  }), this._ruleLiteral = this.RULE("ruleLiteral", () => {
4882
- let { StringToken: t, BooleanToken: n, LiteralError: r, RefError: i } = this._vocab;
4888
+ let { StringToken: e, BooleanToken: n, LiteralError: r, RefError: i } = this._vocab;
4883
4889
  return this.OR([
4884
4890
  { ALT: () => {
4885
4891
  let e = this.SUBRULE(this._ruleNumber);
4886
- return this.ACTION(() => this._tag(a(e.image, this._locale), this.getLexerPosition()));
4892
+ return this.ACTION(() => this._tag(s(e.image, this._locale), this.getLexerPosition()));
4887
4893
  } },
4888
4894
  { ALT: () => {
4889
- let e = this.CONSUME(t);
4890
- return this.ACTION(() => this._tag(s(e.image), this.getLexerPosition()));
4895
+ let t = this.CONSUME(e);
4896
+ return this.ACTION(() => this._tag(y(t.image), this.getLexerPosition()));
4891
4897
  } },
4892
4898
  { ALT: () => {
4893
- let t = this.CONSUME(n);
4894
- return this.ACTION(() => this._tag(e(t.image, this._locale), this.getLexerPosition()));
4899
+ let e = this.CONSUME(n);
4900
+ return this.ACTION(() => this._tag(t(e.image, this._locale), this.getLexerPosition()));
4895
4901
  } },
4896
4902
  { ALT: () => {
4897
4903
  let e = this.CONSUME(r);
4898
- return this.ACTION(() => this._tag(ie(e.image, this._locale), this.getLexerPosition()));
4904
+ return this.ACTION(() => this._tag(f(e.image, this._locale), this.getLexerPosition()));
4899
4905
  } },
4900
4906
  { ALT: () => {
4901
4907
  let e = this.CONSUME(i);
4902
- return this.ACTION(() => this._tag(c(e.image, this._locale), this.getLexerPosition()));
4908
+ return this.ACTION(() => this._tag(b(e.image, this._locale), this.getLexerPosition()));
4903
4909
  } }
4904
4910
  ]);
4905
4911
  }), this._ruleFunction = this.RULE("ruleFunction", () => {
4906
4912
  let { FunctionToken: e, OpenParen: t, CloseParen: n } = this._vocab, r = this.CONSUME(e).image, i = this.getLexerPosition();
4907
4913
  this.CONSUME(t);
4908
- let a = this.SUBRULE(this._ruleFunctionArguments), s = this.ACTION(() => this._tag(o(r, a), i)), c = this.OPTION(() => this.CONSUME(n));
4914
+ let o = this.SUBRULE(this._ruleFunctionArguments), s = this.ACTION(() => this._tag(a(r, o), i)), c = this.OPTION(() => this.CONSUME(n));
4909
4915
  return s = this.ACTION(() => (c || this._reportError(s, "Missing closing parenthesis ')'", i), this._tagClose(s, this.getLexerPosition()))), s;
4910
4916
  }), this._ruleFunctionArguments = this.RULE("ruleFunctionArguments", () => {
4911
4917
  let { ArgSeparator: e, CloseParen: t } = this._vocab, n = [];
@@ -4938,7 +4944,7 @@ var sr = {
4938
4944
  return this._tag(e.root, n);
4939
4945
  });
4940
4946
  }), this._ruleReference = this.RULE("ruleReference", () => {
4941
- let { Sheet: e, SheetQuoted: t, DivOp: n, MulOp: r, PlusOp: i, MinOp: a, ArgSeparator: o, Cell: s, NamedToken: l, SingleQuotedString: f, Column: p, AbsRow: m, DigitToken: g, RefError: _ } = this._vocab, v, y;
4947
+ let { Sheet: e, SheetQuoted: t, DivOp: n, MulOp: r, PlusOp: i, MinOp: a, ArgSeparator: o, Cell: s, NamedToken: l, SingleQuotedString: d, Column: f, AbsRow: m, DigitToken: h, RefError: g } = this._vocab, _, v;
4942
4948
  this.OPTION2({
4943
4949
  GATE: () => {
4944
4950
  for (let s = 1; s < 6; s++) {
@@ -4949,50 +4955,50 @@ var sr = {
4949
4955
  return !1;
4950
4956
  },
4951
4957
  DEF: () => {
4952
- y = this.getLexerPosition() + 1, v = this.SUBRULE(this._rulePrefixSheetName);
4958
+ v = this.getLexerPosition() + 1, _ = this.SUBRULE(this._rulePrefixSheetName);
4953
4959
  }
4954
4960
  });
4955
- let x = this.OR([
4961
+ let y = this.OR([
4956
4962
  { ALT: () => {
4957
4963
  let e = this.CONSUME(s), t = this.getLexerPosition();
4958
- return this.ACTION(() => this._tag(u(e.image, this.rowIndex, this.colIndex), t));
4964
+ return this.ACTION(() => this._tag(c(e.image, this.rowIndex, this.colIndex), t));
4959
4965
  } },
4960
4966
  { ALT: () => {
4961
- let e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(f) }]);
4962
- return this.ACTION(() => this._tag(h(e.image), this.getLexerPosition()));
4967
+ let e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(d) }]);
4968
+ return this.ACTION(() => this._tag(p(e.image), this.getLexerPosition()));
4963
4969
  } },
4964
4970
  { ALT: () => this.SUBRULE(this._ruleBracketedString) },
4965
4971
  { ALT: () => this.SUBRULE(this._ruleFunction) },
4966
4972
  { ALT: () => {
4967
- let e = this.CONSUME(p);
4968
- return this.ACTION(() => this._tag(d(e.image, this.colIndex), this.getLexerPosition()));
4973
+ let e = this.CONSUME(f);
4974
+ return this.ACTION(() => this._tag(u(e.image, this.colIndex), this.getLexerPosition()));
4969
4975
  } },
4970
4976
  { ALT: () => {
4971
4977
  let e = this.CONSUME(m);
4972
- return this.ACTION(() => this._tag(w(e.image, this.rowIndex), this.getLexerPosition()));
4978
+ return this.ACTION(() => this._tag(C(e.image, this.rowIndex), this.getLexerPosition()));
4973
4979
  } },
4974
4980
  { ALT: () => {
4975
- let e = this.CONSUME(g);
4976
- return this.ACTION(() => this._tag(w(e.image, this.rowIndex), this.getLexerPosition()));
4981
+ let e = this.CONSUME(h);
4982
+ return this.ACTION(() => this._tag(C(e.image, this.rowIndex), this.getLexerPosition()));
4977
4983
  } },
4978
4984
  { ALT: () => {
4979
- let e = this.CONSUME(_);
4980
- return this.ACTION(() => this._tag(c(e.image, this._locale), this.getLexerPosition()));
4985
+ let e = this.CONSUME(g);
4986
+ return this.ACTION(() => this._tag(b(e.image, this._locale), this.getLexerPosition()));
4981
4987
  } }
4982
4988
  ]);
4983
4989
  return this.ACTION(() => {
4984
- if (v && x) {
4985
- if (v.name === "") return void this._reportError(x, `'${v.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
4986
- let e = x;
4987
- if (x.type === b.Postfix && x.inputs?.[0] && (e = x.inputs[0]), e.type === b.Cell || e.type === b.Named || e.type === b.Row || e.type === b.TableColumn || e.type === b.Error) {
4988
- e.value.scope = v.name, e.value.scopeImage = v.image;
4990
+ if (_ && y) {
4991
+ if (_.name === "") return void this._reportError(y, `'${_.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
4992
+ let e = y;
4993
+ if (y.type === T.Postfix && y.inputs?.[0] && (e = y.inputs[0]), e.type === T.Cell || e.type === T.Named || e.type === T.Row || e.type === T.TableColumn || e.type === T.Error) {
4994
+ e.value.scope = _.name, e.value.scopeImage = _.image;
4989
4995
  let t = this._tokenMap.get(e);
4990
- t && y !== void 0 && (t.tokenIndex = y);
4996
+ t && v !== void 0 && (t.tokenIndex = v);
4991
4997
  }
4992
4998
  }
4993
- }), x;
4999
+ }), y;
4994
5000
  }), this._rulePrefixSheetName = this.RULE("rulePrefixSheetName", () => {
4995
- let { SheetQuoted: e, BracketedString: t, NamedToken: n, RangeOp: r, Sheet: i } = this._vocab;
5001
+ let { SheetQuoted: e, BracketedString: t, NamedToken: n, Column: r, RangeOp: i, Sheet: a } = this._vocab;
4996
5002
  return this.OR([{ ALT: () => {
4997
5003
  let t = this.CONSUME(e).image;
4998
5004
  return {
@@ -5004,15 +5010,18 @@ var sr = {
5004
5010
  this.OPTION(() => {
5005
5011
  e += this.CONSUME(t).image;
5006
5012
  }), this.OPTION2({
5007
- GATE: () => this.LA(2).tokenType === r,
5013
+ GATE: () => this.LA(2).tokenType === i,
5008
5014
  DEF: () => {
5009
- e += this.CONSUME(n).image, this.CONSUME(r), e += ":";
5015
+ e += this.OR2([{ ALT: () => this.CONSUME(n).image }, {
5016
+ GATE: () => this.LA(1).image.charCodeAt(0) !== 36,
5017
+ ALT: () => this.CONSUME(r).image
5018
+ }]), this.CONSUME(i), e += ":";
5010
5019
  }
5011
5020
  });
5012
- let a = this.CONSUME(i).image;
5021
+ let o = this.CONSUME(a).image;
5013
5022
  return {
5014
- name: e + a.slice(0, -1),
5015
- image: e + a
5023
+ name: e + o.slice(0, -1),
5024
+ image: e + o
5016
5025
  };
5017
5026
  } }]);
5018
5027
  }), this._ruleNumber = this.RULE("ruleNumber", () => {
@@ -5027,12 +5036,12 @@ var sr = {
5027
5036
  return this.MANY(() => {
5028
5037
  this.CONSUME(e), n.push(this.SUBRULE2(this._ruleIntersectOp));
5029
5038
  }), this.ACTION(() => n.length === 0 ? t : {
5030
- type: b.List,
5039
+ type: T.List,
5031
5040
  value: ",",
5032
5041
  inputs: [t, ...n],
5033
5042
  isReference: !0
5034
5043
  });
5035
- }), this._lexer = _, this._locale = _.getLocale(), this._vocab = v, this._srParser = p?.srParser ?? new $n(this._locale), this.performSelfAnalysis();
5044
+ }), this._lexer = m, this._locale = m.getLocale(), this._vocab = h, this._srParser = n?.srParser ?? new $n(this._locale), this.performSelfAnalysis();
5036
5045
  }
5037
5046
  getLexer() {
5038
5047
  return this._lexer;
@@ -5041,26 +5050,26 @@ var sr = {
5041
5050
  let r = this._lexer.tokenize(n), i;
5042
5051
  if (!r) return {
5043
5052
  root: {
5044
- type: b.Unparsed,
5053
+ type: T.Unparsed,
5045
5054
  value: n
5046
5055
  },
5047
5056
  errors: []
5048
5057
  };
5049
5058
  let a = r.tokens;
5050
- if (a.length === 0) throw new T.Parse(ir);
5051
- return this.input = a, this._inputText = n, this._inputTextLength = n.length, this.rowIndex = e, this.colIndex = t, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), i = this._ruleRoot(), i && this._bindAllWhitespace(i), i = C(i, (t, n) => {
5059
+ if (a.length === 0) throw new E.Parse(ir);
5060
+ return this.input = a, this._inputText = n, this._inputTextLength = n.length, this.rowIndex = e, this.colIndex = t, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), i = this._ruleRoot(), i && this._bindAllWhitespace(i), i = v(i, (t, n) => {
5052
5061
  let r = t.type, i = n?.isReference ? n.value : void 0, a = typeof i == "string" && er.has(i), o = typeof i == "string" && tr.has(i), s = a ? n.inputs : void 0, c = s ? s[0] === t ? s[1] : s[0] : void 0, l = this._lexer.getMaxRow();
5053
- if (a && r !== b.Cell && Number.isInteger(t.value)) {
5054
- let n = w(t.image, e);
5055
- return ee(n, t), nr(c) === "row" ? rr(t.image, l) || this._reportError(n, `'${t.image}' is not a valid row — rows run from 1 to ${l}`) : this._reportError(n, `'${t.image}' is not a valid reference — a whole row can only pair with another row (as in ${t.image}:${t.image})`), n;
5062
+ if (a && r !== T.Cell && Number.isInteger(t.value)) {
5063
+ let n = C(t.image, e);
5064
+ return re(n, t), nr(c) === "row" ? rr(t.image, l) || this._reportError(n, `'${t.image}' is not a valid row — rows run from 1 to ${l}`) : this._reportError(n, `'${t.image}' is not a valid reference — a whole row can only pair with another row (as in ${t.image}:${t.image})`), n;
5056
5065
  }
5057
- if (o && r === b.Named) return this._reportError(t, `'${t.image ?? t.value?.nameId}' is a name — '${i}' needs a cell or range on both sides`), t;
5058
- if (r === b.Cell) {
5066
+ if (o && r === T.Named) return this._reportError(t, `'${t.image ?? t.value?.nameId}' is a name — '${i}' needs a cell or range on both sides`), t;
5067
+ if (r === T.Cell) {
5059
5068
  let e = t.value, n = e.colIndex === -(2 ** 53 - 1), r = e.rowIndex === -(2 ** 53 - 1);
5060
5069
  if ((n || r) && nr(c) === (n ? "row" : "col")) return n && !rr(t.image, l) && this._reportError(t, `'${t.image}' is not a valid row — rows run from 1 to ${l}`), t;
5061
5070
  if (n || r || e.colIndex >= 16384) {
5062
- let a = h(t.image);
5063
- ee(a, t);
5071
+ let a = p(t.image);
5072
+ re(a, t);
5064
5073
  let s = e.scope;
5065
5074
  return s && (a.value.scope = s, a.value.scopeImage = e.scopeImage), n ? this._reportError(a, `'${t.image}' is not a valid reference — a row needs a column (use ${t.image}:${t.image} for the whole row)`) : r && t.image.includes("$") ? this._reportError(a, `'${t.image}' is not a valid reference — a whole column can only pair with another column (as in ${t.image}:${t.image})`) : o && this._reportError(a, `'${t.image}' is a name — '${i}' needs a cell or range on both sides`), a;
5066
5075
  }
@@ -5123,7 +5132,7 @@ var sr = {
5123
5132
  _bindAllWhitespace(e) {
5124
5133
  if (e) {
5125
5134
  if (this._bindNodeWhitespace(e), e.inputs) for (let t of e.inputs) t && this._bindAllWhitespace(t);
5126
- if (e.type === b.Array && Array.isArray(e.value)) {
5135
+ if (e.type === T.Array && Array.isArray(e.value)) {
5127
5136
  for (let t of e.value) if (t && Array.isArray(t.value)) for (let e of t.value) e && this._bindAllWhitespace(e);
5128
5137
  }
5129
5138
  }