@sheetxl/mcp 1.0.0 → 1.0.2

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/assets/{CNikOloX_losH8Nz.js → 1d-8AAcf1UmC2qIz.js} +1 -1
  2. package/assets/{C3c2PUtIo-aWbjw4.js → 30KXHiLfwl0cbsxL.js} +1 -1
  3. package/assets/{8mWHFnE0j-CaNsxr.js → 3o7I8loKRGynHrNq.js} +1 -1
  4. package/assets/{C1JeIUEWW-RL1Rnu.js → 648qV0v861jvyZWm.js} +1 -1
  5. package/assets/{P3Or6rEY-fHmQZbH.js → 7khlPnFFCrE8gnT_.js} +13 -13
  6. package/assets/{ByGn4tk2SE1MH_sZ.js → 8hUUTZ62hbxY0TOp.js} +2 -2
  7. package/assets/{CwzSgovxnBMrgLmJ.js → B1Vm5y0E-TPSYFya.js} +3 -3
  8. package/assets/{CEa6wNiDRZrans9S.js → B6ToyMcYe9lyaeDk.js} +3 -3
  9. package/assets/{qVBjd-c5B8neljc0.js → B6pS096VwbWaj1Zz.js} +2 -2
  10. package/assets/{BrHXHm2FNXsL53bo.js → B9V6AFTTnbPscv11.js} +2 -2
  11. package/assets/{CF1fqmS030ry2XQ0.js → BESu-5sZSIJqkrWN.js} +2 -2
  12. package/assets/{B5rrqMYFybo3oW9k.js → BHhPtFpb3YfV6_44.js} +21 -21
  13. package/assets/{CpoqmW4E7rFdkRpf.js → BMAAmO8LPIe4VJ77.js} +1 -1
  14. package/assets/{C1IE0F-y65XqEYRl.js → BMVu89mdcVSqJDDE.js} +1 -1
  15. package/assets/{Da0CtWhc7saaOdER.js → BRB5-fXJFU7Kq2wm.js} +352 -352
  16. package/assets/BRI3D42tlMkZdYb2.js +199 -0
  17. package/assets/{DOXj80NXiglJXsMZ.js → BVzogMoyaicBEKBk.js} +3 -3
  18. package/assets/{PvRzzufo1V8BuC-I.js → BWpLQNKC3n8bXJUk.js} +1 -1
  19. package/assets/{CS07BBUu6ZtXk4TZ.js → Baa8cmJsilboM0DW.js} +1 -1
  20. package/assets/{O3m_QwxIRXMPFTB8.js → BcDNXTGASDvptqc-.js} +1 -1
  21. package/assets/{knMcDWv3xN7yJBTT.js → Bme_PT3UqwTbGLWd.js} +1 -1
  22. package/assets/{pLM8Pxl1CscUdvMh.js → BnxajOeIasx1G3OB.js} +1 -1
  23. package/assets/{CFqF3aUKvOGFOK9O.js → BousX61zAjBfjlsV.js} +1 -1
  24. package/assets/{DF9WfdyjHuCpsEXh.js → Bp73VL7f5DEt88Cn.js} +35 -35
  25. package/assets/{DRy0AcTiSKQY3bih.js → BppAvnmuJbbYBQUy.js} +1 -1
  26. package/assets/{j4zqu8S2Be_yum7W.js → BtoBfR_4n1u37HmC.js} +1 -1
  27. package/assets/{BF0C-5gSMHWBXI_k.js → BuLAeGM4AvHCge4x.js} +1 -1
  28. package/assets/{DWr6GqsnMpLwSUno.js → Buxo11Ux7uxzoy_7.js} +2 -2
  29. package/assets/{pfa2CH5NQuzku6FP.js → BwTF2TRqzXsf0H1I.js} +2 -2
  30. package/assets/{CfBJzpZuy1o216iZ.js → BzCwrG3Zdv-Trzi_.js} +1 -1
  31. package/assets/{BgHOi7rAHLhztiz-.js → C00qhh0-m0B0JP9Y.js} +166 -166
  32. package/assets/{jNZ7exipVCGRPbzr.js → C5VvbPUAfrVKmXXs.js} +1 -1
  33. package/assets/{BVfjBXAMgo4u8Y72.js → C85xBYGjAzNmVNwL.js} +1 -1
  34. package/assets/{Dbi1_JHT_4u0nhwc.js → C880pTyOMof_fzPO.js} +1 -1
  35. package/assets/{BBF_CDIKB2NIXiHg.js → C88UXFOnR1Uc-nw2.js} +1 -1
  36. package/assets/{CRZMD-wS-944FnD_.js → C8G6iJz_vsgbNYq9.js} +4 -4
  37. package/assets/{CoSNTR-pg7BZAU7o.js → CAQgJMpje7ORQ5lt.js} +1 -1
  38. package/assets/CBSyNN4Fk5WsVStK.js +14 -0
  39. package/assets/{CY3Lmr-fgs6NqXRp.js → CCeqR45x9p-GG8Pi.js} +1 -1
  40. package/assets/{BqH4txhrgR2S-2ji.js → CEDsCeYCSlY7wYe1.js} +2 -2
  41. package/assets/{DvHZEP1wpb6549uf.js → CFWHwEc3dKMmNzUp.js} +406 -406
  42. package/assets/{8114GVvAL1oaiJLV.js → CK9LWUZdZ93t3GkS.js} +1 -1
  43. package/assets/{BPlrBhzIqyWK19E2.js → CL-BRusnISEAzebz.js} +606 -606
  44. package/assets/{Bfpf9b1s1bWyBXIw.js → CLvFlk5-KU2jnQ5r.js} +1 -1
  45. package/assets/{CX-LNahzNZRc78er.js → CUhCIQjymULgXquN.js} +1 -1
  46. package/assets/{BKGTzaNNBlRh7ua3.js → CboWvqCV0yix3-yP.js} +1 -1
  47. package/assets/{cl0C9YlF3Ds-lHps.js → Ci4AUhBajQMJs1Ty.js} +1 -1
  48. package/assets/{rlgXnCh6A88ozBRz.js → CkQT1G_6bvMixZ8e.js} +4 -4
  49. package/assets/{rzi2XAwlfy8BsGEa.js → CkqsYktaMF9p014y.js} +1 -1
  50. package/assets/{BuFb0lPxYlHccrD9.js → CkuL4Ed6oRGAhIS9.js} +1 -1
  51. package/assets/{Ban4yk1SYcz9Cs7n.js → Cm41HVr6Xyz53jHz.js} +1 -1
  52. package/assets/{BfB7Vq09p5uO-L88.js → CoY2sE2RG-Nd8TMR.js} +1 -1
  53. package/assets/{Cwe_kiigxAfceEK9.js → CuRvGO_2tG0PUhCM.js} +1 -1
  54. package/assets/{Dcw7GSCgw_dgsum7.js → CvqpsTll6ngbdHgx.js} +8672 -8642
  55. package/assets/{B3J6davzttys1e7l.js → Cvs9i2VUl7wXWZup.js} +3 -3
  56. package/assets/{DlARYdaCOVKiQzMH.js → Cy2uazuc6KpkbYg-.js} +1 -1
  57. package/assets/{2c1OYsVAy_w-ex-F.js → CybNjXi6cOFKyGuH.js} +1 -1
  58. package/assets/{BBZUslaSLC0vlZEb.js → CzPMiqbNDm6TDPGJ.js} +1 -1
  59. package/assets/{BBLuTiY3V4MpFphK.js → CzYXLEVIoCfQ1AMM.js} +193 -193
  60. package/assets/{BoE9cj92LVH2LLy0.js → D-BWtxIGXTCMLoio.js} +2 -2
  61. package/assets/{CRlLpD9cfhJ9Ov9L.js → D0Ly34TqieVSOIbh.js} +1 -1
  62. package/assets/{BloJ-e8xad1b_H7X.js → D0M0EWP28g5rQaei.js} +3 -3
  63. package/assets/{WC-THJfezYSFdiMF.js → D4NBYfzSZ3cU-3ao.js} +1 -1
  64. package/assets/{13QanvzRbNib7VHR.js → D4NcXlPRmR6NaoGS.js} +1 -1
  65. package/assets/{CDDtXZTG6nNFBQZP.js → D4jXxO1LUEQ6erA9.js} +1 -1
  66. package/assets/{CMd7aLIwOA7bxcZm.js → DAx-VOBmi1xAMhhX.js} +98 -98
  67. package/assets/{8hLtXHueDl7B_SEn.js → DBcXAdUaNGrlah12.js} +15 -15
  68. package/assets/{C8zzCf71C976X7SG.js → DFdAxnoXGn_8ge3l.js} +2 -2
  69. package/assets/{DZxHk5oKIVvu3iJR.js → DFjfZCMPfQfwC4cF.js} +580 -580
  70. package/assets/{YK80feN98r6GVZv5.js → DG0Dzgf1kAxN3AIk.js} +1 -1
  71. package/assets/{DQtnL5nOzSzVJhit.js → DGv-dTePYQ8_yif4.js} +42 -42
  72. package/assets/{gf6l-4XXMXtq8hpJ.js → DIaD0BL0JLTaJTS3.js} +5 -5
  73. package/assets/{CICMJpasl9o4FaZi.js → DIimDQiJDW-4lkZT.js} +1 -1
  74. package/assets/{CbkCnjWs7Fpj5iQY.js → DK8DWNMTOmCg6zAI.js} +8 -8
  75. package/assets/{q6advQx4x6PXvl0i.js → DKox8guOumZMOdq8.js} +37 -37
  76. package/assets/{DQ2vEDfVfsIGSmId.js → DMHiZKWwm6puHV6p.js} +1 -1
  77. package/assets/{CsPyLus3kh4QnahD.js → DMyq3L2ibjMlHuDa.js} +1 -1
  78. package/assets/{0WuReGsjIpidu0Cr.js → DOKXQpGyzXCoSLdJ.js} +1 -1
  79. package/assets/{ybnQoU8_KttlHjiy.js → DOXriXo-7WmTAKbN.js} +1 -1
  80. package/assets/{Sm1ouHLiXlCuQVKV.js → DRfsB4kS28fPXv6K.js} +96 -96
  81. package/assets/{BaZAIwIrqn1x69WH.js → DSmARJ0owmwmr2FA.js} +2 -2
  82. package/assets/{BlMUrEA8V2S2KH0D.js → DUM6h3BEreCilg32.js} +1 -1
  83. package/assets/{Bm-wDNSoT-3JD2bJ.js → DXp5V2__VY2opctz.js} +1 -1
  84. package/assets/{eExV3IoVMxYkv5GO.js → D_YBc6vHBL-ajwvB.js} +1 -1
  85. package/assets/{G489eYf-lt3D1riX.js → Dc8BQsPlwN6i6OU7.js} +1 -1
  86. package/assets/{BCdXK-2-AE6FAdRs.js → DcnNIdrilJHfl_CQ.js} +1 -1
  87. package/assets/{xGASRbzSVVKfEAh-.js → DdIufax_qSuWVGQK.js} +2 -2
  88. package/assets/{CCS6r_ru_-bq12nu.js → DeNqXaM_dHSswRuE.js} +1 -1
  89. package/assets/{BB39UJoWw8tjThqY.js → DfVHW5vbnRNXHrCi.js} +1 -1
  90. package/assets/{ov7L79VlksT4fw7T.js → Dfc9_XsqSeh48YeK.js} +11 -11
  91. package/assets/{CdbucPAmUkkc5pcM.js → DiXodb_hLvUDIGb6.js} +29 -29
  92. package/assets/{B-b7HyruDF2gdj3R.js → Dn531BWCDZ2noJix.js} +2 -2
  93. package/assets/{BfEmSaLbKgcjIIpn.js → DnAuLAqQLmAf9Gls.js} +2 -2
  94. package/assets/{BhxIJ8xdUxyMPJ_m.js → Do8K2GlFXIiMX9TB.js} +1 -1
  95. package/assets/{BTamKr78GfsihW1a.js → Dt8hWBnnqlpJOazW.js} +96 -96
  96. package/assets/{Dst0tyK__q2Q_AKk.js → DuBbSpdXZuAFvxpr.js} +1 -1
  97. package/assets/{DzYvbv5u7E2H7IoB.js → DvAq2cPI7-lfSn0x.js} +1 -1
  98. package/assets/{CI8Pu3ko8VzQYdRD.js → DzCZGtlg3pJO91l9.js} +1 -1
  99. package/assets/{B3lrS_GHkG6Mw5pN.js → DzRBnJpz972o277m.js} +1 -1
  100. package/assets/{g3TrQtFS0qJZeshT.js → EohzUi0uCnSF2q2D.js} +264 -264
  101. package/assets/{DXrX5tIZ1J5BhpFk.js → KSagTSkIvZSpUF1c.js} +4 -4
  102. package/assets/{DngX5ZuqqFGTp44B.js → LOFAyr5OoT3oZGMV.js} +1 -1
  103. package/assets/{DfuY8GdoSk8LxDFW.js → LbZNDu6C9XPMEXCN.js} +5 -5
  104. package/assets/{D31pY9r4JAFWw3E4.js → NwtEz6ZaVT8p8wOh.js} +1 -1
  105. package/assets/{hiKRbrdbpmJglbWC.js → PD_i17-cebq3-_Gn.js} +3 -3
  106. package/assets/{C2sDVxKGBNlTFg6y.js → Q-BvS_P_qM8EvP92.js} +1 -1
  107. package/assets/{C4C3Ot0xeo1O0wm5.js → YRKAYjRpPkjhxGSS.js} +1 -1
  108. package/assets/{C30apcFVvDHn2M4R.js → _-kNP8Q4FxBYPY4u.js} +4 -4
  109. package/assets/{BgN67gyTyx_xz2Ny.js → aEDyynzUuzMysLwT.js} +6 -6
  110. package/assets/{kThU6e6dkzEoaK6n.js → cTnKNFayqlXisspN.js} +2 -2
  111. package/assets/{DpwdC4SN_VYB9_ho.js → eEh1r_BS7Y0FXPqk.js} +1 -1
  112. package/assets/{CJoREr6-3iOl7iU_.js → g4vz4gc43eat7Hd2.js} +1 -1
  113. package/assets/{BR4Wpxs0eSlaoLOl.js → jUzhn1PeDLWXOuJO.js} +14 -14
  114. package/assets/{L42Y17f0HUEpfS6U.js → kIzQWtiHNHvh8HLF.js} +1 -1
  115. package/assets/{CJcyMzG19TOjqNHS.js → mIM-JksHd3Zl5INF.js} +1 -1
  116. package/assets/{BTB4fa2DU21pP7At.js → mirSoZ8QDsYUMjYu.js} +1 -1
  117. package/assets/{DOIpXsEXCaI-8VwJ.js → ooSNLnHLIYTBL5JD.js} +1 -1
  118. package/assets/{DRcmbp80jMRjxelW.js → tp75fiKc1r-jdPPN.js} +1 -1
  119. package/assets/{PAzPVx_0jajb_7cO.js → xltGcIbWkjqNtCty.js} +2 -2
  120. package/assets/{Cs1df4D35bBjqyvX.js → zbOvcGIPi-MDlJKE.js} +1 -1
  121. package/index.js +92 -92
  122. package/lib.js +1 -1
  123. package/licenses/dependencies.txt +66 -66
  124. package/package.json +17 -2
  125. package/screenshot-page/assets/{Da_VIghRFdNrmfZT.js → 37HIsN_8LEsOWyOO.js} +1 -1
  126. package/screenshot-page/assets/{DaqAdr-mtpVZMOS8.js → 4I9gFq1IdumstDHq.js} +2 -2
  127. package/screenshot-page/assets/{BrEXXxB9tAI5mmZP.js → 6j6xGn4csAcfcFMQ.js} +1 -1
  128. package/screenshot-page/assets/{hB5riGkPy0wXVIig.js → 7N8xCpYVBHFqfoAg.js} +1 -1
  129. package/screenshot-page/assets/{D8EmNst-H2v0eWcf.js → 97qOXULGlJqaTCIL.js} +1 -1
  130. package/screenshot-page/assets/B6dFVtErFelDd62E.js +2 -0
  131. package/screenshot-page/assets/{d8BvDCByceUNvHp7.js → B6i6Xi9OafEvNRAm.js} +2 -2
  132. package/screenshot-page/assets/B7uNU6WWjJaco6ho.js +1 -0
  133. package/screenshot-page/assets/BGoGxqwlpgXt8CMd.js +4 -0
  134. package/screenshot-page/assets/{0P0DnZolMnjPhiea.js → BXss42mPBQnnt0Rh.js} +1 -1
  135. package/screenshot-page/assets/{CJAgr6wyQGYAd3ZV.js → BbhwsC3eMdzP2PeH.js} +1 -1
  136. package/screenshot-page/assets/Beaq1eo3pAjlfcba.js +1 -0
  137. package/screenshot-page/assets/Bf3eJLndwyxuVR-_.js +1 -0
  138. package/screenshot-page/assets/{BwYQTcPRDDYIeAA5.js → BqJRJVrx7XkIPgo7.js} +6 -6
  139. package/screenshot-page/assets/{CX-ITg5RXdV2cefd.js → C-qNpEaGV5amWPml.js} +5 -5
  140. package/screenshot-page/assets/{BOF6KOmT8mH_NQnA.js → CB-bJVu0a2zAElNH.js} +1 -1
  141. package/screenshot-page/assets/CGvyz3VVFiHbYHM0.js +3 -0
  142. package/screenshot-page/assets/{DTAKTGn53yF_B621.js → CKbXhNyUiI18JA_C.js} +1 -1
  143. package/screenshot-page/assets/{DOsZiE9rOdS_Mm2Q.js → CVEUOXnI1pTa-GKp.js} +1 -1
  144. package/screenshot-page/assets/C_RHXqyejSa8gd9x.js +1 -0
  145. package/screenshot-page/assets/{Bt7fKk5ZupUuo_xD.js → CbTBuiF_Jn72hoj1.js} +2 -2
  146. package/screenshot-page/assets/{C-2hBFk27roWkIrQ.js → CraI-__UdtaIvbNn.js} +1 -1
  147. package/screenshot-page/assets/{Cg9eIWL8fPmeZFHG.js → Cyu6g5rRtEGOHaQS.js} +4 -4
  148. package/screenshot-page/assets/{CL_hAngRQwm_KGdR.js → D1KqgZwk5MjDhk5i.js} +1 -1
  149. package/screenshot-page/assets/{QVGvXAvlw1c8vZjy.js → DGr8M07ioDfKXLHD.js} +3 -3
  150. package/screenshot-page/assets/{BAzHRU12l2vyyXq-.js → DMbhlzvflyxF5Clt.js} +4 -4
  151. package/screenshot-page/assets/{BzI5CCx73aXausKb.js → DQxI7bShZ7TKpL0V.js} +8 -8
  152. package/screenshot-page/assets/{BpJaTpbR_CQzXj9M.js → DSB_SKy2lKI_VGik.js} +1 -1
  153. package/screenshot-page/assets/{jFfcyGJ9xruiOUyS.js → DWkISZdhmV2PBk-k.js} +1 -1
  154. package/screenshot-page/assets/{BhHceo22V3IBfap0.js → DfmEx82r_NbillHk.js} +1 -1
  155. package/screenshot-page/assets/{Cq1EzIAt4dHBkzfP.js → DsZcJUWTmqcp2aI-.js} +1 -1
  156. package/screenshot-page/assets/{jteb4n23QwBT9m_4.js → DszZ1A807YzTc0ek.js} +1 -1
  157. package/screenshot-page/assets/{DJebrQ5mu8uxpX3b.js → DwHci99xcnRTEcv5.js} +2 -2
  158. package/screenshot-page/assets/Ojp2B5i2-AJeD4mV.js +1 -0
  159. package/screenshot-page/assets/{CGNsyKbDXXz9qMa2.js → PRYQO22Y2LgMUg77.js} +1 -1
  160. package/screenshot-page/assets/{CZaKvnrRdlLj1_X8.js → RHcyaEfxJB7O3alo.js} +1 -1
  161. package/screenshot-page/assets/{-HdF7KAN8PKqrASL.js → TA9YjsgX-_8fRRdZ.js} +1 -1
  162. package/screenshot-page/assets/{ByyC3p23DsLAbUpr.js → cUY9GpQPVTLSprfW.js} +1 -1
  163. package/screenshot-page/assets/{Bne-AygyF1USkPAy.js → m48xmzGgNgwXSEgQ.js} +1 -1
  164. package/screenshot-page/assets/{DhnaoxNYwMobAVP6.js → mVfCz3bXIjqEVPEo.js} +1 -1
  165. package/screenshot-page/assets/{B-E9Dzx1wh9RA2yC.js → putBhJCWgRos_Fmk.js} +1 -1
  166. package/screenshot-page/assets/{BfkbiKKbYlPpRZqZ.js → uyInkZWFnMwX-BSC.js} +1 -1
  167. package/screenshot-page/assets/{CAKBmg6tXRtjEWgb.js → xiJthTXsasYVOHWE.js} +2 -2
  168. package/screenshot-page/index.html +8 -8
  169. package/assets/BOa1dD_9H3g65WbP.js +0 -14
  170. package/assets/DCWHNfq5qCxvALwe.js +0 -199
  171. package/screenshot-page/assets/B39YZkEvc1U8ZQ8H.js +0 -2
  172. package/screenshot-page/assets/B8Dy_WA9RlWuvMqF.js +0 -4
  173. package/screenshot-page/assets/CGZYePkVGI5DPBBY.js +0 -1
  174. package/screenshot-page/assets/CWA4xGjOeBuxJOzW.js +0 -3
  175. package/screenshot-page/assets/D2TibFqUBAPLcu_2.js +0 -1
  176. package/screenshot-page/assets/DEy3e1rY-XMdI309.js +0 -1
  177. package/screenshot-page/assets/eR9_DaySoB72PvMo.js +0 -1
  178. package/screenshot-page/assets/hHvAGynpTvAb97GX.js +0 -1
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v1.0.0
2
+ * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v1.0.2
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 { u as e } from "./8mWHFnE0j-CaNsxr.js";
8
- import { Cn as t, Cr as n, Ct as i, Dt as r, Fn as s, Fr as o, Hi as a, Hn as c, Ii as h, L as l, Na as u, Oa as d, Vr as p, Yi as f, Zt as m, a as E, aa as T, ao as g, ar as O, eo as A, gr as R, in as I, ji as _, jr as N, mi as L, ot as S, pt as C, qr as y, ti as k, ya as v } from "./Dcw7GSCgw_dgsum7.js";
7
+ import { u as e } from "./3o7I8loKRGynHrNq.js";
8
+ import { $r as t, Cr as n, E as i, Fa as r, Ft as s, J as o, M as a, Qt as c, Sa as h, Si as l, Tn as u, V as d, Wi as p, Wr as f, Wt as m, Xi as E, Zn as T, aa as g, an as O, bn as A, fr as R, jr as I, ka as _, kt as N, so as L, st as S, t as C, u as y, x as k, zi as v } from "./CvqpsTll6ngbdHgx.js";
9
9
  function x(e) {
10
10
  console && console.error && console.error(`Error: ${e}`);
11
11
  }
