@sheetxl/studio-vanilla 0.8.0-beta.6 → 0.8.0-beta.9

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 (375) hide show
  1. package/browser/cjs/{pWgqqjBa4jIrxyvw.cjs → 1bLr8XHpEtM2MjCk.cjs} +1 -1
  2. package/browser/cjs/71t68tthCqAyqS9Y2.cjs +1 -0
  3. package/browser/cjs/9zyLp_qEwt9GphA82.cjs +1 -0
  4. package/browser/cjs/B0bpKoi26UcJy-yx2.cjs +1 -0
  5. package/browser/cjs/B7gx_G60ELU_MwHQ.cjs +3 -0
  6. package/browser/cjs/{DcpQZyU6Dg7WiWza2.cjs → B8k2Nobs3xsYk1La2.cjs} +1 -1
  7. package/browser/cjs/{Dnnr8nzAEuAjhOeE.cjs → BBev0dLbf1fU-lfA.cjs} +1 -1
  8. package/browser/cjs/{vjMDGGRVqaFnYj5r2.cjs → BLm90Fq3PHyJcuuD2.cjs} +1 -1
  9. package/browser/cjs/BMUUPjFWJpJ0LI3i.cjs +6 -0
  10. package/browser/cjs/{C6LCqtqoz6Kag2h42.cjs → BOEw2nlucWPfxCYp2.cjs} +1 -1
  11. package/browser/cjs/BOVrNOPvNrCm6yRB.cjs +44 -0
  12. package/browser/cjs/BPtsVWnUZPVQBm21.cjs +22 -0
  13. package/browser/cjs/{D9hGhZ8wId9qKZlT.cjs → BRRCf1dPEVEMuZg_.cjs} +1 -1
  14. package/browser/cjs/{B4VCKO11wngJjEO92.cjs → BWMBI4f0SjoI_Oin2.cjs} +1 -1
  15. package/browser/cjs/BaC5cgF10fBwJBaK.cjs +3 -0
  16. package/browser/cjs/{CMOeL2fuTqmW07BD.cjs → Be1L2JmTBCRa52VW.cjs} +650 -694
  17. package/browser/cjs/{9A9bktS1huVGPy37.cjs → BfSQzdZII1qouGSA.cjs} +1 -1
  18. package/browser/cjs/Bks6NqUor4BlAszo2.cjs +1 -0
  19. package/browser/cjs/{Df-fdT9Ac1c258zN.cjs → BlqNnPvPXlfr1uiQ.cjs} +1 -1
  20. package/browser/cjs/Brhq9xC0-0nktknO2.cjs +1 -0
  21. package/browser/cjs/{CZSCuGkDSx0WPqjF.cjs → BzZ4-FYClxQ8ujtx.cjs} +1 -1
  22. package/browser/cjs/C5ysAU-f5AXrrCUy2.cjs +1 -0
  23. package/browser/cjs/C60FQCTpuPODGMns2.cjs +1 -0
  24. package/browser/cjs/{Xd62BMjBfdi9qJzV.cjs → CAlhyBtLwTQbCNjD.cjs} +1 -1
  25. package/browser/cjs/{eCs1q0PICk1snU-12.cjs → CMr_-nDgsJMujQie2.cjs} +1 -1
  26. package/browser/cjs/COX7Y3Wht4v_4upT2.cjs +1 -0
  27. package/browser/cjs/{B1yQqy3iSI5uZPt3.cjs → CW6uYgYnFALF8Wep.cjs} +1 -1
  28. package/browser/cjs/{6V1LlorEUj_nSWnU.cjs → CZTLmhvlTal7rnXb2.cjs} +1 -1
  29. package/browser/cjs/Cs08_432tXlhmIvU.cjs +90 -0
  30. package/browser/cjs/{DFfYZJqlytuKuwBJ.cjs → D0OGlOZBsNUXBigZ.cjs} +1 -1
  31. package/browser/cjs/{CCJvU8Lb84A0y65M.cjs → D1q4dPaaoZjeLyfe.cjs} +1 -1
  32. package/browser/cjs/D7mCXmc268F393wh2.cjs +8 -0
  33. package/browser/cjs/{KMBs7XyoINajcR-L2.cjs → DCOqoH-T4Ux_1dQj2.cjs} +1 -1
  34. package/browser/cjs/{BDkTCsmZyozmgWz4.cjs → DDPnnW8pKC_2zw9B.cjs} +3 -3
  35. package/browser/cjs/DEeKo15ZqUcmFDOr2.cjs +1 -0
  36. package/browser/cjs/DHkk0JkwMtD44kS3.cjs +1 -0
  37. package/browser/cjs/{BUm56uGV9gjkjukY.cjs → DHqatAcjRnNrazeD.cjs} +1 -1
  38. package/browser/cjs/{CRe8XsjS3Z5BTMZY.cjs → DKZA4pMye4Pmg1RA.cjs} +1 -1
  39. package/browser/cjs/DLAAtKRVBbSpGhxl.cjs +1 -0
  40. package/browser/cjs/{DUCViiS92Z2CCWkA2.cjs → DToMNH3wGi3n2uzu2.cjs} +1 -1
  41. package/browser/cjs/DZjJnyrLugwcGEp_.cjs +1 -0
  42. package/browser/cjs/{Csx2sg-1yBljNBbj.cjs → DfEVusmtxqWAEEiY.cjs} +1 -1
  43. package/browser/cjs/DfFRdD4_C7I-6yMX.cjs +30 -0
  44. package/browser/cjs/Dki3Dmf6EPdM8LlM.cjs +6 -0
  45. package/browser/cjs/DkmumL9n_dH_hGQM.cjs +15 -0
  46. package/browser/cjs/Dl78hBFh7yqtDkqK.cjs +1 -0
  47. package/browser/cjs/{BbXbe-bwCJLD279F.cjs → DmLfFV_n8G4X8mrz.cjs} +1 -1
  48. package/browser/cjs/{D-8fngmgZJyw1BQz2.cjs → DqPfiDmZbBXEaCP_2.cjs} +1 -1
  49. package/browser/cjs/DsXQ2l8FnovrZHUY.cjs +1 -0
  50. package/browser/cjs/{CiJ7AoUXfIEucqrd.cjs → Dw0B6dMDxbb1xfgd.cjs} +1 -1
  51. package/browser/cjs/Dx79LP1-YCQg8B872.cjs +1 -0
  52. package/browser/cjs/{BnXCqfKX491kQrtl.cjs → Dyh_1aZCy-1UzCsZ.cjs} +1 -1
  53. package/browser/cjs/GYpazpfoUjLOoCiK.cjs +1 -0
  54. package/browser/cjs/{BmdFT-Ie0SY8YqFf.cjs → On1UFwmi1jBdIPHA.cjs} +2 -2
  55. package/browser/cjs/{BkTSml2am1P7ZUlu2.cjs → VzSM9peK6m7Un51q2.cjs} +1 -1
  56. package/browser/cjs/YXZX8u8UAJjC65if2.cjs +1 -0
  57. package/browser/cjs/index.cjs +1 -1
  58. package/browser/cjs/ukoyeeBQoyNfdkag.cjs +32 -0
  59. package/browser/cjs/xuAfpHmA2W4MFa_0.cjs +1 -0
  60. package/browser/cjs/yWKtR8OoFhtOqU0C.cjs +2 -0
  61. package/{cdn/assets/BH_TN28AGDJoWsiz.js → browser/esm/0aKGd26gK-kyYQpJ.mjs} +2 -2
  62. package/browser/esm/{DlZq7EB3pYTCoBZR2.mjs → 1YNqnAQLBD6Rbh-J2.mjs} +1 -1
  63. package/browser/esm/{Do4OOIYh99i3VXc5.mjs → 2F7YZkGv5ARgpyZp.mjs} +1 -1
  64. package/browser/esm/{C2Mtau_YqokRY_Xs.mjs → 2wA_KrUFQ1jrFBd9.mjs} +80 -79
  65. package/browser/esm/{DadeKQvFAZsAqr0O2.mjs → 33yirHl3UNk6hI0k.mjs} +2 -2
  66. package/browser/esm/{DadeKQvFAZsAqr0O.mjs → 33yirHl3UNk6hI0k2.mjs} +2 -2
  67. package/{cdn/assets/BXlBCVkeDEYvDBJB.js → browser/esm/4Ah98p4lGiqrlbx6.mjs} +1 -1
  68. package/browser/esm/{wr5fEooS-ldJhkIW.mjs → B6hXpbUeJ5Oyyttd.mjs} +7455 -6974
  69. package/{cdn/assets/Cum9BHrpjoznUf1x.js → browser/esm/BCGMvpUPFTYcKGbk.mjs} +1 -1
  70. package/browser/esm/{iaMUH1DY_mh9eilR2.mjs → BFrhIhjN1UwpjBcV2.mjs} +12 -12
  71. package/{cdn/assets/B2bYjv0KEa2vjuau2.js → browser/esm/BFv3n-8UY0C32OsF2.mjs} +1 -1
  72. package/browser/esm/{CnMODHX8BiX4JiLR.mjs → BGgqNYvM_RAz4jrA.mjs} +3 -3
  73. package/browser/esm/{Bo5_yVXoppQHxkAs.mjs → BSyEOmiRvJDj0_4_2.mjs} +1 -1
  74. package/browser/esm/{0oEGfdAHhaLHKSti.mjs → BT_Wxatn8mtmQ5qD.mjs} +1 -1
  75. package/browser/esm/{CDelk7_2mgy_puiR.mjs → BU7mp3uhAKScJeIR.mjs} +11 -11
  76. package/browser/esm/{BcdW5Jtz-XtqlpNg2.mjs → BV4Vqj3NFgB6gT0a2.mjs} +88 -88
  77. package/browser/esm/{clnF8RB-rpJTNpPY2.mjs → BVJrNnBCgG9jP7JN2.mjs} +7 -7
  78. package/browser/esm/{CRCjjm1HOTdtQ62k.mjs → BWpXJ2OCAVkNOxJs.mjs} +5 -5
  79. package/browser/esm/{D3X5GNunddfnKs212.mjs → BXBYzUCo-8Y2kvih.mjs} +1 -1
  80. package/browser/esm/{BGFPUYyanO54TIB42.mjs → BZ860rgIJYeM_mZk2.mjs} +10 -10
  81. package/browser/esm/{DTJrlUtokRNyzKgl.mjs → BZKWCpLfrzdLKWH3.mjs} +12 -12
  82. package/browser/esm/{D8IjVu2OXXsBZUqt2.mjs → Ba8XCzy9ufDNa_mw.mjs} +1 -1
  83. package/browser/esm/{DfsFfH7JQJvdJWFk2.mjs → BcaaTjcuVt3Oji-Y2.mjs} +17 -17
  84. package/browser/esm/{BDn_jC98FsiXZwGr2.mjs → Beb-71pldLN9-lkZ2.mjs} +1 -1
  85. package/browser/esm/{DbqBX9ozs-Ibg67w.mjs → Bh63JoX4eBlOHfnf.mjs} +5 -5
  86. package/browser/esm/{CP--voqAl30cGmBl2.mjs → Biy4xNo0ds01Jy6T2.mjs} +7 -7
  87. package/browser/esm/{DDA9KIxPv8iiAvvy2.mjs → BjcfDORFDLJVCh9M2.mjs} +1 -1
  88. package/browser/esm/{Tg2o581Nj1mxbygb.mjs → BnzryntYV2vpXfKO.mjs} +3 -3
  89. package/browser/esm/{4UIqAp3dgLTz_jQl2.mjs → BoWxoDcx70L4pgIG2.mjs} +1 -1
  90. package/browser/esm/{DEhdjB_Iw2iMcmZh2.mjs → BouasW9i4KF5ayiD2.mjs} +2 -2
  91. package/browser/esm/{BCECU4i5lxfS0Udy.mjs → BpSYpeutbljnZDCG.mjs} +1 -1
  92. package/{cdn/assets/Bis-2jH6YBF6g66T2.js → browser/esm/Bsfmz9sSNYL1bur2.mjs} +1 -1
  93. package/browser/esm/{4CqOm3frZRd9UZP4.mjs → BuZnLC96IH7EKmDo.mjs} +2 -2
  94. package/browser/esm/{Bhz4-fERBAhVf8ze.mjs → BwpeFsNLJ6sOyg-V.mjs} +1 -1
  95. package/browser/esm/{D1n9gH9C8i-si_ty2.mjs → ByGJD0lWglnYtMOB2.mjs} +9 -9
  96. package/{cdn/assets/CBrZYomkgb7qvYFr2.js → browser/esm/Byeb25yVhxGAjZjs.mjs} +2 -2
  97. package/{cdn/assets/DUGWe5q5hsRZixNX2.js → browser/esm/Bzbxw_NHYqY5MOhk2.mjs} +1 -1
  98. package/browser/esm/{DNvbB1BNwBuI3ZDp.mjs → C-5IXNwUVn75K6U_.mjs} +8 -8
  99. package/browser/esm/{C_VwHa0tEc_OcSRF2.mjs → C-_7D2KLIoDlB5ZW2.mjs} +1 -1
  100. package/browser/esm/{DNTtMdjOWrGcqQGh.mjs → C1qj_93tElwUAeIR.mjs} +112 -111
  101. package/{cdn/assets/B-_shlNzdU5vK6-F.js → browser/esm/C6kRIEgNpvwokXS62.mjs} +1 -1
  102. package/browser/esm/{DqCCvSVY6MZWH0Z3.mjs → C8_izylh6h0mCmn0.mjs} +243 -239
  103. package/browser/esm/{ChAYrf_SM2XZlpZ9.mjs → C8rk3b1et4kn4nmh.mjs} +10 -10
  104. package/browser/esm/{BGp2qrSP8wpHTmzp2.mjs → CBC4DPaH9zC8bgtR2.mjs} +5 -5
  105. package/browser/esm/{CCAmUEfkNvVwKNOo2.mjs → CBHMqMbfHpto8A1O2.mjs} +1 -1
  106. package/browser/esm/{EIHzG71M5NOvWayY.mjs → CFw_lEfCjWsjFmod.mjs} +8 -8
  107. package/browser/esm/{zW5-tVai7f63Nz_O.mjs → CI2gMVZhmhMTMxzw.mjs} +7307 -5043
  108. package/browser/esm/{zvbdtZ85j__-6Pqt2.mjs → CK37hazurRQUhGh82.mjs} +11 -11
  109. package/browser/esm/{CRD6T2pongEp74eX.mjs → CL6HRP8ocSnYryNh.mjs} +4 -4
  110. package/browser/esm/{BE7zDEWoGoldNMWX2.mjs → CNanescYL9L5uras2.mjs} +2 -2
  111. package/browser/esm/{DZZ6PVue8DUBcarK2.mjs → CQBwlTSXDAUWu4W9.mjs} +1 -1
  112. package/browser/esm/{XR6551Psdm-EtuN0.mjs → CQWSMhxAOeTXp9Kx2.mjs} +2 -2
  113. package/browser/esm/{Bx_8Vgu2B9rmr3So.mjs → CQyt-UVizZgazLy5.mjs} +1 -1
  114. package/browser/esm/{CBXVfpoYV_x0IHcp.mjs → CRFwpUUcSI_tqcjz.mjs} +2 -2
  115. package/{cdn/assets/Dg79tbN27bDhGeRt.js → browser/esm/CXgg3tQvJDJO6SSm2.mjs} +1 -1
  116. package/browser/esm/{Cw3vteUwx6OB-6Iy.mjs → C_0vyfGPMnLDdlSb.mjs} +1 -1
  117. package/{cdn/assets/OPJN-aKuq0geLnJ8.js → browser/esm/Cag5TarcS7KgHsRo2.mjs} +1 -1
  118. package/browser/esm/{BiSNhmfge2gLrdUM.mjs → CfdMPj-NygDGMh04.mjs} +3 -3
  119. package/{cdn/assets/COLxuIHK4CwKSCmM.js → browser/esm/CgddS2k-SBQbGu-q.mjs} +1 -1
  120. package/browser/esm/{C0vo8lE4bLKFYxkh2.mjs → ChMJWEuVIDRtM4F-2.mjs} +1 -1
  121. package/{cdn/assets/AlSePay9xNV3_6bb2.js → browser/esm/CiwAp4s68xfZm7za2.mjs} +1 -1
  122. package/browser/esm/ClKovUJdtYnSDXcU.mjs +2298 -0
  123. package/browser/esm/{CCauT418WamqPMCO2.mjs → CmbsN81GDpmY3RPO.mjs} +1 -1
  124. package/browser/esm/{DJt8usFidNohlcHI.mjs → Cn4jB4Paw7SdIEXJ.mjs} +1 -1
  125. package/browser/esm/{KwY2kcMBX2jKweTI.mjs → CnGCJJ5xiRobAWcX.mjs} +13 -12
  126. package/browser/esm/{DGsj2g4x9odoy93a.mjs → CoVIoxu1xnlKd2HA2.mjs} +1 -1
  127. package/{cdn/assets/DJ1m0LQ8vRMX16Tx2.js → browser/esm/Cp2HULnAKhE-UPLK.mjs} +846 -826
  128. package/browser/esm/CpHxcPS-3EVZkuEF.mjs +87 -0
  129. package/browser/esm/{i3SHwvlGdsJN8P5k.mjs → CpWlrwsyFr5LDXzk.mjs} +1 -1
  130. package/browser/esm/{B_bAeABEjj7U2zzq.mjs → CshbEuB1T3tTBKsg.mjs} +41 -51
  131. package/browser/esm/{B89OWCXpyImxK0eb2.mjs → CvzmHqRHrWQRXCU4.mjs} +1 -1
  132. package/{cdn/assets/D_0WWqsqXJL1liYE.js → browser/esm/CwRejmwDTGehmz3r.mjs} +3 -3
  133. package/browser/esm/{BYk8t-CVbU8h5jS6.mjs → CzCX-Wad3yMcEHob.mjs} +1 -1
  134. package/browser/esm/{Q53pq80r1Yi_tt2g2.mjs → D1Jl06sXpn8zZgdb2.mjs} +11 -11
  135. package/browser/esm/{CuV98lDmbEhW59Ae2.mjs → D1jTquzDJ_dOLWn32.mjs} +1352 -1622
  136. package/{cdn/assets/CZQe_58fmtS0SgdD2.js → browser/esm/D1rCmgzPQzy6VXMS.mjs} +1 -1
  137. package/browser/esm/{CNYIGTIynWaiXpHk2.mjs → D2Fopvel0AE5OMJ82.mjs} +18 -18
  138. package/{cdn/assets/D94ChP2mwu_ThODV.js → browser/esm/D70qxLxD0ZWgLmBs2.mjs} +1 -1
  139. package/{cdn/assets/CiKHaK_kIAhKfCdO2.js → browser/esm/DBYgTlTpZKZGoP3J.mjs} +1 -1
  140. package/{cdn/assets/B7DAcnxzPv0cz6GS2.js → browser/esm/DFQANFiqOXXHBhY6.mjs} +1 -1
  141. package/{cdn/assets/CIT0V8cmnyP4zirK2.js → browser/esm/DGb0H5-84FuMTt7D.mjs} +1 -1
  142. package/browser/esm/{Cluu6edX1vMT0APV.mjs → DIqQkABlFa6ThxBq.mjs} +12 -12
  143. package/browser/esm/{acwoMYe1beI5Wrq12.mjs → DOrZ1rQOO7y7wy_m2.mjs} +1 -1
  144. package/{cdn/assets/DVdhEB3_SE9GEpGw.js → browser/esm/DR-J6OnvqplpkxjY2.mjs} +1 -1
  145. package/browser/esm/{BSXumetIfmtutIwR.mjs → DW3HvTGIMKSU5-rE.mjs} +5 -5
  146. package/{cdn/assets/C06Yqqvfz4f-vnXA.js → browser/esm/D_wBIcd-JG6pjL6X.mjs} +675 -726
  147. package/{cdn/assets/DTNjbBBLszx7DUAS2.js → browser/esm/Db0wkQr-gcaXZ-xF2.mjs} +1 -1
  148. package/browser/esm/{SVBLkue4Zu6FnHvb.mjs → Dc-ACeeHSIUlPwwK.mjs} +9 -7
  149. package/browser/esm/{DTvl6pZYgFJuU2Pu.mjs → DhElOu55OpNI63fY.mjs} +13 -13
  150. package/{cdn/assets/D8jCy3zoIlOA1GAR2.js → browser/esm/DiC8s-5zqDT2bSX_.mjs} +1 -1
  151. package/browser/esm/{BprRTOQ5s6y4jMpw.mjs → Dj99WdDE0W4pbL9Z.mjs} +5 -5
  152. package/browser/esm/{CJVG0Axu4gbcyT_I2.mjs → DkzeehP-6WrvoENP2.mjs} +8 -8
  153. package/browser/esm/{UWBAgk6dmyMdUUrv.mjs → Dmnc6PGw0oZha0MF.mjs} +2617 -1420
  154. package/{cdn/assets/CUQpAR2c-_Pwu2Eu.js → browser/esm/DnIM43F01HIS9vrs2.mjs} +1 -1
  155. package/browser/esm/{Cifhu0Tx_Qo7pYUo2.mjs → Do9KFjmpgHDzEREb2.mjs} +9 -9
  156. package/browser/esm/{BQemec4LLoAl92_B.mjs → DonKewYwnXajr7vb.mjs} +1 -1
  157. package/{cdn/assets/C7svWLuGopr_jw0t.js → browser/esm/DqrAn9WP17T4sX4k.mjs} +1 -1
  158. package/{cdn/assets/BG5ptu1QVVE32_SU.js → browser/esm/DtgxDfYXDdgRF8CP2.mjs} +1 -1
  159. package/{cdn/assets/Gj5vl7eMC5BSe_81.js → browser/esm/DwcvG_p7iZ2TOYkO2.mjs} +1 -1
  160. package/browser/esm/{h-_FZQM0bW_2jNsi.mjs → Dx_rx7X79sTRpl4o.mjs} +5 -5
  161. package/browser/esm/{BoEpW3VXHHDA7k4Y2.mjs → Dy92PkC2HNPr3NUS2.mjs} +21 -21
  162. package/browser/esm/F2DxvTu1OtKx4KOu.mjs +62 -0
  163. package/browser/esm/{iV1cp5WFOBxaJU3W2.mjs → FzT0Kg_BbOdmREpX2.mjs} +1 -1
  164. package/browser/esm/{CnaNnCl2QaqlLn8r.mjs → I660lM4WXwKByUBN.mjs} +612 -286
  165. package/browser/esm/{Bw8V5WPmS2yA3Nli2.mjs → LcWP7jwFTbFV8PXB.mjs} +1 -1
  166. package/browser/esm/NICR6e-cHnVuaN672.mjs +68 -0
  167. package/browser/esm/{BoUvCwncdWQjAB6z.mjs → Oi3vEmqVfUYeowoU.mjs} +11 -11
  168. package/browser/esm/{DEVCQtXhk-o9aGOV2.mjs → XVb52lYk0hnvaibx2.mjs} +2 -2
  169. package/{cdn/assets/CeT8chcNlkKehyJE.js → browser/esm/_umvY0i6yb5YBaQW2.mjs} +1 -1
  170. package/browser/esm/{Cz7kfadeRVZBAMZ_.mjs → eCn_J58pIBQwzSFQ.mjs} +1 -1
  171. package/browser/esm/{CMA4SISwnTv_lg9j.mjs → eb55UkMxnvKhZf7Y.mjs} +43 -43
  172. package/{cdn/assets/DhJ6QuQLZNVmamW_.js → browser/esm/enNXuXOMFvwqMrMF2.mjs} +1 -1
  173. package/{cdn/assets/BlYbn-3NJeiQ8dVU.js → browser/esm/f4dduywnnZ6uE-MZ.mjs} +1 -1
  174. package/browser/esm/{Dbr_OAl6EZskoqcA2.mjs → i81eZYR434OTxzFp2.mjs} +16 -16
  175. package/browser/esm/ilaSvZy5MHqAeVhr.mjs +236 -0
  176. package/browser/esm/index.mjs +4 -4
  177. package/browser/esm/{Cfob6FEkwxaSK3jd2.mjs → jBZULYj6alt6xc0v2.mjs} +1 -1
  178. package/browser/esm/{yCxQIbbRhwpsIqJu2.mjs → jt7Pndny1ddX66eh2.mjs} +37 -7
  179. package/browser/esm/{ISZRBrb20f_6C_zc.mjs → ms6uwR8n8YkKj8qd.mjs} +1403 -1006
  180. package/browser/esm/{4DbJWOjJvf-TOYkv2.mjs → n6xdiChPzW0alL9f2.mjs} +1 -1
  181. package/browser/esm/{BmJfxZPHfm_cMD4l.mjs → naRjzZqPt0JSdeaD.mjs} +4395 -3144
  182. package/browser/esm/{b3BWQGDBSQ4mCgD22.mjs → qG3Ardi8Sem7RxlS2.mjs} +1 -1
  183. package/browser/esm/{DlWcxpzc1O-m1M2B.mjs → rkgkqx2vOlkYHUxK2.mjs} +1 -1
  184. package/browser/esm/{DM4ub7OPobMAcSmy.mjs → ro6GeRkPlX0NJeiX.mjs} +2 -2
  185. package/browser/esm/sq1ZQBDrjmOCMkE8.mjs +2624 -0
  186. package/browser/esm/{CIwWrEXfSN_3khPI.mjs → wcldfedI_9KDEtaN.mjs} +1 -1
  187. package/browser/esm/{DhCFbzZIeOF7kqNn.mjs → xmD5IJJziRqUIbkU.mjs} +1 -1
  188. package/cdn/assets/{DAUF2tc_qrKzAbp32.js → -0ZWO-sILmjXhdUn2.js} +13 -13
  189. package/cdn/assets/{B6QNFqmlZvu6dS4Z2.js → 0ytlp68IedQ03SxN2.js} +10 -10
  190. package/cdn/assets/{DlZq7EB3pYTCoBZR.js → 1YNqnAQLBD6Rbh-J.js} +1 -1
  191. package/cdn/assets/{Do4OOIYh99i3VXc52.js → 2F7YZkGv5ARgpyZp2.js} +1 -1
  192. package/{browser/esm/BXlBCVkeDEYvDBJB.mjs → cdn/assets/4Ah98p4lGiqrlbx6.js} +1 -1
  193. package/{browser/esm/BOwbDihjRpkwOyYg.mjs → cdn/assets/5fk4i8-157Ur23Jd.js} +676 -725
  194. package/cdn/assets/{DEgXvxiW0vq9ppwM2.js → B3g1fc-3zQH4IhzA2.js} +18869 -18388
  195. package/{browser/esm/Cum9BHrpjoznUf1x.mjs → cdn/assets/BCGMvpUPFTYcKGbk2.js} +1 -1
  196. package/cdn/assets/{WkWv2DINRHwBdTOP.js → BCunHjPgizrAsDXf.js} +12 -12
  197. package/cdn/assets/{Cjrrmg-P0lKlzEfq2.js → BE8QpwvUMA9nmViB2.js} +132 -131
  198. package/{browser/esm/B2bYjv0KEa2vjuau.mjs → cdn/assets/BFv3n-8UY0C32OsF.js} +1 -1
  199. package/cdn/assets/BJNI25e2dCdq29AM.js +62 -0
  200. package/cdn/assets/{DR7GcNKO8jkJSCQs.js → BLSwh5Hqlo-b8LTp.js} +3 -3
  201. package/cdn/assets/{5frl5yk1BX9u5Bd42.js → BOVd36GaYwk1m1gs2.js} +26 -26
  202. package/cdn/assets/{BP16A2unTwME_JUN.js → BPdZCt3a5bggHnmC.js} +2 -2
  203. package/cdn/assets/{Bo5_yVXoppQHxkAs.js → BSyEOmiRvJDj0_4_.js} +1 -1
  204. package/cdn/assets/{Dy9SlSZp3B0IfxZM.js → BWv9YMAIb4d7yeRr.js} +81 -80
  205. package/cdn/assets/{D3X5GNunddfnKs21.js → BXBYzUCo-8Y2kvih2.js} +1 -1
  206. package/cdn/assets/{AwPuLKuYMSM7s2v_2.js → BXCPrm92ipaRS1ge2.js} +22 -22
  207. package/cdn/assets/{BHQdCxqlomq-292-.js → BY3exqKgwDNCbdrG.js} +112 -112
  208. package/cdn/assets/{D8IjVu2OXXsBZUqt.js → Ba8XCzy9ufDNa_mw2.js} +1 -1
  209. package/cdn/assets/BbQdrdBSar3saQX32.js +149 -0
  210. package/cdn/assets/{BDn_jC98FsiXZwGr.js → Beb-71pldLN9-lkZ.js} +1 -1
  211. package/cdn/assets/{DDA9KIxPv8iiAvvy.js → BjcfDORFDLJVCh9M.js} +1 -1
  212. package/cdn/assets/{4UIqAp3dgLTz_jQl.js → BoWxoDcx70L4pgIG.js} +1 -1
  213. package/cdn/assets/{DEhdjB_Iw2iMcmZh.js → BouasW9i4KF5ayiD.js} +2 -2
  214. package/cdn/assets/{BCECU4i5lxfS0Udy.js → BpSYpeutbljnZDCG2.js} +1 -1
  215. package/cdn/assets/{BmcgeYHDyFh865ey.js → Br5sDsj8RypYlTfI.js} +4433 -3182
  216. package/cdn/assets/{BUHOArLYzXBeYzXy.js → BrY06ew6SWC_tvAK.js} +12 -12
  217. package/{browser/esm/Bis-2jH6YBF6g66T.mjs → cdn/assets/Bsfmz9sSNYL1bur2.js} +1 -1
  218. package/cdn/assets/{BrZcNYdz3ufxcsyF2.js → Bu2WNghK3j0fB5oh2.js} +10 -10
  219. package/cdn/assets/{Bhz4-fERBAhVf8ze2.js → BwpeFsNLJ6sOyg-V2.js} +1 -1
  220. package/cdn/assets/{BUxPCLlW-ZMhy0kO.js → BxwJ2xXpa1-_Ji8R.js} +2 -2
  221. package/cdn/assets/{BRVkA5J9pds0HKNi2.js → BzWz5q7aXaBHYtCY2.js} +2 -2
  222. package/{browser/esm/DUGWe5q5hsRZixNX.mjs → cdn/assets/Bzbxw_NHYqY5MOhk.js} +1 -1
  223. package/cdn/assets/{C_VwHa0tEc_OcSRF.js → C-_7D2KLIoDlB5ZW.js} +1 -1
  224. package/cdn/assets/{NaYNBS42-TDUcEoM.js → C3FTMx72bE115RW8.js} +8 -8
  225. package/cdn/assets/{BPzCgPCFw6OXBqtP2.js → C4CBg5NXA83M7-rF2.js} +11 -11
  226. package/{browser/esm/B-_shlNzdU5vK6-F2.mjs → cdn/assets/C6kRIEgNpvwokXS6.js} +1 -1
  227. package/cdn/assets/{DFvNGCdvSx5VASsE.js → CAz1eWlfMv2L6OpC.js} +2 -2
  228. package/cdn/assets/{CCAmUEfkNvVwKNOo.js → CBHMqMbfHpto8A1O.js} +1 -1
  229. package/cdn/assets/{aFMcUoW7eSrX_WvX.js → CDCQpPgRQ4H7KmfY.js} +2 -2
  230. package/cdn/assets/{95Rg6-R77DB8vhtt2.js → CJD_9GC-kZb-DHuw2.js} +12 -12
  231. package/cdn/assets/{tEVV1QDIj2xjwhXe.js → CJSzKVgSGEQCyJfx.js} +3 -3
  232. package/{browser/esm/BdqrEMXaXGIMDZbw.mjs → cdn/assets/CKKWAZkEaZ4JpBOq.js} +687 -667
  233. package/cdn/assets/{Bb2eLL0IUxmGT8uG2.js → CMV31zC7ULkWMF6V2.js} +8 -8
  234. package/cdn/assets/CNTCzYCjbg0XYQ9w.js +87 -0
  235. package/cdn/assets/{B1rPJEAA5dgS-yuD2.js → COMdPpJxQ9_y8qIb2.js} +9 -9
  236. package/cdn/assets/{DZZ6PVue8DUBcarK.js → CQBwlTSXDAUWu4W9.js} +1 -1
  237. package/cdn/assets/{Bx_8Vgu2B9rmr3So.js → CQyt-UVizZgazLy5.js} +1 -1
  238. package/cdn/assets/{DOFrZ-RMlv0mEbr62.js → CXdK3ceNb39xu59l2.js} +44 -44
  239. package/{browser/esm/Dg79tbN27bDhGeRt2.mjs → cdn/assets/CXgg3tQvJDJO6SSm.js} +1 -1
  240. package/cdn/assets/CXtZMG9g-9oTtiqL.js +2298 -0
  241. package/cdn/assets/{Cw3vteUwx6OB-6Iy.js → C_0vyfGPMnLDdlSb2.js} +1 -1
  242. package/cdn/assets/{DHAWMS42nJvjdtuv2.js → C_OzUxYG2SGBaAUf2.js} +25 -25
  243. package/{browser/esm/OPJN-aKuq0geLnJ82.mjs → cdn/assets/Cag5TarcS7KgHsRo.js} +1 -1
  244. package/cdn/assets/{JGftuh24rk6BMfkr2.js → CdCDTqyTm5N2EY4W2.js} +140 -140
  245. package/{browser/esm/COLxuIHK4CwKSCmM2.mjs → cdn/assets/CgddS2k-SBQbGu-q2.js} +1 -1
  246. package/cdn/assets/{C0vo8lE4bLKFYxkh2.js → ChMJWEuVIDRtM4F-2.js} +1 -1
  247. package/{browser/esm/AlSePay9xNV3_6bb.mjs → cdn/assets/CiwAp4s68xfZm7za.js} +1 -1
  248. package/cdn/assets/{XCCi1PHPbJ6YaXx3.js → Cl-N5g_1yS1UniCt.js} +2 -2
  249. package/cdn/assets/{CCauT418WamqPMCO.js → CmbsN81GDpmY3RPO2.js} +1 -1
  250. package/cdn/assets/{DJt8usFidNohlcHI2.js → Cn4jB4Paw7SdIEXJ.js} +1 -1
  251. package/cdn/assets/{Cjeb-kMHzEUFlM_l.js → CnUBHUIkRZCIWgUa.js} +8 -8
  252. package/cdn/assets/{DGsj2g4x9odoy93a.js → CoVIoxu1xnlKd2HA.js} +1 -1
  253. package/cdn/assets/{i3SHwvlGdsJN8P5k2.js → CpWlrwsyFr5LDXzk2.js} +1 -1
  254. package/cdn/assets/{Oh10DZZ2Ac49rAQC.js → CtugyaJ11FwQN-WY.js} +5 -5
  255. package/cdn/assets/{bTb_qWNZ9gqpiDKP2.js → CuV6xULcGiHONmem2.js} +6 -6
  256. package/cdn/assets/{DdtqpY-XqWQemNlu.js → CvEz12Ffb2RavW2v.js} +6 -6
  257. package/cdn/assets/{v49CyNYkIHP85Zly2.js → CvjnhhM1I_Frxrat2.js} +73 -73
  258. package/cdn/assets/{B89OWCXpyImxK0eb.js → CvzmHqRHrWQRXCU4.js} +1 -1
  259. package/cdn/assets/{D4a2UOIcVrZtupKH.js → CyC5uu-ajw6189Hf.js} +8669 -6405
  260. package/cdn/assets/{BYk8t-CVbU8h5jS62.js → CzCX-Wad3yMcEHob2.js} +1 -1
  261. package/cdn/assets/{-w9ufIOw-Om_-Wms2.js → CzPNVSaAd-17U2N-.js} +7 -7
  262. package/cdn/assets/{CB2GXUrOhyLmnsVF2.js → D0-ySZmNB4p2PDsi2.js} +2617 -1420
  263. package/cdn/assets/{IfWL5kbc_82yS9Ek2.js → D03MDxsDGQS9hgbm2.js} +17 -17
  264. package/{browser/esm/CZQe_58fmtS0SgdD.mjs → cdn/assets/D1rCmgzPQzy6VXMS2.js} +1 -1
  265. package/cdn/assets/D5RE0juCP5H8JlAH.js +236 -0
  266. package/cdn/assets/{B2PZWx8od3IEHy4E2.js → D69bFt0qiJ0Banpu2.js} +9 -9
  267. package/{browser/esm/D94ChP2mwu_ThODV2.mjs → cdn/assets/D70qxLxD0ZWgLmBs.js} +1 -1
  268. package/cdn/assets/{CAC_xDUcFxj4WkGc.js → D8K4Srn2tnQLWkPz.js} +1564 -1167
  269. package/{browser/esm/CiKHaK_kIAhKfCdO.mjs → cdn/assets/DBYgTlTpZKZGoP3J2.js} +1 -1
  270. package/{browser/esm/B7DAcnxzPv0cz6GS.mjs → cdn/assets/DFQANFiqOXXHBhY62.js} +1 -1
  271. package/cdn/assets/{B4o5v-hrdGJbyWK4.js → DFTnRj9--tQc-vef.js} +2 -2
  272. package/{browser/esm/CIT0V8cmnyP4zirK.mjs → cdn/assets/DGb0H5-84FuMTt7D.js} +1 -1
  273. package/{browser/esm/DwhwEhNA_QFs_EaZ.mjs → cdn/assets/DGb0H5-84FuMTt7D2.js} +1 -1
  274. package/cdn/assets/{acwoMYe1beI5Wrq1.js → DOrZ1rQOO7y7wy_m.js} +1 -1
  275. package/cdn/assets/{Mo49UfLrLCgf_5pV2.js → DQSmYw6FezlICa7N2.js} +945 -619
  276. package/cdn/assets/{DRJzNrQ15sOSjd2e2.js → DQ_DJLXBiyohjB3S2.js} +12 -12
  277. package/{browser/esm/DVdhEB3_SE9GEpGw2.mjs → cdn/assets/DR-J6OnvqplpkxjY.js} +1 -1
  278. package/cdn/assets/{I2O4wgRVKQfD0EvR.js → DXJtK3wLsbICIvRL.js} +3 -3
  279. package/cdn/assets/{CPrgeFAwr7BHqmHu.js → DaKYN7vgEkjwgprw.js} +12 -12
  280. package/{browser/esm/DTNjbBBLszx7DUAS.mjs → cdn/assets/Db0wkQr-gcaXZ-xF.js} +1 -1
  281. package/cdn/assets/{BRXqd83y_8Jm2IXn.js → DdmPDp4-0_yTeGr_.js} +231 -231
  282. package/cdn/assets/{B4ij2yZFJa5IX7Gk2.js → Der1-GUNSJF4NUBK2.js} +9 -9
  283. package/{browser/esm/D8jCy3zoIlOA1GAR.mjs → cdn/assets/DiC8s-5zqDT2bSX_2.js} +1 -1
  284. package/cdn/assets/{GABbnj9qIWyEbare2.js → DiVecFg4Jh_suq0_.js} +124 -125
  285. package/{browser/esm/DIzd82jYSriheVOz.mjs → cdn/assets/DiygIQUaTrLizj_A.js} +3 -3
  286. package/cdn/assets/{DXLCCNbizOqKHb2c.js → Dn2VJNfytUlF_IF_.js} +2 -2
  287. package/{browser/esm/CUQpAR2c-_Pwu2Eu.mjs → cdn/assets/DnIM43F01HIS9vrs.js} +1 -1
  288. package/cdn/assets/{BQemec4LLoAl92_B.js → DonKewYwnXajr7vb.js} +1 -1
  289. package/cdn/assets/{BZSwuzPkthzsadzX.js → DpIsyNPsRdTDh1cq.js} +14 -13
  290. package/cdn/assets/{BC5CAuRYyJJli2nd.js → Dq8SI2oQstCKO-GY.js} +2 -2
  291. package/{browser/esm/C7svWLuGopr_jw0t2.mjs → cdn/assets/DqrAn9WP17T4sX4k.js} +1 -1
  292. package/cdn/assets/{DsDi-rMPWyWzWitl.js → Drh6Y-moeT0GOGRL.js} +4 -4
  293. package/cdn/assets/{gB5jSIc2WRvZWgrs2.js → Ds-D_rdIJs76l1CW2.js} +5 -5
  294. package/cdn/assets/{BgJZVus3WAJnbiwZ2.js → DtHIi5l5w6HWQF2d2.js} +22 -22
  295. package/{browser/esm/BG5ptu1QVVE32_SU2.mjs → cdn/assets/DtgxDfYXDdgRF8CP.js} +1 -1
  296. package/{browser/esm/Gj5vl7eMC5BSe_812.mjs → cdn/assets/DwcvG_p7iZ2TOYkO.js} +1 -1
  297. package/cdn/assets/{C8XBql0-rVxPPgdF.js → DweB8FS7VFYAmdcv.js} +11 -9
  298. package/cdn/assets/{iV1cp5WFOBxaJU3W.js → FzT0Kg_BbOdmREpX.js} +1 -1
  299. package/cdn/assets/IC-gXSmNOKyQGB9f2.js +69 -0
  300. package/cdn/assets/{Bw8V5WPmS2yA3Nli.js → LcWP7jwFTbFV8PXB2.js} +1 -1
  301. package/cdn/assets/{C2cKoe4Zik7iVYe42.js → Qd6QBUsP7YTAXYvh2.js} +23 -23
  302. package/{browser/esm/DL_3sKPWBfJtpaG3.mjs → cdn/assets/TuDsLDkXtOjxtleY2.js} +2 -2
  303. package/{browser/esm/Dyt46qi3aJZ-CbpB.mjs → cdn/assets/YDdOHwur-KHnZcch2.js} +2 -2
  304. package/cdn/assets/{DQJgLUaP7Ha_fkvr2.js → _BhaDNMLX3Da5J122.js} +1477 -1747
  305. package/{browser/esm/CeT8chcNlkKehyJE2.mjs → cdn/assets/_umvY0i6yb5YBaQW.js} +1 -1
  306. package/cdn/assets/{CqFpYuZRY1Oa6Kdj.js → b-G7BadS13tqu4Pu.js} +11 -11
  307. package/cdn/assets/{Cz7kfadeRVZBAMZ_2.js → eCn_J58pIBQwzSFQ2.js} +1 -1
  308. package/{browser/esm/DhJ6QuQLZNVmamW_2.mjs → cdn/assets/enNXuXOMFvwqMrMF.js} +1 -1
  309. package/{browser/esm/BlYbn-3NJeiQ8dVU.mjs → cdn/assets/f4dduywnnZ6uE-MZ.js} +1 -1
  310. package/cdn/assets/{Cfob6FEkwxaSK3jd.js → jBZULYj6alt6xc0v.js} +1 -1
  311. package/cdn/assets/{4DbJWOjJvf-TOYkv.js → n6xdiChPzW0alL9f.js} +1 -1
  312. package/cdn/assets/{b3BWQGDBSQ4mCgD2.js → qG3Ardi8Sem7RxlS.js} +1 -1
  313. package/cdn/assets/{DlWcxpzc1O-m1M2B.js → rkgkqx2vOlkYHUxK.js} +1 -1
  314. package/cdn/assets/sq1ZQBDrjmOCMkE8.js +2624 -0
  315. package/cdn/assets/{CIwWrEXfSN_3khPI2.js → wcldfedI_9KDEtaN2.js} +1 -1
  316. package/cdn/assets/{DhCFbzZIeOF7kqNn2.js → xmD5IJJziRqUIbkU2.js} +1 -1
  317. package/cdn/assets/{DxzX_-E3wr0c8-0b.js → yHDAaNbolW5pTQRd.js} +36 -6
  318. package/cdn/index.js +2 -2
  319. package/package.json +3 -3
  320. package/browser/cjs/2nTOupSTLJfwR2Xr2.cjs +0 -1
  321. package/browser/cjs/B-t_DeDrhWtCFPcI.cjs +0 -93
  322. package/browser/cjs/B3dsg6O4Ka8NpEf32.cjs +0 -1
  323. package/browser/cjs/B5Fa5-cHf1VTfozN.cjs +0 -1
  324. package/browser/cjs/B_WV3e3yexp3dKaz.cjs +0 -9
  325. package/browser/cjs/BbMNM5e-lfDFkOvn2.cjs +0 -1
  326. package/browser/cjs/BjYqVy9NYB3ZmGEY.cjs +0 -32
  327. package/browser/cjs/BqFUfIMN5tnsMTIi.cjs +0 -3
  328. package/browser/cjs/BvUcpUKYVrCK5n2U.cjs +0 -14
  329. package/browser/cjs/C0PxB67bYqsO7V1G2.cjs +0 -1
  330. package/browser/cjs/C0_3HFQaCnHzWrhv.cjs +0 -2
  331. package/browser/cjs/C0m8l7d1fHu9CO2M.cjs +0 -24
  332. package/browser/cjs/C2XU-hUt1ESe-Lym2.cjs +0 -8
  333. package/browser/cjs/CClH6iclautDoj8x2.cjs +0 -1
  334. package/browser/cjs/CHMgm0vAbEBS1mVW.cjs +0 -1
  335. package/browser/cjs/CXIJNqmAzn6OpqX5.cjs +0 -5
  336. package/browser/cjs/CXsFagVr04vhY7Uo.cjs +0 -42
  337. package/browser/cjs/CYXi2zJwNRVFBiL12.cjs +0 -1
  338. package/browser/cjs/Ce0Jppzi_9bXU35v2.cjs +0 -1
  339. package/browser/cjs/Cez2y8M7jx35Vxwz.cjs +0 -3
  340. package/browser/cjs/Cgf6tLDBJ3BvtYtr.cjs +0 -1
  341. package/browser/cjs/CraHFKICbV6fuCQ-2.cjs +0 -1
  342. package/browser/cjs/DLYEQZzAGuSAmJsp.cjs +0 -6
  343. package/browser/cjs/JrW6on2mNQQ3NXKs.cjs +0 -1
  344. package/browser/cjs/LZG5aDIiIkN0mGFD.cjs +0 -1
  345. package/browser/cjs/NZ9JmwEmwyGM6S7n2.cjs +0 -1
  346. package/browser/cjs/O9HAYiw9e8V75pJ92.cjs +0 -1
  347. package/browser/cjs/U7_s3uvd0_Kashf9.cjs +0 -1
  348. package/browser/cjs/Ugq14m_1jIROW2RN2.cjs +0 -22
  349. package/browser/esm/BC57lU_SIXKxcZkP2.mjs +0 -280
  350. package/browser/esm/CTuUdSmxH6QxGmNK.mjs +0 -6104
  351. package/browser/esm/CfIyCu9_WLgJL_UT.mjs +0 -87
  352. package/browser/esm/CrIcPnRynBYfe_Pk.mjs +0 -2402
  353. package/cdn/assets/9zNnsHPCP6dNE6dt.js +0 -6104
  354. package/cdn/assets/Bcwk_FRKVLyPomW4.js +0 -2402
  355. package/cdn/assets/CjYlIFqHaDFiZlal2.js +0 -159
  356. package/cdn/assets/D14aC0o9d5RZrVJo.js +0 -280
  357. package/cdn/assets/DwhwEhNA_QFs_EaZ.js +0 -24
  358. package/cdn/assets/DwhwEhNA_QFs_EaZ2.js +0 -24
  359. package/cdn/assets/EcoVJH4is9c6hPnS.js +0 -87
  360. /package/browser/cjs/{4nReftSsKWmnRdtf2.cjs → 4nReftSsKWmnRdtf.cjs} +0 -0
  361. /package/browser/cjs/{507hQYooKKjnRzsZ2.cjs → 507hQYooKKjnRzsZ.cjs} +0 -0
  362. /package/browser/cjs/{B6IXpae7f0J8Ocq62.cjs → B6IXpae7f0J8Ocq6.cjs} +0 -0
  363. /package/browser/cjs/{BvG8N7G_8CXIAlT-2.cjs → BvG8N7G_8CXIAlT-.cjs} +0 -0
  364. /package/browser/cjs/{C0g87ndP2zMUbX6f2.cjs → C0g87ndP2zMUbX6f.cjs} +0 -0
  365. /package/browser/cjs/{C9q3zr8iCIoYDrdA.cjs → C9q3zr8iCIoYDrdA2.cjs} +0 -0
  366. /package/browser/cjs/{CV4KQsHluMqo1I2Q2.cjs → CV4KQsHluMqo1I2Q.cjs} +0 -0
  367. /package/browser/cjs/{CW-b31_-r-_raT8Y.cjs → CW-b31_-r-_raT8Y2.cjs} +0 -0
  368. /package/browser/cjs/{CXlzsh_WHCOsErJ1.cjs → CXlzsh_WHCOsErJ12.cjs} +0 -0
  369. /package/browser/cjs/{CaJGoNwTL6pAJ6a4.cjs → CaJGoNwTL6pAJ6a42.cjs} +0 -0
  370. /package/browser/cjs/{CrZlUtdX1h2RUnCP2.cjs → CrZlUtdX1h2RUnCP.cjs} +0 -0
  371. /package/browser/cjs/{D8-KovdJ0LjxqCe2.cjs → D8-KovdJ0LjxqCe22.cjs} +0 -0
  372. /package/browser/cjs/{DNKyaSruDogoBd2H.cjs → DNKyaSruDogoBd2H2.cjs} +0 -0
  373. /package/browser/cjs/{DRmo6uoGoqtiVff82.cjs → DRmo6uoGoqtiVff8.cjs} +0 -0
  374. /package/browser/cjs/{DSXLVieENYN9qXYl.cjs → DSXLVieENYN9qXYl2.cjs} +0 -0
  375. /package/browser/cjs/{a4xpA8d_d22-GKos.cjs → a4xpA8d_d22-GKos2.cjs} +0 -0
