@sheetxl/mcp 0.8.0-beta.16 → 0.8.0-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/agent/instructions.md +15 -4
  2. package/assets/{B_nQLUWaxp-Q1IfV.js → -cMvbaW1kvHslPKX.js} +2 -2
  3. package/assets/{D1g6IOzdvInVLV-x.js → 0kfwZuOHUkJmVjg6.js} +6 -6
  4. package/assets/{Gqh12ggLm5KlvN3v.js → 1feDuXw6tBXu2XFg.js} +1 -1
  5. package/assets/{DmLbqbAez7Dzwyl7.js → 4qMP71Fe1Ep8kbOX.js} +1 -1
  6. package/assets/{AjWB-QdIkr07kToW.js → 7TRx0dMYnL2i4tqL.js} +193 -193
  7. package/assets/{iqQWGoJaPha0_8lU.js → 8cVPexxAVrFJ9QLX.js} +1 -1
  8. package/assets/{C-AIgWmHugqMcl9J.js → APP8AzsNgQXHTalA.js} +2 -2
  9. package/assets/{Cl98sBOj9GM2XnFe.js → AnF1Kh3Vo2AniIYO.js} +2 -2
  10. package/assets/{B2YEEPHIkNcezk9T.js → B2BfjRdJGZs6afVL.js} +2 -2
  11. package/assets/{DEIkGoOZ_WeuY0Lj.js → B2UxLSteMiPlg8Uu.js} +1 -1
  12. package/assets/{BiGm1tKvxUh8oWbD.js → B3mh2tuvP-lMP6f_.js} +1 -1
  13. package/assets/{CG8zvnxueimOY7wm.js → B6NnxkSmEzCGZEZA.js} +1 -1
  14. package/assets/{DFAqI-o57Kd_Azlt.js → B7Nqa7V-v0cxGBux.js} +1 -1
  15. package/assets/{DTLbKr_XIJMwQJmk.js → B7OyFSpBb1eBvMVd.js} +13 -13
  16. package/assets/{CFdJvXLSbUrvNera.js → B8JX7a6VZlBNA_Bd.js} +8 -8
  17. package/assets/{Z01wJImjl6lBMpf4.js → B9J8nV-dh6jHpzZI.js} +1 -1
  18. package/assets/{C75i_5ip7OhGkuiF.js → B9M_sgHpoc-op6FF.js} +1 -1
  19. package/assets/{POdlv6cpSx6ftJxx.js → BBC_WF8BcAH-k_cQ.js} +1 -1
  20. package/assets/{DdrsYdX3bLixdb_9.js → BGZ_ltNFYvnAmbVR.js} +1 -1
  21. package/assets/{BNrpvJZtIL0Ex_wE.js → BJBoygm-gY68bLAP.js} +15 -15
  22. package/assets/{SaCo3me4_hw2b1L4.js → BJdWgj1hv57eGVl4.js} +389 -389
  23. package/assets/{Co_y6GfwJTYtOmlt.js → BKRLtOdVOUTrLjQN.js} +3 -3
  24. package/assets/{DNhfziNrJGdL8BYs.js → BKjovBsLpX2Fkhov.js} +6 -6
  25. package/assets/{pQUJKbHGetb7dcOr.js → BMJhHHX2LWgOJWGz.js} +1 -1
  26. package/assets/{D-irgQZ2WmkP9dnK.js → BOx4Ut_Rme7NH34X.js} +1 -1
  27. package/assets/{DfzLOnWTNL_2J90y.js → BQYpVYbvfWuUJgdx.js} +1 -1
  28. package/assets/{BtNRIFE92ka4hATo.js → BS4ZsfH5D6aemSpO.js} +1 -1
  29. package/assets/{CZepo1lDTQp1myg6.js → BSAdmOdx3brRE9LW.js} +1 -1
  30. package/assets/{DFn_thWGK0_EZI5k.js → BSY9Tbmz6VEY_F_x.js} +1 -1
  31. package/assets/{Dd8CHUZz7xuYTfp-.js → BT8AGlSg2t7V1QNj.js} +488 -488
  32. package/assets/{SB2aKOIVln0EkgXR.js → BUV7BlOZcuPgDZ__.js} +1 -1
  33. package/assets/{BbXlmp8W_cbr75FN.js → BX5xFncPLyeN7TqA.js} +5 -5
  34. package/assets/{3t-I20nDzFHBd5UJ.js → Bcak_hZpcIkB2gJD.js} +1 -1
  35. package/assets/{C0JSC9gVwR1QxopD.js → BdijGsy5W7yZ_I_n.js} +1 -1
  36. package/assets/{QVWayvB03YMyTKt3.js → BebXDUnlrDDRGW60.js} +2 -2
  37. package/assets/{D7iU4kaxzl_PojNt.js → BgldX21zhey2aR9D.js} +1 -1
  38. package/assets/{DQcus4X_kTKIIyX6.js → BhCbCEPpDzhg5nqL.js} +1 -1
  39. package/assets/{BZbxPclVVopktv3l.js → Bj4BFLBC9Tf6SGSt.js} +1 -1
  40. package/assets/{Di4ehJD7muvtcrN3.js → BjhAYfsKC8iEbtgn.js} +40 -40
  41. package/assets/{Ct5VTtdW77k-WcP_.js → BjnQVl1lb1KEbt2D.js} +51 -51
  42. package/assets/{CAEhAL7-0FG7jdzN.js → BlbxiLf1zD6_fWZs.js} +1 -1
  43. package/assets/{JC8UUcu6m23qqrr3.js → BmM-nHMAAuNatCcN.js} +1 -1
  44. package/assets/{BlWfQ5HPEehB_lPz.js → Bni-y4FJS4rkFYtn.js} +107 -107
  45. package/assets/{C2dG4GHThf9O-IJy.js → BodrfKIAhDFD-X3t.js} +1 -1
  46. package/assets/{C_0RM0w6Pw70Bx_Y.js → BvDcHHJvQMRHthm-.js} +1 -1
  47. package/assets/{4vS8pASPZSU7QcRZ.js → Bw_FtA-1886HMCLJ.js} +3 -3
  48. package/assets/{2GLqCzpAJP6jbaRx.js → Bxkx8QokmRNyXbOI.js} +5 -5
  49. package/assets/{B3MqN3t5naY3moOk.js → Bz1ImBvJwPwBrA5j.js} +1 -1
  50. package/assets/{BpgPKKZwxXklRyo7.js → C2NPIWe0pLs3PAZM.js} +2 -2
  51. package/assets/{DzkccbbE6iXMqQDO.js → C2ZX6ffXsMaEr2d2.js} +305 -305
  52. package/assets/{nmB0nnkFQf5NWo0i.js → C3Q-fjiZZ15waCq_.js} +2 -2
  53. package/assets/{CsjjeeOHE2624pGt.js → C46RpMrfF6FiEFI7.js} +1 -1
  54. package/assets/{LwFDS0HxPZKiiEnN.js → C4deMY87Q_haYyLF.js} +1 -1
  55. package/assets/{CW-ivE6pl3V7vKuT.js → C7iHn3y3HVBHflpA.js} +4 -4
  56. package/assets/{CVRc6jQcH155Z89u.js → CJF3P7U7yBQVF2Cg.js} +1 -1
  57. package/assets/{B16N6VSLY5HPgVkD.js → CLgvdaqeFlESLvbF.js} +1 -1
  58. package/assets/{BUAq-ENCmL0XGLIu.js → CLze192iF2o-aETZ.js} +1 -1
  59. package/assets/{CX-6eYkcr5y0VmQm.js → CMRLNLqYkiqCLMRa.js} +3 -3
  60. package/assets/{CAMrW5ypKhgn105y.js → COa691om4fLN4CUy.js} +1 -1
  61. package/assets/CSLLHl-zum7m1CJl.js +14 -0
  62. package/assets/{DJdRl2yX9DP_D8kh.js → CUbCBf24Ie4A2l4R.js} +2 -2
  63. package/assets/{CDqG64rXHp9-2tXr.js → CWLleOolFzyT0COW.js} +1 -1
  64. package/assets/{C3Wibs7QGFZ1FI7W.js → CaJ9j3l0cERnYqDS.js} +1 -1
  65. package/assets/{CrwtgrD7BbXyCkx0.js → CfA8o-FNret9-D6Y.js} +1 -1
  66. package/assets/{BbDKWV_FQAICqZjP.js → Cl7HHR6Vc9S4n3AP.js} +1 -1
  67. package/assets/{DKRa_Oc4XqB3DABB.js → CqjNsZ2OB4Kx6J3s.js} +8 -8
  68. package/assets/{soSlr334Fv1j5t2m.js → CqwEHSKivMYw7tRZ.js} +1 -1
  69. package/assets/{Dg4JXbd1yPGNZOtL.js → Cr6lm0oXZJaaoAmD.js} +1 -1
  70. package/assets/{Dp-dLoOaBndV2N5i.js → CshK6Ew7OQ7mngI3.js} +2 -2
  71. package/assets/{DBMZF6PRHCko9K9R.js → CsiIgnb_L2x2Go6g.js} +1 -1
  72. package/assets/{BYqyNLuwXl7GKuzh.js → CtmrBbpapaNwjwNB.js} +28 -28
  73. package/assets/{DvFwVzuc5YfagNnH.js → CwRhhoL5ynbe78dB.js} +1 -1
  74. package/assets/{C95HXhZkkhnUx_aE.js → CyI1eGGzJX8nJXaT.js} +2 -2
  75. package/assets/{DMhtIFfkX-DZT_e3.js → Cz4H3Qge2u8er3Ny.js} +3 -3
  76. package/assets/{BrtLeTsrulaU6osB.js → D0OQ6ka8so0BWPwL.js} +1 -1
  77. package/assets/{CJa8JVvKGVBz8Q7q.js → D336KioeSjd-T8n3.js} +2 -2
  78. package/assets/{DBANZf_eAzaCFdIj.js → D5L35C8cbX16BSCF.js} +227 -227
  79. package/assets/{DOZ40EyxD3m0gCos.js → D5VFuX1h50V2jLmZ.js} +305 -305
  80. package/assets/{5B_tapYOcjOv1wGO.js → D6ON3ZLcTAXV3fO6.js} +8353 -8352
  81. package/assets/{BsFWmVYPrLyh5Dre.js → DDhPOQPc-lpyZrUJ.js} +4 -4
  82. package/assets/{iULnLPcNKVpz00r7.js → DE4xC78p5UtS7wH6.js} +1 -1
  83. package/assets/{-PtBguqpLi7Nr4Df.js → DF7-oRscXc_vkMo8.js} +1 -1
  84. package/assets/{BIUUGUhypimIDg2a.js → DMuOMpgIhVgB3eG8.js} +1 -1
  85. package/assets/{TNQaiw20sEAEUiK5.js → DPKeRb9GKmh_WCPv.js} +1 -1
  86. package/assets/{9MXt8KXdWlbEJNc2.js → DSsH28SW8CMrSL-q.js} +1 -1
  87. package/assets/{D2YdqNWXwSHJMPbA.js → DV6WSFmSEKfb3d2s.js} +4 -4
  88. package/assets/{Bdt9nQs8gDIzu_IG.js → DYJcfrNUUJQtxXWX.js} +1 -1
  89. package/assets/{DLhlBqwsDnmscAuL.js → D_peM8fbRgGaWvpq.js} +1 -1
  90. package/assets/{D7ibkNIu_Pn4TeBD.js → DeEZvPW-VvlE28oE.js} +3 -3
  91. package/assets/{CL1-ziDI0aAaVbhJ.js → Dgi2xwb2DN2Gybj3.js} +2 -2
  92. package/assets/{BiE9M6RctwQ339_7.js → DidhZpf9qJAei29Y.js} +1 -1
  93. package/assets/{BlIrJwQGEASCgJdZ.js → Dkg-LQVsZlrHk7A8.js} +1 -1
  94. package/assets/{BBPjYcS8XKQREith.js → DnTfXqCnRCe-1QYI.js} +61 -61
  95. package/assets/{CVbRpT7QPHOMgwTx.js → DoBvgI3Ry8DlGzwQ.js} +1 -1
  96. package/assets/{BjDsx_FHl0mShqHX.js → DrHVew6gwOB6oxCn.js} +1 -1
  97. package/assets/{BRLA4pJWiYdpW-69.js → Dre79rTMoYYikNuB.js} +19 -19
  98. package/assets/{DaILIYfy-jPVTXjz.js → DsCNtBR5jCeqmLBS.js} +2 -2
  99. package/assets/{W2FU69Pfo4chpqtk.js → Dzz3yrKbECzg6caR.js} +1 -1
  100. package/assets/{nDmE2I07HvkpRdR0.js → FvxN6PPps-rNPDo8.js} +1 -1
  101. package/assets/{DfWWAHOjmhqvN3m_.js → G2Wjyx_ETCAcofwm.js} +130 -130
  102. package/assets/{YXC__Myl-BuIFW6s.js → IGAV8DdYH32cW8XU.js} +1 -1
  103. package/assets/{C-gN7uBg-MWHRo4g.js → Jd71-QCmFEcDcYSw.js} +1 -1
  104. package/assets/{CBPkPTmeaEokFPSI.js → Ljri8sTW3dWT4clD.js} +1 -1
  105. package/assets/{D3bxrF1Ys2GSVfQH.js → MW2nt7se27FlH9Yb.js} +1 -1
  106. package/assets/{8NrxfSWBHDaEJvhz.js → Mgs_OJP41a-Nfac3.js} +1 -1
  107. package/assets/{CvJkwRgwm80S2bcd.js → OHBzl-tZOi9Ni8YV.js} +1 -1
  108. package/assets/{BR66nPIzyzlOcP10.js → PbBzI4PlKpCgULLd.js} +1 -1
  109. package/assets/{DR9xHYH6v5G0lOqf.js → UH_biJmLrI9SvckA.js} +3 -3
  110. package/assets/{DFvs1LVzXKm1N5M2.js → Xe7sA_mEwDQpJjcF.js} +2 -2
  111. package/assets/{Dy67BUF2yd8VRPwL.js → YFiGplEq1G4XdCJ2.js} +1 -1
  112. package/assets/{BuhHuKVWppW4L8AV.js → YQtUMMGmb1_WFsh_.js} +1 -1
  113. package/assets/{BCSRsSAEPlwR59H5.js → dcvgOfBmWFTsXoT8.js} +4 -4
  114. package/assets/{Ci7-PIIhZwb2mVv5.js → iBgLe32XErisaUSr.js} +1 -1
  115. package/assets/{rfwqMukKbJBeJBuC.js → kpS1vY0DcE9p8JnI.js} +2 -2
  116. package/assets/{BdMebk9YSA0oxQ_d.js → lcIaYgz4tQGBlzlo.js} +67 -67
  117. package/assets/{CK9h6iDOreaI8GEt.js → nQbVdQrfdz3osBdi.js} +3 -3
  118. package/assets/{CoIjAX2gECGb3Wxl.js → oJNJQJEDQCsjHSmo.js} +1 -1
  119. package/assets/{3_NofB4A4Qhl-4YY.js → qgW-p2sFhMtuu5yw.js} +1 -1
  120. package/assets/{h6EQSu5n2vTsu2yd.js → z24-oIqP_fu2hsOt.js} +1 -1
  121. package/assets/{CIqJdIUKSLZkNwHy.js → z7nDK_gfX7G37XbZ.js} +34 -34
  122. package/index.js +205 -205
  123. package/lib.js +1 -1
  124. package/licenses/dependencies.txt +35 -35
  125. package/package.json +2 -2
  126. package/screenshot-page/assets/{D8s3sJnhFxbI3Dqn.js → 7Xk_eQAcM_HgWrOC.js} +1 -1
  127. package/screenshot-page/assets/{CQFj5AGXfIA9z9zI.js → B1W17rc9ilPFCh31.js} +1 -1
  128. package/screenshot-page/assets/B8UkvH0o9n_G5UO9.js +3 -0
  129. package/screenshot-page/assets/{CZa1rha3RnQUWyOk.js → BD96fN2dSVuoME09.js} +4 -4
  130. package/screenshot-page/assets/BE8ea8S0Q-qogeEs.js +2 -0
  131. package/screenshot-page/assets/{BU5S8KEzPmIA_Flm.js → BKwVcuWOKeH2xREA.js} +1 -1
  132. package/screenshot-page/assets/BNMBa8EZgWX2Eb3c.js +1 -0
  133. package/screenshot-page/assets/{Db6bZVJ-184DJIoe.js → BQCyH9YbEgnH78Ke.js} +2 -2
  134. package/screenshot-page/assets/BcDxaEii3arJqOym.js +1 -0
  135. package/screenshot-page/assets/Be-rukvcufhLamH5.js +1 -0
  136. package/screenshot-page/assets/{Dq7wGcTrNIshovlT.js → Bh33WyohJvbKZVQN.js} +2 -2
  137. package/screenshot-page/assets/C2ty_K_uix4ooip6.js +1 -0
  138. package/screenshot-page/assets/C9mUKjQ3yEzRu9j2.js +2 -0
  139. package/screenshot-page/assets/{DDkL9PZPXAggW2Yr.js → CB2mQ5rbaSw2W4ik.js} +23 -23
  140. package/screenshot-page/assets/{DLFFFQjTi5Ji1940.js → CCVAsuUimIJOkBnk.js} +1 -1
  141. package/screenshot-page/assets/{D7biuwkvm3zAwsBa.js → COoMVTzF50qBNFEu.js} +3 -3
  142. package/screenshot-page/assets/{Bir0SSOHX0w2yo8h.js → CSMEGhAHxl5-4FxB.js} +1 -1
  143. package/screenshot-page/assets/{rOzyaU7hqchMbhRL.js → CT7cY57t9j1sBhAy.js} +1 -1
  144. package/screenshot-page/assets/{BJ2r2WfEL3SgkBAX.js → CTjUtxDw6Z2I9OGc.js} +1 -1
  145. package/screenshot-page/assets/{BIrVK5hdDCUYmxGO.js → CUZobZ3mfNAdEisS.js} +1 -1
  146. package/screenshot-page/assets/{ClzJdxlUDDtBYjH8.js → C_OuKbe6z1it80cj.js} +1 -1
  147. package/screenshot-page/assets/Cbcv49b9jWyY4HKj.js +2 -0
  148. package/screenshot-page/assets/CtZFqwLoeJOvwFrl.js +42 -0
  149. package/screenshot-page/assets/Cz6KFmsp267l_VZS.js +1 -0
  150. package/screenshot-page/assets/{lgeNUp9cU20IAotv.js → D0koRjO2KnWQ1fNV.js} +1 -1
  151. package/screenshot-page/assets/{cTMKPkmZF8FWQaMn.js → DCP8JXEeiwAMiVD2.js} +1 -1
  152. package/screenshot-page/assets/DQAZPADvH5lhlMnK.js +1 -0
  153. package/screenshot-page/assets/DQBUH0j44Vtrykua.js +13 -0
  154. package/screenshot-page/assets/{DyiVrm8mEnEaoZHa.js → DSKOOgcJQeqIc9Us.js} +1 -1
  155. package/screenshot-page/assets/{CguXw0IcKNPbmAbj.js → DXaM3CulPA3aPGV1.js} +2 -2
  156. package/screenshot-page/assets/{CqyMYduWKFvmMs_Z.js → DcUOAH274IbYOuK1.js} +1 -1
  157. package/screenshot-page/assets/{CRsTnamLrPN5-Dsi.js → DdXSKhFUAsKUsQ1u.js} +1 -1
  158. package/screenshot-page/assets/Djl40tfWoPJSvqtv.js +1 -0
  159. package/screenshot-page/assets/TCImIYUUdVD4Z35I.js +1 -0
  160. package/screenshot-page/assets/dQsis-90Up-pIkSq.js +4 -0
  161. package/screenshot-page/assets/{Dn5PwRw7rrTKNnql.js → dXn1GWWjYmuLb1HF.js} +8 -8
  162. package/screenshot-page/index.html +5 -5
  163. package/assets/DsTi7zHk_Xl37bAD.js +0 -14
  164. package/screenshot-page/assets/B7eQ3rE-7Vayb_4O.js +0 -2
  165. package/screenshot-page/assets/B8i4Sr2kMQAXp0rb.js +0 -4
  166. package/screenshot-page/assets/BIHbD4jMsk3NetOd.js +0 -1
  167. package/screenshot-page/assets/BJviQwDXR5L6l1DA.js +0 -1
  168. package/screenshot-page/assets/BM78thqEW6HwXFAK.js +0 -13
  169. package/screenshot-page/assets/C2H2lX8eyKpxpP6M.js +0 -2
  170. package/screenshot-page/assets/CYfkL98Zu43S8-50.js +0 -42
  171. package/screenshot-page/assets/CzsoLbEIUVK5ia1C.js +0 -1
  172. package/screenshot-page/assets/D2IHCJ1QWDKwmhge.js +0 -1
  173. package/screenshot-page/assets/DMxrNtfw275en7pm.js +0 -1
  174. package/screenshot-page/assets/D_kJ3WunvjIINcHC.js +0 -1
  175. package/screenshot-page/assets/DhB6GjSJIeTmIODk.js +0 -1
  176. package/screenshot-page/assets/TilS2JSBGVkd1za3.js +0 -3
  177. package/screenshot-page/assets/UKFgEuwI1UMhPqKF.js +0 -2
  178. package/screenshot-page/assets/hlxJ87-H830aSZBQ.js +0 -1
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.16
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.17
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { d as e } from "./D3bxrF1Ys2GSVfQH.js";
8
- import { C as t, Ct as n, Ea as i, Ei as r, Ir as s, Ln as o, P as a, Pa as c, Qn as h, R as l, Tr as u, Vr as d, Wi as p, Wn as f, Xa as m, Z as E, di as T, hi as g, it as O, j as A, jt as R, la as I, lo as _, ri as N, sr as L, t as S, ta as C, ya as y, yn as k, zi as v } from "./5B_tapYOcjOv1wGO.js";
7
+ import { d as e } from "./MW2nt7se27FlH9Yb.js";
8
+ import { Bn as t, Cn as n, E as i, Ei as r, It as s, L as o, Ma as a, Mr as c, N as h, Ot as l, Qn as u, Ri as d, Rr as p, W as f, Wi as m, _a as E, br as T, ca as g, co as O, ea as A, fi as R, li as I, nt as _, or as N, qn as L, st as S, t as C, ti as y, vi as k, wa as v } from "./D6ON3ZLcTAXV3fO6.js";
9
9
  function x(e) {
10
10
  console && console.error && console.error(`Error: ${e}`);
11
11
  }