@@ -92,7 +92,7 @@ var U = class {
92
92
  constructor(e) {
93
93
  super(e.definition), this.idx = 1, this.ignoreAmbiguities = !1, this.hasPredicates = !1, Object.assign(this, Y(e));
94
94
  }
95
- }, H = class {
95
+ }, V = class {
96
96
  constructor(e) {
97
97
  this.idx = 1, Object.assign(this, Y(e));
98
98
  }
@@ -100,9 +100,9 @@ var U = class {
100
100
  e.visit(this);
101
101
  }
102
102
  };
103
- function V(e) {
103
+ function H(e) {
104
104
  function t(e) {
105
- return e.map(V);
105
+ return e.map(H);
106
106
  }
107
107
  if (e instanceof w) {
108
108
  const t = {
@@ -129,13 +129,13 @@ function V(e) {
129
129
  if (e instanceof j) return {
130
130
  type: "RepetitionMandatoryWithSeparator",
131
131
  idx: e.idx,
132
- separator: V(new H({ terminalType: e.separator })),
132
+ separator: H(new V({ terminalType: e.separator })),
133
133
  definition: t(e.definition)
134
134
  };
135
135
  if (e instanceof K) return {
136
136
  type: "RepetitionWithSeparator",
137
137
  idx: e.idx,
138
- separator: V(new H({ terminalType: e.separator })),
138
+ separator: H(new V({ terminalType: e.separator })),
139
139
  definition: t(e.definition)
140
140
  };
141
141
  if (e instanceof G) return {
@@ -148,7 +148,7 @@ function V(e) {
148
148
  idx: e.idx,
149
149
  definition: t(e.definition)
150
150
  };
151
- if (e instanceof H) {
151
+ if (e instanceof V) {
152
152
  const t = {
153
153
  type: "Terminal",
154
154
  name: e.terminalType.name,
@@ -183,7 +183,7 @@ var z = class {
183
183
  case K: return this.visitRepetitionWithSeparator(t);
184
184
  case G: return this.visitRepetition(t);
185
185
  case W: return this.visitAlternation(t);
186
- case H: return this.visitTerminal(t);
186
+ case V: return this.visitTerminal(t);
187
187
  case F: return this.visitRule(t);
188
188
  default: throw Error("non exhaustive match");
189
189
  }
@@ -210,15 +210,15 @@ function q(e) {
210
210
  if (e instanceof j) return "AT_LEAST_ONE_SEP";
211
211
  if (e instanceof K) return "MANY_SEP";
212
212
  if (e instanceof G) return "MANY";
213
- if (e instanceof H) return "CONSUME";
213
+ if (e instanceof V) return "CONSUME";
214
214
  throw Error("non exhaustive match");
215
215
  }
216
- var Z = class {
216
+ var Q = class {
217
217
  walk(e, t = []) {
218
218
  e.definition.forEach((n, i) => {
219
219
  const r = e.definition.slice(i + 1);
220
220
  if (n instanceof w) this.walkProdRef(n, r, t);
221
- else if (n instanceof H) this.walkTerminal(n, r, t);
221
+ else if (n instanceof V) this.walkTerminal(n, r, t);
222
222
  else if (n instanceof D) this.walkFlat(n, r, t);
223
223
  else if (n instanceof B) this.walkOption(n, r, t);
224
224
  else if (n instanceof $) this.walkAtLeastOne(n, r, t);
@@ -246,7 +246,7 @@ var Z = class {
246
246
  this.walk(e, i);
247
247
  }
248
248
  walkAtLeastOneSep(e, t, n) {
249
- const i = Q(e, t, n);
249
+ const i = Z(e, t, n);
250
250
  this.walk(e, i);
251
251
  }
252
252
  walkMany(e, t, n) {
@@ -254,7 +254,7 @@ var Z = class {
254
254
  this.walk(e, i);
255
255
  }
256
256
  walkManySep(e, t, n) {
257
- const i = Q(e, t, n);
257
+ const i = Z(e, t, n);
258
258
  this.walk(e, i);
259
259
  }
260
260
  walkOr(e, t, n) {
@@ -265,14 +265,14 @@ var Z = class {
265
265
  });
266
266
  }
267
267
  };
268
- function Q(e, t, n) {
269
- return [new B({ definition: [new H({ terminalType: e.separator })].concat(e.definition) })].concat(t, n);
268
+ function Z(e, t, n) {
269
+ return [new B({ definition: [new V({ terminalType: e.separator })].concat(e.definition) })].concat(t, n);
270
270
  }
271
271
  function J(e) {
272
272
  if (e instanceof w) return J(e.referencedRule);
273
- if (e instanceof H) return [e.terminalType];
273
+ if (e instanceof V) return [e.terminalType];
274
274
  if (function(e) {
275
- return e instanceof D || e instanceof B || e instanceof G || e instanceof $ || e instanceof j || e instanceof K || e instanceof H || e instanceof F;
275
+ return e instanceof D || e instanceof B || e instanceof G || e instanceof $ || e instanceof j || e instanceof K || e instanceof V || e instanceof F;
276
276
  }(e)) return function(e) {
277
277
  let t = [];
278
278
  const n = e.definition;
@@ -288,7 +288,7 @@ function J(e) {
288
288
  }(e);
289
289
  throw Error("non exhaustive match");
290
290
  }
291
- var ee = "_~IN~_", te = class extends Z {
291
+ var ee = "_~IN~_", te = class extends Q {
292
292
  constructor(e) {
293
293
  super(), this.topProd = e, this.follows = {};
294
294
  }
@@ -1277,7 +1277,7 @@ function ve(e, t) {
1277
1277
  return {
1278
1278
  errors: t.map((e) => ({
1279
1279
  message: "Token Type: ->" + e.name + "<- missing static 'PATTERN' property",
1280
- type: Qe.MISSING_PATTERN,
1280
+ type: Ze.MISSING_PATTERN,
1281
1281
  tokenTypes: [e]
1282
1282
  })),
1283
1283
  valid: e.filter((e) => !t.includes(e))
@@ -1292,7 +1292,7 @@ function ve(e, t) {
1292
1292
  return {
1293
1293
  errors: t.map((e) => ({
1294
1294
  message: "Token Type: ->" + e.name + "<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",
1295
- type: Qe.INVALID_PATTERN,
1295
+ type: Ze.INVALID_PATTERN,
1296
1296
  tokenTypes: [e]
1297
1297
  })),
1298
1298
  valid: e.filter((e) => !t.includes(e))
@@ -1320,7 +1320,7 @@ function ve(e, t) {
1320
1320
  }
1321
1321
  }).map((e) => ({
1322
1322
  message: "Unexpected RegExp Anchor Error:\n Token Type: ->" + e.name + "<- static 'PATTERN' cannot contain end of input anchor '$'\n See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",
1323
- type: Qe.EOI_ANCHOR_FOUND,
1323
+ type: Ze.EOI_ANCHOR_FOUND,
1324
1324
  tokenTypes: [e]
1325
1325
  }));
1326
1326
  }(n)), t = t.concat(function(e) {
@@ -1342,7 +1342,7 @@ function ve(e, t) {
1342
1342
  }
1343
1343
  }).map((e) => ({
1344
1344
  message: "Unexpected RegExp Anchor Error:\n Token Type: ->" + e.name + "<- static 'PATTERN' cannot contain start of input anchor '^'\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.",
1345
- type: Qe.SOI_ANCHOR_FOUND,
1345
+ type: Ze.SOI_ANCHOR_FOUND,
1346
1346
  tokenTypes: [e]
1347
1347
  }));
1348
1348
  }(n)), t = t.concat(function(e) {
@@ -1351,7 +1351,7 @@ function ve(e, t) {
1351
1351
  return t instanceof RegExp && (t.multiline || t.global);
1352
1352
  }).map((e) => ({
1353
1353
  message: "Token Type: ->" + e.name + "<- static 'PATTERN' may NOT contain global('g') or multiline('m')",
1354
- type: Qe.UNSUPPORTED_FLAGS_FOUND,
1354
+ type: Ze.UNSUPPORTED_FLAGS_FOUND,
1355
1355
  tokenTypes: [e]
1356
1356
  }));
1357
1357
  }(n)), t = t.concat(function(e) {
@@ -1361,14 +1361,14 @@ function ve(e, t) {
1361
1361
  const t = e.map((e) => e.name);
1362
1362
  return {
1363
1363
  message: `The same RegExp pattern ->${e[0].PATTERN}<-has been used in all of the following Token Types: ${t.join(", ")} <-`,
1364
- type: Qe.DUPLICATE_PATTERNS_FOUND,
1364
+ type: Ze.DUPLICATE_PATTERNS_FOUND,
1365
1365
  tokenTypes: e
1366
1366
  };
1367
1367
  });
1368
1368
  }(n)), t = t.concat(function(e) {
1369
1369
  return e.filter((e) => e.PATTERN.test("")).map((e) => ({
1370
1370
  message: "Token Type: ->" + e.name + "<- static 'PATTERN' must not match an empty string",
1371
- type: Qe.EMPTY_MATCH_PATTERN,
1371
+ type: Ze.EMPTY_MATCH_PATTERN,
1372
1372
  tokenTypes: [e]
1373
1373
  }));
1374
1374
  }(n)), t;
@@ -1379,13 +1379,13 @@ function ve(e, t) {
1379
1379
  return t !== tt.SKIPPED && t !== tt.NA && !("string" == typeof t);
1380
1380
  }).map((e) => ({
1381
1381
  message: "Token Type: ->" + e.name + "<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",
1382
- type: Qe.INVALID_GROUP_TYPE_FOUND,
1382
+ type: Ze.INVALID_GROUP_TYPE_FOUND,
1383
1383
  tokenTypes: [e]
1384
1384
  }));
1385
1385
  }(s)), n = n.concat(function(e, t) {
1386
1386
  return e.filter((e) => void 0 !== e.PUSH_MODE && !t.includes(e.PUSH_MODE)).map((e) => ({
1387
1387
  message: `Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-which does not exist`,
1388
- type: Qe.PUSH_MODE_DOES_NOT_EXIST,
1388
+ type: Ze.PUSH_MODE_DOES_NOT_EXIST,
1389
1389
  tokenTypes: [e]
1390
1390
  }));
1391
1391
  }(s, t)), n = n.concat(function(e) {
@@ -1432,7 +1432,7 @@ function ve(e, t) {
1432
1432
  const n = `Token: ->${s.name}<- can never be matched.\nBecause it appears AFTER the Token Type ->${e.name}<-in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;
1433
1433
  t.push({
1434
1434
  message: n,
1435
- type: Qe.UNREACHABLE_PATTERN,
1435
+ type: Ze.UNREACHABLE_PATTERN,
1436
1436
  tokenTypes: [e, s]
1437
1437
  });
1438
1438
  }
@@ -1476,19 +1476,19 @@ function Fe(e, t) {
1476
1476
  Se(t, e.PATTERN);
1477
1477
  } catch (e) {
1478
1478
  return {
1479
- issue: Qe.IDENTIFY_TERMINATOR,
1479
+ issue: Ze.IDENTIFY_TERMINATOR,
1480
1480
  errMsg: e.message
1481
1481
  };
1482
1482
  }
1483
1483
  return !1;
1484
1484
  }
1485
1485
  if ("string" == typeof e.PATTERN) return !1;
1486
- if (be(e)) return { issue: Qe.CUSTOM_LINE_BREAK };
1486
+ if (be(e)) return { issue: Ze.CUSTOM_LINE_BREAK };
1487
1487
  throw Error("non exhaustive match");
1488
1488
  }
1489
1489
  function De(e, t) {
1490
- if (t.issue === Qe.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;
1491
- if (t.issue === Qe.CUSTOM_LINE_BREAK) return `Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <${e.name}> Token Type\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;
1490
+ if (t.issue === Ze.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern.\n\tThe problem is in the <${e.name}> Token Type\n\t Root cause: ${t.errMsg}.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;
1491
+ if (t.issue === Ze.CUSTOM_LINE_BREAK) return `Warning: A Custom Token Pattern should specify the <line_breaks> option.\n\tThe problem is in the <${e.name}> Token Type\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;
1492
1492
  throw Error("non exhaustive match");
1493
1493
  }
1494
1494
  function Be(e) {
@@ -1508,7 +1508,7 @@ function Ke(e, t) {
1508
1508
  function We(e, t) {
1509
1509
  return e.tokenTypeIdx === t.tokenTypeIdx;
1510
1510
  }
1511
- var He = 1, Ve = {};
1511
+ var Ve = 1, He = {};
1512
1512
  function Ye(e) {
1513
1513
  const t = function(e) {
1514
1514
  let t = [...e], n = e, i = !0;
@@ -1522,7 +1522,7 @@ function Ye(e) {
1522
1522
  (function(e) {
1523
1523
  e.forEach((e) => {
1524
1524
  var t;
1525
- Xe(e) || (Ve[He] = e, e.tokenTypeIdx = He++), qe(e) && !Array.isArray(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), qe(e) || (e.CATEGORIES = []), t = e, Object.hasOwn(null != t ? t : {}, "categoryMatches") || (e.categoryMatches = []), function(e) {
1525
+ Xe(e) || (He[Ve] = e, e.tokenTypeIdx = Ve++), qe(e) && !Array.isArray(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), qe(e) || (e.CATEGORIES = []), t = e, Object.hasOwn(null != t ? t : {}, "categoryMatches") || (e.categoryMatches = []), function(e) {
1526
1526
  return Object.hasOwn(null != e ? e : {}, "categoryMatchesMap");
1527
1527
  }(e) || (e.categoryMatchesMap = {});
1528
1528
  });
@@ -1533,7 +1533,7 @@ function Ye(e) {
1533
1533
  }(t), function(e) {
1534
1534
  e.forEach((e) => {
1535
1535
  e.categoryMatches = [], Object.keys(e.categoryMatchesMap).forEach((t) => {
1536
- e.categoryMatches.push(Ve[t].tokenTypeIdx);
1536
+ e.categoryMatches.push(He[t].tokenTypeIdx);
1537
1537
  });
1538
1538
  });
1539
1539
  }(t), t.forEach((e) => {
@@ -1554,16 +1554,16 @@ function Xe(e) {
1554
1554
  function qe(e) {
1555
1555
  return Object.hasOwn(null != e ? e : {}, "CATEGORIES");
1556
1556
  }
1557
- function Ze(e) {
1557
+ function Qe(e) {
1558
1558
  return Object.hasOwn(null != e ? e : {}, "tokenTypeIdx");
1559
1559
  }
1560
- var Qe, Je = {
1560
+ var Ze, Je = {
1561
1561
  buildUnableToPopLexerModeMessage: (e) => `Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`,
1562
1562
  buildUnexpectedCharactersMessage: (e, t, n, i, r, s) => `unexpected character: ->${e.charAt(t)}<- at offset: ${t}, skipped ${n} characters.`
1563
1563
  };
1564
1564
  (function(e) {
1565
1565
  e[e.MISSING_PATTERN = 0] = "MISSING_PATTERN", e[e.INVALID_PATTERN = 1] = "INVALID_PATTERN", e[e.EOI_ANCHOR_FOUND = 2] = "EOI_ANCHOR_FOUND", e[e.UNSUPPORTED_FLAGS_FOUND = 3] = "UNSUPPORTED_FLAGS_FOUND", e[e.DUPLICATE_PATTERNS_FOUND = 4] = "DUPLICATE_PATTERNS_FOUND", e[e.INVALID_GROUP_TYPE_FOUND = 5] = "INVALID_GROUP_TYPE_FOUND", e[e.PUSH_MODE_DOES_NOT_EXIST = 6] = "PUSH_MODE_DOES_NOT_EXIST", e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE = 7] = "MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE", e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY = 8] = "MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY", e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST = 9] = "MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST", e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED = 10] = "LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED", e[e.SOI_ANCHOR_FOUND = 11] = "SOI_ANCHOR_FOUND", e[e.EMPTY_MATCH_PATTERN = 12] = "EMPTY_MATCH_PATTERN", e[e.NO_LINE_BREAKS_FLAGS = 13] = "NO_LINE_BREAKS_FLAGS", e[e.UNREACHABLE_PATTERN = 14] = "UNREACHABLE_PATTERN", e[e.IDENTIFY_TERMINATOR = 15] = "IDENTIFY_TERMINATOR", e[e.CUSTOM_LINE_BREAK = 16] = "CUSTOM_LINE_BREAK", e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE = 17] = "MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE";
1566
- })(Qe || (Qe = {}));
1566
+ })(Ze || (Ze = {}));
1567
1567
  var et = {
1568
1568
  deferDefinitionErrorsHandling: !1,
1569
1569
  positionTracking: "full",
@@ -1606,23 +1606,23 @@ var tt = class {
1606
1606
  const t = [];
1607
1607
  return Object.hasOwn(e, "defaultMode") || t.push({
1608
1608
  message: "A MultiMode Lexer cannot be initialized without a <defaultMode> property in its definition\n",
1609
- type: Qe.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE
1609
+ type: Ze.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE
1610
1610
  }), Object.hasOwn(e, "modes") || t.push({
1611
1611
  message: "A MultiMode Lexer cannot be initialized without a <modes> property in its definition\n",
1612
- type: Qe.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY
1612
+ type: Ze.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY
1613
1613
  }), Object.hasOwn(e, "modes") && Object.hasOwn(e, "defaultMode") && !Object.hasOwn(e.modes, e.defaultMode) && t.push({
1614
1614
  message: `A MultiMode Lexer cannot be initialized with a ${ye}: <${e.defaultMode}>which does not exist\n`,
1615
- type: Qe.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST
1615
+ type: Ze.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST
1616
1616
  }), Object.hasOwn(e, "modes") && Object.keys(e.modes).forEach((n) => {
1617
1617
  const i = e.modes[n];
1618
1618
  i.forEach((e, r) => {
1619
1619
  void 0 === e ? t.push({
1620
1620
  message: `A Lexer cannot be initialized using an undefined Token Type. Mode:<${n}> at index: <${r}>\n`,
1621
- type: Qe.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED
1621
+ type: Ze.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED
1622
1622
  }) : Object.hasOwn(e, "LONGER_ALT") && (Array.isArray(e.LONGER_ALT) ? e.LONGER_ALT : [e.LONGER_ALT]).forEach((r) => {
1623
1623
  void 0 === r || i.includes(r) || t.push({
1624
1624
  message: `A MultiMode Lexer cannot be initialized with a longer_alt <${r.name}> on token <${e.name}> outside of mode <${n}>\n`,
1625
- type: Qe.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE
1625
+ type: Ze.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE
1626
1626
  });
1627
1627
  });
1628
1628
  });
@@ -1645,7 +1645,7 @@ var tt = class {
1645
1645
  } else Object.hasOwn(e, "LINE_BREAKS") ? !0 === e.LINE_BREAKS && (r = !0) : Se(o, e.PATTERN) && (r = !0);
1646
1646
  }), t && !r && i.push({
1647
1647
  message: "Warning: No LINE_BREAKS Found.\n This Lexer has been defined to track line and column information,\n But none of the Token Types can be identified as matching a line terminator.\n See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n for details.",
1648
- type: Qe.NO_LINE_BREAKS_FLAGS
1648
+ type: Ze.NO_LINE_BREAKS_FLAGS
1649
1649
  }), i;
1650
1650
  }(n, this.trackStartLines, this.config.lineTerminatorCharacters));
1651
1651
  })), n.modes = n.modes ? n.modes : {}, Object.entries(n.modes).forEach(([e, t]) => {
@@ -1946,7 +1946,7 @@ var Et = {
1946
1946
  Object.freeze(Et);
1947
1947
  var Tt = { buildRuleNotFoundError: (e, t) => "Invalid grammar, reference to a rule which is not defined: ->" + t.nonTerminalName + "<-\ninside top level rule: ->" + e.name + "<-" }, gt = {
1948
1948
  buildDuplicateFoundError(e, t) {
1949
- const n = e.name, i = t[0], r = i.idx, s = q(i), o = (a = i) instanceof H ? a.terminalType.name : a instanceof w ? a.nonTerminalName : "";
1949
+ const n = e.name, i = t[0], r = i.idx, s = q(i), o = (a = i) instanceof V ? a.terminalType.name : a instanceof w ? a.nonTerminalName : "";
1950
1950
  var a;
1951
1951
  let c = `->${s}${r > 0 ? r : ""}<- ${o ? `with argument: ->${o}<-` : ""}\n appears more than once (${t.length} times) in the top level rule: ->${n}<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n `;
1952
1952
  return c = c.replace(/[ \t]+/g, " "), c = c.replace(/\s\s+/g, "\n"), c;
@@ -2002,7 +2002,7 @@ var Ot, At = class extends z {
2002
2002
  });
2003
2003
  }
2004
2004
  }
2005
- }, Rt = class extends Z {
2005
+ }, Rt = class extends Q {
2006
2006
  constructor(e, t) {
2007
2007
  super(), this.topProd = e, this.path = t, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = !1, this.isAtEndOfPath = !1;
2008
2008
  }
@@ -2032,7 +2032,7 @@ var Ot, At = class extends z {
2032
2032
  this.possibleTokTypes = J(i), this.found = !0;
2033
2033
  }
2034
2034
  }
2035
- }, _t = class extends Z {
2035
+ }, _t = class extends Q {
2036
2036
  constructor(e, t) {
2037
2037
  super(), this.topRule = e, this.occurrence = t, this.result = {
2038
2038
  token: void 0,
@@ -2047,28 +2047,28 @@ var Ot, At = class extends z {
2047
2047
  walkMany(e, t, n) {
2048
2048
  if (e.idx === this.occurrence) {
2049
2049
  const e = t.concat(n)[0];
2050
- this.result.isEndOfRule = void 0 === e, e instanceof H && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2050
+ this.result.isEndOfRule = void 0 === e, e instanceof V && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2051
2051
  } else super.walkMany(e, t, n);
2052
2052
  }
2053
2053
  }, Lt = class extends _t {
2054
2054
  walkManySep(e, t, n) {
2055
2055
  if (e.idx === this.occurrence) {
2056
2056
  const e = t.concat(n)[0];
2057
- this.result.isEndOfRule = void 0 === e, e instanceof H && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2057
+ this.result.isEndOfRule = void 0 === e, e instanceof V && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2058
2058
  } else super.walkManySep(e, t, n);
2059
2059
  }
2060
2060
  }, St = class extends _t {
2061
2061
  walkAtLeastOne(e, t, n) {
2062
2062
  if (e.idx === this.occurrence) {
2063
2063
  const e = t.concat(n)[0];
2064
- this.result.isEndOfRule = void 0 === e, e instanceof H && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2064
+ this.result.isEndOfRule = void 0 === e, e instanceof V && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2065
2065
  } else super.walkAtLeastOne(e, t, n);
2066
2066
  }
2067
2067
  }, Ct = class extends _t {
2068
2068
  walkAtLeastOneSep(e, t, n) {
2069
2069
  if (e.idx === this.occurrence) {
2070
2070
  const e = t.concat(n)[0];
2071
- this.result.isEndOfRule = void 0 === e, e instanceof H && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2071
+ this.result.isEndOfRule = void 0 === e, e instanceof V && (this.result.token = e.terminalType, this.result.occurrence = e.idx);
2072
2072
  } else super.walkAtLeastOneSep(e, t, n);
2073
2073
  }
2074
2074
  };
@@ -2086,14 +2086,14 @@ function yt(e, t, n = []) {
2086
2086
  if (t instanceof B) i = s(t.definition);
2087
2087
  else {
2088
2088
  if (t instanceof $) return s(t.definition.concat([new G({ definition: t.definition })]));
2089
- if (t instanceof j) return s([new D({ definition: t.definition }), new G({ definition: [new H({ terminalType: t.separator })].concat(t.definition) })]);
2090
- if (t instanceof K) i = s(t.definition.concat([new G({ definition: [new H({ terminalType: t.separator })].concat(t.definition) })]));
2089
+ if (t instanceof j) return s([new D({ definition: t.definition }), new G({ definition: [new V({ terminalType: t.separator })].concat(t.definition) })]);
2090
+ if (t instanceof K) i = s(t.definition.concat([new G({ definition: [new V({ terminalType: t.separator })].concat(t.definition) })]));
2091
2091
  else if (t instanceof G) i = s(t.definition.concat([new G({ definition: t.definition })]));
2092
2092
  else {
2093
2093
  if (t instanceof W) return t.definition.forEach((e) => {
2094
2094
  0 !== e.definition.length && (i = s(e.definition));
2095
2095
  }), i;
2096
- if (!(t instanceof H)) throw Error("non exhaustive match");
2096
+ if (!(t instanceof V)) throw Error("non exhaustive match");
2097
2097
  n.push(t.terminalType);
2098
2098
  }
2099
2099
  }
@@ -2191,7 +2191,7 @@ function Pt(e, t, n) {
2191
2191
  (function(e) {
2192
2192
  e[e.OPTION = 0] = "OPTION", e[e.REPETITION = 1] = "REPETITION", e[e.REPETITION_MANDATORY = 2] = "REPETITION_MANDATORY", e[e.REPETITION_MANDATORY_WITH_SEPARATOR = 3] = "REPETITION_MANDATORY_WITH_SEPARATOR", e[e.REPETITION_WITH_SEPARATOR = 4] = "REPETITION_WITH_SEPARATOR", e[e.ALTERNATION = 5] = "ALTERNATION";
2193
2193
  })(Ot || (Ot = {}));
2194
- var Mt = class extends Z {
2194
+ var Mt = class extends Q {
2195
2195
  constructor(e, t, n) {
2196
2196
  super(), this.topProd = e, this.targetOccurrence = t, this.targetProdType = n;
2197
2197
  }
@@ -2338,7 +2338,7 @@ function Gt(e) {
2338
2338
  }
2339
2339
  function Kt(e, t, n, i) {
2340
2340
  const r = e.flatMap((e) => function(e, t) {
2341
- const n = new Vt();
2341
+ const n = new Ht();
2342
2342
  e.accept(n);
2343
2343
  const i = n.allProductions, r = Object.groupBy(i, Wt), s = Object.fromEntries(Object.entries(r).filter(([e, t]) => t.length > 1));
2344
2344
  return Object.values(s).map((n) => {
@@ -2348,7 +2348,7 @@ function Kt(e, t, n, i) {
2348
2348
  ruleName: e.name,
2349
2349
  dslName: s,
2350
2350
  occurrence: i.idx
2351
- }, a = Ht(i);
2351
+ }, a = Vt(i);
2352
2352
  return a && (o.parameter = a), o;
2353
2353
  });
2354
2354
  }(e, n)), s = function(e, t, n) {
@@ -2393,12 +2393,12 @@ function Kt(e, t, n, i) {
2393
2393
  return r.concat(s, o, a);
2394
2394
  }
2395
2395
  function Wt(e) {
2396
- return `${q(e)}_#_${e.idx}_#_${Ht(e)}`;
2396
+ return `${q(e)}_#_${e.idx}_#_${Vt(e)}`;
2397
2397
  }
2398
- function Ht(e) {
2399
- return e instanceof H ? e.terminalType.name : e instanceof w ? e.nonTerminalName : "";
2398
+ function Vt(e) {
2399
+ return e instanceof V ? e.terminalType.name : e instanceof w ? e.nonTerminalName : "";
2400
2400
  }
2401
- var Vt = class extends z {
2401
+ var Ht = class extends z {
2402
2402
  constructor() {
2403
2403
  super(...arguments), this.allProductions = [];
2404
2404
  }
@@ -2454,7 +2454,7 @@ function zt(e) {
2454
2454
  if (n instanceof w) t.push(n.referencedRule);
2455
2455
  else if (n instanceof D || n instanceof B || n instanceof $ || n instanceof j || n instanceof K || n instanceof G) t = t.concat(zt(n.definition));
2456
2456
  else if (n instanceof W) t = n.definition.map((e) => zt(e.definition)).flat();
2457
- else if (!(n instanceof H)) throw Error("non exhaustive match");
2457
+ else if (!(n instanceof V)) throw Error("non exhaustive match");
2458
2458
  const i = X(n), r = e.length > 1;
2459
2459
  if (i && r) {
2460
2460
  const n = e.slice(1);
@@ -2498,7 +2498,7 @@ function qt(e, t) {
2498
2498
  occurrenceStack: f.slice(0, -1)
2499
2499
  };
2500
2500
  u.push(e);
2501
- } else if (m instanceof H) if (d < c - 1) {
2501
+ } else if (m instanceof V) if (d < c - 1) {
2502
2502
  const e = d + 1;
2503
2503
  if (n(t[e], m.terminalType)) {
2504
2504
  const t = {
@@ -2558,7 +2558,7 @@ function qt(e, t) {
2558
2558
  u.push(t);
2559
2559
  } else if (m instanceof j) {
2560
2560
  const t = new G({
2561
- definition: [new H({ terminalType: m.separator })].concat(m.definition),
2561
+ definition: [new V({ terminalType: m.separator })].concat(m.definition),
2562
2562
  idx: m.idx
2563
2563
  }), n = {
2564
2564
  idx: d,
@@ -2576,7 +2576,7 @@ function qt(e, t) {
2576
2576
  };
2577
2577
  u.push(e), u.push(o);
2578
2578
  const n = new G({
2579
- definition: [new H({ terminalType: m.separator })].concat(m.definition),
2579
+ definition: [new V({ terminalType: m.separator })].concat(m.definition),
2580
2580
  idx: m.idx
2581
2581
  }), r = {
2582
2582
  idx: d,
@@ -2636,7 +2636,7 @@ function qt(e, t) {
2636
2636
  alternative: r + 1
2637
2637
  }] : []));
2638
2638
  }
2639
- function Zt(e, t, n) {
2639
+ function Qt(e, t, n) {
2640
2640
  const i = new Xt();
2641
2641
  e.accept(i);
2642
2642
  let r = i.alternations;
@@ -2703,7 +2703,7 @@ function Zt(e, t, n) {
2703
2703
  return a.concat(c);
2704
2704
  });
2705
2705
  }
2706
- var Qt = class extends z {
2706
+ var Zt = class extends z {
2707
2707
  constructor() {
2708
2708
  super(...arguments), this.allProductions = [];
2709
2709
  }
@@ -2801,13 +2801,13 @@ var mn = 1024, En = 1280, Tn = 1536, gn = class {
2801
2801
  return e.flatMap((e) => qt(e, gt));
2802
2802
  }
2803
2803
  validateAmbiguousAlternationAlternatives(e, t) {
2804
- return e.flatMap((e) => Zt(e, t, gt));
2804
+ return e.flatMap((e) => Qt(e, t, gt));
2805
2805
  }
2806
2806
  validateSomeNonEmptyLookaheadPath(e, t) {
2807
2807
  return function(e, t, n) {
2808
2808
  const i = [];
2809
2809
  return e.forEach((e) => {
2810
- const r = new Qt();
2810
+ const r = new Zt();
2811
2811
  e.accept(r), r.allProductions.forEach((r) => {
2812
2812
  const s = vt(r), o = r.maxLookahead || t;
2813
2813
  if (0 === $t(r.idx, e, s, o)[0].flat().length) {
@@ -3398,7 +3398,7 @@ $n.DEFER_DEFINITION_ERRORS_HANDLING = !1, Bn = $n, [
3398
3398
  if ("number" == typeof e[0].startOffset) throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n For Further details.");
3399
3399
  }
3400
3400
  if (Array.isArray(e)) this.tokensMap = e.reduce((e, t) => (e[t.name] = t, e), {});
3401
- else if (Object.hasOwn(e, "modes") && Object.values(e.modes).flat().every(Ze)) {
3401
+ else if (Object.hasOwn(e, "modes") && Object.values(e.modes).flat().every(Qe)) {
3402
3402
  const t = Object.values(e.modes).flat(), n = [...new Set(t)];
3403
3403
  this.tokensMap = n.reduce((e, t) => (e[t.name] = t, e), {});
3404
3404
  } else {
@@ -3990,7 +3990,7 @@ $n.DEFER_DEFINITION_ERRORS_HANDLING = !1, Bn = $n, [
3990
3990
  return this.gastProductionsCache;
3991
3991
  }
3992
3992
  getSerializedGastProductions() {
3993
- return Object.values(this.gastProductionsCache).map(V);
3993
+ return Object.values(this.gastProductionsCache).map(H);
3994
3994
  }
3995
3995
  },
3996
3996
  class {
@@ -4145,7 +4145,7 @@ $n.DEFER_DEFINITION_ERRORS_HANDLING = !1, Bn = $n, [
4145
4145
  const n = /* @__PURE__ */ new Error(`<CONSUME${Mn(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);
4146
4146
  throw n.KNOWN_RECORDER_ERROR = !0, n;
4147
4147
  }
4148
- const i = this.recordingProdStack.at(-1), r = new H({
4148
+ const i = this.recordingProdStack.at(-1), r = new V({
4149
4149
  idx: t,
4150
4150
  terminalType: e,
4151
4151
  label: null == n ? void 0 : n.LABEL
@@ -4187,22 +4187,22 @@ var jn = class extends $n {
4187
4187
  }
4188
4188
  }, Gn = class t {
4189
4189
  static shared(e) {
4190
- const n = e?.locale ?? g, i = e?.maxColumn ?? Vn, r = e?.maxRow ?? Yn;
4191
- let s = Hn.get(n);
4192
- s || (s = /* @__PURE__ */ new Map(), Hn.set(n, s));
4193
- const o = `${i}:${r}`;
4194
- let a = s.get(o);
4195
- return a || (a = new t({
4190
+ const n = e?.locale ?? i, r = e?.maxColumn ?? Hn, s = e?.maxRow ?? Yn;
4191
+ let o = Vn.get(n);
4192
+ o || (o = /* @__PURE__ */ new Map(), Vn.set(n, o));
4193
+ const a = `${r}:${s}`;
4194
+ let c = o.get(a);
4195
+ return c || (c = new t({
4196
4196
  locale: n,
4197
- maxColumn: i,
4198
- maxRow: r
4199
- }), s.set(o, a)), a;
4197
+ maxColumn: r,
4198
+ maxRow: s
4199
+ }), o.set(a, c)), c;
4200
4200
  }
4201
4201
  constructor(e) {
4202
- const t = e?.maxColumn ?? Vn, n = e?.maxRow ?? Yn, i = e?.locale ?? g;
4203
- this._locale = i, this._maxColumn = t, this._maxRow = n;
4204
- const { separatorFunction: r, separatorColumn: s, separatorRow: o, separatorDecimal: a } = i.separators;
4205
- if (s === o) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${s}')`);
4202
+ const t = e?.maxColumn ?? Hn, n = e?.maxRow ?? Yn, r = e?.locale ?? i;
4203
+ this._locale = r, this._maxColumn = t, this._maxRow = n;
4204
+ const { separatorFunction: s, separatorColumn: o, separatorRow: a, separatorDecimal: c } = r.separators;
4205
+ if (o === a) throw new Error(`FormulaLexer: separatorColumn and separatorRow must differ (both '${o}')`);
4206
4206
  const h = pt({
4207
4207
  name: "WhiteSpace",
4208
4208
  pattern: /[ \n\v\f\r\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,
@@ -4215,18 +4215,18 @@ var jn = class extends $n {
4215
4215
  pattern: /[a-zA-Z_\u007F-\uFFFF]+[a-zA-Z0-9_.\u007F-\uFFFF]*(?=\()/
4216
4216
  }), d = pt({
4217
4217
  name: "TableReference",
4218
- pattern: { exec: c },
4218
+ pattern: { exec: L },
4219
4219
  line_breaks: !1,
4220
4220
  start_chars_hint: Wn
4221
4221
  }), p = pt({
4222
4222
  name: "BracketedString",
4223
- pattern: { exec: O },
4223
+ pattern: { exec: T },
4224
4224
  line_breaks: !1,
4225
4225
  start_chars_hint: [91],
4226
4226
  longer_alt: [d, l]
4227
4227
  }), f = (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()}]`), E = pt({
4228
4228
  name: "LiteralError",
4229
- pattern: new RegExp(f(i.errorLiterals) + [
4229
+ pattern: new RegExp(f(r.errorLiterals) + [
4230
4230
  "#PARSE!",
4231
4231
  "#NULL!",
4232
4232
  "#DIV\\/0!",
@@ -4244,23 +4244,23 @@ var jn = class extends $n {
4244
4244
  "#PYTHON!",
4245
4245
  "#TIMEOUT!"
4246
4246
  ].map(m).join("|"))
4247
- }), T = pt({
4247
+ }), g = pt({
4248
4248
  name: "RefError",
4249
- pattern: new RegExp(f(i.errorRefs) + ["#REF!", "#NAME\\?"].map(m).join("|"))
4250
- }), A = pt({
4249
+ pattern: new RegExp(f(r.errorRefs) + ["#REF!", "#NAME\\?"].map(m).join("|"))
4250
+ }), O = pt({
4251
4251
  name: "SingleQuotedString",
4252
4252
  pattern: /'(''|[^'])*'/
4253
- }), R = pt({
4253
+ }), A = pt({
4254
4254
  name: "SheetQuoted",
4255
4255
  pattern: /'(?:''|[^'])*?'!/
4256
- }), I = pt({
4256
+ }), R = pt({
4257
4257
  name: "Sheet",
4258
4258
  pattern: /[A-Za-z_.\d\u007F-\uFFFF]*!/
4259
- }), _ = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, N = pt({
4259
+ }), I = /[a-zA-Z_\\\u007F-\uFFFF][a-zA-Z0-9_.?\\\u007F-\uFFFF]*:?/y, _ = pt({
4260
4260
  name: "NamedToken",
4261
4261
  pattern: { exec: (e, t) => {
4262
- _.lastIndex = t;
4263
- const n = _.exec(e);
4262
+ I.lastIndex = t;
4263
+ const n = I.exec(e);
4264
4264
  if (!n) return null;
4265
4265
  let i = n[0];
4266
4266
  const r = i.indexOf(".:");
@@ -4268,22 +4268,22 @@ var jn = class extends $n {
4268
4268
  } },
4269
4269
  line_breaks: !1,
4270
4270
  start_chars_hint: Wn
4271
- }), L = pt({
4271
+ }), N = pt({
4272
4272
  name: "Cell",
4273
4273
  pattern: { exec: qn(t, n) },
4274
4274
  line_breaks: !1,
4275
4275
  start_chars_hint: [36, ...Kn],
4276
- longer_alt: N
4276
+ longer_alt: _
4277
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
- longer_alt: N
4282
+ longer_alt: _
4283
4283
  }), C = pt({
4284
4284
  name: "AbsRow",
4285
4285
  pattern: /[$][0-9]+/
4286
- }), y = "." === a ? "\\." : a, k = pt({
4286
+ }), y = "." === c ? "\\." : c, k = pt({
4287
4287
  name: "NumberToken",
4288
4288
  pattern: new RegExp(`[0-9]+${y}(?!:)[0-9]*([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|${y}[0-9]+([eE][+-]?[0-9]+|\\*\\*[+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+`)
4289
4289
  }), v = pt({
@@ -4293,7 +4293,7 @@ var jn = class extends $n {
4293
4293
  name: "DigitToken",
4294
4294
  pattern: /[0-9]+/
4295
4295
  }), P = ["TRUE", "FALSE"];
4296
- for (const e of [i.booleanTrue, i.booleanFalse]) {
4296
+ for (const e of [r.booleanTrue, r.booleanFalse]) {
4297
4297
  const t = e?.trim();
4298
4298
  t && !P.some((e) => e.toLowerCase() === t.toLowerCase()) && P.push(t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
4299
4299
  }
@@ -4302,13 +4302,13 @@ var jn = class extends $n {
4302
4302
  pattern: new RegExp(P.join("|"), "i")
4303
4303
  }), b = pt({
4304
4304
  name: "ArgSeparator",
4305
- pattern: Zn(r)
4305
+ pattern: Qn(s)
4306
4306
  }), U = pt({
4307
4307
  name: "ColSeparator",
4308
- pattern: Zn(s)
4308
+ pattern: Qn(o)
4309
4309
  }), w = pt({
4310
4310
  name: "RowSeparator",
4311
- pattern: Zn(o)
4311
+ pattern: Qn(a)
4312
4312
  }), F = pt({
4313
4313
  name: "RangeOp",
4314
4314
  pattern: /:/
@@ -4333,10 +4333,10 @@ var jn = class extends $n {
4333
4333
  }), W = pt({
4334
4334
  name: "CloseCurlyParen",
4335
4335
  pattern: /}/
4336
- }), H = pt({
4336
+ }), V = pt({
4337
4337
  name: "QuoteS",
4338
4338
  pattern: /'/
4339
- }), V = pt({
4339
+ }), H = pt({
4340
4340
  name: "MulOp",
4341
4341
  pattern: /\*(?!\*)/
4342
4342
  }), Y = pt({
@@ -4351,10 +4351,10 @@ var jn = class extends $n {
4351
4351
  }), q = pt({
4352
4352
  name: "ImplicitIntersectOp",
4353
4353
  pattern: /@/
4354
- }), Z = pt({
4354
+ }), Q = pt({
4355
4355
  name: "ConcatOp",
4356
4356
  pattern: /&/
4357
- }), Q = pt({
4357
+ }), Z = pt({
4358
4358
  name: "ExOp",
4359
4359
  pattern: /\^/
4360
4360
  }), J = pt({
@@ -4363,7 +4363,7 @@ var jn = class extends $n {
4363
4363
  }), ee = pt({
4364
4364
  name: "ArrayAnchorOp",
4365
4365
  pattern: /#/,
4366
- longer_alt: [E, T]
4366
+ longer_alt: [E, g]
4367
4367
  }), te = pt({
4368
4368
  name: "GtOp",
4369
4369
  pattern: />/
@@ -4376,22 +4376,22 @@ var jn = class extends $n {
4376
4376
  }), re = [
4377
4377
  h,
4378
4378
  l,
4379
- R,
4380
4379
  A,
4381
- I,
4380
+ O,
4381
+ R,
4382
4382
  u,
4383
4383
  d,
4384
4384
  p,
4385
4385
  E,
4386
- T,
4386
+ g,
4387
4387
  b,
4388
- ...s !== r ? [U] : [],
4388
+ ...o !== s ? [U] : [],
4389
4389
  w,
4390
4390
  D,
4391
4391
  B,
4392
4392
  $,
4393
4393
  F,
4394
- L,
4394
+ N,
4395
4395
  M,
4396
4396
  S,
4397
4397
  C,
@@ -4400,18 +4400,18 @@ var jn = class extends $n {
4400
4400
  x,
4401
4401
  ee,
4402
4402
  q,
4403
- N,
4403
+ _,
4404
4404
  j,
4405
4405
  G,
4406
4406
  K,
4407
4407
  W,
4408
- H,
4409
4408
  V,
4409
+ H,
4410
4410
  Y,
4411
4411
  z,
4412
4412
  X,
4413
- Z,
4414
4413
  Q,
4414
+ Z,
4415
4415
  J,
4416
4416
  pt({
4417
4417
  name: "NeqOp",
@@ -4433,7 +4433,7 @@ var jn = class extends $n {
4433
4433
  const se = {};
4434
4434
  re.forEach((e) => {
4435
4435
  se[e.name] = e;
4436
- }), s === r && (se.ColSeparator = b), this._vocabulary = se;
4436
+ }), o === s && (se.ColSeparator = b), this._vocabulary = se;
4437
4437
  }
4438
4438
  tokenize(t, n = !0) {
4439
4439
  const i = this._lexer.tokenize(t);
@@ -4477,7 +4477,7 @@ var jn = class extends $n {
4477
4477
  ];
4478
4478
  for (let t = 127; t <= 65535; t++) e.push(t);
4479
4479
  return e;
4480
- })(), Hn = /* @__PURE__ */ new WeakMap(), Vn = 16384, Yn = 1048576;
4480
+ })(), Vn = /* @__PURE__ */ new WeakMap(), Hn = 16384, Yn = 1048576;
4481
4481
  function zn(e, t, n) {
4482
4482
  let i = 0;
4483
4483
  for (let r = t; r < n; r++) {
@@ -4529,13 +4529,13 @@ function qn(e, t) {
4529
4529
  return a < 1 || a > t ? null : [n.substring(i, r)];
4530
4530
  };
4531
4531
  }
4532
- function Zn(e) {
4532
+ function Qn(e) {
4533
4533
  return new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"));
4534
4534
  }
4535
- var Qn = class {
4536
- constructor(e = g) {
4535
+ var Zn = class {
4536
+ constructor(e = i) {
4537
4537
  const t = function(e) {
4538
- const t = [...s];
4538
+ const t = [...c];
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);
@@ -4545,16 +4545,16 @@ var Qn = class {
4545
4545
  name: "WhiteSpace",
4546
4546
  pattern: /\s+/,
4547
4547
  group: tt.SKIPPED
4548
- }), i = pt({
4548
+ }), r = pt({
4549
4549
  name: "TableSpecifier",
4550
4550
  pattern: new RegExp(`\\[#(?:${t})\\]`, "i")
4551
- }), r = [
4551
+ }), s = [
4552
4552
  n,
4553
- i,
4553
+ r,
4554
4554
  pt({
4555
4555
  name: "BracketedColumn",
4556
4556
  pattern: /\[(?:'['#[\]]|'(?!['#[\]])|[^'[\]])*\]/,
4557
- longer_alt: [i]
4557
+ longer_alt: [r]
4558
4558
  }),
4559
4559
  pt({
4560
4560
  name: "BareSpecifier",
@@ -4569,9 +4569,9 @@ var Qn = class {
4569
4569
  pattern: new RegExp(e.separators.separatorFunction.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"))
4570
4570
  })
4571
4571
  ];
4572
- this._lexer = new tt(r, { ensureOptimizations: !0 });
4572
+ this._lexer = new tt(s, { ensureOptimizations: !0 });
4573
4573
  const o = {};
4574
- r.forEach((e) => {
4574
+ s.forEach((e) => {
4575
4575
  o[e.name] = e;
4576
4576
  }), this._vocabulary = o;
4577
4577
  }
@@ -4582,53 +4582,53 @@ var Qn = class {
4582
4582
  return this._lexer.tokenize(e);
4583
4583
  }
4584
4584
  }, Jn = class extends jn {
4585
- constructor(e = g) {
4586
- const t = new Qn(e), n = t.getVocabulary();
4585
+ constructor(e = i) {
4586
+ const t = new Zn(e), n = t.getVocabulary();
4587
4587
  super(n, {
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: a, ColumnSep: c, ListSep: h } = n, l = this;
4594
+ l.RULE("ruleContent", () => {
4595
+ const e = [], t = l.SUBRULE(l.ruleItem);
4596
+ return l.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
+ }), l.MANY(() => {
4599
+ l.CONSUME(h), l.OPTION(() => {
4600
+ const t = l.SUBRULE2(l.ruleItem);
4601
+ l.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 = C(t.image, e);
4606
+ }), l.RULE("ruleItem", () => l.OR([{ ALT: () => l.SUBRULE(l.ruleSpecifier) }, { ALT: () => l.SUBRULE(l.ruleColumnOrRange) }])), l.RULE("ruleSpecifier", () => l.OR([{ ALT: () => {
4607
+ const t = l.CONSUME(r);
4608
+ return l.ACTION(() => {
4609
+ const n = o(t.image, e);
4610
4610
  return n.image = t.image, n;
4611
4611
  });
4612
4612
  } }, { ALT: () => {
4613
- const t = c.CONSUME(s);
4614
- return c.ACTION(() => {
4615
- const n = C(t.image, e);
4613
+ const t = l.CONSUME(a);
4614
+ return l.ACTION(() => {
4615
+ const n = o(t.image, e);
4616
4616
  return n.image = t.image, n;
4617
4617
  });
4618
- } }])), c.RULE("ruleColumnOrRange", () => {
4619
- const e = c.CONSUME(r);
4618
+ } }])), l.RULE("ruleColumnOrRange", () => {
4619
+ const e = l.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 = u(e.image);
4621
+ return l.OPTION(() => {
4622
+ t = l.CONSUME(c), n = l.CONSUME2(s);
4623
+ }), l.ACTION(() => {
4624
+ const i = C(e.image);
4625
4625
  if (i.image = e.image, !n) return i;
4626
- const r = u(n.image);
4626
+ const r = C(n.image);
4627
4627
  r.image = n.image;
4628
- const s = p(":", i, r, !0);
4628
+ const s = R(":", i, r, !0);
4629
4629
  return s.image = t?.image ?? ":", s;
4630
4630
  });
4631
- }), c.performSelfAnalysis();
4631
+ }), l.performSelfAnalysis();
4632
4632
  }
4633
4633
  _parseInner(e) {
4634
4634
  const t = this._lexer.tokenize(e);
@@ -4652,13 +4652,13 @@ var Qn = class {
4652
4652
  return e.image = "@", [e];
4653
4653
  }
4654
4654
  }
4655
- const n = u(e);
4655
+ const n = C(e);
4656
4656
  n.image = e;
4657
4657
  const i = f("@", n, !0);
4658
4658
  return i.image = "@", [i];
4659
4659
  }
4660
4660
  if ("[" !== n && "#" !== n) {
4661
- const t = u(e);
4661
+ const t = C(e);
4662
4662
  return t.image = e, [t];
4663
4663
  }
4664
4664
  return this._parseInner(t);
@@ -4694,7 +4694,7 @@ var Qn = class {
4694
4694
  ":."
4695
4695
  ]), ni = (e) => {
4696
4696
  if (!e) return null;
4697
- if (e.type === n.Cell) {
4697
+ if (e.type === O.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 s = e?.lexer ?? Gn.shared(e?.lexerOptions), c = s.getVocabulary();
4729
- super(c, {
4728
+ const t = e?.lexer ?? Gn.shared(e?.lexerOptions), i = t.getVocabulary();
4729
+ super(i, {
4730
4730
  skipValidations: !0,
4731
4731
  recoveryEnabled: !0,
4732
4732
  ...e,
@@ -4752,7 +4752,7 @@ var ai = {
4752
4752
  ])), f = {
4753
4753
  value: p,
4754
4754
  index: this.getLexerPosition(),
4755
- isRange: I.includes(p)
4755
+ isRange: A.includes(p)
4756
4756
  }, m = this.SUBRULE2(this._rulePostfixOp);
4757
4757
  d.push({
4758
4758
  op: f,
@@ -4760,15 +4760,15 @@ var ai = {
4760
4760
  });
4761
4761
  }), this.ACTION(() => {
4762
4762
  let e = d.length - 1;
4763
- const t = A.length;
4763
+ const t = p.length;
4764
4764
  for (let n = 0; e > 0 && n < t; n++) {
4765
- const t = A[n];
4765
+ const t = p[n];
4766
4766
  let i = 1;
4767
4767
  for (; i < d.length;) {
4768
4768
  const n = d[i].op;
4769
4769
  if (t.includes(n.value)) {
4770
4770
  const t = d[i - 1].node, r = d[i].node;
4771
- let s = p(n.value, t, r, n.isRange);
4771
+ let s = R(n.value, t, r, n.isRange);
4772
4772
  s = this._tag(s, n.index), d[i - 1].node = s, d.splice(i, 1), e--;
4773
4773
  } else i++;
4774
4774
  }
@@ -4789,8 +4789,8 @@ var ai = {
4789
4789
  }), this.ACTION(() => {
4790
4790
  const e = n.length;
4791
4791
  if (0 !== e) for (let i = 0; i < e; i++) {
4792
- const e = n[i], r = e[0], s = e[1], o = I.includes(r);
4793
- t = a(r, t, o), t = this._tag(t, s);
4792
+ const e = n[i], s = e[0], o = e[1], a = A.includes(s);
4793
+ t = r(s, t, a), t = this._tag(t, o);
4794
4794
  }
4795
4795
  }), t;
4796
4796
  }), this._rulePrefixOp = this.RULE("rulePrefixOp", () => {
@@ -4809,16 +4809,16 @@ 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 = I.includes(n);
4812
+ const e = i[t], n = e[0], s = e[1], o = A.includes(n);
4813
4813
  r = f(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: t, RangeTrimLeadingOp: n, RangeTrimTrailingOp: i, 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 r = {
4822
4822
  value: this.OR(this._c2 || (this._c2 = [
4823
4823
  { ALT: () => this.CONSUME(e).image },
4824
4824
  { ALT: () => this.CONSUME(t).image },
@@ -4827,30 +4827,30 @@ var ai = {
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: r,
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(p(":", 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];
4843
+ for (let e = 1; e < o.length; e++) {
4844
+ const t = o[e];
4845
4845
  if (void 0 !== t.anchor) {
4846
- s[0].node = this._tag(a("#", s[0].node, !0), t.anchor);
4846
+ o[0].node = this._tag(r("#", o[0].node, !0), t.anchor);
4847
4847
  continue;
4848
4848
  }
4849
4849
  const n = t.op;
4850
- let i = p(n.value, s[0].node, t.node, !0);
4851
- i = this._tag(i, n.index), s[0].node = i;
4850
+ let i = R(n.value, o[0].node, t.node, !0);
4851
+ i = this._tag(i, n.index), o[0].node = i;
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
4856
  let n = this.SUBRULE(this._ruleFormula);
@@ -4861,7 +4861,7 @@ var ai = {
4861
4861
  },
4862
4862
  DEF: () => {
4863
4863
  this.CONSUME(e);
4864
- const i = this.getLexerPosition(), r = this.SUBRULE(this._ruleFunctionArguments), s = n, o = this.ACTION(() => this._tag(S(s, r), i)), a = this.OPTION(() => this.CONSUME(t));
4864
+ const i = this.getLexerPosition(), r = this.SUBRULE(this._ruleFunctionArguments), s = n, o = this.ACTION(() => this._tag(d(s, r), i)), a = this.OPTION(() => this.CONSUME(t));
4865
4865
  this.ACTION(() => {
4866
4866
  a || this._reportError(o, "Missing closing parenthesis ')'", i), this._tagClose(o, this.getLexerPosition()), n = o;
4867
4867
  });
@@ -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 = p(" ", 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(n.Paren, e, t);
4916
+ return this._processParen(O.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 = E();
4919
+ let r = v();
4920
4920
  this.CONSUME(e);
4921
4921
  const s = this.getLexerPosition();
4922
- let o = this.ACTION(() => this._tag(R(r), s));
4922
+ let o = this.ACTION(() => this._tag(l(r), s));
4923
4923
  const a = this.SUBRULE(this._ruleLiteralForArray);
4924
4924
  this.ACTION(() => {
4925
4925
  r.value.push(a);
@@ -4930,17 +4930,17 @@ var ai = {
4930
4930
  } }, { ALT: () => this.CONSUME(i) }]);
4931
4931
  const t = this.SUBRULE2(this._ruleLiteralForArray);
4932
4932
  this.ACTION(() => {
4933
- e || (r = E(), o.value.push(r)), r.value.push(t);
4933
+ e || (r = v(), o.value.push(r)), r.value.push(t);
4934
4934
  });
4935
4935
  });
4936
4936
  const c = this.OPTION(() => this.CONSUME(t));
4937
4937
  return o = this.ACTION(() => (c || this._reportError(o, "Missing closing parenthesis '}'", s), this._tagClose(o, this.getLexerPosition()))), o;
4938
4938
  }), this._ruleLiteralForArray = this.RULE("ruleLiteralForArray", () => {
4939
- const { StringToken: e, BooleanToken: t, LiteralError: n, RefError: i } = this._vocab;
4939
+ const { StringToken: e, BooleanToken: t, LiteralError: i, RefError: r } = 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(L(t.image, this._locale), this.getLexerPosition()));
4943
- return this.ACTION(() => e ? v(e.image, n) : n);
4942
+ const e = this.OPTION(() => this.SUBRULE(this._rulePlusMinusOp)), t = this.SUBRULE(this._ruleNumber), n = this.ACTION(() => this._tag(h(t.image, this._locale), this.getLexerPosition()));
4943
+ return this.ACTION(() => e ? E(e.image, n) : n);
4944
4944
  } },
4945
4945
  { ALT: () => {
4946
4946
  const t = this.CONSUME(e);
@@ -4948,23 +4948,23 @@ var ai = {
4948
4948
  } },
4949
4949
  { ALT: () => {
4950
4950
  const e = this.CONSUME(t);
4951
- return this.ACTION(() => this._tag(N(e.image, this._locale), this.getLexerPosition()));
4951
+ return this.ACTION(() => this._tag(n(e.image, this._locale), this.getLexerPosition()));
4952
4952
  } },
4953
4953
  { ALT: () => {
4954
- const e = this.CONSUME(n);
4955
- return this.ACTION(() => this._tag(k(e.image, this._locale), this.getLexerPosition()));
4954
+ const e = this.CONSUME(i);
4955
+ return this.ACTION(() => this._tag(y(e.image, this._locale), this.getLexerPosition()));
4956
4956
  } },
4957
4957
  { ALT: () => {
4958
- const e = this.CONSUME(i);
4959
- return this.ACTION(() => this._tag(o(e.image, this._locale), this.getLexerPosition()));
4958
+ const e = this.CONSUME(r);
4959
+ return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
4960
4960
  } }
4961
4961
  ]);
4962
4962
  }), this._ruleLiteral = this.RULE("ruleLiteral", () => {
4963
- const { StringToken: e, BooleanToken: t, LiteralError: n, RefError: i } = this._vocab;
4963
+ const { StringToken: e, BooleanToken: t, LiteralError: i, RefError: r } = this._vocab;
4964
4964
  return this.OR([
4965
4965
  { ALT: () => {
4966
4966
  const e = this.SUBRULE(this._ruleNumber);
4967
- return this.ACTION(() => this._tag(L(e.image, this._locale), this.getLexerPosition()));
4967
+ return this.ACTION(() => this._tag(h(e.image, this._locale), this.getLexerPosition()));
4968
4968
  } },
4969
4969
  { ALT: () => {
4970
4970
  const t = this.CONSUME(e);
@@ -4972,24 +4972,24 @@ var ai = {
4972
4972
  } },
4973
4973
  { ALT: () => {
4974
4974
  const e = this.CONSUME(t);
4975
- return this.ACTION(() => this._tag(N(e.image, this._locale), this.getLexerPosition()));
4975
+ return this.ACTION(() => this._tag(n(e.image, this._locale), this.getLexerPosition()));
4976
4976
  } },
4977
4977
  { ALT: () => {
4978
- const e = this.CONSUME(n);
4979
- return this.ACTION(() => this._tag(k(e.image, this._locale), this.getLexerPosition()));
4978
+ const e = this.CONSUME(i);
4979
+ return this.ACTION(() => this._tag(y(e.image, this._locale), this.getLexerPosition()));
4980
4980
  } },
4981
4981
  { ALT: () => {
4982
- const e = this.CONSUME(i);
4983
- return this.ACTION(() => this._tag(o(e.image, this._locale), this.getLexerPosition()));
4982
+ const e = this.CONSUME(r);
4983
+ return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
4984
4984
  } }
4985
4985
  ]);
4986
4986
  }), this._ruleFunction = this.RULE("ruleFunction", () => {
4987
- const { FunctionToken: e, OpenParen: n, CloseParen: i } = this._vocab, r = this.CONSUME(e).image, s = this.getLexerPosition();
4988
- this.CONSUME(n);
4989
- const o = this.SUBRULE(this._ruleFunctionArguments);
4990
- let a = this.ACTION(() => this._tag(t(r, o), s));
4991
- const c = this.OPTION(() => this.CONSUME(i));
4992
- return a = this.ACTION(() => (c || this._reportError(a, "Missing closing parenthesis ')'", s), this._tagClose(a, this.getLexerPosition()))), a;
4987
+ const { FunctionToken: e, OpenParen: t, CloseParen: n } = this._vocab, i = this.CONSUME(e).image, r = this.getLexerPosition();
4988
+ this.CONSUME(t);
4989
+ const s = this.SUBRULE(this._ruleFunctionArguments);
4990
+ let o = this.ACTION(() => this._tag(N(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;
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(y(), this.getLexerPosition())), n.push(t), this.MANY(() => {
5001
+ }), t = this.ACTION(() => t ?? this._tagClose(k(), 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(y(), this.getLexerPosition())), n.push(t);
5005
+ }), t = this.ACTION(() => t ?? this._tagClose(k(), 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: t, DivOp: s, MulOp: a, PlusOp: c, MinOp: h, ArgSeparator: u, Cell: p, NamedToken: f, SingleQuotedString: m, Column: E, AbsRow: T, DigitToken: g, RefError: O } = this._vocab;
5025
- let A, R;
5024
+ const { Sheet: e, SheetQuoted: t, DivOp: n, MulOp: i, PlusOp: r, MinOp: o, ArgSeparator: c, Cell: h, NamedToken: l, SingleQuotedString: d, Column: p, AbsRow: f, DigitToken: m, RefError: E } = this._vocab;
5025
+ let T, A;
5026
5026
  this.OPTION2({
5027
5027
  GATE: () => {
5028
- for (let n = 1; n < 6; n++) {
5029
- const i = this.LA(n);
5030
- if (i.tokenType === e || i.tokenType === t) return !0;
5031
- if ("" === i.image || ")" === i.image || i.tokenType === s || i.tokenType === a || i.tokenType === c || i.tokenType === h || i.tokenType === u) break;
5028
+ for (let s = 1; s < 6; s++) {
5029
+ const a = this.LA(s);
5030
+ if (a.tokenType === e || a.tokenType === t) return !0;
5031
+ if ("" === a.image || ")" === a.image || a.tokenType === n || a.tokenType === i || a.tokenType === r || a.tokenType === o || a.tokenType === c) break;
5032
5032
  }
5033
5033
  return !1;
5034
5034
  },
5035
5035
  DEF: () => {
5036
- R = this.getLexerPosition() + 1, A = this.SUBRULE(this._rulePrefixSheetName);
5036
+ A = this.getLexerPosition() + 1, T = this.SUBRULE(this._rulePrefixSheetName);
5037
5037
  }
5038
5038
  });
5039
- let I = this.OR([
5039
+ let R = this.OR([
5040
5040
  { ALT: () => {
5041
- const e = this.CONSUME(p), t = this.getLexerPosition();
5042
- return this.ACTION(() => this._tag(r(e.image, this.rowIndex, this.colIndex), t));
5041
+ const e = this.CONSUME(h), t = this.getLexerPosition();
5042
+ return this.ACTION(() => this._tag(a(e.image, this.rowIndex, this.colIndex), t));
5043
5043
  } },
5044
5044
  { ALT: () => {
5045
- const e = this.OR2([{ ALT: () => this.CONSUME(f) }, { ALT: () => this.CONSUME(m) }]);
5046
- return this.ACTION(() => this._tag(d(e.image), this.getLexerPosition()));
5045
+ const e = this.OR2([{ ALT: () => this.CONSUME(l) }, { ALT: () => this.CONSUME(d) }]);
5046
+ return this.ACTION(() => this._tag(g(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(E);
5052
- return this.ACTION(() => this._tag(i(e.image, this.colIndex), this.getLexerPosition()));
5051
+ const e = this.CONSUME(p);
5052
+ return this.ACTION(() => this._tag(s(e.image, this.colIndex), this.getLexerPosition()));
5053
5053
  } },
5054
5054
  { ALT: () => {
5055
- const e = this.CONSUME(T);
5056
- return this.ACTION(() => this._tag(l(e.image, this.rowIndex), this.getLexerPosition()));
5055
+ const e = this.CONSUME(f);
5056
+ return this.ACTION(() => this._tag(u(e.image, this.rowIndex), this.getLexerPosition()));
5057
5057
  } },
5058
5058
  { ALT: () => {
5059
- const e = this.CONSUME(g);
5060
- return this.ACTION(() => this._tag(l(e.image, this.rowIndex), this.getLexerPosition()));
5059
+ const e = this.CONSUME(m);
5060
+ return this.ACTION(() => this._tag(u(e.image, this.rowIndex), this.getLexerPosition()));
5061
5061
  } },
5062
5062
  { ALT: () => {
5063
- const e = this.CONSUME(O);
5064
- return this.ACTION(() => this._tag(o(e.image, this._locale), this.getLexerPosition()));
5063
+ const e = this.CONSUME(E);
5064
+ return this.ACTION(() => this._tag(I(e.image, this._locale), this.getLexerPosition()));
5065
5065
  } }
5066
5066
  ]);
5067
5067
  return this.ACTION(() => {
5068
- if (A && I) {
5069
- if ("" === A.name) return void this._reportError(I, `'${A.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
5070
- let e = I;
5071
- if (I.type === n.Postfix && I.inputs?.[0] && (e = I.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 = A.name, e.value.scopeImage = A.image;
5068
+ if (T && R) {
5069
+ if ("" === T.name) return void this._reportError(R, `'${T.image}' is not a valid sheet reference — a '!' needs a sheet name before it`);
5070
+ let e = R;
5071
+ if (R.type === O.Postfix && R.inputs?.[0] && (e = R.inputs[0]), e.type === O.Cell || e.type === O.Named || e.type === O.Row || e.type === O.TableColumn || e.type === O.Error) {
5072
+ e.value.scope = T.name, e.value.scopeImage = T.image;
5073
5073
  const t = this._tokenMap.get(e);
5074
- t && void 0 !== R && (t.tokenIndex = R);
5074
+ t && void 0 !== A && (t.tokenIndex = A);
5075
5075
  }
5076
5076
  }
5077
- }), I;
5077
+ }), R;
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: () => {
@@ -5110,47 +5110,47 @@ var ai = {
5110
5110
  { ALT: () => this.CONSUME(n) }
5111
5111
  ]);
5112
5112
  }), this._ruleRoot = this.RULE("ruleRoot", () => {
5113
- const { ArgSeparator: e } = this._vocab, t = this.SUBRULE(this._ruleIntersectOp), i = [];
5113
+ const { ArgSeparator: e } = this._vocab, t = this.SUBRULE(this._ruleIntersectOp), n = [];
5114
5114
  return this.MANY(() => {
5115
- this.CONSUME(e), i.push(this.SUBRULE2(this._ruleIntersectOp));
5116
- }), this.ACTION(() => 0 === i.length ? t : {
5117
- type: n.List,
5115
+ this.CONSUME(e), n.push(this.SUBRULE2(this._ruleIntersectOp));
5116
+ }), this.ACTION(() => 0 === n.length ? t : {
5117
+ type: O.List,
5118
5118
  value: ",",
5119
- inputs: [t, ...i],
5119
+ inputs: [t, ...n],
5120
5120
  isReference: !0
5121
5121
  });
5122
- }), this._lexer = s, this._locale = s.getLocale(), this._vocab = c, this._srParser = e?.srParser ?? new Jn(this._locale), this.performSelfAnalysis();
5122
+ }), this._lexer = t, this._locale = t.getLocale(), this._vocab = i, 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, i, r) {
5127
+ parse(n, i, r) {
5128
5128
  const s = this._lexer.tokenize(r);
5129
5129
  let o;
5130
5130
  if (!s) return {
5131
5131
  root: {
5132
- type: n.Unparsed,
5132
+ type: O.Unparsed,
5133
5133
  value: r
5134
5134
  },
5135
5135
  errors: []
5136
5136
  };
5137
5137
  const a = s.tokens;
5138
5138
  if (0 === a.length) throw new e.Parse(ri);
5139
- return this.input = a, this._inputText = r, this._inputTextLength = r.length, this.rowIndex = t, this.colIndex = i, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), o = this._ruleRoot(), o && this._bindAllWhitespace(o), o = T(o, (e, i) => {
5140
- const r = e.type, s = i?.isReference ? i.value : void 0, o = "string" == typeof s && ei.has(s), a = "string" == typeof s && ti.has(s), c = o ? i.inputs : void 0, u = c ? c[0] === e ? c[1] : c[0] : void 0, p = this._lexer.getMaxRow();
5141
- if (o && r !== n.Cell && Number.isInteger(e.value)) {
5142
- const n = l(e.image, t);
5143
- return h(n, e), "row" !== ni(u) ? 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, p) || this._reportError(n, `'${e.image}' is not a valid row — rows run from 1 to ${p}`), n;
5139
+ return this.input = a, this._inputText = r, this._inputTextLength = r.length, this.rowIndex = n, this.colIndex = i, this._astErrors = [], this._tokenMap = /* @__PURE__ */ new Map(), this.reset(), o = this._ruleRoot(), o && this._bindAllWhitespace(o), o = S(o, (e, i) => {
5140
+ const r = e.type, s = i?.isReference ? i.value : void 0, o = "string" == typeof s && ei.has(s), a = "string" == typeof s && ti.has(s), c = o ? i.inputs : void 0, h = c ? c[0] === e ? c[1] : c[0] : void 0, l = this._lexer.getMaxRow();
5141
+ if (o && r !== O.Cell && Number.isInteger(e.value)) {
5142
+ const i = u(e.image, n);
5143
+ return t(i, e), "row" !== ni(h) ? this._reportError(i, `'${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(i, `'${e.image}' is not a valid row — rows run from 1 to ${l}`), i;
5144
5144
  }
5145
- if (a && r === n.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 === 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(u) === (n ? "row" : "col")) return n && !ii(e.image, p) && this._reportError(e, `'${e.image}' is not a valid row — rows run from 1 to ${p}`), e;
5149
- if (n || i || t.colIndex >= 16384) {
5150
- const r = d(e.image);
5151
- h(r, e);
5152
- const o = t.scope;
5153
- return o && (r.value.scope = o, r.value.scopeImage = t.scopeImage), n ? this._reportError(r, `'${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(r, `'${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(r, `'${e.image}' is a name — '${s}' needs a cell or range on both sides`), r;
5145
+ if (a && r === O.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 === O.Cell) {
5147
+ const n = e.value, i = n.colIndex === Number.MIN_SAFE_INTEGER, r = n.rowIndex === Number.MIN_SAFE_INTEGER;
5148
+ if ((i || r) && ni(h) === (i ? "row" : "col")) return i && !ii(e.image, l) && this._reportError(e, `'${e.image}' is not a valid row — rows run from 1 to ${l}`), e;
5149
+ if (i || r || n.colIndex >= 16384) {
5150
+ const o = g(e.image);
5151
+ t(o, e);
5152
+ const c = n.scope;
5153
+ return c && (o.value.scope = c, o.value.scopeImage = n.scopeImage), i ? 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})`) : a && this._reportError(o, `'${e.image}' is a name — '${s}' needs a cell or range on both sides`), o;
5154
5154
  }
5155
5155
  }
5156
5156
  return e;
@@ -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 === n.Array && Array.isArray(e.value)) {
5214
+ if (e.type === O.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
  }