@@ -1,4 +1,4 @@
1
- var e=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>`u`)throw Error(`Web Workers are not supported in this environment.`);return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{let{id:t,result:n,error:r}=e.data,i=this._pendingRequests.get(t);if(i)if(this._pendingRequests.delete(t),r){let e=Error(r.message);e.stack=r.stack,r.cause&&(e.cause=r.cause),i.reject(e)}else i.resolve(n)},this._worker.onerror=e=>{console.error(`Worker error:`,e),this._pendingRequests.forEach(t=>{t.reject(Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw Error(`Worker is not initialized. Call start() first.`);let t=this._nextId++;return new Promise((n,r)=>{this._pendingRequests.set(t,{resolve:n,reject:r}),this._worker.postMessage({id:t,params:e})})}terminate(){this._worker&&=(this._worker.terminate(),null)}},t=class{constructor(e){this._onExecute=e}execute(e){return this._onExecute(e)}start(){return Promise.resolve()}terminate(){}},n=`var yt = Object.defineProperty, Yt = (e, t, r) => () => {
1
+ var e=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>`u`)throw Error(`Web Workers are not supported in this environment.`);return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{let{id:t,result:n,error:r}=e.data,i=this._pendingRequests.get(t);if(i)if(this._pendingRequests.delete(t),r){let e=Error(r.message);e.stack=r.stack,r.cause&&(e.cause=r.cause),i.reject(e)}else i.resolve(n)},this._worker.onerror=e=>{console.error(`Worker error:`,e),this._pendingRequests.forEach(t=>{t.reject(Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw Error(`Worker is not initialized. Call start() first.`);let t=this._nextId++;return new Promise((n,r)=>{this._pendingRequests.set(t,{resolve:n,reject:r}),this._worker.postMessage({id:t,params:e})})}terminate(){this._worker&&=(this._worker.terminate(),null)}},t=class{constructor(e){this._onExecute=e}execute(e){return this._onExecute(e)}start(){return Promise.resolve()}terminate(){}},n=`var yt = Object.defineProperty, qt = (e, t, r) => () => {
2
2
  if (r) throw r[0];
3
3
  try {
4
4
  return e && (t = e(e = 0)), t;
@@ -76,7 +76,7 @@ function rn(e) {
76
76
  })(e) && !en(e);
77
77
  }
78
78
  function Ne(e, t) {
79
- return t.clone !== !1 && t.isMergeableObject(e) ? Ee((r = e, Array.isArray(r) ? [] : {}), e, t) : e;
79
+ return t.clone !== !1 && t.isMergeableObject(e) ? ve((r = e, Array.isArray(r) ? [] : {}), e, t) : e;
80
80
  var r;
81
81
  }
82
82
  function nn(e, t, r) {
@@ -84,14 +84,14 @@ function nn(e, t, r) {
84
84
  return Ne(n, r);
85
85
  });
86
86
  }
87
- function St(e) {
87
+ function bt(e) {
88
88
  return Object.keys(e).concat((function(t) {
89
89
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
90
90
  return Object.propertyIsEnumerable.call(t, r);
91
91
  }) : [];
92
92
  })(e));
93
93
  }
