@sheetxl/mcp 0.0.0-stage → 0.8.0-beta.14

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 (509) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +72 -2
  3. package/agent/instructions.md +66 -0
  4. package/assets/2zIY9Xuml4y8NI05.js +596 -0
  5. package/assets/33QTHR3r6ZujxFx8.js +18 -0
  6. package/assets/8vRAQlvTcvMLeio0.js +1131 -0
  7. package/assets/9MRZ5Yc2RBgcqZSp.js +594 -0
  8. package/assets/9dbZwzIWefGss7is.js +52 -0
  9. package/assets/B-1_xSqUFCJ6jNjn.js +9109 -0
  10. package/assets/B-jE7tAMA559MtNt.js +37 -0
  11. package/assets/B5xHa5bjZu5ONrm5.js +638 -0
  12. package/assets/B66aeGYrHLbGpuN9.js +9137 -0
  13. package/assets/B6BP5l2qmeZhqVV7.js +7 -0
  14. package/assets/B6b9ytNrHR-ijcOa.js +30 -0
  15. package/assets/B9QlqO6n3MCBsvoj.js +504 -0
  16. package/assets/B9qiPx_BXxo1jgcx.js +2368 -0
  17. package/assets/B9w1dNK8pNq-Z1P3.js +142 -0
  18. package/assets/BDZ1FGc1zFqO1nK7.js +4036 -0
  19. package/assets/BFwNQZVRnbNt-gRJ.js +2260 -0
  20. package/assets/BMnNvUCJu35tT_aO.js +19 -0
  21. package/assets/BNfBq8Eic3Cl-f6A.js +184 -0
  22. package/assets/BOF64A2D2KKcv_fo.js +15 -0
  23. package/assets/BOcWUnxWSG1d5Ljc.js +447 -0
  24. package/assets/BW8XjynUqlfvuQUV.js +37 -0
  25. package/assets/BWsXOU_jh_cA8m8I.js +12 -0
  26. package/assets/BXC6616BWEWNZ2-D.js +63 -0
  27. package/assets/BYtBi8vLoB41QkV8.js +656 -0
  28. package/assets/B_-VPqfsse8AlCTm.js +81 -0
  29. package/assets/BiAEoWSl8c6jcUnS.js +28 -0
  30. package/assets/BkBCkgPNrFR5N9fo.js +19 -0
  31. package/assets/BmxgDCZk_aMDms4i.js +639 -0
  32. package/assets/BoTScfjgygCozDVi.js +23 -0
  33. package/assets/BwisWvPpXRhyIP4O.js +15 -0
  34. package/assets/ByziR0Anm39Bw0Bc.js +1556 -0
  35. package/assets/C-5LlJ5qhC7Ef0gV.js +12996 -0
  36. package/assets/C-CNmTrzNS-ZlQ8j.js +1760 -0
  37. package/assets/C1rIlmARlinuie5E.js +45 -0
  38. package/assets/C1w8NQeox7_92swz.js +35 -0
  39. package/assets/C2Rgsb69SnMOohGt.js +23 -0
  40. package/assets/C55MTJ_5qW94RElE.js +7514 -0
  41. package/assets/CBNNl8igIyeHY4St.js +780 -0
  42. package/assets/CDGeuGB9CBXeCIm6.js +12 -0
  43. package/assets/CH9M37mRwnS0t9wM.js +104 -0
  44. package/assets/CHHJZPAuM3OjbzF6.js +402 -0
  45. package/assets/CMTDUipnLiOj5pbe.js +610 -0
  46. package/assets/COFze3jkZDQRSij9.js +4437 -0
  47. package/assets/CPDkdp0yI4DwUHGZ.js +119 -0
  48. package/assets/CULV-2mwmqYYpAjM.js +119 -0
  49. package/assets/CVFTQ0OwsUt03r4o.js +146 -0
  50. package/assets/CXM1IYmE-TDInPwr.js +118 -0
  51. package/assets/CcLPa6zB5PH3OG2O.js +10289 -0
  52. package/assets/CdF5MxGnISAZ41oQ.js +359 -0
  53. package/assets/CeDqeFLuUfN8UIGx.js +17 -0
  54. package/assets/CfiVUfpeONJ3rf31.js +28 -0
  55. package/assets/Cfvhcua4c6onouhP.js +14 -0
  56. package/assets/CgjR_TiVOcuxg5tO.js +16 -0
  57. package/assets/CjwzOAnab_dpAqiG.js +144 -0
  58. package/assets/Cm3Q_-DDdnVHRBxr.js +351 -0
  59. package/assets/CpOhY88x6AgVxvTz.js +49 -0
  60. package/assets/CtpcYuBFU6fxsUhs.js +71 -0
  61. package/assets/CutEBbZl8oFbTlXZ.js +171 -0
  62. package/assets/CwJyw5Yxpj4PGh14.js +28 -0
  63. package/assets/CwdOInoJwCxXnhog.js +7 -0
  64. package/assets/D2_T0KSaye0ncjQa.js +6294 -0
  65. package/assets/D2w3KjYuONW1G1kX.js +86 -0
  66. package/assets/D3BAmD-1AfFtHdC6.js +242 -0
  67. package/assets/D81iH5MJJfq2t9FP.js +32 -0
  68. package/assets/D94hlZEaHtGHdN_K.js +202 -0
  69. package/assets/DBFXsbIHDxbMBrzV.js +319 -0
  70. package/assets/DCHsM8bfVisYJFTT.js +1783 -0
  71. package/assets/DIy1659Yv5-fD69E.js +123 -0
  72. package/assets/DK0VM9-qrEXBm8Ud.js +223 -0
  73. package/assets/DPazQ_nZv-sXUwO3.js +45 -0
  74. package/assets/DSSrCrejjpWoszj7.js +33 -0
  75. package/assets/DTlvhtB9hvPdbdxu.js +60493 -0
  76. package/assets/DUUt1z6Y_cpxEpYY.js +24 -0
  77. package/assets/DUYoUViqY5U6uQX3.js +18 -0
  78. package/assets/DUzaW_op2vBTwOOI.js +18 -0
  79. package/assets/DWTpPijG5yeNFR0W.js +14 -0
  80. package/assets/DZRp3_yqPS6Lshho.js +32 -0
  81. package/assets/DZZ5R3msiytVNCqK.js +199 -0
  82. package/assets/Df2IAW-O7Gwl7V1l.js +7 -0
  83. package/assets/Dfd7kvLIFNqu-m-r.js +51 -0
  84. package/assets/Dg7xy50qHwqkYd4g.js +1135 -0
  85. package/assets/DihigEGfNCLR8UPN.js +8 -0
  86. package/assets/DkFK1iu4vqjLZMja.js +3011 -0
  87. package/assets/DkPXpv81Y5teMd-R.js +20 -0
  88. package/assets/Dl87mJoXDkCkzBi7.js +3917 -0
  89. package/assets/DnmjS548g7nY6EUS.js +1860 -0
  90. package/assets/DoIU_ohoCBwTZV9G.js +310 -0
  91. package/assets/Doqy_uDSQTCv6a6X.js +35 -0
  92. package/assets/DpGuA6U12gwyGHEM.js +369 -0
  93. package/assets/DuZ6DXQGttY3Lrhd.js +5220 -0
  94. package/assets/Du_JrYiYGJo5_B9H.js +12 -0
  95. package/assets/DvD_K4M5HgJ4uJ8L.js +7 -0
  96. package/assets/EeSGsbh_r4N-qs4w.js +96 -0
  97. package/assets/GnXTzeDYWWeEf5yV.js +55 -0
  98. package/assets/HKLw8b2xTdu5c1w5.js +63 -0
  99. package/assets/KpCEdfpsHnfkyqjx.js +37 -0
  100. package/assets/OU7gC5JF-lyDOOid.js +27 -0
  101. package/assets/PRSerWiAGYu8MVnd.js +304 -0
  102. package/assets/PmooYGqWqoTxPExF.js +449 -0
  103. package/assets/QXKcNTuZqOauSidr.js +58 -0
  104. package/assets/ThqyayHHaBxzfaAt.js +255 -0
  105. package/assets/TzsPqmpG77I4ewVt.js +173 -0
  106. package/assets/UX2ywz3gr7q-MlHr.js +105 -0
  107. package/assets/W-MzzQHZuRxr8adc.js +2346 -0
  108. package/assets/ZBYHyJs7CQgnnHfR.js +362 -0
  109. package/assets/ZTEO4JX22YIOkrJg.js +8338 -0
  110. package/assets/a7BoASyT8yQZY9hJ.js +22 -0
  111. package/assets/aqguaobnu61szXWM.js +22 -0
  112. package/assets/cdIvC9t9tYtVn4nc.js +405 -0
  113. package/assets/cv7k-VAIJtYeL9k4.js +23 -0
  114. package/assets/ddJqSu7gXUkXjGxZ.js +13 -0
  115. package/assets/eHAVGCUcMAfNjEGt.js +7 -0
  116. package/assets/hRLLK6I6m0uGKWo8.js +32 -0
  117. package/assets/mcFLzsOH35mvmd3C.js +145 -0
  118. package/assets/st-UQngeBG4hwKoy.js +47 -0
  119. package/assets/w8YWSMNTTn45ImnB.js +857 -0
  120. package/assets/yNiBIhsMP9BCWd67.js +28 -0
  121. package/assets/zu-72oKE_gCkrozc.js +540 -0
  122. package/index.js +8070 -0
  123. package/lib.js +7 -0
  124. package/licenses/dependencies.txt +1552 -0
  125. package/package.json +44 -3
  126. package/resources/contents.json +333 -0
  127. package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
  128. package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
  129. package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
  130. package/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
  131. package/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
  132. package/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
  133. package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
  134. package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
  135. package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
  136. package/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
  137. package/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
  138. package/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
  139. package/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
  140. package/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
  141. package/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
  142. package/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
  143. package/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
  144. package/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
  145. package/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
  146. package/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
  147. package/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
  148. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
  149. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
  150. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
  151. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
  152. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
  153. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
  154. package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
  155. package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
  156. package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
  157. package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
  158. package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
  159. package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
  160. package/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
  161. package/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
  162. package/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
  163. package/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
  164. package/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
  165. package/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
  166. package/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
  167. package/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
  168. package/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
  169. package/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
  170. package/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
  171. package/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
  172. package/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
  173. package/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
  174. package/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
  175. package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
  176. package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
  177. package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
  178. package/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
  179. package/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
  180. package/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
  181. package/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
  182. package/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
  183. package/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
  184. package/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
  185. package/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
  186. package/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
  187. package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
  188. package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
  189. package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
  190. package/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
  191. package/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
  192. package/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
  193. package/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
  194. package/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
  195. package/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
  196. package/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
  197. package/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
  198. package/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
  199. package/resources/fonts/@sheetxl/sdk/contents.json +646 -0
  200. package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
  201. package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
  202. package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
  203. package/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
  204. package/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
  205. package/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
  206. package/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
  207. package/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
  208. package/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
  209. package/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
  210. package/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
  211. package/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
  212. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
  213. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
  214. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
  215. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
  216. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
  217. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
  218. package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
  219. package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
  220. package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
  221. package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
  222. package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
  223. package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
  224. package/resources/locales/@sheetxl/formulas/contents.json +9 -0
  225. package/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
  226. package/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
  227. package/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
  228. package/resources/locales/@sheetxl/sdk/contents.json +19 -0
  229. package/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
  230. package/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
  231. package/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
  232. package/screenshot-page/assets/-cpi3yOZYn6GsYN4.js +9 -0
  233. package/screenshot-page/assets/-i_fTASJeu9NdNH_.js +7 -0
  234. package/screenshot-page/assets/04d8koPx6lzeMYRQ.js +39 -0
  235. package/screenshot-page/assets/0MTaPYjKud2Q9QG9.js +1 -0
  236. package/screenshot-page/assets/21oAESJyBGXeHegm.js +2 -0
  237. package/screenshot-page/assets/3Ls_kOvlQseMV8Q0.js +1 -0
  238. package/screenshot-page/assets/4qZpl2QCzneWdmJO.js +1 -0
  239. package/screenshot-page/assets/6IEV7KeOEbBdrthj.js +1 -0
  240. package/screenshot-page/assets/8QrkTrKHDnMBb7q4.js +1 -0
  241. package/screenshot-page/assets/9w0ECZmzGUyk3F_O.js +1 -0
  242. package/screenshot-page/assets/AjS2PipZDIH3BXB2.js +1 -0
  243. package/screenshot-page/assets/B-KIwD5F_5S-NsPg.js +1 -0
  244. package/screenshot-page/assets/B-sAzW5ROrhvMGM4.js +1 -0
  245. package/screenshot-page/assets/B0FQypGas6gbGT_U.js +1 -0
  246. package/screenshot-page/assets/B2IQMVqTZT1rUnib.js +1 -0
  247. package/screenshot-page/assets/B2g3jiFIQ4Qjh5gG.js +1 -0
  248. package/screenshot-page/assets/B4PbXdzBe9BsoZ0e.js +2 -0
  249. package/screenshot-page/assets/B5GO9v4p9L70Xb9i.js +1 -0
  250. package/screenshot-page/assets/B8y_eLNCGnXLEIaE.js +1 -0
  251. package/screenshot-page/assets/BCl5buf87xUgIfEB.js +2 -0
  252. package/screenshot-page/assets/BEuMvXYIa9A1JacY.js +1 -0
  253. package/screenshot-page/assets/BEwl-ucV9Jfr0RoC.js +1 -0
  254. package/screenshot-page/assets/BFaiQZKle44Rhyou.js +1 -0
  255. package/screenshot-page/assets/BHqg55S-4_OoAu3P.js +2 -0
  256. package/screenshot-page/assets/BNgLvS2bLOYKRguv.js +1 -0
  257. package/screenshot-page/assets/BQAN82ftWBiLJT3r.js +1 -0
  258. package/screenshot-page/assets/BQfe-XTIOGeUnD9B.js +1 -0
  259. package/screenshot-page/assets/BQnELVV0uR4T4ItQ.js +1 -0
  260. package/screenshot-page/assets/BRVZJ0OGJg9XJro6.js +1 -0
  261. package/screenshot-page/assets/BRqSWCr2mTVNFquQ.js +1 -0
  262. package/screenshot-page/assets/BTOQaSn9DDyJPUlX.js +1 -0
  263. package/screenshot-page/assets/BUGXf2DEBog16Slb.js +2 -0
  264. package/screenshot-page/assets/BUjI304IvdJnFXH3.js +1 -0
  265. package/screenshot-page/assets/BYRwTzX1q407lHUS.js +2 -0
  266. package/screenshot-page/assets/Baz0SC2AgGyxMX72.js +1 -0
  267. package/screenshot-page/assets/BbP9KThfrodyosvn.js +1 -0
  268. package/screenshot-page/assets/BcOdl17EeFSxnAiq.js +1 -0
  269. package/screenshot-page/assets/BclKeOKIOBjijhsu.js +1 -0
  270. package/screenshot-page/assets/Bf7xq8PyF4ohjMzP.js +2 -0
  271. package/screenshot-page/assets/BimyzECCZl-NESff.js +1 -0
  272. package/screenshot-page/assets/BkLH7JH3A93TXFJi.js +1 -0
  273. package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +3 -0
  274. package/screenshot-page/assets/Bor_tayB4yBfNOH5.js +2 -0
  275. package/screenshot-page/assets/BowRIybLgENunTOT.js +1 -0
  276. package/screenshot-page/assets/Bp7se0JaDGrzfSA_.js +1 -0
  277. package/screenshot-page/assets/Bwql3QifB2cv7Mqp.js +3 -0
  278. package/screenshot-page/assets/Bx61vmiWY0Xvx9qs.js +1 -0
  279. package/screenshot-page/assets/ByY3fmwyDPAyOLdo.js +1 -0
  280. package/screenshot-page/assets/Bz2U7weS0spa8Xbh.js +1 -0
  281. package/screenshot-page/assets/Bz5V1tmiy5gbT9ys.js +1 -0
  282. package/screenshot-page/assets/Bz9v1lgjvbu4QnOs.js +2 -0
  283. package/screenshot-page/assets/C1k_VrZqlpiUigCP.js +1 -0
  284. package/screenshot-page/assets/C2Wh2h27c7FUb8Yk.js +1 -0
  285. package/screenshot-page/assets/C6oLDVnuCS9LGkkH.js +1 -0
  286. package/screenshot-page/assets/C81mK8aZKZAAS-AB.js +1 -0
  287. package/screenshot-page/assets/C9SC-cEIt6gdhZRw.js +1 -0
  288. package/screenshot-page/assets/CE0MnsfMjqV2ICzk.js +57 -0
  289. package/screenshot-page/assets/CE8MCCIiwjOVwBBW.js +1 -0
  290. package/screenshot-page/assets/CFOaI8g7pJuPzsyk.js +1 -0
  291. package/screenshot-page/assets/CG3ynup87FmG-kkX.js +1 -0
  292. package/screenshot-page/assets/CHlWgOAlcRCjVuhg.js +1 -0
  293. package/screenshot-page/assets/CIged53b3hHKxa-o.js +1 -0
  294. package/screenshot-page/assets/CNQczIR5xcE5u5fT.js +1 -0
  295. package/screenshot-page/assets/CSUd8n1H0VBfREnk.js +2 -0
  296. package/screenshot-page/assets/CSlBTkRDITCC8JRB.js +1 -0
  297. package/screenshot-page/assets/CV2jr9hpQOG2OG0C.js +1 -0
  298. package/screenshot-page/assets/CXGgKVbVXjWzE0p6.js +1 -0
  299. package/screenshot-page/assets/CXKCmZ_TRyGaB9Ob.js +1 -0
  300. package/screenshot-page/assets/CXUO3vYip3JPSJ7A.js +1 -0
  301. package/screenshot-page/assets/CXwbGzavyvYgDbWU.js +1 -0
  302. package/screenshot-page/assets/CZf9s6otzzoaBlSs.js +1 -0
  303. package/screenshot-page/assets/CZvwQEeVhBilgKLG.js +1 -0
  304. package/screenshot-page/assets/Ca6nxdhEuLLty3d7.js +2 -0
  305. package/screenshot-page/assets/CbUDukmvDZmVfhJH.js +1 -0
  306. package/screenshot-page/assets/CbXtAM7H-Jg_J0dk.js +1 -0
  307. package/screenshot-page/assets/CctIRGMFmARVi2KT.js +1 -0
  308. package/screenshot-page/assets/Cenh1POxiGMxIQlv.js +1 -0
  309. package/screenshot-page/assets/ChSvXfVMLxZsP9zG.js +8 -0
  310. package/screenshot-page/assets/Ci5NtzhJLll1kxGf.js +10 -0
  311. package/screenshot-page/assets/CjngjJNheGaVRvZp.js +1 -0
  312. package/screenshot-page/assets/ClzdIJrFdInttVJA.js +1 -0
  313. package/screenshot-page/assets/CnPgk3HcIziOcskY.js +10 -0
  314. package/screenshot-page/assets/CnXLpFE_vFrJ5Jbf.js +1 -0
  315. package/screenshot-page/assets/CnZJ44ncMxZ4ivcB.js +586 -0
  316. package/screenshot-page/assets/CpbohdgEaEsVDi9J.js +1 -0
  317. package/screenshot-page/assets/CqR3hGrC956TkCMj.js +20 -0
  318. package/screenshot-page/assets/Cr1tQKUBVKOQl3QC.js +1 -0
  319. package/screenshot-page/assets/Cv8FG9PPBkkPw86e.js +1 -0
  320. package/screenshot-page/assets/CvL9XK3Ht1mP-rGz.js +4 -0
  321. package/screenshot-page/assets/CykecBozGGFl26KA.js +3940 -0
  322. package/screenshot-page/assets/CzTizxHhb-CI_ajE.js +1 -0
  323. package/screenshot-page/assets/CzzEl3lAkZopkwhC.js +1 -0
  324. package/screenshot-page/assets/D-LgRj0s-PAVqY-L.js +1 -0
  325. package/screenshot-page/assets/D-XR1MGhwn7Jqj60.js +1 -0
  326. package/screenshot-page/assets/D47ePD4x1lVazNdl.js +7 -0
  327. package/screenshot-page/assets/D6Jpaz2YkhOfzxDB.js +1 -0
  328. package/screenshot-page/assets/D9zCVZpnJBfNSNO2.js +1 -0
  329. package/screenshot-page/assets/DDQWM8rNYCYzKa9R.js +1 -0
  330. package/screenshot-page/assets/DDpAoGAPzo1c4vl5.js +27 -0
  331. package/screenshot-page/assets/DGXDfjkGZjMRAXPg.js +5 -0
  332. package/screenshot-page/assets/DHa5_U58lSwCnpmG.js +1 -0
  333. package/screenshot-page/assets/DKVB6ddRfDJatYid.js +1 -0
  334. package/screenshot-page/assets/DM9U7u7FQK0jcwh4.js +1 -0
  335. package/screenshot-page/assets/DNDaHmkQrQTaCHhV.js +1 -0
  336. package/screenshot-page/assets/DQ0kGd99-fXxuNYk.js +1 -0
  337. package/screenshot-page/assets/DQWHkaQeNXft9j8b.js +2 -0
  338. package/screenshot-page/assets/DRVfGdmVBvktrZ1t.js +1 -0
  339. package/screenshot-page/assets/DRrM-dY9nM7nDRpV.js +1 -0
  340. package/screenshot-page/assets/DT2x1gO3f2G5NfeB.js +1 -0
  341. package/screenshot-page/assets/DU3FmyUH0RjPIBd-.js +1 -0
  342. package/screenshot-page/assets/DUJzubL4qqOyizfu.js +1 -0
  343. package/screenshot-page/assets/DVueE--eOrZPrqrm.js +1 -0
  344. package/screenshot-page/assets/DWiI5I3RtoKvVT66.js +1 -0
  345. package/screenshot-page/assets/DYJSIlNxrNw8qk-w.js +1 -0
  346. package/screenshot-page/assets/DYRbCudWTaiE_Sjc.js +1 -0
  347. package/screenshot-page/assets/DZDRRw-62D6Zw7qs.js +1 -0
  348. package/screenshot-page/assets/D_H2dlsQ8PJ0r1WD.js +10 -0
  349. package/screenshot-page/assets/DaKZ4-Li_ULIIwnK.js +1 -0
  350. package/screenshot-page/assets/DadZXeaVK5UXSHIi.js +1 -0
  351. package/screenshot-page/assets/Db_VGqQo2G2JgXWW.js +1 -0
  352. package/screenshot-page/assets/DceNHPrRLok2At-X.js +1 -0
  353. package/screenshot-page/assets/DcrVJCyDwGKeil2U.js +1 -0
  354. package/screenshot-page/assets/DeAKjatTVaZ0u_FY.js +1 -0
  355. package/screenshot-page/assets/DmMZ4pd492HPw_3_.js +1 -0
  356. package/screenshot-page/assets/DmbuCapSSCYIa3yk.js +1 -0
  357. package/screenshot-page/assets/Dpepompn_NhpSncR.js +1 -0
  358. package/screenshot-page/assets/DqM1wwsmN1J4MXMm.js +1 -0
  359. package/screenshot-page/assets/DqYhS4mcQfOe96hU.js +1 -0
  360. package/screenshot-page/assets/DsL71n5SxCVjL6Ho.js +2 -0
  361. package/screenshot-page/assets/DyGpT6t96jrvgJes.js +1 -0
  362. package/screenshot-page/assets/DyLWQxXXTw5uwPVy.js +30 -0
  363. package/screenshot-page/assets/DyYVf8O1rhg3YmjW.js +1 -0
  364. package/screenshot-page/assets/DyxJBLjUkeDuu96F.js +1 -0
  365. package/screenshot-page/assets/DzZRUd0p22CBa27b.js +1 -0
  366. package/screenshot-page/assets/HclGiUj8dZXDFmoM.js +1 -0
  367. package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +2 -0
  368. package/screenshot-page/assets/IfF7Tv-nhz6Ikpn0.js +1 -0
  369. package/screenshot-page/assets/J73KTOmdZGNmnq-z.js +1 -0
  370. package/screenshot-page/assets/J_xJVgE7YlmeU-ZO.js +6 -0
  371. package/screenshot-page/assets/KoxRo2J_cwB_yOd5.js +2 -0
  372. package/screenshot-page/assets/LVtV_IPhPQroHRui.js +1 -0
  373. package/screenshot-page/assets/MNoPOsydrUv1UGU8.js +2 -0
  374. package/screenshot-page/assets/Miyn0clMq0rovRIo.js +1 -0
  375. package/screenshot-page/assets/Rm5Sf5E6t8bk_Y3r.js +1 -0
  376. package/screenshot-page/assets/b3AbgxQkoaCiBi15.js +1 -0
  377. package/screenshot-page/assets/fGlPAximvsxzPzGA.js +1 -0
  378. package/screenshot-page/assets/gG0AFZ45VxS_moMw.js +2 -0
  379. package/screenshot-page/assets/nHThFXCAZFOM_npq.js +1 -0
  380. package/screenshot-page/assets/pRykm05ElquZBk_a.js +1 -0
  381. package/screenshot-page/assets/qm3VY0bH7F7EgSdi.js +2 -0
  382. package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +1 -0
  383. package/screenshot-page/assets/w3bV7wggRayUYTd-.js +1 -0
  384. package/screenshot-page/assets/zFbb8ESzwR_bE7IQ.js +1 -0
  385. package/screenshot-page/assets/zHHZFbk5RXnrxbOc.js +42 -0
  386. package/screenshot-page/index.html +44 -0
  387. package/screenshot-page/resources/contents.json +333 -0
  388. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
  389. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
  390. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
  391. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
  392. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
  393. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
  394. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
  395. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
  396. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
  397. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
  398. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
  399. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
  400. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
  401. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
  402. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
  403. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
  404. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
  405. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
  406. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
  407. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
  408. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
  409. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
  410. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
  411. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
  412. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
  413. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
  414. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
  415. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
  416. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
  417. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
  418. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
  419. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
  420. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
  421. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
  422. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
  423. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
  424. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
  425. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
  426. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
  427. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
  428. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
  429. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
  430. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
  431. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
  432. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
  433. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
  434. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
  435. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
  436. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
  437. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
  438. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
  439. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
  440. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
  441. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
  442. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
  443. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
  444. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
  445. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
  446. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
  447. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
  448. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
  449. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
  450. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
  451. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
  452. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
  453. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
  454. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
  455. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
  456. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
  457. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
  458. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
  459. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
  460. package/screenshot-page/resources/fonts/@sheetxl/sdk/contents.json +646 -0
  461. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
  462. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
  463. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
  464. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
  465. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
  466. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
  467. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
  468. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
  469. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
  470. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
  471. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
  472. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
  473. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
  474. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
  475. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
  476. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
  477. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
  478. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
  479. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
  480. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
  481. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
  482. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
  483. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
  484. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
  485. package/screenshot-page/resources/locales/@sheetxl/formulas/contents.json +9 -0
  486. package/screenshot-page/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
  487. package/screenshot-page/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
  488. package/screenshot-page/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
  489. package/screenshot-page/resources/locales/@sheetxl/sdk/contents.json +19 -0
  490. package/screenshot-page/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
  491. package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
  492. package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
  493. package/types/index.d.ts +1 -0
  494. package/types/lib.d.ts +2 -0
  495. package/types/scripting-api.json +10855 -0
  496. package/types/scripting-enums.json +1339 -0
  497. package/types/scripting.d.ts +49295 -0
  498. package/types/src/SessionRegistry.d.ts +630 -0
  499. package/types/src/index.d.ts +3 -0
  500. package/types/src/instances.d.ts +104 -0
  501. package/types/src/lib/Types.d.ts +17 -0
  502. package/types/src/lib/index.d.ts +2 -0
  503. package/types/src/lib/runReport.d.ts +158 -0
  504. package/types/src/lib.d.ts +2 -0
  505. package/types/src/prepareRun.d.ts +56 -0
  506. package/types/src/relay.d.ts +102 -0
  507. package/types/src/screenshot.d.ts +23 -0
  508. package/types/src/server.d.ts +37 -0
  509. package/types/src/taskStore.d.ts +28 -0