@@ -4187,7 +4187,7 @@ var jn = class extends $n {
4187
4187
  }
4188
4188
  }, Gn = class t {
4189
4189
  static shared(e) {
4190
- const n = e?.locale ?? u, i = e?.maxColumn ?? Hn, r = e?.maxRow ?? Yn;
4190
+ const n = e?.locale ?? T, i = e?.maxColumn ?? Hn, r = e?.maxRow ?? Yn;
4191
4191
  let s = Vn.get(n);
4192
4192
  s || (s = /* @__PURE__ */ new Map(), Vn.set(n, s));
4193
4193
  const o = `${i}:${r}`;
@@ -4199,7 +4199,7 @@ var jn = class extends $n {
4199
4199
  }), s.set(o, a)), a;
4200
4200
  }
4201
4201
  constructor(e) {
4202
- const t = e?.maxColumn ?? Hn, n = e?.maxRow ?? Yn, i = e?.locale ?? u;
4202
+ const t = e?.maxColumn ?? Hn, n = e?.maxRow ?? Yn, i = e?.locale ?? T;
4203
4203
  this._locale = i, this._maxColumn = t, this._maxRow = n;
4204
4204
  const { separatorFunction: r, separatorColumn: s, separatorRow: o, separatorDecimal: a } = i.separators;
4205
4205
  if (s === o) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${s}')`);
@@ -4213,20 +4213,20 @@ var jn = class extends $n {
4213
4213
  }), l = pt({
4214
4214
  name: "FunctionToken",
4215
4215
  pattern: /[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/
4216
- }), d = pt({
4216
+ }), u = pt({
4217
4217
  name: "TableReference",
4218
- pattern: { exec: C },
4218
+ pattern: { exec: A },
4219
4219
  line_breaks: !1,
4220
4220
  start_chars_hint: Wn
4221
- }), p = pt({
4221
+ }), d = pt({
4222
4222
  name: "BracketedString",
4223
- pattern: { exec: f },
4223
+ pattern: { exec: L },
4224
4224
  line_breaks: !1,
4225
4225
  start_chars_hint: [91],
4226
- longer_alt: [d, h]
4227
- }), m = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), E = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), T = pt({
4226
+ longer_alt: [u, h]
4227
+ }), p = (e) => (e ?? []).map((e) => e?.trim()).filter(Boolean).map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).map((e) => e + "|").join(""), f = (e) => e.replace(/[A-Za-z]/g, (e) => `[${e.toUpperCase()}${e.toLowerCase()}]`), m = pt({
4228
4228
  name: "LiteralError",
4229
- pattern: new RegExp(m(i.errorLiterals) + [
4229
+ pattern: new RegExp(p(i.errorLiterals) + [
4230
4230
  "#PARSE!",
4231
4231
  "#NULL!",
4232
4232
  "#DIV\\/0!",
@@ -4243,14 +4243,14 @@ var jn = class extends $n {
4243
4243
  "#BUSY!",
4244
4244
  "#PYTHON!",
4245
4245
  "#TIMEOUT!"
4246
- ].map(E).join("|"))
4247
- }), g = pt({
4246
+ ].map(f).join("|"))
4247
+ }), E = pt({
4248
4248
  name: "RefError",
4249
- pattern: new RegExp(m(i.errorRefs) + ["#REF!", "#NAME\\?"].map(E).join("|"))
4250
- }), O = pt({
4249
+ pattern: new RegExp(p(i.errorRefs) + ["#REF!", "#NAME\\?"].map(f).join("|"))
4250
+ }), g = pt({
4251
4251
  name: "SingleQuotedString",
4252
4252
  pattern: /'(''|[^'])*'/
4253
- }), A = pt({
4253
+ }), O = pt({
4254
4254
  name: "SheetQuoted",
4255
4255
  pattern: /'(?:''|[^'])*?'!/