94
- function bt(e, t) {
94
+ function St(e, t) {
95
95
  try {
96
96
  return t in e;
97
97
  } catch {
@@ -100,27 +100,27 @@ function bt(e, t) {
100
100
  }
101
101
  function on(e, t, r) {
102
102
  let n = {};
103
- return r.isMergeableObject(e) && St(e).forEach(function(o) {
103
+ return r.isMergeableObject(e) && bt(e).forEach(function(o) {
104
104
  n[o] = Ne(e[o], r);
105
- }), St(t).forEach(function(o) {
105
+ }), bt(t).forEach(function(o) {
106
106
  (function(a, l) {
107
- return bt(a, l) && !(Object.hasOwnProperty.call(a, l) && Object.propertyIsEnumerable.call(a, l));
108
- })(e, o) || (bt(e, o) && r.isMergeableObject(t[o]) ? n[o] = (function(a, l) {
109
- if (!l.customMerge) return Ee;
107
+ return St(a, l) && !(Object.hasOwnProperty.call(a, l) && Object.propertyIsEnumerable.call(a, l));
108
+ })(e, o) || (St(e, o) && r.isMergeableObject(t[o]) ? n[o] = (function(a, l) {
109
+ if (!l.customMerge) return ve;
110
110
  let i = l.customMerge(a);
111
- return typeof i == "function" ? i : Ee;
111
+ return typeof i == "function" ? i : ve;
112
112
  })(o, r)(e[o], t[o], r) : n[o] = Ne(t[o], r));
113
113
  }), n;
114
114
  }
115
- function Ee(e, t, r) {
115
+ function ve(e, t, r) {
116
116
  (r ||= {}).arrayMerge = r.arrayMerge || nn, r.isMergeableObject = r.isMergeableObject || rn, r.cloneUnlessOtherwiseSpecified = Ne;
117
117
  let n = Array.isArray(t);
118
118
  return n === Array.isArray(e) ? n ? r.arrayMerge(e, t, r) : on(e, t, r) : Ne(t, r);
119
119
  }
120
- Ee.all = function(e, t) {
120
+ ve.all = function(e, t) {
121
121
  if (!Array.isArray(e)) throw Error("first argument should be an array");
122
122
  return e.reduce(function(r, n) {
123
- return Ee(r, n, t);
123
+ return ve(r, n, t);
124
124
  }, {});
125
125
  };
126
126
  var Qt = he({
@@ -133,12 +133,12 @@ var Qt = he({
133
133
  camelToPrettyCase: () => cn,
134
134
  castToString: () => Cn,
135
135
  cloneObject: () => gn,
136
- consoleWithNoSource: () => Ln,
136
+ consoleWithNoSource: () => kn,
137
137
  deepEqual: () => Be,
138
138
  deepFreeze: () => sr,
139
- deepMerge: () => Ee,
140
- diffValues: () => En,
141
- findEqualOrGreater: () => vn,
139
+ deepMerge: () => ve,
140
+ diffValues: () => vn,
141
+ findEqualOrGreater: () => En,
142
142
  findEqualOrLesser: () => xn,
143
143
  getFromPath: () => _n,
144
144
  getPlatform: () => Xe,
@@ -148,22 +148,22 @@ var Qt = he({
148
148
  isEqualBounds: () => yn,
149
149
  isNullOrUndefined: () => ir,
150
150
  isNumeric: () => fn,
151
- isObject: () => ke,
151
+ isObject: () => Le,
152
152
  isPromiseLike: () => $n,
153
153
  isRectInsideRect: () => Rn,
154
154
  isRectIntersect: () => lr,
155
- mergeContentful: () => bn,
155
+ mergeContentful: () => Sn,
156
156
  removeEmptyProperties: () => rr,
157
157
  removeEqualValues: () => or,
158
158
  removeEqualValuesLayered: () => ar,
159
159
  removeListenerAll: () => wn,
160
160
  roundAccurately: () => mn,
161
- setToPath: () => kn,
161
+ setToPath: () => Ln,
162
162
  splitNumber: () => pn,
163
163
  subtractRect: () => Nn,
164
164
  textToKey: () => un,
165
165
  toSafeJSON: () => at,
166
- transpose: () => Sn,
166
+ transpose: () => bn,
167
167
  uuidV4: () => Ke,
168
168
  validEnumValue: () => sn
169
169
  }), _e = Object.freeze([]), an = Object.freeze({}), ln = Promise.resolve(), er = (e) => e;
@@ -199,7 +199,7 @@ function fn(e) {
199
199
  let t = 1 * e;
200
200
  return Number.isFinite(t) && typeof t == "number";
201
201
  }
202
- var We = [
202
+ var Je = [
203
203
  1,
204
204
  10,
205
205
  100,
@@ -222,11 +222,11 @@ function pn(e) {
222
222
  let t = Math.abs(e);
223
223
  if (!Number.isFinite(t)) return null;
224
224
  let r = Math.trunc(t), n = t - r, o;
225
- r > 2 ** 53 - 1 ? o = Number(r.toExponential().split("e")[1]) + 1 : (o = Math.ceil(Math.log10(r + 1)), We[o] <= r && o++);
225
+ r > 2 ** 53 - 1 ? o = Number(r.toExponential().split("e")[1]) + 1 : (o = Math.ceil(Math.log10(r + 1)), Je[o] <= r && o++);
226
226
  let a = 0, l = 0, i = 15 - o;
227
227
  if (n > 0 && i > 0) {
228
- let u = We[i];
229
- if (a = Math.round(n * u), a === u) r++, a = 0, r >= We[o] && o++;
228
+ let u = Je[i];
229
+ if (a = Math.round(n * u), a === u) r++, a = 0, r >= Je[o] && o++;
230
230
  else if (a > 0) for (l = i; a % 10 == 0;) a /= 10, l--;
231
231
  }
232
232
  return {
@@ -256,7 +256,7 @@ function tr(e, t, r) {
256
256
  function yn(e, t) {
257
257
  return e === t || !(!e || !t) && e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
258
258
  }
259
- function ke(e) {
259
+ function Le(e) {
260
260
  return typeof e == "object" && !Array.isArray(e) && e !== null;
261
261
  }
262
262
  function rr(e) {
@@ -275,7 +275,7 @@ function wn(e, t) {
275
275
  }
276
276
  return _e;
277
277
  }
278
- function Sn(e) {
278
+ function bn(e) {
279
279
  if (!e) return e;
280
280
  let t = e.length, r = e[0].length, n = [];
281
281
  for (let o = 0; o < r; o++) n[o] = Array(t);
@@ -318,14 +318,14 @@ function ar(e, t, r = nr) {
318
318
  }
319
319
  return l && Object.keys(e).length === 0;
320
320
  }
321
- function bn(...e) {
321
+ function Sn(...e) {
322
322
  let t = e.length;
323
- if (t > 0 && e[t - 1] !== void 0 && !ke(e[t - 1])) return e[t - 1];
323
+ if (t > 0 && e[t - 1] !== void 0 && !Le(e[t - 1])) return e[t - 1];
324
324
  let r = e[0] || {};
325
- for (let n = 1; n < t; n++) r = Ee(r, e[n] || {}, { arrayMerge: (o, a) => [...a] });
325
+ for (let n = 1; n < t; n++) r = ve(r, e[n] || {}, { arrayMerge: (o, a) => [...a] });
326
326
  return r;
327
327
  }
328
- function En(e, t) {
328
+ function vn(e, t) {
329
329
  let r = {}, n = Object.keys(t), o = n.length;
330
330
  for (let a = 0; a < o; a++) {
331
331
  let l = n[a], i = e[l], u = t[l];
@@ -333,7 +333,7 @@ function En(e, t) {
333
333
  }
334
334
  return Object.keys(r).length === 0 ? null : r;
335
335
  }
336
- function vn(e, t, r = er) {
336
+ function En(e, t, r = er) {
337
337
  let n = 0, o = e.length - 1;
338
338
  for (; n <= o;) {
339
339
  let a = Math.floor((n + o) / 2), l = r(e[a]);
@@ -420,24 +420,24 @@ function _n(e, t) {
420
420
  let l = r[a];
421
421
  if (!n) return null;
422
422
  let i = n[l];
423
- if (typeof i == "function" && (i = i.bind(n)()), !i || !ke(i)) return i;
423
+ if (typeof i == "function" && (i = i.bind(n)()), !i || !Le(i)) return i;
424
424
  n = i;
425
425
  }
426
426
  return n ?? null;
427
427
  }
428
- function kn(e, t, r) {
428
+ function Ln(e, t, r) {
429
429
  let n = t.split("."), o = e;
430
430
  if (!o) throw Error("Can not set path to a null path.");
431
431
  let a = n.length;
432
432
  for (let l = 0; o && l < a - 1; l++) {
433
433
  let i = n[l], u = o[i];
434
- if (u ?? (u = {}, o[i] = u), !ke(u)) throw Error("Can not set path to a non object path.");
434
+ if (u ?? (u = {}, o[i] = u), !Le(u)) throw Error("Can not set path to a non object path.");
435
435
  o = u;
436
436
  }
437
- if (typeof r != "number" && typeof r != "boolean" && typeof r != "string" && !ke(r)) throw Error(\`Can not set path to \${r} that is not a a supported primitive.\`);
437
+ if (typeof r != "number" && typeof r != "boolean" && typeof r != "string" && !Le(r)) throw Error(\`Can not set path to \${r} that is not a a supported primitive.\`);
438
438
  return o[n[a - 1]] = r, e;
439
439
  }
440
- function Ln(...e) {
440
+ function kn(...e) {
441
441
  return new Promise((t) => {
442
442
  setTimeout(() => {
443
443
  Function("console.log.apply(console, arguments)").apply(null, e), t();
@@ -478,28 +478,28 @@ he({
478
478
  EmptyCell: () => cr,
479
479
  EmptyRange: () => On,
480
480
  EmptyRanges: () => Mn,
481
- EmptySelection: () => Dn,
482
- InsertCutShift: () => be,
481
+ EmptySelection: () => Fn,
482
+ InsertCutShift: () => Se,
483
483
  cellToRange: () => jn,
484
- classifyInsertCut: () => Jn,
484
+ classifyInsertCut: () => Yn,
485
485
  columnFirstCellComparator: () => mr,
486
486
  columnFirstRangeComparator: () => ur,
487
- createCellComparator: () => Fn,
488
- createConflatingRanges: () => Wn,
487
+ createCellComparator: () => Dn,
488
+ createConflatingRanges: () => Jn,
489
489
  createRangeComparator: () => wr,
490
490
  defaultRange: () => Gn,
491
491
  extendRangeToIntersectingRanges: () => Tr,
492
492
  extendRangeToUnionRanges: () => zn,
493
- intersectRanges: () => vr,
494
- isCellWithinRange: () => Pn,
495
- isEqualCells: () => Sr,
493
+ intersectRanges: () => Er,
494
+ isCellWithinRange: () => Un,
495
+ isEqualCells: () => br,
496
496
  isEqualRanges: () => dt,
497
- isEqualRangesArrays: () => Er,
497
+ isEqualRangesArrays: () => vr,
498
498
  isEqualSelectionCoords: () => xr,
499
- isRangeWithinRange: () => br,
499
+ isRangeWithinRange: () => Sr,
500
500
  isRangesIntersect: () => ft,
501
- isRefusedInsertCut: () => Yn,
502
- isSingleCell: () => Un,
501
+ isRefusedInsertCut: () => qn,
502
+ isSingleCell: () => Pn,
503
503
  isValidRange: () => Kn,
504
504
  mergeRangeCoordValues: () => Ar,
505
505
  reverseColumnFirstCellComparator: () => yr,
@@ -522,7 +522,7 @@ var cr = Object.freeze({
522
522
  rowStart: 0,
523
523
  colEnd: 0,
524
524
  rowEnd: 0
525
- }), Mn = _e, Dn = Object.freeze({
525
+ }), Mn = _e, Fn = Object.freeze({
526
526
  cell: cr,
527
527
  ranges: _e,
528
528
  rangeIndex: -1
@@ -554,35 +554,35 @@ function yr(e, t) {
554
554
  function wr(e = ue.Row, t = !1) {
555
555
  return t ? e === ue.Column ? pr : fr : e === ue.Column ? ur : dr;
556
556
  }
557
- function Fn(e = ue.Row, t = !1) {
557
+ function Dn(e = ue.Row, t = !1) {
558
558
  return t ? e === ue.Column ? yr : hr : e === ue.Column ? mr : gr;
559
559
  }
560
- function Sr(e, t) {
560
+ function br(e, t) {
561
561
  return e === t || !(!e || !t) && e.rowIndex === t.rowIndex && e.colIndex === t.colIndex && e.scope === t.scope;
562
562
  }
563
563
  function dt(e, t) {
564
564
  return e === t || !(!e || !t) && e.rowStart === t.rowStart && e.rowEnd === t.rowEnd && e.colStart === t.colStart && e.colEnd === t.colEnd && e.scope === t.scope;
565
565
  }
566
- function Pn(e, t) {
566
+ function Un(e, t) {
567
567
  if (!e || !t) return !1;
568
568
  let r = e.rowIndex;
569
569
  if (r < t.rowStart || r > t.rowEnd) return !1;
570
570
  let n = e.colIndex;
571
571
  return !(n < t.colStart || n > t.colEnd);
572
572
  }
573
- function br(e, t) {
573
+ function Sr(e, t) {
574
574
  return !(!e || !t) && !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd);
575
575
  }
576
576
  function ft(e, t) {
577
577
  return !(!e || !t) && !(e.colStart > t.colEnd || t.colStart > e.colEnd) && !(e.rowStart > t.rowEnd || t.rowStart > e.rowEnd);
578
578
  }
579
- function Er(e, t) {
579
+ function vr(e, t) {
580
580
  if (e === t) return !0;
581
581
  if (!e || !t || e.length !== t.length) return !1;
582
582
  for (let r = 0; r < e.length; r++) if (!dt(e[r], t[r])) return !1;
583
583
  return !0;
584
584
  }
585
- function Un(e) {
585
+ function Pn(e) {
586
586
  return !!e && e.rowEnd === e.rowStart && e.colStart === e.colEnd;
587
587
  }
588
588
  function jn(e, t) {
@@ -590,7 +590,7 @@ function jn(e, t) {
590
590
  let r = t;
591
591
  return r || (r = { ...e }, delete r.colIndex, delete r.rowIndex), r.colStart = e.colIndex ?? 0, r.rowStart = e.rowIndex ?? 0, r.colEnd = e.colIndex ?? 0, r.rowEnd = e.rowIndex ?? 0, r;
592
592
  }
593
- function vr(e, t, r) {
593
+ function Er(e, t, r) {
594
594
  if (!e) return r ? t : { ...t };
595
595
  if (!t) return r ? e : { ...e };
596
596
  if (!e && !t || e.rowStart > t.rowEnd || e.rowEnd < t.rowStart || e.colStart > t.colEnd || e.colEnd < t.colStart) return null;
@@ -615,7 +615,7 @@ function it(e, t, r) {
615
615
  }, i;
616
616
  }
617
617
  function xr(e, t) {
618
- return e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Sr(e.cell, t.cell) && Er(e.ranges, t.ranges);
618
+ return e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!br(e.cell, t.cell) && vr(e.ranges, t.ranges);
619
619
  }
620
620
  function Bn(e, t, r) {
621
621
  if (!e || e.length === 0) return null;
@@ -678,7 +678,7 @@ function Gn(e, t, r) {
678
678
  rowEnd: e.rowEnd ?? t.rowEnd
679
679
  } : t;
680
680
  }
681
- var qn = [null, null], Hn = (e, t, r) => {
681
+ var Hn = [null, null], Wn = (e, t, r) => {
682
682
  if (e[0].value === e[1].value) return t;
683
683
  };
684
684
  function Ar(e, t = 2, r, n = ue.Row, o) {
@@ -688,32 +688,32 @@ function Ar(e, t = 2, r, n = ue.Row, o) {
688
688
  do {
689
689
  let p = a.sort(wr(l ? ue.Row : ue.Column));
690
690
  a = [], a.push(p[0]);
691
- let h = p.length, c = 0, g = p[0], T = g.colStart, I = g.rowStart, M = g.colEnd, q = g.rowEnd;
692
- for (let v = 1; v < h; v++) {
693
- let C = p[v], R = !1;
694
- if (R = l ? g && I === C.rowStart && q === C.rowEnd && M + 1 === C.colStart : g && T === C.colStart && M === C.colEnd && q + 1 === C.rowStart, R) {
695
- let U = {
691
+ let h = p.length, c = 0, g = p[0], T = g.colStart, I = g.rowStart, M = g.colEnd, H = g.rowEnd;
692
+ for (let E = 1; E < h; E++) {
693
+ let C = p[E], R = !1;
694
+ if (R = l ? g && I === C.rowStart && H === C.rowEnd && M + 1 === C.colStart : g && T === C.colStart && M === C.colEnd && H + 1 === C.rowStart, R) {
695
+ let P = {
696
696
  colStart: T,
697
697
  rowStart: I,
698
698
  colEnd: l ? C.colEnd : M,
699
- rowEnd: l ? q : C.rowEnd
699
+ rowEnd: l ? H : C.rowEnd
700
700
  };
701
- if (g.value !== void 0 && (U.value = g.value), r) {
701
+ if (g.value !== void 0 && (P.value = g.value), r) {
702
702
  let Z = o ?? [null, null];
703
- Z[0] = g, Z[1] = C, U = r(Z, U, n);
703
+ Z[0] = g, Z[1] = C, P = r(Z, P, n);
704
704
  }
705
- if (U) {
706
- a[c] = U, u = !0, g = U, T = g.colStart, I = g.rowStart, M = g.colEnd, q = g.rowEnd;
705
+ if (P) {
706
+ a[c] = P, u = !0, g = P, T = g.colStart, I = g.rowStart, M = g.colEnd, H = g.rowEnd;
707
707
  continue;
708
708
  }
709
709
  }
710
- a[++c] = C, g = C, T = g.colStart, I = g.rowStart, M = g.colEnd, q = g.rowEnd;
710
+ a[++c] = C, g = C, T = g.colStart, I = g.rowStart, M = g.colEnd, H = g.rowEnd;
711
711
  }
712
712
  i++, l = !l, i === 1 && (u = !0);
713
713
  } while (i < t && u && a.length > 1);
714
714
  return a;
715
715
  }
716
- function Wn(e, t = !1) {
716
+ function Jn(e, t = !1) {
717
717
  let r = [], n, o = null, a = -(2 ** 53 - 1), l = -(2 ** 53 - 1);
718
718
  return {
719
719
  append: (i, u, p) => {
@@ -732,28 +732,28 @@ function Wn(e, t = !1) {
732
732
  rowEnd: T
733
733
  }, c && (o.value = p), a = i, l = u, n = p;
734
734
  },
735
- done: (i) => (o &&= (r.push(o), null), i ? Ar(r, 3, i === !0 ? Hn : i, t ? ue.Column : ue.Row, qn) : r)
735
+ done: (i) => (o &&= (r.push(o), null), i ? Ar(r, 3, i === !0 ? Wn : i, t ? ue.Column : ue.Row, Hn) : r)
736
736
  };
737
737
  }
738
- var be = {
738
+ var Se = {
739
739
  Close: "close",
740
740
  Blank: "blank",
741
741
  Inside: "inside",
742
742
  Tear: "tear"
743
743
  };
744
- function Jn(e, t, r) {
744
+ function Yn(e, t, r) {
745
745
  let n = r === ue.Row;
746
- return (n ? e.colStart === t.colStart && e.colEnd === t.colEnd : e.rowStart === t.rowStart && e.rowEnd === t.rowEnd) ? (n ? t.rowStart > e.rowStart && t.rowStart <= e.rowEnd : t.colStart > e.colStart && t.colStart <= e.colEnd) ? be.Inside : be.Close : (n ? e.rowEnd >= t.rowStart && e.colStart <= t.colEnd && e.colEnd >= t.colStart : e.colEnd >= t.colStart && e.rowStart <= t.rowEnd && e.rowEnd >= t.rowStart) ? be.Tear : be.Blank;
746
+ return (n ? e.colStart === t.colStart && e.colEnd === t.colEnd : e.rowStart === t.rowStart && e.rowEnd === t.rowEnd) ? (n ? t.rowStart > e.rowStart && t.rowStart <= e.rowEnd : t.colStart > e.colStart && t.colStart <= e.colEnd) ? Se.Inside : Se.Close : (n ? e.rowEnd >= t.rowStart && e.colStart <= t.colEnd && e.colEnd >= t.colStart : e.colEnd >= t.colStart && e.rowStart <= t.rowEnd && e.rowEnd >= t.rowStart) ? Se.Tear : Se.Blank;
747
747
  }
748
- function Yn(e) {
749
- return e === be.Inside || e === be.Tear;
748
+ function qn(e) {
749
+ return e === Se.Inside || e === Se.Tear;
750
750
  }
751
- var Y = {
751
+ var q = {
752
752
  Up: "up",
753
753
  Down: "down",
754
754
  Left: "left",
755
755
  Right: "right"
756
- }, H = {
756
+ }, W = {
757
757
  Html: "text/html",
758
758
  Plain: "text/plain",
759
759
  Png: "image/png"
@@ -764,7 +764,7 @@ he({
764
764
  });
765
765
  function de(e, t, r, n) {
766
766
  if (!e) return t;
767
- let o = t, a = r === Y.Right || r === Y.Down;
767
+ let o = t, a = r === q.Right || r === q.Down;
768
768
  for (;;) {
769
769
  let l = e(o, !a);
770
770
  if (l === 0) return o;
@@ -773,7 +773,7 @@ function de(e, t, r, n) {
773
773
  o = i;
774
774
  }
775
775
  }
776
- function Ir(e, t = Y.Right, r, n, o, a = null) {
776
+ function Ir(e, t = q.Right, r, n, o, a = null) {
777
777
  if (a && xr(a, e)) return e;
778
778
  let l = e.ranges, i = e.rangeIndex, u = l[i];
779
779
  if (!ft({
@@ -784,16 +784,16 @@ function Ir(e, t = Y.Right, r, n, o, a = null) {
784
784
  }, u)) return e;
785
785
  let p = { ...e.cell }, h = i;
786
786
  switch (t) {
787
- case Y.Right:
787
+ case q.Right:
788
788
  p.colIndex = de(o, p.colIndex + 1, t, u.colEnd + 1);
789
789
  break;
790
- case Y.Left:
790
+ case q.Left:
791
791
  p.colIndex = de(o, p.colIndex - 1, t, u.colStart - 1);
792
792
  break;
793
- case Y.Down:
793
+ case q.Down:
794
794
  p.rowIndex = de(n, p.rowIndex + 1, t, u.rowEnd + 1);
795
795
  break;
796
- case Y.Up: p.rowIndex = de(n, p.rowIndex - 1, t, u.rowStart - 1);
796
+ case q.Up: p.rowIndex = de(n, p.rowIndex - 1, t, u.rowStart - 1);
797
797
  }
798
798
  let c = (I) => {
799
799
  if (I) {
@@ -812,23 +812,23 @@ function Ir(e, t = Y.Right, r, n, o, a = null) {
812
812
  };
813
813
  }
814
814
  };
815
- if (t === Y.Right && p.colIndex > u.colEnd && p.rowIndex === u.rowEnd) c(!0);
816
- else if (t === Y.Left && p.colIndex < u.colStart && p.rowIndex === u.rowStart) c(!1);
817
- else if (t === Y.Down && p.colIndex === u.colEnd && p.rowIndex > u.rowEnd) c(!0);
818
- else if (t === Y.Up && p.colIndex === u.colStart && p.rowIndex < u.rowStart) c(!1);
815
+ if (t === q.Right && p.colIndex > u.colEnd && p.rowIndex === u.rowEnd) c(!0);
816
+ else if (t === q.Left && p.colIndex < u.colStart && p.rowIndex === u.rowStart) c(!1);
817
+ else if (t === q.Down && p.colIndex === u.colEnd && p.rowIndex > u.rowEnd) c(!0);
818
+ else if (t === q.Up && p.colIndex === u.colStart && p.rowIndex < u.rowStart) c(!1);
819
819
  else {
820
820
  let I = p.rowIndex, M = p.colIndex;
821
821
  switch (t) {
822
- case Y.Right:
822
+ case q.Right:
823
823
  M > u.colEnd && (I = de(n, I + 1, t, u.rowEnd + 1), M = u.colStart, I > u.rowEnd && (I = u.rowStart));
824
824
  break;
825
- case Y.Left:
825
+ case q.Left:
826
826
  M < u.colStart && (I = de(n, I - 1, t, u.rowStart - 1), M = u.colEnd, I < u.rowStart && (I = u.rowEnd));
827
827
  break;
828
- case Y.Down:
828
+ case q.Down:
829
829
  I > u.rowEnd && (M = de(o, M + 1, t, u.colEnd + 1), I = u.rowStart, M > u.colEnd && (M = u.colStart));
830
830
  break;
831
- case Y.Up: I < u.rowStart && (M = de(o, M - 1, t, u.colStart - 1), I = u.rowEnd, M < u.colStart && (M = u.colEnd));
831
+ case q.Up: I < u.rowStart && (M = de(o, M - 1, t, u.colStart - 1), I = u.rowEnd, M < u.colStart && (M = u.colEnd));
832
832
  }
833
833
  p = {
834
834
  rowIndex: I,
@@ -836,28 +836,28 @@ function Ir(e, t = Y.Right, r, n, o, a = null) {
836
836
  };
837
837
  }
838
838
  let g = r(p);
839
- if (!br(g, u)) {
840
- let I = vr(g, u);
839
+ if (!Sr(g, u)) {
840
+ let I = Er(g, u);
841
841
  I && (g = I);
842
842
  }
843
843
  let T = {
844
- rowStart: de(n, g.rowStart, Y.Down, g.rowEnd),
845
- colStart: de(o, g.colStart, Y.Right, g.colEnd),
846
- rowEnd: de(n, g.rowEnd, Y.Up, g.rowStart),
847
- colEnd: de(o, g.colEnd, Y.Left, g.colStart)
844
+ rowStart: de(n, g.rowStart, q.Down, g.rowEnd),
845
+ colStart: de(o, g.colStart, q.Right, g.colEnd),
846
+ rowEnd: de(n, g.rowEnd, q.Up, g.rowStart),
847
+ colEnd: de(o, g.colEnd, q.Left, g.colStart)
848
848
  };
849
849
  if (T.rowStart !== p.rowIndex || T.colStart !== p.colIndex) {
850
850
  switch (t) {
851
- case Y.Right:
851
+ case q.Right:
852
852
  l[h].colStart === T.colStart && l[h].colEnd === T.colEnd && (p.rowIndex = T.rowEnd), p.colIndex = T.colEnd;
853
853
  break;
854
- case Y.Left:
854
+ case q.Left:
855
855
  l[h].colStart === T.colStart && l[h].colEnd === T.colEnd && (p.rowIndex = T.rowStart), p.rowIndex === T.rowStart ? p.colIndex = T.colStart + 1 : p.colIndex = T.colStart;
856
856
  break;
857
- case Y.Down:
857
+ case q.Down:
858
858
  l[h].rowStart === T.rowStart && l[h].rowEnd === T.rowEnd && (p.colIndex = T.colEnd), p.rowIndex = T.rowEnd;
859
859
  break;
860
- case Y.Up: l[h].rowStart === T.rowStart && l[h].rowEnd === T.rowEnd && (p.colIndex = T.colStart), p.colIndex === T.colStart ? p.rowIndex = T.rowStart + 1 : p.rowIndex = T.rowStart;
860
+ case q.Up: l[h].rowStart === T.rowStart && l[h].rowEnd === T.rowEnd && (p.colIndex = T.colStart), p.colIndex === T.colStart ? p.rowIndex = T.rowStart + 1 : p.rowIndex = T.rowStart;
861
861
  }
862
862
  return Ir({
863
863
  cell: p,
@@ -908,7 +908,7 @@ var Zn = class {
908
908
  }
909
909
  };
910
910
  new Zn();
911
- var Je;
911
+ var Ye;
912
912
  he({
913
913
  EmptyBounds: () => to,
914
914
  EmptyRect: () => eo,
@@ -959,16 +959,16 @@ var $r = !(typeof window > "u" || !window.document || !window.document.createEle
959
959
  return typeof window == "object" && (e = window.devicePixelRatio || 1), e;
960
960
  }, Rr = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), oo = (e, t, r = "auto") => {
961
961
  if ((() => {
962
- if (Je === void 0) {
962
+ if (Ye === void 0) {
963
963
  let u = !1;
964
964
  try {
965
965
  document.createElement("div").scrollIntoView({ get container() {
966
966
  return u = !0, "nearest";
967
967
  } });
968
968
  } catch {}
969
- Je = u;
969
+ Ye = u;
970
970
  }
971
- return Je;
971
+ return Ye;
972
972
  })()) return void t.scrollIntoView({
973
973
  block: "nearest",
974
974
  inline: "nearest",
@@ -993,7 +993,7 @@ he({
993
993
  requestTimeout: () => po,
994
994
  throttle: () => lo
995
995
  });
996
- var Le = globalThis.requestAnimationFrame, io = globalThis.cancelAnimationFrame;
996
+ var ke = globalThis.requestAnimationFrame, io = globalThis.cancelAnimationFrame;
997
997
  function lo(e, t) {
998
998
  let r = null;
999
999
  return (...n) => {
@@ -1024,10 +1024,10 @@ var co = (e) => {
1024
1024
  r = !1, e(t);
1025
1025
  };
1026
1026
  return function(o) {
1027
- t = o, t && t.persist && t.persist(), r || (r = !0, Le(n));
1027
+ t = o, t && t.persist && t.persist(), r || (r = !0, ke(n));
1028
1028
  };
1029
1029
  }, uo = (e) => {
1030
- if (typeof Le == "function") Le(() => {
1030
+ if (typeof ke == "function") ke(() => {
1031
1031
  e();
1032
1032
  });
1033
1033
  else {
@@ -1036,11 +1036,11 @@ var co = (e) => {
1036
1036
  e();
1037
1037
  });
1038
1038
  }
1039
- }, Et = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), fo = (e) => {
1039
+ }, vt = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), fo = (e) => {
1040
1040
  io(e.id);
1041
1041
  }, po = (e, t) => {
1042
- let r = Et(), n = { id: Le(function o() {
1043
- Et() - r >= t ? e.call(null) : n.id = Le(o);
1042
+ let r = vt(), n = { id: ke(function o() {
1043
+ vt() - r >= t ? e.call(null) : n.id = ke(o);
1044
1044
  }) };
1045
1045
  return n;
1046
1046
  };
@@ -1049,15 +1049,15 @@ var mo = (e) => \`Invalid argument: '\${e}'.\`;
1049
1049
  he({
1050
1050
  APP_MIME_TYPE: () => go,
1051
1051
  DEFAULT_MIME_TYPE: () => "*/*",
1052
- JSONStableStringify: () => bo,
1052
+ JSONStableStringify: () => So,
1053
1053
  arrayBufferToBase64: () => Nr,
1054
- base64ToArrayBuffer: () => So,
1054
+ base64ToArrayBuffer: () => bo,
1055
1055
  blobToString: () => lt,
1056
1056
  isLittleEndian: () => wo,
1057
1057
  isNodeBuffer: () => ho,
1058
1058
  isSharedArrayBufferSupported: () => yo
1059
1059
  });
1060
- var go = "application/octet-stream", Ae = globalThis.Buffer, ho = (e) => Ae?.isBuffer(e) ?? !1, yo = typeof SharedArrayBuffer == "function" && (globalThis.crossOriginIsolated === void 0 || globalThis.crossOriginIsolated === !0), wo = new Uint8Array(new Uint16Array([1]).buffer)[0] === 1, vt = globalThis.FileReader, So = (e) => {
1060
+ var go = "application/octet-stream", Ae = globalThis.Buffer, ho = (e) => Ae?.isBuffer(e) ?? !1, yo = typeof SharedArrayBuffer == "function" && (globalThis.crossOriginIsolated === void 0 || globalThis.crossOriginIsolated === !0), wo = new Uint8Array(new Uint16Array([1]).buffer)[0] === 1, Et = globalThis.FileReader, bo = (e) => {
1061
1061
  let t = typeof globalThis.atob == "function" ? globalThis.atob(e) : Ae.from(e, "base64").toString("binary"), r = t.length, n = new Uint8Array(r);
1062
1062
  for (let o = 0; o < r; o++) n[o] = t.charCodeAt(o);
1063
1063
  return n.buffer;
@@ -1068,8 +1068,8 @@ var go = "application/octet-stream", Ae = globalThis.Buffer, ho = (e) => Ae?.isB
1068
1068
  if (Ae) return Ae.from(n, "binary").toString("base64");
1069
1069
  throw Error("Unsupported environment");
1070
1070
  }, lt = (e) => new Promise((t, r) => {
1071
- if (e) if (vt) {
1072
- let n = new vt();
1071
+ if (e) if (Et) {
1072
+ let n = new Et();
1073
1073
  n.onload = () => {
1074
1074
  t(n.result);
1075
1075
  }, n.onerror = () => {
@@ -1085,7 +1085,7 @@ var go = "application/octet-stream", Ae = globalThis.Buffer, ho = (e) => Ae?.isB
1085
1085
  } else r(/* @__PURE__ */ Error("Unsupported environment"));
1086
1086
  else t("");
1087
1087
  });
1088
- function bo(e, t) {
1088
+ function So(e, t) {
1089
1089
  t ||= {}, typeof t == "function" && (t = { cmp: t });
1090
1090
  let r = typeof t.cycles == "boolean" && t.cycles, n = t.cmp && (o = t.cmp, function(l) {
1091
1091
  return function(i, u) {
@@ -1124,13 +1124,13 @@ function bo(e, t) {
1124
1124
  return a.splice(p, 1), "{" + u + "}";
1125
1125
  })(e);
1126
1126
  }
1127
- var Eo;
1127
+ var vo;
1128
1128
  he({
1129
1129
  DATA_URL_PNG_PREFIX: () => _r,
1130
- getImageDataUrl: () => vo,
1130
+ getImageDataUrl: () => Eo,
1131
1131
  loadImageDetails: () => xo
1132
1132
  });
1133
- var _r = "data:image/png;base64,", kr = "Unable to resolve image.", xt = (e) => new Promise(async (t, r) => {
1133
+ var _r = "data:image/png;base64,", Lr = "Unable to resolve image.", xt = (e) => new Promise(async (t, r) => {
1134
1134
  let n = null;
1135
1135
  try {
1136
1136
  let o = n = new Image();
@@ -1147,8 +1147,8 @@ var _r = "data:image/png;base64,", kr = "Unable to resolve image.", xt = (e) =>
1147
1147
  } catch {
1148
1148
  n?.src && URL.revokeObjectURL(n.src);
1149
1149
  }
1150
- n || r(Error(kr));
1151
- }), vo = (e, t = 1) => new Promise(async (r, n) => {
1150
+ n || r(Error(Lr));
1151
+ }), Eo = (e, t = 1) => new Promise(async (r, n) => {
1152
1152
  let o = null;
1153
1153
  try {
1154
1154
  let a = o = new Image();
@@ -1173,8 +1173,8 @@ var _r = "data:image/png;base64,", kr = "Unable to resolve image.", xt = (e) =>
1173
1173
  } catch {
1174
1174
  o?.src && URL.revokeObjectURL(o.src);
1175
1175
  }
1176
- o || n(Error(kr));
1177
- }), Ye = "image/svg+xml", xo = async (e, t = null) => {
1176
+ o || n(Error(Lr));
1177
+ }), qe = "image/svg+xml", xo = async (e, t = null) => {
1178
1178
  let r = null, n = async () => {
1179
1179
  try {
1180
1180
  let a = t ?? "image/*", l = URL.createObjectURL(new Blob([e], { type: a }));
@@ -1186,16 +1186,16 @@ var _r = "data:image/png;base64,", kr = "Unable to resolve image.", xt = (e) =>
1186
1186
  } catch {}
1187
1187
  }, o = async () => {
1188
1188
  try {
1189
- let a = new TextDecoder().decode(e), l = URL.createObjectURL(new Blob([a], { type: Ye })), i = await xt(l);
1189
+ let a = new TextDecoder().decode(e), l = URL.createObjectURL(new Blob([a], { type: qe })), i = await xt(l);
1190
1190
  r = {
1191
- mimeType: t ?? Ye,
1191
+ mimeType: t ?? qe,
1192
1192
  naturalSize: i,
1193
1193
  asUrl: l,
1194
1194
  asSVGText: a
1195
1195
  };
1196
1196
  } catch {}
1197
1197
  };
1198
- if (t === Ye ? await o() : t?.startsWith("image/") ? await n() : (await n(), r || await o()), !r) throw Error("Failed to load image");
1198
+ if (t === qe ? await o() : t?.startsWith("image/") ? await n() : (await n(), r || await o()), !r) throw Error("Failed to load image");
1199
1199
  return r;
1200
1200
  }, Tt = /* @__PURE__ */ new Set(), To = (e) => {
1201
1201
  Tt.has(e) || (Tt.add(e), console.warn(\`Unknown property '\${e}' in update; ignoring.\`));
@@ -1224,34 +1224,34 @@ var _r = "data:image/png;base64,", kr = "Unable to resolve image.", xt = (e) =>
1224
1224
  h = null;
1225
1225
  let g = c.length;
1226
1226
  for (let T = 0; T < g; T++) {
1227
- let I = c[T], M, q = i?.[I];
1228
- if (q !== void 0) {
1229
- let v = u[I];
1230
- if (!v) {
1227
+ let I = c[T], M, H = i?.[I];
1228
+ if (H !== void 0) {
1229
+ let E = u[I];
1230
+ if (!E) {
1231
1231
  To(I);
1232
1232
  continue;
1233
1233
  }
1234
- M = t(q, v, o, a?.[I], l);
1234
+ M = t(H, E, o, a?.[I], l);
1235
1235
  } else M = a?.[I];
1236
- M == null ? l && q === null && (h ??= {}, h[I] = null) : (h ??= {}, h[I] = M);
1236
+ M == null ? l && H === null && (h ??= {}, h[I] = null) : (h ??= {}, h[I] = M);
1237
1237
  }
1238
1238
  }
1239
1239
  return h;
1240
1240
  };
1241
- })(Eo ||= {});
1241
+ })(vo ||= {});
1242
1242
  var pt = {
1243
1243
  code: "safari",
1244
1244
  message: \`The Safari browser does not support advanced copy and paste.
1245
1245
  Copy and paste will be limited to within the browser tab.
1246
1246
 
1247
1247
  Please use Chrome or Edge if external copy and paste is required.\`
1248
- }, Lr = {
1248
+ }, kr = {
1249
1249
  code: "perms",
1250
1250
  message: \`You do not have permissions to access the clipboard.
1251
1251
  All copy and paste operations will be limited to the browser tab.\`
1252
- }, Ct = Xe() === fe.Safari ? pt : Lr, Co = {
1252
+ }, Ct = Xe() === fe.Safari ? pt : kr, Co = {
1253
1253
  Safari: pt,
1254
- Perms: Lr,
1254
+ Perms: kr,
1255
1255
  PermsWrite: Ct,
1256
1256
  PermsRead: Ct
1257
1257
  }, Ze = async () => new Promise((e) => {
@@ -1280,7 +1280,7 @@ All copy and paste operations will be limited to the browser tab.\`
1280
1280
  }, Or = async (e) => {
1281
1281
  if (!e) return null;
1282
1282
  try {
1283
- return await e.read({ unsanitized: [H.Html] });
1283
+ return await e.read({ unsanitized: [W.Html] });
1284
1284
  } catch {}
1285
1285
  return await e.read();
1286
1286
  }, Ao = async (e, t) => {
@@ -1313,7 +1313,7 @@ if (!globalThis.ClipboardItem) {
1313
1313
  }
1314
1314
  globalThis.ClipboardItem = t;
1315
1315
  }
1316
- var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1316
+ var At, st = async (e, t = W.Html) => new Promise(async (r, n) => {
1317
1317
  try {
1318
1318
  let o = await Ao(e, t);
1319
1319
  if (o) {
@@ -1327,28 +1327,28 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1327
1327
  } catch (o) {
1328
1328
  n(o);
1329
1329
  }
1330
- }), It = async (e, t = H.Html) => {
1330
+ }), It = async (e, t = W.Html) => {
1331
1331
  let r = await st(e, t);
1332
1332
  if (!r) return null;
1333
1333
  let n = null;
1334
1334
  try {
1335
- n = new DOMParser().parseFromString(r, H.Html);
1335
+ n = new DOMParser().parseFromString(r, W.Html);
1336
1336
  } catch {
1337
1337
  console.warn("Can't parse html from clipboard.");
1338
1338
  }
1339
1339
  return n;
1340
1340
  }, Io = async (e) => {
1341
1341
  e && await e.writeText("");
1342
- }, Oe = "clipboard-uuid", Re = "web text/uuid", $t = (e) => \`<div style="display:none" \${Oe}="\${e}"/>\`, Rt = { type: H.Plain }, Nt = { type: H.Html }, _t = { type: Re }, $o = (e, t) => {
1342
+ }, Oe = "clipboard-uuid", Re = "web text/uuid", $t = (e) => \`<div style="display:none" \${Oe}="\${e}"/>\`, Rt = { type: W.Plain }, Nt = { type: W.Html }, _t = { type: Re }, $o = (e, t) => {
1343
1343
  let r = null;
1344
1344
  try {
1345
- let n = new DOMParser().parseFromString(t, H.Html);
1345
+ let n = new DOMParser().parseFromString(t, W.Html);
1346
1346
  n.body.firstElementChild?.setAttribute(Oe, e), r = n.getElementsByTagName("body")[0].innerHTML;
1347
1347
  } catch (n) {
1348
1348
  console.warn("Can't embed uuid.", n);
1349
1349
  }
1350
1350
  return r;
1351
- }, kt = (e, t) => {
1351
+ }, Lt = (e, t) => {
1352
1352
  if (!t || !e) return !1;
1353
1353
  try {
1354
1354
  let r = t.querySelectorAll(\`[\${Oe}="\${e}"]\`);
@@ -1358,7 +1358,7 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1358
1358
  } catch {
1359
1359
  return !1;
1360
1360
  }
1361
- }, Lt = class {
1361
+ }, kt = class {
1362
1362
  constructor(e) {
1363
1363
  if (this._state = null, this._nativeClipboard = null, this._onFocus = null, this._onBlur = null, e?.nativeClipboard === void 0 || e?.nativeClipboard === !0) try {
1364
1364
  this._nativeClipboard = globalThis?.navigator.clipboard;
@@ -1373,8 +1373,8 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1373
1373
  await Ze();
1374
1374
  let e = await st(this._nativeClipboard, Re);
1375
1375
  if (!this._state || e && e === this._state.uuid) return !0;
1376
- let t = await It(this._nativeClipboard, H.Html);
1377
- return !this._state || (kt(this._state.uuid, t) || this.clear(), !0);
1376
+ let t = await It(this._nativeClipboard, W.Html);
1377
+ return !this._state || (Lt(this._state.uuid, t) || this.clear(), !0);
1378
1378
  }, async (e) => {
1379
1379
  e?.message === "denied" || e.message?.includes("Document is not focused") || Xe() === fe.Safari || console.warn("Unable to detect clipboard changes: ", e);
1380
1380
  });
@@ -1396,8 +1396,8 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1396
1396
  if (await Ze(), this._state?.uuid) {
1397
1397
  let t = await st(this._nativeClipboard, Re);
1398
1398
  if (t && t === e._state?.uuid) return !0;
1399
- let r = await It(this._nativeClipboard, H.Html);
1400
- if (kt(e._state?.uuid, r)) return !0;
1399
+ let r = await It(this._nativeClipboard, W.Html);
1400
+ if (Lt(e._state?.uuid, r)) return !0;
1401
1401
  }
1402
1402
  return e._state = {
1403
1403
  items: await Or(this._nativeClipboard),
@@ -1425,18 +1425,18 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1425
1425
  }, t.dispatchEvent(new Event("clipboardwrite")), t.dispatchEvent(new Event("clipboardchange"));
1426
1426
  };
1427
1427
  await Qe("clipboard-write", async () => {
1428
- await Ze(), n && o.length === 0 && (o.push(new ClipboardItem({ [Re]: new Blob([n], _t) })), o.push(new ClipboardItem({ [H.Html]: new Blob([$t(n)], Nt) })));
1428
+ await Ze(), n && o.length === 0 && (o.push(new ClipboardItem({ [Re]: new Blob([n], _t) })), o.push(new ClipboardItem({ [W.Html]: new Blob([$t(n)], Nt) })));
1429
1429
  for (let l = 0; l < Math.min(1, o.length); l++) {
1430
- let i = o[l], u = i.types.indexOf(H.Html), p = null;
1431
- if (u !== -1 && (p = await lt(await i.getType(H.Html)), p &&= $o(n, p)), !p && i.types.includes(H.Plain)) {
1432
- let I = await i.getType(H.Plain);
1430
+ let i = o[l], u = i.types.indexOf(W.Html), p = null;
1431
+ if (u !== -1 && (p = await lt(await i.getType(W.Html)), p &&= $o(n, p)), !p && i.types.includes(W.Plain)) {
1432
+ let I = await i.getType(W.Plain);
1433
1433
  if (I) {
1434
1434
  let M = null;
1435
1435
  typeof I == "string" ? (console.warn("text as string", I), M = I) : M = await lt(I), M && (p = \`<div \${Oe}="\${n}">\${M}</div>\`);
1436
1436
  }
1437
1437
  }
1438
- if (!p && i.types.includes(H.Png)) {
1439
- let I = Nr(await (await i.getType(H.Png)).arrayBuffer());
1438
+ if (!p && i.types.includes(W.Png)) {
1439
+ let I = Nr(await (await i.getType(W.Png)).arrayBuffer());
1440
1440
  p = \`<div \${Oe}="\${n}"><img src="\${_r + I}"/></div>\`;
1441
1441
  }
1442
1442
  !p && n && (p = $t(n));
@@ -1445,7 +1445,7 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1445
1445
  let M = g[I];
1446
1446
  c[M] = I === u ? h : i.getType(M);
1447
1447
  }
1448
- p && u === -1 && (c[H.Html] = h), n && (c[Re] = new Blob([n], _t)), r.push(new ClipboardItem(c));
1448
+ p && u === -1 && (c[W.Html] = h), n && (c[Re] = new Blob([n], _t)), r.push(new ClipboardItem(c));
1449
1449
  }
1450
1450
  try {
1451
1451
  r && r.length !== 0 ? await this._nativeClipboard.write(r) : await Io(this._nativeClipboard);
@@ -1462,19 +1462,19 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1462
1462
  let t = null, r = {};
1463
1463
  try {
1464
1464
  let o = await e.toText?.() ?? null;
1465
- o && (r[H.Plain] = new Blob([o ?? ""], Rt));
1465
+ o && (r[W.Plain] = new Blob([o ?? ""], Rt));
1466
1466
  } catch (o) {
1467
1467
  t = o;
1468
1468
  }
1469
1469
  try {
1470
1470
  let o = await e.toHtml?.() ?? null;
1471
- o && (r[H.Html] = new Blob([o], { type: H.Html }));
1471
+ o && (r[W.Html] = new Blob([o], { type: W.Html }));
1472
1472
  } catch (o) {
1473
1473
  t = o, console.warn("export to html", o);
1474
1474
  }
1475
1475
  try {
1476
1476
  let o = await e.toImage?.() ?? null;
1477
- o && (r[H.Png] = o);
1477
+ o && (r[W.Png] = o);
1478
1478
  } catch (o) {
1479
1479
  t = o, console.warn("export to png", o);
1480
1480
  }
@@ -1501,7 +1501,7 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1501
1501
  let r = await this.read(), n = null, o = r ? r.length : 0;
1502
1502
  for (let l = 0; !n && l < o; l++) {
1503
1503
  let i = r[l];
1504
- i.types.includes(H.Plain) && (n = await i.getType(H.Plain));
1504
+ i.types.includes(W.Plain) && (n = await i.getType(W.Plain));
1505
1505
  }
1506
1506
  if (!n) return void e("");
1507
1507
  let a = new FileReader();
@@ -1513,7 +1513,7 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1513
1513
  });
1514
1514
  }
1515
1515
  async writeText(e) {
1516
- let t = [new ClipboardItem({ [H.Plain]: new Blob([e], Rt) })];
1516
+ let t = [new ClipboardItem({ [W.Plain]: new Blob([e], Rt) })];
1517
1517
  return this._write({
1518
1518
  uuid: Ke(),
1519
1519
  items: t,
@@ -1546,13 +1546,13 @@ var At, st = async (e, t = H.Html) => new Promise(async (r, n) => {
1546
1546
  this._onFocus && globalThis.removeEventListener?.("focus", this._onFocus), this._onBlur && globalThis.removeEventListener?.("blur", this._onBlur);
1547
1547
  }
1548
1548
  };
1549
- (At = Lt ||= {}).ErrorMessages = Co, At.Global = new Lt();
1549
+ (At = kt ||= {}).ErrorMessages = Co, At.Global = new kt();
1550
1550
  var Mr = (e) => e === " " || e === " " || e === \`
1551
1551
  \` || e === "\\r";
1552
1552
  function Ot(e, t) {
1553
1553
  for (; t.i < e.length && Mr(e[t.i]);) t.i++;
1554
1554
  }
1555
- function Dr(e, t, r, n) {
1555
+ function Fr(e, t, r, n) {
1556
1556
  let o = [], a = "", l = () => {
1557
1557
  a &&= (o.push(a), "");
1558
1558
  };
@@ -1628,7 +1628,7 @@ function Ro(e, t, r, n) {
1628
1628
  if (g.startsWith("offset:")) h = parseInt(g.slice(7), 10) || 0;
1629
1629
  else {
1630
1630
  if (Ot(e, t), e[t.i] !== "{") break;
1631
- t.i++, p[g] = Dr(e, t, i !== "select" || r, n + 1), e[t.i] === "}" && t.i++;
1631
+ t.i++, p[g] = Fr(e, t, i !== "select" || r, n + 1), e[t.i] === "}" && t.i++;
1632
1632
  }
1633
1633
  }
1634
1634
  return {
@@ -1640,7 +1640,7 @@ function Ro(e, t, r, n) {
1640
1640
  };
1641
1641
  }
1642
1642
  var No = /* @__PURE__ */ new Map(), _o = /* @__PURE__ */ new Map(), Mt = /* @__PURE__ */ new Map();
1643
- function ko(e, t) {
1643
+ function Lo(e, t) {
1644
1644
  let r = t ? _o : No, n = r.get(e);
1645
1645
  if (!n) {
1646
1646
  try {
@@ -1652,7 +1652,7 @@ function ko(e, t) {
1652
1652
  }
1653
1653
  return n;
1654
1654
  }
1655
- function Lo(e) {
1655
+ function ko(e) {
1656
1656
  let t = Mt.get(e);
1657
1657
  if (!t) {
1658
1658
  try {
@@ -1677,7 +1677,7 @@ function ze(e, t, r, n) {
1677
1677
  continue;
1678
1678
  }
1679
1679
  if (a.kind === "hash") {
1680
- o += n === void 0 ? "#" : Lo(r).format(n);
1680
+ o += n === void 0 ? "#" : ko(r).format(n);
1681
1681
  continue;
1682
1682
  }
1683
1683
  let l = t?.[a.name];
@@ -1694,7 +1694,7 @@ function ze(e, t, r, n) {
1694
1694
  }
1695
1695
  let u = a.branches[\`=\${i}\`], p = i - a.offset;
1696
1696
  if (!u) {
1697
- let h = ko(r, a.type === "selectordinal").select(p);
1697
+ let h = Lo(r, a.type === "selectordinal").select(p);
1698
1698
  u = a.branches[h] ?? a.branches.other;
1699
1699
  }
1700
1700
  o += u ? ze(u, t, r, p) : String(l);
@@ -1702,7 +1702,93 @@ function ze(e, t, r, n) {
1702
1702
  return o;
1703
1703
  }
1704
1704
  new TextDecoder();
1705
- var Do;
1705
+ const w = Object.freeze({
1706
+ /** Exported function has no body. */
1707
+ NoBody: "SXL1001",
1708
+ /** Anonymous exported function is not allowed. */
1709
+ Anonymous: "SXL1002",
1710
+ /** Internal parse failure while analyzing the module. */
1711
+ ParseError: "SXL1003",
1712
+ /** Invalid parameter type. */
1713
+ InvalidParamType: "SXL2001",
1714
+ /** Invalid return type. */
1715
+ InvalidReturnType: "SXL2002",
1716
+ /** \`undefined\` / \`null\` / \`void\` is not valid as an input type. */
1717
+ UndefinedInput: "SXL2003",
1718
+ /** A type annotation is required but missing. */
1719
+ MissingType: "SXL2004",
1720
+ /** An \`Array\` must be typed (e.g. \`number[]\`, not bare \`[]\`). */
1721
+ UntypedArray: "SXL2005",
1722
+ /** A generic type must be supplied exactly one type argument. */
1723
+ GenericArity: "SXL2006",
1724
+ /** A return type cannot combine multiple modifiers (e.g. async + stream). */
1725
+ MultipleModifiers: "SXL2007",
1726
+ /** A context parameter must be the first parameter. */
1727
+ ContextNotFirst: "SXL2010",
1728
+ /** More than one \`Lambda\` parameter. */
1729
+ MultipleLambda: "SXL2020",
1730
+ /** A \`Lambda\` parameter must be the last parameter. */
1731
+ LambdaNotLast: "SXL2021",
1732
+ /** A \`Lambda\` parameter/return scalar type mismatch. */
1733
+ LambdaScalarMismatch: "SXL2022",
1734
+ /** \`Lambda\` is not valid as a return type. */
1735
+ LambdaReturn: "SXL2023",
1736
+ /** A bare function type is not valid as a return type. */
1737
+ FunctionReturn: "SXL2024",
1738
+ /** A \`Lambda\` function type has the wrong number of parameters. */
1739
+ LambdaArity: "SXL2025",
1740
+ /** Arrays of more than 2 dimensions are not supported. */
1741
+ ArrayDepth: "SXL2030",
1742
+ /** \`Repeating<T>\` used somewhere it cannot be (a return type, a rest parameter, nested in an array). */
1743
+ RepeatingPosition: "SXL2040",
1744
+ /** More than one \`Repeating<T>\` parameter. */
1745
+ MultipleRepeating: "SXL2041",
1746
+ /** A \`Repeating<T>\` group's slots are malformed (unlabelled tuple member, or a 1-element tuple). */
1747
+ RepeatingSlots: "SXL2042",
1748
+ /** An optional parameter/slot where a repeating group does not allow one. */
1749
+ RepeatingOptional: "SXL2043",
1750
+ /** \`Repeating<T, Max>\`'s maximum argument count is not a whole number in range. */
1751
+ RepeatingMax: "SXL2044",
1752
+ /** An enum mixes number and string members. */
1753
+ EnumMixed: "SXL2050",
1754
+ /** An enum member is not a constant number or string. */
1755
+ EnumMemberNotConstant: "SXL2051",
1756
+ /** A parameter type that is not declared in this module, so an enum behind it cannot be read. */
1757
+ EnumNotLocal: "SXL2052",
1758
+ /** An \`as const\` object used as a parameter type without its same-name type alias. */
1759
+ EnumMissingAlias: "SXL2053",
1760
+ /** An enum where no single argument is coerced to it (\`IRange<E>\`, \`Lazy<E>\`). */
1761
+ EnumPosition: "SXL2054",
1762
+ /** \`Omittable<E, V>\` whose \`V\` is neither a member of \`E\` nor \`null\`. */
1763
+ EnumOmittedValue: "SXL2055",
1764
+ /** No exported functions found in the module. */
1765
+ NoExports: "SXL3001",
1766
+ /** A \`@param\` tag references a parameter that does not exist. */
1767
+ UnknownParam: "SXL3002",
1768
+ /** A calculation function takes a built-in function's name. */
1769
+ BuiltInName: "SXL3003",
1770
+ /** A \`@returnKind\` tag names a value kind that does not exist, or names none at all. */
1771
+ UnknownReturnKind: "SXL3005",
1772
+ /** A calculation function's name (its \`@name\`, or else its own) is not a name a formula can call. */
1773
+ InvalidName: "SXL3006",
1774
+ /** Two functions in one module register under the same name (an \`@name\` repeats another's). */
1775
+ DuplicateName: "SXL3007",
1776
+ /** A function has no JSDoc description. */
1777
+ MissingSummary: "SXL9001",
1778
+ /** A \`@param\` is missing a description. */
1779
+ MissingParamDescription: "SXL9002",
1780
+ /**
1781
+ * Missing \`@returns\` on a non-void function.
1782
+ * @deprecated Retained for code stability but no longer emitted - Excel-style tooltips describe
1783
+ * behavior via the summary, so a standalone \`@returns\` warning is noise.
1784
+ */
1785
+ MissingReturns: "SXL9003",
1786
+ /** Two enum members share a value. */
1787
+ EnumDuplicateValue: "SXL9004",
1788
+ /** An enum member has no doc comment. */
1789
+ EnumMemberUndocumented: "SXL9005"
1790
+ });
1791
+ var Fo;
1706
1792
  (function(e) {
1707
1793
  e.MAX_TEXT_LENGTH = 32767;
1708
1794
  let t = e.MAX_SIGNIFICANT_DIGITS = 15;
@@ -1719,15 +1805,15 @@ var Do;
1719
1805
  }
1720
1806
  return a === null ? r : a.join("");
1721
1807
  };
1722
- })(Do ||= {});
1723
- var Pt, et, Fo, b, me = {
1808
+ })(Fo ||= {});
1809
+ var Ut, et, Do, S, me = {
1724
1810
  Number: "number",
1725
1811
  String: "string",
1726
1812
  Boolean: "boolean",
1727
1813
  Error: "error",
1728
1814
  RichData: "richData",
1729
1815
  Null: "null"
1730
- }, Ut = {
1816
+ }, Pt = {
1731
1817
  ...me,
1732
1818
  Date: "date"
1733
1819
  }, jt = {
@@ -1737,18 +1823,18 @@ var Pt, et, Fo, b, me = {
1737
1823
  Lambda: "lambda",
1738
1824
  Omitted: "omitted"
1739
1825
  };
1740
- (et = Pt ||= {}).Axis = {
1826
+ (et = Ut ||= {}).Axis = {
1741
1827
  Column: "column",
1742
1828
  Row: "row"
1743
1829
  }, et.AxisSelection = {
1744
- ...Pt.Axis,
1830
+ ...Ut.Axis,
1745
1831
  Both: "both"
1746
1832
  }, et.Direction = {
1747
1833
  Up: "up",
1748
1834
  Down: "down",
1749
1835
  Left: "left",
1750
1836
  Right: "right"
1751
- }, (Fo ||= {}).Aggregate = {
1837
+ }, (Do ||= {}).Aggregate = {
1752
1838
  Count: "count",
1753
1839
  NumericalCount: "numericalCount",
1754
1840
  Sum: "sum",
@@ -1800,11 +1886,11 @@ var Pt, et, Fo, b, me = {
1800
1886
  Timeout: "#TIMEOUT!"
1801
1887
  };
1802
1888
  class n extends Error {
1803
- constructor(N, k, pe, W) {
1804
- super(pe, W), this._label = k, this._code = N, this.details = W;
1889
+ constructor(N, L, pe, J) {
1890
+ super(pe, J), this._label = L, this._code = N, this.details = J;
1805
1891
  }
1806
1892
  static {
1807
- this.code = b.Code.Unknown;
1893
+ this.code = S.Code.Unknown;
1808
1894
  }
1809
1895
  get isFormulaError() {
1810
1896
  return !0;
@@ -1827,11 +1913,11 @@ var Pt, et, Fo, b, me = {
1827
1913
  }
1828
1914
  e.Known = n;
1829
1915
  class o extends n {
1830
- constructor(N, k) {
1831
- super(t.Parse, r.Parse, N, k);
1916
+ constructor(N, L) {
1917
+ super(t.Parse, r.Parse, N, L);
1832
1918
  }
1833
1919
  static {
1834
- this.code = b.Code.Parse;
1920
+ this.code = S.Code.Parse;
1835
1921
  }
1836
1922
  getDetails() {
1837
1923
  let N = this.details;
@@ -1845,195 +1931,195 @@ var Pt, et, Fo, b, me = {
1845
1931
  }
1846
1932
  e.Parse = o;
1847
1933
  class a extends n {
1848
- constructor(N, k) {
1849
- super(t.Null, r.Null, N, k);
1934
+ constructor(N, L) {
1935
+ super(t.Null, r.Null, N, L);
1850
1936
  }
1851
1937
  static {
1852
- this.code = b.Code.Null;
1938
+ this.code = S.Code.Null;
1853
1939
  }
1854
1940
  }
1855
1941
  e.Null = a;
1856
1942
  class l extends n {
1857
- constructor(N, k) {
1858
- super(t.Div0, r.Div0, N, k);
1943
+ constructor(N, L) {
1944
+ super(t.Div0, r.Div0, N, L);
1859
1945
  }
1860
1946
  static {
1861
- this.code = b.Code.Div0;
1947
+ this.code = S.Code.Div0;
1862
1948
  }
1863
1949
  }
1864
1950
  e.Div0 = l;
1865
1951
  class i extends n {
1866
- constructor(N, k) {
1867
- super(t.Value, r.Value, N, k);
1952
+ constructor(N, L) {
1953
+ super(t.Value, r.Value, N, L);
1868
1954
  }
1869
1955
  static {
1870
- this.code = b.Code.Value;
1956
+ this.code = S.Code.Value;
1871
1957
  }
1872
1958
  }
1873
1959
  e.Value = i;
1874
1960
  class u extends n {
1875
- constructor(N, k) {
1876
- super(t.Ref, r.Ref, N, k);
1961
+ constructor(N, L) {
1962
+ super(t.Ref, r.Ref, N, L);
1877
1963
  }
1878
1964
  static {
1879
- this.code = b.Code.Ref;
1965
+ this.code = S.Code.Ref;
1880
1966
  }
1881
1967
  }
1882
1968
  e.Ref = u;
1883
1969
  class p extends n {
1884
- constructor(N, k) {
1885
- super(t.Name, r.Name, N, k);
1970
+ constructor(N, L) {
1971
+ super(t.Name, r.Name, N, L);
1886
1972
  }
1887
1973
  static {
1888
- this.code = b.Code.Name;
1974
+ this.code = S.Code.Name;
1889
1975
  }
1890
1976
  }
1891
1977
  e.Name = p;
1892
1978
  class h extends n {
1893
- constructor(N, k) {
1894
- super(t.Num, r.Num, N, k);
1979
+ constructor(N, L) {
1980
+ super(t.Num, r.Num, N, L);
1895
1981
  }
1896
1982
  static {
1897
- this.code = b.Code.Num;
1983
+ this.code = S.Code.Num;
1898
1984
  }
1899
1985
  }
1900
1986
  e.Num = h;
1901
1987
  class c extends n {
1902
- constructor(N, k) {
1903
- super(t.NA, r.NA, N, k);
1988
+ constructor(N, L) {
1989
+ super(t.NA, r.NA, N, L);
1904
1990
  }
1905
1991
  static {
1906
- this.code = b.Code.NA;
1992
+ this.code = S.Code.NA;
1907
1993
  }
1908
1994
  }
1909
1995
  e.NA = c;
1910
1996
  class g extends n {
1911
- constructor(N, k) {
1912
- super(t.GettingData, r.GettingData, N, k);
1997
+ constructor(N, L) {
1998
+ super(t.GettingData, r.GettingData, N, L);
1913
1999
  }
1914
2000
  static {
1915
- this.code = b.Code.GettingData;
2001
+ this.code = S.Code.GettingData;
1916
2002
  }
1917
2003
  }
1918
2004
  e.GettingData = g;
1919
2005
  class T extends n {
1920
- constructor(N, k) {
1921
- super(t.Spill, r.Spill, N, k);
2006
+ constructor(N, L) {
2007
+ super(t.Spill, r.Spill, N, L);
1922
2008
  }
1923
2009
  static {
1924
- this.code = b.Code.Spill;
2010
+ this.code = S.Code.Spill;
1925
2011
  }
1926
2012
  }
1927
2013
  e.Spill = T;
1928
2014
  class I extends n {
1929
- constructor(N, k) {
1930
- super(t.Connect, r.Connect, N, k);
2015
+ constructor(N, L) {
2016
+ super(t.Connect, r.Connect, N, L);
1931
2017
  }
1932
2018
  static {
1933
- this.code = b.Code.Connect;
2019
+ this.code = S.Code.Connect;
1934
2020
  }
1935
2021
  }
1936
2022
  e.Connect = I;
1937
2023
  class M extends n {
1938
- constructor(N, k) {
1939
- super(t.Blocked, r.Blocked, N, k);
2024
+ constructor(N, L) {
2025
+ super(t.Blocked, r.Blocked, N, L);
1940
2026
  }
1941
2027
  static {
1942
- this.code = b.Code.Blocked;
2028
+ this.code = S.Code.Blocked;
1943
2029
  }
1944
2030
  }
1945
2031
  e.Blocked = M;
1946
- class q extends n {
1947
- constructor(N, k) {
1948
- super(t.Unknown, r.Unknown, N, k);
2032
+ class H extends n {
2033
+ constructor(N, L) {
2034
+ super(t.Unknown, r.Unknown, N, L);
1949
2035
  }
1950
2036
  static {
1951
- this.code = b.Code.Unknown;
2037
+ this.code = S.Code.Unknown;
1952
2038
  }
1953
2039
  }
1954
- e.Unknown = q;
1955
- class v extends n {
1956
- constructor(N, k) {
1957
- super(t.Field, r.Field, N, k);
2040
+ e.Unknown = H;
2041
+ class E extends n {
2042
+ constructor(N, L) {
2043
+ super(t.Field, r.Field, N, L);
1958
2044
  }
1959
2045
  static {
1960
- this.code = b.Code.Field;
2046
+ this.code = S.Code.Field;
1961
2047
  }
1962
2048
  }
1963
- e.Field = v;
2049
+ e.Field = E;
1964
2050
  class C extends n {
1965
- constructor(N, k) {
1966
- super(t.Calc, r.Calc, N, k);
2051
+ constructor(N, L) {
2052
+ super(t.Calc, r.Calc, N, L);
1967
2053
  }
1968
2054
  static {
1969
- this.code = b.Code.Calc;
2055
+ this.code = S.Code.Calc;
1970
2056
  }
1971
2057
  }
1972
2058
  e.Calc = C;
1973
2059
  class R extends n {
1974
- constructor(N, k) {
1975
- super(t.Busy, r.Busy, N, k);
2060
+ constructor(N, L) {
2061
+ super(t.Busy, r.Busy, N, L);
1976
2062
  }
1977
2063
  static {
1978
- this.code = b.Code.Busy;
2064
+ this.code = S.Code.Busy;
1979
2065
  }
1980
2066
  }
1981
2067
  e.Busy = R;
1982
- class U extends n {
1983
- constructor(N, k) {
1984
- super(t.Python, r.Python, N, k);
2068
+ class P extends n {
2069
+ constructor(N, L) {
2070
+ super(t.Python, r.Python, N, L);
1985
2071
  }
1986
2072
  static {
1987
- this.code = b.Code.Python;
2073
+ this.code = S.Code.Python;
1988
2074
  }
1989
2075
  }
1990
- e.Python = U;
2076
+ e.Python = P;
1991
2077
  class Z extends n {
1992
- constructor(N, k) {
1993
- super(t.Timeout, r.Timeout, N, k);
2078
+ constructor(N, L) {
2079
+ super(t.Timeout, r.Timeout, N, L);
1994
2080
  }
1995
2081
  static {
1996
- this.code = b.Code.Timeout;
2082
+ this.code = S.Code.Timeout;
1997
2083
  }
1998
2084
  }
1999
2085
  e.Timeout = Z;
2000
- })(b ||= {});
2086
+ })(S ||= {});
2001
2087
  var te = {};
2002
- te[b.Code.Parse] = b.Parse, te[b.Code.Null] = b.Null, te[b.Code.Div0] = b.Div0, te[b.Code.Value] = b.Value, te[b.Code.Ref] = b.Ref, te[b.Code.Name] = b.Name, te[b.Code.Num] = b.Num, te[b.Code.NA] = b.NA, te[b.Code.GettingData] = b.GettingData, te[b.Code.Spill] = b.Spill, te[b.Code.Connect] = b.Connect, te[b.Code.Blocked] = b.Blocked, te[b.Code.Unknown] = b.Unknown, te[b.Code.Field] = b.Field, te[b.Code.Calc] = b.Calc, te[b.Code.Busy] = b.Busy, te[b.Code.Python] = b.Python, te[b.Code.Timeout] = b.Timeout;
2003
- var Fr = /* @__PURE__ */ new Map(), Pr = /* @__PURE__ */ new Map(), Ur = /* @__PURE__ */ new Map(), jr = /* @__PURE__ */ new Map(), Bt = Object.keys(te);
2088
+ te[S.Code.Parse] = S.Parse, te[S.Code.Null] = S.Null, te[S.Code.Div0] = S.Div0, te[S.Code.Value] = S.Value, te[S.Code.Ref] = S.Ref, te[S.Code.Name] = S.Name, te[S.Code.Num] = S.Num, te[S.Code.NA] = S.NA, te[S.Code.GettingData] = S.GettingData, te[S.Code.Spill] = S.Spill, te[S.Code.Connect] = S.Connect, te[S.Code.Blocked] = S.Blocked, te[S.Code.Unknown] = S.Unknown, te[S.Code.Field] = S.Field, te[S.Code.Calc] = S.Calc, te[S.Code.Busy] = S.Busy, te[S.Code.Python] = S.Python, te[S.Code.Timeout] = S.Timeout;
2089
+ var Dr = /* @__PURE__ */ new Map(), Ur = /* @__PURE__ */ new Map(), Pr = /* @__PURE__ */ new Map(), jr = /* @__PURE__ */ new Map(), Bt = Object.keys(te);
2004
2090
  for (let e = 0; e < Bt.length; e++) {
2005
2091
  let t = te[Bt[e]], r = new t();
2006
- Ur.set(r.getLabel(), t), jr.set(r.getCode(), t), Fr.set(r.getLabel(), r), Pr.set(r.getCode(), r);
2092
+ Pr.set(r.getLabel(), t), jr.set(r.getCode(), t), Dr.set(r.getLabel(), r), Ur.set(r.getCode(), r);
2007
2093
  }
2008
2094
  (function(e) {
2009
- let t = e.getBuiltInByCode = (r) => Pr.get(r);
2095
+ let t = e.getBuiltInByCode = (r) => Ur.get(r);
2010
2096
  e.BuiltIn = {
2011
- Parse: t(b.Code.Parse),
2012
- Null: t(b.Code.Null),
2013
- Div0: t(b.Code.Div0),
2014
- Value: t(b.Code.Value),
2015
- Ref: t(b.Code.Ref),
2016
- Name: t(b.Code.Name),
2017
- Num: t(b.Code.Num),
2018
- NA: t(b.Code.NA),
2019
- GettingData: t(b.Code.GettingData),
2020
- Spill: t(b.Code.Spill),
2021
- Connect: t(b.Code.Connect),
2022
- Blocked: t(b.Code.Blocked),
2023
- Unknown: t(b.Code.Unknown),
2024
- Field: t(b.Code.Field),
2025
- Calc: t(b.Code.Calc),
2026
- Busy: t(b.Code.Busy),
2027
- Python: t(b.Code.Python),
2028
- Timeout: t(b.Code.Timeout)
2097
+ Parse: t(S.Code.Parse),
2098
+ Null: t(S.Code.Null),
2099
+ Div0: t(S.Code.Div0),
2100
+ Value: t(S.Code.Value),
2101
+ Ref: t(S.Code.Ref),
2102
+ Name: t(S.Code.Name),
2103
+ Num: t(S.Code.Num),
2104
+ NA: t(S.Code.NA),
2105
+ GettingData: t(S.Code.GettingData),
2106
+ Spill: t(S.Code.Spill),
2107
+ Connect: t(S.Code.Connect),
2108
+ Blocked: t(S.Code.Blocked),
2109
+ Unknown: t(S.Code.Unknown),
2110
+ Field: t(S.Code.Field),
2111
+ Calc: t(S.Code.Calc),
2112
+ Busy: t(S.Code.Busy),
2113
+ Python: t(S.Code.Python),
2114
+ Timeout: t(S.Code.Timeout)
2029
2115
  }, e.newTypedError = (r, n, o) => {
2030
2116
  let a;
2031
- return a = typeof r == "string" ? Ur.get(r) : jr.get(r), a ||= b.Unknown, new a(n, o);
2032
- }, e.getBuiltInByLabel = (r) => Fr.get(r), e.isError = function(r, n) {
2117
+ return a = typeof r == "string" ? Pr.get(r) : jr.get(r), a ||= S.Unknown, new a(n, o);
2118
+ }, e.getBuiltInByLabel = (r) => Dr.get(r), e.isError = function(r, n) {
2033
2119
  return !!r && r.isFormulaError === !0 && (n === void 0 || r.getCode() === n);
2034
2120
  };
2035
- })(b ||= {});
2036
- var Po = class {
2121
+ })(S ||= {});
2122
+ var Uo = class {
2037
2123
  createRange(e, t, r) {
2038
2124
  throw new oe();
2039
2125
  }
@@ -2125,7 +2211,7 @@ var Po = class {
2125
2211
  }
2126
2212
  parseAsLiteral(e) {
2127
2213
  let t = e.toUpperCase();
2128
- return t === "TRUE" || t !== "FALSE" && b.getBuiltInByLabel(t);
2214
+ return t === "TRUE" || t !== "FALSE" && S.getBuiltInByLabel(t);
2129
2215
  }
2130
2216
  toText(e) {
2131
2217
  return typeof e == "string" ? e : e == null ? "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : e?.isFormulaError ? e.getLabel() : String(e);
@@ -2136,7 +2222,7 @@ var Po = class {
2136
2222
  return n === o ? e < t ? -1 : +(e > t) : n < o ? -1 : 1;
2137
2223
  }
2138
2224
  getRuntime() {
2139
- return Uo;
2225
+ return Po;
2140
2226
  }
2141
2227
  getArgs() {
2142
2228
  throw new oe(Br);
@@ -2158,7 +2244,7 @@ var Po = class {
2158
2244
  rowStart: 0,
2159
2245
  colEnd: 2 ** 14 - 1,
2160
2246
  rowEnd: 2 ** 20 - 1
2161
- }), Uo = {
2247
+ }), Po = {
2162
2248
  isDate1904: () => !1,
2163
2249
  getLocale: () => zt.tag,
2164
2250
  getLocaleProfile: () => zt,
@@ -2170,12 +2256,12 @@ var Po = class {
2170
2256
  getOS: () => "unknown",
2171
2257
  getUser: () => "unidentified",
2172
2258
  getDescription: () => "Stubbed Formula Context"
2173
- }, jo = 2958465, Pe = new Po(), Bo = class {
2259
+ }, jo = 2958465, Ue = new Uo(), Bo = class {
2174
2260
  constructor() {
2175
- this._scope = Pe, this._argsFn = null;
2261
+ this._scope = Ue, this._argsFn = null;
2176
2262
  }
2177
2263
  _setScope(e) {
2178
- this._scope = e ?? Pe;
2264
+ this._scope = e ?? Ue;
2179
2265
  }
2180
2266
  _getScope() {
2181
2267
  return this._scope;
@@ -2203,7 +2289,7 @@ var Po = class {
2203
2289
  }
2204
2290
  parseAsLiteral(e) {
2205
2291
  let t = this._getScope();
2206
- return t.parseAsLiteral ? t.parseAsLiteral(e) : Pe.parseAsLiteral(e);
2292
+ return t.parseAsLiteral ? t.parseAsLiteral(e) : Ue.parseAsLiteral(e);
2207
2293
  }
2208
2294
  toText(e) {
2209
2295
  return this._getScope().toText(e);
@@ -2290,7 +2376,7 @@ var Po = class {
2290
2376
  return this._getScope().getAddress(e, t);
2291
2377
  }
2292
2378
  compare(e, t, r) {
2293
- return this._getScope().compare?.(e, t, r) ?? Pe.compare(e, t, r);
2379
+ return this._getScope().compare?.(e, t, r) ?? Ue.compare(e, t, r);
2294
2380
  }
2295
2381
  getRuntime() {
2296
2382
  return this._getScope().getRuntime();
@@ -2388,92 +2474,7 @@ var Po = class {
2388
2474
  })
2389
2475
  });
2390
2476
  new Bo();
2391
- const w = Object.freeze({
2392
- /** Exported function has no body. */
2393
- NoBody: "SXL1001",
2394
- /** Anonymous exported function is not allowed. */
2395
- Anonymous: "SXL1002",
2396
- /** Internal parse failure while analyzing the module. */
2397
- ParseError: "SXL1003",
2398
- /** Invalid parameter type. */
2399
- InvalidParamType: "SXL2001",
2400
- /** Invalid return type. */
2401
- InvalidReturnType: "SXL2002",
2402
- /** \`undefined\` / \`null\` / \`void\` is not valid as an input type. */
2403
- UndefinedInput: "SXL2003",
2404
- /** A type annotation is required but missing. */
2405
- MissingType: "SXL2004",
2406
- /** An \`Array\` must be typed (e.g. \`number[]\`, not bare \`[]\`). */
2407
- UntypedArray: "SXL2005",
2408
- /** A generic type must be supplied exactly one type argument. */
2409
- GenericArity: "SXL2006",
2410
- /** A return type cannot combine multiple modifiers (e.g. async + stream). */
2411
- MultipleModifiers: "SXL2007",
2412
- /** A context parameter must be the first parameter. */
2413
- ContextNotFirst: "SXL2010",
2414
- /** More than one \`Lambda\` parameter. */
2415
- MultipleLambda: "SXL2020",
2416
- /** A \`Lambda\` parameter must be the last parameter. */
2417
- LambdaNotLast: "SXL2021",
2418
- /** A \`Lambda\` parameter/return scalar type mismatch. */
2419
- LambdaScalarMismatch: "SXL2022",
2420
- /** \`Lambda\` is not valid as a return type. */
2421
- LambdaReturn: "SXL2023",
2422
- /** A bare function type is not valid as a return type. */
2423
- FunctionReturn: "SXL2024",
2424
- /** A \`Lambda\` function type has the wrong number of parameters. */
2425
- LambdaArity: "SXL2025",
2426
- /** Arrays of more than 2 dimensions are not supported. */
2427
- ArrayDepth: "SXL2030",
2428
- /** \`Repeating<T>\` used somewhere it cannot be (a return type, a rest parameter, nested in an array). */
2429
- RepeatingPosition: "SXL2040",
2430
- /** More than one \`Repeating<T>\` parameter. */
2431
- MultipleRepeating: "SXL2041",
2432
- /** A \`Repeating<T>\` group's slots are malformed (unlabelled tuple member, or a 1-element tuple). */
2433
- RepeatingSlots: "SXL2042",
2434
- /** An optional parameter/slot where a repeating group does not allow one. */
2435
- RepeatingOptional: "SXL2043",
2436
- /** \`Repeating<T, Max>\`'s maximum argument count is not a whole number in range. */
2437
- RepeatingMax: "SXL2044",
2438
- /** An enum mixes number and string members. */
2439
- EnumMixed: "SXL2050",
2440
- /** An enum member is not a constant number or string. */
2441
- EnumMemberNotConstant: "SXL2051",
2442
- /** A parameter type that is not declared in this module, so an enum behind it cannot be read. */
2443
- EnumNotLocal: "SXL2052",
2444
- /** An \`as const\` object used as a parameter type without its same-name type alias. */
2445
- EnumMissingAlias: "SXL2053",
2446
- /** An enum where no single argument is coerced to it (\`IRange<E>\`, \`Lazy<E>\`). */
2447
- EnumPosition: "SXL2054",
2448
- /** \`Omittable<E, V>\` whose \`V\` is neither a member of \`E\` nor \`null\`. */
2449
- EnumOmittedValue: "SXL2055",
2450
- /** No exported functions found in the module. */
2451
- NoExports: "SXL3001",
2452
- /** A \`@param\` tag references a parameter that does not exist. */
2453
- UnknownParam: "SXL3002",
2454
- /** A calculation function takes a built-in function's name. */
2455
- BuiltInName: "SXL3003",
2456
- /** A \`@returnKind\` tag names a value kind that does not exist, or names none at all. */
2457
- UnknownReturnKind: "SXL3005",
2458
- /** A calculation function's name (its \`@name\`, or else its own) is not a name a formula can call. */
2459
- InvalidName: "SXL3006",
2460
- /** Two functions in one module register under the same name (an \`@name\` repeats another's). */
2461
- DuplicateName: "SXL3007",
2462
- /** A function has no JSDoc description. */
2463
- MissingSummary: "SXL9001",
2464
- /** A \`@param\` is missing a description. */
2465
- MissingParamDescription: "SXL9002",
2466
- /**
2467
- * Missing \`@returns\` on a non-void function.
2468
- * @deprecated Retained for code stability but no longer emitted - Excel-style tooltips describe
2469
- * behavior via the summary, so a standalone \`@returns\` warning is noise.
2470
- */
2471
- MissingReturns: "SXL9003",
2472
- /** Two enum members share a value. */
2473
- EnumDuplicateValue: "SXL9004",
2474
- /** An enum member has no doc comment. */
2475
- EnumMemberUndocumented: "SXL9005"
2476
- }), Ko = [
2477
+ const Ko = [
2477
2478
  {
2478
2479
  name: "param",
2479
2480
  group: "jsdoc",
@@ -2554,21 +2555,21 @@ const ct = /* @__PURE__ */ new Map([["IReferenceRange", "p"], ["IRange", "r"]]),
2554
2555
  const n = t.get(r);
2555
2556
  t.set(\`\${e}.\${r}\`, n);
2556
2557
  });
2557
- }, qo = /* @__PURE__ */ new Map([
2558
+ }, Ho = /* @__PURE__ */ new Map([
2558
2559
  ["Scalar", "*"],
2559
2560
  ["Lambda", "l"],
2560
2561
  ["FormulaError.Known", me.Error],
2561
- ["Date", Ut.Date],
2562
- ["IRichData", Ut.RichData]
2563
- ]), zr = /* @__PURE__ */ new Map([["Repeating", "repeating"]]), Ho = /* @__PURE__ */ new Set(["Flatten", "SheetXL.Flatten"]), Vr = /* @__PURE__ */ new Set(["AcceptError"]), Xr = /* @__PURE__ */ new Set(["Omittable"]), Gr = /* @__PURE__ */ new Set(["NoLift"]), qr = /* @__PURE__ */ new Set(["NoFilter"]), Hr = /* @__PURE__ */ new Set(["Lazy"]), ut = /* @__PURE__ */ new Set(["ReportType"]), Vt = 255, Wo = /^[a-zA-Z_-￿][a-zA-Z0-9_.-￿]*$/, Jo = /^([a-z]{1,3})([0-9]+)$/i, Yo = /^r[0-9]*c[0-9]*$/i, Zo = (e) => {
2564
- if (Yo.test(e)) return !0;
2565
- const t = Jo.exec(e);
2562
+ ["Date", Pt.Date],
2563
+ ["IRichData", Pt.RichData]
2564
+ ]), zr = /* @__PURE__ */ new Map([["Repeating", "repeating"]]), Wo = /* @__PURE__ */ new Set(["Flatten", "SheetXL.Flatten"]), Vr = /* @__PURE__ */ new Set(["AcceptError"]), Xr = /* @__PURE__ */ new Set(["Omittable"]), Gr = /* @__PURE__ */ new Set(["NoLift"]), Hr = /* @__PURE__ */ new Set(["NoFilter"]), Wr = /* @__PURE__ */ new Set(["Lazy"]), ut = /* @__PURE__ */ new Set(["ReportType"]), Vt = 255, Jo = /^[a-zA-Z_-￿][a-zA-Z0-9_.-￿]*$/, Yo = /^([a-z]{1,3})([0-9]+)$/i, qo = /^r[0-9]*c[0-9]*$/i, Zo = (e) => {
2565
+ if (qo.test(e)) return !0;
2566
+ const t = Yo.exec(e);
2566
2567
  if (!t) return !1;
2567
2568
  let r = 0;
2568
2569
  for (const o of t[1].toUpperCase()) r = r * 26 + (o.charCodeAt(0) - 64);
2569
2570
  const n = Number(t[2]);
2570
2571
  return r <= 16384 && n >= 1 && n <= 1048576;
2571
- }, le = "SheetXL", ve = (e) => {
2572
+ }, le = "SheetXL", Ee = (e) => {
2572
2573
  const t = e.typeName.getText();
2573
2574
  return t.startsWith(\`\${le}.\`) ? t.slice(8) : t;
2574
2575
  };
@@ -2578,8 +2579,8 @@ gt(le, zr);
2578
2579
  Vr.add("SheetXL.AcceptError");
2579
2580
  Xr.add(\`\${le}.Omittable\`);
2580
2581
  Gr.add(\`\${le}.NoLift\`);
2581
- qr.add(\`\${le}.NoFilter\`);
2582
- Hr.add(\`\${le}.Lazy\`);
2582
+ Hr.add(\`\${le}.NoFilter\`);
2583
+ Wr.add(\`\${le}.Lazy\`);
2583
2584
  ut.add(\`\${le}.ReportType\`);
2584
2585
  const Qo = /* @__PURE__ */ new Map([
2585
2586
  ["Promise", () => ({ async: !0 })],
@@ -2590,7 +2591,7 @@ const Qo = /* @__PURE__ */ new Map([
2590
2591
  "IScript.ScriptContext",
2591
2592
  \`\${le}.IScript.ScriptContext\`,
2592
2593
  "ScriptContext"
2593
- ]), qt = (e, t) => {
2594
+ ]), Ht = (e, t) => {
2594
2595
  const r = t.literal;
2595
2596
  if (r === void 0) return;
2596
2597
  const n = e.SyntaxKind;
@@ -2647,34 +2648,34 @@ function ta(e, t, r, n) {
2647
2648
  };
2648
2649
  }
2649
2650
  }, h = (s, f, d, y) => {
2650
- const { start: E, length: L } = p(s);
2651
+ const { start: v, length: k } = p(s);
2651
2652
  i.push({
2652
- start: E,
2653
- length: L,
2653
+ start: v,
2654
+ length: k,
2654
2655
  severity: d,
2655
2656
  code: f,
2656
2657
  message: y
2657
2658
  });
2658
2659
  }, c = (s, f, d) => {
2659
2660
  h(s, f, "error", d);
2660
- }, g = (s) => s?.parent?.name?.escapedText, T = (s, f, d, y, E = !1, L = !1, j = !1) => {
2661
- const O = { count: 0 }, A = W(s, f, d, y, O, E, L, j);
2661
+ }, g = (s) => s?.parent?.name?.escapedText, T = (s, f, d, y, v = !1, k = !1, j = !1) => {
2662
+ const O = { count: 0 }, A = J(s, f, d, y, O, v, k, j);
2662
2663
  O.count >= 2 && (f.range || (f.range = "m", O.count -= 2), !y && O.count >= 1 && (O.count -= 1, O.count > 0 && c(s, w.ArrayDepth, \`Arrays of more than 2 dimensions are not supported: '\${g(s)}'.\`))), O.count > 0 && (f.arrayDepth = O.count);
2663
- const F = f.enum;
2664
- return F && (O.count > (j ? 1 : 0) || f.range) && !U.has(f) && (f.valueOrRange || (c(s, w.EnumPosition, \`A list cannot hold the enum '\${F.id}': '\${f.name ?? g(s)}'. Its members reach the body as they are, so nothing checks them against the enum. Take one value per argument ('...x: \${F.id}[]'), or type the list by its scalar ('\${F.type}').\`), delete f.enum)), A;
2665
- }, I = (s, f, d, y, E) => {
2664
+ const D = f.enum;
2665
+ return D && (O.count > (j ? 1 : 0) || f.range) && !P.has(f) && (f.valueOrRange || (c(s, w.EnumPosition, \`A list cannot hold the enum '\${D.id}': '\${f.name ?? g(s)}'. Its members reach the body as they are, so nothing checks them against the enum. Take one value per argument ('...x: \${D.id}[]'), or type the list by its scalar ('\${D.type}').\`), delete f.enum)), A;
2666
+ }, I = (s, f, d, y, v) => {
2666
2667
  if (f !== "Lambda" && f !== \`\${le}.Lambda\`) return !1;
2667
- const L = s.typeArguments;
2668
+ const k = s.typeArguments;
2668
2669
  let j = "*";
2669
- if (L && L.length === 2) if (E && L[0].kind === e.SyntaxKind.TupleType && (d.lambdaArity = L[0].elements.length), L[1].kind === e.SyntaxKind.AnyKeyword) j = "raw";
2670
+ if (k && k.length === 2) if (v && k[0].kind === e.SyntaxKind.TupleType && (d.lambdaArity = k[0].elements.length), k[1].kind === e.SyntaxKind.AnyKeyword) j = "raw";
2670
2671
  else {
2671
2672
  const O = {};
2672
- W(L[1], O, y, !1, { count: 0 }), j = O.scalar ?? "*";
2673
+ J(k[1], O, y, !1, { count: 0 }), j = O.scalar ?? "*";
2673
2674
  }
2674
- else if (L && L.length === 1 && L[0].kind !== e.SyntaxKind.TupleType && L[0].kind !== e.SyntaxKind.ArrayType) if (E && (d.lambdaArity = 2), L[0].kind === e.SyntaxKind.AnyKeyword) j = "raw";
2675
+ else if (k && k.length === 1 && k[0].kind !== e.SyntaxKind.TupleType && k[0].kind !== e.SyntaxKind.ArrayType) if (v && (d.lambdaArity = 2), k[0].kind === e.SyntaxKind.AnyKeyword) j = "raw";
2675
2676
  else {
2676
2677
  const O = {};
2677
- W(L[0], O, y, !1, { count: 0 }), j = O.scalar ?? "*";
2678
+ J(k[0], O, y, !1, { count: 0 }), j = O.scalar ?? "*";
2678
2679
  }
2679
2680
  return d.lambda = j, !0;
2680
2681
  }, M = (s, f, d, y) => {
@@ -2682,158 +2683,158 @@ function ta(e, t, r, n) {
2682
2683
  c(s, w.FunctionReturn, \`Function type is not a valid return type: '\${g(s)}'. Declare a 'Lambda' return instead.\`);
2683
2684
  return;
2684
2685
  }
2685
- const E = s.type, L = {};
2686
+ const v = s.type, k = {};
2686
2687
  let j = "*";
2687
- E && (E.kind === e.SyntaxKind.AnyKeyword ? j = "raw" : (W(E, L, d, !1, { count: 0 }), j = L.scalar ?? "*"));
2688
+ v && (v.kind === e.SyntaxKind.AnyKeyword ? j = "raw" : (J(v, k, d, !1, { count: 0 }), j = k.scalar ?? "*"));
2688
2689
  const O = s.parameters;
2689
2690
  O && !O.some((A) => A.dotDotDotToken) && (f.lambdaArity = O.length), f.lambda = j;
2690
- }, q = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new WeakSet(), Z = (s) => s !== void 0 && s.getSourceFile() === t, P = (s, f = !1) => {
2691
+ }, H = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new WeakSet(), Z = (s) => s !== void 0 && s.getSourceFile() === t, U = (s, f = !1) => {
2691
2692
  return s.getJsDocTags(r).find((y) => y.name === "name")?.text?.map((y) => y.text).join("").trim() || (f ? Qt.camelToPrettyCase(s.name) : s.name);
2692
2693
  }, N = (s) => {
2693
2694
  const f = s.getJsDocTags(r).find((d) => d.name === "deprecated");
2694
2695
  if (f) return f.text?.map((d) => d.text).join("").trim() || !0;
2695
- }, k = (s, f) => {
2696
- const d = e.isTypeReferenceNode(s) ? s.typeName : void 0, y = d ? r.getSymbolAtLocation(d) : void 0, E = y?.declarations?.length ? y : void 0;
2696
+ }, L = (s, f) => {
2697
+ const d = e.isTypeReferenceNode(s) ? s.typeName : void 0, y = d ? r.getSymbolAtLocation(d) : void 0, v = y?.declarations?.length ? y : void 0;
2697
2698
  if (d) {
2698
- if (E && E.flags & e.SymbolFlags.Alias) {
2699
+ if (v && v.flags & e.SymbolFlags.Alias) {
2699
2700
  c(s, w.EnumNotLocal, \`'\${d.getText()}' is imported, so its declaration cannot be read: '\${f}'. An enum must be declared in the module that uses it.\`);
2700
2701
  return;
2701
2702
  }
2702
- if (!E || !(E.flags & e.SymbolFlags.Type)) {
2703
- const S = d.getText();
2704
- if (!(E ? (E.flags & e.SymbolFlags.Variable) !== 0 : t.statements.some((x) => e.isVariableStatement(x) && x.declarationList.declarations.some((K) => e.isIdentifier(K.name) && K.name.text === S)))) return null;
2705
- c(s, w.EnumMissingAlias, \`'\${S}' is a value, not a type: '\${f}'. Pair the object with a same-name type — 'type \${S} = typeof \${S}[keyof typeof \${S}];' — or declare it as 'enum \${S} { … }'.\`);
2703
+ if (!v || !(v.flags & e.SymbolFlags.Type)) {
2704
+ const b = d.getText();
2705
+ if (!(v ? (v.flags & e.SymbolFlags.Variable) !== 0 : t.statements.some((x) => e.isVariableStatement(x) && x.declarationList.declarations.some((K) => e.isIdentifier(K.name) && K.name.text === b)))) return null;
2706
+ c(s, w.EnumMissingAlias, \`'\${b}' is a value, not a type: '\${f}'. Pair the object with a same-name type — 'type \${b} = typeof \${b}[keyof typeof \${b}];' — or declare it as 'enum \${b} { … }'.\`);
2706
2707
  return;
2707
2708
  }
2708
- const m = q.get(E);
2709
+ const m = H.get(v);
2709
2710
  if (m !== void 0) return m;
2710
- if (R.has(E)) return;
2711
+ if (R.has(v)) return;
2711
2712
  }
2712
- const L = [];
2713
+ const k = [];
2713
2714
  let j = !1;
2714
- if (E && E.flags & e.SymbolFlags.Enum) {
2715
- if (!E.declarations?.some(Z)) {
2716
- c(s, w.EnumNotLocal, \`'\${E.name}' is not declared in this module: '\${f}'. An enum must be declared in the module that uses it.\`);
2715
+ if (v && v.flags & e.SymbolFlags.Enum) {
2716
+ if (!v.declarations?.some(Z)) {
2717
+ c(s, w.EnumNotLocal, \`'\${v.name}' is not declared in this module: '\${f}'. An enum must be declared in the module that uses it.\`);
2717
2718
  return;
2718
2719
  }
2719
2720
  j = !0;
2720
2721
  let m = !1;
2721
- if (E.exports?.forEach((S) => {
2722
- const x = S.valueDeclaration;
2722
+ if (v.exports?.forEach((b) => {
2723
+ const x = b.valueDeclaration;
2723
2724
  if (!x || !e.isEnumMember(x)) return;
2724
2725
  const K = r.getConstantValue(x);
2725
2726
  if (K === void 0) {
2726
- c(x, w.EnumMemberNotConstant, \`'\${E.name}.\${S.name}' is not a constant number or string. A formula passes the VALUE, so every member needs one that can be read at compile time.\`), m = !0;
2727
+ c(x, w.EnumMemberNotConstant, \`'\${v.name}.\${b.name}' is not a constant number or string. A formula passes the VALUE, so every member needs one that can be read at compile time.\`), m = !0;
2727
2728
  return;
2728
2729
  }
2729
- L.push([
2730
- P(S, !0),
2730
+ k.push([
2731
+ U(b, !0),
2731
2732
  K,
2732
2733
  x,
2733
- $e(S.getDocumentationComment(r)),
2734
- N(S)
2734
+ $e(b.getDocumentationComment(r)),
2735
+ N(b)
2735
2736
  ]);
2736
2737
  }), m) {
2737
- R.add(E);
2738
+ R.add(v);
2738
2739
  return;
2739
2740
  }
2740
2741
  } else {
2741
- const m = r.getTypeFromTypeNode(s), S = e.TypeFlags.Null | e.TypeFlags.Undefined | e.TypeFlags.Void, x = (m.isUnion() ? m.types : [m]).filter((D) => !(D.flags & S)), K = [];
2742
- for (const D of x) {
2743
- if (!(D.flags & (e.TypeFlags.NumberLiteral | e.TypeFlags.StringLiteral))) return E && q.set(E, null), null;
2744
- K.push(D.value);
2742
+ const m = r.getTypeFromTypeNode(s), b = e.TypeFlags.Null | e.TypeFlags.Undefined | e.TypeFlags.Void, x = (m.isUnion() ? m.types : [m]).filter((F) => !(F.flags & b)), K = [];
2743
+ for (const F of x) {
2744
+ if (!(F.flags & (e.TypeFlags.NumberLiteral | e.TypeFlags.StringLiteral))) return v && H.set(v, null), null;
2745
+ K.push(F.value);
2745
2746
  }
2746
2747
  if (K.length === 0) return null;
2747
- const re = E?.declarations?.find((D) => e.isTypeAliasDeclaration(D)), J = e.isUnionTypeNode(s) ? s : re?.type;
2748
- if (J && e.isUnionTypeNode(J)) {
2749
- const D = J.types.map(($) => {
2748
+ const re = v?.declarations?.find((F) => e.isTypeAliasDeclaration(F)), Y = e.isUnionTypeNode(s) ? s : re?.type;
2749
+ if (Y && e.isUnionTypeNode(Y)) {
2750
+ const F = Y.types.map(($) => {
2750
2751
  const ne = r.getTypeFromTypeNode($);
2751
2752
  return ne.isLiteral() ? ne.value : void 0;
2752
2753
  }), _ = ($) => {
2753
- const ne = D.indexOf($);
2754
- return ne < 0 ? D.length : ne;
2754
+ const ne = F.indexOf($);
2755
+ return ne < 0 ? F.length : ne;
2755
2756
  };
2756
2757
  K.sort(($, ne) => _($) - _(ne));
2757
2758
  }
2758
- const ee = E && E.flags & e.SymbolFlags.Variable ? E.valueDeclaration : void 0, ge = new Set(K);
2759
- if (E && ee && Z(ee)) for (const D of r.getTypeOfSymbolAtLocation(E, ee).getProperties()) {
2760
- const _ = D.valueDeclaration, $ = r.getTypeOfSymbolAtLocation(D, _ ?? ee);
2759
+ const ee = v && v.flags & e.SymbolFlags.Variable ? v.valueDeclaration : void 0, ge = new Set(K);
2760
+ if (v && ee && Z(ee)) for (const F of r.getTypeOfSymbolAtLocation(v, ee).getProperties()) {
2761
+ const _ = F.valueDeclaration, $ = r.getTypeOfSymbolAtLocation(F, _ ?? ee);
2761
2762
  if (!($.flags & (e.TypeFlags.NumberLiteral | e.TypeFlags.StringLiteral))) continue;
2762
2763
  const ne = $.value;
2763
- K.includes(ne) && (j = !0, ge.delete(ne), L.push([
2764
- P(D, !0),
2764
+ K.includes(ne) && (j = !0, ge.delete(ne), k.push([
2765
+ U(F, !0),
2765
2766
  ne,
2766
2767
  _,
2767
- $e(D.getDocumentationComment(r)),
2768
- N(D)
2768
+ $e(F.getDocumentationComment(r)),
2769
+ N(F)
2769
2770
  ]));
2770
2771
  }
2771
- for (const D of K) ge.has(D) && L.push([
2772
- String(D),
2773
- D,
2772
+ for (const F of K) ge.has(F) && k.push([
2773
+ String(F),
2774
+ F,
2774
2775
  void 0,
2775
2776
  null
2776
2777
  ]);
2777
2778
  }
2778
- if (L.length === 0) return null;
2779
- const O = typeof L[0][1] == "number";
2780
- if (L.some(([, m]) => typeof m == "number" !== O)) {
2781
- c(s, w.EnumMixed, \`'\${E?.name ?? s.getText()}' mixes number and string members: '\${f}'. A parameter has one type, so an enum is all numbers or all strings.\`);
2779
+ if (k.length === 0) return null;
2780
+ const O = typeof k[0][1] == "number";
2781
+ if (k.some(([, m]) => typeof m == "number" !== O)) {
2782
+ c(s, w.EnumMixed, \`'\${v?.name ?? s.getText()}' mixes number and string members: '\${f}'. A parameter has one type, so an enum is all numbers or all strings.\`);
2782
2783
  return;
2783
2784
  }
2784
- const A = E ? P(E) : L.map(([, m]) => String(m)).join("|"), F = E ? void 0 : v.get(A);
2785
- if (F) return F;
2785
+ const A = v ? U(v) : k.map(([, m]) => String(m)).join("|"), D = v ? void 0 : E.get(A);
2786
+ if (D) return D;
2786
2787
  if (j) {
2787
2788
  const m = /* @__PURE__ */ new Map();
2788
- for (const [S, x, K, re] of L) {
2789
- const J = K?.name?.getText() ?? S, ee = m.get(x);
2790
- ee !== void 0 ? h(K ?? s, w.EnumDuplicateValue, "warning", \`'\${A}.\${J}' has the same value as '\${A}.\${ee}' (\${JSON.stringify(x)}). A formula passes the value, so the two cannot be told apart.\`) : m.set(x, J), re === "" && h(K ?? s, w.EnumMemberUndocumented, "warning", \`'\${A}.\${J}' is missing a description. Add a doc comment above the member — it is what the argument dropdown shows.\`);
2789
+ for (const [b, x, K, re] of k) {
2790
+ const Y = K?.name?.getText() ?? b, ee = m.get(x);
2791
+ ee !== void 0 ? h(K ?? s, w.EnumDuplicateValue, "warning", \`'\${A}.\${Y}' has the same value as '\${A}.\${ee}' (\${JSON.stringify(x)}). A formula passes the value, so the two cannot be told apart.\`) : m.set(x, Y), re === "" && h(K ?? s, w.EnumMemberUndocumented, "warning", \`'\${A}.\${Y}' is missing a description. Add a doc comment above the member — it is what the argument dropdown shows.\`);
2791
2792
  }
2792
2793
  }
2793
2794
  const V = {
2794
2795
  id: A,
2795
2796
  type: O ? me.Number : me.String,
2796
- members: L.map(([m, S, , , x]) => x ? [
2797
+ members: k.map(([m, b, , , x]) => x ? [
2797
2798
  m,
2798
- S,
2799
+ b,
2799
2800
  x
2800
- ] : [m, S])
2801
+ ] : [m, b])
2801
2802
  };
2802
- E ? q.set(E, V) : v.set(A, V);
2803
- const z = E ? $e(E.getDocumentationComment(r)) : "", B = {};
2804
- for (const [m, , , S] of L) S && (B[m] = { description: S });
2803
+ v ? H.set(v, V) : E.set(A, V);
2804
+ const z = v ? $e(v.getDocumentationComment(r)) : "", B = {};
2805
+ for (const [m, , , b] of k) b && (B[m] = { description: b });
2805
2806
  if (z || Object.keys(B).length > 0) {
2806
2807
  const m = {};
2807
2808
  z && (m.summary = z), Object.keys(B).length > 0 && (m.members = B), C.set(V, m);
2808
2809
  }
2809
2810
  return V;
2810
2811
  }, pe = (s, f, d, y) => {
2811
- const E = (O, A, F) => {
2812
+ const v = (O, A, D) => {
2812
2813
  const V = { name: O };
2813
- return T(A, V, d, !0), F && (V.optional = !0), y && !V.acceptError && (V.acceptError = !0), V;
2814
+ return T(A, V, d, !0), D && (V.optional = !0), y && !V.acceptError && (V.acceptError = !0), V;
2814
2815
  };
2815
- if (s.kind !== e.SyntaxKind.TupleType) return [E(f, s, !1)];
2816
- const L = s.elements;
2817
- if (L.length < 2) return c(s, w.RepeatingSlots, \`'\${f}': a repeating group of period \${L.length} must be spelled 'Repeating<T>' without the tuple.\`), null;
2816
+ if (s.kind !== e.SyntaxKind.TupleType) return [v(f, s, !1)];
2817
+ const k = s.elements;
2818
+ if (k.length < 2) return c(s, w.RepeatingSlots, \`'\${f}': a repeating group of period \${k.length} must be spelled 'Repeating<T>' without the tuple.\`), null;
2818
2819
  const j = [];
2819
- for (let O = 0; O < L.length; O++) {
2820
- const A = L[O];
2820
+ for (let O = 0; O < k.length; O++) {
2821
+ const A = k[O];
2821
2822
  if (A.kind !== e.SyntaxKind.NamedTupleMember) return c(A, w.RepeatingSlots, \`'\${f}': every slot of a repeating group must be labelled, e.g. 'Repeating<[criteriaRange: IRange, criteria: Scalar]>'.\`), null;
2822
- const F = !!A.questionToken;
2823
- if (F && O !== L.length - 1) return c(A, w.RepeatingOptional, \`'\${f}': only the LAST slot of a repeating group may be optional (slot '\${A.name?.getText?.()}' is not).\`), null;
2824
- j.push(E(A.name?.getText?.() ?? \`\${O}\`, A.type, F));
2823
+ const D = !!A.questionToken;
2824
+ if (D && O !== k.length - 1) return c(A, w.RepeatingOptional, \`'\${f}': only the LAST slot of a repeating group may be optional (slot '\${A.name?.getText?.()}' is not).\`), null;
2825
+ j.push(v(A.name?.getText?.() ?? \`\${O}\`, A.type, D));
2825
2826
  }
2826
2827
  return j;
2827
- }, W = (s, f, d, y, E, L = !1, j = !1, O = !1) => {
2828
+ }, J = (s, f, d, y, v, k = !1, j = !1, O = !1) => {
2828
2829
  if (!s) {
2829
2830
  c(s, w.MissingType, \`Type is not defined for '\${f?.name ?? "return"}'.\`);
2830
2831
  return;
2831
2832
  }
2832
- if (s.kind === e.SyntaxKind.ParenthesizedType) return W(s.type, f, d, y, E, L, j, O);
2833
+ if (s.kind === e.SyntaxKind.ParenthesizedType) return J(s.type, f, d, y, v, k, j, O);
2833
2834
  if (s.kind === e.SyntaxKind.UnionType) {
2834
- const A = (z) => z.kind === e.SyntaxKind.UndefinedKeyword || z.kind === e.SyntaxKind.VoidKeyword || z.kind === e.SyntaxKind.NullKeyword || z.kind === e.SyntaxKind.LiteralType && z.literal?.kind === e.SyntaxKind.NullKeyword, F = s.types.filter((z) => !A(z));
2835
- if (F.length === 1) return W(F[0], f, d, y, E, L, j, O);
2836
- const V = k(s, f.name ?? g(s));
2835
+ const A = (z) => z.kind === e.SyntaxKind.UndefinedKeyword || z.kind === e.SyntaxKind.VoidKeyword || z.kind === e.SyntaxKind.NullKeyword || z.kind === e.SyntaxKind.LiteralType && z.literal?.kind === e.SyntaxKind.NullKeyword, D = s.types.filter((z) => !A(z));
2836
+ if (D.length === 1) return J(D[0], f, d, y, v, k, j, O);
2837
+ const V = L(s, f.name ?? g(s));
2837
2838
  if (V === void 0) return;
2838
2839
  if (V !== null) {
2839
2840
  f.scalar = V.type, y && (f.enum = V);
@@ -2843,31 +2844,31 @@ function ta(e, t, r, n) {
2843
2844
  f.scalar = "*";
2844
2845
  return;
2845
2846
  }
2846
- if (F.length === 2) {
2847
- const z = (m) => m.kind !== e.SyntaxKind.TypeReference ? !1 : e.isTypeReferenceNode(m) && ve(m) === "Lambda", B = F.findIndex(z);
2848
- if (B >= 0 && !z(F[1 - B])) {
2849
- W(F[1 - B], f, d, y, E, L, j, O), I(F[B], ve(F[B]), f, d, y);
2847
+ if (D.length === 2) {
2848
+ const z = (m) => m.kind !== e.SyntaxKind.TypeReference ? !1 : e.isTypeReferenceNode(m) && Ee(m) === "Lambda", B = D.findIndex(z);
2849
+ if (B >= 0 && !z(D[1 - B])) {
2850
+ J(D[1 - B], f, d, y, v, k, j, O), I(D[B], Ee(D[B]), f, d, y);
2850
2851
  return;
2851
2852
  }
2852
2853
  }
2853
- if (y && F.length === 2) {
2854
+ if (y && D.length === 2) {
2854
2855
  const z = (m) => {
2855
- if (!(m.kind !== e.SyntaxKind.TypeReference || m.typeArguments?.length)) return ct.get(ve(m));
2856
- }, B = F.findIndex((m) => z(m) !== void 0);
2857
- if (B >= 0 && z(F[1 - B]) === void 0) {
2858
- const m = {}, S = E.count;
2859
- if (W(F[1 - B], m, d, y, E, L, !1), m.scalar && !m.range && m.lambda == null && E.count === S) {
2860
- f.range = z(F[B]), f.scalar = m.scalar, f.valueOrRange = !0;
2856
+ if (!(m.kind !== e.SyntaxKind.TypeReference || m.typeArguments?.length)) return ct.get(Ee(m));
2857
+ }, B = D.findIndex((m) => z(m) !== void 0);
2858
+ if (B >= 0 && z(D[1 - B]) === void 0) {
2859
+ const m = {}, b = v.count;
2860
+ if (J(D[1 - B], m, d, y, v, k, !1), m.scalar && !m.range && m.lambda == null && v.count === b) {
2861
+ f.range = z(D[B]), f.scalar = m.scalar, f.valueOrRange = !0;
2861
2862
  const x = m.enum;
2862
2863
  x && (f.enum = x);
2863
2864
  return;
2864
2865
  }
2865
2866
  }
2866
2867
  }
2867
- if (y && F.length === 2) {
2868
- const z = (m) => m.kind === e.SyntaxKind.TypeReference && !m.typeArguments?.length && ve(m) === "Scalar", B = F.findIndex(z);
2869
- if (B >= 0 && !z(F[1 - B])) {
2870
- const m = k(F[1 - B], f.name ?? g(s));
2868
+ if (y && D.length === 2) {
2869
+ const z = (m) => m.kind === e.SyntaxKind.TypeReference && !m.typeArguments?.length && Ee(m) === "Scalar", B = D.findIndex(z);
2870
+ if (B >= 0 && !z(D[1 - B])) {
2871
+ const m = L(D[1 - B], f.name ?? g(s));
2871
2872
  if (m === void 0) return;
2872
2873
  if (m !== null) {
2873
2874
  f.scalar = "*", f.enum = m;
@@ -2896,23 +2897,23 @@ function ta(e, t, r, n) {
2896
2897
  return;
2897
2898
  }
2898
2899
  if (y && j) {
2899
- const F = f, V = F.name ?? g(s) ?? "parameter", z = F.acceptError;
2900
- delete F.acceptError;
2900
+ const D = f, V = D.name ?? g(s) ?? "parameter", z = D.acceptError;
2901
+ delete D.acceptError;
2901
2902
  const B = { name: V };
2902
- T(A, B, d, !0), z && !B.acceptError && (B.acceptError = !0), F.repeating = [B];
2903
+ T(A, B, d, !0), z && !B.acceptError && (B.acceptError = !0), D.repeating = [B];
2903
2904
  return;
2904
2905
  }
2905
- E.count++, W(A, f, d, y, E);
2906
+ v.count++, J(A, f, d, y, v);
2906
2907
  } else if (s.kind !== e.SyntaxKind.TupleType) if (s.kind === e.SyntaxKind.TypeReference) {
2907
- const A = ve(s);
2908
+ const A = Ee(s);
2908
2909
  if (Vr.has(A)) {
2909
2910
  const m = g(s);
2910
2911
  if (!y) {
2911
2912
  c(s, w.InvalidReturnType, \`'\${A}' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
2912
2913
  return;
2913
2914
  }
2914
- const S = f;
2915
- if (S.acceptError) {
2915
+ const b = f;
2916
+ if (b.acceptError) {
2916
2917
  c(s, w.InvalidParamType, \`'\${m}' declares 'AcceptError' more than once.\`);
2917
2918
  return;
2918
2919
  }
@@ -2921,7 +2922,7 @@ function ta(e, t, r, n) {
2921
2922
  c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
2922
2923
  return;
2923
2924
  }
2924
- return S.acceptError = !0, W(x[0], f, d, y, E, L, j, O);
2925
+ return b.acceptError = !0, J(x[0], f, d, y, v, k, j, O);
2925
2926
  }
2926
2927
  if (ut.has(A)) {
2927
2928
  const m = f.name ?? g(s);
@@ -2929,12 +2930,12 @@ function ta(e, t, r, n) {
2929
2930
  c(s, w.InvalidReturnType, \`'ReportType' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
2930
2931
  return;
2931
2932
  }
2932
- const S = s.typeArguments;
2933
- if (!S || S.length !== 1) {
2933
+ const b = s.typeArguments;
2934
+ if (!b || b.length !== 1) {
2934
2935
  c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
2935
2936
  return;
2936
2937
  }
2937
- return f.reportType = !0, W(S[0], f, d, y, E, L, j, O);
2938
+ return f.reportType = !0, J(b[0], f, d, y, v, k, j, O);
2938
2939
  }
2939
2940
  if (Gr.has(A)) {
2940
2941
  const m = f.name ?? g(s);
@@ -2942,32 +2943,32 @@ function ta(e, t, r, n) {
2942
2943
  c(s, w.InvalidReturnType, \`'NoLift' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
2943
2944
  return;
2944
2945
  }
2945
- const S = s.typeArguments;
2946
- if (!S || S.length !== 1) {
2946
+ const b = s.typeArguments;
2947
+ if (!b || b.length !== 1) {
2947
2948
  c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
2948
2949
  return;
2949
2950
  }
2950
2951
  const x = f;
2951
2952
  x.noLift = !0;
2952
- const K = E.count;
2953
- W(S[0], f, d, y, E, L, j, O), (x.range || x.lambda != null || x.repeating || E.count !== K) && c(s, w.InvalidParamType, \`'\${m}': 'NoLift' applies to a SCALAR parameter only - a range, list, repeating or lambda slot never lifts.\`);
2953
+ const K = v.count;
2954
+ J(b[0], f, d, y, v, k, j, O), (x.range || x.lambda != null || x.repeating || v.count !== K) && c(s, w.InvalidParamType, \`'\${m}': 'NoLift' applies to a SCALAR parameter only - a range, list, repeating or lambda slot never lifts.\`);
2954
2955
  return;
2955
2956
  }
2956
- if (qr.has(A)) {
2957
+ if (Hr.has(A)) {
2957
2958
  const m = f.name ?? g(s);
2958
2959
  if (!y) {
2959
2960
  c(s, w.InvalidReturnType, \`'NoFilter' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
2960
2961
  return;
2961
2962
  }
2962
- const S = s.typeArguments;
2963
- if (!S || S.length !== 1) {
2963
+ const b = s.typeArguments;
2964
+ if (!b || b.length !== 1) {
2964
2965
  c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
2965
2966
  return;
2966
2967
  }
2967
2968
  const x = f;
2968
2969
  x.noFilter = !0;
2969
- const K = E.count;
2970
- if (W(S[0], f, d, y, E, L, j, O), x.range || x.lambda != null || E.count !== K) {
2970
+ const K = v.count;
2971
+ if (J(b[0], f, d, y, v, k, j, O), x.range || x.lambda != null || v.count !== K) {
2971
2972
  c(s, w.InvalidParamType, \`'\${m}': 'NoFilter' applies to a SCALAR slot only - a range, list or lambda slot has no members to coerce.\`);
2972
2973
  return;
2973
2974
  }
@@ -2987,31 +2988,31 @@ function ta(e, t, r, n) {
2987
2988
  c(s, w.InvalidReturnType, \`'Omittable' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
2988
2989
  return;
2989
2990
  }
2990
- const S = s.typeArguments;
2991
- if (!S || S.length < 1 || S.length > 2) {
2991
+ const b = s.typeArguments;
2992
+ if (!b || b.length < 1 || b.length > 2) {
2992
2993
  c(s, w.GenericArity, \`'\${A}' must be typed with 1 or 2 types: '\${m}'.\`);
2993
2994
  return;
2994
2995
  }
2995
2996
  const x = f;
2996
- if (x.omittable = !0, S.length === 2) {
2997
- const J = qt(e, S[1]);
2998
- if (J === void 0) {
2997
+ if (x.omittable = !0, b.length === 2) {
2998
+ const Y = Ht(e, b[1]);
2999
+ if (Y === void 0) {
2999
3000
  c(s, w.InvalidParamType, \`'\${m}' declares '\${A}' with a second type that is not a literal value. Use a number, string, boolean or null - the engine substitutes it for an omitted argument.\`);
3000
3001
  return;
3001
3002
  }
3002
- x.omittedValue = J;
3003
+ x.omittedValue = Y;
3003
3004
  }
3004
- const K = W(S[0], f, d, y, E, L, j, O), re = x.omittedValue;
3005
- return x.enum && re !== void 0 && re !== null && !x.enum.members.some(([, J]) => J === re) && c(S[1], w.EnumOmittedValue, \`'\${m}': \${JSON.stringify(re)} is not a member of '\${x.enum.id}'. An omitted argument must mean a member (\${x.enum.members.map(([, J]) => JSON.stringify(J)).join(", ")}) or null.\`), K;
3005
+ const K = J(b[0], f, d, y, v, k, j, O), re = x.omittedValue;
3006
+ return x.enum && re !== void 0 && re !== null && !x.enum.members.some(([, Y]) => Y === re) && c(b[1], w.EnumOmittedValue, \`'\${m}': \${JSON.stringify(re)} is not a member of '\${x.enum.id}'. An omitted argument must mean a member (\${x.enum.members.map(([, Y]) => JSON.stringify(Y)).join(", ")}) or null.\`), K;
3006
3007
  }
3007
- if (Hr.has(A)) {
3008
+ if (Wr.has(A)) {
3008
3009
  const m = f.name ?? g(s);
3009
3010
  if (!y) {
3010
3011
  c(s, w.InvalidReturnType, \`'Lazy' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
3011
3012
  return;
3012
3013
  }
3013
- const S = f;
3014
- if (S.lazy) {
3014
+ const b = f;
3015
+ if (b.lazy) {
3015
3016
  c(s, w.InvalidParamType, \`'\${m}' declares 'Lazy' more than once.\`);
3016
3017
  return;
3017
3018
  }
@@ -3020,29 +3021,29 @@ function ta(e, t, r, n) {
3020
3021
  c(s, w.GenericArity, \`'\${A}' must be typed with 1 or 2 types: '\${m}'.\`);
3021
3022
  return;
3022
3023
  }
3023
- if (S.lazy = !0, x.length === 2) {
3024
- const K = qt(e, x[1]);
3024
+ if (b.lazy = !0, x.length === 2) {
3025
+ const K = Ht(e, x[1]);
3025
3026
  if (K === void 0) {
3026
3027
  c(s, w.InvalidParamType, \`'\${m}' declares '\${A}' with a second type that is not a literal value. Use a number, string, boolean or null - the engine substitutes it for an absent argument.\`);
3027
3028
  return;
3028
3029
  }
3029
- S.optional = !0, S.defaultValue = K;
3030
+ b.optional = !0, b.defaultValue = K;
3030
3031
  }
3031
- W(x[0], f, d, y, E, L, j, O), S.enum ? (c(s, w.EnumPosition, \`'\${m}': 'Lazy' cannot hold the enum '\${S.enum.id}'. The argument may never be evaluated, so there is no point at which it could be checked against the members.\`), delete S.enum) : S.lambda != null ? c(s, w.InvalidParamType, \`'\${m}': 'Lazy' cannot be combined with a Lambda parameter - a callable slot is already the body's to call, or not.\`) : S.repeating && c(s, w.InvalidParamType, \`'\${m}': 'Lazy' applies to a VALUE, not to a repeating group - mark the group's slots instead.\`);
3032
+ J(x[0], f, d, y, v, k, j, O), b.enum ? (c(s, w.EnumPosition, \`'\${m}': 'Lazy' cannot hold the enum '\${b.enum.id}'. The argument may never be evaluated, so there is no point at which it could be checked against the members.\`), delete b.enum) : b.lambda != null ? c(s, w.InvalidParamType, \`'\${m}': 'Lazy' cannot be combined with a Lambda parameter - a callable slot is already the body's to call, or not.\`) : b.repeating && c(s, w.InvalidParamType, \`'\${m}': 'Lazy' applies to a VALUE, not to a repeating group - mark the group's slots instead.\`);
3032
3033
  return;
3033
3034
  }
3034
- if (Ho.has(A)) {
3035
+ if (Wo.has(A)) {
3035
3036
  const m = f.name ?? g(s);
3036
3037
  if (!y) {
3037
3038
  c(s, w.InvalidReturnType, \`'Flatten' is not a valid return type: '\${m}'. It describes how an ARGUMENT is received.\`);
3038
3039
  return;
3039
3040
  }
3040
- const S = s.typeArguments;
3041
- if (!S || S.length !== 1) {
3041
+ const b = s.typeArguments;
3042
+ if (!b || b.length !== 1) {
3042
3043
  c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${m}'.\`);
3043
3044
  return;
3044
3045
  }
3045
- return E.count++, W(S[0], f, d, y, E, L);
3046
+ return v.count++, J(b[0], f, d, y, v, k);
3046
3047
  }
3047
3048
  if (zr.get(A) === "repeating") {
3048
3049
  const m = f.name ?? g(s);
@@ -3050,41 +3051,41 @@ function ta(e, t, r, n) {
3050
3051
  c(s, w.RepeatingPosition, \`'Repeating' is not a valid return type: '\${m}'.\`);
3051
3052
  return;
3052
3053
  }
3053
- if (E.count !== 0) {
3054
+ if (v.count !== 0) {
3054
3055
  c(s, w.RepeatingPosition, \`'Repeating' cannot be nested inside another type: '\${m}'.\`);
3055
3056
  return;
3056
3057
  }
3057
- const S = f, x = s.typeArguments;
3058
+ const b = f, x = s.typeArguments;
3058
3059
  if (!x || x.length < 1 || x.length > 2) {
3059
3060
  c(s, w.GenericArity, \`'\${A}' must be typed with 1 type, optionally followed by a maximum argument count: '\${m}'.\`);
3060
3061
  return;
3061
3062
  }
3062
3063
  let K;
3063
3064
  if (x.length === 2) {
3064
- const ee = x[1], ge = ee.kind === e.SyntaxKind.LiteralType ? ee.literal : null, D = ge && ge.kind === e.SyntaxKind.NumericLiteral ? Number(ge.text) : NaN;
3065
- if (!Number.isInteger(D) || D < 1 || D > Vt) {
3065
+ const ee = x[1], ge = ee.kind === e.SyntaxKind.LiteralType ? ee.literal : null, F = ge && ge.kind === e.SyntaxKind.NumericLiteral ? Number(ge.text) : NaN;
3066
+ if (!Number.isInteger(F) || F < 1 || F > Vt) {
3066
3067
  c(ee, w.RepeatingMax, \`'\${m}': '\${A}'’s maximum must be a whole number between 1 and \${Vt}.\`);
3067
3068
  return;
3068
3069
  }
3069
- K = D, d.maxArguments = D;
3070
+ K = F, d.maxArguments = F;
3070
3071
  }
3071
3072
  if (O) {
3072
3073
  if (K === void 0) {
3073
3074
  c(s, w.RepeatingPosition, \`'\${m}' is a rest parameter and a repeating group. A group already repeats — drop the '...', or give the group a maximum ('Repeating<T, 254>') if the ceiling is all you meant.\`);
3074
3075
  return;
3075
3076
  }
3076
- return W(x[0], f, d, y, E, L, j);
3077
+ return J(x[0], f, d, y, v, k, j);
3077
3078
  }
3078
- const re = S.acceptError;
3079
- delete S.acceptError;
3080
- const J = pe(x[0], m ?? "parameter", d, re);
3081
- J && (S.repeating = J);
3079
+ const re = b.acceptError;
3080
+ delete b.acceptError;
3081
+ const Y = pe(x[0], m ?? "parameter", d, re);
3082
+ Y && (b.repeating = Y);
3082
3083
  return;
3083
3084
  }
3084
- const F = ct.get(A);
3085
+ const D = ct.get(A);
3085
3086
  let V = !1;
3086
- F && (f.range = F, V = !0);
3087
- const z = qo.get(A);
3087
+ D && (f.range = D, V = !0);
3088
+ const z = Ho.get(A);
3088
3089
  if (z && (f.scalar = z), z !== void 0 && (V = !0), I(s, A, f, d, y)) return;
3089
3090
  if (y) {
3090
3091
  if (A === "Volatile" || A === \`\${le}.Volatile\`) {
@@ -3097,9 +3098,9 @@ function ta(e, t, r, n) {
3097
3098
  } else {
3098
3099
  const m = Qo.get(A);
3099
3100
  if (m) {
3100
- const S = Object.assign(f, m());
3101
+ const b = Object.assign(f, m());
3101
3102
  let x = 0;
3102
- if (S.async && x++, S.stream && x++, x > 1) {
3103
+ if (b.async && x++, b.stream && x++, x > 1) {
3103
3104
  c(s, w.MultipleModifiers, \`'\${A}' cannot have multiple modifiers: '\${g(s)}'.\`);
3104
3105
  return;
3105
3106
  }
@@ -3107,7 +3108,7 @@ function ta(e, t, r, n) {
3107
3108
  }
3108
3109
  }
3109
3110
  if (!V) {
3110
- const m = k(s, f.name ?? g(s));
3111
+ const m = L(s, f.name ?? g(s));
3111
3112
  if (m === void 0) return;
3112
3113
  if (m !== null) {
3113
3114
  f.scalar = m.type, y && (f.enum = m);
@@ -3115,9 +3116,9 @@ function ta(e, t, r, n) {
3115
3116
  }
3116
3117
  }
3117
3118
  if (!V) {
3118
- const m = "number, string, boolean, Scalar, Lambda, Date, FormulaError.Known, IRichData, IRange, IReferenceRange (and arrays of these; optionally wrapped in AcceptError<T>, or grouped with Repeating<T>)", S = "number, string, boolean, Scalar, Date, FormulaError.Known, IRichData, IRange, Promise<T>, Observable<T>, Volatile<T> (and arrays of these)";
3119
+ const m = "number, string, boolean, Scalar, Lambda, Date, FormulaError.Known, IRichData, IRange, IReferenceRange (and arrays of these; optionally wrapped in AcceptError<T>, or grouped with Repeating<T>)", b = "number, string, boolean, Scalar, Date, FormulaError.Known, IRichData, IRange, Promise<T>, Observable<T>, Volatile<T> (and arrays of these)";
3119
3120
  let x;
3120
- y ? L ? x = \`'\${A}' is not a valid first parameter: '\${g(s)}'. The first parameter is EITHER a macro target (making this a macro) OR a calculation input (making this a calculation function). Allowed: \${Go.join(", ")} (macro target); \${m} (calculation input).\` : x = \`'\${A}' is not a valid parameter type: '\${g(s)}'. Allowed: \${m}.\` : x = \`'\${A}' is not a valid return type: '\${g(s)}'. Allowed: \${S}.\`, c(s, y ? w.InvalidParamType : w.InvalidReturnType, x);
3121
+ y ? k ? x = \`'\${A}' is not a valid first parameter: '\${g(s)}'. The first parameter is EITHER a macro target (making this a macro) OR a calculation input (making this a calculation function). Allowed: \${Go.join(", ")} (macro target); \${m} (calculation input).\` : x = \`'\${A}' is not a valid parameter type: '\${g(s)}'. Allowed: \${m}.\` : x = \`'\${A}' is not a valid return type: '\${g(s)}'. Allowed: \${b}.\`, c(s, y ? w.InvalidParamType : w.InvalidReturnType, x);
3121
3122
  return;
3122
3123
  }
3123
3124
  const B = s.typeArguments;
@@ -3126,13 +3127,13 @@ function ta(e, t, r, n) {
3126
3127
  c(s, w.GenericArity, \`'\${A}' must be typed with exactly 1 type: '\${g(s)}'.\`);
3127
3128
  return;
3128
3129
  }
3129
- const m = B[0], S = y && e.isTypeReferenceNode(m) && ut.has(ve(m)), x = f.reportType;
3130
- S && U.add(f), T(m, f, d, y), S && x === void 0 && delete f.reportType;
3130
+ const m = B[0], b = y && e.isTypeReferenceNode(m) && ut.has(Ee(m)), x = f.reportType;
3131
+ b && P.add(f), T(m, f, d, y), b && x === void 0 && delete f.reportType;
3131
3132
  const K = f.enum;
3132
- K && !S && (c(B[0], w.EnumPosition, \`'\${A}' cannot hold the enum '\${K.id}': '\${g(s)}'. The members of a range reach the body as they are, so nothing checks them against the enum. Take the enum as a value, or type the range by its scalar ('\${A}<\${K.type}>').\`), delete f.enum);
3133
+ K && !b && (c(B[0], w.EnumPosition, \`'\${A}' cannot hold the enum '\${K.id}': '\${g(s)}'. The members of a range reach the body as they are, so nothing checks them against the enum. Take the enum as a value, or type the range by its scalar ('\${A}<\${K.type}>').\`), delete f.enum);
3133
3134
  }
3134
3135
  } else s.kind === e.SyntaxKind.FunctionType && M(s, f, d, y);
3135
- }, Ge = (s) => (e.getCombinedModifierFlags(s) & e.ModifierFlags.Export) !== 0, qe = (s) => (e.getCombinedModifierFlags(s) & e.ModifierFlags.Default) !== 0;
3136
+ }, Ge = (s) => (e.getCombinedModifierFlags(s) & e.ModifierFlags.Export) !== 0, He = (s) => (e.getCombinedModifierFlags(s) & e.ModifierFlags.Default) !== 0;
3136
3137
  try {
3137
3138
  e.forEachChild(t, (s) => {
3138
3139
  if (Ge(s) && e.isFunctionDeclaration(s)) {
@@ -3148,25 +3149,25 @@ function ta(e, t, r, n) {
3148
3149
  const d = {}, y = { parameters: {} };
3149
3150
  try {
3150
3151
  d.name = f;
3151
- const E = r.getSymbolAtLocation(s.name), L = $e(E?.getDocumentationComment(r));
3152
- L && (y.summary = L);
3152
+ const v = r.getSymbolAtLocation(s.name), k = $e(v?.getDocumentationComment(r));
3153
+ k && (y.summary = k);
3153
3154
  const j = {};
3154
3155
  T(s.type, j, d, !1), d.returnType = j;
3155
3156
  const O = {};
3156
- qe(s) && (O.default = !0, u = f), d.parameters = [];
3157
- const A = /* @__PURE__ */ new Map(), F = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Set();
3158
- let z = null, B = null, m = null, S = 0, x = !1, K = 0;
3159
- for (let D = 0; D < s.parameters.length; D++) {
3160
- const _ = s.parameters[D], $ = {};
3157
+ He(s) && (O.default = !0, u = f), d.parameters = [];
3158
+ const A = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Set();
3159
+ let z = null, B = null, m = null, b = 0, x = !1, K = 0;
3160
+ for (let F = 0; F < s.parameters.length; F++) {
3161
+ const _ = s.parameters[F], $ = {};
3161
3162
  $.name = _.name?.getText();
3162
3163
  const ne = d.parameters.length === 0;
3163
- if (n?.lenient && D === 0 && !_.type && O.default) {
3164
+ if (n?.lenient && F === 0 && !_.type && O.default) {
3164
3165
  d.context = Gt;
3165
3166
  continue;
3166
3167
  }
3167
3168
  const Ie = T(_.type, $, d, !0, ne, !_.dotDotDotToken, !!_.dotDotDotToken);
3168
3169
  if (Ie === Xt) {
3169
- D === 0 && d.context === void 0 && (d.context = Gt);
3170
+ F === 0 && d.context === void 0 && (d.context = Gt);
3170
3171
  continue;
3171
3172
  }
3172
3173
  if (Ie) {
@@ -3221,13 +3222,13 @@ function ta(e, t, r, n) {
3221
3222
  c(_, w.RepeatingOptional, \`'\${d.name}' parameter '\${m}' is optional and precedes the repeating group '\${$.name}'. Every parameter outside a group must be required.\`);
3222
3223
  return;
3223
3224
  }
3224
- B = $.name, S = X.length, x = X[X.length - 1].optional === !0;
3225
+ B = $.name, b = X.length, x = X[X.length - 1].optional === !0;
3225
3226
  } else if (B !== null && $.rest) {
3226
3227
  c(_, w.RepeatingOptional, \`'\${d.name}' parameter '\${$.name}' is a rest parameter and follows the repeating group '\${B}'. Two variadic tails would make the argument count ambiguous.\`);
3227
3228
  return;
3228
3229
  } else if (B !== null && ye) {
3229
- if (K >= S - 1) {
3230
- c(_, w.RepeatingOptional, S === 1 ? \`'\${d.name}' parameter '\${$.name}' is optional and follows the period-1 repeating group '\${B}'. One more argument is indistinguishable from one more repetition — make it required, or give the group a period.\` : \`'\${d.name}' has \${K + 1} optional parameters after the repeating group '\${B}', which has period \${S}. At most \${S - 1} may be optional, or the argument count no longer decides the parse.\`);
3230
+ if (K >= b - 1) {
3231
+ c(_, w.RepeatingOptional, b === 1 ? \`'\${d.name}' parameter '\${$.name}' is optional and follows the period-1 repeating group '\${B}'. One more argument is indistinguishable from one more repetition — make it required, or give the group a period.\` : \`'\${d.name}' has \${K + 1} optional parameters after the repeating group '\${B}', which has period \${b}. At most \${b - 1} may be optional, or the argument count no longer decides the parse.\`);
3231
3232
  return;
3232
3233
  }
3233
3234
  if (x) {
@@ -3245,38 +3246,38 @@ function ta(e, t, r, n) {
3245
3246
  d.parameters.push($);
3246
3247
  const se = { description: "" };
3247
3248
  y.parameters[$.name] = se;
3248
- const He = r.getSymbolAtLocation(_.name);
3249
- se.description = $e(He?.getDocumentationComment(r)), ae !== void 0 && ($.defaultValue = ae);
3249
+ const We = r.getSymbolAtLocation(_.name);
3250
+ se.description = $e(We?.getDocumentationComment(r)), ae !== void 0 && ($.defaultValue = ae);
3250
3251
  for (const ce of [$, ...$.repeating ?? []]) {
3251
3252
  const we = ce.enum ? C.get(ce.enum) : void 0;
3252
3253
  we && ((y.enums ??= {})[ce.enum.id] = we);
3253
3254
  }
3254
- if (A.set($.name, $), F.set($.name, _), X && X.length > 1) {
3255
+ if (A.set($.name, $), D.set($.name, _), X && X.length > 1) {
3255
3256
  V.add($.name);
3256
3257
  for (const ce of X) {
3257
3258
  const we = \`\${$.name}.\${ce.name}\`;
3258
- y.parameters[we] = { description: "" }, A.set(we, ce), F.set(we, _);
3259
+ y.parameters[we] = { description: "" }, A.set(we, ce), D.set(we, _);
3259
3260
  }
3260
3261
  }
3261
3262
  }
3262
3263
  const re = d.maxArguments;
3263
3264
  if (re !== void 0) {
3264
- const D = d.parameters ?? [];
3265
- if (!D.some(($) => $.rest === !0 || $.repeating !== void 0)) {
3266
- c(s, w.RepeatingMax, \`'\${d.name}' declares a maximum of \${re} arguments but takes a fixed \${D.length}. A maximum only means something on a variadic tail.\`);
3265
+ const F = d.parameters ?? [];
3266
+ if (!F.some(($) => $.rest === !0 || $.repeating !== void 0)) {
3267
+ c(s, w.RepeatingMax, \`'\${d.name}' declares a maximum of \${re} arguments but takes a fixed \${F.length}. A maximum only means something on a variadic tail.\`);
3267
3268
  return;
3268
3269
  }
3269
3270
  let _ = 0;
3270
- for (const $ of D) $.rest === !0 || $.optional === !0 || (_ += $.repeating ? $.repeating.length : 1);
3271
+ for (const $ of F) $.rest === !0 || $.optional === !0 || (_ += $.repeating ? $.repeating.length : 1);
3271
3272
  if (re < _) {
3272
3273
  c(s, w.RepeatingMax, \`'\${d.name}' declares a maximum of \${re} arguments but requires \${_}.\`);
3273
3274
  return;
3274
3275
  }
3275
3276
  }
3276
3277
  if (s.jsDoc && s.jsDoc.length > 0) {
3277
- const D = s.jsDoc, _ = D.length;
3278
+ const F = s.jsDoc, _ = F.length;
3278
3279
  for (let $ = 0; $ < _; $++) {
3279
- const ne = D[$]?.tags;
3280
+ const ne = F[$]?.tags;
3280
3281
  if (!ne) continue;
3281
3282
  const Ie = ne.length;
3282
3283
  for (let ye = 0; ye < Ie; ye++) {
@@ -3295,12 +3296,12 @@ function ta(e, t, r, n) {
3295
3296
  \`)[0].trim(), !G || G.length === 0))) {
3296
3297
  if (G && typeof G == "string") {
3297
3298
  const Q = /\\{@link(code|plain)?\\s+([^}|]+)(?:\\s*\\|\\s*([^}]+))?\\}/g;
3298
- let se, He = G, ce = [];
3299
+ let se, We = G, ce = [];
3299
3300
  for (; (se = Q.exec(G)) !== null;) {
3300
- const [we, Ta, Zr, ht] = se, Qr = [Zr.trim()];
3301
+ const [we, wa, Zr, ht] = se, Qr = [Zr.trim()];
3301
3302
  ht && Qr.push(ht.trim());
3302
3303
  }
3303
- G = He, ce.length > 0 && X === "see" && (y.links || (y.links = []), y.links.push(...ce));
3304
+ G = We, ce.length > 0 && X === "see" && (y.links || (y.links = []), y.links.push(...ce));
3304
3305
  }
3305
3306
  if (X === "name") {
3306
3307
  const Q = G;
@@ -3330,15 +3331,15 @@ function ta(e, t, r, n) {
3330
3331
  }
3331
3332
  }
3332
3333
  Object.keys(d.returnType).length === 0 && delete d.returnType, Object.keys(O).length > 0 && (d.behavior = O), y.summary || h(s.name ?? s, w.MissingSummary, "warning", \`'\${f}': missing a description. Add a JSDoc comment above the function.\`);
3333
- const J = !d.context, ee = J && y.name || f;
3334
- if (J && !Wo.test(ee)) {
3335
- const D = y.name ? \`'@name \${y.name}'\` : \`'\${ee}'\`;
3336
- c(s.name ?? s, w.InvalidName, \`'\${f}': \${D} cannot be called from a formula. A function name starts with a letter or '_', and continues with letters, digits, '_' or '.'.\` + (y.name ? "" : " Add an '@name' tag to register it under another name."));
3334
+ const Y = !d.context, ee = Y && y.name || f;
3335
+ if (Y && !Jo.test(ee)) {
3336
+ const F = y.name ? \`'@name \${y.name}'\` : \`'\${ee}'\`;
3337
+ c(s.name ?? s, w.InvalidName, \`'\${f}': \${F} cannot be called from a formula. A function name starts with a letter or '_', and continues with letters, digits, '_' or '.'.\` + (y.name ? "" : " Add an '@name' tag to register it under another name."));
3337
3338
  return;
3338
3339
  }
3339
- if (J && !n?.isBuiltIn && Zo(ee)) {
3340
- const D = y.name ? \`'@name \${y.name}'\` : \`'\${ee}'\`;
3341
- c(s.name ?? s, w.InvalidName, \`'\${f}': \${D} cannot be called from a formula. It reads as a cell address.\` + (y.name ? "" : " Add an '@name' tag to register it under another name."));
3340
+ if (Y && !n?.isBuiltIn && Zo(ee)) {
3341
+ const F = y.name ? \`'@name \${y.name}'\` : \`'\${ee}'\`;
3342
+ c(s.name ?? s, w.InvalidName, \`'\${f}': \${F} cannot be called from a formula. It reads as a cell address.\` + (y.name ? "" : " Add an '@name' tag to register it under another name."));
3342
3343
  return;
3343
3344
  }
3344
3345
  const ge = l.get(ee.toUpperCase());
@@ -3346,20 +3347,20 @@ function ta(e, t, r, n) {
3346
3347
  c(s.name ?? s, w.DuplicateName, \`'\${f}': '\${ee}' is already the name of '\${ge}' in this module.\`);
3347
3348
  return;
3348
3349
  }
3349
- if (l.set(ee.toUpperCase(), f), J && o?.has(ee.toUpperCase())) {
3350
+ if (l.set(ee.toUpperCase(), f), Y && o?.has(ee.toUpperCase())) {
3350
3351
  c(s.name ?? s, w.BuiltInName, \`'\${ee}' is a built-in function. Choose a different name - a calculation function cannot replace a built-in.\`);
3351
3352
  return;
3352
3353
  }
3353
- if (J) {
3354
- const D = y.parameters ?? {};
3355
- for (const [_, $] of Object.entries(D)) if (!V.has(_) && !$.description) {
3356
- const ne = F.get(_);
3354
+ if (Y) {
3355
+ const F = y.parameters ?? {};
3356
+ for (const [_, $] of Object.entries(F)) if (!V.has(_) && !$.description) {
3357
+ const ne = D.get(_);
3357
3358
  h(ne, w.MissingParamDescription, "warning", \`'\${f}': parameter '\${_}' is missing a description. Add an '@param \${_}' tag.\`);
3358
3359
  }
3359
3360
  }
3360
3361
  a.push([d, y]);
3361
- } catch (E) {
3362
- c(s, w.ParseError, \`'\${f}': \${E.message}\`);
3362
+ } catch (v) {
3363
+ c(s, w.ParseError, \`'\${f}': \${v.message}\`);
3363
3364
  }
3364
3365
  }
3365
3366
  });
@@ -3391,64 +3392,64 @@ async function na() {
3391
3392
  }
3392
3393
  }), Te);
3393
3394
  }
3394
- var Te, oa = Yt((() => {
3395
+ var Te, oa = qt((() => {
3395
3396
  Te = null;
3396
3397
  }));
3397
- let xe = null, Ue = null;
3398
+ let xe = null, Pe = null;
3398
3399
  async function aa() {
3399
3400
  if (xe) return xe;
3400
- if (Ue) {
3401
- if (await Ue, !xe) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
3401
+ if (Pe) {
3402
+ if (await Pe, !xe) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
3402
3403
  return xe;
3403
3404
  }
3404
3405
  let e, t;
3405
- Ue = new Promise((r, n) => {
3406
+ Pe = new Promise((r, n) => {
3406
3407
  e = r, t = n;
3407
3408
  });
3408
3409
  try {
3409
3410
  const { initialize: r } = await Promise.resolve().then(() => (oa(), ra));
3410
3411
  return xe = await r(), e(), xe;
3411
3412
  } catch (r) {
3412
- throw console.error("Failed to import or initialize esbuild:", r), Ue = null, t(r), r;
3413
+ throw console.error("Failed to import or initialize esbuild:", r), Pe = null, t(r), r;
3413
3414
  }
3414
3415
  }
3415
3416
  const ia = { compilerOptions: { target: "esnext" } };
3416
- async function la(e, t, r = "/script.js", n = Ve) {
3417
+ async function la(e, t, r = "/script.js", n = Ve, o = !1) {
3417
3418
  try {
3418
- const o = await aa(), a = "@sheetxl/primitives", l = \`
3419
+ const a = await aa(), l = "@sheetxl/primitives", i = \`
3419
3420
  export const FormulaContext = globalThis.\${n}?.FormulaContext;
3420
3421
  export const ScalarType = globalThis.\${n}?.ScalarType;
3421
3422
  export const Observable = globalThis.\${n}?.Observable;
3422
3423
  export const IRange = globalThis.\${n}?.IRange;
3423
3424
  export const FormulaError = globalThis.\${n}?.FormulaError;
3424
3425
  // Add more exports as needed
3425
- \`, i = await o.build({
3426
+ \`, u = await a.build({
3426
3427
  entryPoints: [r],
3427
3428
  bundle: !0,
3428
3429
  write: !1,
3429
3430
  format: "esm",
3430
3431
  plugins: [{
3431
3432
  name: "sheetxl-esbuild-in-memory",
3432
- setup(u) {
3433
- const p = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
3434
- u.onResolve({ filter: new RegExp(\`^(\${r.replace("/", "\\\\/")}|\${a})$\`) }, (h) => ({
3435
- path: h.path,
3436
- namespace: p
3437
- })), u.onResolve({ filter: /.*/ }, (h) => {
3438
- if (h.namespace !== p) return console.warn(\`esbuild: Treating import "\${h.path}" as external.\`), {
3439
- path: h.path,
3433
+ setup(p) {
3434
+ const h = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
3435
+ p.onResolve({ filter: new RegExp(\`^(\${r.replace("/", "\\\\/")}|\${l})$\`) }, (c) => ({
3436
+ path: c.path,
3437
+ namespace: h
3438
+ })), p.onResolve({ filter: /.*/ }, (c) => {
3439
+ if (c.namespace !== h) return console.warn(\`esbuild: Treating import "\${c.path}" as external.\`), {
3440
+ path: c.path,
3440
3441
  external: !0
3441
3442
  };
3442
- }), u.onLoad({
3443
+ }), p.onLoad({
3443
3444
  filter: /.*/,
3444
- namespace: p
3445
- }, (h) => {
3446
- let c;
3447
- if (h.path === r) c = t;
3448
- else if (h.path === a) c = l;
3449
- else return { errors: [{ text: \`Cannot load unknown path in \${p}: \${h.path}\` }] };
3445
+ namespace: h
3446
+ }, (c) => {
3447
+ let g;
3448
+ if (c.path === r) g = t;
3449
+ else if (c.path === l) g = i;
3450
+ else return { errors: [{ text: \`Cannot load unknown path in \${h}: \${c.path}\` }] };
3450
3451
  return {
3451
- contents: c,
3452
+ contents: g,
3452
3453
  loader: "ts"
3453
3454
  };
3454
3455
  });
@@ -3456,14 +3457,14 @@ async function la(e, t, r = "/script.js", n = Ve) {
3456
3457
  }],
3457
3458
  sourcemap: "inline",
3458
3459
  tsconfigRaw: ia,
3459
- minify: !0,
3460
+ minify: o,
3460
3461
  platform: "neutral"
3461
3462
  });
3462
- if (i.outputFiles && i.outputFiles.length > 0) return i.outputFiles[0].text;
3463
- throw i.errors && i.errors.length > 0 ? /* @__PURE__ */ new Error(\`esbuild bundling failed: \${i.errors.map((u) => u.text).join(\`
3463
+ if (u.outputFiles && u.outputFiles.length > 0) return u.outputFiles[0].text;
3464
+ throw u.errors && u.errors.length > 0 ? /* @__PURE__ */ new Error(\`esbuild bundling failed: \${u.errors.map((p) => p.text).join(\`
3464
3465
  \`)}\`) : /* @__PURE__ */ new Error("esbuild did not produce an output file.");
3465
- } catch (o) {
3466
- throw console.error("esbuild bundling process failed:", o), o;
3466
+ } catch (a) {
3467
+ throw console.error("esbuild bundling process failed:", a), a;
3467
3468
  }
3468
3469
  }
3469
3470
  function sa(e, t, r) {
@@ -3497,56 +3498,12 @@ function sa(e, t, r) {
3497
3498
  return (c) => e.visitNode(c, h);
3498
3499
  };
3499
3500
  }
3500
- const ca = /* @__PURE__ */ new Set(["TS2339", "TS2551"]), ua = "TS2774";
3501
- function da(e, t, r) {
3502
- let n = null;
3503
- const o = (a) => {
3504
- r < a.getStart(t) || r >= a.end || (a.getStart(t) === r && (n = a), e.forEachChild(a, o));
3505
- };
3506
- return e.forEachChild(t, o), n;
3507
- }
3508
- const fa = (e, t) => t.kind === e.SyntaxKind.NullKeyword || e.isIdentifier(t) && t.text === "undefined";
3509
- function pa(e, t) {
3510
- const r = t.parent;
3511
- if (!r || !e.isPropertyAccessExpression(r) || r.name !== t) return !1;
3512
- let n = r, o = r.parent;
3513
- for (; o && (e.isParenthesizedExpression(o) || e.isNonNullExpression(o));) n = o, o = o.parent;
3514
- if (!o) return !1;
3515
- if ((e.isCallExpression(o) || e.isPropertyAccessExpression(o) || e.isElementAccessExpression(o)) && o.expression === n) return !!o.questionDotToken;
3516
- if (e.isTypeOfExpression(o)) return !0;
3517
- if (e.isPrefixUnaryExpression(o)) return o.operator === e.SyntaxKind.ExclamationToken;
3518
- if (e.isConditionalExpression(o)) return o.condition === n;
3519
- if (e.isIfStatement(o) || e.isWhileStatement(o) || e.isDoStatement(o)) return o.expression === n;
3520
- if (e.isBinaryExpression(o)) {
3521
- const a = o.operatorToken.kind, l = e.SyntaxKind;
3522
- if (a === l.AmpersandAmpersandToken || a === l.BarBarToken || a === l.QuestionQuestionToken) return o.left === n;
3523
- if (a === l.EqualsEqualsEqualsToken || a === l.ExclamationEqualsEqualsToken || a === l.EqualsEqualsToken || a === l.ExclamationEqualsToken) return fa(e, o.left === n ? o.right : o.left);
3524
- }
3525
- return !1;
3526
- }
3527
- function ma(e, t, r) {
3528
- const n = [];
3529
- for (const o of r) if (o.code !== w.MissingType) if (o.severity !== "error") n.push(o);
3530
- else if (o.code === ua) n.push({
3531
- ...o,
3532
- severity: "warning"
3533
- });
3534
- else if (ca.has(o.code)) {
3535
- const a = da(e, t, o.start);
3536
- n.push(a && pa(e, a) ? {
3537
- ...o,
3538
- severity: "warning",
3539
- message: \`\${o.message} Read as a probe, it is undefined.\`
3540
- } : o);
3541
- } else n.push(o);
3542
- return n;
3543
- }
3544
- const Ht = "//# sourceMappingURL";
3545
- var Wr = /* @__PURE__ */ Zt({
3546
- initialize: () => ga,
3547
- readLibFile: () => ha
3501
+ const Wt = "//# sourceMappingURL";
3502
+ var Jr = /* @__PURE__ */ Zt({
3503
+ initialize: () => ca,
3504
+ readLibFile: () => ua
3548
3505
  });
3549
- async function ga() {
3506
+ async function ca() {
3550
3507
  return Ce || (Ce = new Promise(async (e, t) => {
3551
3508
  let r = null;
3552
3509
  try {
@@ -3561,11 +3518,11 @@ async function ga() {
3561
3518
  r || (console.log("use script fallback"), Ce = null), e(r);
3562
3519
  }), Ce);
3563
3520
  }
3564
- function ha(e, t) {}
3565
- var Ce, Jr = Yt((() => {
3521
+ function ua(e, t) {}
3522
+ var Ce, Yr = qt((() => {
3566
3523
  Ce = null;
3567
3524
  }));
3568
- const ya = \`
3525
+ const da = \`
3569
3526
  /**
3570
3527
  * Represents the completion of an asynchronous operation
3571
3528
  */
@@ -3578,29 +3535,29 @@ interface Promise<T> {
3578
3535
  */
3579
3536
  finally(onfinally?: (() => void) | undefined | null): Promise<T>;
3580
3537
  }
3581
- \`, wa = \`
3538
+ \`, fa = \`
3582
3539
  interface FirstTest {
3583
3540
  isTrue?: boolean;
3584
3541
  }
3585
- \`, Sa = async () => wa;
3542
+ \`, pa = async () => fa;
3586
3543
  let je = null;
3587
- const rt = "sheetxl.d.ts", Wt = "sheetxl-modules.d.ts", ba = \`declare module '@sheetxl/primitives' { export = SheetXL; }
3588
- \`, Ea = [
3544
+ const rt = "sheetxl.d.ts", Jt = "sheetxl-modules.d.ts", ma = \`declare module '@sheetxl/primitives' { export = SheetXL; }
3545
+ \`, ga = [
3589
3546
  "lib.webworker.d.ts",
3590
3547
  "lib.es2020.d.ts",
3591
3548
  "lib.esnext.asynciterable.d.ts"
3592
- ], Jt = /* @__PURE__ */ new Map();
3549
+ ], Yt = /* @__PURE__ */ new Map();
3593
3550
  let nt = null, ot = null;
3594
- async function va() {
3595
- return ot || (ot = Promise.resolve().then(() => (Jr(), Wr)).then(async (e) => {
3596
- const t = await Yr();
3551
+ async function ha() {
3552
+ return ot || (ot = Promise.resolve().then(() => (Yr(), Jr)).then(async (e) => {
3553
+ const t = await qr();
3597
3554
  return e.readLibFile(t, "lib.es5.d.ts") !== void 0 ? e.readLibFile : null;
3598
3555
  })), ot;
3599
3556
  }
3600
- async function Yr() {
3557
+ async function qr() {
3601
3558
  if (je) return je;
3602
3559
  try {
3603
- const e = await (await Promise.resolve().then(() => (Jr(), Wr))).initialize();
3560
+ const e = await (await Promise.resolve().then(() => (Yr(), Jr))).initialize();
3604
3561
  if (!e) throw new Error("TypeScript could not be loaded. Check your connection and try again.");
3605
3562
  return e;
3606
3563
  } catch (e) {
@@ -3609,16 +3566,16 @@ async function Yr() {
3609
3566
  je = null;
3610
3567
  }
3611
3568
  }
3612
- async function xa(e) {
3569
+ async function ya(e) {
3613
3570
  const t = e?.source ?? null;
3614
3571
  if (!t) return {
3615
3572
  module: null,
3616
3573
  diagnostics: []
3617
3574
  };
3618
3575
  const r = (e.disableBundle || e.declarationsOnly) ?? !1, [n, o, a] = await Promise.all([
3619
- Sa(),
3620
- Yr(),
3621
- e.ambientTypes ? va() : null
3576
+ pa(),
3577
+ qr(),
3578
+ e.ambientTypes ? ha() : null
3622
3579
  ]), l = a ? e.ambientTypes ?? null : null;
3623
3580
  let i = "";
3624
3581
  const u = {
@@ -3634,31 +3591,30 @@ async function xa(e) {
3634
3591
  emitDeclarationOnly: !1,
3635
3592
  target: o.ScriptTarget.ES2020,
3636
3593
  ...l ? {
3637
- lib: Ea,
3594
+ lib: ga,
3638
3595
  skipLibCheck: !0,
3639
3596
  strict: !0
3640
- } : {},
3641
- ...l && e.lenient ? { noImplicitAny: !1 } : {}
3597
+ } : {}
3642
3598
  }, p = "script", h = \`\${p}.ts\`, c = "lib.d.ts", g = "global.d.ts", T = {
3643
3599
  [h]: t,
3644
- [c]: ya,
3600
+ [c]: da,
3645
3601
  [g]: n,
3646
3602
  ...l ? {
3647
3603
  [rt]: l,
3648
- [Wt]: ba
3604
+ [Jt]: ma
3649
3605
  } : {}
3650
3606
  }, I = (d) => T[d] ?? (a && d.startsWith("lib.") ? a(o, d) : void 0), M = {
3651
- getSourceFile: (d, y, E, L) => {
3607
+ getSourceFile: (d, y, v, k) => {
3652
3608
  if (d === rt) return nt?.text !== l && (nt = {
3653
3609
  text: l,
3654
3610
  file: o.createSourceFile(d, l, o.ScriptTarget.Latest, !1)
3655
3611
  }), nt.file;
3656
3612
  if (T[d] === void 0) {
3657
- let j = Jt.get(d);
3613
+ let j = Yt.get(d);
3658
3614
  if (!j) {
3659
3615
  const O = I(d);
3660
3616
  if (O === void 0) return;
3661
- j = o.createSourceFile(d, O, o.ScriptTarget.Latest, !1), Jt.set(d, j);
3617
+ j = o.createSourceFile(d, O, o.ScriptTarget.Latest, !1), Yt.set(d, j);
3662
3618
  }
3663
3619
  return j;
3664
3620
  }
@@ -3675,58 +3631,58 @@ async function xa(e) {
3675
3631
  getDefaultLibFileName: (d) => c,
3676
3632
  getNewLine: () => \`
3677
3633
  \`
3678
- }, q = o.createProgram([
3634
+ }, H = o.createProgram([
3679
3635
  h,
3680
3636
  g,
3681
- ...l ? [rt, Wt] : []
3682
- ], u, M), v = q.getTypeChecker(), C = q.getSourceFile(h), R = e.runGuard;
3683
- q.emit(void 0, void 0, void 0, void 0, R ? { before: [sa(o, R.key, R.timeoutMs)] } : void 0), i = T[\`\${p}.js\`] ?? "";
3684
- const U = (d) => ({
3637
+ ...l ? [rt, Jt] : []
3638
+ ], u, M), E = H.getTypeChecker(), C = H.getSourceFile(h), R = e.runGuard;
3639
+ H.emit(void 0, void 0, void 0, void 0, R ? { before: [sa(o, R.key, R.timeoutMs)] } : void 0), i = T[\`\${p}.js\`] ?? "";
3640
+ const P = (d) => ({
3685
3641
  start: d.start ?? 0,
3686
3642
  length: d.length ?? 0,
3687
3643
  severity: d.category === o.DiagnosticCategory.Warning ? "warning" : "error",
3688
3644
  code: \`TS\${d.code}\`,
3689
3645
  message: o.flattenDiagnosticMessageText(d.messageText, \`
3690
3646
  \`)
3691
- }), Z = q.getSyntacticDiagnostics(C).map(U), P = l ? q.getSemanticDiagnostics(C).filter((d) => d.category === o.DiagnosticCategory.Error || d.category === o.DiagnosticCategory.Warning).map(U) : [], N = ta(o, C, v, {
3647
+ }), Z = H.getSyntacticDiagnostics(C).map(P), U = l ? H.getSemanticDiagnostics(C).filter((d) => d.category === o.DiagnosticCategory.Error || d.category === o.DiagnosticCategory.Warning).map(P) : [], N = ta(o, C, E, {
3692
3648
  builtInNames: e.builtInNames,
3693
3649
  isBuiltIn: e.isBuiltIn,
3694
- lenient: !!l && e.lenient
3650
+ lenient: e.lenient
3695
3651
  });
3696
- let k = [
3652
+ let L = [
3697
3653
  ...Z,
3698
- ...P,
3654
+ ...U,
3699
3655
  ...N.diagnostics
3700
3656
  ];
3701
- l && e.lenient && (k = ma(o, C, k));
3702
- const pe = N.functions, W = N.autoRun, Ge = k.some((d) => d.severity === "error"), qe = \`\${Qt.uuidV4()}-script\`;
3657
+ e.lenient && (L = L.filter((d) => d.code !== w.MissingType));
3658
+ const pe = N.functions, J = N.autoRun, Ge = L.some((d) => d.severity === "error"), He = \`\${Qt.uuidV4()}-script\`;
3703
3659
  let s = null;
3704
3660
  if (Ge) i = "";
3705
3661
  else {
3706
3662
  try {
3707
- r || (i = await la(o, i, p));
3663
+ r || (i = await la(o, i, p, void 0, e.minify ?? !1));
3708
3664
  } catch {
3709
3665
  console.warn("Error bundling script");
3710
3666
  }
3711
- const d = i.indexOf(Ht);
3667
+ const d = i.indexOf(Wt);
3712
3668
  d > -1 && (s = i.substring(d + 20 + 1, i.length), i = i.substring(0, d), i = i.replaceAll("globalThis.__SHEETXL", Ve));
3713
3669
  }
3714
3670
  const f = {
3715
3671
  functions: pe,
3716
- commitId: qe,
3672
+ commitId: He,
3717
3673
  source: t,
3718
3674
  language: "typescript",
3719
3675
  compiled: i
3720
3676
  };
3721
- return s && (f.sourceMap = s), W && (f.autoRun = W), {
3677
+ return s && (f.sourceMap = s), J && (f.autoRun = J), {
3722
3678
  module: f,
3723
- diagnostics: k
3679
+ diagnostics: L
3724
3680
  };
3725
3681
  }
3726
3682
  self.addEventListener("message", async (e) => {
3727
3683
  const { id: t, params: r } = e.data;
3728
3684
  try {
3729
- const n = await xa(r);
3685
+ const n = await ya(r);
3730
3686
  self.postMessage({
3731
3687
  id: t,
3732
3688
  result: n,
@@ -3744,4 +3700,4 @@ self.addEventListener("message", async (e) => {
3744
3700
  });
3745
3701
  }
3746
3702
  });
3747
- `,r=typeof self<`u`&&self.Blob&&new Blob([`URL.revokeObjectURL(import.meta.url);`,n],{type:`text/javascript;charset=utf-8`});function i(e){let t;try{if(t=r&&(self.URL||self.webkitURL).createObjectURL(r),!t)throw``;let n=new Worker(t,{type:`module`,name:e?.name});return n.addEventListener(`error`,()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;charset=utf-8,`+encodeURIComponent(n),{type:`module`,name:e?.name})}}var a=async()=>{let{compileModule:e}=await Promise.resolve().then(()=>require("./Ugq14m_1jIROW2RN2.cjs")),n=new t(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(globalThis.process?.versions?.node&&typeof Worker>`u`)return await a();if(typeof Worker<`u`){let t=new e(()=>new i);try{return await t.start(),t}catch(e){console.error(`Failed to start TypescriptCompiler worker reverting to fallback:`,e)}}return await a()};
3703
+ `,r=typeof self<`u`&&self.Blob&&new Blob([`URL.revokeObjectURL(import.meta.url);`,n],{type:`text/javascript;charset=utf-8`});function i(e){let t;try{if(t=r&&(self.URL||self.webkitURL).createObjectURL(r),!t)throw``;let n=new Worker(t,{type:`module`,name:e?.name});return n.addEventListener(`error`,()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;charset=utf-8,`+encodeURIComponent(n),{type:`module`,name:e?.name})}}var a=async()=>{let{compileModule:e}=await Promise.resolve().then(()=>require("./BPtsVWnUZPVQBm21.cjs")),n=new t(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(globalThis.process?.versions?.node&&typeof Worker>`u`)return await a();if(typeof Worker<`u`){let t=new e(()=>new i);try{return await t.start(),t}catch(e){console.error(`Failed to start TypescriptCompiler worker reverting to fallback:`,e)}}return await a()};