@@ -0,0 +1 @@
1
+ import{I as e,Z as t,f as n,y as r}from"./ChSvXfVMLxZsP9zG.js";var i=(e,t)=>{let n=new Map;return e.forEach((e,r)=>{t.get(r)!==e&&n.set(r,e)}),n},a=!1,o=0,s=e=>{if(typeof e!=`string`)throw Error(`A stateId (string) is required. Register with 'ITransaction.IStore.create'.`);return e},c=class extends Error{constructor(e,t,n){super(e===`open`?`Transaction conflict: an operation is open on commit '${t}' and this write is not part of it.`:`Transaction conflict: expected commit '${t}' but current is '${n}'.`),this.name=`TransactionConflictError`,this.reason=e,this.expectedCommitId=t,this.actualCommitId=n}},l=(e,t,n=0)=>{for(let r=n;r<t.length;r++){let[n,i]=t[r];e[n]=typeof i==`function`?i(e[n]):i}},u=class{constructor(e){this._record=e}getId(){return this._record.id}getDescription(){return this._record.description}getMeta(){return Object.freeze(this._record.meta)}getAuthor(){return this._record.author}getTimestamp(){return this._record.timestamp}getOperation(){return this._record.operation}getIntents(){return Object.freeze({...this._record.intents})}},d=class{constructor(e){this._listeners=new Set,this._listenersState=new Map,this._commits=new Map,this._locked=!1,this._pending=null,this._versionCounter=0,this._flushOnRead=0,this._isSync=e?.sync??a,this._isTransient=e?.transient??!1,this._author=e?.author,this._maxCommits=e?.maxCommits??1e3;let t={id:`0`,description:`initial`,meta:{},author:this._author,timestamp:Date.now(),states:new Map,intents:{},intentWrites:[],version:0,previousId:null},n={record:t,commit:new u(t)};this._current=n,this._cacheId=null,this._cacheState=null,this._states=t.states,this._transactionStack=[],this._restoring=!1;let r=new Map;r.set(t.id,n),this._commits=r,this._tipId=t.id}static{this.setDefaultSync=e=>{a=e}}getLog(e,t=100){let n=[],r=e;do{let e=this._commits.get(r);if(!e)throw Error(`Invalid commit id: '${r}'`);if(n.push(e.commit),r=e.record.previousId,!r)return n}while(n.length<t);return n}getCommitCount(){return this._commits.size}isOpenTransaction(){return this._transactionStack.length>0}isRestoring(){return this._restoring}isAmendingOtherCommit(){let e=this._transactionStack[0];return e instanceof p&&e._isRetargeted()}getPendingTransaction(){return this._transactionStack[0]??null}getCurrentTransaction(){let e=this._transactionStack;return e[e.length-1]??null}amend(e,t){let n=this.beginCommit(),r=n.getDepth()===0?this._commits.get(e):void 0;n.getDepth()===0&&(n._setAmendOf(e),r&&r!==this._current&&n._retarget(r));try{let e=t(r?r.commit:this._current.commit);return n.commit(),e}catch(e){throw n.rollback(),e}}_squashTip(e){if(this._transactionStack.length>0)return!1;let t=this._commits.get(this._tipId),n=t?.record.previousId;if(!t||!n)return!1;let r=this._commits.get(n);return!!r&&(r.record.states=t.record.states,r.record.intents=e(r.record.intents,t.record.intents),r.record.timestamp=t.record.timestamp,this._commits.delete(t.record.id),this._tipId=n,this._current===t&&(this._current=r,this._states=r.record.states,this._cacheId=null,this._cacheState=null),!0)}create(t){let n=e.uuidV4();if(t!==void 0){let e=this.beginCommit();try{e.updateState(n,t),e.commit()}catch(t){throw e.rollback(),t}}return n}getStateAt(e,t){return s(t),this._commits.get(e)?.record.states.get(t)}getState(e){s(e);let t=this._transactionStack;if(t.length===0){if(this._cacheId===e)return this._cacheState;let t=this._states.get(e);return this._cacheId=e,this._cacheState=t,t}if(this._flushOnRead>0)for(let n=t.length-1;n>=0;n--)t[n]._isFlushedBy(e)&&t[n]._flush();return t[t.length-1].getState(e)}getCurrentCommit(e=!0){return(e?this._pending?.commit:null)??this._current.commit}getTipCommit(){return this._commits.get(this._tipId).commit}getVersionId(e){return s(e),this._states.get(e)?.version??0}restore(e,t){let n=this._getCommitContainer(e,t);if(this._current.commit.getId()===n.commit.getId())return n.commit;let r=i(n.record.states,this._current.record.states);this._notifyStates(`onBeforeCommitStart`,this._current,r,!0,!1,!1,n);let a=this._current.commit;this._current=n,this._states=this._current.record.states,this._cacheId=null,this._cacheState=null,this._notifyStates(`onAfterStateChange`,n,r,!1,!0,!0,n,a),this._notify(`onCommitChange`,n.commit,!0),this._restoring=!0;try{this._notifyStates(`onRestoreOrRevert`,n,n.record.states,!1,!0)}finally{this._restoring=!1}return n.commit}revert(e,t){let n=this._getCommitContainer(e,t),r=this._commits.get(n.record.previousId);if(!r)throw Error(`Invalid commit id: '${n.record.previousId}'`);let a=i(r.record.states,this._current.record.states);this._notifyStates(`onBeforeCommitStart`,this._current,a,!0,!1,!1,n);let o=this._current.commit;this._current=r,this._states=this._current.record.states,this._cacheId=null,this._cacheState=null,this._notifyStates(`onAfterStateChange`,r,a,!0,!1,!0,n,o),this._notify(`onCommitChange`,r.commit,!0),this._restoring=!0;try{this._notifyStates(`onRestoreOrRevert`,r,r.record.states,!0,!0,!1,n)}finally{this._restoring=!1}return r.commit}_getCommitContainer(e,t){let n=this._commits.get(e);if(!n)throw Error(`Invalid commit id: '${e}'`);if(this._isTransient)throw Error(`Cannot revert transient store`);if(t?.force&&this._transactionStack.length>0&&this._transactionStack[0].rollback(),this._transactionStack.length!==0)throw Error(`Open transactions.`);return n}_pruneForwards(e){let t=this._tipId;for(;t&&t!==e;){let e=this._commits.get(t);if(!e)break;this._commits.delete(t),t=e.record.previousId}}_trimOldest(){if(this._commits.size<=this._maxCommits)return;let e=this._commits.keys();for(;this._commits.size>this._maxCommits;)this._commits.delete(e.next().value);let t=this._commits.get(e.next().value);t&&(t.record.previousId=null)}beginCommit(t,n){let r=this._transactionStack;r.length>0&&r[r.length-1]._flush();let i=r.length;typeof t==`string`&&(t={description:t});let a=t?.expectedCommitId;if(a!==void 0){let e=this._current.record.id;if(i>0||this._restoring)throw new c(`open`,a,e);if(e!==a)throw new c(`stale`,a,e)}if(this._locked)throw console.warn(`TransactionStore locked`,r),Error(`TransactionStore is locked by '${r[i-1].getDescription()}`);let o=t?.preventFurtherTransactions,s=this,l=(e,t,r)=>{let a=s._transactionStack;i!==a.length-1&&console.warn(`Transaction stack out of sync`,i,a.length,a),o&&(this._locked=!1),a.pop(),e._isFlushedOnRead()&&s._flushOnRead--,n?.(e,t,r),a.length===0&&(s._pending=null,s._notifyClose(e._getCommit(),t,e._isElided(),e._isAmendClose()))},d;if(r.length===0){let n=this._current.record,r={states:new Map,id:e.uuidV4(),description:typeof t==`string`?t:t?.description??null,meta:{},timestamp:Date.now(),author:(typeof t==`object`?t?.author:void 0)??this._author??null,version:n.version+1,previousId:n.id,intents:{},intentWrites:[],operation:t?.operation},i={record:r,commit:new u(r)};this._pending=i,this._notify(`onCommitStart`,i.commit),d=new p(this,i,n?.states,t,l)}else d=r[r.length-1].beginTransaction(t,l);return o&&(this._locked=!0),this._transactionStack.push(d),d._isFlushedOnRead()&&this._flushOnRead++,d}doBatch(e,t,n){let r,i=this.beginCommit(t,n),a=this.getCurrentCommit();try{r=e?.(a);let n=()=>{i.commit(t)};if(r&&typeof r.then==`function`)return new Promise((e,t)=>{r.then(r=>{try{n(),e(r)}catch(e){t(e)}}).catch(e=>{i.rollback(),t(e)})});n()}catch(e){throw i.rollback(),e}return r}remove(e){s(e);let t=!1,n=this._listenersState.get(e);if(n){let r=this.getCurrentCommit();n.forEach(e=>{e.onClose?.(r)}),this._listenersState.delete(e),t=!0}this._current.record.states.delete(e)&&(t=!0),this._commits.forEach(n=>{n.record.states.delete(e)&&(t=!0)});let r=this._transactionStack;return r.length>0&&r[0]._purgeState(e),this._cacheId=null,this._cacheState=null,t}addListener(e){let t=this._listeners;return t.add(e),()=>{t.delete(e)}}addStateListener(e,t){if(s(e),!t)throw Error(`Listener is required`);let n=this._listenersState.get(e);return n||(n=new Set,this._listenersState.set(e,n)),n.add(t),()=>{n.delete(t),n.size===0&&this._listenersState.delete(e)}}dispatchEvents(e,t=!1){!t||this._isSync?e():setTimeout(e,0)}_commitRecord(t,n,r){let i=t.record,a=t.commit,o=t,s=++this._versionCounter;if(n.forEach((e,t)=>{e!=null&&((e,t,n)=>{Object.defineProperty(e,"id",{value:t,enumerable:!1,configurable:!0,writable:!1}),Object.defineProperty(e,"version",{value:n,enumerable:!1,configurable:!0,writable:!1})})(e,t,s)}),!this._isTransient){let n=!1;if(r!==null){let s=this._current,c=this._commits.get(r)??s,u=c.record,d=c!==s,f=d?u.states:s.record.states;if(i.states.forEach((e,t)=>{f.set(t,e)}),l(u.intents,i.intentWrites),u.meta={...u.meta,...i.meta},u.timestamp=i.timestamp,n=!0,d)return void(o.record.intentWrites=e.EmptyArray);i=s.record,a=s.commit,t=s}this._commits.set(i.id,t),n||(i.previousId!==this._tipId&&this._pruneForwards(i.previousId),this._tipId=i.id,this._trimOldest())}this._current=t,this._states=this._current.record.states,this._cacheId=null,this._cacheState=null,o.record.intentWrites=e.EmptyArray,r===null&&this._notify(`onCommitChange`,a);let c=i.previousId?this._commits.get(i.previousId)?.commit??null:null;this._notifyStates(`onAfterStateChange`,t,n,!1,!1,!0,o,c),this._notify(r===null?`onCommitEnd`:`onAmendEnd`,a,!0)}_notifyStates(e,t,n,r=!1,i=!1,a=!1,o=t,s=null){let c=t.commit,l=o.record.intents,u=this._listenersState;n.forEach((t,n)=>{let o=u.get(n);o&&this.dispatchEvents(()=>{o.forEach(n=>{n[e]?.(t,c,r,i,l,s)})},a)})}_notifyClose(e,t,n=!1,r=!1){this._listeners.forEach(i=>{i.onCommitClose?.(e,t,n,r)})}_notify(e,t,n=!1){return this.dispatchEvents(()=>{this._listeners.forEach(n=>{n[e]?.(t)})},n)}},f=class{constructor(e,t,n){if(this._children=new Set,this._depth=0,this._closed=!1,this._isAmend=!1,this._readOnly=!1,this._hooks=null,this._flushing=!1,this._outcomes=null,this._intentMark=-1,this._store=e,this._container=t,n=typeof n==`string`?{description:n}:n,this._description=n?.description??``,this._operation=n?.operation??null,this._readOnly=n?.readOnly??!1,n?.flush||n?.onCommit||n?.onRollback||n?.onChildCommit){let e={flush:n.flush,writes:n.writes,onCommit:n.onCommit,onRollback:n.onRollback,onChildCommit:n.onChildCommit};this._hooks=e,(e.onCommit||e.onRollback)&&(this._outcomes=[e])}}_isFlushedOnRead(){return!(!this._hooks?.flush||!this._hooks.writes?.length)}_isFlushedBy(e){let t=this._hooks?.writes;return!!t&&t.includes(e)}_flush(){let e=this._hooks?.flush;if(e&&!this._flushing){this._flushing=!0;try{e()}finally{this._flushing=!1}}}_settle(e){let t=this._children;for(;t.size>0;)t.values().next().value.commit(e);this._flush()}_adoptOutcomes(e){let t=e._outcomes;if(t){if(this._outcomes)for(let e=0;e<t.length;e++)this._outcomes.push(t[e]);else this._outcomes=t}}_childCommitted(e){let t=this._hooks?.onChildCommit;if(!t)return;let n={};l(n,this._container.record.intentWrites,e._intentMark),t(e,n)}_notifyOutcome(e){let t=this._outcomes;if(t){this._outcomes=null;for(let n=0;n<t.length;n++)try{e?t[n].onCommit?.(e):t[n].onRollback?.()}catch(e){console.warn(e)}}}_getCommit(){return this._container.commit}_isElided(){return!1}_setAmendOf(e){this._container.amendOf=e}_isAmendClose(){return this._isAmend||this._container.amendOf!==void 0}getIntent(e){return this._container.record.intents?.[e]}setIntent(e,t){let n=this._container.record,r=n.intents??={};r[e]=typeof t==`function`?t(r[e]):t,(n.intentWrites??=[]).push([e,t])}getDepth(){return this._depth}getDescription(){return this._description}getOperation(){return this._operation}getStates(){return this._states}beginTransaction(e,t){this._ensureOpen();let n=new m(this._store,this,this._container,typeof e==`string`?{description:e}:e,t);return this._hooks?.onChildCommit&&(n._intentMark=this._container.record.intentWrites.length),this._children||this._children,this._children.add(n),n}isReadOnly(){return this._readOnly}updateState(e,t){if(this._ensureOpen(),s(e),this._readOnly)throw Error(`Transaction is read-only`+(this._description?`: '${this._description}'`:``));let n=this.getState(e),r;if(typeof t==`function`){if(r=t(n),r===n)return n;r&&={...r}}else{if(t===void 0)return n;r={...n,...t}}if(r){let t=this._states;t||(t=new Map,this._states=t),t.set(e,r)}return r}amend(e){return this._isAmend=!0,this.commit(e)}commit(t){return this._ensureOpen(),typeof t==`string`&&(t={description:t}),t&&(t.description&&(this._description=t.description),t.meta&&(this._meta=e.mergeContentful(t.meta,this._meta))),this._children&&this._children.forEach(e=>{e.commit(t)}),this}isClose(){return this._closed}_ensureOpen(){if(this._closed)throw this._descriptions?console.warn(`stack: [${this._descriptions.join(`,`)}]`):this._description&&console.warn(`description: [${this._description}]`),Error(`Transaction already closed`)}_removeChild(e,t=!1){this._children.delete(e),t||this._mergeStates(e._states)}_purgeState(e){this._states?.delete(e),this._children.forEach(t=>{t._purgeState(e)})}_mergeStates(e){if(!e||e.size===0)return;let t=this._states;return t?(e.forEach((e,n)=>{t.set(n,e)}),t):(this._states=e,e)}get isITransaction(){return!0}},p=class extends f{constructor(e,t,n,r,i){super(e,t,r),this._retargeted=!1,this._elided=!1,this._prevStates=n,this._onClose=i,this._states=new Map,this._meta=t.record.meta}_isElided(){return this._elided}_retarget(e){this._prevStates=e.record.states,this._retargeted=!0}_isRetargeted(){return this._retargeted}getId(){return this._container.commit.getId()}getSavepointId(){return this.getId()}getParent(){return this}commit(e){this._ensureOpen(),this._settle(e);let t=this._states,n=this._container;if(this._store._notifyStates(`onBeforeCommitStart`,n,t,!1,!1),super.commit(e),this._states.size===0)return this._closed=!0,this._elided=!0,this._onClose?.(this,!1,e),this._notifyOutcome(n.commit),this;this._store._notifyStates(`onBeforeCommitEnd`,n,t,!1,!1),this._settle(e);let r=new Map(this._prevStates);this._states.forEach((e,t)=>{e===null?r.delete(t):r.set(t,e)}),this._states=r,this._description&&(n.record.description=this._description),this._meta&&(n.record.meta=this._meta),n.record.states=r,this._closed=!0,this._onClose?.(this,!1,e);let i=n.amendOf??(this._isAmend?n.record.previousId:null);return this._store._commitRecord(n,t,i),this._notifyOutcome(n.commit),this}rollback(){return this._ensureOpen(),this._children&&this._children.forEach(e=>{e.rollback()}),this._notifyOutcome(null),this._closed=!0,this._onClose?.(this,!0,null),this}updateState(e,t){let n=this.getState(e),r=super.updateState(e,t);return r===n||this._states.set(e,r),r}getState(e){s(e);let t=this._states.get(e);return t||=this._prevStates.get(e),t}},m=class extends f{constructor(e,t,n,r,i){if(super(e,n,r),this._savepointId=null,!t)throw Error(`Parent transaction required`);this._parent=t,this._depth=this._parent.getDepth()+1,!1!==(typeof r==`string`?void 0:r?.savepoint)&&(this._savepointId=`${t.getId()}:${++o}`),t.isReadOnly()&&(this._readOnly=!0),this._onClose=i}getId(){return this._parent.getId()}getSavepointId(){return this._savepointId??this._parent.getSavepointId()}getParent(){return this._parent}getState(e){if(this._states){let t=this._states.get(e);if(t!==void 0)return t}return this._parent.getState(e)}commit(e){return this._ensureOpen(),this._settle(e),super.commit(e),this._parent._removeChild(this),this._parent._adoptOutcomes(this),this._closed=!0,this._onClose?.(this,!1,e),this._intentMark>=0&&this._parent._childCommitted(this),this._parent??this}rollback(){return this._ensureOpen(),this._children&&this._children.forEach(e=>{e.rollback()}),this._notifyOutcome(null),this._parent._removeChild(this,!0),this._closed=!0,this._onClose?.(this,!0,null),this._parent??this}},h=class e{constructor(e){this._closed=!1,this._commitId=null,this._stepListeners=null,this._toWrapped=new WeakMap,this._methods=new WeakMap,this._callbacks=new WeakMap,this._outward=new WeakMap,this._inward=new WeakMap,this._store=e}getStore(){return this._store}getCommitId(){return this._commitId}isClosed(){return this._closed}close(){this._closed||(this._closed=!0,this._stepListeners&&b(this._store,-1),this._stepListeners=null)}addStepListener(e){return this._closed?M:(this._stepListeners||(this._stepListeners=new Set,b(this._store,1)),this._stepListeners.add(e),()=>{this._stepListeners?.delete(e)})}_onStep(e,t){let n=this._stepListeners;if(n&&n.size!==0)for(let r of[...n])r(e,t)}wrap(e){if(typeof e==`function`)return this._wrapFunction(e,!0);if(typeof e!=`object`||!e)return e;let t=e;if(_.has(t))return e;let n=this._toWrapped.get(t);return n===void 0?t instanceof Promise?t.then(e=>this.wrap(e)):Array.isArray(t)?this._wrapArray(t):T(t)?this._wrapModel(t):O(t)?this._wrapIterator(t):e:n}unwrap(e){if(typeof e!=`object`||!e)return e;let t=e,n=g.get(t);return n===void 0?Array.isArray(t)?k(t):Object.getPrototypeOf(t)===Object.prototype?A(t):e:n}_wrapModel(e){let t=this,n=new Proxy(e,{get(e,n){let r=Reflect.get(e,n,e);if(r===null||typeof r!=`object`&&typeof r!=`function`)return r;let i=Object.getOwnPropertyDescriptor(e,n);return!i||i.configurable||i.writable?typeof r==`function`?t._wrapMethod(e,r):t.wrap(r):r},set:(e,n,r)=>Reflect.set(e,n,t.unwrap(r),e)});return this._toWrapped.set(e,n),g.set(n,e),_.set(n,this),n}_wrapMethod(e,t){let n=this._methods.get(e);n||(n=new Map,this._methods.set(e,n));let r=n.get(t);if(r)return r;let i=this;return r=function(...n){let r=n.length;for(let e=0;e<r;e++)n[e]=i._unwrapArg(n[e]);return i._inScope(()=>i.wrap(t.apply(e,n)))},n.set(t,r),r}_unwrapArg(e){return typeof e==`function`?this._wrapFunction(e,!1):typeof e!=`object`||!e||Object.getPrototypeOf(e)!==Object.prototype||g.has(e)?this.unwrap(e):this._unwrapCallbacks(e)}_unwrapCallbacks(e){let t=!1;for(let n in e)if(typeof e[n]==`function`){t=!0;break}if(!t)return this.unwrap(e);let n=this._callbacks.get(e);if(n)return n;let r={};for(let t in e){let n=e[t];r[t]=typeof n==`function`?this._wrapFunction(n,!1):this.unwrap(n)}return this._callbacks.set(e,r),r}_wrapFunction(e,t){let n=t?this._outward:this._inward,r=n.get(e);if(r)return r;let i=this;return r=t?function(...t){let n=t.length;for(let e=0;e<n;e++)t[e]=i._unwrapArg(t[e]);return i._inScope(()=>i.wrap(e.apply(i.unwrap(this),t)))}:function(...t){let n=t.length;for(let e=0;e<n;e++)t[e]=i.wrap(t[e]);return i.unwrap(e.apply(i.wrap(this),t))},n.set(e,r),r}_wrapArray(e){let t=e.length>0?e[0]:void 0;return typeof t!=`object`||!t||Array.isArray(t)||!T(t)?e:e.map(e=>this.wrap(e))}_wrapIterator(e){let t=this,n={next(...n){let r=e.next(...n);return r.done?r:{done:!1,value:t.wrap(r.value)}},[Symbol.iterator]:()=>n};return e.return&&(n.return=t=>e.return(t)),n}_inScope(e){if(this._closed)return e();let t=v;v=this;try{return e()}finally{v=t}}static bind(t,n,r){let i=new e(t);return{callback:e=>{i._commitId=e.getId();let t=r(e,i.wrap(n));return t instanceof Promise?t.then(e=>i.unwrap(e)):i.unwrap(t)},close:()=>i.close(),onChildCommit:(e,n)=>{i._onStep(t.getCurrentCommit(),n)}}}static isStepping(e){return(y.get(e)??0)>0}static of(e){return e===null||typeof e!=`object`&&typeof e!=`function`?null:_.get(e)??null}},g=new WeakMap,_=new WeakMap,v=null,y=new WeakMap,b=(e,t)=>{y.set(e,(y.get(e)??0)+t)},x=()=>v,S=e=>v!==null&&v.getStore()===e,C=new WeakMap,w=[`addListener`,`addListeners`,`doBatch`,`getWorkbook`,`getWorksheet`,`update`],T=e=>{let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype||t===Array.prototype)return!1;let n=C.get(t);return n===void 0&&(n=!E(e)&&D(t),C.set(t,n)),n},E=e=>e instanceof Date||e instanceof RegExp||e instanceof Map||e instanceof Set||e instanceof WeakMap||e instanceof WeakSet||e instanceof Error||e instanceof ArrayBuffer||ArrayBuffer.isView(e),D=e=>{for(let t=0;t<w.length;t++)if(typeof e[w[t]]==`function`)return!0;let t=e;for(;t&&t!==Object.prototype;){let e=Object.getOwnPropertyNames(t);for(let n=0;n<e.length;n++){let r=e[n];if(r.length>3&&r.startsWith(`set`)&&r.charCodeAt(3)>=65&&r.charCodeAt(3)<=90&&typeof Object.getOwnPropertyDescriptor(t,r)?.value==`function`)return!0}t=Object.getPrototypeOf(t)}return!1},O=e=>typeof e.next==`function`&&typeof e[Symbol.iterator]==`function`,k=e=>{let t=null,n=e.length;for(let r=0;r<n;r++){let n=e[r];if(typeof n!=`object`||!n)continue;let i=j(n);i!==n&&(t??=e.slice(),t[r]=i)}return t??e},A=e=>{let t=null;for(let n in e){let r=e[n];if(typeof r!=`object`||!r)continue;let i=j(r);i!==r&&(t??={...e},t[n]=i)}return t??e},j=e=>{let t=g.get(e);return t===void 0?Array.isArray(e)?k(e):Object.getPrototypeOf(e)===Object.prototype?A(e):e:t},M=()=>{},N=(e,t,...n)=>{let r=globalThis.__SXL_LOG_EVENTS;r&&(typeof r!=`string`||e.includes(r))&&console.log(`[sxl:${e}] ${t}`,...n)},P=class{constructor(e,t){this._listeners=new Set,this._pending=null,this._landing=null,this._listeners=new Set,this._transactions=t??new d({transient:!0}),this._stateId=this._transactions.create(),this._src=e;let n=this,r=()=>{let e=n._landing;if(N(n._label(),`drain landing=${e?e.length:`null`}`),!e)return;n._landing=null;let t=new Set,r=e.length,i=null;for(let t=0;t<r;t++){let n=e[t].options,r=n?.merge;if(!r)continue;i??=new Map;let a=e[t].listeners;for(let e=0;e<a.length;e++){let t=a[e];i.set(t,i.has(t)?r(i.get(t),n.params):n.params)}}for(let a=0;a<r;a++){let r=e[a];n._doNotify(r.listeners,r.removes,r.options,t,i)}};this._transactionsRemoveListener=this._transactions.addListener({onCommitClose(e,t,i){let a=n._pending;N(n._label(),`commitClose rollback=${t} elided=${i} pending=${a?a.length:`null`}`),n._pending=null,t||(a&&(n._landing?n._landing.push(...a):n._landing=a),i&&r())},onCommitEnd:r,onAmendEnd:r})}_label(){return this._src?.constructor?.name??`unknown`}_inOperation(){return this._transactions.isOpenTransaction()||this._transactions.isRestoring()}addListeners(e,t){let n=t?.transactional??S(this._transactions),r={listeners:e},i=this,a=()=>{n?i._updateEntries(e=>{e.delete(r)}):i._listeners.delete(r)};return r.remove=t?.once?a:null,n?i._updateEntries(e=>{e.add(r)}):i._listeners.add(r),a}_updateEntries(e){let t=this._transactions,n=t.getState(this._stateId)?.listeners,r=new Set(n);e(r);let i=t.beginCommit();try{i.updateState(this._stateId,{listeners:r}),i.amend()}catch(e){throw i.rollback(),e}}async _doNotify(e,t=null,n,r,i){let a=n?.source??this._src,o=[],s=n?.params,c=e.length;for(let t=0;t<c;t++){let n=e[t];r&&r.has(n)||(r?.add(n),o.push(n(a,i?.has(n)?i.get(n):s)))}let l=null;if(t&&(l=()=>{let e=t.length;for(let n=0;n<e;n++)t[n]()}),n?.async)return new Promise(async(e,t)=>{try{let t=await Promise.all(o);l?.(),e(t)}catch(e){l?.(),t(e)}});l?.()}hasTransactional(e){let t=this._transactions.getState(this._stateId)?.listeners;if(!t||t.size===0)return!1;for(let n of t)if(n.listeners[e])return!0;return!1}_collect(e,t){if(!e)return null;let n=null,r=null;return e.forEach(e=>{let i=e.listeners[t];i&&((n??=[]).push(i),e.remove&&(r??=[]).push(e.remove))}),n?{listeners:n,removes:r}:null}notify(e,t){let n=this._transactions,r=t?.transactional??this._inOperation();if(r){let r=this._collect(n.getState(this._stateId)?.listeners,e);r&&this._doNotify(r.listeners,r.removes,t)}let i=this._collect(this._listeners,e);if(i)return!r||n.isRestoring()||t?.async?(N(this._label(),`notify ${String(e)} delivered to ${i.listeners.length}`),this._doNotify(i.listeners,i.removes,t)):((this._pending??=[]).push({listeners:i.listeners,removes:i.removes,options:t}),void N(this._label(),`notify ${String(e)} QUEUED (open transaction) pending=${this._pending.length}`));N(this._label(),`notify ${String(e)} inOperation=${r} listeners=0`)}close(){this._transactions.remove(this._stateId),this._transactionsRemoveListener(),this._listeners.clear(),this._pending=null,this._landing=null}},F=`Item has been closed. No further operations are allowed.`,I=(e=t(`op.update`))=>r(`error.anchor.protected`,{description:r(e)}),L=class{constructor(e){this._closed=!1,this._options={...e};let t=this;this._transactions=this._options?.transactions??new d({transient:!0}),this._id=this._transactions.create({isDeleted:!1}),this._emitter=new P(this,this._transactions),e?.json&&this._fromJSON(e.json),this._options?.setContainerReadOnlyCallback?.(()=>{t._processOnContainerReadOnly()}),this._transactionsRemoveListener=this._transactions.addStateListener(this._id,{onAfterStateChange(e,n){t._processAfterStateChange(e,n)},onRestoreOrRevert(e,n){t._processRestoreOrRevert(e,n)}}),this._processInit()}_fromJSON(e){}isReadOnly(){return this._options.isReadOnly?.()??!1}isDeleted(){let e=this._getState();return e===void 0||(e.isDeleted??!1)}getType(){return this._options.type}get isIModel(){return!0}_processTransactionDone(e){}_getActionDescription(e){return null}_getState(){if(this._closed)throw Error(r(`error.model.modelClosed`));return this._transactions.getState(this._id)}_beginCommit(e){return this._transactions.beginCommit(typeof e==`string`?{description:e}:e)}_getTransactions(){return this._transactions}_updateState(e,t,n){return this._writeState(e,t,n,!1)}_amendState(e,t,n){return this._writeState(e,t,n,!0)}_writeState(e,t,n,i=!1){if(this._closed)throw Error(r(`error.model.modelClosed`));if(!e)return this;let a=this._beginCommit(t?.description);try{a.updateState(this._id,e);let r=!1,o=n?n.length:0;for(let e=0;e<o;e++){let t=n[e];r||=t===`onAnyChange`,this._emitter.notify(t)}!r&&n&&o>0&&this._emitter.notify(`onAnyChange`),i?a.amend(t):a.commit(t)}catch(e){throw a.rollback(),e}return this}_getEmitter(){return this._emitter}_processInit(){}_processAfterStateChange(e,t){}_processRestoreOrRevert(e,t){this._emitter.notify(`onInvalidated`)}delete(e){this._getState().isDeleted||this._delete(e)}_delete(e){e={description:this._getActionDescription(`delete`)??t(`op.delete`),...e};let n=this._beginCommit(e?.description);try{this._options.deleteFromContainer&&this._options.deleteFromContainer?.(e),this._processDelete(),n.commit()}catch(e){throw n.rollback(),e}}_processOnContainerDeleted(){this._processDelete()}_processDelete(){this._updateState({isDeleted:!0},void 0,[`onDelete`])}_processOnContainerReadOnly(){this._emitter.notify(`onReadOnlyChange`)}addListeners(e,t){return this._emitter.addListeners(e,t)}getId(){return this._id}getVersionId(){return this._transactions.getVersionId(this._id)}beginCommit(e){return this._beginCommit(e)}doBatch(e,t){let n=this;return this._transactions.doBatch(e,typeof t==`string`?{description:t}:t,e=>{n._processTransactionDone(e)})}isClosed(){return this._closed}close(){this._closed||(this._emitter.notify(`onClose`),this._closed=!0,this._transactionsRemoveListener?.(),this._transactions.remove(this._id))}},R=class e extends L{static{this.instanceCounter=0}constructor(t){super(t),this._watches=new Set,this._watchesReleased=!1,this._getMovable=t.getMovable??null,this._addWatchOption=t.addWatch??null,this._getRangeOption=t.getRange??null;let n=t.name??null;!n&&this._getMovable&&(n=`${this.getTypeDescription()} ${++e.instanceCounter}`);let r=t.description??null;n===null&&r===null||this._updateState({name:n,description:r})}getName(){return this._closed?null:this._getState()?.name??null}setName(e){let n={description:t(`op.setMovableName`)};return this._protectionCheck(n.description),this._updateState({name:e},n,[`onAnyChange`]),this}getDescription(){return this._closed?null:this._getState()?.description??null}setDescription(e){let n={description:t(`op.setMovableDescription`)};return this._protectionCheck(n.description),this._updateState({description:e||null},n,[`onAnyChange`]),this}getMovable(){return this._getMovable?.()??null}getReferences(){if(this._closed||this._watchesReleased||this._watches.size===0)return null;let e=[],t=new Set;for(let n of this._watches){let r=n.formula?.getReferences()??this._parseReference(n.expression);if(!r)continue;let i=r.getCount();for(let n=0;n<i;n++){let i=r.at(n);if(i.isInvalid())continue;let a=`${i.getWorksheet().getId()}!${i.getAddress()}`;t.has(a)||(t.add(a),e.push(i))}}return e.length===0?null:e[0].getWorksheet().getRanges(e)}_addWatch(e,t,n){let r=typeof e==`string`?e:e.getExpression(),i={expression:r.startsWith(`=`)?r.substring(1):r,formula:null,callback:t,options:n,release:null};return this._watches.add(i),this._watchesReleased||this._hold(i,typeof e==`string`?void 0:e),()=>{this._watches.delete(i)&&(i.release?.(),i.release=null,this._notifyReferencesChange())}}_resolveRange(e){return this._getRangeOption?.(e)??null}_hold(e,t){let n=this._addWatchOption;n&&(e.release=n(t??e.expression,t=>{e.formula=t.formula,e.expression=t.formula.getExpression(),e.callback?.(t),this._notifyReferencesChange()},e.options))}_parseReference(e){if(!e||e.includes(`#REF!`))return null;try{let t=e.includes(`!`)?null:this.getMovable()?.getRange().getWorksheet(),n=t?t.getRange(e):this._resolveRange(e);return n&&!n.isInvalid()?n.getWorksheet().getRanges([n]):null}catch{return null}}_notifyReferencesChange(){this._closed||(this._emitter.notify(`onReferencesChange`),this._emitter.notify(`onAnyChange`))}_releaseWatches(){this._watchesReleased=!0;for(let e of this._watches)e.release?.(),e.release=null}_holdWatches(){this._watchesReleased=!1;for(let e of this._watches)this._hold(e,e.formula??void 0)}_processDelete(){this._releaseWatches(),super._processDelete()}_processRestoreOrRevert(e,t){super._processRestoreOrRevert(e,t);let n=e===void 0||!0===e.isDeleted;n&&!this._watchesReleased?this._releaseWatches():!n&&this._watchesReleased&&this._holdWatches()}_getSourceId(){let e=this._getState()?.data;return typeof e?.sourceId==`number`?e.sourceId:void 0}_ensureSourceId(e){let n=this._getSourceId();if(n!==void 0)return n;let r=e(),i=this._getState()?.data??{};return this._updateState({data:{...i,sourceId:r}},{description:t(`op.connectShape`)}),r}_protectionCheck(e){if(this.isReadOnly())throw new n(I(e))}};export{R as a,h as c,P as i,x as l,I as n,S as o,L as r,d as s,F as t};
@@ -0,0 +1 @@
1
+ import"./CnXLpFE_vFrJ5Jbf.js";import"./D47ePD4x1lVazNdl.js";export{r as ScriptCompiler,n as loadCompiledModule}from"./21oAESJyBGXeHegm.js";
@@ -0,0 +1 @@
1
+ var e={ODDFPRICE:{s:`Returns the price per $100 face value of a security with an odd first period.`,p:{settlement:{d:`is the security's settlement date, expressed as a serial date number.`},maturity:{d:`is the security's maturity date, expressed as a serial date number.`},issue:{d:`is the security's issue date, expressed as a serial date number.`},firstCoupon:{d:`is the security's first coupon date, expressed as a serial date number.`},rate:{d:`is the security's interest rate.`},yld:{d:`is the security's annual yield.`},redemption:{d:`is the security's redemption value per $100 face value.`},frequency:{d:`is the number of coupon payments per year.`},basis:{d:`is the type of day count basis to use.`}}},ODDFYIELD:{s:`Returns the yield of a security with an odd first period.`,p:{settlement:{d:`is the security's settlement date, expressed as a serial date number.`},maturity:{d:`is the security's maturity date, expressed as a serial date number.`},issue:{d:`is the security's issue date, expressed as a serial date number.`},firstCoupon:{d:`is the security's first coupon date, expressed as a serial date number.`},rate:{d:`is the security's interest rate.`},pr:{d:`is the security's price.`},redemption:{d:`is the security's redemption value per $100 face value.`},frequency:{d:`is the number of coupon payments per year.`},basis:{d:`is the type of day count basis to use.`}}},ODDLPRICE:{s:`Returns the price per $100 face value of a security with an odd last period.`,p:{settlement:{d:`is the security's settlement date, expressed as a serial date number.`},maturity:{d:`is the security's maturity date, expressed as a serial date number.`},lastInterest:{d:`is the security's last coupon date, expressed as a serial date number.`},rate:{d:`is the interest rate.`},yld:{d:`is the security's annual yield.`},redemption:{d:`is the amount to be received at maturity.`},frequency:{d:`is the number of coupon payments per year.`},basis:{d:`is the type of day count basis to use.`}}},ODDLYIELD:{s:`Returns the yield of a security with an odd last period.`,p:{settlement:{d:`is the security's settlement date, expressed as a serial date number.`},maturity:{d:`is the security's maturity date, expressed as a serial date number.`},lastInterest:{d:`is the security's last coupon date, expressed as a serial date number.`},rate:{d:`is the interest rate.`},pr:{d:`is the security's price.`},redemption:{d:`is the amount to be received at maturity.`},frequency:{d:`is the number of coupon payments per year.`},basis:{d:`is the type of day count basis to use.`}}}};export{e as default};
@@ -0,0 +1 @@
1
+ import{n as e}from"./CbXtAM7H-Jg_J0dk.js";import{i as t,t as n}from"./-cpi3yOZYn6GsYN4.js";import{F as r}from"./ChSvXfVMLxZsP9zG.js";import{et as i}from"./DGXDfjkGZjMRAXPg.js";import{U as a}from"./B4PbXdzBe9BsoZ0e.js";import{G as o,K as s,Lt as c,N as l,Y as u}from"./Ca6nxdhEuLLty3d7.js";import{r as d}from"./CZf9s6otzzoaBlSs.js";var f=e(t(),1),p=n(),m=e=>{let[t]=a(`movable-drag`,null),n=e?t?.[e.getId()]:void 0,r=n?.bounds??e?.getBounds();return{width:r?.width??0,height:r?.height??0,rotation:n?.rotation??(e?.getRotation()||0),content:n?.content??null}},h=96/72,g=(e,t)=>{if(typeof e!=`string`||!e)return null;try{return(t?t.parseColor(e):new c(e))?.toCSS(`adaptive`)??null}catch{return null}},_=e=>{if(!e)return null;switch(e.type){case o.Type.Solid:return e.color??null;case o.Type.Gradient:{let t=e.stops?.[0];return(typeof t==`string`?t:t?.color)??null}case o.Type.Pattern:return e.foreground??e.background??null;case o.Type.Image:default:return null}},v=e=>Math.max(0,Math.min(1,e??0)),y=e=>{let t=e.stops??[];if(t.length<2)return null;let n=t.length-1,r=[];for(let e=0;e<t.length;e++){let i=t[e],a=typeof i==`string`?i:i?.color;if(!a)return null;let o=typeof i==`object`&&typeof i.offset==`number`?i.offset:e/n;r.push({offset:v(o),color:a})}if(r.sort((e,t)=>e.offset-t.offset),(e.gradientType??o.GradientType.Linear)===o.GradientType.Linear)return{kind:`linear`,angle:(((e.angle??0)-90)%360+360)%360,scaled:e.scaled??!0,stops:r};let i=e.focus,a=v(i?.left),s=v(i?.top),c=v(i?.right),l=v(i?.bottom);if(a>c||s>l)return null;let u=(a+c)/2,d=(s+l)/2,f=Math.max(u,1-u),p=Math.max(d,1-d);return{kind:`radial`,cx:u,cy:d,r:Math.hypot(f,p),stops:r}},b=s.inheritedGroupFill,x=(e,t,n,r)=>{let i=null;try{i=t?.getTheme()?.toJSON()??null}catch{i=null}let a=s.resolve(e,i,r),{stroke:c}=a,l=e=>g(e,t),f=d.toConcreteFill(a.fill,l),p=d.toConcreteFill(c?.fill,l),m=_(p),v=p?.type===o.Type.Gradient?y(p)??void 0:void 0,b=_(f),x=f?.type===o.Type.Gradient?y(f)??void 0:void 0,S;if(f?.type===o.Type.Image){let e=f.resId===void 0?null:n?.(f.resId)??null;e&&(S={resource:e,fill:f})}return{fill:b,gradient:x,image:S,stroke:m,strokeGradient:v,strokeWidth:m?Math.max(0,a.strokeWidth)*h:0,lineJoin:c?.lineJoin??`miter`,lineCap:c?.lineCap??`butt`,miterLimit:typeof c?.miterLimit==`number`?c.miterLimit:18.5,dash:u.toDashLengths(c?.dash),textColor:g(a.fontColor,t)}},S=/[MLQCAZ]|[-+]?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?/g,C={M:1,L:1,Q:2,C:3,A:1,Z:0},w=e=>String(Math.round(1e5*e)/1e5),T=e=>{let t=e.match(S)??[],n=[],r=[],i=[],a={x:0,y:0},o=null,s=0,c=null;for(;s<t.length;){let e=t[s];if(C[e]!==void 0)c=e,s++;else if(c===`M`)c=`L`;else if(c===null||c===`Z`)break;if(c===`Z`){o&&=(r.push({from:a,to:o}),i.push(a),n.push({c,pts:[]}),a=o,null);continue}let l=c===`A`?t.slice(s,s+5):void 0;l&&(s+=5);let u=[];for(let e=0;e<C[c];e++)u.push({x:Number(t[s++]),y:Number(t[s++])});let d=u[u.length-1];if(!d||Number.isNaN(d.x)||Number.isNaN(d.y))break;c===`M`?(o&&i.push(a),o=d,i.push(d)):(c===`L`&&r.push({from:a,to:d}),o||(o=a,i.push(a))),n.push({c,pts:u,arc:l}),a=d}return o&&i.push(a),{cmds:n,straight:r,ends:i}},E=e=>{let t=[];for(let n of e){let e=n.pts.map(e=>`${w(e.x)} ${w(e.y)}`).join(` `);t.push(n.c===`Z`?`Z`:`${n.c}${n.arc?`${n.arc.join(` `)} `:``}${e}`)}return t.join(` `)},D=1e-6,O=(e,t,n,r,a)=>{let o=r?(a-e)*t.zoom:e*t.zoom,s=i.snapLineCenter(o,n,t.dpr);return r?a-s/t.zoom:s/t.zoom},k=(e,t,n)=>{let r=T(e),i=r.ends.map(e=>({x:e.x,y:e.y})),a=n*t.zoom,o=[];for(let e of r.straight){let t=Math.abs(e.to.y-e.from.y)<D;t!==Math.abs(e.to.x-e.from.x)<D&&o.push({seg:e,level:t,at:t?e.from.y:e.from.x})}for(let{seg:e,level:n,at:r}of o)n?e.from.y=e.to.y=O(r,t,a,t.flipV,t.height):e.from.x=e.to.x=O(r,t,a,t.flipH,t.width);let s=[];return r.ends.forEach((e,t)=>{let n={x:e.x-i[t].x,y:e.y-i[t].y};n.x===0&&n.y===0||s.push({at:i[t],by:n})}),{d:E(r.cmds),ends:s}},A=(e,t)=>{if(t.length===0)return e;let n=T(e),r=[],i=null,a=new Set,o=()=>{if(!i)return;let e=null,n=1/0;for(let r of t){let t=Math.hypot(r.at.x-i.x,r.at.y-i.y);t<n&&(e=r,n=t)}for(let t of r)a.has(t)||(a.add(t),t.x+=e.by.x,t.y+=e.by.y);r=[],i=null};for(let e of n.cmds){e.c===`M`&&(o(),i=e.pts[0]);for(let t of e.pts)r.push(t)}return o(),E(n.cmds)},j=new WeakMap,M={filter:`var(--sxl-image-filter)`},N=e=>{let[t,n]=(0,f.useState)(null);return(0,f.useEffect)(()=>{if(!e)return;let t=!0;return(e=>{let t=j.get(e);return t||(t=(async()=>{let t=await e.getExternalURI();if(t)return t;let[n,i]=await Promise.all([e.toBuffer(),e.getType()]);return`data:${i?.mime??`image/png`};base64,${r.arrayBufferToBase64(n)}`})(),j.set(e,t)),t})(e).then(r=>{t&&n({resource:e,url:r})},()=>{}),()=>{t=!1}},[e]),e&&t?.resource===e?t.url:null},P=(e,t,n,r)=>{let i=t.stops.map((e,t)=>(0,p.jsx)(`stop`,{offset:e.offset,stopColor:e.color},t));if(t.kind===`linear`){let a=t.angle*Math.PI/180,o=Math.cos(a),s=Math.sin(a);if(t.scaled){o*=n,s*=r;let e=Math.hypot(o,s)||1;o/=e,s/=e}let c=(Math.abs(n*o)+Math.abs(r*s))/2,l=n/2,u=r/2;return(0,p.jsx)(`linearGradient`,{id:e,gradientUnits:`userSpaceOnUse`,x1:l-c*o,y1:u-c*s,x2:l+c*o,y2:u+c*s,children:i},e)}return(0,p.jsx)(`radialGradient`,{id:e,gradientUnits:`userSpaceOnUse`,cx:t.cx*n,cy:t.cy*n,r:t.r*n,gradientTransform:`scale(1 ${r/n})`,children:i},e)},F=(0,f.memo)(({paths:e,style:t,width:n,height:r,zoom:a,grid:o,hit:s})=>{let c=(0,f.useId)().replace(/[^A-Za-z0-9_-]/g,``),u=N(t.image?.resource??null),d=((e,t,n=1)=>{let r=(t>0?t:1)*(n>0?n:1);return Math.max(1,Math.round(Math.max(0,e||0)*r))/r})(t.strokeWidth,a,o?.dpr??i.getDevicePixelRatio()),m=n>0&&r>0,h=m?t.gradient??null:null,g=m?t.strokeGradient??null:null,_=t.image?u?`url(#${c}-image)`:null:h?`url(#${c}-fill)`:t.fill,v=g?`url(#${c}-stroke)`:t.stroke,y=t.stroke!==null&&d>0,b=y?((e,t,n)=>{if(!(e&&t>0))return;let r=n!==`butt`,i=e.map((e,n)=>{let i=e*t;return r?n%2==0?Math.max(0,i-t):i+t:i});return i.length%2==1&&i.push(r?t:0),i.map(e=>+e.toFixed(3)).join(` `)})(t.dash,d,t.lineCap):void 0,x=(0,f.useMemo)(()=>((e,t,n)=>{let r=new Map;if(!t)return r;let i=new Map,a=[];for(let o of e){if(o.layer!==l.PathLayer.Stroke)continue;let e=i.get(o.d);if(e===void 0){let r=k(o.d,t,n);e=r.d,i.set(o.d,e),a.push(...r.ends)}r.set(o.index,e)}for(let t of e)if(t.layer===l.PathLayer.Fill){let e=i.get(t.d);e!==void 0&&r.set(t.index,e)}else t.layer===l.PathLayer.Marker&&r.set(t.index,A(t.d,a));return r})(e,y?o:null,d),[e,y,o,d]),S=new Set,C=[];for(let n of e){let e=`p${n.index}`,r=x.get(n.index)??n.d;switch(n.layer){case l.PathLayer.Fill:if(_===null)break;n.fill!==`norm`&&S.add(n.fill),C.push((0,p.jsx)(`path`,{d:r,fill:_,filter:n.fill===`norm`?void 0:`url(#${c}-${n.fill})`,stroke:`none`,pointerEvents:s},e));break;case l.PathLayer.Stroke:{if(!y)break;let n=8/(a>0?a:1);s!==`none`&&n>d&&C.push((0,p.jsx)(`path`,{className:`shape-hit`,d:r,fill:`none`,stroke:`transparent`,strokeWidth:n,strokeLinejoin:`round`,strokeLinecap:`round`,pointerEvents:`stroke`},`${e}-hit`)),C.push((0,p.jsx)(`path`,{d:r,fill:`none`,stroke:v,strokeWidth:d,strokeLinejoin:t.lineJoin,strokeLinecap:t.lineCap,strokeMiterlimit:t.lineJoin===`miter`?t.miterLimit:void 0,strokeDasharray:b,pointerEvents:s===`none`?`none`:`visibleStroke`},e));break}case l.PathLayer.Marker:y&&C.push((0,p.jsx)(`path`,{d:r,fill:v,stroke:`none`,pointerEvents:s},e))}}let w=[];for(let e of S){let[t,n]=l.FillTransfer[e];w.push((0,p.jsx)(`filter`,{id:`${c}-${e}`,colorInterpolationFilters:`sRGB`,children:(0,p.jsxs)(`feComponentTransfer`,{children:[(0,p.jsx)(`feFuncR`,{type:`linear`,slope:t,intercept:n}),(0,p.jsx)(`feFuncG`,{type:`linear`,slope:t,intercept:n}),(0,p.jsx)(`feFuncB`,{type:`linear`,slope:t,intercept:n})]})},e))}if(h&&!t.image&&w.push(P(`${c}-fill`,h,n,r)),g&&y&&w.push(P(`${c}-stroke`,g,n,r)),t.image&&u){let e=t.image.fill.stretch??{},i=n*(e.left??0)/100,a=r*(e.top??0)/100,o=Math.max(0,n-i-n*(e.right??0)/100),s=Math.max(0,r-a-r*(e.bottom??0)/100);w.push((0,p.jsx)(`pattern`,{id:`${c}-image`,patternUnits:`userSpaceOnUse`,x:0,y:0,width:Math.max(n,1),height:Math.max(r,1),children:(0,p.jsx)(`image`,{href:u,x:i,y:a,width:o,height:s,preserveAspectRatio:`none`,style:M})},`image`))}return(0,p.jsxs)(p.Fragment,{children:[w.length>0?(0,p.jsx)(`defs`,{children:w}):null,C]})});F.displayName=`PathRun`;var I=(0,f.memo)(({geometry:e,style:t,zoom:n,grid:r=null,hit:i})=>{let a=(0,f.useMemo)(()=>{let t=[];return e.forEachPath(e=>t.push(e)),t},[e]);return(0,p.jsx)(F,{paths:a,style:t,width:e.getWidth(),height:e.getHeight(),zoom:n,grid:r,hit:i})});I.displayName=`ShapePaths`;export{I as i,m as n,x as r,b as t};
@@ -0,0 +1 @@
1
+ var e={DAVERAGE:{s:`Averages the values in a column in a list or database that match conditions you specify.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DCOUNT:{s:`Counts the cells containing numbers in the field (column) of records in the database that match the conditions you specify.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DCOUNTA:{s:`Counts nonblank cells in the field (column) of records in the database that match the conditions you specify.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DGET:{s:`Extracts from a database a single record that matches the conditions you specify.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DMAX:{s:`Returns the largest number in the field (column) of records in the database that match the conditions you specify.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DMIN:{s:`Returns the smallest number in the field (column) of records in the database that match the conditions you specify.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DPRODUCT:{s:`Multiplies the values in the field (column) of records in the database that match the conditions you specify.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DSTDEV:{s:`Estimates the standard deviation based on a sample from selected database entries.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DSTDEVP:{s:`Calculates the standard deviation based on the entire population of selected database entries.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DSUM:{s:`Adds the numbers in the field (column) of records in the database that match the conditions you specify.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DVAR:{s:`Estimates variance based on a sample from selected database entries.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}},DVARP:{s:`Calculates variance based on the entire population of selected database entries.`,p:{database:{d:`is the range of cells that makes up the list or database. A database is a list of related data.`},field:{d:`is either the label of the column in double quotation marks or a number that represents the column's position in the list.`},criteria:{d:`is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition.`}}}};export{e as default};
@@ -0,0 +1 @@
1
+ import{I as e}from"./ChSvXfVMLxZsP9zG.js";import{D as t,G as n,I as r,K as i,Ot as a,ft as o,g as s}from"./Ca6nxdhEuLLty3d7.js";import{c,i as l}from"./BcOdl17EeFSxnAiq.js";import{Di as u,ci as d,kn as f,rn as p,rr as m}from"./CnZJ44ncMxZ4ivcB.js";import{Ct as h,Dn as g,Dt as _,En as v,G as ee,H as te,Mn as y,Mt as b,O as ne,Pn as x,Pt as re,Rt as ie,Tt as S,Ut as ae,Vt as C,W as w,Xn as oe,Xt as se,Zt as T,_n as E,a as D,an as O,ct as ce,d as le,er as ue,f as k,h as de,hn as A,it as j,ln as fe,m as M,mt as pe,nn as me,o as he,ot as ge,r as N,t as P,tn as F,xn as I}from"./04d8koPx6lzeMYRQ.js";import"./Bwql3QifB2cv7Mqp.js";import{a as L,o as _e,r as R}from"./BksaQEoZr5OWq-_d.js";var ve=class{constructor(e){this.list=e}get length(){return this.list.length}item(e){return this.list[e]}forEach(e,t){let n=this.list,r=n.length;for(let t=0;t<r;t++)e(n[t],t,this)}entries(){return this.list.entries()}keys(){return this.list.keys()}values(){return this.list.values()}[Symbol.iterator](){return this.list.values()}},ye=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,be=e=>{let t=parseInt(e);return isNaN(t)?null:t},xe=e=>{let t=parseFloat(e);return isNaN(t)?null:t},Se=new Map,z=class{constructor(t,n,r,i,a,o=null,s=e.EmptyObject){this._fileLocation=``;let c=(e,t,n)=>s?.getRef?.(e,t,n,s?.parsedRefs),l=e=>s?.getRefs?.(e,s?.parsedRefs);this._parent=t,this.sharedShared=n,this.currentPath=r,this.elemRoot=i,this.jsonRoot=a,t?(this._fileLocation=t._fileLocation,this._getRef=t._getRef,this._getRefs=t._getRefs,this._serializeElement=t._serializeElement,this._readEmbeddedPart=t._readEmbeddedPart):(o&&(this._fileLocation=o),s?.getRef&&(this._getRef=c),s?.getRefs&&(this._getRefs=l),this._onWarning=s?.onWarning,this._addPerson=s?.addPerson,this._serializeElement=s?.serializeElement,this._readEmbeddedPart=s?.readEmbeddedPart)}getRef(e,t=!1){return this._getRef?.(e,this._fileLocation,t)??null}readEmbeddedPart(e){return this._readEmbeddedPart?.(e,this._fileLocation)??null}getRelationships(){return this._getRefs?.(this._fileLocation)??Se}getPath(){return this.currentPath}getFileLocation(){return this._fileLocation}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(e,t){this._raiseWarning(e,this.getFileLocation(),t?.onceKey)}_raiseWarning(e,t,n){this._onWarning?this._onWarning(e,t,n):this._parent?this._parent._raiseWarning(e,t,n):console.warn(e)}serializeElement(e){return this._serializeElement?.(e)??null}addPerson(e){return typeof e==`string`&&(e={displayName:e}),this._addPerson?this._addPerson(e):this._parent?this._parent?._addPerson?.(e)??null:null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(e,t){if(!e)return t;let n=[t],r=e.split(`/`),i=r.length;for(let e=0;e<i;e++){let t=r[e];if(t===``||t===`.`)continue;let a=[],o=(t===`*`||t===`**`)&&e!==i-1;for(let i of n)if(i){if(o){let t=r[e+1];t&&t!==``&&t!==`.`&&(this._findDescendants(i,t,a),e++)}else if(t===`*`||t===`**`){if(!i.childNodes)continue;let e=i.childNodes,t=e.length;for(let n=0;n<t;n++){let t=e[n];t.nodeType===1&&a.push(t)}}else{if(!i.childNodes)continue;let e=i.childNodes,n=e.length;for(let r=0;r<n;r++){let n=e[r];if(n.nodeType!==1)continue;let i=n;this._matchesElementName(i,t)&&a.push(i)}}}if(n=a,n.length===0)return null}return n.length===1?n[0]:n.length===0?null:new ve(n)}_matchesElementName(e,t){return t.includes(`:`)?(e.tagName||e.nodeName)===t:e.localName===t}_findDescendants(e,t,n){if(!e||!e.childNodes)return;let r=e.childNodes,i=r.length;for(let e=0;e<i;e++){let i=r[e];if(i.nodeType!==1)continue;let a=i;this._matchesElementName(a,t)&&n.push(a),this._findDescendants(a,t,n)}}getFromPath(t,n){return e.getFromPath(t,n)}setToPath(t,n,r){return e.setToPath(t,n,r)}getValAttrAsString(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?n.getAttribute(`val`)??null:null}getValAttrAsBoolean(e,t,n=!1){let r=this.evaluate(e,t);if(!r)return null;let i=r.hasAttribute(`val`)?r.getAttribute(`val`):void 0;return i==null?n:i===`1`||i===`on`||i===`true`||i!==`0`&&i!==`off`&&i!==`false`&&n}getValAttrAsInteger(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseInt(n.getAttribute(`val`))??null:null}getValAttrAsFloat(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseFloat(n.getAttribute(`val`))??null:null}get BOOLEAN_COPY(){return ye}get INT_COPY(){return be}get FLOAT_COPY(){return xe}copyFromAttribute(e,t,n,r=t,i=null){if(!e||!n||!e.hasAttribute(t))return;let a=e.getAttribute(t);if(i){if(Array.isArray(i)){let e=i.length;for(let t=0;t<e;t++)if(a==null||(a=i[t](a),a==null))return}else if(a==null||(a=i(a),a==null))return}this.setToPath(n,r,a)}},B=(e,t)=>{let n=[],r=e.childNodes,i=r.length;for(let e=0;e<i;e++){let i=r.item(e);i.nodeType===1&&i.localName===t&&n.push(i)}return n},Ce=[[`fillRef`,`fill`],[`lnRef`,`stroke`],[`effectRef`,`effect`]],V=(e,t)=>{let n=new h,r={};for(let[i,a]of Ce){let o=e.evaluate(i,t);if(!o)continue;let s={index:parseInt(o.getAttribute(`idx`)??`0`,10)||0},c=n.processAdjColor(e,o);c&&(s.color=c),r[a]=s}let i=e.evaluate(`fontRef`,t);if(i){let t={index:i.getAttribute(`idx`)??`none`},a=n.processAdjColor(e,i);a&&(t.color=a),r.font=t}return r},H=class{visit(e,t,n){if(!t)return;let r=e.evaluate(`*/cNvPr`,t);return r.item&&(r=r.item(0)),r&&(e.copyFromAttribute(r,`name`,n),e.copyFromAttribute(r,`descr`,n,`description`),e.copyFromAttribute(r,`hidden`,n,`hidden`,e.BOOLEAN_COPY),this.readNonVisualDetails(e,r,n),e.copyFromAttribute(r,`id`,n)),n}readNonVisualDetails(e,t,n){t.hasAttribute(`title`)&&(n.title=t.getAttribute(`title`));let r=e.evaluate(`hlinkClick`,t);r&&(n.hyperlink=O(e,r));let i=e.evaluate(`hlinkHover`,t);i&&(n.hoverHyperlink=O(e,i));let a=e.evaluate(`extLst`,t),o=a?e.serializeElement(a):null;o&&(n.extLst={...n.extLst,nonVisual:o})}setContent(e,t){let n=e;n.name!==void 0&&(t.name=n.name,delete n.name),n.description!==void 0&&(t.description=n.description,delete n.description);for(let e of[`title`,`hyperlink`,`hoverHyperlink`,`extLst`])n[e]!==void 0&&(t.json&&(t.json[e]=n[e]),delete n[e]);e.content=t}isGroupContent(e){return Array.isArray(e?.members)}readMemberHeader(e,t,n){let r={},i={anchor:void 0,content:{type:n,json:r}},a=e.evaluate(`*/cNvPr`,t);if(a?.item&&(a=a.item(0)),a){let n=a.getAttribute(`name`);n!==null&&(i.content.name=n);let o=a.getAttribute(`descr`);o&&(i.content.description=o),e.copyFromAttribute(a,`hidden`,i,`hidden`,e.BOOLEAN_COPY),this.readNonVisualDetails(e,a,r);let s=this.readSourceId(e,t);s!==void 0&&(r.sourceId=s)}return{movable:i,content:r}}readStyleRefs(e,t,n){let r=e.evaluate(`style`,t);if(!r)return void(n.style=null);let a=V(e,r),o=i.withoutDefaultStyleRefs({...n,style:a});o&&(n.style=o)}readLocks(e){let t=e?.attributes;if(!t||t.length===0)return;let n={};for(let e=0;e<t.length;e++){let r=t.item(e);r.name.startsWith(`xmlns`)||(n[r.localName??r.name]=D(r.value))}return Object.keys(n).length>0?n:void 0}readSourceId(e,t){let n=e.evaluate(`*/cNvPr`,t);n?.item&&(n=n.item(0));let r=n?.getAttribute?.(`id`),i=r?parseInt(r,10):void 0;return i===void 0||isNaN(i)?void 0:i}},we=[[`spDef`,`shape`],[`lnDef`,`line`],[`txDef`,`text`]],U=(e,t)=>{let n=t.getAttribute(`dxfId`);if(n===null)return;let r=parseInt(n);return e.getVisitorParamsState().get(`dxfs`)?.get(r)||(e.warn(`A color filter or sort names a format that does not exist (dxfId '${n}').`),{})},W=e=>e===`1`||e===`true`,G=class{visit(e,t,n){}processDataBarColor(e,t,n,r,i=`auto`){if(!t)return;let a=T(e=>t.getAttribute(e),i);return a&&(n[r]=a),n}processFonts(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);if(a.nodeType===1&&a.localName===`font`){let t={};this.processFont(e,a,t),n[i++]=t}}return n}processFont(e,n,r){e.getValAttrAsBoolean(`b`,n,!0)&&(r.weight=700),e.getValAttrAsBoolean(`i`,n,!0)&&(r.style=t.Style.Italic),e.getValAttrAsBoolean(`strike`,n,!0)&&(r.strike=v(!0));let i=e.evaluate(`u`,n);if(i){let e=i.getAttribute(`val`);r.underline=b(e)}let a=y(e.evaluate(`vertAlign`,n)?.getAttribute(`val`));a!==void 0&&(r.baseline=a),me(e,n,r,`sz`,`size`);let o=e.evaluate(`color`,n);this.processDataBarColor(e,o,r,`color`),r.color||=`auto`,x(e,n,r,`name`,`family`),x(e,n,r,`rFont`,`family`);let s=e.evaluate(`family`,n);if(s){let e=s.getAttribute(`val`);if(e)switch(e){case`1`:r.fallbacks=[`serif`];break;case`2`:r.fallbacks=[`sans-serif`];break;case`3`:r.fallbacks=[`monospace`];break;case`4`:r.fallbacks=[`cursive`];break;case`5`:r.fallbacks=[`fantasy`]}}P(r,e.evaluate(`scheme`,n)?.getAttribute(`val`)),A(e,n,r,`shadow`,`shadow`,!0),A(e,n,r,`outline`,`outline`,!0);for(let t of[`condense`,`extend`]){let i=E(t,!!e.getValAttrAsBoolean(t,n,!0));i!==void 0&&(r.letterSpacing=i)}return g(e,n,r,`charset`,`charset`),r}processFills(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`fill`&&this.processFill(e,a,n,i++)}return n}processFill(e,t,r,i){let a={type:n.Type.None},o=t.childNodes,s=!1,c=o.length;for(let t=0;!s&&t<c;t++){let n=o.item(t);n.nodeType===1&&(n.localName===`gradientFill`?(this.processGradientFill(e,n,a),s=!0):n.localName===`patternFill`&&(this.processPatternFill(e,n,a),s=!0))}return r[i]=a,r}processGradientFill(e,t,r){if(!t)return;r.type=n.Type.Gradient;let i=[];r.stops=i;let a=t.getAttribute(`type`);a&&(r.gradientType=a);let o=t.hasAttribute(`degree`)?parseFloat(t.getAttribute(`degree`)):0;(o+90)%360!=0&&(r.angle=(o+90)%360),(t.hasAttribute(`left`)||t.hasAttribute(`top`)||t.hasAttribute(`right`)||t.hasAttribute(`bottom`))&&(r.focus={left:K(t.getAttribute(`left`)),top:K(t.getAttribute(`top`)),right:K(t.getAttribute(`right`)),bottom:K(t.getAttribute(`bottom`))});let s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1&&n.localName===`stop`){let t={};i.push(t),t.offset=parseFloat(n.getAttribute(`position`)??``);let r=e.evaluate(`color`,n);this.processDataBarColor(e,r,t,`color`)}}return r}processPatternFill(e,t,r){if(!t)return;let i=e.getVisitorParamsState().get(`processingDXFs`),a=t.getAttribute(`patternType`)||(i?n.BuiltInSheetPattern.Solid:n.BuiltInSheetPattern.None);if(a===n.BuiltInSheetPattern.None)return{none:!0};r.type=n.Type.Pattern,a&&(r.patternType=a);let o=`foreground`,s=`background`,c=r.patternType===n.BuiltInSheetPattern.Solid&&i,l=c?`dk1`:`lt1`,u=c?`lt1`:`dk1`;if(c){let e=o;o=s,s=e}let d=e.evaluate(`fgColor`,t);this.processDataBarColor(e,d,r,o,l);let f=e.evaluate(`bgColor`,t);return this.processDataBarColor(e,f,r,s,u),c&&(r.foreground||=`lt1`,r.background||=`dk1`),r}processBorders(e,t,n,r){if(!t)return;let i=t.childNodes,a=0,o=i.length;for(let t=0;t<o;t++){let o=i.item(t);o.nodeType===1&&o.localName===`border`&&this.processBorder(e,o,n,a++,r)}return n}processBorder(e,t,n,r,i){if(!t)return;let o={};this.processBorderStroke(e,t,o,a.Edge.Left),this.processBorderStroke(e,t,o,a.Edge.Right),i?(o.right||o.left)&&(o.vertical=o.right?{...o.right}:{...o.left}):this.processBorderStroke(e,t,o,a.Edge.Vertical),this.processBorderStroke(e,t,o,a.Edge.Top),this.processBorderStroke(e,t,o,a.Edge.Bottom),i?(o.bottom||o.top)&&(o.horizontal=o.bottom?{...o.bottom}:{...o.top}):this.processBorderStroke(e,t,o,a.Edge.Horizontal);let s=this.processBorderStroke(e,t,{},`diagonal`);return s&&(W(t.getAttribute(`diagonalUp`))&&(o.diagonalUp={...s}),W(t.getAttribute(`diagonalDown`))&&(o.diagonalDown={...s})),n[r]=o,n}processBorderStroke(e,t,n,r){if(!t)return;let i=e.evaluate(r,t);if(!i)return;let o={};i.hasAttribute(`style`)?o.style=i.getAttribute(`style`):e.getVisitorParamsState().get(`processingDXFs`)&&(o.style=a.StrokeStyle.None);let s=e.evaluate(`color`,i);return s&&this.processDataBarColor(e,s,o,`color`),Object.keys(o).length>0?n[r]=o:null}},K=e=>{if(!e)return 0;let t=parseFloat(e);return isNaN(t)?0:t},q=(e,t)=>{if(!e||e.nodeType!==1)return null;let n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType===1&&r.localName===t)return r}return null},Te=new Set(Object.values(d.ElementType).filter(e=>e!==d.ElementType.WholeTable&&e!==d.ElementType.HeaderRow)),Ee={auto:`auto`,autoNoTable:`automaticExceptTables`,manual:`manual`},J=[`tableId`,`columnId`,`cacheName`,`cachePath`,`sourceName`,`sortOrder`,`customListSort`,`crossFilter`],Y=(e,t)=>{let n=e.content,r=n?.json;if(r){if(n.type===`shape`||n.type===`picture`){let{rotation:n,flipH:i,flipV:a,bounds:o}=r;delete r.rotation,delete r.flipH,delete r.flipV,delete r.bounds,n!==void 0&&n!==0&&(e.rotation=n),i&&(e.flipH=!0),a&&(e.flipV=!0),t&&o&&(e.anchor={tl:{x:o.x,y:o.y},br:{x:o.width,y:o.height}})}if(n.type===`group`)for(let e of r.members??[])Y(e,!0)}},X=class extends H{visit(e,t,n){if(t)return this.visitShape(e,t,n,`sp`,`nvSpPr/cNvSpPr/spLocks`)}visitShape(e,t,n,r,i){let a=ge[r];if(this.isGroupContent(n)){if(e.getPath().includes(`Fallback`))return{};let{movable:o,content:c}=this.readMemberHeader(e,t,`shape`);a!==s.Type.Shape&&(c.type=a),this.readShapeDetails(e,t,r,i,c),this.readStyleRefs(e,t,c);let l=e.evaluate(i,t);l?.hasAttribute?.(`noChangeAspect`)&&(o.lockAspect=l.getAttribute(`noChangeAspect`)===`1`);let u=this.readTwinOf(e,t);return u!==void 0&&Object.assign(c,{twinOf:u}),n.members.push(o),c}if(e.getPath().includes(`Fallback`)&&n.content){let r=n.content.json;if(n.content.type===`shape`&&r&&(r.type??s.Type.Shape)===a){let n=e.evaluate(`txBody`,t),i=n?new j().readTextBody(e,n):null;i&&de(i)!==``&&(r.text=i)}return{}}n=super.visit(e,t,n);let o=e.evaluate(i,t);o?.hasAttribute?.(`noChangeAspect`)&&(n.lockAspect=o.getAttribute(`noChangeAspect`)===`1`);let c=a===s.Type.Shape?{}:{type:a},l=this.readSourceId(e,t);l!==void 0&&(c.sourceId=l),this.readShapeDetails(e,t,r,i,c),this.readStyleRefs(e,t,c);let u=this.readTwinOf(e,t);return u!==void 0&&Object.assign(c,{twinOf:u}),this.setContent(n,{type:`shape`,json:c}),c}readTwinOf(e,t){let n=e.evaluate(`*/cNvPr/extLst/ext/compatExt`,t);n?.item&&(n=n.item(0));let r=/^_x0000_s(\d+)$/.exec(n?.getAttribute?.(`spid`)??``);return r?parseInt(r[1],10):void 0}readShapeDetails(e,t,n,r,i){let a=t.getAttribute(`macro`);a&&(i.macro=a);let o=t.getAttribute(`textlink`);o&&(i.textLink=o),t.hasAttribute(`fLocksText`)&&(i.locksText=D(t.getAttribute(`fLocksText`))),t.hasAttribute(`fPublished`)&&(i.published=D(t.getAttribute(`fPublished`)));let s=r.slice(0,r.lastIndexOf(`/`)),c=e.evaluate(s,t);c?.getAttribute?.(`txBox`)===`1`&&(i.textBox=!0);let l=this.readLocks(e.evaluate(r,t));if(l&&(i.locks=l),n===`cxnSp`&&c){let t=t=>{let n=e.evaluate(t,c);if(n?.getAttribute)return{id:parseInt(n.getAttribute(`id`)??`0`,10)||0,index:parseInt(n.getAttribute(`idx`)??`0`,10)||0}},n=t(`stCxn`),r=t(`endCxn`);(n||r)&&(i.connectorEnds={},n&&(i.connectorEnds.start=n),r&&(i.connectorEnds.end=r))}}},De=/^<a:extLst(?:\s+xmlns:a="[^"]*")?><a:ext uri="\{28A0092B-C50C-407E-A947-70E740481C1C\}"><a14:useLocalDpi(?:\s+xmlns:a14="[^"]*")?\s+val="0"\s*\/><\/a:ext><\/a:extLst>$/,Z=(e,t,n,r)=>{let i=e.evaluate(n,t),a=e.evaluate(r,t);return i||a?{x:k(i?.getAttribute(`x`)??null)??0,y:k(i?.getAttribute(`y`)??null)??0,width:k(a?.getAttribute(`cx`)??null)??0,height:k(a?.getAttribute(`cy`)??null)??0}:null},Oe={Checkbox:`checkbox`},Q=e=>{let t=e.getAttribute(`val`);return t!==`0`&&t!==`false`},ke={1:`serif`,2:`sans-serif`,3:`monospace`,4:`cursive`,5:`fantasy`};function Ae(e){let n={},r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1)switch(i.localName){case`b`:n.weight=Q(i)?700:400;break;case`i`:n.style=Q(i)?t.Style.Italic:t.Style.Normal;break;case`strike`:n.strike=v(Q(i));break;case`outline`:n.outline=Q(i);break;case`shadow`:n.shadow=Q(i);break;case`condense`:case`extend`:{let e=E(i.localName,Q(i));e!==void 0&&(n.letterSpacing=e);break}case`u`:n.underline=b(i.getAttribute(`val`));break;case`vertAlign`:{let e=y(i.getAttribute(`val`));e!==void 0&&(n.baseline=e);break}case`sz`:{let e=parseFloat(i.getAttribute(`val`)??``);isNaN(e)||(n.size=e);break}case`rFont`:{let e=i.getAttribute(`val`);e&&(n.family=e);break}case`family`:{let e=ke[i.getAttribute(`val`)??``];e&&(n.fallbacks=[e]);break}case`charset`:{let e=parseInt(i.getAttribute(`val`)??``,10);isNaN(e)||(n.charset=e);break}case`scheme`:P(n,i.getAttribute(`val`));break;case`color`:{let e=i.getAttribute(`rgb`);if(e&&!i.hasAttribute(`theme`)){n.color=`#`+(e.length===8?e.substring(2):e).toUpperCase();break}let t=T(e=>i.getAttribute(e));t&&(n.color=t);break}}}return Object.keys(n).length>0?n:null}var $={RelsVisitor:class{visit(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);i.nodeType===1&&i.localName===`Relationship`&&this.processRelationship(e,i,n)}return n}processRelationship(e,t,n){let r={};e.copyFromAttribute(t,`Target`,r,`target`),e.copyFromAttribute(t,`Type`,r,`type`),e.copyFromAttribute(t,`TargetMode`,r,`targetMode`),n[t.getAttribute(`Id`)]=r}},CorePropertiesVisitor:class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processProperty(e,n);a&&r.push(a)}return r.length>0&&(n.properties=r),r}processProperty(e,t){if(t)return t.getAttribute(`xsi:type`),{key:t.localName,value:t.textContent||``}}},AppPropertiesVisitor:class{visit(e,t,n){let r=t.childNodes,i=r.length;for(let e=0;e<i;e++)if(r.item(e).localName===`property`)return this.visitCustom(t,n);let a=[];for(let t=0;t<i;t++){let n=r.item(t);if(n.nodeType!==1)continue;let i=this.processProperty(e,n);i&&a.push(i)}return a.length>0&&(n.properties=a),a}visitCustom(e,t){let n=[],r=e.childNodes,i=r.length;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType!==1||t.localName!==`property`)continue;let i=t.getAttribute(`name`);if(!i)continue;let a=null;for(let e=0;e<t.childNodes.length&&!a;e++){let n=t.childNodes.item(e);n.nodeType===1&&(a=n)}let o={key:i,kind:a?.localName??null,value:a?.textContent??``},s=t.getAttribute(`linkTarget`);s&&(o.linkTarget=s),n.push(o)}return n.length>0&&(t.custom=n),n}processProperty(e,t){if(t)return{key:t.localName,value:t.textContent||``}}},ShapePropertiesVisitor:M,TextPropertiesVisitor:he,ShapeTextVisitor:j,ThemeVisitor:class{visit(e,t,n){n.name=t.getAttribute(`name`),n.objectDefaults={};let r=B(t,`custClrLst`)[0];if(r){let t=new h,i=[];for(let n of B(r,`custClr`)){let r=t.processAdjColor(e,n);if(!r)continue;let a={color:r},o=n.getAttribute(`name`);o&&(a.name=o),i.push(a)}i.length&&(n.customColors=i)}for(let e of B(t,`extLst`))for(let t of B(e,`ext`)){if(t.getAttribute(`uri`)!==`{05A4C25C-085E-4340-85A3-A5531E510DB2}`)continue;let e=B(t,`themeFamily`)[0],r=e?.getAttribute(`id`);if(!r)continue;let i={name:e.getAttribute(`name`)??``,id:r},a=e.getAttribute(`vid`);a&&(i.vid=a),n.family=i}return n}},ClrSchemeVisitor:class extends h{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=t.childNodes,a=i.length;for(let n=0;n<a;n++){let a=i.item(n);if(a.nodeType===1){let n=a.localName,i=e.evaluate(n,t);r[n]=this.processAdjColor(e,i)}}return Object.keys(r).length>0&&(n.colors=r),r}},FontSchemeVisitor:class{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=this.processFontCollection(e,e.evaluate(`majorFont`,t));i&&(r.major=i);let a=this.processFontCollection(e,e.evaluate(`minorFont`,t));return a&&(r.minor=a),n.fonts=r,r}processFontCollection(e,t){if(!t)return;let n={},r=e.evaluate(`latin`,t),i=r?.getAttribute(`typeface`);i&&(n.latin=i);let a=r?.getAttribute(`panose`);a&&(n.panose=a);let o=e.evaluate(`ea`,t)?.getAttribute(`typeface`);o&&(n.eastAsian=o);let s=e.evaluate(`cs`,t)?.getAttribute(`typeface`),c;s&&(n.complexScript=s);let l=t.childNodes,u=l.length;for(let e=0;e<u;e++){let t=l.item(e);if(t.nodeType!==1||t.localName!==`font`)continue;let n=t.getAttribute(`script`);n&&((c??={})[n]=t.getAttribute(`typeface`)??``)}return c&&(n.scripts=c),n}},ObjectDefaultsVisitor:class{visit(e,t,n){let r={};for(let[n,i]of we){let a=e.evaluate(n,t);a&&(r[i]=this.processDefault(e,a))}return n.objectDefaults=r,{}}processDefault(e,t){let n={},r=e.evaluate(`spPr`,t);r&&new M().visit(e,r,n);let i=new j().readTextBody(e,t);(i.body||i.listStyle)&&(n.text=i);let a=e.evaluate(`style`,t);return a&&(n.style=V(e,a)),n}},FmtSchemeVisitor:class extends h{visit(e,t,n){let r=this.parseFillList(e,t,`fillStyleLst`),i=this.parseLnList(e,t,`lnStyleLst`),a=this.parseEffectStyleList(e,t,`effectStyleLst`),o=this.parseFillList(e,t,`bgFillStyleLst`);if(r&&(n.fillStyleLst=r),i&&(n.lnStyleLst=i),a&&(n.effectStyleLst=a),o&&(n.bgFillStyleLst=o),r&&i&&a&&o)return;let s=e.serializeElement(t);s&&(n.formatSchemeXml=s)}parseFillList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;let r=this.parseFillListItem(e,n);if(r===void 0)return;i.push(r)}return i}parseFillListItem(e,t){switch(t.localName){case`noFill`:return{type:n.Type.None};case`solidFill`:{let r=this.processAdjColor(e,t);return r?{type:n.Type.Solid,color:r}:void 0}case`gradFill`:return this.processGradFill(e,t);case`pattFill`:return this.processPatternFill(e,t);default:return}}parseLnList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);n.nodeType===1&&i.push(this.parseLn(e,n))}return i}parseEffectStyleList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;if(e.evaluate(`scene3d`,n)||e.evaluate(`sp3d`,n))return;let r=this.getEffects(e,n);if(r===void 0)return;i.push(r??[])}return i}},AutoFilterVisitor:class{visit(e,t,n){if(!t)return;let r={},i=[];return this.processFilterColumns(e,t,i,n),i.length>0&&(r.conditions=i),Object.keys(r).length>0&&(n.filter=r),n}processColorFilter(e,t){let n={},r={operator:p.BuiltInOperatorNames.Color,param:n};e.copyFromAttribute(t,`cellColor`,n,`cellColor`,e.BOOLEAN_COPY);let i=U(e,t);return i&&(n.style=i),r}processCustomFilter(e,t){return F({operator:t.getAttribute(`operator`),val:t.getAttribute(`val`)},t=>e.warn(t))}processCustomFilters(e,t){let n=t.getAttribute(`and`),r=n===`and`||n===`1`;t.getAttribute(`val`);let i=[],a={operator:r?p.BuiltInOperatorNames.And:p.BuiltInOperatorNames.Or,param:i},o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let n=o.item(t);if(n.nodeType!==1)continue;let r=null;n.localName===`customFilter`&&(r=this.processCustomFilter(e,n)),r&&i.push(r)}return i.length===1?i[0]:se(a)}processDynamicFilter(e,t){return ee(t.getAttribute(`type`))}processDateGroupItem(e,t){let n={};return e.copyFromAttribute(t,`dateTimeGrouping`,n,`group`),e.copyFromAttribute(t,`day`,n,`day`,e.INT_COPY),e.copyFromAttribute(t,`hour`,n,`hour`,e.INT_COPY),e.copyFromAttribute(t,`minute`,n,`minute`,e.INT_COPY),e.copyFromAttribute(t,`month`,n,`month`,e.INT_COPY),e.copyFromAttribute(t,`second`,n,`second`,e.INT_COPY),e.copyFromAttribute(t,`year`,n,`year`,e.INT_COPY),n}processFilterItem(e,t){if(t.hasAttribute(`val`))return t.getAttribute(`val`)}processFilters(e,t){let n={},r={operator:p.BuiltInOperatorNames.InSet,param:n};r.selector=p.BuiltInSelectorNames.Display,e.copyFromAttribute(t,`blank`,n,`blank`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calendarType`,n,`calendarType`);let i=[],a=[],o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let n=o.item(t);if(n.nodeType===1){if(n.localName===`dateGroupItem`){let t=this.processDateGroupItem(e,n);t&&i.push(t)}else if(n.localName===`filter`){let t=this.processFilterItem(e,n);t!==void 0&&a.push(t)}}}return i.length>0&&(n.dateGroups=i),a.length>0&&(n.items=a),r}processIcon(e,t){let n={},r={operator:p.BuiltInOperatorNames.Icon,param:n};return e.copyFromAttribute(t,`iconId`,n,`iconId`,e.INT_COPY),e.copyFromAttribute(t,`iconSet`,n),r}processTop10(e,t){let n={},r={operator:p.BuiltInOperatorNames.TopN,param:n};return e.copyFromAttribute(t,`filterVal`,n,`filterVal`,e.FLOAT_COPY),e.copyFromAttribute(t,`percent`,n,`percent`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`top`,n,`top`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`val`,n,`limit`,e.FLOAT_COPY),r}processFilterColumnExt(e,t){let n=t.childNodes;for(let t=0;t<n.length;t++){let r=n.item(t);if(r.nodeType!==1||r.localName!==`ext`||_(r.getAttribute(`uri`))!==_(`{1AD28BCE-077C-4C59-8B6E-1921CE8616D4}`))continue;let i=r.childNodes;for(let t=0;t<i.length;t++){let n=i.item(t);if(n.nodeType!==1||n.localName!==`filterColumn`)continue;let r=n.childNodes;for(let t=0;t<r.length;t++){let n=r.item(t);if(n.nodeType===1&&n.localName===`filters`)return this.processFilters(e,n)}}}}processFilterCriteria(e,t){if(!t)return;let n=t.childNodes,r,i=n.length;for(let t=0;t<i;t++){let i=n.item(t);i.nodeType===1&&(i.localName===`colorFilter`?r=this.processColorFilter(e,i):i.localName===`customFilters`?r=this.processCustomFilters(e,i):i.localName===`dynamicFilter`?r=this.processDynamicFilter(e,i):i.localName===`filters`?r=this.processFilters(e,i):i.localName===`iconFilter`?r=this.processIcon(e,i):i.localName===`top10`?r=this.processTop10(e,i):i.localName===`extLst`&&(r=this.processFilterColumnExt(e,i)??r))}return r}processFilterColumn(e,t,n){if(!t)return null;if(!t.hasAttribute(`colId`))return;let r=parseInt(t.getAttribute(`colId`)),i=!1;if(t.hasAttribute(`hiddenButton`)&&(i=D(t.getAttribute(`hiddenButton`))),i&&n){let e=n.hiddenButtons;e||(e=[],n.hiddenButtons=e),e.push(r)}let a=!1;if(t.hasAttribute(`showButton`)&&(a=D(t.getAttribute(`showButton`))),a&&n){let e=n.showButtons;!0!==e&&(e||(e=[],n.showButtons=e),e[r]=!0)}let o=this.processFilterCriteria(e,t);return o?(o.index=r,o):null}processFilterColumns(e,t,n,r){if(!t)return;let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`filterColumn`){let t=this.processFilterColumn(e,a,r);t&&n.push(t)}}return n}},SortStateVisitor:class{visit(e,t,n){if(!t)return;let r=t.getAttribute(`ref`),i={};t.hasAttribute(`caseSensitive`)&&(i.collatorOptions=D(t.getAttribute(`caseSensitive`))?m.CaseSensitiveOptions:m.CaseInsensitiveOptions);let a=t.getAttribute(`sortMethod`);a!=null&&a!==`none`&&(a===`stroke`?i.collatorOptions={...i.collatorOptions,collation:`stroke`}:a===`pinYin`&&(i.collatorOptions={...i.collatorOptions,collation:`pinyin`}));let o={};t.hasAttribute(`columnSort`)&&D(t.getAttribute(`columnSort`))&&(o.axis=c.Axis.Column);let s=u.fastStringToRange(r),l=[],d=[];this.processSortConditions(e,t,l,s,i,d),l.length>0&&(o.sorts=l);let f=e.getVisitorParamsState().get(`ref`);if(f&&r){let e=u.fastStringToRange(f);o.extent={range:I(e,s),sorts:d.map(t=>pe(e,s,t))}}return Object.keys(l).length>0&&(n.sort=o),o}processSortCondition(e,t,n,r,i){if(!t)return null;let a={};if(!t.hasAttribute(`ref`))return void e.warn(`A sort condition has no ref; it was dropped.`,{onceKey:`xlsx.sheet.sort.noRef`});if(t.hasAttribute(`ref`)){let e=t.getAttribute(`ref`),r=u.fastStringToRange(e);a.index=n?r.colStart-n.colStart:r.colStart,i?.push(r)}let o={...r};a.criteria=o,o.reverse=!1,t.hasAttribute(`descending`)&&(o.reverse=D(t.getAttribute(`descending`)));let s=oe(t.getAttribute(`sortBy`));s&&(o.sortOn=s);let c=U(e,t);return c&&(o.style=c),e.copyFromAttribute(t,`iconSet`,o),e.copyFromAttribute(t,`customList`,o),a}processSortConditions(e,t,n,r,i,a){if(!t)return;let o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let s=o.item(t);if(s.nodeType===1&&s.localName===`sortCondition`){let t=this.processSortCondition(e,s,r,i,a);t&&n.push(t)}}}},SheetStyleVisitor:class extends G{visit(e,t,r){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let i={fills:{},fonts:{},borders:{}},o=e.evaluate(`fonts`,t);this.processFonts(e,o,i.fonts);let s=i.fonts[this.normalFontId(e,t)],c={declared:[`1`,`true`].includes(o?.getAttribute(`x14ac:knownFonts`)??``),normalIsThemeFont:w(s?.family),faces:ne(Object.values(i.fonts).map(e=>({...e,family:ie(e?.family,e?.fallbacks,null,!1).name})))};e.getVisitorParamsState().set(ce,c),s&&e.getVisitorParamsState().set(`defaultFont`,s),this.processFills(e,e.evaluate(`fills`,t),i.fills),this.processBorders(e,e.evaluate(`borders`,t),i.borders,!0),i.fills[0]={type:n.Type.None},i.fills[1]={type:n.Type.Pattern,patternType:n.BuiltInSheetPattern.Gray125},i.borders[0]={bottom:{style:a.StrokeStyle.None},left:{style:a.StrokeStyle.None},right:{style:a.StrokeStyle.None},top:{style:a.StrokeStyle.None}};let l=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),l,i,null,!1);let u=new Map;if(l.length>0){let n=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),n,l,u),r.named=n}let d=[];this.processXFs(e,e.evaluate(`cellXfs`,t),d,i,u),Object.keys(d).length>0&&(r.direct=d);let f=this.collectHiddenXfs(e.evaluate(`cellXfs`,t));f.size>0&&e.getVisitorParamsState().set(`hiddenXfs`,f);let p=this.collectXfComplements(e.evaluate(`cellXfs`,t));p.size>0&&e.getVisitorParamsState().set(`xfComplements`,p);let m=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),m),this.processTableStyles(e,e.evaluate(`tableStyles`,t),r,m),this.processSlicerStyles(e,e.evaluate(`extLst`,t),r),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),r),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),r),r}normalFontId(e,t){let n=e.evaluate(`cellStyles`,t)?.childNodes,r=0;for(let e=0;e<(n?.length??0);e++){let t=n.item(e);if(t.nodeType===1&&t.getAttribute(`builtinId`)===`0`){r=parseInt(t.getAttribute(`xfId`)??`0`,10)||0;break}}let i=e.evaluate(`cellStyleXfs`,t)?.childNodes,a=0;for(let e=0;e<(i?.length??0);e++){let t=i.item(e);if(t.nodeType===1&&a++===r)return parseInt(t.getAttribute(`fontId`)??`0`,10)||0}return 0}processIndexColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`rgbColor`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}n.indexedColors=r}processMruColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`color`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}r.length>0&&(n.mruColors=r)}processNumFmts(e,t,n){if(!t)return;let r=new Map;if(e.getVisitorParamsState().set(`numFmts`,r),!t)return;let i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType===1&&t.localName===`numFmt`){let e=t.getAttribute(`numFmtId`),n=t.getAttribute(`formatCode`);if(e&&n){let t=n;r.set(parseInt(e),t)}}}}processXFs(e,t,n,r,i=null,a=!0){if(!t)return;let o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let s=o.item(t);if(s.nodeType===1&&s.localName===`xf`){let t={};this.processXF(e,s,t,r,i,a),n.push(t)}}}processXF(e,t,n,i,a,o){if(!t)return;let s=t.getAttribute(`xfId`);if(s&&a){let e=a.get(parseInt(s));e&&e!==r.BuiltInName.Normal&&(n.named=e)}let c=e=>!(!o&&t.hasAttribute(e))||D(t.getAttribute(e)),l=e=>!o||t.hasAttribute(e)&&D(t.getAttribute(e)),u=o?`0`:void 0;if(c(`applyFont`)){let e=t.getAttribute(`fontId`)??u;if(e!==void 0&&(e!==`0`||l(`applyFont`))){let t=i.fonts[e];t!==void 0&&(n.font=t)}}if(c(`applyFill`)){let e=t.getAttribute(`fillId`)??u;if(e!==void 0&&(e!==`0`||l(`applyFill`))){let t=i.fills[e];t!==void 0&&Object.keys(t).length>0&&(n.fill=t)}}if(c(`applyBorder`)){let e=t.getAttribute(`borderId`)??u;if(e!==void 0&&(e!==`0`||l(`applyBorder`))){let t=i.borders[e];t!==void 0&&(n.borders=t)}}if(c(`applyNumberFormat`)){let r=t.getAttribute(`numFmtId`)??u;if(r!==void 0&&(r!==`0`||l(`applyNumberFormat`))){let t=parseInt(r),i,a=e.getVisitorParamsState();if(a){let e=a.get(`numFmts`);e&&(i=e.get(t)),n.numberFormat=i??t}else e.warn(`Number formats were unavailable; a cell format was not read.`,{onceKey:`xlsx.style.numberFormat.state`})}}if(c(`applyAlignment`)){let r=e.evaluate(`alignment`,t);(r||l(`applyAlignment`))&&this.processAlignment(e,r,n)}if(c(`applyProtection`)){let r=e.evaluate(`protection`,t);(r||l(`applyProtection`))&&this.processProtection(e,r,n)}let d=D(t.getAttribute(`quotePrefix`)??``);d&&(n.quotePrefix=d)}processAlignment(e,t,n){let r={};if(r.horizontal=t?.hasAttribute(`horizontal`)?t.getAttribute(`horizontal`):o.HorizontalAlignment.General,r.vertical=t?.hasAttribute(`vertical`)?t.getAttribute(`vertical`):o.VerticalAlignment.Bottom,r.indent=t?.hasAttribute(`indent`)?parseInt(t.getAttribute(`indent`)):0,r.relativeIndent=t?.hasAttribute(`relativeIndent`)?parseInt(t.getAttribute(`relativeIndent`)):0,r.overflow=D(t?.getAttribute(`wrapText`)??``)?o.Overflow.Wrap:o.Overflow.Visible,D(t?.getAttribute(`shrinkToFit`)??``)&&(r.overflow=o.Overflow.Shrink),t?.hasAttribute(`textRotation`)){let e=parseFloat(t.getAttribute(`textRotation`));e>0&&e<=90?e=360-e:e>90&&e<=180?e-=90:e===255&&(e=0,r.stacked=!0),r.rotation=e}else r.rotation=0;t?.hasAttribute(`justifyLastLine`)&&(r.justifyLastLine=D(t.getAttribute(`justifyLastLine`)));let i=t?.getAttribute(`readingOrder`);return i&&(i===`0`?r.readingDirection=o.ReadingDirection.Auto:i===`1`?r.readingDirection=o.ReadingDirection.LeftToRight:i===`2`?r.readingDirection=o.ReadingDirection.RightToLeft:e.warn(`Invalid readingOrder '${i}'; the direction was left automatic.`,{onceKey:`xlsx.style.readingOrder`})),Object.keys(r).length>0&&(n.alignment=r),n}collectHiddenXfs(e){let t=new Set;if(!e)return t;let n=e.childNodes,r=0;for(let e=0;e<n.length;e++){let i=n.item(e);if(i.nodeType!==1||i.localName!==`xf`)continue;let a=i.childNodes;for(let e=0;e<a.length;e++){let n=a.item(e);n.nodeType===1&&n.localName===`protection`&&D(n.getAttribute(`hidden`)??``)&&t.add(r)}r++}return t}collectXfComplements(e){let t=new Map;if(!e)return t;let n=e.childNodes,r=0;for(let e=0;e<n.length;e++){let i=n.item(e);if(i.nodeType!==1||i.localName!==`xf`)continue;let a=q(i,`extLst`);if(a){let e=a.childNodes;for(let n=0;n<e.length;n++){let i=q(e.item(n),`xfComplement`),a=parseInt(i?.getAttribute(`i`)??``,10);isNaN(a)||t.set(r,a)}}r++}return t}processProtection(e,t,n){if(!t)return;let r=t.getAttribute(`locked`);return n.protection={alwaysUnlocked:!!r&&!D(r)},n}processDXF(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`font`){let t={};this.processFont(e,i,t),n.font=t}else if(i.nodeType===1&&i.localName===`fill`){let t=[];this.processFill(e,i,t,0),t.length>0&&t[0]&&(n.fill=t[0])}else if(i.nodeType===1&&i.localName===`border`){let t=[];this.processBorder(e,i,t,0,!1),t.length>0&&t[0]&&(n.borders=t[0])}else if(i.nodeType===1&&i.localName===`numFmt`){let e=i.getAttribute(`formatCode`);if(e)n.numberFormat=e;else{let e=i.getAttribute(`numFmtId`);e&&(n.numberFormat=Number(e))}}else i.nodeType===1&&i.localName===`alignment`&&this.processAlignment(e,i,n)}}processDXFs(e,t,n){if(!t)return;e.getVisitorParamsState().set(`processingDXFs`,!0);let r=new Map;e.getVisitorParamsState().set(`dxfs`,r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`dxf`){let t={};this.processDXF(e,a,t);let i=n.length;r.set(i,t),n.push(t)}}e.getVisitorParamsState().delete(`processingDXFs`)}processSlicerStyles(e,t,n){if(!t)return;let r=null,i=null,a=t.childNodes;for(let e=0;e<a.length;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`ext`)continue;let n=t.childNodes;for(let e=0;e<n.length;e++){let t=n.item(e);t.nodeType===1&&(t.localName===`dxfs`?r=t:t.localName===`slicerStyles`&&(i=t))}}if(!i)return;let o=[];if(r){e.getVisitorParamsState().set(`processingDXFs`,!0);let t=r.childNodes;for(let n=0;n<t.length;n++){let r=t.item(n);if(r.nodeType!==1||r.localName!==`dxf`)continue;let i={};this.processDXF(e,r,i),o.push(i)}e.getVisitorParamsState().delete(`processingDXFs`)}let s={},c=i.getAttribute(`defaultSlicerStyle`);c&&c!==`SlicerStyleLight1`&&(s.defaultSlicerStyle=c);let l=n.tables?.styles,u=i.childNodes;for(let t=0;t<u.length;t++){let n=u.item(t);if(n.nodeType!==1||n.localName!==`slicerStyle`)continue;let r=n.getAttribute(`name`);if(!r)continue;let i={},a=l?.[r];a&&!1===a.table&&!a.pivot&&(a.wholeTable&&(i.wholeTable=a.wholeTable),a.headerRow&&(i.headerRow=a.headerRow),delete l[r]);let c=e.evaluate(`slicerStyleElements`,n)?.childNodes,d=c?.length??0;for(let t=0;t<d;t++){let n=c.item(t);if(n.nodeType!==1||n.localName!==`slicerStyleElement`)continue;let r=n.getAttribute(`type`);if(!r||!Te.has(r))continue;let a=n.getAttribute(`dxfId`),s=a==null?void 0:o[parseInt(a)];s?i[r]=s:e.warn(`A slicer style names a format that does not exist (dxfId '${a}').`,{onceKey:`xlsx.style.slicerStyle.dxf`})}(s.styles??={})[r]=i}l&&Object.keys(l).length===0&&(delete n.tables.styles,Object.keys(n.tables).length===0&&delete n.tables),Object.keys(s).length>0&&(n.slicers=s)}processTableStyle(e,t,n,r,i=!1){let a=t.getAttribute(`name`),o={name:a};t.hasAttribute(`table`)&&(o.table=D(t.getAttribute(`table`))),t.hasAttribute(`pivot`)&&(o.pivot=D(t.getAttribute(`pivot`))),i&&!o.pivot&&r.unshift(null);let s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1&&n.localName===`tableStyleElement`){let t=n.getAttribute(`type`),i=n.getAttribute(`dxfId`),a=i==null?void 0:r?.[i];a||=(e.warn(`A table style names a format that does not exist (dxfId '${i}').`,{onceKey:`xlsx.style.tableStyle.dxf`}),{}),o[t]=a;let s=null;n.hasAttribute(`size`)&&(s=parseInt(n.getAttribute(`size`))),s&&!isNaN(s)&&(a.size=s)}}delete o.name,n[a]=o}processTableStyles(e,t,n,r,i){if(!t)return;let a={},o=t.getAttribute(`defaultTableStyle`);o&&(a.defaultTableStyle=o);let s=t.getAttribute(`defaultPivotStyle`);s&&(a.defaultPivotStyle=s);let c=t.childNodes,l={},u=c.length;for(let t=0;t<u;t++){let n=c.item(t);n.nodeType===1&&n.localName===`tableStyle`&&this.processTableStyle(e,n,l,r,i)}return Object.keys(l).length>0&&(a.styles=l),Object.keys(a).length>0&&(n.tables=a),n}processCellStyles(e,t,n,i,a){if(!t)return;let o=t.childNodes,s=o.length;for(let e=0;e<s;e++){let t=o.item(e);if(t.nodeType===1&&t.localName===`cellStyle`){let e=parseInt(t.getAttribute(`xfId`)??``),o=t.getAttribute(`name`),s=t.getAttribute(`builtinId`),c=o;if(s!==null){let e=r.builtInNameFromId(parseInt(s));e!==void 0&&(c=e)}if(a.set(e,c),!i[e])continue;let l={name:c,style:i[e]};t.getAttribute(`hidden`)&&(l.hidden=D(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(l.iLevel=parseInt(t.getAttribute(`iLevel`))),s!==null&&D(t.getAttribute(`customBuiltin`)??`0`)&&(l.customized=!0),n.push(l)}}}afterVisit(e,t,n){}},WorkbookVisitor:class extends G{visit(e,t,n){return this.processSheetRefs(e,e.evaluate(`sheets`,t),n),this.processExternalReferences(e,e.evaluate(`externalReferences`,t),n),this.processBookViews(e,e.evaluate(`bookViews`,t),n),this.processDefinedNames(e,e.evaluate(`definedNames`,t),n),this.processCalcPr(e,e.evaluate(`calcPr`,t),n),this.processPivotCaches(e,e.evaluate(`pivotCaches`,t),n),this.processWorkbookProtection(e,e.evaluate(`workbookProtection`,t),n),this.processWorkbookPr(e,e.evaluate(`workbookPr`,t),n),n}processPassword(e,t,n,r=`workbook`,i=`password`){if(!t)return;let a={};e.copyFromAttribute(t,`${r}AlgorithmName`,a,`algorithm`),e.copyFromAttribute(t,`${r}HashValue`,a,`hash`),e.copyFromAttribute(t,`${r}SaltValue`,a,`salt`),e.copyFromAttribute(t,`${r}SpinCount`,a,`spinCount`,e.INT_COPY),e.copyFromAttribute(t,`${r}Password`,a,`legacyHash`),Object.keys(a).length>0&&(n[i]=a)}processWorkbookProtection(e,t,n){if(!t)return;let r={};this.processPassword(e,t,r,`workbook`,`password`),this.processPassword(e,t,r,`revisions`,`revisionsPassword`);for(let e of re)r[e.key]=ae(e,t.getAttribute(e.attribute));return n.protection=r,n}processCalcPr(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`calcMode`,r,`calcMode`,e=>Ee[e]??null),e.copyFromAttribute(t,`fullCalcOnLoad`,r,`fullCalcOnLoad`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calcOnSave`,r,`calcOnSave`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calcCompleted`,r,`calcCompleted`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`fullPrecision`,r,`fullPrecision`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`forceFullCalc`,r,`forceFullCalc`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`concurrentCalc`,r,`concurrentCalc`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`concurrentManualCount`,r,`concurrentManualCount`,e.INT_COPY),e.copyFromAttribute(t,`refMode`,r,`refMode`),e.copyFromAttribute(t,`iterate`,r,`iterate`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`iterateCount`,r,`maxIteration`,e.INT_COPY),e.copyFromAttribute(t,`iterateDelta`,r,`maxIterateChange`,e.FLOAT_COPY);let i=t.getAttribute(`calcId`);i!==null&&e.getVisitorParamsState().set(`calcId`,i),n.calc=r}processSheetRefs(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`sheet`&&this.processSheetRef(e,n,r)}n.sheets=r}processSheetRef(e,t,n){let r={};e.copyFromAttribute(t,`name`,r,`name`),e.copyFromAttribute(t,`state`,r,`visibility`),e.copyFromAttribute(t,`sheetId`,r,`sheetId`,e.INT_COPY);let i=t.getAttribute(`r:id`),a=i?te(e.getRelationships().get(i)?.type):null;if(a){let t=e.readEmbeddedPart(i);if(t?.xml){let e={part:t},i=ue(t.xml),o=i?T(e=>i.get(e)):void 0;o&&(e.tabColor=o),r.kind=a,r.sheet=e,n.push(r);return}e.warn(`The ${a} sheet '${r.name}' could not be read and was loaded as an empty worksheet.`),n.push(r);return}let o=i?e.getRef(i):null;o&&(r.sheet=o),n.push(r)}processExternalReferences(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`externalReference`){let t=n.getAttribute(`r:id`),i=t?e.getRef(t):null;r.push(i??null)}}r.length>0&&(n.externalBooks=r)}processPivotCaches(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1||n.localName!==`pivotCache`)continue;let a=parseInt(n.getAttribute(`cacheId`)??``,10),o=n.getAttribute(`r:id`);if(isNaN(a)||!o)continue;let s=e.readEmbeddedPart(o);s&&r.push({cacheId:a,part:s})}r.length>0&&(n.pivotCaches=r)}processBookViews(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;i<1&&t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`workbookView`&&(this.processWorkbookView(e,a,n),i++)}}processWorkbookView(e,t,n){if(!t)return;let r={},i=[`xWindow`,`yWindow`,`windowWidth`,`windowHeight`].map(e=>parseInt(t.getAttribute(e)??``,10));if(i.some(e=>Number.isFinite(e))){let[e,t,n,a]=i.map(e=>Number.isFinite(e)?e:0);r.windowBounds={left:e,top:t,width:n,height:a}}e.copyFromAttribute(t,`activeTab`,r,`activeSheetId`,[e.INT_COPY,e=>e]),t.hasAttribute(`activeTab`)||(r.activeSheetId=0),e.copyFromAttribute(t,`showHorizontalScroll`,r,`showHorizontalScrollbar`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`showVerticalScroll`,r,`showVerticalScrollbar`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`showSheetTabs`,r,`showTabs`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`tabRatio`,r,`tabRatio`,[e.FLOAT_COPY,e=>e]),e.copyFromAttribute(t,`firstSheet`,r,`firstTab`,[e.INT_COPY,e=>e]),e.copyFromAttribute(t,`minimized`,r,`minimized`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`autoFilterDateGrouping`,r,`autoFilterDateGrouping`,e.BOOLEAN_COPY);let a=t.getAttribute(`visibility`);a!==`hidden`&&a!==`veryHidden`||(r.visibility=a),Object.keys(r).length>0&&(n.view=r)}processDefineName(e,t,n,r){if(!t)return;let i={},a=t.firstChild;if(a&&a.nodeType===3&&(i.ref=a.textContent),e.copyFromAttribute(t,`name`,i),e.copyFromAttribute(t,`comment`,i),e.copyFromAttribute(t,`hidden`,i,`hidden`,e.BOOLEAN_COPY),t.hasAttribute(`localSheetId`)){let n=t.getAttribute(`localSheetId`);if(!r[n]?.name)return void e.warn(`Defined name '${t.getAttribute(`name`)}' references a sheet with localSheetId '${n}' which does not exist.`);i.scope=r[n].name}let o={};for(let n of L)e.copyFromAttribute(t,n,o);for(let e of R){let n=t.getAttribute(e);n!==`1`&&n!==`true`||(o[e]=!0)}e.copyFromAttribute(t,`functionGroupId`,o,`functionGroupId`,e.INT_COPY),Object.keys(o).length>0&&(i.fileAttributes=o),Object.keys(i).length>0&&n.push(i)}processDefinedNames(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);a.nodeType===1&&a.localName===`definedName`&&this.processDefineName(e,a,r,n.sheets)}r.length>0&&(n.names=r)}processWorkbookPr(e,t,n){t&&(e.copyFromAttribute(t,`date1904`,n,`date1904`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`codeName`,n,`codeName`),e.copyFromAttribute(t,`updateLinks`,n,`updateLinks`))}afterVisit(e,t,n){}},TableVisitor:class{visit(e,t,n){let r={};return e.copyFromAttribute(t,`ref`,n,`r`),e.getVisitorParamsState().set(`ref`,n.r),n.v=r,e.copyFromAttribute(t,`name`,r),e.copyFromAttribute(t,`displayName`,r,`name`),e.copyFromAttribute(t,`headerRowCount`,r,`headerRowCount`,e.INT_COPY),e.copyFromAttribute(t,`totalsRowCount`,r,`totalsRowCount`,e.INT_COPY),this.processTableColumns(e,t,r),this.processTableStyleInfo(e,t,r),e.copyFromAttribute(t,`id`,r),e.copyFromAttribute(t,`comment`,r,`description`),e.copyFromAttribute(t,`connectionId`,r,`connectionId`,e.INT_COPY),e.copyFromAttribute(t,`tableType`,r),e.copyFromAttribute(t,`published`,r,`published`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`insertRow`,r,`insertRow`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`insertRowShift`,r,`insertRowShift`,e.BOOLEAN_COPY),r.totalsRowShown=t.getAttribute(`totalsRowShown`)!==`0`,r}afterVisit(e,t,n){let r=n.v;if(e.evaluate(`autoFilter`,t)){if(Array.isArray(r.hiddenButtons)){let e=r.hiddenButtons.length;e===0?r.hiddenButtons=!1:e===r.columns?.length&&(r.hiddenButtons=!0)}}else r.hiddenButtons=!0,r.showButtons=!1;return r}processTableStyleInfo(e,t,n){if(!t)return;let r=t.childNodes,i={},a=r.length;for(let t=0;t<a;t++){let n=r.item(t);n.nodeType===1&&n.localName===`tableStyleInfo`&&(e.copyFromAttribute(n,`name`,i),e.copyFromAttribute(n,`showColumnStripes`,i,`showColumnStripes`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showFirstColumn`,i,`showFirstColumn`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showLastColumn`,i,`showLastColumn`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showRowStripes`,i,`showRowStripes`,e.BOOLEAN_COPY))}Object.keys(i).length>0&&(n.style=i)}processTableColumn(e,t,n){if(!t)return null;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`tableColumn`){let t={};e.copyFromAttribute(i,`name`,t),e.copyFromAttribute(i,`id`,t),e.copyFromAttribute(i,`uniqueName`,t),e.copyFromAttribute(i,`queryTableFieldId`,t),e.copyFromAttribute(i,`totalsRowLabel`,t);let r=i.getAttribute(`totalsRowFunction`);if(r!==null){if(r===`custom`){let n=e.evaluate(`totalsRowFormula`,i);n&&(t.totalsRowFormula=n.textContent)}else t.totalsRowFormula=r}e.copyFromAttribute(i,`totalsRowLabel`,t);let a=e.evaluate(`calculatedColumnFormula`,i);a?.textContent&&(t.calculatedColumnFormula=a.textContent),n.push(t)}}return n}processTableColumns(e,t,n){let r=t.childNodes,i=[],a=r.length;for(let t=0;t<a;t++){let n=r.item(t);n.nodeType===1&&n.localName===`tableColumns`&&this.processTableColumn(e,n,i)}i.length>0&&(n.columns=i)}},TableX14Visitor:class{visit(e,t,n){let r=e.getVisitorParamsState().get(`ref`);if(r){let n=e.getVisitorParamsState().get(`descriptions`);n&&(n.add(r,t.getAttribute(`altText`)),n.add(r,t.getAttribute(`altTextSummary`)))}return e.copyFromAttribute(t,`altText`,n),e.copyFromAttribute(t,`altTextSummary`,n),n}},ExternalLinkVisitor:class{visit(e,t,n){let r=t.childNodes,i=r.length,a=null;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1){t.localName===`externalBook`&&(a=t);break}}if(!a)return n;t.getAttribute(`mc:Ignorable`)&&(n.mceIgnorable=!0);let o=a.getAttribute(`r:id`);o&&(n.__bookRelId=o);let s=this._findAbsoluteUrlRelId(a);return s&&(n.__absoluteUrlRelId=s),n.sheetNames=[],this.processSheetNames(e,a,n),this.processDefinedNames(e,a,n),this.processSheetDataSet(e,a,n),n}processSheetNames(e,t,n){let r=this._findChild(t,`sheetNames`);if(!r)return;let i=r.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);t.nodeType===1&&t.localName===`sheetName`&&n.sheetNames.push(t.getAttribute(`val`)??``)}}processDefinedNames(e,t,n){let r=this._findChild(t,`definedNames`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`definedName`)continue;let n=t.getAttribute(`name`);if(!n)continue;let r={name:n,refersTo:t.getAttribute(`refersTo`)??``},o=t.getAttribute(`sheetId`);o!==null&&(r.sheetIndex=parseInt(o,10)),i.push(r)}i.length>0&&(n.definedNames=i)}processSheetDataSet(e,t,n){let r=this._findChild(t,`sheetDataSet`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1||n.localName!==`sheetData`)continue;let r=n.getAttribute(`sheetId`);if(r===null)continue;let o=this.processSheetData(e,n);o.sheetIndex=parseInt(r,10),n.getAttribute(`refreshError`)===`1`&&(o.refreshError=!0),i.push(o)}i.length>0&&(n.sheetDataSet=i)}processSheetData(e,t){let n=new f.Builder,r=t.childNodes,i=r.length;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType!==1||t.localName!==`row`)continue;let i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType!==1||t.localName!==`cell`)continue;let r=t.getAttribute(`r`);if(!r)continue;let a=u.fastStringToCell(r);if(a?.rowIndex===void 0||a?.colIndex===void 0)continue;let o=this._readCellValue(t);o!==void 0&&n.pushAt(a.rowIndex,a.colIndex,o)}}return{sheetIndex:-1,data:n.build()?.tuples??[]}}_readCellValue(e){let t=this._findChild(e,`v`)?.textContent?.trim();if(t!==void 0&&t!==``)switch(e.getAttribute(`t`)){case null:case`n`:return parseFloat(t);case`b`:return t===`1`||t===`true`;case`str`:default:return t;case`e`:{let e=l.getBuiltInByLabel(t);return e?{t:`e`,v:e.getCode()}:t}}}_findChild(e,t){let n=e.childNodes,r=n.length;for(let e=0;e<r;e++){let r=n.item(e);if(r.nodeType===1&&r.localName===t)return r}return null}_findAbsoluteUrlRelId(e){let t=this._findChild(e,`alternateUrls`);return t?this._findChild(t,`absoluteUrl`)?.getAttribute(`r:id`)??null:null}},SlicerCacheDefinitionVisitor:class{visit(e,t,n){e.copyFromAttribute(t,`name`,n,`cacheName`),e.copyFromAttribute(t,`sourceName`,n);let r=e.evaluate(`*/tableSlicerCache`,t);return r?(e.copyFromAttribute(r,`tableId`,n),e.copyFromAttribute(r,`column`,n,`columnId`),e.copyFromAttribute(r,`sortOrder`,n),e.copyFromAttribute(r,`customListSort`,n,`customListSort`,e.BOOLEAN_COPY),e.copyFromAttribute(r,`crossFilter`,n),n):(e.warn(`A slicer names no table; it was not imported.`,{onceKey:`xlsx.slicer.cacheDefinition`}),n)}},SlicersVisitor:class{visit(e,t,n){let r=n.slicers;r||(r={},n.slicers=r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`slicer`&&this.processSlicer(e,n,r)}return r}processSlicer(e,t,n){if(!t)return;let r={};n[t.getAttribute(`name`)]=r,e.copyFromAttribute(t,`xr10:uid`,r,`uid`);let i=t.getAttribute(`cache`),a=e.getVisitorParamsState().get(`slicerCaches`),o=i?a?.get(i):void 0;if(o)for(let e=0;e<J.length;e++){let t=J[e];o[t]!==void 0&&(r[t]=o[t])}e.copyFromAttribute(t,`caption`,r),e.copyFromAttribute(t,`startItem`,r,`startItem`,e.INT_COPY),e.copyFromAttribute(t,`columnCount`,r,`columnCount`,e.INT_COPY),e.copyFromAttribute(t,`showCaption`,r,`showCaption`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`level`,r,`level`,e.INT_COPY),e.copyFromAttribute(t,`style`,r),e.copyFromAttribute(t,`lockedPosition`,r,`lockedPosition`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`rowHeight`,r,`rowHeight`,e.INT_COPY)}},FormControlPrVisitor:class{visit(e,t,n){let r={},i=t.attributes;for(let e=0;e<i.length;e++){let t=i.item(e),n=t.name;n===`xmlns`||n.startsWith(`xmlns:`)||(r[n]=t.value)}let a=[],o,s=t.childNodes;for(let t=0;t<s.length;t++){let n=s.item(t);if(n.nodeType===1){if(n.localName===`itemLst`){let e=n.childNodes;for(let t=0;t<e.length;t++){let n=e.item(t);n.nodeType===1&&n.localName===`item`&&a.push(n.getAttribute(`val`)??``)}}else n.localName===`extLst`&&(o=e.serializeElement(n)??void 0)}}let c=fe(r,a,o);return n.formControl=c,c}},DrawingVisitor:class{visit(e,t,n){return n}afterVisit(e,t,n){for(let e of n?.movables??[])Y(e,!1)}},DrawingAnchorVisitor:class{visit(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`editAs`,r,`anchorType`),r.anchor={},t.localName===`absoluteAnchor`?(r.anchorType=`absolute`,this.processAbsoluteCoord(e,e.evaluate(`pos`,t),r.anchor,`from`,`x`,`y`),this.processAbsoluteCoord(e,e.evaluate(`ext`,t),r.anchor,`to`,`cx`,`cy`)):t.localName===`oneCellAnchor`?(this.processOffsetCoord(e,e.evaluate(`from`,t),r.anchor,`from`),this.processAbsoluteCoord(e,e.evaluate(`ext`,t),r.anchor,`to`,`cx`,`cy`)):(this.processOffsetCoord(e,e.evaluate(`from`,t),r.anchor,`from`),this.processOffsetCoord(e,e.evaluate(`to`,t),r.anchor,`to`));let i=e.evaluate(`clientData`,t),a=e=>{let t=i?.getAttribute(e);return t===`0`||t===`false`};return a(`fPrintsWithSheet`)&&(r.noPrint=!0),a(`fLocksWithSheet`)&&(r.unlocked=!0),n.movables||=[],n.movables.push(r),r}processAbsoluteCoord(e,t,n,r,i,a){if(!t)return;let o={x:0,y:0};return o.x=k(t.getAttribute(i)),o.y=k(t.getAttribute(a)),r===`from`?n.tl=o:n.br=o,n}processOffsetCoord(e,t,n,r){if(!t)return;let i={c:0,r:0,x:0,y:0};return e.evaluate(`col`,t)&&(i.c=parseInt(e.evaluate(`col`,t).textContent)),e.evaluate(`row`,t)&&(i.r=parseInt(e.evaluate(`row`,t).textContent)),e.evaluate(`colOff`,t)&&(i.x=k(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(i.y=k(e.evaluate(`rowOff`,t).textContent)),r===`from`?n.tl=i:n.br=i,n}},DrawingGraphicFrameVisitor:class extends H{visit(e,t,n){if(!t)return;if(this.isGroupContent(n)){if(e.getPath().includes(`Fallback`))return{};let{movable:r}=this.readMemberHeader(e,t,`graphicFrame`),i=e.evaluate(`xfrm`,t);if(i){C(i,r);let t=e.evaluate(`off`,i),n=e.evaluate(`ext`,i);r.anchor={tl:{x:k(t?.getAttribute(`x`)??null)??0,y:k(t?.getAttribute(`y`)??null)??0},br:{x:k(n?.getAttribute(`cx`)??null)??0,y:k(n?.getAttribute(`cy`)??null)??0}}}let a=this.readGraphic(e,t),o=a.type===`chart`?{...r.content.json,...a.json}:a.json;return r.content={...r.content,type:a.type,json:o},n.members.push(r),a.json}n=super.visit(e,t,n);let r=e.evaluate(`nvGraphicFramePr/cNvGraphicFramePr`,t);if(r){let t=e.evaluate(`graphicFrameLocks`,r);t&&t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`)}let i=this.readGraphic(e,t);return this.setContent(n,i),i}readGraphic(e,t){let n=e.evaluate(`graphic/graphicData`,t),r={type:`graphicFrame`,json:{}};if(!n)return r;let i=n.childNodes,a=i.length;for(let n=0;n<a;n++){let a=i.item(n);if(a.nodeType===1)try{let n=a.localName;n===`chart`?n=`chart`:n===`slicer`&&(n=`slicer`),r.type=n;let i=a.getAttribute(`r:id`);if(n===`chart`&&i){let n=this.readSourceId(e,t),a=e.readEmbeddedPart(i)??void 0,o;try{let t=a?.xml?_e(a.xml):null;o=t?.model,t?.lossy&&e.warn(`A chart states something its model does not; it is saved as it was until it is changed.`,{onceKey:`xlsx.chart.lossy`})}catch(t){e.warn(`A chart could not be read into the chart model; it is kept as its markup: ${t?.message??t}`,{onceKey:`xlsx.chart.model`})}r.json={sourceId:n,part:a,model:o}}else if(n===`slicer`){let n=this.readSourceId(e,t);n!==void 0&&(r.json={sourceId:n})}else i&&(r.json=e.getRef(i))}catch(t){e.warn(`Unable to read a graphic frame: ${t?.message??t}`,{onceKey:`xlsx.drawing.graphicFrame`})}}return r}},DrawingSpVisitor:X,DrawingPicVisitor:class extends H{visit(e,t,n){if(!t)return;if(this.isGroupContent(n)){if(e.getPath().includes(`Fallback`))return{};let{movable:r,content:i}=this.readMemberHeader(e,t,`picture`),a=this.readImage(e,t);return a?(this.readPictureDetails(e,t,a,r,i),n.members.push(r),i):{}}let r=super.visit(e,t,n),i=this.readImage(e,t);if(i===null)return;let a={},o=this.readSourceId(e,t);return o!==void 0&&(a.sourceId=o),this.readPictureDetails(e,t,i,r,a),this.setContent(r,{type:`picture`,json:a}),a}readPictureDetails(e,t,n,r,i){n?.resId!==void 0&&(i.resId=n.resId),n?.image&&(i.image=n.image);let a=t.getAttribute(`macro`);a&&(i.macro=a),t.hasAttribute(`fPublished`)&&(i.published=D(t.getAttribute(`fPublished`)));let o=e.evaluate(`nvPicPr/cNvPicPr`,t);if(o?.getAttribute){o.getAttribute(`preferRelativeResize`)===`0`&&(i.noRelativeResize=!0);let t=this.readLocks(e.evaluate(`picLocks`,o));t&&(i.locks=t),r.lockAspect=t?.noChangeAspect??!1}}readImage(e,t){let n=e.evaluate(`blipFill`,t),r=n?e.evaluate(`blip`,n):null;if(!r)return;if(!(r.getAttribute(`r:embed`)??r.getAttribute(`embed`)??r.getAttribute(`r:link`)??r.getAttribute(`link`)))return e.warn(`A picture names no image; it was not imported.`,{onceKey:`xlsx.drawing.picture.noRel`}),null;let{type:i,resId:a,...o}=new h().processImageFill(e,n);return!o.tile&&o.stretch&&Object.keys(o.stretch).length===0&&delete o.stretch,o.extLst&&De.test(o.extLst)&&delete o.extLst,{resId:a,image:Object.keys(o).length>0?o:void 0}}},DrawingGrpSpVisitor:class extends H{constructor(...e){super(...e),this._fills=new h}visit(e,t,n){if(!t)return;let r=this.isGroupContent(n),i,a;if(r){if(e.getPath().includes(`Fallback`))return{};let r=this.readMemberHeader(e,t,`group`);i=r.movable,a=r.content,n.members.push(i)}else{if(e.getPath().includes(`Fallback`)&&n.content)return{};i=super.visit(e,t,n),a={};let r=this.readSourceId(e,t);r!==void 0&&(a.sourceId=r),this.setContent(i,{type:`group`,json:a})}a.members=[];let o=e.evaluate(`nvGrpSpPr/cNvGrpSpPr/grpSpLocks`,t);o?.hasAttribute?.(`noChangeAspect`)&&(i.lockAspect=o.getAttribute(`noChangeAspect`)===`1`);let s=this.readLocks(o);s&&(a.locks=s);let c=e.evaluate(`grpSpPr`,t);if(c){let t=e.evaluate(`xfrm`,c);if(t){C(t,i),t.getAttribute(`flipH`)===`1`&&(i.flipH=!0),t.getAttribute(`flipV`)===`1`&&(i.flipV=!0);let n=Z(e,t,`off`,`ext`),o=Z(e,t,`chOff`,`chExt`)??n;o&&(a.childBounds=o),r&&n&&(i.anchor={tl:{x:n.x,y:n.y},br:{x:n.width,y:n.height}})}let n=this._fills.getFill(e,c);n&&Object.keys(n).length>0&&(a.fill=n);let o=this._fills.getEffects(e,c);o&&(a.effects=o);let s=e.evaluate(`scene3d`,c),l=s?e.serializeElement(s):null;l&&(a.scene3d=l);let u=e.evaluate(`extLst`,c),d=u?e.serializeElement(u):null;d&&(a.extLst={...a.extLst,properties:d})}return a}},DrawingCxnSpVisitor:class extends X{visit(e,t,n){if(t)return this.visitShape(e,t,n,`cxnSp`,`nvCxnSpPr/cNvCxnSpPr/cxnSpLocks`)}},MetadataVisitor:class{visit(e,t,n){let r=[],i=new Map,a={cells:[],values:[]},o=t.childNodes;for(let e=0;e<o.length;e++){let t=o.item(e);if(t.nodeType===1)switch(t.localName){case`metadataTypes`:this._parseMetadataTypes(t,r,i);break;case`futureMetadata`:this._attachFutureMetadata(t,i);break;case`cellMetadata`:this._resolveBlocks(t,r,a.cells);break;case`valueMetadata`:this._resolveBlocks(t,r,a.values)}}return n.metadata=a,a}_parseMetadataTypes(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1&&i.localName===`metadataType`){let e=this._parseMetadataType(i);t.push(e),n.set(e.name,e)}}}_parseMetadataType(e){let t={name:e.getAttribute(`name`)??``,_blocks:[]},n=e.getAttribute(`minSupportedVersion`);n!=null&&(t.minSupportedVersion=Number(n));for(let n of[`copy`,`pasteAll`,`pasteValues`,`merge`,`splitFirst`,`splitAll`,`rowColShift`,`clearFormats`,`clearComments`,`assign`,`coerce`,`cellMeta`,`adjust`,`trans`,`delete`,`edit`])e.getAttribute(n)===`1`&&(t[n]=!0);return t}_attachFutureMetadata(e,t){let n=e.getAttribute(`name`)??``,r=t.get(n);if(!r)return;let i=e.childNodes;for(let e=0;e<i.length;e++){let t=i.item(e);t.nodeType===1&&t.localName===`bk`&&r._blocks.push(this._parseFutureBlock(t))}}_parseFutureBlock(e){let t={},n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType!==1||r.localName!==`extLst`)continue;let i=r.childNodes;for(let e=0;e<i.length;e++){let n=i.item(e);if(n.nodeType!==1||n.localName!==`ext`)continue;let r=n.childNodes;for(let e=0;e<r.length;e++){let n=r.item(e);n.nodeType===1&&(n.localName===`dynamicArrayProperties`?(t.fDynamic=n.getAttribute(`fDynamic`)===`1`,t.fCollapsed=n.getAttribute(`fCollapsed`)===`1`):n.localName===`rvb`&&(t.richValueIndex=Number(n.getAttribute(`i`)??`0`)))}}}return t}_resolveBlocks(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);i.nodeType===1&&i.localName===`bk`&&n.push(this._resolveBlock(i,t))}}_resolveBlock(e,t){let n=new Map,r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType!==1||i.localName!==`rc`)continue;let a=Number(i.getAttribute(`t`)),o=Number(i.getAttribute(`v`)),s=t[a-1];if(!s)continue;let{_blocks:c,...l}=s,u={...l};for(let e of Object.keys(u))u[e]===void 0&&delete u[e];let d=c[o];d&&(d.fDynamic!==void 0&&(u.fDynamic=d.fDynamic,u.fCollapsed=d.fCollapsed??!1),d.richValueIndex!==void 0&&(u.richValueIndex=d.richValueIndex)),n.set(s.name,u)}return n}},FeaturePropertyBagVisitor:class{visit(e,t,n){let r=[],i=t.childNodes;for(let e=0;e<i.length;e++){let t=i.item(e);t.nodeType===1&&t.localName===`bag`&&r.push(this._readBag(t))}let a=[],o=r.find(e=>e.type===`XFComplements`)?.arrays.get(`MappedFeaturePropertyBags`)??[];for(let t=0;t<o.length;t++){let n=r[o[t]]?.ids.get(`XFControls`),i=n===void 0?void 0:r[n]?.ids.get(`CellControl`),s=i===void 0?void 0:r[i]?.type,c=s?Oe[s]:void 0;c||e.warn(`A cell format's feature '${s??`unknown`}' is not read; its cells keep their values.`),a.push(c?{type:c}:null)}let s={controls:a};return n.featurePropertyBag=s,s}_readBag(e){let t={type:e.getAttribute(`type`)??``,ids:new Map,arrays:new Map},n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType!==1)continue;let i=r.getAttribute(`k`)??``;if(r.localName===`bagId`){let e=parseInt(r.textContent??``,10);isNaN(e)||t.ids.set(i,e)}else if(r.localName===`a`){let e=[],n=r.childNodes;for(let t=0;t<n.length;t++){let r=n.item(t);if(r.nodeType!==1||r.localName!==`bagId`)continue;let i=parseInt(r.textContent??``,10);isNaN(i)||e.push(i)}t.arrays.set(i,e)}}return t}},CommentsVisitor:class{visit(e,t,n){if(!t)return;let r=[];this.processAuthors(e,e.evaluate(`authors`,t),r),r.length>0&&(n.authors=r);let i=[];return n.comments=i,i}processAuthors(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`author`){let e=t.firstChild;e&&e.nodeType===3&&n.push(e.textContent)}}}},CommentVisitor:class{visit(e,t,n){if(!t)return;let r=t.getAttribute(`ref`);if(!r)return;let i={content:``};if(t.hasAttribute(`authorId`)){let e=parseInt(t.getAttribute(`authorId`),10);isNaN(e)||(i.authorId=e)}return i.content=function(e){if(!e)return``;let t=[],n=!0,r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1){if(i.localName===`t`)t.push({text:i.textContent??``});else if(i.localName===`r`){let e={text:``},r=i.childNodes;for(let t=0;t<r.length;t++){let n=r.item(t);if(n.nodeType===1){if(n.localName===`t`)e.text+=n.textContent??``;else if(n.localName===`rPr`){let t=Ae(n);t&&(e.font=t)}}}e.font&&(n=!1),t.push(e)}}}return t.length===0?e.textContent??``:n?t.map(e=>e.text).join(``):{runs:t}}(e.evaluate(`text`,t)),n.push({r,v:i}),i}},ThreadedCommentsVisitor:class{visit(e,t,n){if(!t)return;let r=[];return n.comments=r,r}},ThreadedCommentVisitor:class{visit(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`id`,r,`id`,S);let i=t.getAttribute(`ref`);e.copyFromAttribute(t,`personId`,r,`personId`,S),e.copyFromAttribute(t,`parentId`,r,`parentId`,S);let a=t.getAttribute(`dT`);a&&(r.dt=function(e){let t=/^(.*T\d{2}:\d{2}:\d{2})(?:\.(\d+))?(Z|[+-]\d{2}:?\d{2})?$/i.exec(e.trim());if(!t)return e;let[,n,r,i]=t;return`${n}${r?`.${(r+`00`).substring(0,3)}`:``}${i??`Z`}`}(a)),t.hasAttribute(`done`)&&(r.done=D(t.getAttribute(`done`)));let o=function(e){let t,n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType!==1||r.localName!==`mentions`)continue;let i=r.childNodes;for(let e=0;e<i.length;e++){let n=i.item(e);if(n.nodeType!==1||n.localName!==`mention`)continue;let r=n.getAttribute(`mentionId`),a=n.getAttribute(`mentionpersonId`);if(!r||!a)continue;let o={id:S(r),personId:S(a)},s=parseInt(n.getAttribute(`startIndex`)??``,10);isNaN(s)||(o.startIndex=s);let c=parseInt(n.getAttribute(`length`)??``,10);isNaN(c)||(o.length=c),(t??=[]).push(o)}}return t}(t);return o&&(r.mentions=o),n.push({r:i,v:r}),r}},PersonListVisitor:class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`person`){let t={};e.copyFromAttribute(n,`id`,t,`id`,S),e.copyFromAttribute(n,`displayName`,t),e.copyFromAttribute(n,`userId`,t,`userId`,S),e.copyFromAttribute(n,`providerId`,t),r.push(t)}}return r.length>0&&(n.persons=r),r}}},je=class{constructor(e,t){this.path=e,this.visitor=t}},Me=class{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor(`Relationships`,new $.RelsVisitor),this.registerVisitor(`cp:coreProperties`,new $.CorePropertiesVisitor),this.registerVisitor(`Properties`,new $.AppPropertiesVisitor),this.registerVisitor(`spPr`,new $.ShapePropertiesVisitor),this.registerVisitor(`txBody`,new $.ShapeTextVisitor),this.registerVisitor(`txPr`,new $.TextPropertiesVisitor),this.registerVisitor(`a:theme`,new $.ThemeVisitor),this.registerVisitor(`a:theme`,new $.ClrSchemeVisitor,`themeElements/clrScheme`),this.registerVisitor(`a:theme`,new $.FontSchemeVisitor,`themeElements/fontScheme`),this.registerVisitor(`a:theme`,new $.FmtSchemeVisitor,`themeElements/fmtScheme`),this.registerVisitor(`a:theme`,new $.ObjectDefaultsVisitor,`objectDefaults`),this.registerVisitor(`autoFilter`,new $.AutoFilterVisitor),this.registerVisitor(`sortState`,new $.SortStateVisitor),this.registerVisitor(`s:workbook`,new $.WorkbookVisitor),this.registerVisitor(`styleSheet`,new $.SheetStyleVisitor),this.registerVisitor(`x14:table`,new $.TableX14Visitor),this.registerVisitor(`table`,new $.TableVisitor),this.registerVisitor(`externalLink`,new $.ExternalLinkVisitor),this.registerVisitor(`wsDr`,new $.DrawingVisitor),this.registerVisitor(`twoCellAnchor`,new $.DrawingAnchorVisitor),this.registerVisitor(`oneCellAnchor`,new $.DrawingAnchorVisitor),this.registerVisitor(`absoluteAnchor`,new $.DrawingAnchorVisitor),this.registerVisitor(`graphicFrame`,new $.DrawingGraphicFrameVisitor),this.registerVisitor(`sp`,new $.DrawingSpVisitor),this.registerVisitor(`grpSp`,new $.DrawingGrpSpVisitor),this.registerVisitor(`cxnSp`,new $.DrawingCxnSpVisitor),this.registerVisitor(`pic`,new $.DrawingPicVisitor),this.registerVisitor(`metadata`,new $.MetadataVisitor),this.registerVisitor(`FeaturePropertyBags`,new $.FeaturePropertyBagVisitor),this.registerVisitor(`comments`,new $.CommentsVisitor),this.registerVisitor(`comment`,new $.CommentVisitor),this.registerVisitor(`ThreadedComments`,new $.ThreadedCommentsVisitor),this.registerVisitor(`threadedComment`,new $.ThreadedCommentVisitor),this.registerVisitor(`threadedComment`,new $.TextPropertiesVisitor(`content`),`text`),this.registerVisitor(`personList`,new $.PersonListVisitor),this.registerVisitor(`slicerCacheDefinition`,new $.SlicerCacheDefinitionVisitor),this.registerVisitor(`slicers`,new $.SlicersVisitor),this.registerVisitor(`formControlPr`,new $.FormControlPrVisitor)}registerVisitor(e,t,n=null){e.indexOf(`:`)===-1&&(e=`*:`+e);let r=e.split(`:`),i=r.length>1?r[1]:r[0];if(!n)return this.visitorsByXmlTagName.set(i,t),void this.visitorsByXmlTagName.set(e,t);let a=this.scopedVisitorsByXmlTagName.get(i);a||(a=[],this.scopedVisitorsByXmlTagName.set(i,a),this.scopedVisitorsByXmlTagName.set(e,a)),a.push(new je(n,t))}parseDxf(t,n=``,r=e.EmptyObject){this.visitorParamsState||=new Map;let i=this.visitorParamsState,a=i.get(`processingDXFs`);i.set(`processingDXFs`,!0);try{let e=new z(null,this,`/dxf`,t,{},n,r),i={};return new $.SheetStyleVisitor().processDXF(e,t,i),i}finally{a===void 0?i.delete(`processingDXFs`):i.set(`processingDXFs`,a)}}getVisitorParamsState(){return this.visitorParamsState}transform(t,n,r=e.EmptyObject){let i=t.documentElement;this.visitorParamsState&&!r?.paramMap||(this.visitorParamsState=r?.paramMap??new Map);let a={},o=this.visitorsByXmlTagName.get(i.nodeName);if(o||=this.visitorsByXmlTagName.get(i.localName),!o)throw Error(`A visitor for the root element: '${i.nodeName}' or '${i.localName}' must be registered.`);let s=`/`+i.localName,c=new z(null,this,s,i,a,n,r),l=[];this._doWalk(o,c,l,i,a,n,r);let u=l.length;for(let e=0;e<u;e++){let t=l[e];try{t.visitor?.afterVisit?.(t.context,t.elemParent,t.jsonParent)}catch(e){t.context.warn(`Unable to finish reading '${t.context.getPath()}': ${e?.message??e}`,{onceKey:`xlsx.transform.afterVisit`})}}return a}_walkScoped(e,t,n,r,i,a,o){let s=this.scopedVisitorsByXmlTagName.get(e),c=s?s.length:0;for(let l=0;l<c;l++){let c=s[l],u=null;try{u=t.evaluate(c.path,r)}catch{t.warn(`Invalid path '${c.path}' for '${e}'.`,{onceKey:`xlsx.transform.invalidPath`})}if(!u)continue;let d=e=>{let s=e.localName,l=e.parentNode;for(;l&&l!==r;)s=l.localName+`/`+s,l=l.parentNode;let u=t.getPath()+`/`+s;if(c.visitor){let r=new z(t,this,u,t.getElemRoot(),t.getJsonRoot(),a,o);this._doWalk(c.visitor,r,n,e,i,a,o)}};if(u.length>0){let e=u,t=e.length;for(let n=0;n<t;n++)d(e.item(n))}else d(u)}}_doWalk(e,t,n,r,i,a,o){let s=null;e&&(n.push({visitor:e,context:t,elemParent:r,jsonParent:i}),s=e.visit(t,r,i)),s||=i;let c=r.localName;this._walkScoped(c,t,n,r,s,a,o);let l=this.visitorsByXmlTagName,u=t.getElemRoot(),d=t.getJsonRoot(),f=r.childNodes,p=f.length;for(let e=0;e<p;e++){let r=f.item(e);if(r.nodeType!==1)continue;let c=r,p=c.nodeName,m=l.get(p);m||=(p=c.localName,l.get(p));let h=t.getPath()+`/`+p,g=new z(t,this,h,u,d,a,o);this._doWalk(m,g,n,c,s??i,a,o)}return s}};export{Me as DOMTransformer,z as ExecutionContext,le as NumberUtils,N as VisitorUtils};
@@ -0,0 +1 @@
1
+ var e={FILTERXML:{s:`Returns specific data from XML content using the specified XPath.`,p:{xml:{d:`is a string in valid XML format.`},xpath:{d:`is a string in standard XPath format.`}}}};export{e as default};