4256
4256
  }), R = pt({
@@ -4274,13 +4274,13 @@ var jn = class extends $n {
4274
4274
  line_breaks: !1,
4275
4275
  start_chars_hint: [36, ...Kn],
4276
4276
  longer_alt: _
4277
- }), L = pt({
4277
+ }), S = pt({
4278
4278
  name: "Column",
4279
4279
  pattern: { exec: Xn(t) },
4280
4280
  line_breaks: !1,
4281
4281
  start_chars_hint: [36, ...Kn],
4282
4282
  longer_alt: _
4283
- }), S = pt({
4283
+ }), C = pt({
4284
4284
  name: "AbsRow",
4285
4285
  pattern: /[$][0-9]+/
4286
4286
  }), y = "." === a ? "\\." : a, k = pt({
@@ -4363,7 +4363,7 @@ var jn = class extends $n {
4363
4363
  }), ee = pt({
4364
4364
  name: "ArrayAnchorOp",
4365
4365
  pattern: /#/,
4366
- longer_alt: [T, g]
4366
+ longer_alt: [m, E]
4367
4367
  }), te = pt({
4368
4368
  name: "GtOp",
4369
4369
  pattern: />/
@@ -4376,14 +4376,14 @@ var jn = class extends $n {
4376
4376
  }), re = [
4377
4377
  c,
4378
4378
  h,
4379
- A,
4380
4379
  O,
4380
+ g,
4381
4381
  R,
4382
4382
  l,
4383
+ u,
4383
4384
  d,
4384
- p,
4385
- T,
4386
- g,
4385
+ m,
4386
+ E,
4387
4387
  b,
4388
4388
  ...s !== r ? [U] : [],
4389
4389
  w,
@@ -4393,8 +4393,8 @@ var jn = class extends $n {
4393
4393
  F,
4394
4394
  N,
4395
4395
  M,
4396
- L,
4397
4396
  S,
4397
+ C,
4398
4398
  k,
4399
4399
  v,
4400
4400
  x,
@@ -4533,9 +4533,9 @@ function Qn(e) {
4533
4533
  return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
4534
4534
  }
4535
4535
  var Zn = class {
4536
- constructor(e = u) {
4536
+ constructor(e = T) {
4537
4537
  const t = function(e) {
4538
- const t = [...O];
4538
+ const t = [...S];
4539
4539
  if (e) for (const n of Object.values(e)) {
4540
4540
  const e = n?.trim();
4541
4541
  e && !t.some((t) => t.toLowerCase() === e.toLowerCase()) && t.push(e);
@@ -4582,53 +4582,53 @@ var Zn = class {
4582
4582
  return this._lexer.tokenize(e);
4583
4583
  }
4584
4584
  }, Jn = class extends jn {
4585
- constructor(e = u) {
4586
- const t = new Zn(e), n = t.getVocabulary();
4587
- super(n, {
4585
+ constructor(e = T) {
4586
+ const t = new Zn(e), i = t.getVocabulary();
4587
+ super(i, {
4588
4588
  nodeLocationTracking: "none",
4589
4589
  maxLookahead: 2,
4590
4590
  skipValidations: !0,
4591
4591
  recoveryEnabled: !1
4592
4592
  }), this._lexer = t;
4593
- const { TableSpecifier: i, BracketedColumn: r, BareSpecifier: s, ColumnSep: o, ListSep: a } = n, c = this;
4594
- c.RULE("ruleContent", () => {
4595
- const e = [], t = c.SUBRULE(c.ruleItem);
4596
- return c.ACTION(() => {
4593
+ const { TableSpecifier: r, BracketedColumn: s, BareSpecifier: o, ColumnSep: a, ListSep: c } = i, h = this;
4594
+ h.RULE("ruleContent", () => {
4595
+ const e = [], t = h.SUBRULE(h.ruleItem);
4596
+ return h.ACTION(() => {
4597
4597
  t && e.push(t);
4598
- }), c.MANY(() => {
4599
- c.CONSUME(a), c.OPTION(() => {
4600
- const t = c.SUBRULE2(c.ruleItem);
4601
- c.ACTION(() => {
4598
+ }), h.MANY(() => {
4599
+ h.CONSUME(c), h.OPTION(() => {
4600
+ const t = h.SUBRULE2(h.ruleItem);
4601
+ h.ACTION(() => {
4602
4602
  t && e.push(t);
4603
4603
  });
4604
4604
  });
4605
4605
  }), e;
4606
- }), c.RULE("ruleItem", () => c.OR([{ ALT: () => c.SUBRULE(c.ruleSpecifier) }, { ALT: () => c.SUBRULE(c.ruleColumnOrRange) }])), c.RULE("ruleSpecifier", () => c.OR([{ ALT: () => {
4607
- const t = c.CONSUME(i);
4608
- return c.ACTION(() => {
4609
- const n = k(t.image, e);
4610
- return n.image = t.image, n;
4606
+ }), h.RULE("ruleItem", () => h.OR([{ ALT: () => h.SUBRULE(h.ruleSpecifier) }, { ALT: () => h.SUBRULE(h.ruleColumnOrRange) }])), h.RULE("ruleSpecifier", () => h.OR([{ ALT: () => {
4607
+ const t = h.CONSUME(r);
4608
+ return h.ACTION(() => {
4609
+ const i = n(t.image, e);
4610
+ return i.image = t.image, i;
4611
4611
  });
4612
4612
  } }, { ALT: () => {
4613
- const t = c.CONSUME(s);
4614
- return c.ACTION(() => {
4615
- const n = k(t.image, e);
4616
- return n.image = t.image, n;
4613
+ const t = h.CONSUME(o);
4614
+ return h.ACTION(() => {
4615
+ const i = n(t.image, e);
4616
+ return i.image = t.image, i;
4617
4617
  });
4618
- } }])), c.RULE("ruleColumnOrRange", () => {
4619
- const e = c.CONSUME(r);
4618
+ } }])), h.RULE("ruleColumnOrRange", () => {
4619
+ const e = h.CONSUME(s);
4620
4620
  let t, n;
4621
- return c.OPTION(() => {
4622
- t = c.CONSUME(o), n = c.CONSUME2(r);
4623
- }), c.ACTION(() => {
4624
- const i = _(e.image);
4621
+ return h.OPTION(() => {
4622
+ t = h.CONSUME(a), n = h.CONSUME2(s);
4623
+ }), h.ACTION(() => {
4624
+ const i = O(e.image);
4625
4625
  if (i.image = e.image, !n) return i;
4626
- const r = _(n.image);
4626
+ const r = O(n.image);
4627
4627
  r.image = n.image;
4628
- const s = g(":", i, r, !0);
4628
+ const s = R(":", i, r, !0);
4629
4629
  return s.image = t?.image ?? ":", s;
4630
4630
  });
4631
- }), c.performSelfAnalysis();
4631
+ }), h.performSelfAnalysis();
4632
4632
  }
4633
4633
  _parseInner(e) {
4634
4634
  const t = this._lexer.tokenize(e);
@@ -4642,23 +4642,23 @@ var Zn = class {
4642
4642
  if ("@" === n) {
4643
4643
  const e = t.slice(1).trim();
4644
4644
  if (!e) {
4645
- const e = S("@", null, !0);
4645
+ const e = C("@", null, !0);
4646
4646
  return e.image = "@", [e];
4647
4647
  }
4648
4648
  if ("[" === e.charAt(0)) {
4649
4649
  const t = this._parseInner(e);
4650
4650
  if (1 === t.length && "infix" === t[0].type) {
4651
- const e = S("@", t[0], !0);
4651
+ const e = C("@", t[0], !0);
4652
4652
  return e.image = "@", [e];
4653
4653
  }
4654
4654
  }
4655
- const n = _(e);
4655
+ const n = O(e);
4656
4656
  n.image = e;
4657
- const i = S("@", n, !0);
4657
+ const i = C("@", n, !0);
4658
4658
  return i.image = "@", [i];
4659
4659
  }
4660
4660
  if ("[" !== n && "#" !== n) {
4661
- const t = _(e);
4661
+ const t = O(e);
4662
4662
  return t.image = e, [t];
4663
4663
  }
4664
4664
  return this._parseInner(t);
@@ -4666,7 +4666,7 @@ var Zn = class {
4666
4666
  parse(e, t, n) {
4667
4667
  this.reset();
4668
4668
  const i = () => ({
4669
- root: l("", []),
4669
+ root: f("", []),
4670
4670
  errors: []
4671
4671
  });
4672
4672
  if (!n) return i();
@@ -4679,7 +4679,7 @@ var Zn = class {
4679
4679
  if (-1 === s) return i();
4680
4680
  const o = n.slice(0, s), a = n.slice(s + 1, -1), c = this._parseContent(a);
4681
4681
  return {
4682
- root: l(o, c),
4682
+ root: f(o, c),
4683
4683
  errors: this.errors.length > 0 ? [...this.errors] : []
4684
4684
  };
4685
4685
  }
@@ -4694,7 +4694,7 @@ var Zn = class {
4694
4694
  ":."
4695
4695
  ]), ni = (e) => {
4696
4696
  if (!e) return null;
4697
- if (e.type === L.Cell) {
4697
+ if (e.type === N.Cell) {
4698
4698
  const t = e.value;
4699
4699
  return t.rowIndex === Number.MIN_SAFE_INTEGER ? "col" : t.colIndex === Number.MIN_SAFE_INTEGER ? "row" : null;
4700
4700
  }
@@ -4725,8 +4725,8 @@ var ai = {
4725
4725
  }
4726
4726
  }, ci = class extends jn {
4727
4727
  constructor(e) {
4728
- const c = e?.lexer ?? Gn.shared(e?.lexerOptions), l = c.getVocabulary();
4729
- super(l, {
4728
+ const n = e?.lexer ?? Gn.shared(e?.lexerOptions), a = n.getVocabulary();
4729
+ super(a, {
4730
4730
  skipValidations: !0,
4731
4731
  recoveryEnabled: !0,
4732
4732
  ...e,
@@ -4734,9 +4734,9 @@ var ai = {
4734
4734
  errorMessageProvider: ai,
4735
4735
  maxLookahead: 1
4736
4736
  }), this._ruleInfixOp = this.RULE("ruleInfixOp", () => {
4737
- const { PlusOp: e, MinOp: t, MulOp: n, DivOp: i, ExOp: r, ConcatOp: s, GtOp: o, EqOp: a, LtOp: c, NeqOp: h, GteOp: l, LteOp: u } = this._vocab, d = [];
4738
- return d.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
4739
- const p = this.OR(this._c1 || (this._c1 = [
4737
+ const { PlusOp: e, MinOp: t, MulOp: n, DivOp: i, ExOp: r, ConcatOp: s, GtOp: o, EqOp: a, LtOp: c, NeqOp: l, GteOp: u, LteOp: d } = this._vocab, p = [];
4738
+ return p.push({ node: this.SUBRULE(this._rulePostfixOp) }), this.MANY(() => {
4739
+ const f = this.OR(this._c1 || (this._c1 = [
4740
4740
  { ALT: () => this.CONSUME(e).image },
4741
4741
  { ALT: () => this.CONSUME(t).image },
4742
4742
  { ALT: () => this.CONSUME(n).image },
@@ -4746,53 +4746,53 @@ var ai = {
4746
4746
  { ALT: () => this.CONSUME(o).image },
4747
4747
  { ALT: () => this.CONSUME(a).image },
4748
4748
  { ALT: () => this.CONSUME(c).image },
4749
- { ALT: () => this.CONSUME(h).image },
4750
4749
  { ALT: () => this.CONSUME(l).image },
4751
- { ALT: () => this.CONSUME(u).image }
4752
- ])), f = {
4753
- value: p,
4750
+ { ALT: () => this.CONSUME(u).image },
4751
+ { ALT: () => this.CONSUME(d).image }
4752
+ ])), m = {
4753
+ value: f,
4754
4754
  index: this.getLexerPosition(),
4755
- isRange: A.includes(p)
4756
- }, m = this.SUBRULE2(this._rulePostfixOp);
4757
- d.push({
4758
- op: f,
4759
- node: m
4755
+ isRange: h.includes(f)
4756
+ }, E = this.SUBRULE2(this._rulePostfixOp);
4757
+ p.push({
4758
+ op: m,
4759
+ node: E
4760
4760
  });
4761
4761
  }), this.ACTION(() => {
4762
- let e = d.length - 1;
4763
- const t = E.length;
4762
+ let e = p.length - 1;
4763
+ const t = _.length;
4764
4764
  for (let n = 0; e > 0 && n < t; n++) {
4765
- const t = E[n];
4765
+ const t = _[n];
4766
4766
  let i = 1;
4767
- for (; i < d.length;) {
4768
- const n = d[i].op;
4767
+ for (; i < p.length;) {
4768
+ const n = p[i].op;
4769
4769
  if (t.includes(n.value)) {
4770
- const t = d[i - 1].node, r = d[i].node;
4771
- let s = g(n.value, t, r, n.isRange);
4772
- s = this._tag(s, n.index), d[i - 1].node = s, d.splice(i, 1), e--;
4770
+ const t = p[i - 1].node, r = p[i].node;
4771
+ let s = R(n.value, t, r, n.isRange);
4772
+ s = this._tag(s, n.index), p[i - 1].node = s, p.splice(i, 1), e--;
4773
4773
  } else i++;
4774
4774
  }
4775
4775
  }
4776
- }), d[0].node;
4776
+ }), p[0].node;
4777
4777
  }), this._rulePlusMinusOp = this.RULE("rulePlusMinusOp", () => {
4778
4778
  const { PlusOp: e, MinOp: t } = this._vocab;
4779
4779
  return this.OR([{ ALT: () => this.CONSUME(e) }, { ALT: () => this.CONSUME(t) }]);
4780
4780
  }), this._rulePostfixOp = this.RULE("rulePostfixOp", () => {
4781
4781
  const { PercentOp: e } = this._vocab;
4782
- let t = this.SUBRULE(this._rulePrefixOp);
4783
- const n = [];
4782
+ let n = this.SUBRULE(this._rulePrefixOp);
4783
+ const i = [];
4784
4784
  return this.MANY(() => {
4785
4785
  const t = this.CONSUME(e).image;
4786
4786
  this.ACTION(() => {
4787
- n.push([t, this.getLexerPosition()]);
4787
+ i.push([t, this.getLexerPosition()]);
4788
4788
  });
4789
4789
  }), this.ACTION(() => {
4790
- const e = n.length;
4791
- if (0 !== e) for (let i = 0; i < e; i++) {
4792
- const e = n[i], r = e[0], s = e[1], a = A.includes(r);
4793
- t = o(r, t, a), t = this._tag(t, s);
4790
+ const e = i.length;
4791
+ if (0 !== e) for (let r = 0; r < e; r++) {
4792
+ const e = i[r], s = e[0], o = e[1], a = h.includes(s);
4793
+ n = t(s, n, a), n = this._tag(n, o);
4794
4794
  }
4795
- }), t;
4795
+ }), n;
4796
4796
  }), this._rulePrefixOp = this.RULE("rulePrefixOp", () => {
4797
4797
  const { PlusOp: e, MinOp: t, ImplicitIntersectOp: n } = this._vocab, i = [];
4798
4798
  this.MANY(() => {
@@ -4809,51 +4809,51 @@ var ai = {
4809
4809
  return this.ACTION(() => {
4810
4810
  const e = i.length;
4811
4811
  if (0 !== e) for (let t = e - 1; t >= 0; t--) {
4812
- const e = i[t], n = e[0], s = e[1], o = A.includes(n);
4813
- r = S(n, r, o), r = this._tag(r, s);
4812
+ const e = i[t], n = e[0], s = e[1], o = h.includes(n);
4813
+ r = C(n, r, o), r = this._tag(r, s);
4814
4814
  }
4815
4815
  }), r;
4816
4816
  }), this._ruleRangeOp = this.RULE("ruleRangeOp", () => {
4817
- const { RangeOp: e, RangeTrimFullOp: t, RangeTrimLeadingOp: n, RangeTrimTrailingOp: i, ArrayAnchorOp: r } = this._vocab, s = [];
4818
- return s.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
4819
- this.CONSUME(r), s.push({ anchor: this.getLexerPosition() });
4817
+ const { RangeOp: e, RangeTrimFullOp: n, RangeTrimLeadingOp: i, RangeTrimTrailingOp: r, ArrayAnchorOp: s } = this._vocab, o = [];
4818
+ return o.push({ node: this.SUBRULE(this._ruleCallOp) }), this.MANY2(() => {
4819
+ this.CONSUME(s), o.push({ anchor: this.getLexerPosition() });
4820
4820
  }), this.MANY(() => {
4821
- const o = {
4821
+ const t = {
4822
4822
  value: this.OR(this._c2 || (this._c2 = [
4823
4823
  { ALT: () => this.CONSUME(e).image },
4824
- { ALT: () => this.CONSUME(t).image },
4825
4824
  { ALT: () => this.CONSUME(n).image },
4826
- { ALT: () => this.CONSUME(i).image }
4825
+ { ALT: () => this.CONSUME(i).image },
4826
+ { ALT: () => this.CONSUME(r).image }
4827
4827
  ])),
4828
4828
  index: this.getLexerPosition()
4829
4829
  }, a = this.SUBRULE2(this._ruleCallOp);
4830
- s.push({
4831
- op: o,
4830
+ o.push({
4831
+ op: t,
4832
4832
  node: a
4833
4833
  }), this.MANY3(() => {
4834
- this.CONSUME2(r), s.push({ anchor: this.getLexerPosition() });
4834
+ this.CONSUME2(s), o.push({ anchor: this.getLexerPosition() });
4835
4835
  });
4836
4836
  }), this.ACTION(() => {
4837
- for (let e = 1; e + 1 < s.length; e++) {
4838
- const t = s[e], n = s[e + 1];
4837
+ for (let e = 1; e + 1 < o.length; e++) {
4838
+ const t = o[e], n = o[e + 1];
4839
4839
  if (":" !== t.op?.value || ":" !== n.op?.value) continue;
4840
4840
  const i = ni(t.node);
4841
- i && ni(n.node) === i && ni(s[e - 1].node) !== i && (t.node = this._tag(g(":", t.node, n.node, !0), n.op.index), s.splice(e + 1, 1));
4841
+ i && ni(n.node) === i && ni(o[e - 1].node) !== i && (t.node = this._tag(R(":", t.node, n.node, !0), n.op.index), o.splice(e + 1, 1));
4842
4842
  }
4843
- for (let e = 1; e < s.length; e++) {
4844
- const t = s[e];
4845
- if (void 0 !== t.anchor) {
4846
- s[0].node = this._tag(o("#", s[0].node, !0), t.anchor);
4843
+ for (let e = 1; e < o.length; e++) {
4844
+ const n = o[e];
4845
+ if (void 0 !== n.anchor) {
4846
+ o[0].node = this._tag(t("#", o[0].node, !0), n.anchor);
4847
4847
  continue;
4848
4848
  }
4849
- const n = t.op;
4850
- let i = g(n.value, s[0].node, t.node, !0);
4851
- i = this._tag(i, n.index), s[0].node = i;
4849
+ const i = n.op;
4850
+ let r = R(i.value, o[0].node, n.node, !0);
4851
+ r = this._tag(r, i.index), o[0].node = r;
4852
4852
  }
4853
- }), s[0].node;
4853
+ }), o[0].node;
4854
4854
  }), this._ruleCallOp = this.RULE("ruleCallOp", () => {
4855
4855
  const { OpenParen: e, CloseParen: t } = this._vocab;
4856
- let i = this.SUBRULE(this._ruleFormula);
4856
+ let n = this.SUBRULE(this._ruleFormula);
4857
4857
  return this.MANY({
4858
4858
  GATE: () => {
4859
4859
  const t = this.LA(0), n = this.LA(1);
@@ -4861,12 +4861,12 @@ var ai = {
4861
4861
  },
4862
4862
  DEF: () => {
4863
4863
  this.CONSUME(e);
4864
- const r = this.getLexerPosition(), s = this.SUBRULE(this._ruleFunctionArguments), o = i, a = this.ACTION(() => this._tag(n(o, s), r)), c = this.OPTION(() => this.CONSUME(t));
4864
+ const i = this.getLexerPosition(), r = this.SUBRULE(this._ruleFunctionArguments), s = n, o = this.ACTION(() => this._tag(l(s, r), i)), a = this.OPTION(() => this.CONSUME(t));
4865
4865
  this.ACTION(() => {
4866
- c || this._reportError(a, "Missing closing parenthesis ')'", r), this._tagClose(a, this.getLexerPosition()), i = a;
4866
+ a || this._reportError(o, "Missing closing parenthesis ')'", i), this._tagClose(o, this.getLexerPosition()), n = o;
4867
4867
  });
4868
4868
  }
4869
- }), i;
4869
+ }), n;
4870
4870
  }), this._ruleIntersectOp = this.RULE("ruleIntersectOp", () => {
4871
4871
  const e = [this.SUBRULE(this._ruleInfixOp)];
4872
4872
  return this.MANY(() => {
@@ -4883,7 +4883,7 @@ var ai = {
4883
4883
  for (; e.length > 1;) {
4884
4884
  let t = e.length - 1;
4885
4885
  for (let n = 0; n < t; n++) {
4886
- const i = e[n], r = e[n + 1], s = g(" ", i, r, !0), o = this._tokenMap.get(i);
4886
+ const i = e[n], r = e[n + 1], s = R(" ", i, r, !0), o = this._tokenMap.get(i);
4887
4887
  o && delete o.tokenIndexClose;
4888
4888
  const a = this._tokenMap.get(r), c = a?.tokenIndex;
4889
4889
  if (void 0 !== c) {
@@ -4913,13 +4913,13 @@ var ai = {
4913
4913
  }), t;
4914
4914
  }), this._ruleParen = this.RULE("ruleParen", () => {
4915
4915
  const { OpenParen: e, CloseParen: t } = this._vocab;
4916
- return this._processParen(L.Paren, e, t);
4916
+ return this._processParen(N.Paren, e, t);
4917
4917
  }), this._ruleLiteralArray = this.RULE("ruleLiteralArray", () => {
4918
4918
  const { OpenCurlyParen: e, CloseCurlyParen: t, ColSeparator: n, RowSeparator: i } = this._vocab;
4919
- let r = I();
4919
+ let r = g();
4920
4920
  this.CONSUME(e);
4921
4921
  const s = this.getLexerPosition();
4922
- let o = this.ACTION(() => this._tag(p(r), s));
4922
+ let o = this.ACTION(() => this._tag(m(r), s));
4923
4923
  const a = this.SUBRULE(this._ruleLiteralForArray);
4924
4924
  this.ACTION(() => {
4925
4925
  r.value.push(a);
@@ -4930,7 +4930,7 @@ var ai = {
4930
4930
  } }, { ALT: () => this.CONSUME(i) }]);
4931
4931
  const t = this.SUBRULE2(this._ruleLiteralForArray);
4932
4932
  this.ACTION(() => {
4933
- e || (r = I(), o.value.push(r)), r.value.push(t);
4933
+ e || (r = g(), o.value.push(r)), r.value.push(t);
4934
4934
  });
4935
4935
  });
4936
4936
  const c = this.OPTION(() => this.CONSUME(t));
@@ -4939,20 +4939,20 @@ var ai = {
4939
4939
  const { StringToken: e, BooleanToken: t, LiteralError: n, RefError: i } = this._vocab;
4940
4940
  return this.OR([
4941
4941
  { ALT: () => {
4942
- const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), n = this.ACTION(() => this._tag(d(t.image, this._locale), this.getLexerPosition()));
4943
- return this.ACTION(() => e ? h(e.image, n) : n);
4942
+ const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), n = this.ACTION(() => this._tag(p(t.image, this._locale), this.getLexerPosition()));
4943
+ return this.ACTION(() => e ? u(e.image, n) : n);
4944
4944
  } },
4945
4945
  { ALT: () => {
4946
4946
  const t = this.CONSUME(e);
4947
- return this.ACTION(() => this._tag(v(t.image), this.getLexerPosition()));
4947
+ return this.ACTION(() => this._tag(d(t.image), this.getLexerPosition()));
4948
4948
  } },
4949
4949
  { ALT: () => {
4950
4950
  const e = this.CONSUME(t);
4951
- return this.ACTION(() => this._tag(y(e.image, this._locale), this.getLexerPosition()));
4951
+ return this.ACTION(() => this._tag(E(e.image, this._locale), this.getLexerPosition()));
4952
4952
  } },
4953
4953
  { ALT: () => {
4954
4954
  const e = this.CONSUME(n);
4955
- return this.ACTION(() => this._tag(T(e.image, this._locale), this.getLexerPosition()));
4955
+ return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
4956
4956
  } },
4957
4957
  { ALT: () => {
4958
4958
  const e = this.CONSUME(i);
@@ -4964,19 +4964,19 @@ var ai = {
4964
4964
  return this.OR([
4965
4965
  { ALT: () => {
4966
4966
  const e = this.SUBRULE(this._ruleNumber);
4967
- return this.ACTION(() => this._tag(d(e.image, this._locale), this.getLexerPosition()));
4967
+ return this.ACTION(() => this._tag(p(e.image, this._locale), this.getLexerPosition()));
4968
4968
  } },
4969
4969
  { ALT: () => {
4970
4970
  const t = this.CONSUME(e);
4971
- return this.ACTION(() => this._tag(v(t.image), this.getLexerPosition()));
4971
+ return this.ACTION(() => this._tag(d(t.image), this.getLexerPosition()));
4972
4972
  } },
4973
4973
  { ALT: () => {
4974
4974
  const e = this.CONSUME(t);
4975
- return this.ACTION(() => this._tag(y(e.image, this._locale), this.getLexerPosition()));
4975
+ return this.ACTION(() => this._tag(E(e.image, this._locale), this.getLexerPosition()));
4976
4976
  } },
4977
4977
  { ALT: () => {
4978
4978
  const e = this.CONSUME(n);
4979
- return this.ACTION(() => this._tag(T(e.image, this._locale), this.getLexerPosition()));
4979
+ return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
4980
4980
  } },
4981
4981
  { ALT: () => {
4982
4982
  const e = this.CONSUME(i);
@@ -4986,10 +4986,10 @@ var ai = {
4986
4986
  }), this._ruleFunction = this.RULE("ruleFunction", () => {
4987
4987
  const { FunctionToken: e, OpenParen: t, CloseParen: n } = this._vocab, i = this.CONSUME(e).image, r = this.getLexerPosition();
4988
4988
  this.CONSUME(t);
4989
- const s = this.SUBRULE(this._ruleFunctionArguments);
4990
- let o = this.ACTION(() => this._tag(R(i, s), r));
4991
- const a = this.OPTION(() => this.CONSUME(n));
4992
- return o = this.ACTION(() => (a || this._reportError(o, "Missing closing parenthesis ')'", r), this._tagClose(o, this.getLexerPosition()))), o;
4989
+ const o = this.SUBRULE(this._ruleFunctionArguments);
4990
+ let a = this.ACTION(() => this._tag(s(i, o), r));
4991
+ const c = this.OPTION(() => this.CONSUME(n));
4992
+ return a = this.ACTION(() => (c || this._reportError(a, "Missing closing parenthesis ')'", r), this._tagClose(a, this.getLexerPosition()))), a;
4993
4993
  }), this._ruleFunctionArguments = this.RULE("ruleFunctionArguments", () => {
4994
4994
  const { ArgSeparator: e, CloseParen: t } = this._vocab, n = [];
4995
4995
  return this.OPTION({
@@ -4998,11 +4998,11 @@ var ai = {
4998
4998
  let t;
4999
4999
  this.OPTION2(() => {
5000
5000
  t = this.SUBRULE(this._ruleIntersectOp);
5001
- }), t = this.ACTION(() => t ?? this._tagClose(s(), this.getLexerPosition())), n.push(t), this.MANY(() => {
5001
+ }), t = this.ACTION(() => t ?? this._tagClose(c(), this.getLexerPosition())), n.push(t), this.MANY(() => {
5002
5002
  let t;
5003
5003
  this.CONSUME(e), this.OPTION3(() => {
5004
5004
  t = this.SUBRULE2(this._ruleIntersectOp);
5005
- }), t = this.ACTION(() => t ?? this._tagClose(s(), this.getLexerPosition())), n.push(t);
5005
+ }), t = this.ACTION(() => t ?? this._tagClose(c(), this.getLexerPosition())), n.push(t);
5006
5006
  });
5007
5007
  }
5008
5008
  }), n;
@@ -5021,60 +5021,60 @@ var ai = {
5021
5021
  return this._tag(e.root, n);
5022
5022
  });
5023
5023
  }), this._ruleReference = this.RULE("ruleReference", () => {
5024
- const { Sheet: e, SheetQuoted: n, DivOp: s, MulOp: o, PlusOp: c, MinOp: h, ArgSeparator: l, Cell: u, NamedToken: d, SingleQuotedString: p, Column: f, AbsRow: E, DigitToken: T, RefError: g } = this._vocab;
5025
- let O, A;
5024
+ const { Sheet: e, SheetQuoted: t, DivOp: n, MulOp: s, PlusOp: a, MinOp: c, ArgSeparator: h, Cell: l, NamedToken: u, SingleQuotedString: d, Column: p, AbsRow: f, DigitToken: m, RefError: E } = this._vocab;
5025
+ let T, g;
5026
5026
  this.OPTION2({
5027
5027
  GATE: () => {
5028
- for (let t = 1; t < 6; t++) {
5029
- const i = this.LA(t);
5030
- if (i.tokenType === e || i.tokenType === n) return !0;
5031
- if ("" === i.image || ")" === i.image || i.tokenType === s || i.tokenType === o || i.tokenType === c || i.tokenType === h || i.tokenType === l) break;
5028
+ for (let i = 1; i < 6; i++) {
5029
+ const r = this.LA(i);
5030
+ if (r.tokenType === e || r.tokenType === t) return !0;
5031
+ if ("" === r.image || ")" === r.image || r.tokenType === n || r.tokenType === s || r.tokenType === a || r.tokenType === c || r.tokenType === h) break;
5032
5032
  }
5033
5033
  return !1;
5034
5034
  },
5035
5035
  DEF: () => {
5036
- A = this.getLexerPosition() + 1, O = this.SUBRULE(this._rulePrefixSheetName);
5036
+ g = this.getLexerPosition() + 1, T = this.SUBRULE(this._rulePrefixSheetName);
5037
5037
  }
5038
5038
  });
5039
- let R = this.OR([
5039
+ let O = this.OR([
5040
5040
  { ALT: () => {
5041
- const e = this.CONSUME(u), n = this.getLexerPosition();
5042
- return this.ACTION(() => this._tag(t(e.image, this.rowIndex, this.colIndex), n));
5041
+ const e = this.CONSUME(l), t = this.getLexerPosition();
5042
+ return this.ACTION(() => this._tag(i(e.image, this.rowIndex, this.colIndex), t));
5043
5043
  } },
5044
5044
  { ALT: () => {
5045
- const e = this.OR2([{ ALT: () => this.CONSUME(d) }, { ALT: () => this.CONSUME(p) }]);
5046
- return this.ACTION(() => this._tag(i(e.image), this.getLexerPosition()));
5045
+ const e = this.OR2([{ ALT: () => this.CONSUME(u) }, { ALT: () => this.CONSUME(d) }]);
5046
+ return this.ACTION(() => this._tag(v(e.image), this.getLexerPosition()));
5047
5047
  } },
5048
5048
  { ALT: () => this.SUBRULE(this._ruleBracketedString) },
5049
5049
  { ALT: () => this.SUBRULE(this._ruleFunction) },
5050
5050
  { ALT: () => {
5051
- const e = this.CONSUME(f);
5052
- return this.ACTION(() => this._tag(m(e.image, this.colIndex), this.getLexerPosition()));
5051
+ const e = this.CONSUME(p);
5052
+ return this.ACTION(() => this._tag(k(e.image, this.colIndex), this.getLexerPosition()));
5053
5053
  } },
5054
5054
  { ALT: () => {
5055
- const e = this.CONSUME(E);
5056
- return this.ACTION(() => this._tag(a(e.image, this.rowIndex), this.getLexerPosition()));
5055
+ const e = this.CONSUME(f);
5056
+ return this.ACTION(() => this._tag(o(e.image, this.rowIndex), this.getLexerPosition()));
5057
5057
  } },
5058
5058
  { ALT: () => {
5059
- const e = this.CONSUME(T);
5060
- return this.ACTION(() => this._tag(a(e.image, this.rowIndex), this.getLexerPosition()));
5059
+ const e = this.CONSUME(m);
5060
+ return this.ACTION(() => this._tag(o(e.image, this.rowIndex), this.getLexerPosition()));
5061
5061
  } },
5062
5062
  { ALT: () => {
5063
- const e = this.CONSUME(g);
5063
+ const e = this.CONSUME(E);
5064
5064
  return this.ACTION(() => this._tag(r(e.image, this._locale), this.getLexerPosition()));
5065
5065
  } }
5066
5066
  ]);
5067
5067
  return this.ACTION(() => {
5068
- if (O && R) {
5069
- if ("" === O.name) return void this._reportError(R, `'${O.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
5070
- let e = R;
5071
- if (R.type === L.Postfix && R.inputs?.[0] && (e = R.inputs[0]), e.type === L.Cell || e.type === L.Named || e.type === L.Row || e.type === L.TableColumn || e.type === L.Error) {
5072
- e.value.scope = O.name, e.value.scopeImage = O.image;
5068
+ if (T && O) {
5069
+ if ("" === T.name) return void this._reportError(O, `'${T.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
5070
+ let e = O;
5071
+ if (O.type === N.Postfix && O.inputs?.[0] && (e = O.inputs[0]), e.type === N.Cell || e.type === N.Named || e.type === N.Row || e.type === N.TableColumn || e.type === N.Error) {
5072
+ e.value.scope = T.name, e.value.scopeImage = T.image;
5073
5073
  const t = this._tokenMap.get(e);
5074
- t && void 0 !== A && (t.tokenIndex = A);
5074
+ t && void 0 !== g && (t.tokenIndex = g);
5075
5075
  }
5076
5076
  }
5077
- }), R;
5077
+ }), O;
5078
5078
  }), this._rulePrefixSheetName = this.RULE("rulePrefixSheetName", () => {
5079
5079
  const { SheetQuoted: e, BracketedString: t, NamedToken: n, Column: i, RangeOp: r, Sheet: s } = this._vocab;
5080
5080
  return this.OR([{ ALT: () => {
@@ -5114,48 +5114,48 @@ var ai = {
5114
5114
  return this.MANY(() => {
5115
5115
  this.CONSUME(e), n.push(this.SUBRULE2(this._ruleIntersectOp));
5116
5116
  }), this.ACTION(() => 0 === n.length ? t : {
5117
- type: L.List,
5117
+ type: N.List,
5118
5118
  value: ",",
5119
5119
  inputs: [t, ...n],
5120
5120
  isReference: !0
5121
5121
  });
5122
- }), this._lexer = c, this._locale = c.getLocale(), this._vocab = l, this._srParser = e?.srParser ?? new Jn(this._locale), this.performSelfAnalysis();
5122
+ }), this._lexer = n, this._locale = n.getLocale(), this._vocab = a, this._srParser = e?.srParser ?? new Jn(this._locale), this.performSelfAnalysis();
5123
5123
  }
5124
5124
  getLexer() {
5125
5125
  return this._lexer;
5126
5126
  }
5127
- parse(t, n, r) {
5128
- const s = this._lexer.tokenize(r);
5129
- let o;
5130
- if (!s) return {
5127
+ parse(t, n, i) {
5128
+ const r = this._lexer.tokenize(i);
5129
+ let s;
5130
+ if (!r) return {
5131
5131
  root: {
5132
- type: L.Unparsed,
5133
- value: r
5132
+ type: N.Unparsed,
5133
+ value: i
5134
5134
  },
5135
5135
  errors: []
5136
5136
  };
5137
- const h = s.tokens;
5138
- if (0 === h.length) throw new e.Parse(ri);
5139
- return this.input = h, this._inputText = r, this._inputTextLength = r.length, this.rowIndex = t, this.colIndex = n, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), o = this._ruleRoot(), o && this._bindAllWhitespace(o), o = c(o, (e, n) => {
5140
- const r = e.type, s = n?.isReference ? n.value : void 0, o = "string" == typeof s && ei.has(s), c = "string" == typeof s && ti.has(s), h = o ? n.inputs : void 0, l = h ? h[0] === e ? h[1] : h[0] : void 0, u = this._lexer.getMaxRow();
5141
- if (o && r !== L.Cell && Number.isInteger(e.value)) {
5142
- const n = a(e.image, t);
5143
- return N(n, e), "row" !== ni(l) ? this._reportError(n, `'${e.image}' is not a valid reference — a whole row can only pair with another row (as in ${e.image}:${e.image})`) : ii(e.image, u) || this._reportError(n, `'${e.image}' is not a valid row — rows run from 1 to ${u}`), n;
5137
+ const c = r.tokens;
5138
+ if (0 === c.length) throw new e.Parse(ri);
5139
+ return this.input = c, this._inputText = i, this._inputTextLength = i.length, this.rowIndex = t, this.colIndex = n, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), s = this._ruleRoot(), s && this._bindAllWhitespace(s), s = a(s, (e, n) => {
5140
+ const i = e.type, r = n?.isReference ? n.value : void 0, s = "string" == typeof r && ei.has(r), a = "string" == typeof r && ti.has(r), c = s ? n.inputs : void 0, h = c ? c[0] === e ? c[1] : c[0] : void 0, l = this._lexer.getMaxRow();
5141
+ if (s && i !== N.Cell && Number.isInteger(e.value)) {
5142
+ const n = o(e.image, t);
5143
+ return y(n, e), "row" !== ni(h) ? this._reportError(n, `'${e.image}' is not a valid reference — a whole row can only pair with another row (as in ${e.image}:${e.image})`) : ii(e.image, l) || this._reportError(n, `'${e.image}' is not a valid row — rows run from 1 to ${l}`), n;
5144
5144
  }
5145
- if (c && r === L.Named) return this._reportError(e, `'${e.image ?? e.value?.nameId}' is a name — '${s}' needs a cell or range on both sides`), e;
5146
- if (r === L.Cell) {
5147
- const t = e.value, n = t.colIndex === Number.MIN_SAFE_INTEGER, r = t.rowIndex === Number.MIN_SAFE_INTEGER;
5148
- if ((n || r) && ni(l) === (n ? "row" : "col")) return n && !ii(e.image, u) && this._reportError(e, `'${e.image}' is not a valid row — rows run from 1 to ${u}`), e;
5149
- if (n || r || t.colIndex >= 16384) {
5150
- const o = i(e.image);
5151
- N(o, e);
5152
- const a = t.scope;
5153
- return a && (o.value.scope = a, o.value.scopeImage = t.scopeImage), n ? this._reportError(o, `'${e.image}' is not a valid reference — a row needs a column (use ${e.image}:${e.image} for the whole row)`) : r && e.image.includes("$") ? this._reportError(o, `'${e.image}' is not a valid reference — a whole column can only pair with another column (as in ${e.image}:${e.image})`) : c && this._reportError(o, `'${e.image}' is a name — '${s}' needs a cell or range on both sides`), o;
5145
+ if (a && i === N.Named) return this._reportError(e, `'${e.image ?? e.value?.nameId}' is a name — '${r}' needs a cell or range on both sides`), e;
5146
+ if (i === N.Cell) {
5147
+ const t = e.value, n = t.colIndex === Number.MIN_SAFE_INTEGER, i = t.rowIndex === Number.MIN_SAFE_INTEGER;
5148
+ if ((n || i) && ni(h) === (n ? "row" : "col")) return n && !ii(e.image, l) && this._reportError(e, `'${e.image}' is not a valid row — rows run from 1 to ${l}`), e;
5149
+ if (n || i || t.colIndex >= 16384) {
5150
+ const s = v(e.image);
5151
+ y(s, e);
5152
+ const o = t.scope;
5153
+ return o && (s.value.scope = o, s.value.scopeImage = t.scopeImage), n ? this._reportError(s, `'${e.image}' is not a valid reference — a row needs a column (use ${e.image}:${e.image} for the whole row)`) : i && e.image.includes("$") ? this._reportError(s, `'${e.image}' is not a valid reference — a whole column can only pair with another column (as in ${e.image}:${e.image})`) : a && this._reportError(s, `'${e.image}' is a name — '${r}' needs a cell or range on both sides`), s;
5154
5154
  }
5155
5155
  }
5156
5156
  return e;
5157
5157
  }), {
5158
- root: o,
5158
+ root: s,
5159
5159
  errors: [...this.errors, ...this._astErrors]
5160
5160
  };
5161
5161
  }
@@ -5211,7 +5211,7 @@ var ai = {
5211
5211
  _bindAllWhitespace(e) {
5212
5212
  if (e) {
5213
5213
  if (this._bindNodeWhitespace(e), e.inputs) for (const t of e.inputs) t && this._bindAllWhitespace(t);
5214
- if (e.type === L.Array && Array.isArray(e.value)) {
5214
+ if (e.type === N.Array && Array.isArray(e.value)) {
5215
5215
  for (const t of e.value) if (t && Array.isArray(t.value)) for (const e of t.value) e && this._bindAllWhitespace(e);
5216
5216
  }
5217
5217
  }