@sheetxl/studio-vanilla 0.7.4 → 0.7.6

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 (196) hide show
  1. package/README.md +9 -5
  2. package/browser/cjs/B7wz5PktsGQNKYoq.cjs +6 -0
  3. package/browser/cjs/{dGtOlClU3aLzqX9G.cjs → BCp8EKu-fnWiHBVn.cjs} +1 -1
  4. package/browser/cjs/{B4foheVEUqSBFEkt.cjs → BDDGDj16_JM9JSNw.cjs} +1 -1
  5. package/browser/cjs/{ChIk2dRWK_RpFnZl.cjs → BExG5buAzGxZlmJw.cjs} +4 -4
  6. package/browser/cjs/{C7GKCVS4tFPkLsu7.cjs → BFooBtpsd0cC8qDG.cjs} +1 -1
  7. package/browser/cjs/{A4yAgzK3Yi1hFoyF.cjs → BVMvTKkVRG3ARblV.cjs} +1 -1
  8. package/browser/cjs/{D3tIyPRHWxjXZjiu.cjs → BVjaiAwC49wwDMDI.cjs} +487 -487
  9. package/browser/cjs/{JZZCpLEpsC2LCYHH.cjs → BXZgVqL7XkYsoi33.cjs} +2 -2
  10. package/browser/cjs/{D4llH4xbqGzmuVYe.cjs → BYG2IVD2Gqh-q7h2.cjs} +1 -1
  11. package/browser/cjs/{De082R33Q24Czdd2.cjs → Bdri1EOZVClr_s5d.cjs} +3 -3
  12. package/browser/cjs/{8ORcPDrnyLtyRBC5.cjs → BgE8ast3JVnmh0C3.cjs} +8 -8
  13. package/browser/cjs/BiHqOGcXJWRP3FQy.cjs +32 -0
  14. package/browser/cjs/{DEzEcMfZx0I-QgJj.cjs → Bk3M_kByuRSgE2I7.cjs} +1 -1
  15. package/browser/cjs/{q1y9tq62y47f7mxy.cjs → BkGg_LJgjZj1NXHZ.cjs} +1 -1
  16. package/browser/cjs/BtkQmDedsmbw95Pc.cjs +6 -0
  17. package/browser/cjs/{Xzq847s6zAFUFWcq.cjs → BuBu8hoBcG1L5gWU.cjs} +1 -1
  18. package/browser/cjs/Bv5i7awWQ7wuK-N1.cjs +6 -0
  19. package/browser/cjs/{BeOgEB1ihIJx02Af.cjs → BzgLQhJ2sqEZCsrb.cjs} +1 -1
  20. package/browser/cjs/{B0Z0aRvslQ-luY7V.cjs → C2AUpeG75-dSdAU8.cjs} +2 -2
  21. package/browser/cjs/{DsWfniauN1Pu2Go3.cjs → C4IJ8og_7pYXOaaa.cjs} +1 -1
  22. package/browser/cjs/CA1KKidNd07a0DJH.cjs +11 -0
  23. package/browser/cjs/CEt7dvaTwfePj4ER.cjs +326 -0
  24. package/browser/cjs/{DAJLF0E4eUH-LX9t.cjs → CR_3znwknfRYUQjJ.cjs} +2 -2
  25. package/browser/cjs/{B13vFaAy_2-LVET-.cjs → CSyKzMKdjLhLe40I.cjs} +1 -1
  26. package/browser/cjs/{BgSDdeTv_xCIgBGD.cjs → CUpgKTIV0yg_QYHZ.cjs} +3 -3
  27. package/browser/cjs/{CAiDHxx6Gd0WmW60.cjs → CXoepqRJNlPbIb0L.cjs} +2 -2
  28. package/browser/cjs/{B47DWuTo-MqQ3jZz.cjs → CbvWAZQhSUzqCg17.cjs} +1 -1
  29. package/browser/cjs/{B3C8eQFrLaL-fvH-.cjs → CcpKk964zuH4DpgM.cjs} +23 -23
  30. package/browser/cjs/{B2LQcZ92fWIJv2Gz.cjs → CkA2FSMaiJvL4xnW.cjs} +1 -1
  31. package/browser/cjs/Ck_CXORzAURg_vBX.cjs +6 -0
  32. package/browser/cjs/{DHdO6HcI4UB6Ks3h.cjs → Cr07exWoIE8PUEEj.cjs} +2 -2
  33. package/browser/cjs/{D6RF346wXtLKkoJ-.cjs → CvfHD9dwIrbEr7hM.cjs} +2 -2
  34. package/browser/cjs/{BNPrWaUmde-C-8Vx.cjs → CwW8vJh2IPnMize_.cjs} +1 -1
  35. package/browser/cjs/{Bzqv14cPgkvKImRH.cjs → D10iC-iUoXqxQ9CM.cjs} +1 -1
  36. package/browser/cjs/{ipGL9YCfyze4LbQj.cjs → D3LgtUzW8PLgmpsZ.cjs} +1 -1
  37. package/browser/cjs/{8gwQqoquag37n7A4.cjs → DNQbFZZOmDP_rJEI.cjs} +1 -1
  38. package/browser/cjs/{DVATnEUJxTQMsLOO.cjs → DQmdNFzWR-h9wYSi.cjs} +1 -1
  39. package/browser/cjs/{ByA09xUI5G9YbxMz.cjs → DSJLyqI4SU0MEH4t.cjs} +1 -1
  40. package/browser/cjs/{C23bIG7E2r_Q0RAj.cjs → DT7rBrGhpA-qvk1s.cjs} +2 -2
  41. package/browser/cjs/{D0ApB39VH979ZUCx.cjs → DVN-SKDgVS0saY0w.cjs} +1 -1
  42. package/browser/cjs/{DFAQXO44wRvSlwCZ.cjs → DbMWszNm4m-5OHJM.cjs} +1 -1
  43. package/browser/cjs/{9YNUOzk1ChRHaQ0A.cjs → DlekR-mM3nwaCQEe.cjs} +1 -1
  44. package/browser/cjs/{DQrZ7_9M-BH9Zqhw.cjs → DpTEicgZ3kB8YiOW.cjs} +2 -2
  45. package/browser/cjs/{CwsdwMi5Xs8b4Yhg.cjs → DxV-3v_QDuTNlIGN.cjs} +1 -1
  46. package/browser/cjs/{pI4yZSOoBjkftfKX.cjs → DxeyIaJ9kTqsgZRQ.cjs} +1 -1
  47. package/browser/cjs/DzZiFk2M690x2Na1.cjs +6 -0
  48. package/browser/cjs/{DnirKDgaxys3R_a-.cjs → DzhZxaJEM_tDkpp3.cjs} +1 -1
  49. package/browser/cjs/{KuiK9SKQWvWBM3--.cjs → FNnpnCx0BZnP5O_r.cjs} +1 -1
  50. package/browser/cjs/{BlswEA5cHtxUqfLX.cjs → IvtzDl_wnrZdNyGU.cjs} +2 -2
  51. package/browser/cjs/{BprNr_E9PJXMBdn3.cjs → KsrjGYui6AhDRqb2.cjs} +1 -1
  52. package/browser/cjs/{BrKvmHqdJp6qNOFB.cjs → L04N6OHKBL9HtaR6.cjs} +1 -1
  53. package/browser/cjs/{oGzYb3Ra2l_2M4Fe.cjs → LBIRCj-htZFg3vYw.cjs} +2 -2
  54. package/browser/cjs/{D6Gix9vU3zy6x0wx.cjs → h58md3Y3c_TrQFVs.cjs} +1 -1
  55. package/browser/cjs/index.cjs +2 -2
  56. package/browser/cjs/{v9zKXidk5AvKGkz7.cjs → n8FQtLqAFmSMvjE4.cjs} +1 -1
  57. package/browser/cjs/{CWOIza8vwfNX5KIr.cjs → ogfsvA_pd4h9pATi.cjs} +1 -1
  58. package/browser/cjs/{D6pv0GOQycMcOyhu.cjs → tRdYhB45JaC-A2GK.cjs} +1 -1
  59. package/browser/cjs/{CBNecyEra54crLep.cjs → vboT_zkA4ebu7qb6.cjs} +2 -2
  60. package/browser/cjs/{D80cB8tOFfQNF4oS.cjs → xadQkBVply50Pfsy.cjs} +2 -2
  61. package/{cdn/assets/Bgcy7JI6AzSoovcw.js → browser/esm/1oqbqwBb8fBG-SRu.mjs} +1 -1
  62. package/{cdn/assets/BkjhtLKdZkaleH6j.js → browser/esm/2Q2-3kHAmqNdLDwx.mjs} +1 -1
  63. package/browser/esm/{CKOpVcqPaB2s4dTb.mjs → 95UgFJTU5KLLCYf1.mjs} +1 -1
  64. package/{cdn/assets/DhT-2pf586yDvyqZ.js → browser/esm/B-ODKhdttBS8vm_N.mjs} +1 -1
  65. package/browser/esm/B234kPv37vM5M_fj.mjs +147 -0
  66. package/browser/esm/{m7fz1VY0WrHhVE1u.mjs → B2xZE9bUnQFNq8II.mjs} +1 -1
  67. package/browser/esm/{ee5ZMqTpvvsprimB.mjs → B2zSi60WxtMoZe1R.mjs} +6 -6
  68. package/browser/esm/{CUq15BKQ0G25o03H.mjs → B6jSw9o_80cFla40.mjs} +16 -16
  69. package/browser/esm/{CrqJMWWEjzFZ-_Pk.mjs → BACzy7WLUtqbx_4H.mjs} +1 -1
  70. package/browser/esm/{BTM0pYbZvfLqBj6Z.mjs → BBklcrb4gMwawbW0.mjs} +2 -2
  71. package/browser/esm/{NohZsi_dnB1kc2oI.mjs → BNtLK4CbKRlPzlKT.mjs} +1 -1
  72. package/{cdn/assets/BfH0870g7ogWyWTa.js → browser/esm/BQEH9vzW6MLoEQpS.mjs} +1 -1
  73. package/{cdn/assets/JgQgURqWEwvTv_wi.js → browser/esm/B_8aGF2Dt1micWZg.mjs} +1 -1
  74. package/browser/esm/{CHOlVNulci003tpR.mjs → B_x9S07WXHgD87c0.mjs} +4 -4
  75. package/browser/esm/{J_m4I2bQAeYSJPWS.mjs → Bab--HPvvqz_dgfE.mjs} +1 -1
  76. package/browser/esm/{Ce3pCanMx2TnvT0I.mjs → BdviOCLagnd001u0.mjs} +7 -7
  77. package/browser/esm/{DRVrzDz7nVU_faHO.mjs → BgY1Ko1OPI79IwRW.mjs} +490 -490
  78. package/browser/esm/{CR9jsRCQsHJO01J4.mjs → BkUCD0Hn_pXVY8BG.mjs} +19 -19
  79. package/{cdn/assets/DYqsn4bTq8tt9z2d.js → browser/esm/BoXZxgubGIYbaajd.mjs} +1 -1
  80. package/{cdn/assets/C4aAJQZlcVwK7Bv7.js → browser/esm/BpD67geWfh3vSqJb.mjs} +1 -1
  81. package/browser/esm/{BsryTthQuZrS1w0h.mjs → BrFqlosk1B5lJ1wT.mjs} +3 -3
  82. package/{cdn/assets/ji2x5yzvwhn2JiFp.js → browser/esm/C7IRTn7ZcC4A4N9E.mjs} +1 -1
  83. package/browser/esm/{P5B5SOdOUaZr99nj.mjs → CE_I19FK1G8gpXuH.mjs} +6 -6
  84. package/browser/esm/{uYFnTWRHS-M71aW3.mjs → CGT3S9MzdRk9rFZa.mjs} +48 -48
  85. package/browser/esm/{B7wG8K-M9ldv3InT.mjs → CIyDrXxc2D-28-mW.mjs} +1 -1
  86. package/{cdn/assets/YFMiozbFWZjo74Td.js → browser/esm/CNtcjn_Cn7cQOWP5.mjs} +1 -1
  87. package/{cdn/assets/_N4vH5kWapbfarDc.js → browser/esm/CQ7RZs6ggMhy9TKv.mjs} +1 -1
  88. package/{cdn/assets/Cb1GBW9E5GfRvhuS.js → browser/esm/CXwDT0Rc1CeP5C6C.mjs} +1 -1
  89. package/browser/esm/{Bioh6T6jynIt2aBf.mjs → Cck1ZCX3140-xMNV.mjs} +6 -6
  90. package/browser/esm/{C3ZYwFCm4zV0PV7L.mjs → CdWkJs6rYnFmetuJ.mjs} +1 -1
  91. package/browser/esm/{BVvwFIl1xvigNZTj.mjs → Cf3RGVsf9qqF9dVB.mjs} +1 -1
  92. package/browser/esm/{CFey64nL6K_JDHyo.mjs → CrM-2l9BMnS0Lkh1.mjs} +1 -1
  93. package/browser/esm/{DswWgS_zGnCjt804.mjs → CuTudjzephfkt36F.mjs} +5 -5
  94. package/browser/esm/{B3ECMs0QjPnXbJEw.mjs → Cx11CBX88voKcCgb.mjs} +12 -12
  95. package/browser/esm/{BzCCXyLxR1Tx_PQ6.mjs → D2h5jM12-ZC4VX_T.mjs} +53 -53
  96. package/browser/esm/{BzXLeceeaODxxlsN.mjs → D3h1wZvV9AHRqaZq.mjs} +4 -4
  97. package/browser/esm/{CbiCECqtZzDk6jeR.mjs → D8NWmHOvxbnTKXqJ.mjs} +6 -6
  98. package/browser/esm/{0egw9xufQUK5XQZ5.mjs → D8xKI9bNALrDO0EI.mjs} +1 -1
  99. package/{cdn/assets/B9wr_AwSb0JtPoMv.js → browser/esm/DCyiJ8jlUG-B76Tb.mjs} +1 -1
  100. package/browser/esm/{C2sR98LOxBBkEECx.mjs → DDCRVmkZtcoY5u7P.mjs} +1 -1
  101. package/browser/esm/{CSU3ycILp620z_i8.mjs → DElt69us9iAn7_Ww.mjs} +2 -2
  102. package/browser/esm/{CqxLzaP5z64d6Lx4.mjs → DMKVMuMh4XJ4LGTp.mjs} +1 -1
  103. package/{cdn/assets/CfEvt84zrQGwFpt2.js → browser/esm/DVTFDA3Ssz9_4NcI.mjs} +1 -1
  104. package/{cdn/assets/DK5o4bmDWZoxlyie.js → browser/esm/DWvwKL3aLkiqeSo1.mjs} +8 -8
  105. package/{cdn/assets/CzgyRT7Dh3AVKcWl.js → browser/esm/DZUm1u-H4bx3eAew.mjs} +1 -1
  106. package/browser/esm/{VzlXiTXfqwuLrkgg.mjs → Dfx2_yQe2iRmxaeg.mjs} +1 -1
  107. package/browser/esm/{DvaoVWL-VdS7k_i3.mjs → DpfLzruLjqt5WaT4.mjs} +11 -11
  108. package/browser/esm/{C4dAWyoYzg5AFxSE.mjs → DsdO4-Dxa2PoruYq.mjs} +13 -13
  109. package/browser/esm/DwDbdg2MYgA3Tnfe.mjs +11 -0
  110. package/{cdn/assets/BeENppGCoF_AwA6g.js → browser/esm/FMJGVl5BuwTspvXB.mjs} +2 -2
  111. package/{cdn/assets/BDSX8FAyHcAmsE-T.js → browser/esm/Gye5i_y6LTkSeZWV.mjs} +1 -1
  112. package/browser/esm/{BrGzSkrQVV-CCVui.mjs → T7q0269_QPB8lCOv.mjs} +1 -1
  113. package/{cdn/assets/D4aEzWRsHbRiDZQf.js → browser/esm/Yx74P2tuzTl_vWeR.mjs} +20410 -19852
  114. package/browser/esm/{DjtYK-s8g6tP0TRw.mjs → ftYo_nnqtr7QkIOP.mjs} +2 -2
  115. package/browser/esm/index.mjs +2 -2
  116. package/{cdn/assets/DKrP22W3r6dc2ll8.js → browser/esm/pOUm75Y0UEeP9DxX.mjs} +1 -1
  117. package/{cdn/assets/wrn_BUWuBI2ou-lE.js → browser/esm/ymbdHoeF6JmtSeHf.mjs} +1 -1
  118. package/browser/esm/{C1TJTYVoSUvCsI72.mjs → yvf7TZWzRux6eb-r.mjs} +2 -2
  119. package/browser/esm/{6dkX2k_H0PA_iz5X.mjs → zd-Kc5cLey9IZ283.mjs} +1 -1
  120. package/cdn/assets/{D6gMyvRPXwYEpaiW.js → -ZtRkphm8qlj8ebp.js} +1 -1
  121. package/{browser/esm/Bgcy7JI6AzSoovcw.mjs → cdn/assets/1oqbqwBb8fBG-SRu.js} +1 -1
  122. package/{browser/esm/BkjhtLKdZkaleH6j.mjs → cdn/assets/2Q2-3kHAmqNdLDwx.js} +1 -1
  123. package/cdn/assets/{CdoIc8OarIB8C5y3.js → 3tDFtZFz8w76rYBA.js} +18 -18
  124. package/cdn/assets/{CvTBNZMoY5-DwtAb.js → 5dKHsl0r2V-JmyNP.js} +2 -2
  125. package/cdn/assets/{BZpRwfavZD9rO_v8.js → 8lSvXDLbx-eV1Nz0.js} +490 -490
  126. package/cdn/assets/{CKOpVcqPaB2s4dTb.js → 95UgFJTU5KLLCYf1.js} +1 -1
  127. package/{browser/esm/DhT-2pf586yDvyqZ.mjs → cdn/assets/B-ODKhdttBS8vm_N.js} +1 -1
  128. package/cdn/assets/{m7fz1VY0WrHhVE1u.js → B2xZE9bUnQFNq8II.js} +1 -1
  129. package/cdn/assets/{CrqJMWWEjzFZ-_Pk.js → BACzy7WLUtqbx_4H.js} +1 -1
  130. package/cdn/assets/{gRJ4OcAtWEBEGLJD.js → BCA5bMx1egW3eRmp.js} +14 -14
  131. package/cdn/assets/{DTHfoEyAv88YJtid.js → BH4LGqC8Z4Iqh7XS.js} +2 -2
  132. package/cdn/assets/{NohZsi_dnB1kc2oI.js → BNtLK4CbKRlPzlKT.js} +1 -1
  133. package/{browser/esm/BfH0870g7ogWyWTa.mjs → cdn/assets/BQEH9vzW6MLoEQpS.js} +1 -1
  134. package/cdn/assets/{TAuxEP6K9MOe8hvY.js → BXHEwZhPbMaOdb_Z.js} +3 -3
  135. package/cdn/assets/{DuVOZ5CVHDzuF-Wf.js → BXs2QdxsuX2lw_x3.js} +73 -73
  136. package/{browser/esm/JgQgURqWEwvTv_wi.mjs → cdn/assets/B_8aGF2Dt1micWZg.js} +1 -1
  137. package/cdn/assets/{J_m4I2bQAeYSJPWS.js → Bab--HPvvqz_dgfE.js} +1 -1
  138. package/{browser/esm/DYqsn4bTq8tt9z2d.mjs → cdn/assets/BoXZxgubGIYbaajd.js} +1 -1
  139. package/{browser/esm/C4aAJQZlcVwK7Bv7.mjs → cdn/assets/BpD67geWfh3vSqJb.js} +1 -1
  140. package/cdn/assets/{jeiAiNavXwDjx5bH.js → BqOHcOxJPktjB8oL.js} +12 -12
  141. package/{browser/esm/Z1fSZhtHNjC6OoN6.mjs → cdn/assets/Bqca9Nkofzm6UFZ1.js} +20260 -20050
  142. package/cdn/assets/{DAMni_kLlITX8qAW.js → BtXsNo8KL5XLE7xA.js} +50 -50
  143. package/cdn/assets/{CxFPsh5ojrvYoLqP.js → ByTOIrEYNeA_wpXy.js} +80 -80
  144. package/cdn/assets/{IQp8evg14s1_pMGI.js → C2wV3vQ-5dEezy7R.js} +3 -3
  145. package/cdn/assets/{BZ1FXLdV7kLoj8S2.js → C3urWNCGtWeKM42K.js} +4 -4
  146. package/cdn/assets/{Bp1BVz04Xy4W95PB.js → C75SpXwjYmdo6WC6.js} +10 -10
  147. package/{browser/esm/ji2x5yzvwhn2JiFp.mjs → cdn/assets/C7IRTn7ZcC4A4N9E.js} +1 -1
  148. package/cdn/assets/{DZSQDf-SlYIAnwqI.js → CHESIwo-YlB-g6gr.js} +2 -2
  149. package/cdn/assets/{B7wG8K-M9ldv3InT.js → CIyDrXxc2D-28-mW.js} +1 -1
  150. package/{browser/esm/YFMiozbFWZjo74Td.mjs → cdn/assets/CNtcjn_Cn7cQOWP5.js} +1 -1
  151. package/{browser/esm/_N4vH5kWapbfarDc.mjs → cdn/assets/CQ7RZs6ggMhy9TKv.js} +1 -1
  152. package/{browser/esm/Cb1GBW9E5GfRvhuS.mjs → cdn/assets/CXwDT0Rc1CeP5C6C.js} +1 -1
  153. package/cdn/assets/{C3ZYwFCm4zV0PV7L.js → CdWkJs6rYnFmetuJ.js} +1 -1
  154. package/cdn/assets/{BVvwFIl1xvigNZTj.js → Cf3RGVsf9qqF9dVB.js} +1 -1
  155. package/cdn/assets/{McZLFG7PefCrtXxD.js → Cn0K1aSWZCVlK66V.js} +1 -1
  156. package/cdn/assets/{mgzh0Oj545G9VFmY.js → CnLv6xBX-8QXgr8C.js} +7 -7
  157. package/cdn/assets/{CFey64nL6K_JDHyo.js → CrM-2l9BMnS0Lkh1.js} +1 -1
  158. package/cdn/assets/{CaHwS8usPT5gIFuY.js → Cwd_PFnZO3GB10Ib.js} +10 -10
  159. package/cdn/assets/{CR-xAI2miMYh-gdy.js → D6Bd-wh8DUctiTBq.js} +4 -4
  160. package/cdn/assets/{0egw9xufQUK5XQZ5.js → D8xKI9bNALrDO0EI.js} +1 -1
  161. package/{browser/esm/B9wr_AwSb0JtPoMv.mjs → cdn/assets/DCyiJ8jlUG-B76Tb.js} +1 -1
  162. package/cdn/assets/{C2sR98LOxBBkEECx.js → DDCRVmkZtcoY5u7P.js} +1 -1
  163. package/cdn/assets/{BqbxC6sS2OoaM51Y.js → DNDzb50fYztOU6sL.js} +2 -2
  164. package/cdn/assets/{ddSl0Ga-rXVB9Yci.js → DPUzShmQFsZiAy1y.js} +14 -14
  165. package/cdn/assets/{UGRaW68kY1lQin4c.js → DVE11KnTbk8UCl2L.js} +4 -4
  166. package/{browser/esm/CfEvt84zrQGwFpt2.mjs → cdn/assets/DVTFDA3Ssz9_4NcI.js} +1 -1
  167. package/{browser/esm/CzgyRT7Dh3AVKcWl.mjs → cdn/assets/DZUm1u-H4bx3eAew.js} +1 -1
  168. package/cdn/assets/DZwStU2_wQO6T5Ug.js +12 -0
  169. package/cdn/assets/{Bv7E-FgORAWOkyiV.js → DfsGU1WZFPDvuEF7.js} +2 -2
  170. package/cdn/assets/{VzlXiTXfqwuLrkgg.js → Dfx2_yQe2iRmxaeg.js} +1 -1
  171. package/{browser/esm/UQSXr-cpRWqp8Ktj.mjs → cdn/assets/DnoVwExJraUmPO4h.js} +2 -2
  172. package/cdn/assets/{DWxb-keKnWDZ32ov.js → Dqv_r2crwVb5hDRt.js} +2 -2
  173. package/cdn/assets/{DMOM_dk7px3Id2fD.js → DtDieGCmD7tfP-IC.js} +21 -21
  174. package/{browser/esm/B4U-HbDDW978wKeB.mjs → cdn/assets/F9FRh_1TEIanjKfd.js} +20 -20
  175. package/{browser/esm/BDSX8FAyHcAmsE-T.mjs → cdn/assets/Gye5i_y6LTkSeZWV.js} +1 -1
  176. package/cdn/assets/JUjq8dsNEwlP2TmD.js +149 -0
  177. package/cdn/assets/{tbqH71TvrNeRjwAy.js → L4iwFaFUwrc5iENg.js} +3 -3
  178. package/cdn/assets/{pv07rmyN2zy5KZrb.js → RgzmLUjP4Fyf4q1K.js} +2 -2
  179. package/cdn/assets/{BrGzSkrQVV-CCVui.js → T7q0269_QPB8lCOv.js} +1 -1
  180. package/cdn/assets/{BFfLoUaapPcM_eb0.js → eIefNRuHeizv4VyQ.js} +10 -10
  181. package/cdn/assets/{B4MTgKmMZcXoDlYG.js → ij04ZtjSyJ1O2CRc.js} +2 -2
  182. package/{browser/esm/DKrP22W3r6dc2ll8.mjs → cdn/assets/pOUm75Y0UEeP9DxX.js} +1 -1
  183. package/{browser/esm/wrn_BUWuBI2ou-lE.mjs → cdn/assets/ymbdHoeF6JmtSeHf.js} +1 -1
  184. package/cdn/assets/{6dkX2k_H0PA_iz5X.js → zd-Kc5cLey9IZ283.js} +1 -1
  185. package/cdn/index.js +2 -2
  186. package/cdn/loader.js +1 -1
  187. package/package.json +16 -5
  188. package/browser/cjs/B7MW5qdFHlXONQ6l.cjs +0 -6
  189. package/browser/cjs/CTT_jzhLio55PSMa.cjs +0 -32
  190. package/browser/cjs/Cd4lc7sbp3kKfIbA.cjs +0 -6
  191. package/browser/cjs/Cfr9LxunC2fgJtM2.cjs +0 -11
  192. package/browser/cjs/DH59epfNQumKG6UO.cjs +0 -6
  193. package/browser/cjs/Dg0Zl23k4ZwHK5Nt.cjs +0 -6
  194. package/browser/cjs/MD9O1VNhhdH5RoiA.cjs +0 -330
  195. package/browser/esm/ChrPZQnuQU-qVVa1.mjs +0 -147
  196. package/cdn/assets/BHyn4CasWPQ92Eud.js +0 -149
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sheetxl/studio-vanilla",
3
3
  "description": "SheetXL Studio - Vanilla entry point for integrating SheetXL UI.",
