@sheetxl/mcp 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/assets/{CNikOloX_losH8Nz.js → 1d-8AAcf1UmC2qIz.js} +1 -1
  2. package/assets/{C3c2PUtIo-aWbjw4.js → 30KXHiLfwl0cbsxL.js} +1 -1
  3. package/assets/{8mWHFnE0j-CaNsxr.js → 3o7I8loKRGynHrNq.js} +1 -1
  4. package/assets/{C1JeIUEWW-RL1Rnu.js → 648qV0v861jvyZWm.js} +1 -1
  5. package/assets/{P3Or6rEY-fHmQZbH.js → 7khlPnFFCrE8gnT_.js} +13 -13
  6. package/assets/{ByGn4tk2SE1MH_sZ.js → 8hUUTZ62hbxY0TOp.js} +2 -2
  7. package/assets/{CwzSgovxnBMrgLmJ.js → B1Vm5y0E-TPSYFya.js} +3 -3
  8. package/assets/{CEa6wNiDRZrans9S.js → B6ToyMcYe9lyaeDk.js} +3 -3
  9. package/assets/{qVBjd-c5B8neljc0.js → B6pS096VwbWaj1Zz.js} +2 -2
  10. package/assets/{BrHXHm2FNXsL53bo.js → B9V6AFTTnbPscv11.js} +2 -2
  11. package/assets/{CF1fqmS030ry2XQ0.js → BESu-5sZSIJqkrWN.js} +2 -2
  12. package/assets/{B5rrqMYFybo3oW9k.js → BHhPtFpb3YfV6_44.js} +21 -21
  13. package/assets/{CpoqmW4E7rFdkRpf.js → BMAAmO8LPIe4VJ77.js} +1 -1
  14. package/assets/{C1IE0F-y65XqEYRl.js → BMVu89mdcVSqJDDE.js} +1 -1
  15. package/assets/{Da0CtWhc7saaOdER.js → BRB5-fXJFU7Kq2wm.js} +352 -352
  16. package/assets/BRI3D42tlMkZdYb2.js +199 -0
  17. package/assets/{DOXj80NXiglJXsMZ.js → BVzogMoyaicBEKBk.js} +3 -3
  18. package/assets/{PvRzzufo1V8BuC-I.js → BWpLQNKC3n8bXJUk.js} +1 -1
  19. package/assets/{CS07BBUu6ZtXk4TZ.js → Baa8cmJsilboM0DW.js} +1 -1
  20. package/assets/{O3m_QwxIRXMPFTB8.js → BcDNXTGASDvptqc-.js} +1 -1
  21. package/assets/{knMcDWv3xN7yJBTT.js → Bme_PT3UqwTbGLWd.js} +1 -1
  22. package/assets/{pLM8Pxl1CscUdvMh.js → BnxajOeIasx1G3OB.js} +1 -1
  23. package/assets/{CFqF3aUKvOGFOK9O.js → BousX61zAjBfjlsV.js} +1 -1
  24. package/assets/{DF9WfdyjHuCpsEXh.js → Bp73VL7f5DEt88Cn.js} +35 -35
  25. package/assets/{DRy0AcTiSKQY3bih.js → BppAvnmuJbbYBQUy.js} +1 -1
  26. package/assets/{j4zqu8S2Be_yum7W.js → BtoBfR_4n1u37HmC.js} +1 -1
  27. package/assets/{BF0C-5gSMHWBXI_k.js → BuLAeGM4AvHCge4x.js} +1 -1
  28. package/assets/{DWr6GqsnMpLwSUno.js → Buxo11Ux7uxzoy_7.js} +2 -2
  29. package/assets/{pfa2CH5NQuzku6FP.js → BwTF2TRqzXsf0H1I.js} +2 -2
  30. package/assets/{CfBJzpZuy1o216iZ.js → BzCwrG3Zdv-Trzi_.js} +1 -1
  31. package/assets/{BgHOi7rAHLhztiz-.js → C00qhh0-m0B0JP9Y.js} +166 -166
  32. package/assets/{jNZ7exipVCGRPbzr.js → C5VvbPUAfrVKmXXs.js} +1 -1
  33. package/assets/{BVfjBXAMgo4u8Y72.js → C85xBYGjAzNmVNwL.js} +1 -1
  34. package/assets/{Dbi1_JHT_4u0nhwc.js → C880pTyOMof_fzPO.js} +1 -1
  35. package/assets/{BBF_CDIKB2NIXiHg.js → C88UXFOnR1Uc-nw2.js} +1 -1
  36. package/assets/{CRZMD-wS-944FnD_.js → C8G6iJz_vsgbNYq9.js} +4 -4
  37. package/assets/{CoSNTR-pg7BZAU7o.js → CAQgJMpje7ORQ5lt.js} +1 -1
  38. package/assets/CBSyNN4Fk5WsVStK.js +14 -0
  39. package/assets/{CY3Lmr-fgs6NqXRp.js → CCeqR45x9p-GG8Pi.js} +1 -1
  40. package/assets/{BqH4txhrgR2S-2ji.js → CEDsCeYCSlY7wYe1.js} +2 -2
  41. package/assets/{DvHZEP1wpb6549uf.js → CFWHwEc3dKMmNzUp.js} +406 -406
  42. package/assets/{8114GVvAL1oaiJLV.js → CK9LWUZdZ93t3GkS.js} +1 -1
  43. package/assets/{BPlrBhzIqyWK19E2.js → CL-BRusnISEAzebz.js} +606 -606
  44. package/assets/{Bfpf9b1s1bWyBXIw.js → CLvFlk5-KU2jnQ5r.js} +1 -1
  45. package/assets/{CX-LNahzNZRc78er.js → CUhCIQjymULgXquN.js} +1 -1
  46. package/assets/{BKGTzaNNBlRh7ua3.js → CboWvqCV0yix3-yP.js} +1 -1
  47. package/assets/{cl0C9YlF3Ds-lHps.js → Ci4AUhBajQMJs1Ty.js} +1 -1
  48. package/assets/{rlgXnCh6A88ozBRz.js → CkQT1G_6bvMixZ8e.js} +4 -4
  49. package/assets/{rzi2XAwlfy8BsGEa.js → CkqsYktaMF9p014y.js} +1 -1
  50. package/assets/{BuFb0lPxYlHccrD9.js → CkuL4Ed6oRGAhIS9.js} +1 -1
  51. package/assets/{Ban4yk1SYcz9Cs7n.js → Cm41HVr6Xyz53jHz.js} +1 -1
  52. package/assets/{BfB7Vq09p5uO-L88.js → CoY2sE2RG-Nd8TMR.js} +1 -1
  53. package/assets/{Cwe_kiigxAfceEK9.js → CuRvGO_2tG0PUhCM.js} +1 -1
  54. package/assets/{Dcw7GSCgw_dgsum7.js → CvqpsTll6ngbdHgx.js} +8672 -8642
  55. package/assets/{B3J6davzttys1e7l.js → Cvs9i2VUl7wXWZup.js} +3 -3
  56. package/assets/{DlARYdaCOVKiQzMH.js → Cy2uazuc6KpkbYg-.js} +1 -1
  57. package/assets/{2c1OYsVAy_w-ex-F.js → CybNjXi6cOFKyGuH.js} +1 -1
  58. package/assets/{BBZUslaSLC0vlZEb.js → CzPMiqbNDm6TDPGJ.js} +1 -1
  59. package/assets/{BBLuTiY3V4MpFphK.js → CzYXLEVIoCfQ1AMM.js} +193 -193
  60. package/assets/{BoE9cj92LVH2LLy0.js → D-BWtxIGXTCMLoio.js} +2 -2
  61. package/assets/{CRlLpD9cfhJ9Ov9L.js → D0Ly34TqieVSOIbh.js} +1 -1
  62. package/assets/{BloJ-e8xad1b_H7X.js → D0M0EWP28g5rQaei.js} +3 -3
  63. package/assets/{WC-THJfezYSFdiMF.js → D4NBYfzSZ3cU-3ao.js} +1 -1
  64. package/assets/{13QanvzRbNib7VHR.js → D4NcXlPRmR6NaoGS.js} +1 -1
  65. package/assets/{CDDtXZTG6nNFBQZP.js → D4jXxO1LUEQ6erA9.js} +1 -1
  66. package/assets/{CMd7aLIwOA7bxcZm.js → DAx-VOBmi1xAMhhX.js} +98 -98
  67. package/assets/{8hLtXHueDl7B_SEn.js → DBcXAdUaNGrlah12.js} +15 -15
  68. package/assets/{C8zzCf71C976X7SG.js → DFdAxnoXGn_8ge3l.js} +2 -2
  69. package/assets/{DZxHk5oKIVvu3iJR.js → DFjfZCMPfQfwC4cF.js} +580 -580
  70. package/assets/{YK80feN98r6GVZv5.js → DG0Dzgf1kAxN3AIk.js} +1 -1
  71. package/assets/{DQtnL5nOzSzVJhit.js → DGv-dTePYQ8_yif4.js} +42 -42
  72. package/assets/{gf6l-4XXMXtq8hpJ.js → DIaD0BL0JLTaJTS3.js} +5 -5
  73. package/assets/{CICMJpasl9o4FaZi.js → DIimDQiJDW-4lkZT.js} +1 -1
  74. package/assets/{CbkCnjWs7Fpj5iQY.js → DK8DWNMTOmCg6zAI.js} +8 -8
  75. package/assets/{q6advQx4x6PXvl0i.js → DKox8guOumZMOdq8.js} +37 -37
  76. package/assets/{DQ2vEDfVfsIGSmId.js → DMHiZKWwm6puHV6p.js} +1 -1
  77. package/assets/{CsPyLus3kh4QnahD.js → DMyq3L2ibjMlHuDa.js} +1 -1
  78. package/assets/{0WuReGsjIpidu0Cr.js → DOKXQpGyzXCoSLdJ.js} +1 -1
  79. package/assets/{ybnQoU8_KttlHjiy.js → DOXriXo-7WmTAKbN.js} +1 -1
  80. package/assets/{Sm1ouHLiXlCuQVKV.js → DRfsB4kS28fPXv6K.js} +96 -96
  81. package/assets/{BaZAIwIrqn1x69WH.js → DSmARJ0owmwmr2FA.js} +2 -2
  82. package/assets/{BlMUrEA8V2S2KH0D.js → DUM6h3BEreCilg32.js} +1 -1
  83. package/assets/{Bm-wDNSoT-3JD2bJ.js → DXp5V2__VY2opctz.js} +1 -1
  84. package/assets/{eExV3IoVMxYkv5GO.js → D_YBc6vHBL-ajwvB.js} +1 -1
  85. package/assets/{G489eYf-lt3D1riX.js → Dc8BQsPlwN6i6OU7.js} +1 -1
  86. package/assets/{BCdXK-2-AE6FAdRs.js → DcnNIdrilJHfl_CQ.js} +1 -1
  87. package/assets/{xGASRbzSVVKfEAh-.js → DdIufax_qSuWVGQK.js} +2 -2
  88. package/assets/{CCS6r_ru_-bq12nu.js → DeNqXaM_dHSswRuE.js} +1 -1
  89. package/assets/{BB39UJoWw8tjThqY.js → DfVHW5vbnRNXHrCi.js} +1 -1
  90. package/assets/{ov7L79VlksT4fw7T.js → Dfc9_XsqSeh48YeK.js} +11 -11
  91. package/assets/{CdbucPAmUkkc5pcM.js → DiXodb_hLvUDIGb6.js} +29 -29
  92. package/assets/{B-b7HyruDF2gdj3R.js → Dn531BWCDZ2noJix.js} +2 -2
  93. package/assets/{BfEmSaLbKgcjIIpn.js → DnAuLAqQLmAf9Gls.js} +2 -2
  94. package/assets/{BhxIJ8xdUxyMPJ_m.js → Do8K2GlFXIiMX9TB.js} +1 -1
  95. package/assets/{BTamKr78GfsihW1a.js → Dt8hWBnnqlpJOazW.js} +96 -96
  96. package/assets/{Dst0tyK__q2Q_AKk.js → DuBbSpdXZuAFvxpr.js} +1 -1
  97. package/assets/{DzYvbv5u7E2H7IoB.js → DvAq2cPI7-lfSn0x.js} +1 -1
  98. package/assets/{CI8Pu3ko8VzQYdRD.js → DzCZGtlg3pJO91l9.js} +1 -1
  99. package/assets/{B3lrS_GHkG6Mw5pN.js → DzRBnJpz972o277m.js} +1 -1
  100. package/assets/{g3TrQtFS0qJZeshT.js → EohzUi0uCnSF2q2D.js} +264 -264
  101. package/assets/{DXrX5tIZ1J5BhpFk.js → KSagTSkIvZSpUF1c.js} +4 -4
  102. package/assets/{DngX5ZuqqFGTp44B.js → LOFAyr5OoT3oZGMV.js} +1 -1
  103. package/assets/{DfuY8GdoSk8LxDFW.js → LbZNDu6C9XPMEXCN.js} +5 -5
  104. package/assets/{D31pY9r4JAFWw3E4.js → NwtEz6ZaVT8p8wOh.js} +1 -1
  105. package/assets/{hiKRbrdbpmJglbWC.js → PD_i17-cebq3-_Gn.js} +3 -3
  106. package/assets/{C2sDVxKGBNlTFg6y.js → Q-BvS_P_qM8EvP92.js} +1 -1
  107. package/assets/{C4C3Ot0xeo1O0wm5.js → YRKAYjRpPkjhxGSS.js} +1 -1
  108. package/assets/{C30apcFVvDHn2M4R.js → _-kNP8Q4FxBYPY4u.js} +4 -4
  109. package/assets/{BgN67gyTyx_xz2Ny.js → aEDyynzUuzMysLwT.js} +6 -6
  110. package/assets/{kThU6e6dkzEoaK6n.js → cTnKNFayqlXisspN.js} +2 -2
  111. package/assets/{DpwdC4SN_VYB9_ho.js → eEh1r_BS7Y0FXPqk.js} +1 -1
  112. package/assets/{CJoREr6-3iOl7iU_.js → g4vz4gc43eat7Hd2.js} +1 -1
  113. package/assets/{BR4Wpxs0eSlaoLOl.js → jUzhn1PeDLWXOuJO.js} +14 -14
  114. package/assets/{L42Y17f0HUEpfS6U.js → kIzQWtiHNHvh8HLF.js} +1 -1
  115. package/assets/{CJcyMzG19TOjqNHS.js → mIM-JksHd3Zl5INF.js} +1 -1
  116. package/assets/{BTB4fa2DU21pP7At.js → mirSoZ8QDsYUMjYu.js} +1 -1
  117. package/assets/{DOIpXsEXCaI-8VwJ.js → ooSNLnHLIYTBL5JD.js} +1 -1
  118. package/assets/{DRcmbp80jMRjxelW.js → tp75fiKc1r-jdPPN.js} +1 -1
  119. package/assets/{PAzPVx_0jajb_7cO.js → xltGcIbWkjqNtCty.js} +2 -2
  120. package/assets/{Cs1df4D35bBjqyvX.js → zbOvcGIPi-MDlJKE.js} +1 -1
  121. package/index.js +92 -92
  122. package/lib.js +1 -1
  123. package/licenses/dependencies.txt +66 -66
  124. package/package.json +17 -2
  125. package/screenshot-page/assets/{Da_VIghRFdNrmfZT.js → 37HIsN_8LEsOWyOO.js} +1 -1
  126. package/screenshot-page/assets/{DaqAdr-mtpVZMOS8.js → 4I9gFq1IdumstDHq.js} +2 -2
  127. package/screenshot-page/assets/{BrEXXxB9tAI5mmZP.js → 6j6xGn4csAcfcFMQ.js} +1 -1
  128. package/screenshot-page/assets/{hB5riGkPy0wXVIig.js → 7N8xCpYVBHFqfoAg.js} +1 -1
  129. package/screenshot-page/assets/{D8EmNst-H2v0eWcf.js → 97qOXULGlJqaTCIL.js} +1 -1
  130. package/screenshot-page/assets/B6dFVtErFelDd62E.js +2 -0
  131. package/screenshot-page/assets/{d8BvDCByceUNvHp7.js → B6i6Xi9OafEvNRAm.js} +2 -2
  132. package/screenshot-page/assets/B7uNU6WWjJaco6ho.js +1 -0
  133. package/screenshot-page/assets/BGoGxqwlpgXt8CMd.js +4 -0
  134. package/screenshot-page/assets/{0P0DnZolMnjPhiea.js → BXss42mPBQnnt0Rh.js} +1 -1
  135. package/screenshot-page/assets/{CJAgr6wyQGYAd3ZV.js → BbhwsC3eMdzP2PeH.js} +1 -1
  136. package/screenshot-page/assets/Beaq1eo3pAjlfcba.js +1 -0
  137. package/screenshot-page/assets/Bf3eJLndwyxuVR-_.js +1 -0
  138. package/screenshot-page/assets/{BwYQTcPRDDYIeAA5.js → BqJRJVrx7XkIPgo7.js} +6 -6
  139. package/screenshot-page/assets/{CX-ITg5RXdV2cefd.js → C-qNpEaGV5amWPml.js} +5 -5
  140. package/screenshot-page/assets/{BOF6KOmT8mH_NQnA.js → CB-bJVu0a2zAElNH.js} +1 -1
  141. package/screenshot-page/assets/CGvyz3VVFiHbYHM0.js +3 -0
  142. package/screenshot-page/assets/{DTAKTGn53yF_B621.js → CKbXhNyUiI18JA_C.js} +1 -1
  143. package/screenshot-page/assets/{DOsZiE9rOdS_Mm2Q.js → CVEUOXnI1pTa-GKp.js} +1 -1
  144. package/screenshot-page/assets/C_RHXqyejSa8gd9x.js +1 -0
  145. package/screenshot-page/assets/{Bt7fKk5ZupUuo_xD.js → CbTBuiF_Jn72hoj1.js} +2 -2
  146. package/screenshot-page/assets/{C-2hBFk27roWkIrQ.js → CraI-__UdtaIvbNn.js} +1 -1
  147. package/screenshot-page/assets/{Cg9eIWL8fPmeZFHG.js → Cyu6g5rRtEGOHaQS.js} +4 -4
  148. package/screenshot-page/assets/{CL_hAngRQwm_KGdR.js → D1KqgZwk5MjDhk5i.js} +1 -1
  149. package/screenshot-page/assets/{QVGvXAvlw1c8vZjy.js → DGr8M07ioDfKXLHD.js} +3 -3
  150. package/screenshot-page/assets/{BAzHRU12l2vyyXq-.js → DMbhlzvflyxF5Clt.js} +4 -4
  151. package/screenshot-page/assets/{BzI5CCx73aXausKb.js → DQxI7bShZ7TKpL0V.js} +8 -8
  152. package/screenshot-page/assets/{BpJaTpbR_CQzXj9M.js → DSB_SKy2lKI_VGik.js} +1 -1
  153. package/screenshot-page/assets/{jFfcyGJ9xruiOUyS.js → DWkISZdhmV2PBk-k.js} +1 -1
  154. package/screenshot-page/assets/{BhHceo22V3IBfap0.js → DfmEx82r_NbillHk.js} +1 -1
  155. package/screenshot-page/assets/{Cq1EzIAt4dHBkzfP.js → DsZcJUWTmqcp2aI-.js} +1 -1
  156. package/screenshot-page/assets/{jteb4n23QwBT9m_4.js → DszZ1A807YzTc0ek.js} +1 -1
  157. package/screenshot-page/assets/{DJebrQ5mu8uxpX3b.js → DwHci99xcnRTEcv5.js} +2 -2
  158. package/screenshot-page/assets/Ojp2B5i2-AJeD4mV.js +1 -0
  159. package/screenshot-page/assets/{CGNsyKbDXXz9qMa2.js → PRYQO22Y2LgMUg77.js} +1 -1
  160. package/screenshot-page/assets/{CZaKvnrRdlLj1_X8.js → RHcyaEfxJB7O3alo.js} +1 -1
  161. package/screenshot-page/assets/{-HdF7KAN8PKqrASL.js → TA9YjsgX-_8fRRdZ.js} +1 -1
  162. package/screenshot-page/assets/{ByyC3p23DsLAbUpr.js → cUY9GpQPVTLSprfW.js} +1 -1
  163. package/screenshot-page/assets/{Bne-AygyF1USkPAy.js → m48xmzGgNgwXSEgQ.js} +1 -1
  164. package/screenshot-page/assets/{DhnaoxNYwMobAVP6.js → mVfCz3bXIjqEVPEo.js} +1 -1
  165. package/screenshot-page/assets/{B-E9Dzx1wh9RA2yC.js → putBhJCWgRos_Fmk.js} +1 -1
  166. package/screenshot-page/assets/{BfkbiKKbYlPpRZqZ.js → uyInkZWFnMwX-BSC.js} +1 -1
  167. package/screenshot-page/assets/{CAKBmg6tXRtjEWgb.js → xiJthTXsasYVOHWE.js} +2 -2
  168. package/screenshot-page/index.html +8 -8
  169. package/assets/BOa1dD_9H3g65WbP.js +0 -14
  170. package/assets/DCWHNfq5qCxvALwe.js +0 -199
  171. package/screenshot-page/assets/B39YZkEvc1U8ZQ8H.js +0 -2
  172. package/screenshot-page/assets/B8Dy_WA9RlWuvMqF.js +0 -4
  173. package/screenshot-page/assets/CGZYePkVGI5DPBBY.js +0 -1
  174. package/screenshot-page/assets/CWA4xGjOeBuxJOzW.js +0 -3
  175. package/screenshot-page/assets/D2TibFqUBAPLcu_2.js +0 -1
  176. package/screenshot-page/assets/DEy3e1rY-XMdI309.js +0 -1
  177. package/screenshot-page/assets/eR9_DaySoB72PvMo.js +0 -1
  178. package/screenshot-page/assets/hHvAGynpTvAb97GX.js +0 -1