4
- "version": "0.7.4",
4
+ "version": "0.7.6",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "main": "./browser/esm/index.mjs",
@@ -20,13 +20,25 @@
20
20
  "*.css",
21
21
  "**/*.css"
22
22
  ],
23
+ "homepage": "https://sheetxl.com",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/sheetxl/sheetxl.git"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/sheetxl/sheetxl/issues"
30
+ },
23
31
  "keywords": [
24
32
  "sheetxl",
25
33
  "spreadsheet",
34
+ "javascript",
35
+ "typescript",
36
+ "data grid",
37
+ "excel",
38
+ "xlsx",
26
39
  "utilities",
27
40
  "sheets",
28
41
  "grid",
29
- "excel",
30
42
  "vanilla",
31
43
  "office",
32
44
  "automation",
@@ -36,13 +48,12 @@
36
48
  "@emotion/cache": "^11.14.0",
37
49
  "@emotion/react": "^11.14.0",
38
50
  "@emotion/styled": "^11.14.0",
39
- "@mui/icons-material": "^6.5.0",
40
51
  "@mui/material": "^6.5.0",
41
52
  "@mui/styled-engine": "^6.5.0",
42
53
  "@mui/system": "^6.5.0",
43
54
  "@mui/utils": "^6.4.9",
44
- "@sheetxl/studio-mui": "^0.7.4",
45
- "@sheetxl/sdk": "^0.7.4",
55
+ "@sheetxl/studio-mui": "^0.7.6",
56
+ "@sheetxl/sdk": "^0.7.6",
46
57
  "react": "^19.1.0",
47
58
  "react-dom": "^19.1.0",
48
59
  "csstype": "^3.1.3",
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MD9O1VNhhdH5RoiA.cjs"),G=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),X=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),J=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Q=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),T=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:p,tabIndex:f=0,...R}=g,[O,m]=e.reactExports.useState(()=>z(a,i));e.reactExports.useEffect(()=>{m(z(a,i))},[a,i]);const y=e.T(c=>{m(c.target.value),p?.(i[c.target.value])},[p,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(c=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:c,children:c},c)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:y,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},...R,children:r})]})}),S={Workbook:"workbook",Sheet:"sheet"},V={enter:140,exit:140},$={Formulas:e.Nt.Content.Formulas,Values:e.Nt.Content.Values,Notes:e.Nt.Content.Notes,Comments:e.Nt.Content.Comments},Z={...$};delete Z.Values;const Y={"By Rows":!0,"By Columns":!1},z=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const p=a[i];if(d[p]===g)return p}},H=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:p,replaceOptions:f,title:R,onHide:O,onFindOrReplace:m,...y}=g,r=e.reactExports.useRef(null),c=e.reactExports.useRef(null),w=e.reactExports.useRef(null),k=e.reactExports.useRef(null),I=e.reactExports.useRef(null),F=e.reactExports.useRef(null),A=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[N,h]=e.reactExports.useState(!1),[C,W]=e.reactExports.useState(!1),[x,v]=e.reactExports.useState(d),[L,b]=e.reactExports.useState(!1),[B,D]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.w.Orientation.Row,fields:[e.Nt.Content.Formulas]},scope:S.Sheet}),j=e.T(async(t,n,s,E)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.Nt.Content.Values&&(u.findOptions.fields=[e.Nt.Content.Formulas]),u.findOptions.reverse=!t;const q=await m({autoFocus:E,...u});b(q===0)},[o,m]);e.reactExports.useEffect(()=>{b(!1)},[o,C,x]);const P=e.T((t,n)=>{if(t.keyCode===e.ro.Enter){if(!o.findText)return;let s=!0,E=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(E=!0),A(t,E?F.current:I.current)):A(t,s?k.current:w.current),j(s,n,E,!1)}},[o]),K=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findText=a&&a.length>0?a:t.findText??"",h(!0),i!==void 0&&(n.replaceText=i),p&&(n.findOptions={...n.findOptions,...p}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.Nt.Content.Formulas]);const s=!(!f&&i===void 0);return s&&v(s),n}),B||K.current?.focus()},[a,i,p,f]),e.reactExports.useEffect(()=>{x?(o.findOptions.fields[0],e.Nt.Content.Values):h(!0)},[x]),e.reactExports.useEffect(()=>{if(N&&r.current&&o.findText===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void h(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),h(!1)},{once:!0})},[N,o]);const[U,{width:M}]=e.No();return e.jsxRuntimeExports.jsx(e.x6,{ref:K,title:R??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>D(!0),onBlur:()=>{D(!1),b(!1)},PaperProps:{elevation:B?3:1},...y,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:U,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)v(!0),r.current?.contains(document.activeElement)&&c.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:C,onSelectToggle:t=>{W(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.p2(e.jsxRuntimeExports.jsx(e.b9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:x,onSelectToggle:t=>{v(t)},preventFocus:!0,label:"Toggle Replace",icon:e.p2(e.jsxRuntimeExports.jsx(e.g9,{})),shortcut:{key:x?"F":"H",modifiers:[e.Z.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),minWidth:M>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchCase,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.V9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.H9,{}))}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.z9,{}))})]})})},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>L?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>L?`${t.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:t=>{l(n=>{const s={...n};return s.findText=t.target.value,s})},onKeyDown:t=>P(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{selected:o.findOptions.reverse,onSelectToggle:t=>{j(!1,!1)},touchRippleRef:w,label:"",shortcut:{key:"Enter",modifiers:[e.Z.Shift]},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(G,{}):e.jsxRuntimeExports.jsx(Q,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{selected:!o.findOptions.reverse,onSelectToggle:t=>{j(!0,!1)},touchRippleRef:k,label:"Next Match",shortcut:{key:"Enter"},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(J,{}):e.jsxRuntimeExports.jsx(X,{})),disabled:!o.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:x,timeout:V,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{ref:c,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>P(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0)},touchRippleRef:I,label:"Replace",shortcut:{key:"Enter"},icon:e.p2(e.jsxRuntimeExports.jsx(e.x9,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.rt,{onSelectToggle:t=>{j(!0,!0,!0)},touchRippleRef:F,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.Z.Ctrl,e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.C9,{})),disabled:!o.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:C,timeout:V,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.f8,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:M>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(T,{label:"Within",value:o.scope,options:S,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Search",value:o.findOptions.orientation!==e.w.Orientation.Column,options:Y,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.w.Orientation.Row:e.w.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Look in",value:x&&o.findOptions.fields?.[0]===e.Nt.Content.Values?e.Nt.Content.Formulas:o.findOptions.fields?.[0],options:x?Z:$,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=H,exports.ScopeOptions=S,exports.default=H;
@@ -1,32 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./MD9O1VNhhdH5RoiA.cjs");let $=null,L=null;const le={compilerOptions:{target:"esnext"}},se=async()=>`
7
- interface FirstTest {
8
- isTrue?: boolean;
9
- }
10
- `,Y=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),U="SheetXL";V(U,Y),V(U,Z),V(U,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./BprNr_E9PJXMBdn3.cjs"))).initialize()}catch(T){throw R=null,T}finally{R=null}}exports.compileModule=async function(T){const S=T?.source??null;if(!S)return null;const z=(T.disableBundle||T.declarationsOnly)??!1,P=[se(),pe()],X=await Promise.all(P),ee=X[0],n=X[1];let C="",j=null;const O=[],te={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:n.ScriptTarget.ES2020},A="script",I=`${A}.ts`,_="lib.d.ts",H="global.d.ts",F={[I]:S,[_]:`
11
- /**
12
- * Represents the completion of an asynchronous operation
13
- */
14
- interface Promise<T> {
15
- /**
16
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
17
- * resolved value cannot be modified from the callback.
18
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
19
- * @returns A Promise for the completion of the callback.
20
- */
21
- finally(onfinally?: (() => void) | undefined | null): Promise<T>;
22
- }
23
- `,[H]:ee},ne={getSourceFile:(e,o,y,r)=>n.createSourceFile(e,F[e],n.ScriptTarget.Latest,!0),fileExists:e=>F[e]!==void 0,readFile:e=>F[e],writeFile:(e,o)=>{F[e]=o},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>_,getNewLine:()=>`
24
- `},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Y.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,Q]=w,ae=[oe.trim()];Q&&ae.push(Q.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.te.uuidV4()}-script`;try{z||k.length!==0||(C=await(async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await(async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./D6pv0GOQycMcOyhu.cjs"));return $=await t(),c(),$}catch(t){throw console.error("Failed to import or initialize esbuild:",t),L=null,l(t),t}})(),f="@sheetxl/primitives",m=`
25
- export const FormulaContext = globalThis.${r}?.FormulaContext;
26
- export const ScalarType = globalThis.${r}?.ScalarType;
27
- export const Observable = globalThis.${r}?.Observable;
28
- export const IRange = globalThis.${r}?.IRange;
29
- export const FormulaError = globalThis.${r}?.FormulaError;
30
- // Add more exports as needed
31
- `,x={name:"sheetxl-esbuild-in-memory",setup(c){const l="sheetxl-"+new Date().getTime();c.onResolve({filter:new RegExp(`^(${y.replace("/","\\/")}|${f})$`)},t=>({path:t.path,namespace:l})),c.onResolve({filter:/.*/},t=>{if(t.namespace!==l)return console.warn(`esbuild: Treating import "${t.path}" as external.`),{path:t.path,external:!0}}),c.onLoad({filter:/.*/,namespace:l},t=>{let s;if(t.path===y)s=o;else{if(t.path!==f)return{errors:[{text:`Cannot load unknown path in ${l}: ${t.path}`}]};s=m}return{contents:s,loader:"ts"}})}},p=await i.build({entryPoints:[y],bundle:!0,write:!1,format:"esm",plugins:[x],sourcemap:"inline",tsconfigRaw:le,minify:!0,platform:"neutral"});if(p.outputFiles&&p.outputFiles.length>0)return p.outputFiles[0].text;throw p.errors&&p.errors.length>0?new Error(`esbuild bundling failed: ${p.errors.map(c=>c.text).join(`
32
- `)}`):new Error("esbuild did not produce an output file.")}catch(i){throw console.error("esbuild bundling process failed:",i),i}})(0,C,A))}catch{console.warn("Error bundling script")}const G={functions:O,commitId:ie,source:S,name:"Script",language:"typescript",compiled:C};return j&&(G.autoRun=j),G};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MD9O1VNhhdH5RoiA.cjs"),D=["Input"],M=e.reactExports.memo(e.reactExports.forwardRef((f,h)=>{const{initialValue:T="",onOption:y,onValidateOption:i,onInputOption:p,onValidateInputOption:r,onDone:s,inputProps:l,inputLabel:O,inputType:E,inputPlaceHolder:j,options:u=D,autoFocusSel:v=".autoFocus",cancelOption:c,defaultOption:d=u?.[0],...w}=f,[F,S]=e.reactExports.useState(!1),[o,P]=e.reactExports.useState(T),[b,C]=e.reactExports.useState(""),[I,k]=e.reactExports.useState(!0),n=e.T(async(t,a)=>{if(!r)return!0;const g=await r?.(t,a);C(g?.message??"");const m=g?.valid??!0;return k(m),m},[r]),x=e.T(async t=>{p?.(o,t)},[o,p,s,y,c,d]),R=e.T(async t=>{t.keyCode===e.ro.Enter&&await n?.(o,null)},[o,x]),V=e.T(t=>{P(t.target.value),n?.(t.target.value,null)},[i]),B=e.T(async t=>{let a=await n(o,t);try{a!==!1&&(a=await n(o,t))}catch{}return a??!0},[o,i]);return e.jsxRuntimeExports.jsx(e.k3,{options:u,onDone:s,onOption:(t,a)=>{a||x(t)},onValidateOption:B,cancelOption:c,defaultOption:d,autoFocusSel:v,ref:h,...w,children:e.jsxRuntimeExports.jsx(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0)},children:e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{onFocus:t=>{F||t.target?.select(),S(!0)},type:E,label:O,helperText:b||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5),color:I?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:j,spellCheck:!1,autoComplete:"off",...l,className:e.z0("autoFocus",l?.className),sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:o,onChange:V,onKeyDown:R,onContextMenu:t=>{t.stopPropagation()}})})})})}));exports.default=M;
@@ -1,11 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./MD9O1VNhhdH5RoiA.cjs"),rs=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",ks=new RegExp(`^[${rs}][-${rs}.0-9·̀-ͯ‿-⁀]*$`,"u");function us(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const ns="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",As=new RegExp(`^[${ns}][-${ns}.0-9·̀-ͯ‿-⁀]*$`,"u");function ds(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const Q=function(i){return i===32||i===10||i===13||i===9},Ds=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},ne=us,as=function(i){return us(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ps=[32,10,13,9],Ps=ks,Es=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Os=ds,Is=function(i){return ds(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},Vs=As,me="http://www.w3.org/XML/1998/namespace",Zt="http://www.w3.org/2000/xmlns/",Ls={__proto__:null,xml:me,xmlns:Zt},Ns={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},P=-1,ct=-2,W=13,jt=33,nt=10,vt=60,Gt=61,H=62,F=63,Qt=93,fe=i=>i===34||i===39,gs=[34,39],Rs=[...gs,91,H],Ms=[...gs,vt,Qt],$s=[Gt,F,...ps],js=[...ps,H,38,vt];function Ee(i,t,s){switch(t){case"xml":s!==me&&i.fail(`xml prefix must be bound to ${me}.`);break;case"xmlns":s!==Zt&&i.fail(`xmlns prefix must be bound to ${Zt}.`)}switch(s){case Zt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Zt}.`);break;case me:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Hs=i=>Vs.test(i),Xs=i=>Ps.test(i),ls={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Fs{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Os,this.nameCheck=Is,this.isName=Hs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...Ls};const o=this.opt.additionalNamespaces;o!=null&&((function(n,a){for(const h of Object.keys(a))Ee(n,h,a[h])})(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=ne,this.nameCheck=as,this.isName=Xs,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ns),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[ls[t]]=s}off(t){this[ls[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return P;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:return t.charCodeAt(s+1)===nt&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return P;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case nt:return this.line++,this.column=0,this.positionAtNewLine=this.position,nt;case 13:{const a=t.charCodeAt(s+1);a!==nt&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,ct;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===ct?nt:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===ct,h=a?nt:n;if(h===P||t.includes(h))return this.text+=o.slice(s,this.prevI),h;a&&(this.text+=`${o.slice(s,this.prevI)}
7
- `,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case ct:this.text+=`${o.slice(s,this.prevI)}
8
- `,s=this.i,n=nt;break;case P:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===P)return this.name+=t.slice(s),P;if(!as(o))return this.name+=t.slice(s,this.prevI),o===ct?nt:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===P||!Q(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=Ds,this.getCode=this.getCode10):(this.isChar=Es,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case vt:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case P:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Rs);switch(t){case H:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case P:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:fe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Ms);t!==P&&(this.text+=String.fromCodePoint(t),t===Qt?this.state=2:t===vt?this.state=6:fe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case F:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(F)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===H&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case ct:this.entity+=`${s.slice(t,this.prevI)}
9
- `,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case P:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(ne(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case F:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==H?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=W}sCData(){this.captureToChar(Qt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Qt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case H:this.cdataHandler?.(this.text),this.text="",this.state=W;break;case Qt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===F||Q(t)?(this.fail("processing instruction without a target."),this.state=t===F?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===P)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===F;n||Q(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?jt:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===F?this.state=26:Q(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(F)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===H){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=W}else t===F?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==F?t!==P&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=jt}sXMLDeclName(){const t=this.captureTo($s);if(t===F)return this.state=jt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(Q(t)||t===Gt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===F)return this.state=jt,void this.fail("XML declaration is incomplete.");Q(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===F)return this.state=jt,void this.fail("XML declaration is incomplete.");Q(t)||(fe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,F]);if(t===F)return this.state=jt,this.text="",void this.fail("XML declaration is incomplete.");if(t===P)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==F?(Q(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=jt}sXMLDeclEnding(){this.getCodeNorm()===H?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=W):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===P)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case H:this.openTag();break;case 47:this.state=35;break;default:Q(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===H?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==P&&(ne(t)?(this.unget(),this.state=37):t===H?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:Q(t)?this.state=38:t===H?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==P&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case P:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===H?this.openTag():ne(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();fe(t)?(this.q=t,this.state=40):Q(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case nt:case ct:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case vt:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case P:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();Q(t)?this.state=36:t===H?this.openTag():t===47?this.state=35:ne(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(js);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case vt:this.fail("disallowed character.");break;case P:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===H?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===H?this.closeTag():Q(t)?this.state=44:t!==P&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case H:this.closeTag();break;case P:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case vt:if(this.state=15,n!==void 0){const{text:a}=this,h=o.slice(t,this.prevI);a.length!==0?(n(a+h),this.text=""):h.length!==0&&n(h)}s=0;break t;case 38:this.state=14,this.entityReturnState=W,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Qt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case H:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case ct:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
10
- `),t=this.i,s=0;break;case P:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case vt:if(this.state=15,o!==void 0){const{text:h}=this,f=s.slice(t,this.prevI);h.length!==0?(o(h+f),this.text=""):f.length!==0&&o(f)}break t;case 38:this.state=14,this.entityReturnState=W,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case ct:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
11
- `),t=this.i;break;case P:o!==void 0&&(this.text+=s.slice(t));break t;default:Q(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const h=s.trim();this.currentXMLVersion==="1.0"&&h===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=h,Ee(this,n,h)}else if(t==="xmlns"){const h=s.trim();this.topNS[""]=h,Ee(this,"",h)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:h}=this.qname(s.name);s.prefix=a,s.local=h;const f=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),f===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:h,prefix:f,local:D}=a;let x,S;f===""?(x=h==="xmlns"?Zt:"",S=h):(x=this.resolve(f),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(f)}.`),x=f),S=`{${x}}${D}`),n.has(S)&&this.fail(`duplicate attribute: ${S}.`),n.add(S),a.uri=x,o[h]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Oe,mt;(mt=Oe||(Oe={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},mt.parseStream=async(i,t,s)=>{const o=new Fs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(mt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(mt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(mt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(mt.Events.Attribute,t.onAttribute),t.onText&&o.on(mt.Events.Text,t.onText),t.onError&&o.on(mt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(mt.Events.End,a)}for(;;){const{value:a,done:h}=await i.read();if(h)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,A=i=>{const t=parseInt(i);return isNaN(t)?null:t},ht=i=>{const t=parseFloat(i);return isNaN(t)?null:t},k=null;class Bs{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let h=null,f=null,D=null,x=null;const S=[],E={key:null,source:t};let b=null,R=!1;const _=(m,c)=>{let y=D.attributes[m];if(c){if(Array.isArray(c)){for(let O=0;O<c.length;O++)if(y==null||(y=c[O](y),y==null))return}else if(y==null||(y=c(y),y==null))return}return y},T={getSource:()=>b.source,setSource:m=>{b.source=m},setKey:m=>{b.key=m},getFrom:()=>D,getAttribute:(m,c)=>_(m,c)??null,hasAttribute:m=>T.getAttribute(m)!==null,getParent:()=>S[S.length-2].source,getPath:()=>{const m=[];for(let c=0;c<a.length;c++)m.push(a[c].local);return m.join("\\")},parseAttribute:_,copyToObject:(m,c,y,O)=>{const z=_(O??c,y);z!==void 0&&(m[c]=z)},copyTo:(m,c,y)=>{const O=_(y??m,c);O!==void 0&&(b.source[m]=O)},warn:m=>{o?o?.(m):console.warn(m)}};return{onOpenTag:m=>{let c=m.name;const y=c.indexOf(":");y!==-1&&(c=c.slice(y+1));const O=n.get(c);if(h={local:c,visitor:O,tag:m,destination:null},R)return a.push(h),f=c,void(D=m);x=h?.visitor??null,O&&(b=a.length===0?E:x?.to!==null?{key:null,source:{}}:null,h.destination=b,b&&S.push(b)),a.push(h),f=c,D=m,R=x?.to===null,x?.openTag?.(T)},onCloseTag:m=>{let c=m.name;const y=c.indexOf(":");if(y!==-1&&(c=c.slice(y+1)),c!==f)throw new Error(`mismatch open/close tag: '${c}'/'${f}'`);R||x?.closeTag?.(T);const O=a.pop()??null;h=a[a.length-1]??null;const z=O?.destination;if(z){S.pop(),b=S[S.length-1]??E;const ut=O.visitor;ut&&ut.to&&z.source!==void 0&&(Array.isArray(ut.to)?b.source.push?b.source.push(z.source):o?.(`Unable to parse array for ${ut.from} at ${T.getPath()}`):z.key?b.source[z.key]=z.source:typeof ut.to=="string"&&(b.source[ut.to]=z.source))}f=h?.local??null,D=h?.tag??null,x=h?.visitor??null,R=!h?.destination},onText:m=>{x?.text?.(m,T)},onEnd:s}}}const cs=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const h=t(n);if(!h)return null;let f=h.content;try{s&&(f=s(f))}catch(D){console.warn(D)}return o?.parsedRefs?.set(i,f),f},Ie=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let h=n?.parsedRefs?.get(i);if(h!==void 0)return h;const f=t(a);if(!f)return null;const D=f.content;try{const x=new TextDecoder().decode(D),S=s.parseFromString(x,"text/xml"),E=o.convert(S,i,n);return n?.parsedRefs?.set(i,E),E}catch(x){console.warn(x)}return null},Ut=(i,t,s,o,n=null)=>{const a=new Map;let h=t.Directory[i];const f=h?h.length:0;for(let D=0;D<f;D++){const x=h[D];if(!x)continue;let S=x;S.startsWith("/")&&(S=S.substring(1));const E=Ie(S,b=>t.files[b],s,o,n);a.set(S,E)}return a},qs=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ve=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const h=i("theme");h&&(s=qs[h]);let f=i("tint");if(f&&(s+=` ${d.T$1.AdjustmentType.ETint} ${parseFloat(f)}`),s)return s},fs=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),ms=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ws=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},hs={colStart:0,colEnd:0,rowStart:0,rowEnd:0},_s=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,createWorkbookOptions:o={},...n}=t??{},a=[],h=t?.progress,f=h?.onStart?.(t?.name??"Parsing XLSX");await Promise.resolve(f);const D=h?.onProgress;let x=0;const S=Promise.resolve().then(()=>require("./DVATnEUJxTQMsLOO.cjs")),E=Promise.resolve().then(()=>require("./JZZCpLEpsC2LCYHH.cjs"));let b=null;try{b=new DOMParser}catch{}let R=null;b||(R=Promise.resolve().then(()=>require("./B2LQcZ92fWIJv2Gz.cjs")).then(c=>c.i));let _=null,T=null,m=null;try{const c=await Promise.all([S,E,R]);_=c[0],T=c[1],m=c[2]}catch(c){throw new Error("Unable to load XLSX parser.",{cause:c})}try{const c=_.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!c.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");c.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],c.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const y=new T.FromOOXMLConverter,O=b??new m.DOMParser,z=o?.resources??new d.Mm,ut=z.beginPersist(),Le={},Ne=new Set,Te=new Map;Te.set("richTypes",[]);const Re=new Map,Me=[],ae=w=>c.files[w],ye=(w,B)=>{const Z=w.lastIndexOf("/"),et=w.substring(0,Z+1)+"_rels/"+w.substring(Z+1,w.length)+".rels";let dt=B.get(et);return dt||(dt=((L,ve,Se,Ce,Xt=null)=>{if(!L)return null;const st=Ie(L,ve,Se,Ce,Xt);if(!st)return null;const it=new Map,yt=Object.keys(st),Ft=yt.length;for(let bt=0;bt<Ft;bt++){const Bt=yt[bt],Ct=st[Bt];it.set(Bt,Ct)}return it})(et,ae,O,y,Tt),B.set(et,dt)),dt},le=(w,B,Z,et=Re)=>{let dt=ye(B,et).get(w),L=dt?.target;if(!L)return null;if(dt.targetMode==="External")return dt.target;const ve=B.lastIndexOf("/"),Se=B.substring(0,ve+1);L.startsWith("/")||(L=Se+L),L=(st=>{const it=st.split(/\/+/);return it.reduce((yt,Ft,bt)=>(Ft==="."?yt.splice(bt,1):Ft===".."&&yt.splice(bt-1,2),yt),it).join("/")})(L);const Ce=y?.getVisitorParamsState().get("dxfs");let Xt=et.get(L);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const st={};Xt=st;const it=async()=>{const yt=((M,X,Jt,U,J,G,Kt,kt)=>{const u=new Bs,K=new d.zt.TransposedBuilder;let j=null;u.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const I=l[p];I!=="rule"&&(r[I]=r.rule[I])}}delete r.rule}}),u.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",k),e.copyToObject(r,"priority",A),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",A);if(l!==null){let p=U?.get(l);p||(G?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",A),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",A),e.copyToObject(r,"operator",k),e.copyToObject(r,"text",k),e.copyToObject(r,"timePeriod",k)}}),u.registerVisitor({from:"colorScale",to:"colorScale"}),u.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",A),e.copyTo("minLength",A),e.copyTo("showValue",v)}}),u.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",k),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),u.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),u.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",k),e.copyTo("value",ht,"val"),e.copyTo("gte",v)}}),u.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=Ve(p=>e.getAttribute(p));r.colors.push(l)}}),u.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",A,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),u.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.hd.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",A,"dxfId")}}),u.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.hd.Type.Dynamic,e.copyTo("dynamicType",k,"type"),e.copyTo("val",ht),e.copyTo("maxVal",ht,"maxVal")}}),u.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.hd.Type.Icon,e.copyTo("iconId",A),e.copyTo("iconSet",k)}}),u.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.hd.Type.Top10,e.copyTo("filterVal",ht),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ht)}}),u.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.hd.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",k)}}),u.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",k,"dateTimeGrouping"),e.copyTo("day",A),e.copyTo("hour",A),e.copyTo("minute",A),e.copyTo("month",A),e.copyTo("second",A),e.copyTo("year",A)}}),u.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ht))}}),u.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=d.hd.Type.Custom,e.copyTo("and",v)}}),u.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",k),e.copyTo("value",ht,"val")}}),u.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",k)}}),u.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",k,"sortBy"),e.copyTo("dxfId",k,"sortBy"),e.copyTo("iconSet",k),e.copyTo("customList",k);const p=e.getAttribute("ref");if(p){const I=d.no.fastStringToRange(p,hs).colStart,Y=d.no.fastStringToRange(r.ref,hs),qt=Y.colStart;l.offset=Y?I-qt:I}l.reverse=e.getAttribute("descending",v)??!1}}),u.registerVisitor({from:"AlternateContent",to:null});const de=e=>{j=e.getSource(),e.copyTo("topLeft",k,"topLeftCell");const r=ms(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",A),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};u.registerVisitor({from:"sheetView",to:"view",openTag:e=>{de(e)},closeTag:()=>{j=null}}),u.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"customSheetView",to:[],openTag:e=>{de(e)},closeTag:()=>{j=null}}),u.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!j)return;e.copyTo("cell",k,"activeCell"),e.copyTo("rangeIndex",A,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),u.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(j&&e.getAttribute("state")==="frozen"){const r={};j.freezePanes=r,e.copyToObject(r,"topLeft",k,"topLeftCell");const l=j.topLeft?d.no.fastStringToCell(j.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",A,"xSplit"),e.copyToObject(p,"rowIndex",A,"ySplit");const I={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=d.no.cellToString(I)}}}),u.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ve(l=>e.getAttribute(l));r&&(M.tabColor=r)}}),u.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),u.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),u.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),u.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),u.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),u.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),u.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?X(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const I=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const Y=e.getAttribute("location");if(Y&&(I&&I!==Y&&console.warn("display and location are different",I,Y),p+="#"+Y),!p)return void console.warn("No address found for hyperlink. r:id",r);let qt;const xt=e.getAttribute("tooltip");qt=xt?{address:p,tooltip:xt}:p,e.setSource({r:l,v:qt})}}),u.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),u.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=X(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),u.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),u.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=I=>I===!0||I==="1"||I==="on"||I==="true"||I===!1||I==="0"||I==="off"||I==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",k,"hashValue"),e.copyToObject(p,"algorithm",k,"algorithmName"),e.copyToObject(p,"salt",k,"saltValue"),e.copyToObject(p,"spinCount",A),Object.keys(p).length>0&&(e.getSource().password=p)}}),u.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),u.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",k,"hashValue"),e.copyToObject(l,"algorithm",k,"algorithmName"),e.copyToObject(l,"salt",k,"saltValue"),e.copyToObject(l,"spinCount",A),Object.keys(l).length>0&&(e.getSource().password=l)}}),u.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(M,"defaultColSize",ht,"defaultColWidth"),e.copyToObject(M,"outlineLevelCol",A,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(M,"defaultRowSize",ht,"defaultRowHeight"),e.copyToObject(M,"outlineLevelRow",A,"outlineLevelRow")}}),u.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),u.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ht,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",A,"outlineLevel"),e.copyTo("s",A,"style")}}),u.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Yt=null;const Ss={onOpenTag:e=>{Yt===null&&(Yt="")},onText:e=>{Yt+=e},onEnd:()=>{const e=Jt(Yt);return Yt=null,e},onError:e=>{}};return((e,r,l,p,I,Y,qt)=>{let xt=!1,pe=!1,Wt=[],_t=!1,At=null,te=null,ge=null,at=null,qe=null,We=null;const Cs=qt?.get("richData")??[],_e=d.no.normalizeA1ToR1C1,ze=d.Qt.createConflatingRanges(),Ue=new Map,ke=[];let ee=null;const Ge=d.Qt.createConflatingRanges();let se,Dt=!1,q=-1,tt=-1,pt=null,ie=null;const Ae=[];let De=null,Qe=-2,gt=0,zt="",Pt="",Et="",Ot="",It="",Vt="",Lt="",Ze="",Je="",Ke="",Ye="",ts="",es="",ss="",ft=!0,Nt=null,Pe=0;return{...l,onEnd:()=>{Ae.length>0&&(r.rows=Ae);let g=ze.done(Ws);const C=g.length;if(C>0){const $=new Array(C);for(let V=0;V<C;V++){const lt=g[V],Rt=d.no.rangeToString(lt),Mt=lt.value[1],oe=d.no.resolveRelativeToA1(Mt,lt.rowStart,lt.colStart);$[V]=[Rt,oe]}r.formulas=$}const ot=Ge.done(!0),N=ot.length;if(N>0){const $=new Array(N);for(let V=0;V<N;V++){const lt=ot[V],Rt=d.no.rangeToString(lt);$[V]=Rt}r.volatile=$}if(ke.length>0&&(r.dynamicArray=[...ke]),Wt.length>0){Wt.sort(d.Qt.createRangeComparator(d.w.Orientation.Column));const $=[];let V=null,lt=-1,Rt=-1,Mt=-1,oe=-1,wt=null;const is=Wt.length;is>0&&(V=Wt[0],lt=V.colStart,Rt=V.colEnd,Mt=V.rowEnd,oe=V.value,$.push(V));for(let $t=1;$t<is;$t++)wt=Wt[$t],oe!==wt.value||lt!==wt.colStart||Rt!==wt.colEnd||Mt+1!==wt.rowEnd?($.push(wt),V=wt,lt=V.colStart,Rt=V.colEnd,Mt=V.rowEnd,oe=V.value):(Mt=wt.rowEnd,V.rowEnd=Mt);let os=[];for(let $t=0;$t<$.length;$t++){const re=$[$t];os.push({r:{colStart:re.colStart,colEnd:re.colEnd,rowStart:re.rowStart,rowEnd:re.rowEnd},v:re.value})}r.directStyles=os}const rt=e.build();if(rt){const $=rt.tuples;r.data=$}l?.onEnd?.()},onOpenTag:g=>{let C=g.name;const ot=C.indexOf(":");if(ot!==-1&&(C=C.slice(ot+1)),Pe++,Pe%196608==0&&I(Pe),se){const N=g.attributes;switch(C){case"v":pe=!0;break;case"f":switch(N.t??null){case null:case"normal":_t=!0;break;case"shared":const rt=N.si;te=N.ref,At=rt;break;case"array":_t=!0,te=N.ref,ee=[te,!1];break;case"datatable":_t=!0,te=N.ref,_t=!0}N.ca!==void 0&&Ge.append(q,tt);break;case"is":return void(Dt=!0)}return void(Dt&&Y?.onOpenTag(g))}if(xt){if(C==="c"){se=g;const N=g.attributes.r;tt=d.no.fastStringToCol(N);const rt=g.attributes.t;rt===void 0?ie=null:(ie=rt,ie==="str"&&(Dt=!0));let $=g.attributes.s;$!==void 0&&($=parseInt($),Nt&&Nt.value===$&&Nt.colEnd+1===tt?Nt.colEnd=tt:(Nt={colStart:tt,rowStart:q,colEnd:tt,rowEnd:q,value:$},Wt.push(Nt)))}}else{if(C==="row"){xt=!0;const N=g.attributes.r;if(q=parseInt(N)-1,gt=0,Pt=g.attributes.customHeight,Pt!==void 0&&(gt|=Ht.CustomHeight),Pt!==Je&&(ft=!0,Je=Pt),zt=g.attributes.ht,zt!==void 0&&(gt|=Ht.Ht),zt!==Ze&&(ft=!0,Ze=zt),Et=g.attributes.hidden,Et!==void 0&&(gt|=Ht.Hidden),Et!==Ke&&(ft=!0,Ke=Et),It=g.attributes.s,It!==void 0&&(gt|=Ht.S),It!==ts&&(ft=!0,ts=It),Ot=g.attributes.customFormat,Ot!==void 0&&(gt|=Ht.CustomFormat),Ot!==Ye&&(ft=!0,Ye=Ot),Vt=g.attributes.outlineLevel,Vt!==void 0&&(gt|=Ht.OutlineLevel),Vt!==es&&(ft=!0,es=Vt),Lt=g.attributes.collapsed,Lt!==void 0&&(gt|=Ht.Collapsed),Lt!==ss&&(ft=!0,ss=Lt),gt!==0)if(Qe+1!==q||ft){const rt=Pt!==void 0&&(Pt==="1"||Pt==="true"),$=Ot!==void 0&&(Ot==="1"||Ot==="true");De={min:q,max:q,sz:rt&&zt!==void 0?parseFloat(zt):-1,csz:rt,h:Et!==void 0&&(Et==="1"||Et==="true"),s:rt&&It!==void 0&&It!=="0"?parseInt(It):0,cs:$,l:Vt===void 0||Vt==="0"?0:parseInt(Vt),cl:Lt!==void 0&&(Lt==="1"||Lt==="true")},Ae.push(De)}else De.max=q;return Qe=q,void(ft=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(se){let C=g.name;const ot=C.indexOf(":");if(ot!==-1&&(C=C.slice(ot+1)),Dt)if(C==="is"||C==="v"){const N=Y?.onEnd();N!==null&&e.addValue(q,tt,""+N)}else Y?.onCloseTag?.(g);return pe&&(pe=!1),void(C==="c"&&(se=null,Dt=!1))}if(xt)return xt=!1,void(Nt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),pe){switch(pt=null,ie){case null:case"n":pt=parseFloat(g);break;case"b":pt=g==="1"||g==="true";break;case"s":pt=g;break;case"e":if(g==="#VALUE!"){const ot=se.attributes.vm;if(ot!==void 0){const N=Cs[parseInt(ot)-1];if(N&&N.isFormulaError){pt={t:d.M.Error,v:N.getCode()};break}}}const C=d.n.getBuiltInByLabel(g);C?pt={t:d.M.Error,v:C.getCode()}:(pt=g,p?.(`Unknown formula error '${g}' in cell ${d.no.cellToString({colIndex:tt,rowIndex:q})}`));break;case"str":case"inlineStr":Dt=!0}pt!==null&&e.addValue(q,tt,pt)}if(ee&&(ie==="e"&&(ee[1]=!0),ke.push(ee),ee=null),At)if(qe===At)at=We;else{if(at=Ue.get(At),!at){const C=[];ge=_e(g,q,tt,C),at=[ge,C,g],Ue.set(At,at)}qe=At,We=at}if(_t){const C=[];ge=_e(g,q,tt,C),at=[ge,C,g]}if(at)return ze.append(q,tt,at),at=null,_t=!1,At=null,void(te=null);Dt?Y?.onText(g):xt||l?.onText(g)}}})(K,M,u.createEventHandler(M,()=>{},G),G,e=>{x+=e,D?.(x)},Ss,kt)})(st,(M,X=!1)=>le(M,L,X)??null,ys,Ce,0,(M,X)=>{X=X?`${X} (${L})`:L,a.push([M,X])},0,Te),Ft=cs(L,ae),bt=await(async(M,X=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:G}=await Promise.resolve().then(()=>require("./DFAQXO44wRvSlwCZ.cjs"));globalThis.ReadableStream=G}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Jt=new TextDecoder("utf-8");let U=0;const J=M instanceof Uint8Array?M:new Uint8Array(M);return new ReadableStream({pull(G){if(U>=J.byteLength)return void G.close();const Kt=J.subarray(U,Math.min(U+X,J.byteLength)),kt=Jt.decode(Kt,{stream:U+X<J.byteLength});G.enqueue(kt),U+=Kt.length}}).getReader()})(Ft);try{await Oe.parseStream(bt,yt,{xmlns:!1})}catch(M){throw console.warn(`Error parsing sheet: '${L}'`,M),new Error(`Error parsing sheet: '${L}'`,{cause:M})}const Bt=ye(L,et);let Ct,Be=new Map;if(Bt){const M="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let X;Bt.forEach((U,J)=>{U.type===M&&(Ct=le(J,L,!1,et)?.comments,Ct&&Ct.forEach(G=>{Be.set(G.id,G)}))});const Jt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Bt.forEach((U,J)=>{U.type===Jt&&(X=le(J,L,!1,et))}),X||Ct){const U=Ct??[],J=X?.comments;if(J){const G=X?.authors,Kt=J.length;for(let kt=0;kt<Kt;kt++){const u=J[kt];if(!u)continue;let K=G&&u.authorId!==void 0?G[u.authorId]:u.authorId;if(K&&K.startsWith("tc=")&&(K=fs(K.substring(3)),Be.has(K)))continue;let j=null;K&&(j=he.get(K)),j||(j=He.get(K)),j||(j={id:d.te.uuidV4(),displayName:K},He.set(j.displayName,j),he.set(j.id,j)),K=j?.id??null;const de={id:d.te.uuidV4(),personId:K,ref:u.ref,done:!1,asNote:!0,content:u.content};U.push(de)}}st.comments=U}}};Me.push(it())}else Xt=Z?cs(L,ae,st=>{const it=z.add({buffer:st});return it.addReference(Le),Ne.add(it),ut.toResourceId(it)},Tt):Ie(L,ae,O,y,Tt);return Xt},Tt={paramMap:Te,getRefs:ye,getRef:le,parsedRefs:Re,addPerson:w=>null},ce=[];let be=0;c.Strings&&(be=parseInt(c.Strings.Unique??c.Strings.length??0));const Ts=c.Strings??[];for(let w=0;w<be;w++)ce.push(Ts[w]?.t??"");const $e=new Map;let je=be;const ys=w=>{const B=$e.get(w);if(B!==void 0)return B;const Z=je;return $e.set(w,je++),ce.push(w),Z},he=(Ut("richstructure",c,O,y,Tt),Ut("richdata",c,O,y,Tt),new Map),He=new Map,Xe=Ut("people",c,O,y);let St=null;if(Xe.size>0&&(St=Xe.entries().next()?.value?.[1]?.persons,St)){const w=St.length;for(let B=0;B<w;B++){const Z=St[B];he.set(Z.id,Z),he.set(Z.displayName,Z)}}const xe=Ut("themes",c,O,y,Tt);let Fe=null;if(xe&&xe.entries){let w=xe.entries().next();w?.value?.[1]&&(Fe=w.value[1])}const bs=new d.Fl(Fe);let ue=Ut("styles",c,O,y,Tt).entries().next()?.value[1];ue&&(ue=JSON.parse(d.oe(ue)));const xs=Ut("workbooks",c,O,y,Tt);await Promise.all(Me);const we={...xs.entries().next().value[1],styles:ue,theme:bs.toJSON()};ce.length>0&&(we.strings=ce),St&&St.length>0&&(we.people=St);const ws={...o,resources:z,json:we},vs=new d.Sy(ws);if(Ne.forEach(w=>{w.deleteReference(Le)}),ut.endPersist(),a.length){const w=h?.onWarning;if(w)for(const B of a){const[Z,et]=B;w(Z,et)}}return h?.onComplete?.(x),vs}catch(c){let y="Unable to parse XLSX.";throw c instanceof d.ae&&(y="Unable to open XLSX. There are too many rows or columns."),new Error(y,{cause:c})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./DVATnEUJxTQMsLOO.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const h=o.sheets[a],f=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,f,h.name);const D=h.sheet,x=i.getSheetAt(a),S=x.getUsedRange();if(S?(f["!ref"]=S.getA1(),S.forEach((E,b)=>{const R={t:"z"},_=b.getCell().getStyle();if(!_.isNormal()){let T=_.getNumberFormat();T!==d.De.Type.General&&(T===d.De.Type.ShortDate?T="m/d/yyyy":T===d.De.Type.MediumDate?T="d-mmm-yy":T===d.De.Type.LongDate?T="[$-x-sysdate]dddd, mmmm dd, yyyy":T===d.De.Type.ShortTime?T="h:mm":T===d.De.Type.MediumTime?T="h:mm AM/PM":T===d.De.Type.LongTime&&(T="h:mm:ss AM/PM"),R.z=T)}if(E!==null)switch(b.getType()){case d.M.Number:R.t="n",R.v=E;break;case d.M.String:R.t="s",R.v=E;break;case d.M.Boolean:R.t="b",R.v=E;break;case d.M.Error:R.t="e",R.v=E.toString();case d.M.RichData:}f[b.getA1()]=R})):f["!ref"]="A1:A1",D.merges?.length>0){const E=[];f["!merges"]=E;for(let b=0;b<D.merges.length;b++)E.push(s.utils.decode_range(D.merges[b]))}if(D.cols?.length>0){const E=[];f["!cols"]=E;const b=D.cols,R={width:D.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let _=0;_<b.length;_++){const T=b[_];for(let c=E.length;c<=T.min-1;c++)E.push(R);const m={};T.sz!==void 0&&(m.width=T.sz),T.h!==void 0&&(m.hidden=T.h),T.l!==void 0&&(m.level=T.l);for(let c=T.min;c<=T.max;c++)E.push(m)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=ms,exports.c=i=>i?d.te.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ve,exports.i=_s,exports.p=i=>parseFloat(i)/6e4,exports.r=fs,exports.t=i=>i?d.te.roundAccurately(parseFloat(i)/12700,4):null;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./MD9O1VNhhdH5RoiA.cjs");exports.fromBufferCSV=async(a,c)=>{const{papaParseConfig:i,setValuesOptions:g,createWorkbookOptions:f}=c??{},t=c?.progress,m=t?.onStart?.(c?.name??"Parsing CSV");await Promise.resolve(m);const h=t?.onProgress,o=await Promise.resolve().then(()=>require("./BeOgEB1ihIJx02Af.cjs")).then(e=>e.p),p=new TextDecoder().decode(a);let l=-1;const r=new y.Sy(f),n=r.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:y.w.Orientation.Row});let u=0;const w={...i,transform:(e,s)=>{i?.transform&&(e=i.transform(e,s));const d=s;d===0&&l++;let S=e??"";return n.pushAt(l,d,S),u++,u%1e5==0&&h?.(u),t?.onComplete?.(u),e}};return o.parse(p,w).data,n.apply({textParser:!0,...g}),r},exports.toBufferCSV=async(a,c)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:g=!0,excludeHidden:f=!1,sheetKey:t=null,papaParseConfig:m={}}=c||{},h=await Promise.resolve().then(()=>require("./BeOgEB1ihIJx02Af.cjs")).then(e=>e.p);if(!a)throw new Error("workbook must be specified");let o=null;if(t===null?o=a.getSelectedSheet():typeof t=="number"?o=a.getSheets().getItems()[t]:typeof t=="string"&&(o=a.getSheets().getByName(t)),!o)throw new Error("invalid sheetKey specified");let p=null;const l=[];let r=null,n=o.getUsedRange({excludeHidden:f});if(!n)throw new Error("Nothing to export");if(!i||!g){const e=i?n.getRowStart():0,s=g?n.getColumnStart():0;n=n.getOffsetTo(e,s)}n.forEach((e,s)=>{const d=s.getCoords(),S=s.getCell();p!==d.rowIndex&&(r&&l.push(r),r=[],p=d.rowIndex);const C=S.toTextUnformatted()??"";r.push(C)},{includeEmpty:!0,address:null}),r&&l.push(r);const u={...m},w=h.unparse(l,u);return new TextEncoder().encode(w).buffer};
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.4
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./MD9O1VNhhdH5RoiA.cjs"),k=["Ok","Cancel"],N=t.reactExports.memo(E=>{const{value:a=null,context:s,onOption:p,onValidateOption:w,onDone:c,onUpdate:d,options:x=k,defaultOption:m=x?.[0],cancelOption:g="Cancel",sx:R,...O}=E,T=t.reactExports.useMemo(()=>s?.getNames().findValidName("Range1"),[]),i=t.reactExports.useMemo(()=>{if(!a)return!0},[]),[n,j]=t.reactExports.useState({displayText:a?.getName()??T,errorText:null}),[o,V]=t.reactExports.useState({displayValue:a?.getRanges()??s?.selection()??null,errorText:null}),[f,y]=t.reactExports.useState(!1),C=t.reactExports.useCallback(async e=>!n.errorText&&!o.errorText,[s]),h=t.T((e,l,u)=>{if(!l){let r=null;i?r=s?.getNames().addReference(n?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(n?.displayText),a.setReference(o?.displayValue)},`Edit Named '${n?.displayText}'`),r=a),r&&(r.select(),d(r,i))}p?.(e,l,u),c?.()},[s,n,o,c,p,m,g,d]),v=t.T(e=>{let l=null;try{s?.getNames().validateName(e)}catch(u){l=u.message}j({displayText:e,errorText:l})},[]),S=t.T(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||s?.getNames().validateName(e)},[s,a]),b=t.reactExports.useCallback(e=>{V({displayValue:e??null,errorText:null})},[]);return t.jsxRuntimeExports.jsx(t.k3,{title:(i?"Define":"Edit")+" Range",options:x,onOption:h,onValidateOption:C,defaultOption:m,cancelOption:g,autoFocusSel:".autoFocus",sx:{width:"460px",...R},...O,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.xu,{formName:"name",defaultInput:T,value:n.displayText,onChangeInput:v,onValidate:S,onFocus:e=>{f||e.target?.select(),y(!0)}}),t.jsxRuntimeExports.jsx(t.yu,{formName:"range",value:o.displayValue,onChangeInput:b,resolvedAddress:s.getNames().getRanges.bind(s.getNames()),onFocus:e=>{f||e.target?.select(),y(!0)}})]})})});exports.NamedReferenceDialog=N,exports.default=N;