@@ -1 +1 @@
1
- import{I as e}from"./D4RZZdlItfrgQHcE.js";import{G as t,I as n,Pt as r,Q as i,Tt as a,b as o,vt as s}from"./COL9dj40ytErlGak.js";import{c,i as l}from"./CQukCzhuewMuFOlO.js";import{Gt as u,Kn as d,kn as f,ln as p,u as m}from"./BwYQTcPRDDYIeAA5.js";import{$n as h,An as g,At as ee,Bt as te,D as _,Er as ne,Fn as v,Ft as re,Hr as ie,Nr as ae,Pr as oe,Pt as y,Q as b,Qn as x,R as se,S as ce,Un as le,Vr as S,Xn as C,Zt as w,_ as ue,_r as de,ar as T,at as E,b as D,c as fe,en as pe,ft as O,ht as me,j as k,k as he,mn as ge,on as A,or as _e,q as j,qt as M,rt as N,tn as P,wn as F,wr as I,zr as L}from"./BAzHRU12l2vyyXq-.js";import{a as ve,c as ye,o as be,s as R,t as xe}from"./DOsZiE9rOdS_Mm2Q.js";import"./CWA4xGjOeBuxJOzW.js";var Se=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()}},Ce=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,we=e=>{let t=parseInt(e);return isNaN(t)?null:t},Te=e=>{let t=parseFloat(e);return isNaN(t)?null:t},Ee=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)??Ee}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 Se(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 Ce}get INT_COPY(){return we}get FLOAT_COPY(){return Te}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},De=[[`fillRef`,`fill`],[`lnRef`,`stroke`],[`effectRef`,`effect`]],V=(e,t)=>{let n=new O,r={};for(let[i,a]of De){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=j(e,r));let i=e.evaluate(`hlinkHover`,t);i&&(n.hoverHyperlink=j(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,n,r){let i=e.evaluate(`style`,n);if(!i)return void(r.style=null);let a=V(e,i),o=t.withoutDefaultStyleRefs({...r,style:a});o&&(r.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]=A(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}},Oe=[[`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=_(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,t,r){e.getValAttrAsBoolean(`b`,t,!0)&&(r.weight=700),e.getValAttrAsBoolean(`i`,t,!0)&&(r.style=n.Style.Italic),e.getValAttrAsBoolean(`strike`,t,!0)&&(r.strike=k(!0));let i=e.evaluate(`u`,t);if(i){let e=i.getAttribute(`val`);r.underline=S(e)}let a=E(e.evaluate(`vertAlign`,t)?.getAttribute(`val`));a!==void 0&&(r.baseline=a),oe(e,t,r,`sz`,`size`);let o=e.evaluate(`color`,t);this.processDataBarColor(e,o,r,`color`),r.color||=`auto`,I(e,t,r,`name`,`family`),I(e,t,r,`rFont`,`family`);let s=e.evaluate(`family`,t);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`]}}v(r,e.evaluate(`scheme`,t)?.getAttribute(`val`)),L(e,t,r,`shadow`,`shadow`,!0),L(e,t,r,`outline`,`outline`,!0);for(let n of[`condense`,`extend`]){let i=b(n,!!e.getValAttrAsBoolean(n,t,!0));i!==void 0&&(r.letterSpacing=i)}return P(e,t,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,n,r){let a={type:i.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 n[r]=a,n}processGradientFill(e,t,n){if(!t)return;n.type=i.Type.Gradient;let r=[];n.stops=r;let a=t.getAttribute(`type`);a&&(n.gradientType=a);let o=t.hasAttribute(`degree`)?parseFloat(t.getAttribute(`degree`)):0;(o+90)%360!=0&&(n.angle=(o+90)%360),(t.hasAttribute(`left`)||t.hasAttribute(`top`)||t.hasAttribute(`right`)||t.hasAttribute(`bottom`))&&(n.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={};r.push(t),t.offset=parseFloat(n.getAttribute(`position`)??``);let i=e.evaluate(`color`,n);this.processDataBarColor(e,i,t,`color`)}}return n}processPatternFill(e,t,n){if(!t)return;let r=e.getVisitorParamsState().get(`processingDXFs`),a=t.getAttribute(`patternType`)||(r?i.BuiltInSheetPattern.Solid:i.BuiltInSheetPattern.None);if(a===i.BuiltInSheetPattern.None)return{none:!0};n.type=i.Type.Pattern,a&&(n.patternType=a);let o=`foreground`,s=`background`,c=n.patternType===i.BuiltInSheetPattern.Solid&&r;if(c){let e=o;o=s,s=e}let l=e.evaluate(`fgColor`,t);this.processDataBarColor(e,l,n,o,`dk1`);let u=e.evaluate(`bgColor`,t);return this.processDataBarColor(e,u,n,s,`lt1`),c&&(n.foreground||=`lt1`,n.background||=`dk1`),n}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,i,a){if(!t)return;let o={};this.processBorderStroke(e,t,o,r.Edge.Left),this.processBorderStroke(e,t,o,r.Edge.Right),a?(o.right||o.left)&&(o.vertical=o.right?{...o.right}:{...o.left}):this.processBorderStroke(e,t,o,r.Edge.Vertical),this.processBorderStroke(e,t,o,r.Edge.Top),this.processBorderStroke(e,t,o,r.Edge.Bottom),a?(o.bottom||o.top)&&(o.horizontal=o.bottom?{...o.bottom}:{...o.top}):this.processBorderStroke(e,t,o,r.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[i]=o,n}processBorderStroke(e,t,n,i){if(!t)return;let a=e.evaluate(i,t);if(!a)return;let o={};a.hasAttribute(`style`)?o.style=a.getAttribute(`style`):e.getVisitorParamsState().get(`processingDXFs`)&&(o.style=r.StrokeStyle.None);let s=e.evaluate(`color`,a);return s&&this.processDataBarColor(e,s,o,`color`),Object.keys(o).length>0?n[i]=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},ke=new Set(Object.values(m.ElementType).filter(e=>e!==m.ElementType.WholeTable&&e!==m.ElementType.HeaderRow)),Ae={auto:`auto`,autoNoTable:`automaticExceptTables`,manual:`manual`},J=[`tableId`,`columnId`,`cacheName`,`cachePath`,`sourceName`,`sortOrder`,`customListSort`,`crossFilter`,`pivotTables`,`pivotCacheId`,`pivotBody`,`tabular`,`pivotData`,`showMissing`],je=new Set([`name`,`xr10:uid`,`cache`,`caption`]),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=h[r];if(this.isGroupContent(n)){if(e.getPath().includes(`Fallback`))return{};let{movable:s,content:c}=this.readMemberHeader(e,t,`shape`);a!==o.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`)&&(s.lockAspect=l.getAttribute(`noChangeAspect`)===`1`);let u=this.readTwinOf(e,t);return u!==void 0&&Object.assign(c,{twinOf:u}),n.members.push(s),c}if(e.getPath().includes(`Fallback`)&&n.content){let r=n.content.json;if(n.content.type===`shape`&&r&&(r.type??o.Type.Shape)===a){let n=e.evaluate(`txBody`,t),i=n?new x().readTextBody(e,n):null;i&&me(i)!==``&&(r.text=i)}return{}}n=super.visit(e,t,n);let s=e.evaluate(i,t);s?.hasAttribute?.(`noChangeAspect`)&&(n.lockAspect=s.getAttribute(`noChangeAspect`)===`1`);let c=a===o.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=A(t.getAttribute(`fLocksText`))),t.hasAttribute(`fPublished`)&&(i.published=A(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))}}},Me=/^<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:w(i?.getAttribute(`x`)??null)??0,y:w(i?.getAttribute(`y`)??null)??0,width:w(a?.getAttribute(`cx`)??null)??0,height:w(a?.getAttribute(`cy`)??null)??0}:null},Ne={Checkbox:`checkbox`},Q=e=>{let t=e.getAttribute(`val`);return t!==`0`&&t!==`false`},Pe={1:`serif`,2:`sans-serif`,3:`monospace`,4:`cursive`,5:`fantasy`};function Fe(e){let t={},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`:t.weight=Q(i)?700:400;break;case`i`:t.style=Q(i)?n.Style.Italic:n.Style.Normal;break;case`strike`:t.strike=k(Q(i));break;case`outline`:t.outline=Q(i);break;case`shadow`:t.shadow=Q(i);break;case`condense`:case`extend`:{let e=b(i.localName,Q(i));e!==void 0&&(t.letterSpacing=e);break}case`u`:t.underline=S(i.getAttribute(`val`));break;case`vertAlign`:{let e=E(i.getAttribute(`val`));e!==void 0&&(t.baseline=e);break}case`sz`:{let e=parseFloat(i.getAttribute(`val`)??``);isNaN(e)||(t.size=e);break}case`rFont`:{let e=i.getAttribute(`val`);e&&(t.family=e);break}case`family`:{let e=Pe[i.getAttribute(`val`)??``];e&&(t.fallbacks=[e]);break}case`charset`:{let e=parseInt(i.getAttribute(`val`)??``,10);isNaN(e)||(t.charset=e);break}case`scheme`:v(t,i.getAttribute(`val`));break;case`color`:{let e=i.getAttribute(`rgb`);if(e&&!i.hasAttribute(`theme`)){t.color=`#`+(e.length===8?e.substring(2):e).toUpperCase();break}let n=_(e=>i.getAttribute(e));n&&(t.color=n);break}}}return Object.keys(t).length>0?t: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:y,TextPropertiesVisitor:_e,ShapeTextVisitor:x,ThemeVisitor:class{visit(e,t,n){n.name=t.getAttribute(`name`),n.objectDefaults={};let r=B(t,`custClrLst`)[0];if(r){let t=new O,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 O{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 Oe){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 y().visit(e,r,n);let i=new x().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 O{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:i.Type.None};case`solidFill`:{let n=this.processAdjColor(e,t);return n?{type:i.Type.Solid,color:n}: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:d.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 pe({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?d.BuiltInOperatorNames.And:d.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]:ae(a)}processDynamicFilter(e,t){return ge(t.getAttribute(`type`),t.getAttribute(`val`),t.getAttribute(`maxVal`))}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:d.BuiltInOperatorNames.InSet,param:n};r.selector=d.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:d.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:d.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`||g(r.getAttribute(`uri`))!==g(`{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=A(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=A(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=A(t.getAttribute(`caseSensitive`))?u.CaseSensitiveOptions:u.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`)&&A(t.getAttribute(`columnSort`))&&(o.axis=c.Axis.Column);let s=p.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=p.fastStringToRange(f);o.extent={range:ee(e,s),sorts:d.map(t=>ue(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=p.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=A(t.getAttribute(`descending`)));let s=ce(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,n){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let a={fills:{},fonts:{},borders:{}},o=e.evaluate(`fonts`,t);this.processFonts(e,o,a.fonts);let s=a.fonts[this.normalFontId(e,t)],c={declared:[`1`,`true`].includes(o?.getAttribute(`x14ac:knownFonts`)??``),normalIsThemeFont:fe(s?.family),faces:T(Object.values(a.fonts).map(e=>({...e,family:N(e?.family,e?.fallbacks,null,!1).name})))};e.getVisitorParamsState().set(le,c),s&&e.getVisitorParamsState().set(`defaultFont`,s),this.processFills(e,e.evaluate(`fills`,t),a.fills),this.processBorders(e,e.evaluate(`borders`,t),a.borders,!0),a.fills[0]={type:i.Type.None},a.fills[1]={type:i.Type.Pattern,patternType:i.BuiltInSheetPattern.Gray125},a.borders[0]={bottom:{style:r.StrokeStyle.None},left:{style:r.StrokeStyle.None},right:{style:r.StrokeStyle.None},top:{style:r.StrokeStyle.None}};let l=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),l,a,null,!1);let u=new Map;if(l.length>0){let r=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),r,l,u),n.named=r}let d=[];this.processXFs(e,e.evaluate(`cellXfs`,t),d,a,u),Object.keys(d).length>0&&(n.direct=d);let f=this.collectHiddenXfs(e.evaluate(`cellXfs`,t));f.size>0&&e.getVisitorParamsState().set(`hiddenXfs`,f);let p=this.collectPivotButtonXfs(e.evaluate(`cellXfs`,t));p.size>0&&e.getVisitorParamsState().set(`pivotButtonXfs`,p);let m=this.collectXfComplements(e.evaluate(`cellXfs`,t));m.size>0&&e.getVisitorParamsState().set(`xfComplements`,m);let h=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),h),this.processTableStyles(e,e.evaluate(`tableStyles`,t),n,h),this.processSlicerStyles(e,e.evaluate(`extLst`,t),n),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),n),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),n),n}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,r,i,o){if(!t)return;let s=t.getAttribute(`xfId`);if(s&&i){let e=i.get(parseInt(s));e&&e!==a.BuiltInName.Normal&&(n.named=e)}let c=e=>!(!o&&t.hasAttribute(e))||A(t.getAttribute(e)),l=e=>!o||t.hasAttribute(e)&&A(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=r.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=r.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=r.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=A(t.getAttribute(`quotePrefix`)??``);d&&(n.quotePrefix=d)}processAlignment(e,t,n){let r={};if(r.horizontal=t?.hasAttribute(`horizontal`)?t.getAttribute(`horizontal`):s.HorizontalAlignment.General,r.vertical=t?.hasAttribute(`vertical`)?t.getAttribute(`vertical`):s.VerticalAlignment.Bottom,r.indent=t?.hasAttribute(`indent`)?parseInt(t.getAttribute(`indent`)):0,r.relativeIndent=t?.hasAttribute(`relativeIndent`)?parseInt(t.getAttribute(`relativeIndent`)):0,r.overflow=A(t?.getAttribute(`wrapText`)??``)?s.Overflow.Wrap:s.Overflow.Visible,A(t?.getAttribute(`shrinkToFit`)??``)&&(r.overflow=s.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=A(t.getAttribute(`justifyLastLine`)));let i=t?.getAttribute(`readingOrder`);return i&&(i===`0`?r.readingDirection=s.ReadingDirection.Auto:i===`1`?r.readingDirection=s.ReadingDirection.LeftToRight:i===`2`?r.readingDirection=s.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`&&A(n.getAttribute(`hidden`)??``)&&t.add(r)}r++}return t}collectPivotButtonXfs(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);i.nodeType===1&&i.localName===`xf`&&(A(i.getAttribute(`pivotButton`)??``)&&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&&!A(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||!ke.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=A(t.getAttribute(`table`))),o.pivot=!t.hasAttribute(`pivot`)||A(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,r,i){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=a.builtInNameFromId(parseInt(s));e!==void 0&&(c=e)}if(i.set(e,c),!r[e])continue;let l={name:c,style:r[e]};t.getAttribute(`hidden`)&&(l.hidden=A(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(l.iLevel=parseInt(t.getAttribute(`iLevel`))),s!==null&&A(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 se)r[e.key]=re(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=>Ae[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?ie(e.getRelationships().get(i)?.type):null;if(a){let t=e.readEmbeddedPart(i);if(t?.xml){let e={part:t},i=te(t.xml),o=i?_(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=e.evaluate(`workbookPr`,t.parentNode)?.getAttribute?.(`date1904`),a=i===`1`||i===`true`,o=C(e.getVisitorParamsState().get(`numFmts`),void 0),s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType!==1||n.localName!==`pivotCache`)continue;let i=parseInt(n.getAttribute(`cacheId`)??``,10),c=n.getAttribute(`r:id`);if(isNaN(i)||!c)continue;let l=e.readEmbeddedPart(c);if(!l)continue;let u=R(l,a,e=>o.numberFormat(e)),d=!u&&l.xml?ne(l.xml,o):void 0,f=!u&&l.xml?be(l.xml):void 0;r.push({cacheId:i,part:l,...d?{partFormats:d}:{},...f?{source:f}:{},...u})}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 ve)e.copyFromAttribute(t,n,o);for(let e of ye){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){if(!t)return;e.copyFromAttribute(t,`date1904`,n,`date1904`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`codeName`,n,`codeName`),e.copyFromAttribute(t,`updateLinks`,n,`updateLinks`);let r=t.getAttribute(`hidePivotFieldList`);r!==`1`&&r!==`true`||(n.hiddenPivotFieldList=!0)}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=p.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):(this.processPivot(e,t,n),n)}processPivot(e,t,n){let r=[],i=``,a=t.childNodes;for(let t=0;t<a.length;t++){let o=a.item(t);if(o.nodeType!==1)continue;if(o.localName===`pivotTables`){let e=o.childNodes;for(let t=0;t<e.length;t++){let n=e.item(t);n.nodeType===1&&n.localName===`pivotTable`&&r.push({tabId:n.getAttribute(`tabId`)??``,name:n.getAttribute(`name`)??``})}continue}let s=o.getAttribute(`pivotCacheId`);if(s&&(n.pivotCacheId=s),o.localName===`state`||o.localName===`timelinePivotFilter`){n.tabular=!0,n.pivotData=(n.pivotData??``)+(e.serializeElement(o)??``);continue}if(o.localName===`data`){let t=null,r=o.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType!==1)continue;let a=i.getAttribute(`pivotCacheId`);a&&(n.pivotCacheId=a),i.localName===`tabular`&&(t=i)}if(t){n.tabular=!0,e.copyFromAttribute(t,`sortOrder`,n),e.copyFromAttribute(t,`customListSort`,n,`customListSort`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`crossFilter`,n),e.copyFromAttribute(t,`showMissing`,n,`showMissing`,e.BOOLEAN_COPY),n.pivotData=e.serializeElement(o)??void 0;continue}}let c=e.serializeElement(o);if(c===null)return;i+=c}n.pivotTables=r,n.pivotBody=i}},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)}},TimelinesVisitor:class{visit(e,t,n){let r=n.slicers;r||(r={},n.slicers=r);let i=t.childNodes;for(let t=0;t<i.length;t++){let n=i.item(t);n.nodeType===1&&n.localName===`timeline`&&this.processTimeline(e,n,r)}return r}processTimeline(e,t,n){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);let s={};for(let e=0;e<t.attributes.length;e++){let n=t.attributes.item(e);je.has(n.name)||n.name.startsWith(`xmlns`)||(s[n.name]=n.value)}r.timelineAttributes=s;let c=``,l=t.childNodes;for(let t=0;t<l.length;t++){let n=l.item(t);n.nodeType===1&&(c+=e.serializeElement(n)??``)}r.timelineBody=c}},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=he(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=w(t.getAttribute(i)),o.y=w(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=w(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(i.y=w(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){M(i,r);let t=e.evaluate(`off`,i),n=e.evaluate(`ext`,i);r.anchor={tl:{x:w(t?.getAttribute(`x`)??null)??0,y:w(t?.getAttribute(`y`)??null)??0},br:{x:w(n?.getAttribute(`cx`)??null)??0,y:w(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!==`timeslicer`||(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?xe(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=A(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 O().processImageFill(e,n);return!o.tile&&o.stretch&&Object.keys(o.stretch).length===0&&delete o.stretch,o.extLst&&Me.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 O}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){M(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?Ne[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=Fe(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`,D);let i=t.getAttribute(`ref`);e.copyFromAttribute(t,`personId`,r,`personId`,D),e.copyFromAttribute(t,`parentId`,r,`parentId`,D);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=A(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:D(r),personId:D(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`,D),e.copyFromAttribute(n,`displayName`,t),e.copyFromAttribute(n,`userId`,t,`userId`,D),e.copyFromAttribute(n,`providerId`,t),r.push(t)}}return r.length>0&&(n.persons=r),r}}},Ie=class{constructor(e,t){this.path=e,this.visitor=t}},Le=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(`timelineCacheDefinition`,new $.SlicerCacheDefinitionVisitor),this.registerVisitor(`timelines`,new $.TimelinesVisitor),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 Ie(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{Le as DOMTransformer,z as ExecutionContext,de as NumberUtils,F as VisitorUtils};
1
+ import{I as e}from"./D4RZZdlItfrgQHcE.js";import{G as t,I as n,Pt as r,Q as i,Tt as a,b as o,vt as s}from"./COL9dj40ytErlGak.js";import{c,i as l}from"./CQukCzhuewMuFOlO.js";import{Gn as u,Gt as d,On as f,cn as p,u as m}from"./BqJRJVrx7XkIPgo7.js";import{$n as h,An as g,At as ee,Bt as te,D as _,Er as ne,Fn as v,Ft as re,Hr as ie,Nr as ae,Pr as oe,Pt as y,Q as b,Qn as x,R as se,S as ce,Un as le,Vr as S,Xn as C,Zt as w,_ as ue,_r as de,ar as T,at as E,b as D,c as fe,en as pe,ft as O,ht as me,j as k,k as he,mn as ge,on as A,or as _e,q as j,qt as M,rt as N,tn as P,wn as F,wr as I,zr as L}from"./DMbhlzvflyxF5Clt.js";import{a as ve,c as ye,o as be,s as R,t as xe}from"./CVEUOXnI1pTa-GKp.js";import"./CGvyz3VVFiHbYHM0.js";var Se=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()}},Ce=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,we=e=>{let t=parseInt(e);return isNaN(t)?null:t},Te=e=>{let t=parseFloat(e);return isNaN(t)?null:t},Ee=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)??Ee}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 Se(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 Ce}get INT_COPY(){return we}get FLOAT_COPY(){return Te}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},De=[[`fillRef`,`fill`],[`lnRef`,`stroke`],[`effectRef`,`effect`]],V=(e,t)=>{let n=new O,r={};for(let[i,a]of De){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=j(e,r));let i=e.evaluate(`hlinkHover`,t);i&&(n.hoverHyperlink=j(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,n,r){let i=e.evaluate(`style`,n);if(!i)return void(r.style=null);let a=V(e,i),o=t.withoutDefaultStyleRefs({...r,style:a});o&&(r.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]=A(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}},Oe=[[`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=_(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,t,r){e.getValAttrAsBoolean(`b`,t,!0)&&(r.weight=700),e.getValAttrAsBoolean(`i`,t,!0)&&(r.style=n.Style.Italic),e.getValAttrAsBoolean(`strike`,t,!0)&&(r.strike=k(!0));let i=e.evaluate(`u`,t);if(i){let e=i.getAttribute(`val`);r.underline=S(e)}let a=E(e.evaluate(`vertAlign`,t)?.getAttribute(`val`));a!==void 0&&(r.baseline=a),oe(e,t,r,`sz`,`size`);let o=e.evaluate(`color`,t);this.processDataBarColor(e,o,r,`color`),r.color||=`auto`,I(e,t,r,`name`,`family`),I(e,t,r,`rFont`,`family`);let s=e.evaluate(`family`,t);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`]}}v(r,e.evaluate(`scheme`,t)?.getAttribute(`val`)),L(e,t,r,`shadow`,`shadow`,!0),L(e,t,r,`outline`,`outline`,!0);for(let n of[`condense`,`extend`]){let i=b(n,!!e.getValAttrAsBoolean(n,t,!0));i!==void 0&&(r.letterSpacing=i)}return P(e,t,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,n,r){let a={type:i.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 n[r]=a,n}processGradientFill(e,t,n){if(!t)return;n.type=i.Type.Gradient;let r=[];n.stops=r;let a=t.getAttribute(`type`);a&&(n.gradientType=a);let o=t.hasAttribute(`degree`)?parseFloat(t.getAttribute(`degree`)):0;(o+90)%360!=0&&(n.angle=(o+90)%360),(t.hasAttribute(`left`)||t.hasAttribute(`top`)||t.hasAttribute(`right`)||t.hasAttribute(`bottom`))&&(n.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={};r.push(t),t.offset=parseFloat(n.getAttribute(`position`)??``);let i=e.evaluate(`color`,n);this.processDataBarColor(e,i,t,`color`)}}return n}processPatternFill(e,t,n){if(!t)return;let r=e.getVisitorParamsState().get(`processingDXFs`),a=t.getAttribute(`patternType`)||(r?i.BuiltInSheetPattern.Solid:i.BuiltInSheetPattern.None);if(a===i.BuiltInSheetPattern.None)return{none:!0};n.type=i.Type.Pattern,a&&(n.patternType=a);let o=`foreground`,s=`background`,c=n.patternType===i.BuiltInSheetPattern.Solid&&r;if(c){let e=o;o=s,s=e}let l=e.evaluate(`fgColor`,t);this.processDataBarColor(e,l,n,o,`dk1`);let u=e.evaluate(`bgColor`,t);return this.processDataBarColor(e,u,n,s,`lt1`),c&&(n.foreground||=`lt1`,n.background||=`dk1`),n}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,i,a){if(!t)return;let o={};this.processBorderStroke(e,t,o,r.Edge.Left),this.processBorderStroke(e,t,o,r.Edge.Right),a?(o.right||o.left)&&(o.vertical=o.right?{...o.right}:{...o.left}):this.processBorderStroke(e,t,o,r.Edge.Vertical),this.processBorderStroke(e,t,o,r.Edge.Top),this.processBorderStroke(e,t,o,r.Edge.Bottom),a?(o.bottom||o.top)&&(o.horizontal=o.bottom?{...o.bottom}:{...o.top}):this.processBorderStroke(e,t,o,r.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[i]=o,n}processBorderStroke(e,t,n,i){if(!t)return;let a=e.evaluate(i,t);if(!a)return;let o={};a.hasAttribute(`style`)?o.style=a.getAttribute(`style`):e.getVisitorParamsState().get(`processingDXFs`)&&(o.style=r.StrokeStyle.None);let s=e.evaluate(`color`,a);return s&&this.processDataBarColor(e,s,o,`color`),Object.keys(o).length>0?n[i]=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},ke=new Set(Object.values(m.ElementType).filter(e=>e!==m.ElementType.WholeTable&&e!==m.ElementType.HeaderRow)),Ae={auto:`auto`,autoNoTable:`automaticExceptTables`,manual:`manual`},J=[`tableId`,`columnId`,`cacheName`,`cachePath`,`sourceName`,`sortOrder`,`customListSort`,`crossFilter`,`pivotTables`,`pivotCacheId`,`pivotBody`,`tabular`,`pivotData`,`showMissing`],je=new Set([`name`,`xr10:uid`,`cache`,`caption`]),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=h[r];if(this.isGroupContent(n)){if(e.getPath().includes(`Fallback`))return{};let{movable:s,content:c}=this.readMemberHeader(e,t,`shape`);a!==o.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`)&&(s.lockAspect=l.getAttribute(`noChangeAspect`)===`1`);let u=this.readTwinOf(e,t);return u!==void 0&&Object.assign(c,{twinOf:u}),n.members.push(s),c}if(e.getPath().includes(`Fallback`)&&n.content){let r=n.content.json;if(n.content.type===`shape`&&r&&(r.type??o.Type.Shape)===a){let n=e.evaluate(`txBody`,t),i=n?new x().readTextBody(e,n):null;i&&me(i)!==``&&(r.text=i)}return{}}n=super.visit(e,t,n);let s=e.evaluate(i,t);s?.hasAttribute?.(`noChangeAspect`)&&(n.lockAspect=s.getAttribute(`noChangeAspect`)===`1`);let c=a===o.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=A(t.getAttribute(`fLocksText`))),t.hasAttribute(`fPublished`)&&(i.published=A(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))}}},Me=/^<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:w(i?.getAttribute(`x`)??null)??0,y:w(i?.getAttribute(`y`)??null)??0,width:w(a?.getAttribute(`cx`)??null)??0,height:w(a?.getAttribute(`cy`)??null)??0}:null},Ne={Checkbox:`checkbox`},Q=e=>{let t=e.getAttribute(`val`);return t!==`0`&&t!==`false`},Pe={1:`serif`,2:`sans-serif`,3:`monospace`,4:`cursive`,5:`fantasy`};function Fe(e){let t={},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`:t.weight=Q(i)?700:400;break;case`i`:t.style=Q(i)?n.Style.Italic:n.Style.Normal;break;case`strike`:t.strike=k(Q(i));break;case`outline`:t.outline=Q(i);break;case`shadow`:t.shadow=Q(i);break;case`condense`:case`extend`:{let e=b(i.localName,Q(i));e!==void 0&&(t.letterSpacing=e);break}case`u`:t.underline=S(i.getAttribute(`val`));break;case`vertAlign`:{let e=E(i.getAttribute(`val`));e!==void 0&&(t.baseline=e);break}case`sz`:{let e=parseFloat(i.getAttribute(`val`)??``);isNaN(e)||(t.size=e);break}case`rFont`:{let e=i.getAttribute(`val`);e&&(t.family=e);break}case`family`:{let e=Pe[i.getAttribute(`val`)??``];e&&(t.fallbacks=[e]);break}case`charset`:{let e=parseInt(i.getAttribute(`val`)??``,10);isNaN(e)||(t.charset=e);break}case`scheme`:v(t,i.getAttribute(`val`));break;case`color`:{let e=i.getAttribute(`rgb`);if(e&&!i.hasAttribute(`theme`)){t.color=`#`+(e.length===8?e.substring(2):e).toUpperCase();break}let n=_(e=>i.getAttribute(e));n&&(t.color=n);break}}}return Object.keys(t).length>0?t: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:y,TextPropertiesVisitor:_e,ShapeTextVisitor:x,ThemeVisitor:class{visit(e,t,n){n.name=t.getAttribute(`name`),n.objectDefaults={};let r=B(t,`custClrLst`)[0];if(r){let t=new O,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 O{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 Oe){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 y().visit(e,r,n);let i=new x().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 O{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:i.Type.None};case`solidFill`:{let n=this.processAdjColor(e,t);return n?{type:i.Type.Solid,color:n}: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:u.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 pe({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?u.BuiltInOperatorNames.And:u.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]:ae(a)}processDynamicFilter(e,t){return ge(t.getAttribute(`type`),t.getAttribute(`val`),t.getAttribute(`maxVal`))}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:u.BuiltInOperatorNames.InSet,param:n};r.selector=u.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:u.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:u.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`||g(r.getAttribute(`uri`))!==g(`{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=A(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=A(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=A(t.getAttribute(`caseSensitive`))?d.CaseSensitiveOptions:d.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`)&&A(t.getAttribute(`columnSort`))&&(o.axis=c.Axis.Column);let s=p.fastStringToRange(r),l=[],u=[];this.processSortConditions(e,t,l,s,i,u),l.length>0&&(o.sorts=l);let f=e.getVisitorParamsState().get(`ref`);if(f&&r){let e=p.fastStringToRange(f);o.extent={range:ee(e,s),sorts:u.map(t=>ue(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=p.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=A(t.getAttribute(`descending`)));let s=ce(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,n){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let a={fills:{},fonts:{},borders:{}},o=e.evaluate(`fonts`,t);this.processFonts(e,o,a.fonts);let s=a.fonts[this.normalFontId(e,t)],c={declared:[`1`,`true`].includes(o?.getAttribute(`x14ac:knownFonts`)??``),normalIsThemeFont:fe(s?.family),faces:T(Object.values(a.fonts).map(e=>({...e,family:N(e?.family,e?.fallbacks,null,!1).name})))};e.getVisitorParamsState().set(le,c),s&&e.getVisitorParamsState().set(`defaultFont`,s),this.processFills(e,e.evaluate(`fills`,t),a.fills),this.processBorders(e,e.evaluate(`borders`,t),a.borders,!0),a.fills[0]={type:i.Type.None},a.fills[1]={type:i.Type.Pattern,patternType:i.BuiltInSheetPattern.Gray125},a.borders[0]={bottom:{style:r.StrokeStyle.None},left:{style:r.StrokeStyle.None},right:{style:r.StrokeStyle.None},top:{style:r.StrokeStyle.None}};let l=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),l,a,null,!1);let u=new Map;if(l.length>0){let r=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),r,l,u),n.named=r}let d=[];this.processXFs(e,e.evaluate(`cellXfs`,t),d,a,u),Object.keys(d).length>0&&(n.direct=d);let f=this.collectHiddenXfs(e.evaluate(`cellXfs`,t));f.size>0&&e.getVisitorParamsState().set(`hiddenXfs`,f);let p=this.collectPivotButtonXfs(e.evaluate(`cellXfs`,t));p.size>0&&e.getVisitorParamsState().set(`pivotButtonXfs`,p);let m=this.collectXfComplements(e.evaluate(`cellXfs`,t));m.size>0&&e.getVisitorParamsState().set(`xfComplements`,m);let h=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),h),this.processTableStyles(e,e.evaluate(`tableStyles`,t),n,h),this.processSlicerStyles(e,e.evaluate(`extLst`,t),n),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),n),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),n),n}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,r,i,o){if(!t)return;let s=t.getAttribute(`xfId`);if(s&&i){let e=i.get(parseInt(s));e&&e!==a.BuiltInName.Normal&&(n.named=e)}let c=e=>!(!o&&t.hasAttribute(e))||A(t.getAttribute(e)),l=e=>!o||t.hasAttribute(e)&&A(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=r.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=r.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=r.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=A(t.getAttribute(`quotePrefix`)??``);d&&(n.quotePrefix=d)}processAlignment(e,t,n){let r={};if(r.horizontal=t?.hasAttribute(`horizontal`)?t.getAttribute(`horizontal`):s.HorizontalAlignment.General,r.vertical=t?.hasAttribute(`vertical`)?t.getAttribute(`vertical`):s.VerticalAlignment.Bottom,r.indent=t?.hasAttribute(`indent`)?parseInt(t.getAttribute(`indent`)):0,r.relativeIndent=t?.hasAttribute(`relativeIndent`)?parseInt(t.getAttribute(`relativeIndent`)):0,r.overflow=A(t?.getAttribute(`wrapText`)??``)?s.Overflow.Wrap:s.Overflow.Visible,A(t?.getAttribute(`shrinkToFit`)??``)&&(r.overflow=s.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=A(t.getAttribute(`justifyLastLine`)));let i=t?.getAttribute(`readingOrder`);return i&&(i===`0`?r.readingDirection=s.ReadingDirection.Auto:i===`1`?r.readingDirection=s.ReadingDirection.LeftToRight:i===`2`?r.readingDirection=s.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`&&A(n.getAttribute(`hidden`)??``)&&t.add(r)}r++}return t}collectPivotButtonXfs(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);i.nodeType===1&&i.localName===`xf`&&(A(i.getAttribute(`pivotButton`)??``)&&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&&!A(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||!ke.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=A(t.getAttribute(`table`))),o.pivot=!t.hasAttribute(`pivot`)||A(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,r,i){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=a.builtInNameFromId(parseInt(s));e!==void 0&&(c=e)}if(i.set(e,c),!r[e])continue;let l={name:c,style:r[e]};t.getAttribute(`hidden`)&&(l.hidden=A(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(l.iLevel=parseInt(t.getAttribute(`iLevel`))),s!==null&&A(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 se)r[e.key]=re(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=>Ae[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?ie(e.getRelationships().get(i)?.type):null;if(a){let t=e.readEmbeddedPart(i);if(t?.xml){let e={part:t},i=te(t.xml),o=i?_(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=e.evaluate(`workbookPr`,t.parentNode)?.getAttribute?.(`date1904`),a=i===`1`||i===`true`,o=C(e.getVisitorParamsState().get(`numFmts`),void 0),s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType!==1||n.localName!==`pivotCache`)continue;let i=parseInt(n.getAttribute(`cacheId`)??``,10),c=n.getAttribute(`r:id`);if(isNaN(i)||!c)continue;let l=e.readEmbeddedPart(c);if(!l)continue;let u=R(l,a,e=>o.numberFormat(e)),d=!u&&l.xml?ne(l.xml,o):void 0,f=!u&&l.xml?be(l.xml):void 0;r.push({cacheId:i,part:l,...d?{partFormats:d}:{},...f?{source:f}:{},...u})}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 ve)e.copyFromAttribute(t,n,o);for(let e of ye){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){if(!t)return;e.copyFromAttribute(t,`date1904`,n,`date1904`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`codeName`,n,`codeName`),e.copyFromAttribute(t,`updateLinks`,n,`updateLinks`);let r=t.getAttribute(`hidePivotFieldList`);r!==`1`&&r!==`true`||(n.hiddenPivotFieldList=!0)}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=p.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):(this.processPivot(e,t,n),n)}processPivot(e,t,n){let r=[],i=``,a=t.childNodes;for(let t=0;t<a.length;t++){let o=a.item(t);if(o.nodeType!==1)continue;if(o.localName===`pivotTables`){let e=o.childNodes;for(let t=0;t<e.length;t++){let n=e.item(t);n.nodeType===1&&n.localName===`pivotTable`&&r.push({tabId:n.getAttribute(`tabId`)??``,name:n.getAttribute(`name`)??``})}continue}let s=o.getAttribute(`pivotCacheId`);if(s&&(n.pivotCacheId=s),o.localName===`state`||o.localName===`timelinePivotFilter`){n.tabular=!0,n.pivotData=(n.pivotData??``)+(e.serializeElement(o)??``);continue}if(o.localName===`data`){let t=null,r=o.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType!==1)continue;let a=i.getAttribute(`pivotCacheId`);a&&(n.pivotCacheId=a),i.localName===`tabular`&&(t=i)}if(t){n.tabular=!0,e.copyFromAttribute(t,`sortOrder`,n),e.copyFromAttribute(t,`customListSort`,n,`customListSort`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`crossFilter`,n),e.copyFromAttribute(t,`showMissing`,n,`showMissing`,e.BOOLEAN_COPY),n.pivotData=e.serializeElement(o)??void 0;continue}}let c=e.serializeElement(o);if(c===null)return;i+=c}n.pivotTables=r,n.pivotBody=i}},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)}},TimelinesVisitor:class{visit(e,t,n){let r=n.slicers;r||(r={},n.slicers=r);let i=t.childNodes;for(let t=0;t<i.length;t++){let n=i.item(t);n.nodeType===1&&n.localName===`timeline`&&this.processTimeline(e,n,r)}return r}processTimeline(e,t,n){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);let s={};for(let e=0;e<t.attributes.length;e++){let n=t.attributes.item(e);je.has(n.name)||n.name.startsWith(`xmlns`)||(s[n.name]=n.value)}r.timelineAttributes=s;let c=``,l=t.childNodes;for(let t=0;t<l.length;t++){let n=l.item(t);n.nodeType===1&&(c+=e.serializeElement(n)??``)}r.timelineBody=c}},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=he(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=w(t.getAttribute(i)),o.y=w(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=w(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(i.y=w(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){M(i,r);let t=e.evaluate(`off`,i),n=e.evaluate(`ext`,i);r.anchor={tl:{x:w(t?.getAttribute(`x`)??null)??0,y:w(t?.getAttribute(`y`)??null)??0},br:{x:w(n?.getAttribute(`cx`)??null)??0,y:w(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!==`timeslicer`||(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?xe(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=A(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 O().processImageFill(e,n);return!o.tile&&o.stretch&&Object.keys(o.stretch).length===0&&delete o.stretch,o.extLst&&Me.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 O}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){M(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?Ne[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=Fe(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`,D);let i=t.getAttribute(`ref`);e.copyFromAttribute(t,`personId`,r,`personId`,D),e.copyFromAttribute(t,`parentId`,r,`parentId`,D);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=A(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:D(r),personId:D(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`,D),e.copyFromAttribute(n,`displayName`,t),e.copyFromAttribute(n,`userId`,t,`userId`,D),e.copyFromAttribute(n,`providerId`,t),r.push(t)}}return r.length>0&&(n.persons=r),r}}},Ie=class{constructor(e,t){this.path=e,this.visitor=t}},Le=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(`timelineCacheDefinition`,new $.SlicerCacheDefinitionVisitor),this.registerVisitor(`timelines`,new $.TimelinesVisitor),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 Ie(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{Le as DOMTransformer,z as ExecutionContext,de as NumberUtils,F as VisitorUtils};
@@ -1,2 +1,2 @@
1
- import{n as e}from"./CbXtAM7H-Jg_J0dk.js";import{i as t,r as n,t as r}from"./gU2zeJaXoNh7QI_e.js";import{n as i}from"./CQ-33-es3XJ56pR4.js";import{t as a}from"./Bdb0azxGoCh6NBDk.js";import{Z as o}from"./D4RZZdlItfrgQHcE.js";import{$ as s,S as c,q as l}from"./DJebrQ5mu8uxpX3b.js";import{A as u,H as d}from"./jteb4n23QwBT9m_4.js";import{n as f}from"./Bt7fKk5ZupUuo_xD.js";import{t as p}from"./BTOQaSn9DDyJPUlX.js";import{n as m}from"./CBP4y6KFPu24xhDT.js";import{t as h}from"./C9SC-cEIt6gdhZRw.js";import{G as g,I as _,Q as v,bt as ee,vt as y}from"./COL9dj40ytErlGak.js";import{i as te,n as ne,r as re,t as ie}from"./D8EmNst-H2v0eWcf.js";var b=e(t(),1),x=r(),S=(e,t)=>{let n=t;if(t&&typeof t==`object`){let e=t;if(e.type===v.Type.None)return`transparent`;if(e.type===v.Type.Solid)n=e.color;else if(e.type===v.Type.Pattern)n=e.foreground;else if(e.type===v.Type.Gradient){let t=e.stops?.[0];n=typeof t==`string`?t:t?.color}else n=void 0}if(typeof n==`string`&&n)try{return(e?e.parseColor(n):new ee(n))?.toCSS(`adaptive`)??void 0}catch{return}},C={top:`flex-start`,center:`center`,bottom:`flex-end`,justify:`space-between`,distributed:`space-around`},ae={left:`left`,center:`center`,right:`right`,justify:`justify`,justifyLow:`justify`,distributed:`justify`,thaiDistributed:`justify`},oe={left:9.6,top:4.8,right:9.6,bottom:4.8},w=(e,t)=>e?`percent`in e?e.percent/100*1.2:`${e.points}pt`:t,T=(e,t,n)=>{let r=[];t.underline&&t.underline!==`none`&&r.push(`underline`),t.strike&&t.strike!==`none`&&r.push(`line-through`);let i=[t.font?.family,...t.font?.fallbacks??[]].filter(e=>!!e);return{fontSize:typeof t.size==`number`?`${t.size}pt`:void 0,fontWeight:t.weight,fontStyle:t.style===_.Style.Italic?`italic`:void 0,textDecoration:r.length?r.join(` `):void 0,fontFamily:i.length?_.toCSSFontFamily(i[0],i.slice(1)):void 0,color:S(e,t.color)??n??void 0,letterSpacing:typeof t.letterSpacing==`number`?`${t.letterSpacing}pt`:void 0,verticalAlign:typeof t.baseline==`number`&&t.baseline!==0?`${t.baseline}%`:void 0,fontVariant:t.capitals===`small`?`small-caps`:void 0,textTransform:t.capitals===`all`?`uppercase`:void 0,backgroundColor:t.highlight?S(e,t.highlight):void 0}},se=(0,b.memo)(({text:e,styles:t,color:n})=>{let r=e.body,i={...oe,...r?.insets},a=e.listStyle?.levels?.[0]??e.listStyle?.default,o=(0,b.useMemo)(()=>({display:`flex`,flexDirection:`column`,justifyContent:C[r?.anchor??`top`],alignItems:r?.anchorCenter?`center`:`stretch`,boxSizing:`border-box`,width:`100%`,height:`100%`,padding:`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`,whiteSpace:r?.wrap===`none`?`pre`:`pre-wrap`,overflowX:(r?.horizontalOverflow??g.TEXT_DEFAULTS.horizontalOverflow)===y.Overflow.Visible?`visible`:`hidden`,overflowY:(r?.verticalOverflow??g.TEXT_DEFAULTS.verticalOverflow)===y.Overflow.Visible?`visible`:`hidden`,fontSize:`${g.TEXT_DEFAULTS.size}pt`,writingMode:r?.vertical===y.WritingMode.Vertical||r?.vertical===y.WritingMode.EastAsianVertical?`vertical-rl`:r?.vertical===y.WritingMode.Vertical270?`vertical-lr`:void 0,color:n??void 0}),[r,i.top,i.right,i.bottom,i.left,n]);return(0,x.jsx)(`div`,{className:`sxl-shape-text`,style:o,children:e.paragraphs.map((r,i)=>{let o=r.level?e.listStyle?.levels?.[r.level]:a,s={...o?.defaultRun,...r.defaultRun},c=r.bullet??o?.bullet,l={textAlign:ae[r.align??o?.align??`left`],marginLeft:r.marginLeft??o?.marginLeft,marginRight:r.marginRight??o?.marginRight,textIndent:r.indent??o?.indent,marginTop:w(r.spaceBefore,void 0),marginBottom:w(r.spaceAfter,void 0),lineHeight:w(r.lineSpacing,1.2),minHeight:`1.2em`,direction:r.rightToLeft?`rtl`:void 0,...T(t,s,void 0)},u=r.runs.length?r.runs:r.endRun?[{text:``,...r.endRun}]:[];return(0,x.jsxs)(`div`,{className:`sxl-shape-paragraph`,style:l,children:[c?.type===`char`&&c.char?(0,x.jsx)(`span`,{style:{marginRight:`0.4em`},children:c.char}):null,u.map((e,r)=>{if(e.text===`
1
+ import{n as e}from"./CbXtAM7H-Jg_J0dk.js";import{i as t,r as n,t as r}from"./gU2zeJaXoNh7QI_e.js";import{n as i}from"./CQ-33-es3XJ56pR4.js";import{t as a}from"./Bdb0azxGoCh6NBDk.js";import{Z as o}from"./D4RZZdlItfrgQHcE.js";import{$ as s,S as c,q as l}from"./DwHci99xcnRTEcv5.js";import{A as u,H as d}from"./DszZ1A807YzTc0ek.js";import{n as f}from"./CbTBuiF_Jn72hoj1.js";import{t as p}from"./BTOQaSn9DDyJPUlX.js";import{n as m}from"./CBP4y6KFPu24xhDT.js";import{t as h}from"./C9SC-cEIt6gdhZRw.js";import{G as g,I as _,Q as v,bt as ee,vt as y}from"./COL9dj40ytErlGak.js";import{i as te,n as ne,r as re,t as ie}from"./97qOXULGlJqaTCIL.js";var b=e(t(),1),x=r(),S=(e,t)=>{let n=t;if(t&&typeof t==`object`){let e=t;if(e.type===v.Type.None)return`transparent`;if(e.type===v.Type.Solid)n=e.color;else if(e.type===v.Type.Pattern)n=e.foreground;else if(e.type===v.Type.Gradient){let t=e.stops?.[0];n=typeof t==`string`?t:t?.color}else n=void 0}if(typeof n==`string`&&n)try{return(e?e.parseColor(n):new ee(n))?.toCSS(`adaptive`)??void 0}catch{return}},C={top:`flex-start`,center:`center`,bottom:`flex-end`,justify:`space-between`,distributed:`space-around`},ae={left:`left`,center:`center`,right:`right`,justify:`justify`,justifyLow:`justify`,distributed:`justify`,thaiDistributed:`justify`},oe={left:9.6,top:4.8,right:9.6,bottom:4.8},w=(e,t)=>e?`percent`in e?e.percent/100*1.2:`${e.points}pt`:t,T=(e,t,n)=>{let r=[];t.underline&&t.underline!==`none`&&r.push(`underline`),t.strike&&t.strike!==`none`&&r.push(`line-through`);let i=[t.font?.family,...t.font?.fallbacks??[]].filter(e=>!!e);return{fontSize:typeof t.size==`number`?`${t.size}pt`:void 0,fontWeight:t.weight,fontStyle:t.style===_.Style.Italic?`italic`:void 0,textDecoration:r.length?r.join(` `):void 0,fontFamily:i.length?_.toCSSFontFamily(i[0],i.slice(1)):void 0,color:S(e,t.color)??n??void 0,letterSpacing:typeof t.letterSpacing==`number`?`${t.letterSpacing}pt`:void 0,verticalAlign:typeof t.baseline==`number`&&t.baseline!==0?`${t.baseline}%`:void 0,fontVariant:t.capitals===`small`?`small-caps`:void 0,textTransform:t.capitals===`all`?`uppercase`:void 0,backgroundColor:t.highlight?S(e,t.highlight):void 0}},se=(0,b.memo)(({text:e,styles:t,color:n})=>{let r=e.body,i={...oe,...r?.insets},a=e.listStyle?.levels?.[0]??e.listStyle?.default,o=(0,b.useMemo)(()=>({display:`flex`,flexDirection:`column`,justifyContent:C[r?.anchor??`top`],alignItems:r?.anchorCenter?`center`:`stretch`,boxSizing:`border-box`,width:`100%`,height:`100%`,padding:`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`,whiteSpace:r?.wrap===`none`?`pre`:`pre-wrap`,overflowX:(r?.horizontalOverflow??g.TEXT_DEFAULTS.horizontalOverflow)===y.Overflow.Visible?`visible`:`hidden`,overflowY:(r?.verticalOverflow??g.TEXT_DEFAULTS.verticalOverflow)===y.Overflow.Visible?`visible`:`hidden`,fontSize:`${g.TEXT_DEFAULTS.size}pt`,writingMode:r?.vertical===y.WritingMode.Vertical||r?.vertical===y.WritingMode.EastAsianVertical?`vertical-rl`:r?.vertical===y.WritingMode.Vertical270?`vertical-lr`:void 0,color:n??void 0}),[r,i.top,i.right,i.bottom,i.left,n]);return(0,x.jsx)(`div`,{className:`sxl-shape-text`,style:o,children:e.paragraphs.map((r,i)=>{let o=r.level?e.listStyle?.levels?.[r.level]:a,s={...o?.defaultRun,...r.defaultRun},c=r.bullet??o?.bullet,l={textAlign:ae[r.align??o?.align??`left`],marginLeft:r.marginLeft??o?.marginLeft,marginRight:r.marginRight??o?.marginRight,textIndent:r.indent??o?.indent,marginTop:w(r.spaceBefore,void 0),marginBottom:w(r.spaceAfter,void 0),lineHeight:w(r.lineSpacing,1.2),minHeight:`1.2em`,direction:r.rightToLeft?`rtl`:void 0,...T(t,s,void 0)},u=r.runs.length?r.runs:r.endRun?[{text:``,...r.endRun}]:[];return(0,x.jsxs)(`div`,{className:`sxl-shape-paragraph`,style:l,children:[c?.type===`char`&&c.char?(0,x.jsx)(`span`,{style:{marginRight:`0.4em`},children:c.char}):null,u.map((e,r)=>{if(e.text===`
2
2
  `)return(0,x.jsx)(`br`,{},r);let{text:i,field:a,...o}=e;return(0,x.jsx)(`span`,{style:T(t,{...s,...o},n),children:i},r)})]},i)})})});se.displayName=`ShapeText`;var ce=e(n(),1),le=(0,b.memo)(({handles:e,width:t,height:n,zoom:r,onDrag:i})=>{let a=(0,b.useRef)(null),o=(0,b.useRef)(null),[s,l]=(0,b.useState)(!1),u=(0,b.useCallback)(e=>{let t=a.current,n=t?.getScreenCTM();if(!t||!n)return null;let r=new DOMPoint(e.clientX,e.clientY).matrixTransform(n.inverse());return{x:r.x,y:r.y}},[]),d=(0,b.useCallback)((e,t)=>{e.button===0&&(e.stopPropagation(),e.preventDefault(),o.current={index:t,pointerId:e.pointerId},e.currentTarget.setPointerCapture(e.pointerId),l(!0))},[]),f=(0,b.useCallback)(e=>{let t=o.current;if(!t||t.pointerId!==e.pointerId)return;e.stopPropagation();let n=u(e);n&&i(t.index,n.x,n.y,`move`)},[u,i]),p=(0,b.useCallback)(e=>{let t=o.current;if(!t||t.pointerId!==e.pointerId)return;e.stopPropagation(),o.current=null,l(!1);let n=u(e);n?i(t.index,n.x,n.y,`end`):i(t.index,0,0,`cancel`)},[u,i]),m=(0,b.useCallback)(e=>{let t=o.current;t&&t.pointerId===e.pointerId&&(o.current=null,l(!1),i(t.index,0,0,`cancel`))},[i]);if(!(e.length!==0&&t>0&&n>0))return null;let h=r>0?r:1,g=4.5/h;return(0,x.jsx)(`svg`,{ref:a,className:s?`sxl-shape-handles sxl-movable-gesture`:`sxl-shape-handles`,viewBox:`0 0 ${t} ${n}`,width:`100%`,height:`100%`,preserveAspectRatio:`none`,overflow:`visible`,style:{position:`absolute`,left:0,top:0,display:`block`,pointerEvents:`none`,touchAction:`none`},children:e.map(e=>(0,x.jsxs)(`g`,{className:`sxl-shape-handle`,style:{"--shape-scale":h},children:[(0,x.jsx)(`circle`,{cx:e.x,cy:e.y,r:g,fill:c(`color-accent`),stroke:c(`color-base-100`),strokeWidth:1/h,style:{pointerEvents:`none`}}),(0,x.jsx)(`circle`,{className:`sxl-shape-handle-hit`,cx:e.x,cy:e.y,r:g,fill:`transparent`,style:{pointerEvents:`all`,cursor:`crosshair`,touchAction:`none`},onPointerDown:t=>d(t,e.index),onPointerMove:f,onPointerUp:p,onPointerCancel:m,onMouseDown:e=>e.stopPropagation()})]},e.index))})});le.displayName=`ShapeHandles`;var E=(e,t)=>e>0||t>0,D=(e,t,n)=>!e||e.getWidth()===t&&e.getHeight()===n?e:E(t,n)?e.resize(t,n):null,ue=e=>{let t=[];return e.forEachConnection(e=>t.push(e)),t},O=(0,b.memo)((0,b.forwardRef)((e,t)=>{let{children:n,disabled:r,style:u,shape:d,movable:f,zoom:p=1,isDragging:h,onHide:g,onShow:_,onDragZone:v,onTap:ee,adornmentHost:y,flip:S,gesture:C,debugGeometry:ae=!1,...oe}=e,w=a()?.getStyles()??null,[T,O]=(0,b.useReducer)(e=>e+1,0);i(d,{onAnyChange:O}),i(f??null,{onBoundsChange:O,onSelectionChange:O});let k=d.toJSON(),{width:A,height:j,rotation:M,content:N}=ne(f),P=d.getShapeType(),de=d.getAdjustments(),F=E(A,j),[I,L]=(0,b.useState)(null),R=(0,b.useRef)(0);(0,b.useEffect)(()=>{if(!F)return void L(null);let e=++R.current,t=d.getShapeType();d.getGeometry(A,j).then(n=>{R.current===e&&L(n?{shapeType:t,geometry:n}:null)},()=>{R.current===e&&L(null)})},[d,A,j,T]);let z=N?.shapeType!==void 0&&N.shapeType!==P?N.shapeType:null,[B,fe]=(0,b.useState)(null);(0,b.useEffect)(()=>{if(!z||!F||B?.shapeType===z)return;let e=!0;return d.getGeometry(A,j,{shapeType:z}).then(t=>{e&&t&&fe({shapeType:z,geometry:t})},()=>{}),()=>{e=!1}},[d,z,F]);let V=(0,b.useMemo)(()=>{let e=I?.shapeType===P?I:B?.shapeType===P?B:null;return e?D(e.geometry,A,j)?.withAdjustments(de)??null:D(I?.geometry??null,A,j)},[I,B,P,de,A,j]),pe=(0,b.useCallback)(e=>d.getResource(e),[d]);(0,b.useEffect)(()=>{let e=[];for(let t=f?.getParent()??null;t;t=t.getParent())e.push(t.getContent().addListeners({onAnyChange:O}));return()=>{for(let t of e)t()}},[f]);let me=ie(f),H=(0,b.useMemo)(()=>re(k,w,pe,me),[k,w,pe,me]),[he,U]=(0,b.useState)(null),W=N?.adjustments===void 0?he??void 0:N.adjustments,G=(0,b.useMemo)(()=>{if(z&&B?.shapeType!==z)return V;let e=z?D(B.geometry,A,j):V;return e&&W!==void 0?e.withAdjustments(W):e},[V,z,B,A,j,W]),K=(0,b.useRef)(null),[ge,q]=(0,b.useState)(!1),_e=(0,b.useCallback)((e,t,n,i)=>{if(i===`cancel`)return K.current&&(K.current=null,q(!1),C?.cancel()),void U(null);if(!G||!V)return;let a=G.adjustmentsFromHandle(e,t,n);if(i===`move`){if(C&&!r){if(!K.current){let e={adjustments:a};if(!C.start(o(`op.setShapeAdjustments`),t=>{t.getContent().setAdjustments(e.adjustments)}))return;K.current=e,q(!0)}K.current.adjustments=a,C.preview({content:{adjustments:a}});return}U(a);return}let s=K.current;if(s)return K.current=null,q(!1),s.adjustments=a,void C?.finish();U(null),r||d.setAdjustments(a)},[G,V,d,r,C]),ve=(0,b.useMemo)(()=>{let e=[];return G?.forEachHandle(t=>e.push(t)),e},[G]),ye=l(t,()=>({isShapeEditor:()=>!0}),[]),be=S??f?.getFlip(),J=be?.horizontal??!1,Y=be?.vertical??!1,xe=M%360!=0,Se=(0,b.useMemo)(()=>!xe&&E(A,j)?{dpr:s.getDevicePixelRatio(),zoom:p,width:A,height:j,flipH:J,flipV:Y}:null,[xe,p,A,j,J,Y]);if(d.isDeleted()||!k)return null;let X=u?.pointerEvents===`none`,Ce=X?`none`:`visiblePainted`,we=!X&&!r&&(!h||ge)&&!!f?.isSelected(),Te={transform:J||Y?`scale(${J?-1:1}, ${Y?-1:1})`:void 0,transformOrigin:`center`},Z=null;we&&ve.length>0&&(Z=(0,x.jsx)(le,{handles:ve,width:A,height:j,zoom:p,onDrag:_e}),y&&(Z=(0,ce.createPortal)((0,x.jsx)(`div`,{className:`sxl-shape-adornment`,style:{position:`absolute`,left:0,top:0,width:`100%`,height:`100%`,...Te,pointerEvents:`none`},children:Z}),y)));let Ee=J===Y?void 0:`scaleX(-1)`,Q=G?.getTextRect(),$=k.text,De=!!$&&$.paragraphs.some(e=>e.runs.some(e=>e.text!==``));return(0,x.jsxs)(`div`,{className:`sxl-shape-editor`,...oe,ref:ye,style:{width:`100%`,height:`100%`,position:`relative`,overflow:`visible`,filter:r?`blur(1px)`:void 0,...Te,...u,pointerEvents:`none`},children:[E(A,j)?(0,x.jsxs)(`svg`,{className:`sxl-shape-geometry`,viewBox:`0 0 ${A>0?A:1/p} ${j>0?j:1/p}`,width:A>0?`100%`:`1px`,height:j>0?`100%`:`1px`,preserveAspectRatio:`none`,overflow:`visible`,style:{position:`absolute`,left:0,top:0,display:`block`,pointerEvents:`none`,filter:we?`drop-shadow(1px 1px 2px ${c(`color-shadow`)})`:void 0},children:[G?(0,x.jsx)(te,{geometry:G,style:H,zoom:p,grid:Se,hit:Ce}):null,ae&&G&&Q?(0,x.jsxs)(`g`,{pointerEvents:`none`,children:[(0,x.jsx)(`rect`,{x:Q.l,y:Q.t,width:Math.max(0,Q.r-Q.l),height:Math.max(0,Q.b-Q.t),fill:`none`,stroke:c(`color-error`),strokeWidth:1/p,strokeDasharray:`${4/p} ${2/p}`}),ue(G).map(e=>(0,x.jsx)(`rect`,{x:e.x-3/p,y:e.y-3/p,width:6/p,height:6/p,fill:c(`color-success`)},e.index))]}):null]}):null,De&&Q?(0,x.jsx)(`div`,{className:`sxl-shape-text-frame`,style:{position:`absolute`,left:Q.l,top:Q.t,width:Math.max(0,Q.r-Q.l),height:Math.max(0,Q.b-Q.t),zoom:p,transform:Ee,transformOrigin:`center`,pointerEvents:X?`none`:`auto`,color:H.textColor??void 0},children:(0,x.jsx)(m,{movable:f,disabled:!0,style:{fontFamily:`Calibri, Carlito, sans-serif`,fontSize:`11pt`,lineHeight:1.2,padding:0},contentStyle:{padding:0,overflow:`hidden`},children:(0,x.jsx)(se,{text:$,styles:w,color:H.textColor})})}):null,Z]})}));O.displayName=`ShapeEditor`;var k=(e,t)=>{let n=[t.horizontal?1:-1,t.vertical?1:-1];return e===`start`?n:[-n[0],-n[1]]},A=e=>{let t=e.getBounds();return t?{bounds:t,rotation:e.getRotation()||0,flip:e.getFlip()}:null},j=(e,t,n)=>{let{x:r,y:i,width:a,height:o}=e.bounds,s=-(e.rotation||0)*Math.PI/180,c=t.x-(r+a/2),l=t.y-(i+o/2),u=c*Math.cos(s)-l*Math.sin(s),d=c*Math.sin(s)+l*Math.cos(s);return Math.abs(u)<=a/2+n&&Math.abs(d)<=o/2+n},M=(0,b.memo)(e=>{let{movable:t,flip:n,isDragging:r=!1,gesture:a}=e,s=d(),c=u(p,null),[,l]=(0,b.useReducer)(e=>e+1,0),f=t.getContent();i(f,{onAnyChange:l});let m=f.getConnectorFormat(),h=(0,b.useRef)(null),g=(0,b.useCallback)(e=>{let t=s?.getPanePointFromPointer(e.clientX,e.clientY);if(!s||!t)return null;let n=s.toAbsoluteBounds({x:t.x,y:t.y,width:0,height:0});return{x:n.x,y:n.y}},[s]),_=(0,b.useCallback)(e=>{if(e.button!==0)return;e.stopPropagation(),e.preventDefault();let n=e.currentTarget.dataset.end,r=A(t);if(!r||!s)return;let i={pointerId:e.pointerId,end:n,placement:r,candidates:[],hit:null};a.start(o(`op.connectShape`),e=>{let t=e.getContent().getConnectorFormat();if(!t)return;let r=i.hit,a=n===`start`?t.getStartConnectedMovable():t.getEndConnectedMovable(),o=n===`start`?t.getStartConnectionSite():t.getEndConnectionSite();(r?a!==r.target||o!==r.index:a!==null)&&(r?n===`start`?t.startConnect(r.target,r.index):t.endConnect(r.target,r.index):n===`start`?t.startDisconnect():t.endDisconnect())})&&(i.candidates=(e=>{let t=e.getRange().getWorksheet(),n=new Set([e]);for(let t=e.getParent();t;t=t.getParent())n.add(t);let r=[];for(let e of t.getMovables().getItems({deep:!0})){if(n.has(e)||e.isHidden())continue;let t=A(e);t&&r.push({movable:e,placement:t})}return r})(t),h.current=i,e.currentTarget.setPointerCapture(e.pointerId),c({connector:t.getId(),target:null,index:null}))},[t,s,a,c]),v=(0,b.useCallback)(e=>{let n=h.current;if(!n||n.pointerId!==e.pointerId)return;e.stopPropagation();let r=g(e);if(!r)return;let i=((e,t,n)=>{let r=8/n,i=10/n,a=null,o=1/0;for(let{movable:n,placement:s}of t){let t=n.getConnectionSites(s);if(!t||t.length===0)continue;let c=j(s,e,r);for(let r of t){let t=Math.hypot(r.x-e.x,r.y-e.y);(c||t<=i)&&t<o&&(a={target:n,index:r.index,x:r.x,y:r.y},o=t)}}return a})(r,n.candidates,s?.getZoom()||1);n.hit=i;let o=t.getContent().getConnectorFormat(),l=o?.getEndPoints(n.placement);if(!o||!l)return;let u=l[n.end===`start`?`end`:`start`];l[n.end]=i?{x:i.x,y:i.y}:e.shiftKey?((e,t,n=15)=>{let r=t.x-e.x,i=t.y-e.y;if(r===0&&i===0)return t;let a=n*Math.PI/180,o=Math.round(Math.atan2(i,r)/a)*a,s=Math.abs(Math.cos(o))<1e-12?0:Math.cos(o),c=Math.abs(Math.sin(o))<1e-12?0:Math.sin(o),l=r*s+i*c;return{x:e.x+l*s,y:e.y+l*c}})(u,r):r;let d=o.placeEnds(l.start,l.end);c({connector:t.getId(),target:i?i.target.getId():null,index:i?i.index:null}),a.preview({bounds:d.bounds,flip:d.flip,grip:{kind:`resize`,direction:k(n.end,d.flip)}})},[g,s,t,a,c]),ee=(0,b.useCallback)(e=>{let t=h.current;t&&t.pointerId===e.pointerId&&(e.stopPropagation(),h.current=null,c(null),a.finish())},[a,c]),y=(0,b.useCallback)(e=>{let t=h.current;t&&t.pointerId===e.pointerId&&(h.current=null,c(null),a.cancel())},[a,c]);return(0,x.jsx)(`div`,{className:[`sxl-movable-control`,`sxl-connector`,r?`sxl-dragging`:null].filter(Boolean).join(` `),children:[`start`,`end`].map(e=>{let t=k(e,n),r=e===`start`?!!m?.isStartConnected():!!m?.isEndConnected();return(0,x.jsx)(`div`,{className:r?`sxl-movable-control-handle sxl-connector-end sxl-glued`:`sxl-movable-control-handle sxl-connector-end`,"data-end":e,style:{left:50*(t[0]+1)+`%`,top:50*(t[1]+1)+`%`},onPointerDown:_,onPointerMove:v,onPointerUp:ee,onPointerCancel:y},e)})})});M.displayName=`ConnectorControl`;var N=(0,b.memo)(e=>e.movable.getContent().isConnector()?(0,x.jsx)(M,{...e}):(0,x.jsx)(f,{...e}));N.displayName=`ShapeControl`;var P={renderer:e=>(0,x.jsx)(O,{...e,shape:e.movable.getContent()}),control:N,commands:(e,t)=>{let{sheet:n,movable:r,notifier:i}=t,a=r.getContent();e.use(h({transaction:n,notifier:i})),e.updateCommand(`changeShape`,{disabledReasons:a.getConnectorFormat()?[o(`reason.connectorShape`)]:[],callback:e=>{let t=typeof e==`object`&&e?e.geometry:e;a.setShapeType(typeof t==`string`?t:`rect`)}})}};export{P as ShapeKind};
@@ -1 +1 @@
1
- import{t as e}from"./HclGiUj8dZXDFmoM.js";async function t(){try{return(await e(async()=>{let{default:e}=await import(`./DzlbsQ0qqdQEl80f.js`);return{default:e}},[],import.meta.url)).default}catch{let e=`@1.0.0`;return e!==`@local`&&e!==`@0.0.0`||(e=``),async function(e){let t=await fetch(e);if(!t.ok)throw Error(`Unable to load script enum runtime (${t.status}) from ${e}.`);return t.json()}(`https://cdn.jsdelivr.net/npm/@sheetxl/sdk${e}/types/scripting-enums.json`)}}export{t as loadEnumManifest};
1
+ import{t as e}from"./HclGiUj8dZXDFmoM.js";async function t(){try{return(await e(async()=>{let{default:e}=await import(`./DzlbsQ0qqdQEl80f.js`);return{default:e}},[],import.meta.url)).default}catch{let e=`@1.0.2`;return e!==`@local`&&e!==`@0.0.0`||(e=``),async function(e){let t=await fetch(e);if(!t.ok)throw Error(`Unable to load script enum runtime (${t.status}) from ${e}.`);return t.json()}(`https://cdn.jsdelivr.net/npm/@sheetxl/sdk${e}/types/scripting-enums.json`)}}export{t as loadEnumManifest};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Ci5NtzhJLll1kxGf.js","./9w0ECZmzGUyk3F_O.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./HclGiUj8dZXDFmoM.js";import{c as t}from"./CQukCzhuewMuFOlO.js";import{l as n}from"./B8Dy_WA9RlWuvMqF.js";import{t as r}from"./9w0ECZmzGUyk3F_O.js";var i=async(i,a)=>{let{papaParseConfig:o,setValuesOptions:s,createWorkbookOptions:c}=a??{},l=a?.progress,u=l?.onProgress?l.onProgress.bind(l):void 0,d=await e(()=>import(`./Ci5NtzhJLll1kxGf.js`).then(e=>r(e.default,1)),__vite__mapDeps([0,1]),import.meta.url),f=d.default??d,p=new TextDecoder().decode(i),m=-1,h=new n(c),g=h.getWorksheetAt(0),_=g.getEntireRange().getCoords(),v=_.colEnd,y=_.rowEnd,b=g.getEntireRange().createSparseBuilder({axis:t.Axis.Row}),x=0,S=0,C={...o,transform:(e,t)=>{o?.transform&&(e=o.transform(e,t));let n=t;n===0&&m++;let r=e??``;if(!(m>y||n>v))return b.pushAt(m,n,r),x++,x%1e5==0&&u?.(x),e;n===0&&S++}};return f.parse(p,C).data,b.apply({textParser:!0,autoFormat:!0,...s}),S>0&&l?.onWarning?.(`Ignored ${S} ${S===1?`row`:`rows`} that exceeded the maximum range of the sheet`),h};export{i as readCSV};
2
+ import{t as e}from"./HclGiUj8dZXDFmoM.js";import{c as t}from"./CQukCzhuewMuFOlO.js";import{l as n}from"./BGoGxqwlpgXt8CMd.js";import{t as r}from"./9w0ECZmzGUyk3F_O.js";var i=async(i,a)=>{let{papaParseConfig:o,setValuesOptions:s,createWorkbookOptions:c}=a??{},l=a?.progress,u=l?.onProgress?l.onProgress.bind(l):void 0,d=await e(()=>import(`./Ci5NtzhJLll1kxGf.js`).then(e=>r(e.default,1)),__vite__mapDeps([0,1]),import.meta.url),f=d.default??d,p=new TextDecoder().decode(i),m=-1,h=new n(c),g=h.getWorksheetAt(0),_=g.getEntireRange().getCoords(),v=_.colEnd,y=_.rowEnd,b=g.getEntireRange().createSparseBuilder({axis:t.Axis.Row}),x=0,S=0,C={...o,transform:(e,t)=>{o?.transform&&(e=o.transform(e,t));let n=t;n===0&&m++;let r=e??``;if(!(m>y||n>v))return b.pushAt(m,n,r),x++,x%1e5==0&&u?.(x),e;n===0&&S++}};return f.parse(p,C).data,b.apply({textParser:!0,autoFormat:!0,...s}),S>0&&l?.onWarning?.(`Ignored ${S} ${S===1?`row`:`rows`} that exceeded the maximum range of the sheet`),h};export{i as readCSV};
@@ -1 +1 @@
1
- import{i as e}from"./CQukCzhuewMuFOlO.js";import{ja as t,ji as n,jr as r}from"./BwYQTcPRDDYIeAA5.js";var i=r.Type,a={SUM:0,COUNT:1,COUNTA:2,AVERAGE:3,MIN:4,MAX:5,PRODUCT:6,"VAR.S":7,VAR:7,"VAR.P":8,VARP:8,"STDEV.S":9,STDEV:9,"STDEV.P":10,STDEVP:10},o=class{constructor(){this._next=1,this._numbers=new Map,this._keys=new Map,this._strings=new Map,this.values=[null]}of(e){if(e==null)return 0;if(typeof e==`number`)return this._number(e);let n=t(e),r=this._keys.get(n);return r===void 0&&(r=this._next++,this._keys.set(n,r),this.values[r]=e),r}fill(e,t){if(e instanceof n&&e._visitColumnRuns((e,n,r,i)=>this._run(t,e,n,r,i)))return;let r=t.length;for(let n of e.entries()){let e=n.coords.rowIndex;e<r&&(t[e]=this.of(n.value))}}_number(e){let t=this._numbers.get(e);return t===void 0&&(t=this._next++,this._numbers.set(e,t),this.values[t]=e),t}_run(e,t,n,a,o){if(!(n instanceof r&&n.codec)){for(let r=a,i=t;r<=o;r++,i++)e[i]=this.of(n.at(r));return}let s=n.codec,c=this._strings.get(s);c||this._strings.set(s,c=new Map);let{types:l,defaultType:u,ints:d,doubles:f,intShift:p,intOffset:m}=n.getViews();for(let r=a,h=t;r<=o;r++,h++){let t=l?l[r]:u;if(t===i.Int32)e[h]=this._number(d[(r<<p)+m]);else if(t===i.Float64)e[h]=this._number(f[r]);else if(t===i.String){let t=d[(r<<p)+m],n=c.get(t);n===void 0&&c.set(t,n=this.of(s.decodeString(t))),e[h]=n}else t===i.Blank?e[h]=0:e[h]=this.of(n.at(r))}}},s=class{constructor(){this.table=[e.BuiltIn.Div0],this._codes=new Map}codeOf(e){let t=this._codes.get(e);return t===void 0&&(t=this.table.length,this.table.push(e),this._codes.set(e,t)),t}},c=(e,t,a)=>{let o=t.types.length,s={ok:!0,numeric:!0},c=(e,n)=>l(t,e,n,a,s);if(!(e instanceof n&&e._visitColumnRuns((e,n,a,o)=>{if(!(n instanceof r&&n.codec)){for(let t=a,r=e;t<=o;t++,r++)c(r,n.at(t));return}let{types:s,defaultType:l,ints:u,doubles:d,intShift:f,intOffset:p}=n.getViews();if(!s&&l===i.Float64)return t.doubles.set(d.subarray(a,o+1),e),void t.types.fill(i.Float64,e,e+o-a+1);for(let r=a,m=e;r<=o;r++,m++){let e=s?s[r]:l;e===i.Int32?(t.ints[m<<1]=u[(r<<f)+p],t.types[m]=i.Int32):e===i.Float64?(t.doubles[m]=d[r],t.types[m]=i.Float64):e!==i.Blank&&c(m,n.at(r))}})))for(let t of e.entries()){let e=t.coords.rowIndex;e<o&&c(e,t.value)}return s},l=(t,n,r,a,o)=>{if(r!=null){switch(typeof r){case`number`:t.doubles[n]=r,t.types[n]=i.Float64;return;case`string`:t.types[n]=i.String,o.numeric=!1;return;case`boolean`:t.types[n]=r?i.True:i.False,o.numeric=!1;return}if(e.isError(r))return t.ints[n<<1]=a.codeOf(r),void(t.types[n]=i.Error);o.ok=!1}},u=(t,n,a)=>{let o=a.table,s=new r(((e,t,n,r)=>{let a=!!(r&r-1),o=1<<i.Blank|1<<i.False|1<<i.True;return{buffer:e,byteOffset:t,length:n,width:r&1<<i.Float64?8:4,defaultType:a?i.Blank:31-Math.clz32(r),typeMask:r,hasTypes:a,hasSlots:(r&~o)!==0}})(t,n.ptr(),n.length(),n.type_mask()),{isError:()=>!1,encodeString:()=>0,decodeString:()=>null,encodeError:()=>0,decodeError:e=>o[e]??null});return t=>{let n=s.at(t)??null;return typeof n!=`number`||Number.isFinite(n)?n:e.BuiltIn.Num}},d=(e,t)=>`${e}|${t.join(`,`)}`,f=class{constructor(e,t){this._json=e,this._values=new Map(e.values),this._mode=t}getDataFields(){return this._json.dataFields}getFields(){return this._json.fields}getValue(t,n){let r=this._json.fields,i=[];for(let e=0;e<r.length;e++){let t=r[e].page,a=n.get(e);if(t===void 0)i.push(a??-1);else if(a!==void 0&&a!==t)return}let a=d(t,i);return this._mode===`blocked`?a===this._json.block?.first?e.BuiltIn.Spill:void 0:this._mode===`wanted`?void 0:this._values.get(a)}isComputed(){return!1!==this._json.computed}},p={placed:new WeakMap,blocked:new WeakMap,wanted:new WeakMap},m=(e,t=`placed`)=>{let n=p[t],r=n.get(e);return r||(r=new f(e,t),n.set(e,r)),r};export{c as a,l as c,m as i,u as n,a as o,d as r,o as s,s as t};
1
+ import{i as e}from"./CQukCzhuewMuFOlO.js";import{ja as t,ji as n,jr as r}from"./BqJRJVrx7XkIPgo7.js";var i=r.Type,a={SUM:0,COUNT:1,COUNTA:2,AVERAGE:3,MIN:4,MAX:5,PRODUCT:6,"VAR.S":7,VAR:7,"VAR.P":8,VARP:8,"STDEV.S":9,STDEV:9,"STDEV.P":10,STDEVP:10},o=class{constructor(){this._next=1,this._numbers=new Map,this._keys=new Map,this._strings=new Map,this.values=[null]}of(e){if(e==null)return 0;if(typeof e==`number`)return this._number(e);let n=t(e),r=this._keys.get(n);return r===void 0&&(r=this._next++,this._keys.set(n,r),this.values[r]=e),r}fill(e,t){if(e instanceof n&&e._visitColumnRuns((e,n,r,i)=>this._run(t,e,n,r,i)))return;let r=t.length;for(let n of e.entries()){let e=n.coords.rowIndex;e<r&&(t[e]=this.of(n.value))}}_number(e){let t=this._numbers.get(e);return t===void 0&&(t=this._next++,this._numbers.set(e,t),this.values[t]=e),t}_run(e,t,n,a,o){if(!(n instanceof r&&n.codec)){for(let r=a,i=t;r<=o;r++,i++)e[i]=this.of(n.at(r));return}let s=n.codec,c=this._strings.get(s);c||this._strings.set(s,c=new Map);let{types:l,defaultType:u,ints:d,doubles:f,intShift:p,intOffset:m}=n.getViews();for(let r=a,h=t;r<=o;r++,h++){let t=l?l[r]:u;if(t===i.Int32)e[h]=this._number(d[(r<<p)+m]);else if(t===i.Float64)e[h]=this._number(f[r]);else if(t===i.String){let t=d[(r<<p)+m],n=c.get(t);n===void 0&&c.set(t,n=this.of(s.decodeString(t))),e[h]=n}else t===i.Blank?e[h]=0:e[h]=this.of(n.at(r))}}},s=class{constructor(){this.table=[e.BuiltIn.Div0],this._codes=new Map}codeOf(e){let t=this._codes.get(e);return t===void 0&&(t=this.table.length,this.table.push(e),this._codes.set(e,t)),t}},c=(e,t,a)=>{let o=t.types.length,s={ok:!0,numeric:!0},c=(e,n)=>l(t,e,n,a,s);if(!(e instanceof n&&e._visitColumnRuns((e,n,a,o)=>{if(!(n instanceof r&&n.codec)){for(let t=a,r=e;t<=o;t++,r++)c(r,n.at(t));return}let{types:s,defaultType:l,ints:u,doubles:d,intShift:f,intOffset:p}=n.getViews();if(!s&&l===i.Float64)return t.doubles.set(d.subarray(a,o+1),e),void t.types.fill(i.Float64,e,e+o-a+1);for(let r=a,m=e;r<=o;r++,m++){let e=s?s[r]:l;e===i.Int32?(t.ints[m<<1]=u[(r<<f)+p],t.types[m]=i.Int32):e===i.Float64?(t.doubles[m]=d[r],t.types[m]=i.Float64):e!==i.Blank&&c(m,n.at(r))}})))for(let t of e.entries()){let e=t.coords.rowIndex;e<o&&c(e,t.value)}return s},l=(t,n,r,a,o)=>{if(r!=null){switch(typeof r){case`number`:t.doubles[n]=r,t.types[n]=i.Float64;return;case`string`:t.types[n]=i.String,o.numeric=!1;return;case`boolean`:t.types[n]=r?i.True:i.False,o.numeric=!1;return}if(e.isError(r))return t.ints[n<<1]=a.codeOf(r),void(t.types[n]=i.Error);o.ok=!1}},u=(t,n,a)=>{let o=a.table,s=new r(((e,t,n,r)=>{let a=!!(r&r-1),o=1<<i.Blank|1<<i.False|1<<i.True;return{buffer:e,byteOffset:t,length:n,width:r&1<<i.Float64?8:4,defaultType:a?i.Blank:31-Math.clz32(r),typeMask:r,hasTypes:a,hasSlots:(r&~o)!==0}})(t,n.ptr(),n.length(),n.type_mask()),{isError:()=>!1,encodeString:()=>0,decodeString:()=>null,encodeError:()=>0,decodeError:e=>o[e]??null});return t=>{let n=s.at(t)??null;return typeof n!=`number`||Number.isFinite(n)?n:e.BuiltIn.Num}},d=(e,t)=>`${e}|${t.join(`,`)}`,f=class{constructor(e,t){this._json=e,this._values=new Map(e.values),this._mode=t}getDataFields(){return this._json.dataFields}getFields(){return this._json.fields}getValue(t,n){let r=this._json.fields,i=[];for(let e=0;e<r.length;e++){let t=r[e].page,a=n.get(e);if(t===void 0)i.push(a??-1);else if(a!==void 0&&a!==t)return}let a=d(t,i);return this._mode===`blocked`?a===this._json.block?.first?e.BuiltIn.Spill:void 0:this._mode===`wanted`?void 0:this._values.get(a)}isComputed(){return!1!==this._json.computed}},p={placed:new WeakMap,blocked:new WeakMap,wanted:new WeakMap},m=(e,t=`placed`)=>{let n=p[t],r=n.get(e);return r||(r=new f(e,t),n.set(e,r)),r};export{c as a,l as c,m as i,u as n,a as o,d as r,o as s,s as t};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B0CDAMDdxSN4en9k.js","./D4RZZdlItfrgQHcE.js","./HclGiUj8dZXDFmoM.js","./CHlWgOAlcRCjVuhg.js","./D2TibFqUBAPLcu_2.js","./CWA4xGjOeBuxJOzW.js","./COL9dj40ytErlGak.js","./3Ls_kOvlQseMV8Q0.js","./nHThFXCAZFOM_npq.js","./CQukCzhuewMuFOlO.js","./BwYQTcPRDDYIeAA5.js","./BQTLEc84Eql61S2m.js","./BQnELVV0uR4T4ItQ.js","./CnXLpFE_vFrJ5Jbf.js","./Np3jWxG724t5hLHZ.js","./B8Dy_WA9RlWuvMqF.js","./B5GO9v4p9L70Xb9i.js","./BAzHRU12l2vyyXq-.js","./CX-ITg5RXdV2cefd.js","./DOsZiE9rOdS_Mm2Q.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./HclGiUj8dZXDFmoM.js";import{B as t}from"./D4RZZdlItfrgQHcE.js";var n=[208,207,17,224,161,177,26,225],r=async()=>(await e(async()=>{let{OffCryptoEncryption:e}=await import(`./B0CDAMDdxSN4en9k.js`);return{OffCryptoEncryption:e}},__vite__mapDeps([0,1,2,3]),import.meta.url)).OffCryptoEncryption,i={key:`offcrypto`,description:`Office Document Encryption`,detect:async e=>!!(e=>{if(e.byteLength<n.length)return!1;let t=new Uint8Array(e,0,n.length);for(let e=0;e<n.length;e++)if(t[e]!==n[e])return!1;return!0})(e)&&(await r()).detect(e),decode:async(e,t)=>(await r()).decode(e,t),encode:async(e,t)=>(await r()).encode(e,t)},a=t(`io-xlsx:reader`,()=>e(()=>import(`./D2TibFqUBAPLcu_2.js`).then(e=>e.t),__vite__mapDeps([4,5,2,1,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url)),o=t(`io-xlsx:writer`,()=>e(()=>import(`./CX-ITg5RXdV2cefd.js`),__vite__mapDeps([18,1,2,6,7,8,9,10,11,12,13,14,15,17,16,19]),import.meta.url)),s=`Excel`,c=`ExcelMacro`,l=`ExcelTemplate`,u=`ExcelMacroTemplate`,d=[s,c,l,u],f={key:s,description:`Excel Workbook`,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,exts:[`xlsx`,`xls`],handler:async(e,t)=>(await a.load()).readXLSX(e,t)},p={key:c,description:`Excel Macro-Enabled Workbook`,mimeType:`application/vnd.ms-excel.sheet.macroEnabled.12`,exts:[`xlsm`],handler:async(e,t)=>(await a.load()).readXLSX(e,t)},m={key:l,description:`Excel Template`,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.template`,exts:[`xltx`],handler:async(e,t)=>(await a.load()).readXLSX(e,t)},h={key:u,description:`Excel Macro-Enabled Template`,mimeType:`application/vnd.ms-excel.template.macroEnabled.12`,exts:[`xltm`],handler:async(e,t)=>(await a.load()).readXLSX(e,t)},g={key:s,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,description:`Excel Workbook`,exts:[`xlsx`],handler:async(e,t)=>(await o.load()).writeXLSX(e,{...t,macroEnabled:!1})},_={key:c,mimeType:`application/vnd.ms-excel.sheet.macroEnabled.12`,description:`Excel Macro-Enabled Workbook`,exts:[`xlsm`],handler:async(e,t)=>(await o.load()).writeXLSX(e,{...t,macroEnabled:!0})},v={key:l,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.template`,description:`Excel Template`,exts:[`xltx`],handler:async(e,t)=>(await o.load()).writeXLSX(e,{...t,macroEnabled:!1,template:!0})},y={key:u,mimeType:`application/vnd.ms-excel.template.macroEnabled.12`,description:`Excel Macro-Enabled Template`,exts:[`xltm`],handler:async(e,t)=>(await o.load()).writeXLSX(e,{...t,macroEnabled:!0,template:!0})},b={name:`@sheetxl/io-xlsx`,version:`1.0.0`,description:`XLSX I/O formats for SheetXL`,author:`SheetXL`,async register(e){await e.registerReadFormat(f),await e.registerReadFormat(p),await e.registerReadFormat(m),await e.registerReadFormat(h),await e.registerWriteFormat(g),await e.registerWriteFormat(_),await e.registerWriteFormat(v),await e.registerWriteFormat(y),await e.registerEncryption(i)}};export{b as n,d as t};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B0CDAMDdxSN4en9k.js","./D4RZZdlItfrgQHcE.js","./HclGiUj8dZXDFmoM.js","./CHlWgOAlcRCjVuhg.js","./Beaq1eo3pAjlfcba.js","./CGvyz3VVFiHbYHM0.js","./COL9dj40ytErlGak.js","./3Ls_kOvlQseMV8Q0.js","./nHThFXCAZFOM_npq.js","./CQukCzhuewMuFOlO.js","./BqJRJVrx7XkIPgo7.js","./BQTLEc84Eql61S2m.js","./BQnELVV0uR4T4ItQ.js","./CnXLpFE_vFrJ5Jbf.js","./Np3jWxG724t5hLHZ.js","./BGoGxqwlpgXt8CMd.js","./B5GO9v4p9L70Xb9i.js","./DMbhlzvflyxF5Clt.js","./C-qNpEaGV5amWPml.js","./CVEUOXnI1pTa-GKp.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./HclGiUj8dZXDFmoM.js";import{B as t}from"./D4RZZdlItfrgQHcE.js";var n=[208,207,17,224,161,177,26,225],r=async()=>(await e(async()=>{let{OffCryptoEncryption:e}=await import(`./B0CDAMDdxSN4en9k.js`);return{OffCryptoEncryption:e}},__vite__mapDeps([0,1,2,3]),import.meta.url)).OffCryptoEncryption,i={key:`offcrypto`,description:`Office Document Encryption`,detect:async e=>!!(e=>{if(e.byteLength<n.length)return!1;let t=new Uint8Array(e,0,n.length);for(let e=0;e<n.length;e++)if(t[e]!==n[e])return!1;return!0})(e)&&(await r()).detect(e),decode:async(e,t)=>(await r()).decode(e,t),encode:async(e,t)=>(await r()).encode(e,t)},a=t(`io-xlsx:reader`,()=>e(()=>import(`./Beaq1eo3pAjlfcba.js`).then(e=>e.t),__vite__mapDeps([4,5,2,1,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url)),o=t(`io-xlsx:writer`,()=>e(()=>import(`./C-qNpEaGV5amWPml.js`),__vite__mapDeps([18,1,2,6,7,8,9,10,11,12,13,14,15,17,16,19]),import.meta.url)),s=`Excel`,c=`ExcelMacro`,l=`ExcelTemplate`,u=`ExcelMacroTemplate`,d=[s,c,l,u],f={key:s,description:`Excel Workbook`,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,exts:[`xlsx`,`xls`],handler:async(e,t)=>(await a.load()).readXLSX(e,t)},p={key:c,description:`Excel Macro-Enabled Workbook`,mimeType:`application/vnd.ms-excel.sheet.macroEnabled.12`,exts:[`xlsm`],handler:async(e,t)=>(await a.load()).readXLSX(e,t)},m={key:l,description:`Excel Template`,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.template`,exts:[`xltx`],handler:async(e,t)=>(await a.load()).readXLSX(e,t)},h={key:u,description:`Excel Macro-Enabled Template`,mimeType:`application/vnd.ms-excel.template.macroEnabled.12`,exts:[`xltm`],handler:async(e,t)=>(await a.load()).readXLSX(e,t)},g={key:s,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,description:`Excel Workbook`,exts:[`xlsx`],handler:async(e,t)=>(await o.load()).writeXLSX(e,{...t,macroEnabled:!1})},_={key:c,mimeType:`application/vnd.ms-excel.sheet.macroEnabled.12`,description:`Excel Macro-Enabled Workbook`,exts:[`xlsm`],handler:async(e,t)=>(await o.load()).writeXLSX(e,{...t,macroEnabled:!0})},v={key:l,mimeType:`application/vnd.openxmlformats-officedocument.spreadsheetml.template`,description:`Excel Template`,exts:[`xltx`],handler:async(e,t)=>(await o.load()).writeXLSX(e,{...t,macroEnabled:!1,template:!0})},y={key:u,mimeType:`application/vnd.ms-excel.template.macroEnabled.12`,description:`Excel Macro-Enabled Template`,exts:[`xltm`],handler:async(e,t)=>(await o.load()).writeXLSX(e,{...t,macroEnabled:!0,template:!0})},b={name:`@sheetxl/io-xlsx`,version:`1.0.2`,description:`XLSX I/O formats for SheetXL`,author:`SheetXL`,async register(e){await e.registerReadFormat(f),await e.registerReadFormat(p),await e.registerReadFormat(m),await e.registerReadFormat(h),await e.registerWriteFormat(g),await e.registerWriteFormat(_),await e.registerWriteFormat(v),await e.registerWriteFormat(y),await e.registerEncryption(i)}};export{b as n,d as t};
@@ -7,7 +7,7 @@
7
7
  html, body { margin: 0; padding: 0; background: #fff; overflow: hidden; }
8
8
  #root { position: absolute; inset: 0; }
9
9
  </style>
10
- <script type="module" crossorigin src="./assets/BzI5CCx73aXausKb.js"></script>
10
+ <script type="module" crossorigin src="./assets/DQxI7bShZ7TKpL0V.js"></script>
11
11
  <link rel="modulepreload" crossorigin href="./assets/CbXtAM7H-Jg_J0dk.js">
12
12
  <link rel="modulepreload" crossorigin href="./assets/gU2zeJaXoNh7QI_e.js">
13
13
  <link rel="modulepreload" crossorigin href="./assets/DKVB6ddRfDJatYid.js">
@@ -17,14 +17,14 @@
17
17
  <link rel="modulepreload" crossorigin href="./assets/HclGiUj8dZXDFmoM.js">
18
18
  <link rel="modulepreload" crossorigin href="./assets/D4RZZdlItfrgQHcE.js">
19
19
  <link rel="modulepreload" crossorigin href="./assets/DdmX3djBOA6UCZtf.js">
20
- <link rel="modulepreload" crossorigin href="./assets/DJebrQ5mu8uxpX3b.js">
21
- <link rel="modulepreload" crossorigin href="./assets/C-2hBFk27roWkIrQ.js">
20
+ <link rel="modulepreload" crossorigin href="./assets/DwHci99xcnRTEcv5.js">
21
+ <link rel="modulepreload" crossorigin href="./assets/CraI-__UdtaIvbNn.js">
22
22
  <link rel="modulepreload" crossorigin href="./assets/D72Rp__0TEqJ972a.js">
23
- <link rel="modulepreload" crossorigin href="./assets/jteb4n23QwBT9m_4.js">
24
- <link rel="modulepreload" crossorigin href="./assets/Bt7fKk5ZupUuo_xD.js">
23
+ <link rel="modulepreload" crossorigin href="./assets/DszZ1A807YzTc0ek.js">
24
+ <link rel="modulepreload" crossorigin href="./assets/CbTBuiF_Jn72hoj1.js">
25
25
  <link rel="modulepreload" crossorigin href="./assets/BTOQaSn9DDyJPUlX.js">
26
26
  <link rel="modulepreload" crossorigin href="./assets/CBP4y6KFPu24xhDT.js">
27
- <link rel="modulepreload" crossorigin href="./assets/BpJaTpbR_CQzXj9M.js">
27
+ <link rel="modulepreload" crossorigin href="./assets/DSB_SKy2lKI_VGik.js">
28
28
  <link rel="modulepreload" crossorigin href="./assets/C9SC-cEIt6gdhZRw.js">
29
29
  <link rel="modulepreload" crossorigin href="./assets/BowRIybLgENunTOT.js">
30
30
  <link rel="modulepreload" crossorigin href="./assets/3Ls_kOvlQseMV8Q0.js">
@@ -35,9 +35,9 @@
35
35
  <link rel="modulepreload" crossorigin href="./assets/BQnELVV0uR4T4ItQ.js">
36
36
  <link rel="modulepreload" crossorigin href="./assets/CnXLpFE_vFrJ5Jbf.js">
37
37
  <link rel="modulepreload" crossorigin href="./assets/Np3jWxG724t5hLHZ.js">
38
- <link rel="modulepreload" crossorigin href="./assets/BwYQTcPRDDYIeAA5.js">
38
+ <link rel="modulepreload" crossorigin href="./assets/BqJRJVrx7XkIPgo7.js">
39
39
  <link rel="modulepreload" crossorigin href="./assets/DYYzsN95gWMsxOaj.js">
40
- <link rel="modulepreload" crossorigin href="./assets/B8Dy_WA9RlWuvMqF.js">
40
+ <link rel="modulepreload" crossorigin href="./assets/BGoGxqwlpgXt8CMd.js">
41
41
  </head>
42
42
  <body>
43
43
  <div id="root"></div>
@@ -1,14 +0,0 @@
1
- /**
2
- * @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v1.0.0
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: SheetXL EULA — https://www.sheetxl.com/eula
6
- */
7
- import { $ as a, A as s, B as e, C as o, D as t, E as r, F as l, G as i, H as n, I as c, J as I, K as m, L as g, M as d, N as C, O as S, P as p, Q as R, R as u, S as L, St as T, T as E, U as h, V as k, W as y, X as b, Y as f, Z as F, _ as O, _t as x, a as P, at as v, b as D, bt as A, c as U, ct as N, d as _, dt as M, et as B, f as w, ft as K, g as W, gt as j, h as V, ht as z, i as G, it as H, j as X, k as $, l as J, lt as Q, m as Y, mt as Z, n as q, nt as aa, o as sa, ot as ea, p as oa, pt as ta, q as ra, r as la, rt as ia, s as na, st as ca, t as Ia, tt as ma, u as ga, ut as da, v as Ca, vt as Sa, w as pa, x as Ra, xt as ua, y as La, yt as Ta, z as Ea } from "./DzYvbv5u7E2H7IoB.js";
8
- import { a as ha, i as ka, o as ya } from "./BaZAIwIrqn1x69WH.js";
9
- import { D as ba, E as fa, J as Fa, Jt as Oa, L as xa, Lt as Pa, Ot as va, Q as Da, Xt as Aa, b as Ua, ct as Na, g as _a, k as Ma, s as Ba, tt as wa, u as Ka, w as Wa, x as ja } from "./8hLtXHueDl7B_SEn.js";
10
- import { a as Va, c as za, d as Ga, f as Ha, i as Xa, l as $a, m as Ja, n as Qa, o as Ya, p as Za, r as qa, s as as, t as ss, u as es } from "./8mWHFnE0j-CaNsxr.js";
11
- import { $ as os, $n as ts, $r as rs, $t as ls, Ai as is, B as ns, Bn as cs, D as Is, Da as ms, Dr as gs, En as ds, Et as Cs, I as Ss, Ir as ps, It as Rs, J as us, Ka as Ls, Kt as Ts, Mr as Es, Nn as hs, O as ks, Pn as ys, Pt as bs, Qa as fs, Qn as Fs, Rn as Os, Sn as xs, St as Ps, Ta as vs, Ti as Ds, Tn as As, Tr as Us, V as Ns, Wn as _s, Xr as Ms, Xt as Bs, Y as ws, Zi as Ks, Zn as Ws, Zr as js, _a as Vs, ba as zs, br as Gs, bt as Hs, ct as Xs, da as $s, di as Js, en as Qs, f as Ys, fa as Zs, fr as qs, ft as ae, gt as se, h as ee, hi as oe, ho as te, i as re, ii as le, ir as ie, jn as ne, ka as ce, kn as Ie, kt as me, l as ge, la as de, lt as Ce, ma as Se, on as pe, pi as Re, r as ue, ri as Le, rr as Te, ta as Ee, v as he, va as ke, vi as ye, vr as be, vt as fe, w as Fe, wt as Oe, xi as xe, yn as Pe } from "./Dcw7GSCgw_dgsum7.js";
12
- import { n as ve, r as De } from "./DOXj80NXiglJXsMZ.js";
13
- import { A as Ae, C as Ue, D as Ne, E as _e, F as Me, I as Be, L as we, M as Ke, N as We, O as je, P as Ve, R as ze, S as Ge, T as He, _ as Xe, a as $e, b as Je, c as Qe, d as Ye, f as Ze, g as qe, h as ao, i as so, j as eo, k as oo, l as to, m as ro, n as lo, o as io, p as no, r as co, s as Io, t as mo, u as go, v as Co, w as So, x as po, y as Ro, z as uo } from "./Da0CtWhc7saaOdER.js";
14
- export { Zs as AbstractCollection, ka as AbstractMovableContent, fs as AddressUtils, o as AnchorLocation, _e as ArrayBackingStore, me as AutoFill, ia as AxisSelection, ao as BUILD_DATE, Q as BufferLogger, ua as BufferUtils, Ls as CellControlRegistry, Ss as CellImage, Ns as CellImageKind, x as ChainedError, qs as ChartElementSelection, De as ChartKinds, Ys as CheckboxKind, u as ClipboardUtils, ba as Color, P as CommonMessages, z as CommonUtils, ls as Condition, d as ConsoleLogger, S as ConsoleNotifier, ea as CoordUtils, qa as DEFAULT_LOCALE_PROFILE, p as DEFAULT_LOG_TIMEOUT_MS, K as DOMUtils, Js as DateUtils, L as DefaultLanguagePackService, Je as DefaultWorkbookIO, l as Deferred, pa as Direction, W as ENGLISH_TAG, te as EXTERNAL_LINK_PATH_REL_TYPE, Sa as ErrorUtils, ma as ExpectedError, lo as ExternalRangeClipboardItem, Be as FONTS_KIND, Qe as Fetcher, Da as FontUtils, Ja as FormulaContext, es as FormulaError, Fe as FormulaText, po as FunctionDeclarations, Fs as GeomUtils, Pe as Hyperlink, Ps as HyperlinkKind, Qs as IAnchored, Oa as IBorders, ge as ICalculation, Le as ICell, je as ICellHeaderRange, vs as ICellRange, Ke as ICellRanges, xa as ICellStyle, Pa as IColor, is as ICondition, xs as IConditionalFormat, to as ICustomProperty, le as IDataValidation, Io as IDropDown, ja as IEffect, Wa as IFill, Fa as IFont, _s as IFontCollection, fa as IFontStyle, we as IFormControl, _a as IGeometry, so as IMovable, he as IPageLayout, eo as IPicture, Ee as IPivotTable, Za as IRange, Ga as IRangeStats, We as IResource, rs as IRichDataKind, Re as IScript, Ba as IShape, ps as ISheet, Xs as ISlicerStyle, co as ISort, gs as ISparklineGroup, va as IStroke, Gs as ITable, Es as ITableStyle, ws as IText, Na as ITextFrame, Me as ITheme, Ks as IThemeCollection, $e as IWorkbookIO, Ro as IWorkbookView, Ie as IWorksheetView, N as ImageUtils, M as InternalClipboard, Xa as InteropScalarType, t as InvalidPasswordError, Ge as LOCALES_KIND, n as LOG_TIMEOUT_ENV, na as LazyLoadError, La as LazyModules, js as LicenseManager, E as MimeType, Us as MovableContentRegistry, us as NamedStyleCollection, ta as NotImplementedError, I as Notifier, G as NullNotAllowedError, Aa as NumberFormat, as as Observable, F as OutOfBoundsError, V as OverlappingRange, ve as PaintUtils, O as PartialError, A as PasswordRequiredError, uo as PersonCollection, e as ProtectedError, R as RangeAxis, qe as RangeClipboardItem, y as RangeSweep, mo as RectAlignment, ne as Registry, Ts as Resource, Os as ResourceCollection, ys as RichArray, de as RichArrayKind, Is as RichDataCollection, Bs as RichDataRegistry, ie as RichRecord, ks as RichText, Rs as RichTextKind, He as SHEETXL_RESOURCE_KINDS, Ma as SYSTEM_COLOR_CSS_PREFIX, Ya as Scalar, Ha as ScalarType, Qa as ScopedFormulaContext, J as SelectionTraversalUtils, Ua as ShapeStyleUtils, cs as SimpleFontFace, $s as SlicerStyleCollection, ae as Sort, Se as StringCollection, ss as StubbedFormulaContext, ue as StyleCollection, Ze as Table, fe as TableStyleCollection, Ms as TextRotation, pe as TextStacked, ts as TextUtils, Oe as Theme, As as ThemeCollection, Ia as TimerUtils, ya as TransactionConflictError, io as TransactionSaveStateManager, ha as TransactionStore, go as TransactionUndoManager, ye as Tuple, s as TypedError, Y as TypedObject, r as TypesUtils, c as UndoManager, ze as VERSION, za as ValueKind, $a as WildCard, Ve as Workbook, Ae as WorkbookIO, Xe as WorkbookOrigin, no as WorkbookView, se as Worksheet, H as addResourceRoot, So as builtInStyleNameDisplay, xe as createCellRangeCounts, Co as createChart, D as createLanguagePackService, b as createLogChannels, ca as createPieceStore, sa as createSeededRandom, m as defineLazyModule, Te as externalBookClosedName, hs as externalBookFileName, Ws as externalBookLocation, re as externalBookOpenName, f as fetchLocaleResource, C as fetchLocaleResourceAll, ee as findLabel, U as formatMessage, Ne as getBuiltInFunctionNames, bs as getLanguagePack, Ka as getLocaleProfile, i as getLocaleResourceBase, ke as getScriptRuntime, Ye as getScriptingApi, oo as getScriptingDeclarations, g as growInt32, a as growPieces, T as hashText, Ra as instantiateWasmBindgen, w as instantiateWasmBindgenSync, q as interpolate, Va as isLazyValue, la as keyedRandom, h as listLocaleResources, X as listResources, aa as loadPackageLocales, Z as loadResource, Cs as localizeBoolean, ns as localizeErrorLabel, wa as makeLocaleProfile, da as mergeMessageFiles, ga as messageKey, os as normalizeLabel, $ as onResourceRootsChange, ds as parseBooleanLocal, Ce as parseErrorLocal, Vs as parseExternalScope, Ue as parseFormulaLiteral, j as parseLogTimeout, be as pivotBoxOf, zs as pivotCellFormatsOf, ce as pivotControlsIn, oe as pivotFieldAt, ro as pivotStylePreviewOf, Ca as registerPackageMessages, Hs as registerSdkLocales, Ta as releaseChannel, k as resolveLocaleChain, v as resolveLocaleResource, Ea as resolveLogTimeout, B as setLocaleResourceBase, Ds as sourceEntryFromPath, oa as t, _ as trackLocaleRegistration, ra as whenLocalesRegistered, ms as withScriptRuntime };