@sheetxl/studio-vanilla 0.7.28-beta.4 → 0.8.0-beta.1

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 (336) hide show
  1. package/browser/cjs/2zXD3NPfuQT2KSZq.cjs +7 -0
  2. package/browser/cjs/{C7GpcB_YgM-RLa2P.cjs → B19QM3SGmPKKwD_o.cjs} +1 -1
  3. package/browser/cjs/B5YBx0GqLor3i0O1.cjs +1 -0
  4. package/browser/cjs/{X1LnR885SNQaK5HZ.cjs → B9EI7wviSkHS9ZkH.cjs} +1 -1
  5. package/browser/cjs/BC2gCQkR1iykfAuC.cjs +1 -0
  6. package/browser/cjs/{BbEwESVyRYXzMlW7.cjs → BEVqcFGFU6Ri9y8T.cjs} +1 -1
  7. package/browser/cjs/{mXzhcays1ok40iiU.cjs → BEzaum_kgG4yAOx0.cjs} +1 -1
  8. package/browser/cjs/{FUM_3mQlC-6WPjkT.cjs → BIQZDBQfv3Qm5iC8.cjs} +2 -2
  9. package/browser/cjs/{NzAMMcPT7SETmqPg.cjs → BSCgCfORdZz1Ii5S.cjs} +2 -2
  10. package/browser/cjs/{CxWeFfNAUvhHe9F-.cjs → BZr-IqNS1skh1hr6.cjs} +2 -2
  11. package/browser/cjs/BfzzZ9IR27ZPzj-8.cjs +3 -0
  12. package/browser/cjs/Bgke3PtMSF2Iaen4.cjs +1 -0
  13. package/browser/cjs/{n4ZQ0-3uSrEsInbg.cjs → BziOCn_XEGT4ynN5.cjs} +1 -1
  14. package/browser/cjs/C-HOJozu5NgCil1q.cjs +1 -0
  15. package/browser/cjs/{iyvcAhhnDFxkR8tW.cjs → C2oTW2DjZypuqq7x.cjs} +1 -1
  16. package/browser/cjs/{C0hGnOYkvrwxaGrw.cjs → C5rQELB0TUeXY6VM.cjs} +1 -1
  17. package/browser/cjs/C6yxQPAEgcGWAhYR.cjs +33 -0
  18. package/browser/cjs/{DMp9wql2kbZKAbGe.cjs → CPgCih_KEqnUZ9Rv.cjs} +1 -1
  19. package/browser/cjs/CSNCOmYEOR-iTJ7K.cjs +5 -0
  20. package/browser/cjs/{Ck7Tc5npWk73wrF3.cjs → CcneNtiqtKppCa-p.cjs} +2 -2
  21. package/browser/cjs/{jIxFDc3EQDDXisAC2.cjs → Ci8Uu7_b4lwwRLAD2.cjs} +1 -1
  22. package/browser/cjs/{zEytED4Eleo5DVvS.cjs → Cm21F18ga8TluA9h.cjs} +1 -1
  23. package/browser/cjs/{kqP-W5qRIy-d-ChZ.cjs → CojEXZgX08waZOoq.cjs} +1 -1
  24. package/browser/cjs/CrDTTLE9EvaGDSD4.cjs +88 -0
  25. package/browser/cjs/{Y78-VwYSNffwXRVz2.cjs → CvV18ZJgssoHMkdf2.cjs} +1 -1
  26. package/browser/cjs/{sFD2bsTPq558FCMx.cjs → Cy-4IMt-AbR-ifP3.cjs} +1 -1
  27. package/browser/cjs/CyGzzWYDy-IniKCq2.cjs +7 -0
  28. package/browser/cjs/CzgwTfy2072Dmt5u.cjs +1 -0
  29. package/browser/cjs/{CEpXnHhrczUmIwMa2.cjs → D19RglhKiroWfpQn2.cjs} +1 -1
  30. package/browser/cjs/DFHxNnJ-lHtv0hIq.cjs +1 -0
  31. package/browser/cjs/{DAA0zpvkrMOLDPxr.cjs → DH3WXPfGHwWJW0nH.cjs} +1 -1
  32. package/browser/cjs/{DcHxh5QxfVitzdhv.cjs → DNy-UU3NKNqQQngF.cjs} +1 -1
  33. package/browser/cjs/{stXrcKZOIHl0fq5U2.cjs → DPjEO7dwhCFd8DHR2.cjs} +1 -1
  34. package/browser/cjs/{CnjaTz8HJXStwuH8.cjs → DfMJOaJ0GcUiSn4Q.cjs} +1 -1
  35. package/browser/cjs/{J7LQgueGGNUE9emR.cjs → DiZDRPIgbO3sQ8Vb.cjs} +1 -1
  36. package/browser/cjs/{DQTBgNqDHInvxrwS.cjs → DsIHLUKUrSrYhFHl.cjs} +1 -1
  37. package/browser/cjs/{Dkgu60euhL6wPoYa2.cjs → DvSvfeo9V0Abfd3q2.cjs} +1 -1
  38. package/browser/cjs/{C9L-xibuJ434Mqqq2.cjs → DxQkFYAFNZubVdn22.cjs} +1 -1
  39. package/browser/cjs/{DgGGzl7jq3i7Cqfi.cjs → E-IqDztfMb_xdszH.cjs} +1 -1
  40. package/browser/cjs/{BFdq8CHyR6FQvmQA2.cjs → ElcoSB--cCpS6i7R2.cjs} +1 -1
  41. package/browser/cjs/KNCocKN9uPR0tvUS.cjs +1 -0
  42. package/browser/cjs/{D-o-mlG9tYSuZrvy2.cjs → Kr8f1inOTt-MICaP2.cjs} +1 -1
  43. package/browser/cjs/{Cu0UCwSpRK4OnCuP.cjs → PM3PrEWG3WHKxaDx.cjs} +1 -1
  44. package/browser/cjs/{QK9BfdSZPLmyRpGi2.cjs → YG320hBA20Dl3HoU2.cjs} +1 -1
  45. package/browser/cjs/{M19oMY91yZxf2WAR.cjs → _H5j4dU7HOBYTawU.cjs} +1 -1
  46. package/browser/cjs/a0Z-SXs_N71CtqYb2.cjs +1 -0
  47. package/browser/cjs/{DtaFdoK4CppKRF6F2.cjs → aYuNpndpwcZG5eik2.cjs} +1 -1
  48. package/browser/cjs/bGMaev70Zd_NXqLM2.cjs +1 -0
  49. package/browser/cjs/bIaGoYEDSBCrAaB6.cjs +1 -0
  50. package/browser/cjs/{BKXFdLiztqEHIjQ_2.cjs → hzUo76TXMOBqsI3U2.cjs} +1 -1
  51. package/browser/cjs/i2VboqjlOcozI9MQ.cjs +12 -0
  52. package/browser/cjs/index.cjs +1 -1
  53. package/browser/cjs/xBcvszV6x7ys-m532.cjs +1 -0
  54. package/browser/esm/{Duo6t8_BzIiBDrFm.mjs → -vgNEEXiEad4bltZ.mjs} +3417 -3070
  55. package/{cdn/assets/BzktrYJH7SQ9GyUI2.js → browser/esm/1guzFZp1LHz_FwfL.mjs} +1 -1
  56. package/browser/esm/{Bz3-FDGVU67Izdnv2.mjs → 3y_bCend8tkaewDG2.mjs} +7 -7
  57. package/{cdn/assets/CBC_MJL6Bwk7bzQz2.js → browser/esm/47Yv4X226-93If7L.mjs} +1 -1
  58. package/browser/esm/{pFBVGSvmImMMDMuJ.mjs → 7rixDGGrR72lXkMV.mjs} +5 -5
  59. package/browser/esm/{CXDtDYyREwoFwtMJ2.mjs → 8V-VceXEjpADM8qK2.mjs} +1 -1
  60. package/browser/esm/{5LJ1sC7IPn109Ien.mjs → 8f9hCbpXTTYEgG312.mjs} +2 -2
  61. package/browser/esm/{CXlA71yGA1Hqvp_S.mjs → 9_bymSfTn_rR_v6W.mjs} +5 -5
  62. package/browser/esm/{DimkHq0_x-d4uNdV.mjs → At60x9FEPePwPP_J.mjs} +6444 -6051
  63. package/browser/esm/{O982fBwJ80FSdhad.mjs → B0HA_dHcr0kKfudQ.mjs} +40 -40
  64. package/browser/esm/{C3dXBjR3SrDCdJlm.mjs → B1NoGosH2YQh01g7.mjs} +6 -6
  65. package/browser/esm/{DhgwMDb052opCiAA.mjs → B4h6iO7hQ9lCR7kj.mjs} +332 -332
  66. package/browser/esm/{DmqS0kz7jvlOw3qr.mjs → B4iT_CduJeJunwBc.mjs} +2 -2
  67. package/browser/esm/{BZSAb1WGbwagUKGv2.mjs → B4vYIE3kSPTxCgpf2.mjs} +5 -5
  68. package/browser/esm/{DLArQtAbWAarI8od2.mjs → B5ZqqASTcBEV5L9K2.mjs} +1 -1
  69. package/browser/esm/{CxKAnYBWCYMkUpnr.mjs → BBtOlJMVlsWorNJH.mjs} +189 -189
  70. package/browser/esm/{BZkd8LNLgEd5WQXO2.mjs → BCZjYGV8AqIZghBH.mjs} +1 -1
  71. package/{cdn/assets/DRAYZ0SGlbCLkftR.js → browser/esm/BCkXtOM3yKocv7L-2.mjs} +1 -1
  72. package/{cdn/assets/Dgt8kua8CYlMRfdw.js → browser/esm/BD7RxHQgrqy_4tb5.mjs} +2 -2
  73. package/{cdn/assets/DtkqR-Hu7K4agnCs2.js → browser/esm/BDkVAo0CDCTE04ZJ2.mjs} +1 -1
  74. package/browser/esm/{L6LjzOx1G9Idjtxa2.mjs → BHBJtVTiQByD_y9j.mjs} +1 -1
  75. package/{cdn/assets/BGAXiHOiX_PZ1ww1.js → browser/esm/BHmYoIIbNW3GdcqV2.mjs} +1 -1
  76. package/{cdn/assets/BF9yh58xfvR0KbSo.js → browser/esm/BLcn1kGRsjURZSzk.mjs} +2 -2
  77. package/browser/esm/{DnMUizHKSRwWpO_7.mjs → BMRav2VAqEzDSp3r2.mjs} +1 -1
  78. package/{cdn/assets/esX6dx06TUUL-cRt.js → browser/esm/BOl4FzJRD7MplCU72.mjs} +1 -1
  79. package/{cdn/assets/D2Ls6urWeByV5W-B.js → browser/esm/BPv6Pw1hW-sV5Fya.mjs} +1 -1
  80. package/browser/esm/{DygUxASTETZM60uN2.mjs → BQDXkeSabbxB5DUB2.mjs} +6 -6
  81. package/browser/esm/{FAHIw2t7_M_rvRio.mjs → BUCKq_2lHPd1ndvw.mjs} +6 -6
  82. package/browser/esm/{B9t9fF8FNCLomgK_.mjs → BVRzmIk5PujkT_Ap.mjs} +5 -5
  83. package/{cdn/assets/BaIe3fLfPLw3FbYP2.js → browser/esm/BVjXdv_wkL1x_8ZJ2.mjs} +1 -1
  84. package/browser/esm/{CElACTFuqPAnCAMJ.mjs → BX4f6i2WMBMKFVCq.mjs} +4 -4
  85. package/browser/esm/{HFqcMD9nTL0jdLxT.mjs → BZsx0QHg1RZlM9ZN.mjs} +1 -1
  86. package/browser/esm/{Dwko6HB2zePBBeBu2.mjs → BceIETi6JJRW6Ss62.mjs} +9 -9
  87. package/browser/esm/{B3tC7wY_kUGXf5sb2.mjs → Be4QC65cR8N84rTn.mjs} +1 -1
  88. package/browser/esm/{Cye91DfKIFwRdDpF.mjs → BhxX7CZWSOlV2Dsz.mjs} +7 -7
  89. package/browser/esm/{CFtsbobCiLpZIzCh.mjs → BhzLZRz2N8RxjQ_U.mjs} +3 -3
  90. package/browser/esm/{DGfzktq0BrIwcb8j.mjs → BjTf3XA9Swj0ngpH.mjs} +2 -2
  91. package/browser/esm/{CfjG7gHJ4oN60Clj.mjs → BkSb_vyWe-AhyEDa.mjs} +3 -3
  92. package/browser/esm/{XBb7Mxqf0beXaSJt.mjs → Bl6bX86tSq8hfyb2.mjs} +6 -6
  93. package/browser/esm/{BgwHVPZp494SgQ0d2.mjs → Blc1T4zLkp8bRC_n2.mjs} +7 -7
  94. package/browser/esm/{BgNWvKfVoVgVVDB4.mjs → Bp9qFBIcpIGXvMgo.mjs} +13 -13
  95. package/browser/esm/{Cd8G1nX1dKzp-mho2.mjs → BqTFwWLbXXJ0Fu-X2.mjs} +1 -1
  96. package/browser/esm/{DHQcJqD-EtJ0Efug2.mjs → BqwvP0318zI2izeL2.mjs} +9 -9
  97. package/browser/esm/{ByJMrAYRARLc7uZQ2.mjs → Bv_96nwOEMHN9Sa02.mjs} +1 -1
  98. package/{cdn/assets/D5BuXc-kVnr6Xiae2.js → browser/esm/BykiUmcpDgSRNQI12.mjs} +1 -1
  99. package/browser/esm/{BkBT2LB95lonIiBu.mjs → C0rS1uBqfsj-gPR8.mjs} +9 -9
  100. package/browser/esm/{BjYIAiuzZbD-dk822.mjs → C1ZePT2B182vSnxW2.mjs} +1 -1
  101. package/browser/esm/{CRsnKeHAnKrWvuG52.mjs → C6CK_4GD9IpxKglV2.mjs} +792 -792
  102. package/browser/esm/{Ykh10IaXTKA2XWot.mjs → CAPgMrAKg07EREFD.mjs} +1 -1
  103. package/browser/esm/{BetL7yI63lEdQ0gM.mjs → CEN8dYSpN2oew8HH.mjs} +1 -1
  104. package/{cdn/assets/BRBHACVjnV1_6VLQ.js → browser/esm/CG5v2hAwGR5Ptufn.mjs} +1 -1
  105. package/browser/esm/CGGJWgWSPZ0aP_C3.mjs +87 -0
  106. package/{cdn/assets/CsKCqLuggHhYC93k.js → browser/esm/CGqvy5LwQ4z9J2oD2.mjs} +1 -1
  107. package/{cdn/assets/CbJ_xQftC08KrH3E.js → browser/esm/CGyydD3tRb0ik50l2.mjs} +1 -1
  108. package/browser/esm/{DjS4iUli-T3uuUfK.mjs → CH0of3GZTzHviuQV.mjs} +1 -1
  109. package/{cdn/assets/DJSXXWTUJGbXqLLx.js → browser/esm/CJPemkFUzhcAD_qR.mjs} +1 -1
  110. package/browser/esm/{C4vqrW3EmJDy1otX.mjs → COA_SZY2x8q6t4BD.mjs} +1 -1
  111. package/browser/esm/{D_8B8jIlshd3eTIO2.mjs → CPUlpDM6aAzZzCat2.mjs} +11 -11
  112. package/browser/esm/{BsP1iPcd49wYIIoP.mjs → CQM87ZBN7Yzn4Yxr.mjs} +3 -3
  113. package/{cdn/assets/BPAEbeXV75XIAS4n.js → browser/esm/CR3jgkduTLczbMjH2.mjs} +1 -1
  114. package/{cdn/assets/6L6HfOFw1xzxXtf22.js → browser/esm/CU1d8OvDv5TU6fSd.mjs} +155 -155
  115. package/{cdn/assets/B6Y_HasaiihQLVYz2.js → browser/esm/CY1zykikO58_ADk8.mjs} +121 -121
  116. package/browser/esm/{s4trFf5sOSGNEzr3.mjs → CZWIS7FuqNjbheSw.mjs} +6 -6
  117. package/browser/esm/{BT2mYkpZGrhWovkv2.mjs → Cb-FUOYcyRSkHG6u2.mjs} +11 -11
  118. package/{cdn/assets/D4aK0uTRJQpM63922.js → browser/esm/Cbw0JeJURvQyxIoa.mjs} +1 -1
  119. package/browser/esm/{CFVzVz9BCRBowBea.mjs → Cc5IufffX4N-8QpE.mjs} +3 -3
  120. package/browser/esm/{BqMvXD8dX4ksYjnj.mjs → Cd8HXAJlflkkTXxc.mjs} +3 -3
  121. package/browser/esm/{DrKUGkrCTKZHu8XC.mjs → CdMv3f8Gyxh8q2RR2.mjs} +1 -1
  122. package/browser/esm/{DnCkPg9-xb3RvxD-.mjs → CfuhUkrvOq11d9FR.mjs} +7 -7
  123. package/{cdn/assets/MHuhAgQAA8zcnWkd2.js → browser/esm/CfvrjQGuf7vXiQCB.mjs} +1 -1
  124. package/browser/esm/{Bj3gyDL2ZJUDcxt72.mjs → Ckl3FLCOeqw7yhkP2.mjs} +8 -8
  125. package/browser/esm/{BxecIrskOMQZB-Xc.mjs → Clfp7SznkOrJoQvL.mjs} +1 -1
  126. package/browser/esm/{DuJ_gK9f35IbKDd6.mjs → CpjX81WsWJbXMUoT.mjs} +185 -181
  127. package/browser/esm/{D8zyGG6yt4CsyA8K.mjs → CsufM5aF6VTLKDWM.mjs} +7 -7
  128. package/{cdn/assets/Bce8ZTUCpXr5Y_zl2.js → browser/esm/CtXoSHbCUKMY-tSJ.mjs} +1 -1
  129. package/browser/esm/{hsy1zALC1oNNm5Sf.mjs → D3G3tI3DVCUF3Gdk.mjs} +1 -1
  130. package/browser/esm/{DER7-kADXFnTmK-32.mjs → D4VqLbEWag8lTWzC2.mjs} +13 -13
  131. package/browser/esm/{Bjx-9lUaScF5-Hki2.mjs → D6SKy2BtcWkhfiA02.mjs} +1 -1
  132. package/browser/esm/{B_U_UpQXdbjNRthb.mjs → D9-wpGVbTS9rRpxx.mjs} +1 -1
  133. package/browser/esm/{BrUe0MnOhxzeOngn2.mjs → DBL3Qp5jyPrFg7KI2.mjs} +1 -1
  134. package/browser/esm/{B-dSKzg5shPDd733.mjs → DDOO4tcrO4OfMUDe.mjs} +1 -1
  135. package/browser/esm/DDUYQ8FPeh1TJU24.mjs +538 -0
  136. package/browser/esm/{CJ-lOo2cXlcYrg2P.mjs → DFdU1DsC1lXOrejZ.mjs} +950 -945
  137. package/browser/esm/{DdtDlBp6KJZjL28o.mjs → DMLwXmjo28k_iNEU.mjs} +5 -10
  138. package/browser/esm/{BzktrYJH7SQ9GyUI.mjs → DMX-ZlC_ljcf7oUN.mjs} +1 -1
  139. package/{cdn/assets/DOsKUeLPwFIdzQv32.js → browser/esm/DQ-0yyFAwoWtxmhV2.mjs} +1 -1
  140. package/{cdn/assets/BGWyNjrM55ce-D1o.js → browser/esm/DQ4o4dG7gWbL1X8F2.mjs} +1 -1
  141. package/{cdn/assets/CmYCYFWjq9KP6xw7.js → browser/esm/DRc_Wi5c7WdKHTVN2.mjs} +1 -1
  142. package/{cdn/assets/CY7qR8ENX314HrrD.js → browser/esm/DTaVECXVrgvC48BE.mjs} +3 -3
  143. package/browser/esm/{DFQGftDcmDwUGxV8.mjs → DVJd6McdAG5udItH.mjs} +5 -5
  144. package/browser/esm/{B6bX01HNxwBooBTX2.mjs → DVQNQmjI2PKkwiOw2.mjs} +15 -15
  145. package/browser/esm/{BJQfvwvEke-uN0_02.mjs → DVZ_UnchuMRveDG32.mjs} +4 -4
  146. package/{cdn/assets/Bh4hZt6639QZusIG.js → browser/esm/DW72HwfnJtQxzoGa.mjs} +2 -2
  147. package/browser/esm/{CHmSnCPoww1StSta.mjs → DXWmgQSeh0_HDxZj.mjs} +4 -4
  148. package/{cdn/assets/FVJ1akngxeMiYwPa.js → browser/esm/DZbR5R1fNikjgqYb.mjs} +1 -1
  149. package/{cdn/assets/C7xBBqvPqat9oEft2.js → browser/esm/D_t53-8k73CNpV-p.mjs} +72 -46
  150. package/browser/esm/{DhW7Cqyuxk7D6zsW.mjs → D_zNx76HGunFi7xJ.mjs} +12 -12
  151. package/browser/esm/{DENx9Ts-f8adXw3Y2.mjs → Dc0BDcQUGy_WIVFa.mjs} +1 -1
  152. package/{cdn/assets/CpEgh9EOkeMvwAuj.js → browser/esm/DfRGH6mEtIVDWEYN2.mjs} +1 -1
  153. package/{cdn/assets/BZXvEddjoz4C8y4w.js → browser/esm/Dg5wjQp0fArKXlM3.mjs} +2 -2
  154. package/browser/esm/{N-koparnupMSl92y.mjs → DnuaqN0xfgqzl8qG.mjs} +231 -231
  155. package/{cdn/assets/CJGlwQusOCSy9ZAb.js → browser/esm/Dnx3_xXfRlD6ECfZ2.mjs} +1 -1
  156. package/browser/esm/{DJk14sSSnSHiEXZ72.mjs → DrUEYcXg6N2D2s1Z2.mjs} +1 -1
  157. package/{cdn/assets/DjfBSoaKM-vtbeqT.js → browser/esm/DtXC6uPF2LLktqFE.mjs} +2 -2
  158. package/browser/esm/{6A8iYjFWJzx5PaTP2.mjs → DuPdSe-EXFTx9dsc2.mjs} +8 -8
  159. package/browser/esm/{DSWdYe7SDB5cYWo5.mjs → DzDwSOBdJh_lx_NM.mjs} +5 -5
  160. package/browser/esm/{Bc2Dp6W4U_22cv7c.mjs → EwzqnZl1lTr56hH-2.mjs} +1 -1
  161. package/browser/esm/{PzCXbVRf1jOHVOAw.mjs → Gy0CHZTvn4hY-rkx2.mjs} +1 -1
  162. package/browser/esm/{CY4ANhbzXqZMJPnL2.mjs → NekeSGoazNCraGNC2.mjs} +7 -7
  163. package/browser/esm/{DM4g0nYgYXgI44dL2.mjs → R5bs6kCQSZmsCXz-.mjs} +1 -1
  164. package/browser/esm/{BQt5lpPjssz4Lvhs.mjs → RW23HF8taEtW8q9D.mjs} +2 -2
  165. package/browser/esm/{-9NsA_4pZqcEQBX7.mjs → fJ1McMt7xzRA_lUX.mjs} +6 -6
  166. package/{cdn/assets/g8dDbkwbYjhKWJM2.js → browser/esm/hFSDx-LnUOObv-6h2.mjs} +1 -1
  167. package/browser/esm/index.mjs +4 -4
  168. package/browser/esm/{BUKNpzG26V0YaAzW.mjs → nguMxPB9LKexKBRX.mjs} +12 -12
  169. package/browser/esm/{BmTSjuGI87QqMA-a.mjs → oYdWyqsKo9ejAdVm.mjs} +2 -2
  170. package/browser/esm/{CTwLETvNO4KeXbkK2.mjs → qG5zdZZAe6mQIJo32.mjs} +1 -1
  171. package/browser/esm/{evPbHV86yom22yGf2.mjs → qzhFT2j-mpQEQnKs.mjs} +2641 -2556
  172. package/browser/esm/{B4fSPDN923nqCDVE2.mjs → vcRSnmAqjwKglEkY.mjs} +1 -1
  173. package/cdn/assets/{hClmI7sWeaBbHo3W2.js → -2S675KWulPRlVNb2.js} +12 -12
  174. package/{browser/esm/BBhB25AlKEzdoI0V.mjs → cdn/assets/1guzFZp1LHz_FwfL2.js} +1 -1
  175. package/cdn/assets/{xMskoOI2CK9-AmBF2.js → 2CuCH0wi9XPgVzE42.js} +7 -7
  176. package/cdn/assets/{CimYGZTVXcjbjrBU2.js → 2UHIeioUPXrwtZy-2.js} +13 -13
  177. package/{browser/esm/CBC_MJL6Bwk7bzQz.mjs → cdn/assets/47Yv4X226-93If7L2.js} +1 -1
  178. package/cdn/assets/{CXDtDYyREwoFwtMJ.js → 8V-VceXEjpADM8qK.js} +1 -1
  179. package/cdn/assets/{5LJ1sC7IPn109Ien.js → 8f9hCbpXTTYEgG31.js} +2 -2
  180. package/{browser/esm/CBuulf8RrSItPZJi.mjs → cdn/assets/B55nrhIK6gAAu4ZA.js} +2 -2
  181. package/cdn/assets/{DLArQtAbWAarI8od.js → B5ZqqASTcBEV5L9K.js} +1 -1
  182. package/cdn/assets/{Dq7WxMef5CTJ47QI2.js → BAhvL7M7ZcgZ8eDc2.js} +7 -7
  183. package/cdn/assets/{BZkd8LNLgEd5WQXO.js → BCZjYGV8AqIZghBH.js} +1 -1
  184. package/{browser/esm/DRAYZ0SGlbCLkftR2.mjs → cdn/assets/BCkXtOM3yKocv7L-.js} +1 -1
  185. package/{browser/esm/DtkqR-Hu7K4agnCs.mjs → cdn/assets/BDkVAo0CDCTE04ZJ.js} +1 -1
  186. package/cdn/assets/{L6LjzOx1G9Idjtxa.js → BHBJtVTiQByD_y9j2.js} +1 -1
  187. package/{browser/esm/BGAXiHOiX_PZ1ww12.mjs → cdn/assets/BHmYoIIbNW3GdcqV.js} +1 -1
  188. package/cdn/assets/{Bfd3T36ocASPZddR.js → BJEpPEyFWtLzMIq-2.js} +389 -385
  189. package/{browser/esm/DxxlSejA2S6YUPWD.mjs → cdn/assets/BKEzd89UphJ8q1pp2.js} +166 -166
  190. package/cdn/assets/{DoJfPxuL3zziG4p62.js → BM7OqAUEUk-up7_82.js} +13 -13
  191. package/cdn/assets/{DnMUizHKSRwWpO_72.js → BMRav2VAqEzDSp3r.js} +1 -1
  192. package/cdn/assets/{B3ZyfwskutLZMYfl2.js → BNuoKAzs4zkxSocG2.js} +7 -7
  193. package/cdn/assets/{DW2yQm-sEcHogX7E.js → BNybEGR813e3aNIv.js} +953 -948
  194. package/{browser/esm/esX6dx06TUUL-cRt.mjs → cdn/assets/BOl4FzJRD7MplCU7.js} +1 -1
  195. package/{browser/esm/D2Ls6urWeByV5W-B2.mjs → cdn/assets/BPv6Pw1hW-sV5Fya.js} +1 -1
  196. package/cdn/assets/{CblzazoiTtSuaAkj.js → BU6uQhQhpaLElTT82.js} +8 -8
  197. package/cdn/assets/{omgRvCRxe7suvog8.js → BVgTMDEoPgsWFmku.js} +105 -105
  198. package/{browser/esm/BaIe3fLfPLw3FbYP2.mjs → cdn/assets/BVjXdv_wkL1x_8ZJ2.js} +1 -1
  199. package/cdn/assets/BWlMK76Aj2d4ygsH.js +538 -0
  200. package/cdn/assets/{HFqcMD9nTL0jdLxT2.js → BZsx0QHg1RZlM9ZN2.js} +1 -1
  201. package/cdn/assets/{B3tC7wY_kUGXf5sb.js → Be4QC65cR8N84rTn2.js} +1 -1
  202. package/cdn/assets/{DP9sLYfGGWMDI7hL2.js → BhDLR-jtbOOG-tl12.js} +25 -25
  203. package/cdn/assets/{B4492m5zRjz4JWIo2.js → BixsQGDDf3Iv_PtW2.js} +5 -10
  204. package/cdn/assets/{JL1xk8XqkuTOA_as2.js → Bl6C6xWT8E6b7OwJ2.js} +18 -18
  205. package/cdn/assets/{Cd8G1nX1dKzp-mho.js → BqTFwWLbXXJ0Fu-X.js} +1 -1
  206. package/cdn/assets/{ByJMrAYRARLc7uZQ.js → Bv_96nwOEMHN9Sa0.js} +1 -1
  207. package/{browser/esm/D5BuXc-kVnr6Xiae.mjs → cdn/assets/BykiUmcpDgSRNQI1.js} +1 -1
  208. package/cdn/assets/{DEyeWdXLwDRo2yYf2.js → BzUU8y1IFjREzgog2.js} +8 -8
  209. package/cdn/assets/{BjYIAiuzZbD-dk82.js → C1ZePT2B182vSnxW.js} +1 -1
  210. package/cdn/assets/{DGWhm91XZlY1GWHe2.js → C8mUyjJ26jsHGl_D.js} +6 -6
  211. package/cdn/assets/{Ykh10IaXTKA2XWot2.js → CAPgMrAKg07EREFD2.js} +1 -1
  212. package/cdn/assets/{B0N6rTGGJN2DZPaf.js → CBuvbUg67ah_3BOZ.js} +2 -2
  213. package/cdn/assets/{BetL7yI63lEdQ0gM2.js → CEN8dYSpN2oew8HH2.js} +1 -1
  214. package/{browser/esm/BOMct7uvqiNJIS63.mjs → cdn/assets/CF8m5SqeMaRkGIYM.js} +2 -2
  215. package/{browser/esm/BRBHACVjnV1_6VLQ2.mjs → cdn/assets/CG5v2hAwGR5Ptufn2.js} +1 -1
  216. package/{browser/esm/CsKCqLuggHhYC93k2.mjs → cdn/assets/CGqvy5LwQ4z9J2oD.js} +1 -1
  217. package/{browser/esm/CbJ_xQftC08KrH3E2.mjs → cdn/assets/CGyydD3tRb0ik50l.js} +1 -1
  218. package/cdn/assets/CH0of3GZTzHviuQV.js +24 -0
  219. package/cdn/assets/CH0of3GZTzHviuQV2.js +24 -0
  220. package/cdn/assets/{BIPjogMyMmLRly43.js → CHttngK66Ido5dWW.js} +7 -7
  221. package/{browser/esm/DJSXXWTUJGbXqLLx.mjs → cdn/assets/CJPemkFUzhcAD_qR.js} +1 -1
  222. package/cdn/assets/{C4vqrW3EmJDy1otX.js → COA_SZY2x8q6t4BD.js} +1 -1
  223. package/{browser/esm/BPAEbeXV75XIAS4n2.mjs → cdn/assets/CR3jgkduTLczbMjH.js} +1 -1
  224. package/cdn/assets/{CnfGgjuCEyX-PYs_2.js → CT3G9YRPVfKtHWwf2.js} +12 -12
  225. package/{browser/esm/Eszk9OugmYOhaS2s.mjs → cdn/assets/C_Io1QC4CeLGRBrz.js} +2 -2
  226. package/{browser/esm/D4aK0uTRJQpM6392.mjs → cdn/assets/Cbw0JeJURvQyxIoa.js} +1 -1
  227. package/cdn/assets/{DrKUGkrCTKZHu8XC.js → CdMv3f8Gyxh8q2RR.js} +1 -1
  228. package/cdn/assets/{BOTU30yJHbaNehFS.js → Ce5A_D4YBgi_s2KF.js} +8 -8
  229. package/{browser/esm/MHuhAgQAA8zcnWkd.mjs → cdn/assets/CfvrjQGuf7vXiQCB2.js} +1 -1
  230. package/cdn/assets/{DY9zG4TdF0FAs_QP2.js → Chq4BwbjH0sbIkJN2.js} +2 -2
  231. package/cdn/assets/{BxecIrskOMQZB-Xc.js → Clfp7SznkOrJoQvL.js} +1 -1
  232. package/{browser/esm/PAu9erpoOTNzgNbN.mjs → cdn/assets/CopfZ7Y1Zn_PDNXK.js} +2 -2
  233. package/{browser/esm/DdaO25i-WWFSh1W0.mjs → cdn/assets/CpYlf4dXa_V2v-iS2.js} +508 -508
  234. package/cdn/assets/{BO2NRW9sjHGE9tg-2.js → CpnA5TZRkPDt4HnM2.js} +2 -2
  235. package/cdn/assets/{NZO3-fDBtqhmCsbB2.js → Crkvq5j5KIa6eTLI2.js} +12471 -12078
  236. package/{browser/esm/Bce8ZTUCpXr5Y_zl.mjs → cdn/assets/CtXoSHbCUKMY-tSJ2.js} +1 -1
  237. package/cdn/assets/{CdPxVRKpCOqCDHI8.js → Cv-KXN9kl0UeMezQ.js} +215 -215
  238. package/cdn/assets/{BouCHi6QnBrUDYkx.js → CvtkpvGzCHhNuwTm.js} +2181 -2096
  239. package/cdn/assets/{llvXNxZaCMnYqvSm.js → D-fJXasEYyfRUcj2.js} +3 -3
  240. package/cdn/assets/{DlLXCXDokJ72EW-E.js → D1MA2ed2cLMt7hV9.js} +7 -7
  241. package/cdn/assets/{hsy1zALC1oNNm5Sf.js → D3G3tI3DVCUF3Gdk2.js} +1 -1
  242. package/cdn/assets/{Bjx-9lUaScF5-Hki.js → D6SKy2BtcWkhfiA0.js} +1 -1
  243. package/cdn/assets/{B_U_UpQXdbjNRthb.js → D9-wpGVbTS9rRpxx.js} +1 -1
  244. package/cdn/assets/{CSkSOhGT8E29E2Nh2.js → D9gETGi23d14kT7u2.js} +15 -15
  245. package/cdn/assets/{BjN8kU7URKZwGlmk2.js → D9joTG0Z2zdWHAEa2.js} +3 -3
  246. package/cdn/assets/{BrUe0MnOhxzeOngn.js → DBL3Qp5jyPrFg7KI.js} +1 -1
  247. package/cdn/assets/{HeznPoDlSj26Q4lq.js → DC9obE_EVmxtvXCf.js} +2196 -2195
  248. package/cdn/assets/{CDqMmEdh_CPaFCCi2.js → DCnA2-zB7W_QB-tD2.js} +9 -9
  249. package/cdn/assets/{BdmCBWTVHb7KuHxO2.js → DDNivpFWzQ3AIJia.js} +327 -327
  250. package/cdn/assets/{B-dSKzg5shPDd733.js → DDOO4tcrO4OfMUDe.js} +1 -1
  251. package/cdn/assets/{D57KcDfTbBzf_NGr.js → DEUY_zuVwmptMX4l.js} +7 -7
  252. package/cdn/assets/{DEFEOS3OuA23llF92.js → DIQf1pX-j-dWQu_e.js} +12 -12
  253. package/cdn/assets/{Wb48SedqaKMZnxym.js → DJwQ9abZkyFO9Doy.js} +4 -4
  254. package/cdn/assets/{KJzdwvEWwCwAXuo4.js → DKeLjEJPO9nT3bpr.js} +6 -6
  255. package/cdn/assets/{Dy5Z2XIqS7-0tdjc2.js → DLEdaT0MmrOxMa2h2.js} +41 -41
  256. package/cdn/assets/{CIgn8uIPaadIJP4a2.js → DOsbSsKsexrBoeXa2.js} +10 -10
  257. package/{browser/esm/DOsKUeLPwFIdzQv32.mjs → cdn/assets/DQ-0yyFAwoWtxmhV2.js} +1 -1
  258. package/{browser/esm/BGWyNjrM55ce-D1o2.mjs → cdn/assets/DQ4o4dG7gWbL1X8F.js} +1 -1
  259. package/{browser/esm/CmYCYFWjq9KP6xw72.mjs → cdn/assets/DRc_Wi5c7WdKHTVN.js} +1 -1
  260. package/cdn/assets/{Cb71rZAQvCk3wnfp.js → DTCtbG90ip7Z7LaG.js} +6 -6
  261. package/cdn/assets/{B2BvBxjz3Kfii_Gn2.js → DVS_5oDniuAFH3vT2.js} +1020 -1020
  262. package/cdn/assets/{DpNYiOK112bFC3KK2.js → DW7JlG-SQEdLYNar2.js} +3 -3
  263. package/cdn/assets/{DJHOKENCVOJMx3aE2.js → DZDynaLqNeVaDoiH2.js} +9 -9
  264. package/{browser/esm/FVJ1akngxeMiYwPa.mjs → cdn/assets/DZbR5R1fNikjgqYb.js} +1 -1
  265. package/cdn/assets/{XSUr59k0gaFIS1Qf2.js → D_HeH7AJqWoxehn52.js} +3 -3
  266. package/{browser/esm/C7xBBqvPqat9oEft.mjs → cdn/assets/D_t53-8k73CNpV-p2.js} +72 -46
  267. package/{browser/esm/DOIVDuyf7YyJZjcD.mjs → cdn/assets/DaBczM5xU9ev5_or.js} +2 -2
  268. package/cdn/assets/{D-tQc4bi3FzGVnFg.js → DbEGszSW_J_k96KJ.js} +2 -2
  269. package/cdn/assets/{DENx9Ts-f8adXw3Y.js → Dc0BDcQUGy_WIVFa.js} +1 -1
  270. package/{browser/esm/CpEgh9EOkeMvwAuj.mjs → cdn/assets/DfRGH6mEtIVDWEYN.js} +1 -1
  271. package/{browser/esm/CJGlwQusOCSy9ZAb2.mjs → cdn/assets/Dnx3_xXfRlD6ECfZ.js} +1 -1
  272. package/cdn/assets/{BynqRVXFRplO7XgC.js → DnzDlqizzNkbhJP7.js} +2 -2
  273. package/cdn/assets/{DJk14sSSnSHiEXZ7.js → DrUEYcXg6N2D2s1Z.js} +1 -1
  274. package/cdn/assets/{BdhFhDEa7Xed6dFE.js → DvItgGbf8IOWPyxd.js} +28240 -27892
  275. package/cdn/assets/{CgsQuAbp76UOAPHm2.js → DvlpP6sUZ9Qzl9s22.js} +49 -49
  276. package/cdn/assets/{DeFts-aGqB-RDuV1.js → EjOJX5m8OEL-IjPB.js} +6 -6
  277. package/cdn/assets/{Bc2Dp6W4U_22cv7c2.js → EwzqnZl1lTr56hH-.js} +1 -1
  278. package/cdn/assets/{PzCXbVRf1jOHVOAw.js → Gy0CHZTvn4hY-rkx.js} +1 -1
  279. package/cdn/assets/{DM4g0nYgYXgI44dL.js → R5bs6kCQSZmsCXz-2.js} +1 -1
  280. package/cdn/assets/{CuIUyLNDoHvYMJaQ2.js → UYgwKnPX3US3Cj2k2.js} +14 -14
  281. package/cdn/assets/{CLhSKL0Xdm8miSTy.js → WLUhtyUNK5QJ7Pff.js} +3 -3
  282. package/cdn/assets/{DaX0_AkJxkaUnNT7.js → c6VvwMHfXubjjtyj.js} +7 -7
  283. package/cdn/assets/{Dhq9e6LCpmlIkFod.js → c7aIqKLOO4pvUsV12.js} +72 -72
  284. package/cdn/assets/{DQhvG3cP0HPB6giA2.js → gspQcUnmlRIwG609.js} +5 -5
  285. package/{browser/esm/g8dDbkwbYjhKWJM22.mjs → cdn/assets/hFSDx-LnUOObv-6h.js} +1 -1
  286. package/cdn/assets/{Bj8bWbLg1IY965tK.js → iXWgTu3qpYZHcx1J.js} +8 -8
  287. package/cdn/assets/{DiKc6jzGM1isrN02.js → j8nXVEYbO2kPuEYQ.js} +3 -3
  288. package/cdn/assets/{Wsgx1I_j1chJ6hwn.js → mtI43hWjdp4E3Z_-.js} +9 -9
  289. package/{browser/esm/Ca6NSkWoi9DvRJjQ.mjs → cdn/assets/mtrwY1hjJeYlmzC-.js} +3 -3
  290. package/cdn/assets/{B8ok93z6wOu1Mo5H.js → nmR_PgTW7GrlbHHZ.js} +5 -5
  291. package/cdn/assets/{CTwLETvNO4KeXbkK.js → qG5zdZZAe6mQIJo3.js} +1 -1
  292. package/cdn/assets/{Dr1U0I01_KIa9vgR2.js → tVOVNvOs6ro8FXqa2.js} +8 -8
  293. package/cdn/assets/vTCuFafvRlSaT9wy.js +87 -0
  294. package/cdn/assets/{B4fSPDN923nqCDVE.js → vcRSnmAqjwKglEkY2.js} +1 -1
  295. package/cdn/index.js +2 -2
  296. package/package.json +3 -3
  297. package/browser/cjs/BClFnd-voK5qaz1I.cjs +0 -88
  298. package/browser/cjs/BF14ZEAnaqxXroSj.cjs +0 -1
  299. package/browser/cjs/BVN0uo1XwTCtE2mh.cjs +0 -7
  300. package/browser/cjs/BjgiE9MBDkKiRL6q.cjs +0 -3
  301. package/browser/cjs/Byl4bQWpLnjthChn2.cjs +0 -7
  302. package/browser/cjs/BzsAbsb35hYT3xUc.cjs +0 -5
  303. package/browser/cjs/C8GZf3UAOhfisYCs.cjs +0 -1
  304. package/browser/cjs/CEXs4eRDOv4EjbSw2.cjs +0 -1
  305. package/browser/cjs/CLXzYSmhCHV5LQh7.cjs +0 -1
  306. package/browser/cjs/CN-dCAHVcxuMSyFz.cjs +0 -1
  307. package/browser/cjs/CZfNBCd62H_Jpkhl.cjs +0 -12
  308. package/browser/cjs/CoiPEZabJyiXxLta.cjs +0 -1
  309. package/browser/cjs/DAXgAEDtRrsWAePT.cjs +0 -1
  310. package/browser/cjs/DDPxHIqx8aIbqTRE.cjs +0 -1
  311. package/browser/cjs/DsgqbxMOVQmAFSDy2.cjs +0 -1
  312. package/browser/cjs/Dtc_8P-koQRmNT2s.cjs +0 -33
  313. package/browser/cjs/IbciPMJP2Pam3ERm.cjs +0 -1
  314. package/browser/cjs/bpcQTcfzGVBK-rfT2.cjs +0 -1
  315. package/browser/esm/BPwpFe7c1-F62aAU.mjs +0 -518
  316. package/browser/esm/ohVj-y1gCC9PEHJI.mjs +0 -87
  317. package/cdn/assets/CXrcgTVB77CopjOJ.js +0 -518
  318. package/cdn/assets/DjS4iUli-T3uuUfK.js +0 -24
  319. package/cdn/assets/DjS4iUli-T3uuUfK2.js +0 -24
  320. package/cdn/assets/zrS_ERBQML_OXJ4J.js +0 -87
  321. /package/browser/cjs/{1XrWGMP3GmsQOMIX.cjs → 1XrWGMP3GmsQOMIX2.cjs} +0 -0
  322. /package/browser/cjs/{49_x589Na12sizKK2.cjs → 49_x589Na12sizKK.cjs} +0 -0
  323. /package/browser/cjs/{BAxVLKkxFgI6cXnR2.cjs → BAxVLKkxFgI6cXnR.cjs} +0 -0
  324. /package/browser/cjs/{Btc0Nzu40VYOpzLX2.cjs → Btc0Nzu40VYOpzLX.cjs} +0 -0
  325. /package/browser/cjs/{C2uDl8VIJqh58YF_2.cjs → C2uDl8VIJqh58YF_.cjs} +0 -0
  326. /package/browser/cjs/{C9C-pr-T_ThweQX9.cjs → C9C-pr-T_ThweQX92.cjs} +0 -0
  327. /package/browser/cjs/{CV4KQsHluMqo1I2Q2.cjs → CV4KQsHluMqo1I2Q.cjs} +0 -0
  328. /package/browser/cjs/{CW-b31_-r-_raT8Y.cjs → CW-b31_-r-_raT8Y2.cjs} +0 -0
  329. /package/browser/cjs/{Clu7XiAsCB48GDXN.cjs → Clu7XiAsCB48GDXN2.cjs} +0 -0
  330. /package/browser/cjs/{DCIlWcGDrp-5PDoA2.cjs → DCIlWcGDrp-5PDoA.cjs} +0 -0
  331. /package/browser/cjs/{DDnGLOLTqLFsdUDS.cjs → DDnGLOLTqLFsdUDS2.cjs} +0 -0
  332. /package/browser/cjs/{DG2kqsWRUtVugjay.cjs → DG2kqsWRUtVugjay2.cjs} +0 -0
  333. /package/browser/cjs/{DNKyaSruDogoBd2H.cjs → DNKyaSruDogoBd2H2.cjs} +0 -0
  334. /package/browser/cjs/{Du4jBiFxRIF1OjD42.cjs → Du4jBiFxRIF1OjD4.cjs} +0 -0
  335. /package/browser/cjs/{JfM6P_qoQQTWakZf2.cjs → JfM6P_qoQQTWakZf.cjs} +0 -0
  336. /package/browser/cjs/{aONv0Ys3C8xmnaR8.cjs → aONv0Ys3C8xmnaR82.cjs} +0 -0
@@ -1 +1 @@
1
- const e=require("./BnccBYHCCq9TGFx4.cjs"),t=require("./DDPxHIqx8aIbqTRE.cjs"),n=require("./Dtc_8P-koQRmNT2s.cjs"),r=require("./BjgiE9MBDkKiRL6q.cjs"),i=require("./CHMgm0vAbEBS1mVW.cjs"),a=require("./NzAMMcPT7SETmqPg.cjs"),o=require("./kqP-W5qRIy-d-ChZ.cjs");var s=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()}},c=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,l=e=>{let t=parseInt(e);return isNaN(t)?null:t},u=e=>{let t=parseFloat(e);return isNaN(t)?null:t},d=new Map,f=class{constructor(t,n,r,i,a,o=null,s=e.A.EmptyObject){this._fileLocation=``,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):(o&&(this._fileLocation=o),s?.getRef&&(this._getRef=(e,t,n)=>s?.getRef?.(e,t,n,s?.parsedRefs)),s?.getRefs&&(this._getRefs=e=>s?.getRefs?.(e,s?.parsedRefs)),this._onWarning=s?.onWarning,this._addPerson=s?.addPerson,this._serializeElement=s?.serializeElement)}getRef(e,t=!1){return this._getRef?.(e,this._fileLocation,t)??null}getRelationships(){return this._getRefs?.(this._fileLocation)??d}getPath(){return this.currentPath}getFileLocation(){return this._fileLocation}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(e){this._onWarning?this._onWarning(e):this._parent?this._parent?.warn?.(e):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 s(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.A.getFromPath(t,n)}setToPath(t,n,r){return e.A.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 c}get INT_COPY(){return l}get FLOAT_COPY(){return u}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)}},p=i.r({isBlank:()=>y,isNotBlank:()=>b,length:()=>x,parseRotation:()=>m,parseValAttrAsBoolean:()=>g,parseValAttrAsFloat:()=>v,parseValAttrAsInteger:()=>_,parseValAttrAsString:()=>h}),m=(t,n)=>{if(!t||!t.hasAttribute(`rot`))return;let r=t.getAttribute(`rot`),i=e.A.roundAccurately(o.f(r),2);i!==-1e3&&(n.rotation=i)},h=(e,t,n,r,i)=>{let a=e.getValAttrAsString(r,t);a!==null&&(n[i]=a)},g=(e,t,n,r,i=r,a=null)=>{let o=e.getValAttrAsBoolean(r,t,a);o!==null&&(n[i]=o)},_=(e,t,n,r,i)=>{let a=e.getValAttrAsInteger(r,t);a!==null&&(n[i]=a)},v=(e,t,n,r,i,a=1)=>{let o=e.getValAttrAsFloat(r,t);o!==null&&(n[i]=o*a)},y=e=>!e||e.trim().length===0,b=e=>!y(e),x=e=>e?.length??0,S=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={};return n[this.jsonKey]=r,r}},C=class{visit(e,t,n){}getStroke(e,t){let n=e.evaluate(`ln`,t);return n?this.parseLn(e,n):{}}parseLn(e,t){let n={};t.hasAttribute(`algn`)&&(n.align=t.getAttribute(`algn`)),t.hasAttribute(`cap`)&&(n.lineCap=T(t.getAttribute(`cap`))),t.hasAttribute(`cmpd`)&&(n.compound=t.getAttribute(`cmpd`)),t.hasAttribute(`w`)&&(n.width=o.s(t.getAttribute(`w`)));let r=e.evaluate(`miter`,t);r&&(n.lineJoin=`miter`,r.hasAttribute(`lim`)&&(n.miterLimit=parseFloat(r.getAttribute(`lim`))/1e5)),e.evaluate(`bevel`,t)&&(n.lineJoin=`bevel`),e.evaluate(`round`,t)&&(n.lineJoin=`round`);let i=e.evaluate(`custDash`,t);if(i){let t=e.evaluate(`ds`,i);if(t&&t.length>0){let e=[];for(let n=0;n<t.length;n++){let r=t.item(n);e.push(o.t(r.getAttribute(`d`)??``)),e.push(o.t(r.getAttribute(`sp`)??``))}n.dash=e}}let a=e.evaluate(`prstDash`,t);a&&a.hasAttribute(`val`)&&(n.dash=a.getAttribute(`val`)),this.parseEndElement(e,t,n,`headEnd`,`head`),this.parseEndElement(e,t,n,`tailEnd`,`tail`);let s=this.getFill(e,t);return s&&(n.fill=s),n}parseEndElement(e,t,n,r,i){let a=e.evaluate(r,t);if(a&&(a.hasAttribute(`type`)&&(n[i+`Type`]=a.getAttribute(`type`)),a.hasAttribute(`len`)||a.hasAttribute(`w`))){let e=a.getAttribute(`len`)||`med`,t=a.getAttribute(`w`)||`med`;n[i+`Size`]=e+`-`+t}}getEffects(e,t){let n=e.evaluate(`effectLst`,t);if(!n)return null;let r=[],i=n.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processEffectElement(e,n,n.localName);if(a===void 0)return;r.push(a)}return r}processEffectElement(e,t,n){switch(n){case`outerShdw`:{let n={type:r.o.Type.OuterShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(n.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.f(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(n.blur=o.s(t.getAttribute(`blurRad`))),t.hasAttribute(`algn`)&&(n.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(n.isRotatedWithShape=o.p(t.getAttribute(`rotWithShape`))),t.hasAttribute(`sx`)&&(n.scaleX=o.t(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(n.scaleY=o.t(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(n.skewX=o.f(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(n.skewY=o.f(t.getAttribute(`ky`))),n}case`innerShdw`:{let n={type:r.o.Type.InnerShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(n.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.f(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(n.blur=o.s(t.getAttribute(`blurRad`))),n}case`prstShdw`:{let n={type:r.o.Type.PresetShadow,color:this.processAdjColor(e,t),preset:t.getAttribute(`prst`)??void 0};return t.hasAttribute(`dist`)&&(n.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.f(t.getAttribute(`dir`))),n}case`glow`:{let n={type:r.o.Type.Glow,color:this.processAdjColor(e,t)};return t.hasAttribute(`rad`)&&(n.radius=o.s(t.getAttribute(`rad`))),n}case`softEdge`:{let e={type:r.o.Type.SoftEdge};return t.hasAttribute(`rad`)&&(e.radius=o.s(t.getAttribute(`rad`))),e}case`reflection`:{let e={type:r.o.Type.Reflection};return t.hasAttribute(`blurRad`)&&(e.blur=o.s(t.getAttribute(`blurRad`))),t.hasAttribute(`dist`)&&(e.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(e.angle=o.f(t.getAttribute(`dir`))),t.hasAttribute(`fadeDir`)&&(e.fadeAngle=o.f(t.getAttribute(`fadeDir`))),t.hasAttribute(`stA`)&&(e.startAlpha=o.t(t.getAttribute(`stA`))),t.hasAttribute(`stPos`)&&(e.startPosition=o.t(t.getAttribute(`stPos`))),t.hasAttribute(`endA`)&&(e.endAlpha=o.t(t.getAttribute(`endA`))),t.hasAttribute(`endPos`)&&(e.endPosition=o.t(t.getAttribute(`endPos`))),t.hasAttribute(`sx`)&&(e.scaleX=o.t(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(e.scaleY=o.t(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(e.skewX=o.f(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(e.skewY=o.f(t.getAttribute(`ky`))),t.hasAttribute(`algn`)&&(e.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(e.isRotatedWithShape=o.p(t.getAttribute(`rotWithShape`))),e}default:return}}getFill(e,t){if(e.evaluate(`noFill`,t))return{type:n.dt.Type.None};let r=e.evaluate(`solidFill`,t);if(r){let t=this.processAdjColor(e,r);if(t)return{type:n.dt.Type.Solid,color:t}}let i=e.evaluate(`gradFill`,t);if(i)return this.processGradFill(e,i);let a=e.evaluate(`pattFill`,t);if(a)return this.processPatternFill(e,a);let o=e.evaluate(`blipFill`,t);return o?this.processImageFill(e,o):null}processGradFill(e,t){let r={type:n.dt.Type.Gradient};t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=t.getAttribute(`rotWithShape`)===`1`);let i=e.evaluate(`lin`,t);i&&(r.gradientType=n.dt.GradientType.Linear,i.hasAttribute(`ang`)&&(r.angle=o.f(i.getAttribute(`ang`))),i.hasAttribute(`scaled`)&&(r.scaled=o.p(i.getAttribute(`scaled`))));let a={};t.hasAttribute(`flip`)&&(a.mirror=t.getAttribute(`flip`)),Object.keys(a).length>0&&(r.tile=a);let s=e.evaluate(`path`,t);if(s){s.hasAttribute(`path`)&&(r.gradientType=w(s.getAttribute(`path`)));let t=e.evaluate(`fillToRect`,s);t&&(r.focus=this.getRect(t))}let c=e.evaluate(`tileRect`,t);c&&(r.tile||={},r.tile.bounds=this.getRect(c));let l=[],u=e.evaluate(`gsLst/gs`,t),d=u?u.length:0;for(let t=0;t<d;t++){let n=u.item(t),r={offset:o.t(n.getAttribute(`pos`)??``),color:this.processAdjColor(e,n)};l.push(r)}return l.length>0&&(r.stops=l),r}getRect(e){let t={};return e.hasAttribute(`t`)&&(t.t=o.t(e.getAttribute(`t`))),e.hasAttribute(`l`)&&(t.l=o.t(e.getAttribute(`l`))),e.hasAttribute(`b`)&&(t.b=o.t(e.getAttribute(`b`))),e.hasAttribute(`r`)&&(t.r=o.t(e.getAttribute(`r`))),Object.keys(t).length===0?null:t}processImageFill(e,t){let r={type:n.dt.Type.Image};return t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=o.p(t.getAttribute(`rotWithShape`))),t.hasAttribute(`dpi`)&&(r.dpi=t.getAttribute(`dpi`)),r.ref=`https://www.sheetxl.com/logo-color-padded-white.jpg`,r.tile=!1,r}processPatternFill(e,t){let r={type:n.dt.Type.Pattern};r.patternType=t.getAttribute(`prst`);let i=e.evaluate(`bgClr`,t);if(i){let t=this.processAdjColor(e,i);t&&(r.background=t)}let a=e.evaluate(`fgClr`,t);if(a){let t=this.processAdjColor(e,a);t&&(r.foreground=t)}return r}processAdjColor(e,t){let n=e.evaluate(`hslClr`,t);if(n)return this.processHslClr(e,n);let r=e.evaluate(`prstClr`,t);if(r)return this.processClrWithValAttribute(e,r);let i=e.evaluate(`schemeClr`,t);if(i)return this.processClrWithValAttribute(e,i);let a=e.evaluate(`sysClr`,t);if(a){let t=this.processClrWithValAttribute(e,a),n=a.getAttribute(`lastClr`);return t&&n&&(t+=` lastClr ${n}`),t}let o=e.evaluate(`scrgbClr`,t);if(o)return this.processScrgbClrElement(e,o);let s=e.evaluate(`srgbClr`,t);return s?this.processSrgbClrElement(e,s):null}processScrgbClrElement(e,t){let n=`lrgba(`+o.t(t.getAttribute(`r`)??``)+`,`+o.t(t.getAttribute(`g`)??``)+`,`+o.t(t.getAttribute(`b`)??``)+`)`;return n+=this.processAdjustments(e,t),n}processSrgbClrElement(e,t){let n=t.getAttribute(`val`);return n+=this.processAdjustments(e,t),n}processHslClr(e,t){let n=`hsl(`+o.f(t.getAttribute(`hue`)??``)+`,`+o.t(t.getAttribute(`sat`)??``)+`,`+o.t(t.getAttribute(`lum`)??``)+`)`;return n+=this.processAdjustments(e,t),n}processClrWithValAttribute(e,t){let n=t.getAttribute(`val`);if(!n)return null;let r=n;return r+=this.processAdjustments(e,t),r}processAdjustments(e,t){let n=``,r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1){let t=i.localName;n+=t===`hue`||t===`hueOff`||t===`hueMod`?this.processAdjustmentElement(e,i,t,6e4):t===`gray`||t===`comp`||t===`inv`||t===`gamma`||t===`invGamma`?this.processAdjustmentElement(e,i,t,1):t===`alpha`||t===`alphaOff`||t===`alphaMod`?this.processAdjustmentElement(e,i,t,1e5):this.processAdjustmentElement(e,i,t)}}return n}processAdjustmentElement(e,t,n,r=1e3){let i=t.getAttribute(`val`);return i?` ${n} ${!i||parseFloat(i)/r}`:` ${n}`}},w=e=>e===`circle`?`radial`:e,T=e=>{if(e===`rnd`)return`round`;if(e===`flat`)return`butt`;if(e===`sq`)return`square`;throw Error(`Invalid lineCap type: `+e)},E=class extends C{visit(e,t,n){try{let r=e.evaluate(`xfrm`,t);if(r){m(r,n);let t={x:0,y:0,width:0,height:0},i=e.evaluate(`off`,r);i&&(t.x=o.i(i.getAttribute(`x`))??0,t.y=o.i(i.getAttribute(`y`))??0);let a=e.evaluate(`ext`,r);i&&(t.width=o.i(a.getAttribute(`cx`))??0,t.height=o.i(a.getAttribute(`cy`))??0),n.bounds=t}let i=e.evaluate(`prstGeom`,t);i?.hasAttribute(`prst`)?n.geometry=i?.getAttribute(`prst`):e.evaluate(`customGeom`,t)&&console.warn(`customGeom not supported yet`);let a=this.getFill(e,t);a&&Object.keys(a).length>0&&(n.fill=a);let s=this.getStroke(e,t);return s&&Object.keys(s).length>0&&(n.stroke=s),n}catch(e){console.warn(e)}}},D=class{visit(e,t,n){let r={};if(h(e,t,r,`grouping`,`grouping`),g(e,t,r,`varyColors`,`varyColors`),v(e,t,r,`gapWidth`,`gapWidth`,.01),v(e,t,r,`overlap`,`overlap`,.01),this.parseType(e,t,r),_(e,t,r,`bubbleScale`,`bubbleScale`),g(e,t,r,`showNegBubbles`,`showNegativeBubbleValues`),g(e,t,r,`sizeRepresents`,`bubbleSizeRepresentsWidth`),_(e,t,r,`firstSliceAng`,`startAngle`),_(e,t,r,`holeSize`,`holeSize`),h(e,t,r,`scatterStyle`,`scatterStyle`),this.parseAxisIds(e,t,r),Object.keys(r).length>0){let t=e.getVisitorParamsState().get(`types`);t||(console.warn(`Uninitialized types array in ChartTypeVisitor`),t=[],e.getVisitorParamsState().set(`types`,t)),t.push(r)}return r}parseType(e,t,n){switch(t.localName){case`areaChart`:n.type=`area`;break;case`bubbleChart`:n.type=`bubble`;break;case`doughnutChart`:case`ofPieType`:case`pieChart`:n.type=`pie`;break;case`lineChart`:n.type=`line`;break;case`scatterChart`:n.type=`scatter`}}parseAxisIds(e,t,n){let r=e.evaluate(`axId`,t);r&&r.length!==0&&(n.xAxisId=r.item(0).getAttribute(`val`),n.yAxisId=r.item(1).getAttribute(`val`))}},O=(e,t,n)=>{if(!0===e.getValAttrAsBoolean(`invertIfNegative`,t))if(e.evaluate(`extLst/ext/invertSolidFillFmt`,t)){if(n.fill&&n.fillNegative){let t=e.getFromPath(n,`fill.solid.adjs`);t&&e.setToPath(n,`fillNegative.solid.adjs`,t)}}else{let e={val:`FFFFFF`},t={};t.solid=e,n.fillNegative=t;let r={val:`000000`},i={};i.solid=r;let a={};a.fill=i,n.strokeNegative=a}},k=class extends C{constructor(e=`text`){super(),this._jsonKey=e}getTextPath(){return this._jsonKey}visit(e,t,n){let r=e.getFromPath(n,this.getTextPath());return r||={},this.parseTextElement(e,t,r,!1),Object.keys(r).length>0&&e.setToPath(n,this.getTextPath(),r),n}parseTextElement(e,t,n,r){let i=e.evaluate(`p/pPr/defRPr`,t)??e.evaluate(`defRPr`,t);i&&(this.parseTextProperties(e,i,n),new E().visit(e,i,n));let a=n.runs??[],o=e.evaluate(`p/r`,t)??e.evaluate(`r`,t),s=t=>{let n={},r=e.evaluate(`t`,t),i=e.evaluate(`rPr`,t);i&&this.parseTextProperties(e,i,n),r&&r.firstChild?n.text=r.firstChild.textContent??``:t.textContent&&(n.text=t.textContent??``),Object.keys(n).length>0&&a.push(n)};if(o?.length!==void 0)for(let e=0;o&&e<o.length;e++)s(o.item(e));else s(o||t);a.length>0&&(n.runs=a);let c=e.evaluate(`bodyPr`,t);c&&m(c,n)}parseTextProperties(e,t,r){if(!t)return;t.hasAttribute(`sz`)&&(r.size=parseFloat(t.getAttribute(`sz`))/100),t.hasAttribute(`b`)&&(r.weight=t.getAttribute(`b`)===`1`?700:400),t.hasAttribute(`i`)&&(r.italic=t.getAttribute(`i`)===`1`),t.hasAttribute(`u`)&&(r.underline=t.getAttribute(`u`)),t.hasAttribute(`strike`)&&(r.strike=t.getAttribute(`strike`));let i=this.getFill(e,t);i&&Object.keys(i).length>0&&(r.color=i);let a=e.evaluate(`latin`,t);if(a&&!a.getAttribute(`typeface`).startsWith(`+`)){let e=r.font??{};if(a.hasAttribute(`typeface`)&&(e.family=a.getAttribute(`typeface`)),a.hasAttribute(`panose`)){let t=a.getAttribute(`panose`);t&&(e.fallbacks=[n.Q.getPanoseFallback(t)])}a.hasAttribute(`pitchFamily`)&&(e.pitch=a.getAttribute(`pitchFamily`)),a.hasAttribute(`charset`)&&(e.charset=a.getAttribute(`charset`)),Object.keys(e).length>0&&(r.font=e)}}},A=class{visit(e,t,n){}processDataBarColor(e,t,n,r,i=`auto`){if(!t)return;let a=o.o(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.Q.Style.Italic),e.getValAttrAsBoolean(`strike`,t,!0)&&(r.strike=!0);let i=e.evaluate(`u`,t);i&&(r.underline=i.getAttribute(`val`)||n.Q.UnderlineStyle.Single),h(e,t,r,`vertAlign`,`verticalAlign`),r.verticalAlign===`superscript`?r.verticalAlign=n.Q.VerticalAlignment.Super:r.verticalAlign===`subscript`&&(r.verticalAlign=n.Q.VerticalAlignment.Sub),v(e,t,r,`sz`,`size`);let a=e.evaluate(`color`,t);this.processDataBarColor(e,a,r,`color`),r.color||=`auto`,h(e,t,r,`name`,`family`),h(e,t,r,`rFont`,`family`);let o=e.evaluate(`family`,t);if(o){let e=o.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`]}}return h(e,t,r,`scheme`,`scheme`),g(e,t,r,`shadow`,`shadow`,!0),g(e,t,r,`outline`,`outline`,!0),e.getValAttrAsBoolean(`condense`,t,!0)&&(r.letterSpacing=-1),e.getValAttrAsBoolean(`extend`,t,!0)&&(r.letterSpacing=1),_(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,r,i){let a={type:n.dt.Type.None},o=t.childNodes,s=!1,c=o.length;for(let t=0;!s&&t<c;t++){let n=o.item(t);n.nodeType===1&&(n.localName===`gradientFill`?(this.processGradientFill(e,n,a),s=!0):n.localName===`patternFill`&&(this.processPatternFill(e,n,a),s=!0))}return r[i]=a,r}processGradientFill(e,t,r){if(!t)return;r.type=n.dt.Type.Gradient;let i=[];r.stops=i;let a=t.getAttribute(`type`);a&&(r.gradientType=a);let o=t.hasAttribute(`degree`)?parseFloat(t.getAttribute(`degree`)):0;(o+90)%360!=0&&(r.angle=(o+90)%360),(t.hasAttribute(`left`)||t.hasAttribute(`top`)||t.hasAttribute(`right`)||t.hasAttribute(`bottom`))&&(r.focus={left:j(t.getAttribute(`left`)),top:j(t.getAttribute(`top`)),right:j(t.getAttribute(`right`)),bottom:j(t.getAttribute(`bottom`))});let s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1&&n.localName===`stop`){let t={};i.push(t),t.offset=parseFloat(n.getAttribute(`position`)??``);let r=e.evaluate(`color`,n);this.processDataBarColor(e,r,t,`color`)}}return r}processPatternFill(e,t,r){if(!t)return;let i=e.getVisitorParamsState().get(`processingDXFs`),a=t.getAttribute(`patternType`)||(i?n.dt.BuiltInSheetPattern.Solid:n.dt.BuiltInSheetPattern.None);if(a===n.dt.BuiltInSheetPattern.None)return{none:!0};r.type=n.dt.Type.Pattern,a&&(r.patternType=a);let o=`foreground`,s=`background`,c=r.patternType===n.dt.BuiltInSheetPattern.Solid&&i,l=c?`dk1`:`lt1`,u=c?`lt1`:`dk1`;if(c){let e=o;o=s,s=e}let d=e.evaluate(`fgColor`,t);this.processDataBarColor(e,d,r,o,l);let f=e.evaluate(`bgColor`,t);return this.processDataBarColor(e,f,r,s,u),c&&(r.foreground||=`lt1`,r.background||=`dk1`),r}processBorders(e,t,n,r){if(!t)return;let i=t.childNodes,a=0,o=i.length;for(let t=0;t<o;t++){let o=i.item(t);o.nodeType===1&&o.localName===`border`&&this.processBorder(e,o,n,a++,r)}return n}processBorder(e,t,r,i,a){if(!t)return;let o={};return this.processBorderStroke(e,t,o,n.rt.Edge.Left),this.processBorderStroke(e,t,o,n.rt.Edge.Right),a?(o.right||o.left)&&(o.right?o.vertical={...o.right}:o.vertical={...o.left}):this.processBorderStroke(e,t,o,n.rt.Edge.Vertical),this.processBorderStroke(e,t,o,n.rt.Edge.Top),this.processBorderStroke(e,t,o,n.rt.Edge.Bottom),a?(o.bottom||o.top)&&(o.bottom?o.horizontal={...o.bottom}:o.horizontal={...o.top}):this.processBorderStroke(e,t,o,n.rt.Edge.Horizontal),r[i]=o,r}processBorderStroke(e,t,r,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=n.rt.StrokeStyle.None);let s=e.evaluate(`color`,a);return s&&this.processDataBarColor(e,s,o,`color`),Object.keys(o).length>0?r[i]=o:null}},j=e=>{if(!e)return 0;let t=parseFloat(e);return isNaN(t)?0:t},M={auto:`auto`,autoNoTable:`automaticExceptTables`,manual:`manual`},N=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),e.copyFromAttribute(r,`id`,n)),n}},P=class extends N{visit(e,t,n){if(!t)return;if(e.getPath().includes(`Fallback`)&&n.content)return n;n=super.visit(e,t,n);let r=e.evaluate(`nvSpPr/cNvSpPr`,t);if(r){let t=e.evaluate(`spLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`sp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`sp`,json:s},s}},F=`richTypes`,I=`richData`,ee=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}},te=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||``}}},ne=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{key:t.localName,value:t.textContent||``}}},re=class{visit(e,t,n){return g(e,t,n,`roundedCorners`,`roundedCorners`),_(e,t,n,`.//AlternateContent/Fallback/style`,`styleId`),e.getVisitorParamsState().set(`types`,[]),e.getVisitorParamsState().set(`axes`,new Map),n.range=null,n}afterVisit(e,t,n){let r={};n.types=r;let i={},a=0,o={},s=0,c=e.getVisitorParamsState().get(`axes`),l=e.getVisitorParamsState().get(`types`),u=l.length;for(let e=0;e<u;e++){let t=l[e];if(t.xAxisId){let r=t.xAxisId,o=c.get(r);i[e+``]=o,t.offsetXAxis=e,delete t.xAxisId,n.xAxes=i,i.length=++a}if(t.yAxisId){let r=t.yAxisId,i=c.get(r);o[e+``]=i,t.offsetYAxis=e,delete t.yAxisId,n.yAxes=o,o.length=++s}r[e+``]=t}r.length=l.length;let d=e.getVisitorParamsState().get(`series`);if(!d||d.length===0)return;let f={};n.series=f;let p=d.length;for(let e=0;e<p;e++)f[e+``]=d[e];f.length=p,e.getVisitorParamsState().delete(`types`),e.getVisitorParamsState().delete(`axes`),e.getVisitorParamsState().delete(`series`)}},L=class{visit(e,t,n){let r={};return n.plotArea=r,r}},R=E,z=class extends D{parseType(e,t,n){let r=e.getValAttrAsString(`barDir`,t);r&&(n.type=r===`col`?`column`:`bar`)}},B=D,V=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={},i=r,a=e.getValAttrAsString(`idx`,t);a!==null&&(i={},i[a]=r);let o=e.getValAttrAsBoolean(`delete`,t);this.parseNumFormat(e,t,r),!0===o?(r.showBubbleSize=!1,r.showCatName=!1,r.showLeaderLines=!1,r.showPercentage=!1,r.showSerName=!1,r.showVal=!1,r.showLegendKey=!1):(g(e,t,r,`showBubbleSize`,`showBubbleSize`),g(e,t,r,`showCatName`,`showCatName`),g(e,t,r,`showLeaderLines`,`showLeaderLines`),g(e,t,r,`showPercent`,`showPercentage`),g(e,t,r,`showSerName`,`showSerName`),g(e,t,r,`showVal`,`showVal`),g(e,t,r,`showLegendKey`,`showLegendKey`));let s=e.evaluate(`separator`,t);return s!==null&&(r.separator=s.textContent),h(e,t,r,`dLblPos`,`position`),n[this.jsonKey]=i,r}parseNumFormat(e,t,n){let r=e.evaluate(`numFmt`,t);r&&(n.formatCode=r.getAttribute(`formatCode`),r.hasAttribute(`sourceLinked`)&&(n.sourceLinked=r.getAttribute(`sourceLinked`)===`1`))}},H=class{visit(e,t,n){let r={};_(e,t,r,`explosion`,`explosion`);let i=e.evaluate(`cat/*/f`,t);i||=e.evaluate(`xVal/*/f`,t);let a=null;i!==null&&i.firstChild!==null&&(a=i.firstChild.nodeValue),i||(i=e.evaluate(`cat/strLit`,t),i||=e.evaluate(`cat/numLit`,t),i&&(a=this.parsePointsAsString(e,i))),a!==null&&(r.xRange=a);let o=e.evaluate(`val/*/f`,t);o||=e.evaluate(`yVal/*/f`,t);let s=null;o&&o.firstChild&&(s=o.firstChild.nodeValue),o||(o=e.evaluate(`val/numLit`,t),o!==null&&(s=this.parsePointsAsString(e,o))),s!==null&&(r.valRange=s),this.parseTitleRangeOrValue(e,t,r),_(e,t,r,`idx`,`idx`),g(e,t,r,`smooth`,`smooth`),r.offsetChart=e.getVisitorParamsState().get(`types`).length-1;let c=e.getVisitorParamsState().get(`series`);return c||(c=[],e.getVisitorParamsState().set(`series`,c)),c.push(r),r}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t);if(r!==null){let t=r.firstChild.nodeValue;e.setToPath(n,`title.range`,t)}else{let r=e.evaluate(`tx/v`,t);r!==null&&e.setToPath(n,`title.text.simpleRun`,r.firstChild.nodeValue)}}parsePointsAsString(e,t){let n=`{`,r=e.getValAttrAsInteger(`ptCount`,t),i=e.evaluate(`pt`,t),a=[];for(let n=0;i&&r&&n<r;n++){let r=null,i=e.evaluate(`pt[@idx='`+n+`']/v`,t);i&&(r=i.textContent),a[n]=r}for(let e=0;e<a.length;e++)e>0&&(n+=`,`),a[e]!==void 0&&(n+=a[e]);return n+=`}`,n}afterVisit(e,t,n){O(e,t,n);let r=e.getFromPath(n,`points`);if(r){let t=Object.keys(r);for(let i=0;i<t.length;i++){let a=t[i],o=e.getFromPath(r,a);if(!o)continue;let s=e.getFromPath(o,`markers`);s&&(e.setToPath(n,`markers.points.`+a,s),delete o.markers)}}}},U=class{DataPointVisitor(){}visit(e,t,n){let r=e.getFromPath(n,`points`),i=null;r?i=r:(i={},e.setToPath(n,`points`,i));let a={},o=e.getValAttrAsString(`idx`,t);return o!==null&&(i[o]=a),g(e,t,a,`bubble3D`,`bubble3D`),_(e,t,a,`explosion`,`explosion`),O(e,t,a),a}},W=class{visit(e,t,n){let r=t.parentNode.localName;if(r===`ser`||r===`dPt`){let r={},i=e.getValAttrAsString(`size`,t);i!==null&&(r.size=i);let a=e.getValAttrAsString(`symbol`,t);return a&&(r.type=a),n.markers=r,r}return null}},G=class{visit(e,t,n){let r={};this.parseScaling(e,t,r),v(e,t,r,`majorUnit`,`majorUnits`),v(e,t,r,`minorUnit`,`minorUnits`),g(e,t,r,`delete`,`shown`),this.parseOrientation(e,t,r),this.parseNumFormat(e,t,r),h(e,t,r,`majorTickMark`,`majorTickMarks`),h(e,t,r,`minorTickMark`,`minorTickMarks`),h(e,t,r,`crosses`,`crosses`),v(e,t,r,`crossesAt`,`crosses`),h(e,t,r,`crossBetween`,`crossBetween`),this.parseLabelAlign(e,t,r),_(e,t,r,`lblOffset`,`labelOffset`),h(e,t,r,`tickLblPos`,`labelPosition`);let i=e.getValAttrAsInteger(`noMultiLvlLbl`,t);r.labelMultiLevel=i!==null&&i===0,_(e,t,r,`tickMarkSkip`,`tickMarkSkip`),_(e,t,r,`tickLblSkip`,`labelInterval`),this.parseDisplayCustOrBuiltInUnit(t,e,r),this.parseTimeUnits(e,t,r,`majorUnitDates`,`majorTimeUnit`,`majorUnit`),this.parseTimeUnits(e,t,r,`minorUnitDates`,`minorTimeUnit`,`minorUnit`),h(e,t,r,`baseTimeUnit`,`baseUnitDates`),e.getVisitorParamsState().get(`axes`)||(console.warn(`Uninitialized axes map in AxisVisitor`),e.getVisitorParamsState().set(`axes`,new Map));let a=e.getValAttrAsString(`axId`,t);return e.getVisitorParamsState().get(`axes`).set(a,r),r}parseTimeUnits(e,t,n,r,i,a){let o={},s=e.getValAttrAsString(i,t);s!==null&&(o.dem=s,o.amt=e.getValAttrAsString(a,t)),Object.keys(o).length>0&&(n[r]=o)}parseDisplayCustOrBuiltInUnit(e,t,n){let r=t.getValAttrAsString(`dispUnits/builtInUnit`,e);r||=t.getValAttrAsString(`dispUnits/custUnit`,e),r&&(n.displayUnits=r)}parseLabelAlign(e,t,n){let r=e.getValAttrAsString(`lblAlgn`,t);r!==null&&(r===`ctr`?n.labelAlign=`center`:r===`l`?n.labelAlign=`left`:r===`r`&&(n.labelAlign=`right`))}parseOrientation(e,t,n){let r=e.getValAttrAsString(`AxPos`,t);r!==null&&(r===`b`?n.orientation=`bottom`:r===`l`?n.orientation=`left`:r===`r`?n.orientation=`right`:r===`t`&&(n.orientation=`top`))}parseNumFormat(e,t,n){let r={},i=e.evaluate(`numFmt`,t);i!==null&&(i.hasAttribute(`formatCode`)&&(r.formatCode=i.getAttribute(`formatCode`)),i.hasAttribute(`sourceLinked`)&&(r.sourceLinked=i.getAttribute(`sourceLinked`)===`1`)),Object.keys(r).length>0&&(n.labels=r)}parseScaling(e,t,n){let r=e.getValAttrAsString(`scaling/orientation`,t);r!==null&&(n.inverted=r!==`minMax`);let i=e.getValAttrAsFloat(`scaling/logBase`,t);i!==null&&(n.logBase=i,n.scaleType=`log`),v(e,t,n,`scaling/max`,`max`),v(e,t,n,`scaling/min`,`min`)}afterVisit(e,t,n){n.fill&&n.labels&&(n.labels.fill=n.fill,delete n.fill);let r=e.getValAttrAsBoolean(`delete`,t);r!==null&&(e.setToPath(n,`labels.shown`,!0!==r),e.setToPath(n,`shown`,!0!==r));let i=e.getFromPath(n,`dispUnits.displayUnitsLabel`);i&&(e.setToPath(n,`displayUnitsLabel`,i),delete n.dispUnits);let a=e.evaluate(`title`,t);e.setToPath(n,`title.shown`,a!==null);let o=e.evaluate(`minorGridlines`,t);e.setToPath(n,`gridLinesMinor.shown`,o!==null);let s=e.evaluate(`majorGridlines`,t);e.setToPath(n,`gridLinesMajor.shown`,s!==null)}},K=k,q=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`series`),i=e.getValAttrAsInteger(`idx`,t),a=i===null?void 0:r[i];if(a){let n=e.getFromPath(a,`title`);n||(n={},e.setToPath(a,`title`,n));let r=n,i=e.getValAttrAsBoolean(`delete`,t);return i!==null&&(r.shown=!i),r}return n}},J=class{visit(e,t,n){let r={};return g(e,t,r,`overlay`,`overlay`),h(e,t,r,`legendPos`,`position`),n.legend=r,r}},Y=class extends E{visit(e,t,n){let r=this.getFill(e,t);Object.keys(r).length>0&&(n.fillNegative=r);let i=this.getStroke(e,t);return Object.keys(i).length>0&&(n.strokeNegative=i),n}},X=class extends k{constructor(e=`title`){super(e)}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t)??null;if(r){let t=r.firstElementChild.nodeValue;e.setToPath(n,`range`,t)}}visit(e,t,n){let r={};g(e,t,r,`overlay`,`overlay`),n[this._jsonKey]=r;let i=e.getFromPath(r,this.getTextPath());i||={},this.parseTitleRangeOrValue(e,t,r);let a=e.evaluate(`txPr`,t);a&&this.parseTextElement(e,a,i,!1);let o=e.evaluate(`tx/rich`,t);return o&&this.parseTextElement(e,o,i,!0),Object.keys(i).length>0&&e.setToPath(r,`text`,i),r}afterVisit(e,t,n){if(n?.text){let e=n.text?.rotation??null;e!==null&&(n.rotation=parseInt(e),delete n.title.rotation)}}},ie=class{visit(e,t,n){let r=e.evaluate(`manualLayout`,t);if(r){let t={};v(e,r,t,`x`,`x`),v(e,r,t,`y`,`y`),v(e,r,t,`w`,`w`),v(e,r,t,`h`,`h`),h(e,r,t,`xMode`,`xMode`),h(e,r,t,`yMode`,`yMode`),h(e,r,t,`wMode`,`wMode`),h(e,r,t,`hMode`,`hMode`),Object.keys(t).length>0&&(n.manualLayout=t)}return n}},ae=class{visit(e,t,n){return n.name=t.getAttribute(`name`),n}},oe=class extends C{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}},se=class{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=e.evaluate(`majorFont`,t),a=this.processFontElement(e,i,{});a&&(r.majorFont=a.family,a.fallbacks&&(r.majorFallbacks=a.fallbacks));let o=e.evaluate(`minorFont`,t),s=this.processFontElement(e,o,{});return s&&(r.minorFont=s.family,s.fallbacks&&(r.minorFallbacks=s.fallbacks)),n.fonts=r,r}processFontElement(e,t,r){if(!t)return;let i=e.evaluate(`latin`,t);if(!i)return;let a=i.getAttribute(`typeface`);a&&(r.family=a);let o=i.getAttribute(`panose`);return o&&(r.fallbacks=[n.Q.getPanoseFallback(o)]),r}},ce=class extends C{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&&i&&a&&o)return n.fillStyleLst=r,n.lnStyleLst=i,n.effectStyleLst=a,void(n.bgFillStyleLst=o);let s=e.serializeElement(t);s&&(n.formatSchemeXml=s)}parseFillList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;let r=this.parseFillListItem(e,n);if(r===void 0)return;i.push(r)}return i}parseFillListItem(e,t){switch(t.localName){case`noFill`:return{type:n.dt.Type.None};case`solidFill`:{let r=this.processAdjColor(e,t);return r?{type:n.dt.Type.Solid,color:r}:void 0}case`gradFill`:return this.processGradFill(e,t);case`pattFill`:return this.processPatternFill(e,t);default:return}}parseLnList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1){if(e.evaluate(`headEnd`,n)||e.evaluate(`tailEnd`,n))return;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}},le=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`r:id`);if(i){let t=e.getRef(i);typeof t==`string`&&(r.address=t)}return e.copyFromAttribute(t,`tooltip`,r,`screenTip`),e.copyFromAttribute(t,`history`,r,`history`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`tgtFrame`,r,`target`),n.hyperlink=r,r}},ue=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),r}processColorFilter(e,t){let r={},i={operator:n.q.BuiltInOperatorNames.Color,param:r};return e.copyFromAttribute(t,`cellColor`,r,`cellColor`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`dxfId`,r,`styleId`,e.INT_COPY),i}processCustomFilter(e,t){return a.o({operator:t.getAttribute(`operator`),val:t.getAttribute(`val`)})}processCustomFilters(e,t){let r=t.getAttribute(`and`),i=r===`and`||r===`1`;t.getAttribute(`val`);let a=[],o={operator:i?n.q.BuiltInOperatorNames.And:n.q.BuiltInOperatorNames.Or,param:a},s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType!==1)continue;let r=null;n.localName===`customFilter`&&(r=this.processCustomFilter(e,n)),r&&a.push(r)}return a.length===1?a[0]:o}processDynamicFilter(e,t){let r={},i={operator:n.q.BuiltInOperatorNames.TimePeriod,param:r},a=t.getAttribute(`type`);return a===`aboveAverage`?a=n.q.AverageType.Above:a===`belowAverage`&&(a=n.q.AverageType.Below),Object.values(n.q.AverageType).includes(a)?(i.operator=n.q.BuiltInOperatorNames.Average,e.copyFromAttribute(t,`val`,r,`stdDevs`,e.INT_COPY)):e.copyFromAttribute(t,`val`,r,`anchorDate`,e.INT_COPY),e.copyFromAttribute(t,`type`,r,`operator`),e.copyFromAttribute(t,`maxVal`,r,`maxVal`,e.INT_COPY),i}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 r={},i={operator:n.q.BuiltInOperatorNames.InSet,param:r};e.copyFromAttribute(t,`blank`,i,`blank`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calendarType`,i,`calendarType`);let a=[],o=[],s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1){if(n.localName===`dateGroupItem`){let t=this.processDateGroupItem(e,n);t&&a.push(t)}else if(n.localName===`filter`){let t=this.processFilterItem(e,n);t!==void 0&&o.push(t)}}}return a.length>0&&(r.dateGroups=a),o.length>0&&(r.items=o),i}processIcon(e,t){let r={},i={operator:n.q.BuiltInOperatorNames.Icon,param:r};return e.copyFromAttribute(t,`iconId`,r,`iconId`,e.INT_COPY),e.copyFromAttribute(t,`iconSet`,r),i}processTop10(e,t){let r={},i={operator:n.q.BuiltInOperatorNames.TopN,param:r};return e.copyFromAttribute(t,`filterVal`,r,`filterVal`,e.FLOAT_COPY),e.copyFromAttribute(t,`percent`,r,`percent`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`top`,r,`top`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`val`,r,`val`,e.FLOAT_COPY),i}processFilterCriteria(e,t){if(!t)return;let n,r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);i.nodeType===1&&(i.localName===`colorFilter`?n=this.processColorFilter(e,i):i.localName===`customFilters`?n=this.processCustomFilters(e,i):i.localName===`dynamicFilter`?n=this.processDynamicFilter(e,i):i.localName===`filters`?n=this.processFilters(e,i):i.localName===`iconFilter`?n=this.processIcon(e,i):i.localName===`top10`&&(n=this.processTop10(e,i)))}return n}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=o.p(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=o.p(t.getAttribute(`showButton`))),a&&n){let e=n.showButtons;!0!==e&&(e||(e=[],n.showButtons=e),e[r]=!0)}let s=this.processFilterCriteria(e,t);return s?(s.index=r,s):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}},de=class{visit(e,r,i){if(!r)return;let a=r.getAttribute(`ref`),s={};r.hasAttribute(`caseSensitive`)&&(s.collatorOptions=o.p(r.getAttribute(`caseSensitive`))?n.W.CaseSensitiveOptions:n.W.CaseInsensitiveOptions);let c=r.getAttribute(`sortMethod`);c!=null&&c!==`none`&&(c===`stroke`?s.collatorOptions={...s.collatorOptions,collation:`stroke`}:c===`pinYin`&&(s.collatorOptions={...s.collatorOptions,collation:`pinyin`}));let l={};r.hasAttribute(`columnSort`)&&o.p(r.getAttribute(`columnSort`))&&(l.axis=t.l.Axis.Column);let u=n.Rt.fastStringToRange(a),d=[];return this.processSortConditions(e,r,d,u,s),d.length>0&&(l.sorts=d),Object.keys(d).length>0&&(i.sort=l),l}processSortCondition(e,t,r,i){if(!t)return null;let a={};if(!t.hasAttribute(`ref`))return void console.warn(`no ref for sort conditional`,e.getPath());if(t.hasAttribute(`ref`)){let e=t.getAttribute(`ref`),i=n.Rt.fastStringToRange(e);a.index=r?i.colStart-r.colStart:i.colStart}let s={...i};return a.criteria=s,s.reverse=!1,t.hasAttribute(`descending`)&&(s.reverse=o.p(t.getAttribute(`descending`))),e.copyFromAttribute(t,`sortBy`,s,`sortOn`),e.copyFromAttribute(t,`dxfId`,s),e.copyFromAttribute(t,`iconSet`,s),e.copyFromAttribute(t,`customList`,s),a}processSortConditions(e,t,n,r,i){if(!t)return;let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let o=a.item(t);if(o.nodeType===1&&o.localName===`sortCondition`){let t=this.processSortCondition(e,o,r,i);t&&n.push(t)}}}},Z=class extends A{visit(e,t,r){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let i={fills:{},fonts:{},borders:{}};this.processFonts(e,e.evaluate(`fonts`,t),i.fonts),this.processFills(e,e.evaluate(`fills`,t),i.fills),this.processBorders(e,e.evaluate(`borders`,t),i.borders,!0),i.fills[0]={type:n.dt.Type.None},i.fills[1]={type:n.dt.Type.Pattern,patternType:n.dt.BuiltInSheetPattern.Gray125},i.borders[0]={bottom:{style:n.rt.StrokeStyle.None},left:{style:n.rt.StrokeStyle.None},right:{style:n.rt.StrokeStyle.None},top:{style:n.rt.StrokeStyle.None}};let a=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),a,i,null,!1);let o=new Map;if(a.length>0){let n=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),n,a,o),r.named=n}let s=[];this.processXFs(e,e.evaluate(`cellXfs`,t),s,i,o),Object.keys(s).length>0&&(r.direct=s);let c=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),c),this.processTableStyles(e,e.evaluate(`tableStyles`,t),r,c),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),r),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),r),r}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,r,i,a,s){if(!t)return;let c=t.getAttribute(`xfId`);if(c&&a){let e=a.get(parseInt(c));e&&e!==n.st.BuiltInName.Normal&&(r.named=e)}let l=e=>!(!s&&t.hasAttribute(e))||o.p(t.getAttribute(e)),u=e=>!s||t.hasAttribute(e)&&o.p(t.getAttribute(e)),d=s?`0`:void 0;if(l(`applyFont`)){let e=t.getAttribute(`fontId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFont`))){let t=i.fonts[e];t!==void 0&&(r.font=t)}}if(l(`applyFill`)){let e=t.getAttribute(`fillId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFill`))){let t=i.fills[e];t!==void 0&&Object.keys(t).length>0&&(r.fill=t)}}if(l(`applyBorder`)){let e=t.getAttribute(`borderId`)??d;if(e!==void 0&&(e!==`0`||u(`applyBorder`))){let t=i.borders[e];t!==void 0&&(r.border=t)}}if(l(`applyNumberFormat`)){let n=t.getAttribute(`numFmtId`)??d;if(n!==void 0&&(n!==`0`||u(`applyNumberFormat`))){let t,i=parseInt(n),a=e.getVisitorParamsState();if(a){let e=a.get(`numFmts`);e&&(t=e.get(i)),r.numberFormat=t??i}else console.warn(`no visitor params state`)}}if(l(`applyAlignment`)){let n=e.evaluate(`alignment`,t);(n||u(`applyAlignment`))&&this.processAlignment(e,n,r)}if(l(`applyProtection`)){let n=e.evaluate(`protection`,t);(n||u(`applyProtection`))&&this.processProtection(e,n,r)}let f=o.p(t.getAttribute(`quotePrefix`)??``);f&&(r.quotePrefix=f)}processAlignment(e,t,r){let i={};if(t?.hasAttribute(`horizontal`)?i.horizontal=t.getAttribute(`horizontal`):i.horizontal=n.dn.HorizontalAlignment.General,t?.hasAttribute(`vertical`)?i.vertical=t.getAttribute(`vertical`):i.vertical=n.dn.VerticalAlignment.Bottom,t?.hasAttribute(`indent`)?i.indent=parseInt(t.getAttribute(`indent`)):i.indent=0,t?.hasAttribute(`relativeIndent`)?i.relativeIndent=parseInt(t.getAttribute(`relativeIndent`)):i.relativeIndent=0,o.p(t?.getAttribute(`wrapText`)??``)?i.overflow=n.dn.Overflow.Wrap:i.overflow=n.dn.Overflow.Visible,o.p(t?.getAttribute(`shrinkToFit`)??``)&&(i.overflow=n.dn.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,i.stacked=!0),i.rotation=e}else i.rotation=0;t?.hasAttribute(`justifyLastLine`)&&(i.justifyLastLine=o.p(t.getAttribute(`justifyLastLine`)));let a=t?.getAttribute(`readingOrder`);return a&&(a===`0`?i.readingDirection=n.dn.ReadingDirection.Auto:a===`1`?i.readingDirection=n.dn.ReadingDirection.LeftToRight:a===`2`?i.readingDirection=n.dn.ReadingDirection.RightToLeft:console.warn(`invalid readingOrder: ${a}`)),Object.keys(i).length>0&&(r.alignment=i),r}processProtection(e,t,n){if(!t)return;let r={},i=t.getAttribute(`locked`);i&&!o.p(i)&&(r.edit=!0);let a=t.getAttribute(`hidden`);return a&&o.p(a)&&(r.formulaHidden=!0),Object.keys(r).length>0&&(n.protection=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.border=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`)}processTableStyle(e,t,n,r,i=!1){let a=t.getAttribute(`name`),s={name:a};t.hasAttribute(`table`)&&(s.table=o.p(t.getAttribute(`table`))),t.hasAttribute(`pivot`)&&(s.pivot=o.p(t.getAttribute(`pivot`))),i&&!s.pivot&&r.unshift(null);let c=t.childNodes,l=c.length;for(let e=0;e<l;e++){let t=c.item(e);if(t.nodeType===1&&t.localName===`tableStyleElement`){let e=t.getAttribute(`type`),n=t.getAttribute(`dxfId`),i=n==null?void 0:r?.[n];i||=(console.warn(`invalid dfx id`,n),{}),s[e]=i;let a=null;t.hasAttribute(`size`)&&(a=parseInt(t.getAttribute(`size`))),a&&!isNaN(a)&&(i.size=a)}}delete s.name,n[a]=s}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,r,i,a){if(!t)return;let s=t.childNodes,c=s.length;for(let e=0;e<c;e++){let t=s.item(e);if(t.nodeType===1&&t.localName===`cellStyle`){let e=parseInt(t.getAttribute(`xfId`)??``),s=t.getAttribute(`name`),c=t.getAttribute(`builtinId`),l=s;if(c!==null){let e=n.st.builtInNameFromId(parseInt(c));e!==void 0&&(l=e)}if(a.set(e,l),!i[e])continue;let u={name:l,style:i[e]};t.getAttribute(`hidden`)&&(u.hidden=o.p(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(u.iLevel=parseInt(t.getAttribute(`iLevel`))),r.push(u)}}}afterVisit(e,t,n){}},fe=class extends A{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.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),Object.keys(a).length>0&&(n[i]=a)}processWorkbookProtection(e,t,n){if(!t)return;let r={};return this.processPassword(e,t,r,`workbook`,`password`),this.processPassword(e,t,r,`revisions`,`revisionsPassword`),e.copyFromAttribute(t,`lockStructure`,r,`structure`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockWindows`,r,`windows`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockRevision`,r,`revision`,e.BOOLEAN_COPY),n.protection=r,n}processCalcPr(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`calcMode`,r,`calcMode`,e=>M[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,`refMode`,r,`refMode`),e.copyFromAttribute(t,`iterate`,r,`iterate`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`iterateCount`,r,`maxIterations`,e.INT_COPY),e.copyFromAttribute(t,`iterateDelta`,r,`maxIterateChange`,e.FLOAT_COPY),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`);let i=t.getAttribute(`r:id`),a=e.getRef(i);a&&(r.sheet=a),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)}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={};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]),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 e=t.getAttribute(`localSheetId`);if(!r[e]?.name)return void console.warn(`Defined name '${t.getAttribute(`name`)}' references a sheet with localSheetId '${e}' which does not exist.`);i.scope=r[e].name}e.copyFromAttribute(t,`customMenu`,i),e.copyFromAttribute(t,`description`,i),e.copyFromAttribute(t,`statusBar`,i),e.copyFromAttribute(t,`help`,i),e.copyFromAttribute(t,`shortcutKey`,i),e.copyFromAttribute(t,`function`,i,`function`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`functionGroupId`,i,`functionGroupId`,e.INT_COPY),e.copyFromAttribute(t,`publishToServer`,i,`publishToServer`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`vbProcedure`,i,`vbProcedure`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`xlm`,i,`xlm`,e.BOOLEAN_COPY),Object.keys(i).length>0&&n.push(i)}processDefinedNames(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);a.nodeType===1&&a.localName===`definedName`&&this.processDefineName(e,a,r,n.sheets)}r.length>0&&(n.names=r)}processWorkbookPr(e,t,n){t&&e.copyFromAttribute(t,`date1904`,n,`date1904`,e.BOOLEAN_COPY)}afterVisit(e,t,n){}},pe=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),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),e.copyFromAttribute(t,`totalsRowShown`,r,`totalsRowShown`,e.BOOLEAN_COPY),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),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)}},me=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}},he=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}}return a?(t.getAttribute(`mc:Ignorable`)&&(n.mceIgnorable=!0),n.sheetNames=[],this.processSheetNames(e,a,n),this.processDefinedNames(e,a,n),this.processSheetDataSet(e,a,n),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 r=new n.n.Builder,i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType!==1||t.localName!==`row`)continue;let a=t.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`cell`)continue;let i=t.getAttribute(`r`);if(!i)continue;let o=n.Rt.fastStringToCell(i);if(o?.rowIndex===void 0||o?.colIndex===void 0)continue;let s=this._readCellValue(t);s!==void 0&&r.pushAt(o.rowIndex,o.colIndex,s)}}return{sheetIndex:-1,data:r.build()?.tuples??[]}}_readCellValue(e){let n=this._findChild(e,`v`)?.textContent?.trim();if(n!==void 0&&n!==``)switch(e.getAttribute(`t`)){case null:case`n`:return parseFloat(n);case`b`:return n===`1`||n===`true`;case`str`:default:return n;case`e`:{let e=t.a.getBuiltInByLabel(n);return e?{t:`e`,v:e.getCode()}:n}}}_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}},ge=class{visit(e,t,n){e.copyFromAttribute(t,`name`,n),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,`crossFilter`,n),n):(console.warn(`SlicerCacheDefinitionVisitor: missing tableSlicerCache element`),n)}},_e=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;let i=t.getAttribute(`cache`),a=e.getVisitorParamsState().get(`slicerCaches`);if(i){let e=a.get(i);e&&(r.columnId=e.columnId,r.tableId=e.tableId)}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,`locked`,r,`locked`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`rowHeight`,r,`rowHeight`,e.INT_COPY)}},ve=class{visit(e,t,n){return n}},Q=class{visit(e,t,n){if(!t)return;let r={};return e.copyFromAttribute(t,`editAs`,r,`anchorType`),r.anchor={},t.localName===`absoluteAnchor`?(r.anchorType=`absolute`,this.processAbsoluteCoord(e,e.evaluate(`xdr:pos`,t),r.anchor,`from`,`x`,`y`),this.processAbsoluteCoord(e,e.evaluate(`xdr: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(`xdr: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`)),n.movables||=[],n.movables.push(r),r}processAbsoluteCoord(e,t,n,r,i,a){if(!t)return;let s={x:0,y:0};return s.x=o.i(t.getAttribute(i)),s.y=o.i(t.getAttribute(a)),r===`from`?n.tl=s:n.br=s,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=o.i(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(i.y=o.i(e.evaluate(`rowOff`,t).textContent)),r===`from`?n.tl=i:n.br=i,n}},ye=class extends N{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGraphicFramePr/cNvGraphicFramePr`,t);if(r){let t=e.evaluate(`graphicFrameLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}let i={type:`graphicFrame`,json:{}},a=e.evaluate(`graphic/graphicData`,t).childNodes,s=a.length;for(let n=0;n<s;n++){let r=a.item(n);if(r.nodeType===1)try{let n=r.localName;n===`chart`?n=`chart`:n===`slicer`&&(n=`slicer`),i.type=n;let a=r.getAttribute(`r:id`);if(n===`chart`&&a){let n=e.evaluate(`*/cNvPr`,t);n?.item&&(n=n.item(0));let r,s=n?.getAttribute?.(`id`),c=s?parseInt(s,10):void 0,l=e.getRelationships().get(a);if(l?.target){let t=e.getFileLocation(),n=t.slice(0,t.lastIndexOf(`/`)+1);r=o.u(l.target.startsWith(`/`)?l.target:n+l.target)}i.json={xml:e.serializeElement(t)??void 0,sourceId:c===void 0||isNaN(c)?void 0:c,chartRelId:a,chartTargetPath:r}}else a&&(i.json=e.getRef(a))}catch(e){console.warn(`Unable to parse graphicFrame`,e)}}return i&&(n.content=i),i}},be=P,$=class extends N{visit(e,t,n){if(!t)return;let r=super.visit(e,t,n),i=e.evaluate(`nvPicPr/cNvPicPr`,t);if(i){e.copyFromAttribute(t,`preferRelativeResize`,r,`preferRelativeResize`,e.BOOLEAN_COPY);let n=e.evaluate(`picLocks`,i);if(n){n.hasAttribute(`noChangeAspect`)&&(r.lockAspect=n.getAttribute(`noChangeAspect`)===`1`);let t={};e.copyFromAttribute(n,`noChangeArrowheads`,r,`noChangeArrowheads`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noChangeShapeType`,r,`noChangeShapeType`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noEditPoints`,r,`noEditPoints`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noAdjustHandles`,r,`noAdjustHandles`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noCrop`,r,`noCrop`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noGrp`,r,`noGrp`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noMove`,r,`noMove`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noResize`,r,`noResize`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noRot`,r,`noRot`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noSelect`,r,`noSelect`,e.BOOLEAN_COPY),Object.keys(t).length>0&&(r.locks=t)}}let a,o=e.evaluate(`blipFill/blip`,t);if(o){let t;if(t=o.getAttribute(`r:embed`)??o.getAttribute(`embed`),t||=o.getAttribute(`r:link`)??o.getAttribute(`link`),!t)return void console.warn(`no rId found for blip`,o);a=e.getRef(t,!0)}return n.content={type:`picture`,json:{resId:a}},r}},xe=class extends P{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGrpSpPr/cNvGrpSpPr`,t);if(r){let t=e.evaluate(`grpSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`Unable to import '${n.name}', group shapes are not supported.`);let i={};return n.content={type:`grpSp`,json:i},i}},Se=class extends P{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvCxnSpPr/cNvCxnSpPr`,t);if(r){let t=e.evaluate(`cxnSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`cxnSp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`cxnSp`,json:s},s}},Ce=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}},we=class{visit(e,t,n){let r=e.getVisitorParamsState().get(F);r||(r=[],e.getVisitorParamsState().set(F,r));let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`s`){let t={type:n.getAttribute(`t`)??`n`,keys:[]};this.processKeys(e,n,t),r.push(t)}}return n.richTypes=r,r}processKeys(e,t,n){let r=t.childNodes,i=r.length,a=n.keys;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`k`){let e=t.getAttribute(`n`),n=t.getAttribute(`t`);a.push([e,n])}}}},Te=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`richTypes`);if(!r)return void e.warn(`RichValueFound but not type.`);let i=e.getVisitorParamsState().get(I);i||(i=[],e.getVisitorParamsState().set(I,i));let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1&&n.localName===`rv`){let t=r[n.getAttribute(`s`)],a={type:t.type};this.processValues(e,n,a,t);let o=this.mapType(e,a);i.push(o)}}return n.richData=i,i}mapType(e,n){if(n.type===`_error`){let e=n.errorType;if(e)try{n=t.a.getBuiltInByCode(e+1)??t.a.BuiltIn.Unknown}catch{}}return n}processValues(e,t,n,r){let i=t.childNodes,a=i.length;r.type;let o=r.keys;for(let t=0;t<a;t++){let r=i.item(t);if(r.nodeType===1&&r.localName===`v`){let i=o[t];if(!i)return void e.warn(`Invalid richData`);let a=i[0],s=i[1],c=r.textContent;s===`i`&&(c=Number(c)),n[a]=c}}}},Ee=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)}}}},De=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`ref`);e.copyFromAttribute(t,`authorId`,r,`personId`,e.INT_COPY),r.asNote=!0;let a={r:i,v:r};return n.push(a),r}},Oe=class{visit(e,t,n){if(!t)return;let r=[];return n.comments=r,r}},ke=class{visit(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`id`,r,`id`,o.d);let i=t.getAttribute(`ref`);e.copyFromAttribute(t,`personId`,r,`personId`,o.d),e.copyFromAttribute(t,`parentId`,r,`parentId`,o.d),e.copyFromAttribute(t,`dT`,r),t.hasAttribute(`done`)&&(r.done=o.p(t.getAttribute(`done`)));let a={r:i,v:r};return n.push(a),r}},Ae=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`,o.d),e.copyFromAttribute(n,`displayName`,t),e.copyFromAttribute(n,`userId`,t,`userId`,o.d),e.copyFromAttribute(n,`providerId`,t),r.push(t)}}return r.length>0&&(n.persons=r),r}},je=class{constructor(e,t){this.path=e,this.visitor=t}};exports.DOMTransformer=class{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor(`Relationships`,new ee),this.registerVisitor(`cp:coreProperties`,new te),this.registerVisitor(`Properties`,new ne),this.registerVisitor(`spPr`,new R),this.registerVisitor(`txBody`,new K),this.registerVisitor(`txPr`,new K),this.registerVisitor(`c:chartSpace`,new re),this.registerVisitor(`c:plotArea`,new L),this.registerVisitor(`c:barChart`,new z),this.registerVisitor(`c:doughnutChart`,new B),this.registerVisitor(`c:lineChart`,new B),this.registerVisitor(`c:ofPieType`,new B),this.registerVisitor(`c:pieChart`,new B),this.registerVisitor(`c:scatterChart`,new B),this.registerVisitor(`c:barChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:doughnutChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:lineChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:ofPieType`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:pieChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:scatterChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:ser`,new H),this.registerVisitor(`c:dPt`,new U),this.registerVisitor(`c:marker`,new W),this.registerVisitor(`c:catAx`,new G),this.registerVisitor(`c:valAx`,new G),this.registerVisitor(`c:dateAx`,new G),this.registerVisitor(`c:majorGridlines`,new S(`gridLinesMajor`)),this.registerVisitor(`c:minorGridlines`,new S(`gridLinesMinor`)),this.registerVisitor(`c:chartSpace`,null,`txPr`),this.registerVisitor(`c:catAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:valAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:dateAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:legend`,new J),this.registerVisitor(`c:legend`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:legendEntry`,new q),this.registerVisitor(`c:ser`,new Y,`extLst/ext/invertSolidFillFmt/spPr`),this.registerVisitor(`c:ser`,new V(`labels`),`dLbls`),this.registerVisitor(`c:dLbl`,new V(`points`)),this.registerVisitor(`c:title`,new X),this.registerVisitor(`c:title`,null,`tx/rich`),this.registerVisitor(`c:title`,null,`txPr`),this.registerVisitor(`c:layout`,new ie),this.registerVisitor(`c:dispUnits`,new S(`dispUnits`)),this.registerVisitor(`c:dispUnitsLbl`,new X(`displayUnitsLabel`)),this.registerVisitor(`c:dispUnitsLbl`,new K,`tx/rich`),this.registerVisitor(`a:theme`,new ae),this.registerVisitor(`a:theme`,new oe,`themeElements/clrScheme`),this.registerVisitor(`a:theme`,new se,`themeElements/fontScheme`),this.registerVisitor(`a:theme`,new ce,`themeElements/fmtScheme`),this.registerVisitor(`autoFilter`,new ue),this.registerVisitor(`sortState`,new de),this.registerVisitor(`s:workbook`,new fe),this.registerVisitor(`styleSheet`,new Z),this.registerVisitor(`x14:table`,new me),this.registerVisitor(`table`,new pe),this.registerVisitor(`externalLink`,new he),this.registerVisitor(`hlinkClick`,new le),this.registerVisitor(`wsDr`,new ve),this.registerVisitor(`twoCellAnchor`,new Q),this.registerVisitor(`oneCellAnchor`,new Q),this.registerVisitor(`absoluteAnchor`,new Q),this.registerVisitor(`graphicFrame`,new ye),this.registerVisitor(`sp`,new be),this.registerVisitor(`grpSp`,new xe),this.registerVisitor(`cxnSp`,new Se),this.registerVisitor(`pic`,new $),this.registerVisitor(`metadata`,new Ce),this.registerVisitor(`rvStructures`,new we),this.registerVisitor(`rvData`,new Te),this.registerVisitor(`comments`,new Ee),this.registerVisitor(`comment`,new De),this.registerVisitor(`comment`,new K(`content`),`text`),this.registerVisitor(`ThreadedComments`,new Oe),this.registerVisitor(`threadedComment`,new ke),this.registerVisitor(`threadedComment`,new K(`content`),`text`),this.registerVisitor(`personList`,new Ae),this.registerVisitor(`slicerCacheDefinition`,new ge),this.registerVisitor(`slicers`,new _e)}registerVisitor(e,t,n=null){e.indexOf(`:`)===-1&&(e=`*:`+e);let r=e.split(`:`),i=r.length>1?r[1]:r[0];if(!n)return this.visitorsByXmlTagName.set(i,t),void this.visitorsByXmlTagName.set(e,t);let a=this.scopedVisitorsByXmlTagName.get(i);a||(a=[],this.scopedVisitorsByXmlTagName.set(i,a),this.scopedVisitorsByXmlTagName.set(e,a)),a.push(new je(n,t))}parseDxf(e,t=``){this.visitorParamsState||=new Map;let n=this.visitorParamsState,r=n.get(`processingDXFs`);n.set(`processingDXFs`,!0);try{let n=new f(null,this,`/dxf`,e,{},t),r={};return new Z().processDXF(n,e,r),r}finally{r===void 0?n.delete(`processingDXFs`):n.set(`processingDXFs`,r)}}getVisitorParamsState(){return this.visitorParamsState}transform(t,n,r=e.A.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 f(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){console.warn(`Error in afterVisit: ${t.context.getPath()}`,e)}}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{console.warn(`"Invalid path '${c.path}' for '${e}'.`)}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 f(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(),p=r.childNodes,m=p.length;for(let e=0;e<m;e++){let r=p.item(e);if(r.nodeType!==1)continue;let c=r,m=c.nodeName,h=l.get(m);h||=(m=c.localName,l.get(m));let g=t.getPath()+`/`+m,_=new f(t,this,g,u,d,a,o);this._doWalk(h,_,n,c,s??i,a,o)}return s}},exports.ExecutionContext=f,exports.NumberUtils=o.r,exports.VisitorUtils=p;
1
+ const e=require("./BnccBYHCCq9TGFx4.cjs"),t=require("./bIaGoYEDSBCrAaB6.cjs"),n=require("./C6yxQPAEgcGWAhYR.cjs"),r=require("./BfzzZ9IR27ZPzj-8.cjs"),i=require("./BSCgCfORdZz1Ii5S.cjs"),a=require("./CHMgm0vAbEBS1mVW.cjs"),o=require("./CojEXZgX08waZOoq.cjs");var s=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()}},c=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,l=e=>{let t=parseInt(e);return isNaN(t)?null:t},u=e=>{let t=parseFloat(e);return isNaN(t)?null:t},d=new Map,f=class{constructor(t,n,r,i,a,o=null,s=e.A.EmptyObject){this._fileLocation=``,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):(o&&(this._fileLocation=o),s?.getRef&&(this._getRef=(e,t,n)=>s?.getRef?.(e,t,n,s?.parsedRefs)),s?.getRefs&&(this._getRefs=e=>s?.getRefs?.(e,s?.parsedRefs)),this._onWarning=s?.onWarning,this._addPerson=s?.addPerson,this._serializeElement=s?.serializeElement)}getRef(e,t=!1){return this._getRef?.(e,this._fileLocation,t)??null}getRelationships(){return this._getRefs?.(this._fileLocation)??d}getPath(){return this.currentPath}getFileLocation(){return this._fileLocation}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(e){this._onWarning?this._onWarning(e):this._parent?this._parent?.warn?.(e):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 s(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.A.getFromPath(t,n)}setToPath(t,n,r){return e.A.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 c}get INT_COPY(){return l}get FLOAT_COPY(){return u}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)}},p=a.r({isBlank:()=>y,isNotBlank:()=>b,length:()=>x,parseRotation:()=>m,parseValAttrAsBoolean:()=>g,parseValAttrAsFloat:()=>v,parseValAttrAsInteger:()=>_,parseValAttrAsString:()=>h}),m=(t,n)=>{if(!t||!t.hasAttribute(`rot`))return;let r=t.getAttribute(`rot`),i=e.A.roundAccurately(o.f(r),2);i!==-1e3&&(n.rotation=i)},h=(e,t,n,r,i)=>{let a=e.getValAttrAsString(r,t);a!==null&&(n[i]=a)},g=(e,t,n,r,i=r,a=null)=>{let o=e.getValAttrAsBoolean(r,t,a);o!==null&&(n[i]=o)},_=(e,t,n,r,i)=>{let a=e.getValAttrAsInteger(r,t);a!==null&&(n[i]=a)},v=(e,t,n,r,i,a=1)=>{let o=e.getValAttrAsFloat(r,t);o!==null&&(n[i]=o*a)},y=e=>!e||e.trim().length===0,b=e=>!y(e),x=e=>e?.length??0,S=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={};return n[this.jsonKey]=r,r}},C=class{visit(e,t,n){}getStroke(e,t){let n=e.evaluate(`ln`,t);return n?this.parseLn(e,n):{}}parseLn(e,t){let n={};t.hasAttribute(`algn`)&&(n.align=t.getAttribute(`algn`)),t.hasAttribute(`cap`)&&(n.lineCap=T(t.getAttribute(`cap`))),t.hasAttribute(`cmpd`)&&(n.compound=t.getAttribute(`cmpd`)),t.hasAttribute(`w`)&&(n.width=o.s(t.getAttribute(`w`)));let r=e.evaluate(`miter`,t);r&&(n.lineJoin=`miter`,r.hasAttribute(`lim`)&&(n.miterLimit=parseFloat(r.getAttribute(`lim`))/1e5)),e.evaluate(`bevel`,t)&&(n.lineJoin=`bevel`),e.evaluate(`round`,t)&&(n.lineJoin=`round`);let i=e.evaluate(`custDash`,t);if(i){let t=e.evaluate(`ds`,i);if(t&&t.length>0){let e=[];for(let n=0;n<t.length;n++){let r=t.item(n);e.push(o.t(r.getAttribute(`d`)??``)),e.push(o.t(r.getAttribute(`sp`)??``))}n.dash=e}}let a=e.evaluate(`prstDash`,t);a&&a.hasAttribute(`val`)&&(n.dash=a.getAttribute(`val`)),this.parseEndElement(e,t,n,`headEnd`,`head`),this.parseEndElement(e,t,n,`tailEnd`,`tail`);let s=this.getFill(e,t);return s&&(n.fill=s),n}parseEndElement(e,t,n,r,i){let a=e.evaluate(r,t);if(a&&(a.hasAttribute(`type`)&&(n[i+`Type`]=a.getAttribute(`type`)),a.hasAttribute(`len`)||a.hasAttribute(`w`))){let e=a.getAttribute(`len`)||`med`,t=a.getAttribute(`w`)||`med`;n[i+`Size`]=e+`-`+t}}getEffects(e,t){let n=e.evaluate(`effectLst`,t);if(!n)return null;let r=[],i=n.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processEffectElement(e,n,n.localName);if(a===void 0)return;r.push(a)}return r}processEffectElement(e,t,n){switch(n){case`outerShdw`:{let n={type:r.o.Type.OuterShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(n.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.f(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(n.blur=o.s(t.getAttribute(`blurRad`))),t.hasAttribute(`algn`)&&(n.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(n.isRotatedWithShape=o.p(t.getAttribute(`rotWithShape`))),t.hasAttribute(`sx`)&&(n.scaleX=o.t(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(n.scaleY=o.t(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(n.skewX=o.f(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(n.skewY=o.f(t.getAttribute(`ky`))),n}case`innerShdw`:{let n={type:r.o.Type.InnerShadow,color:this.processAdjColor(e,t)};return t.hasAttribute(`dist`)&&(n.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.f(t.getAttribute(`dir`))),t.hasAttribute(`blurRad`)&&(n.blur=o.s(t.getAttribute(`blurRad`))),n}case`prstShdw`:{let n={type:r.o.Type.PresetShadow,color:this.processAdjColor(e,t),preset:t.getAttribute(`prst`)??void 0};return t.hasAttribute(`dist`)&&(n.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(n.angle=o.f(t.getAttribute(`dir`))),n}case`glow`:{let n={type:r.o.Type.Glow,color:this.processAdjColor(e,t)};return t.hasAttribute(`rad`)&&(n.radius=o.s(t.getAttribute(`rad`))),n}case`softEdge`:{let e={type:r.o.Type.SoftEdge};return t.hasAttribute(`rad`)&&(e.radius=o.s(t.getAttribute(`rad`))),e}case`reflection`:{let e={type:r.o.Type.Reflection};return t.hasAttribute(`blurRad`)&&(e.blur=o.s(t.getAttribute(`blurRad`))),t.hasAttribute(`dist`)&&(e.distance=o.s(t.getAttribute(`dist`))),t.hasAttribute(`dir`)&&(e.angle=o.f(t.getAttribute(`dir`))),t.hasAttribute(`fadeDir`)&&(e.fadeAngle=o.f(t.getAttribute(`fadeDir`))),t.hasAttribute(`stA`)&&(e.startAlpha=o.t(t.getAttribute(`stA`))),t.hasAttribute(`stPos`)&&(e.startPosition=o.t(t.getAttribute(`stPos`))),t.hasAttribute(`endA`)&&(e.endAlpha=o.t(t.getAttribute(`endA`))),t.hasAttribute(`endPos`)&&(e.endPosition=o.t(t.getAttribute(`endPos`))),t.hasAttribute(`sx`)&&(e.scaleX=o.t(t.getAttribute(`sx`))),t.hasAttribute(`sy`)&&(e.scaleY=o.t(t.getAttribute(`sy`))),t.hasAttribute(`kx`)&&(e.skewX=o.f(t.getAttribute(`kx`))),t.hasAttribute(`ky`)&&(e.skewY=o.f(t.getAttribute(`ky`))),t.hasAttribute(`algn`)&&(e.alignment=t.getAttribute(`algn`)),t.hasAttribute(`rotWithShape`)&&(e.isRotatedWithShape=o.p(t.getAttribute(`rotWithShape`))),e}default:return}}getFill(e,t){if(e.evaluate(`noFill`,t))return{type:n.dt.Type.None};let r=e.evaluate(`solidFill`,t);if(r){let t=this.processAdjColor(e,r);if(t)return{type:n.dt.Type.Solid,color:t}}let i=e.evaluate(`gradFill`,t);if(i)return this.processGradFill(e,i);let a=e.evaluate(`pattFill`,t);if(a)return this.processPatternFill(e,a);let o=e.evaluate(`blipFill`,t);return o?this.processImageFill(e,o):null}processGradFill(e,t){let r={type:n.dt.Type.Gradient};t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=t.getAttribute(`rotWithShape`)===`1`);let i=e.evaluate(`lin`,t);i&&(r.gradientType=n.dt.GradientType.Linear,i.hasAttribute(`ang`)&&(r.angle=o.f(i.getAttribute(`ang`))),i.hasAttribute(`scaled`)&&(r.scaled=o.p(i.getAttribute(`scaled`))));let a={};t.hasAttribute(`flip`)&&(a.mirror=t.getAttribute(`flip`)),Object.keys(a).length>0&&(r.tile=a);let s=e.evaluate(`path`,t);if(s){s.hasAttribute(`path`)&&(r.gradientType=w(s.getAttribute(`path`)));let t=e.evaluate(`fillToRect`,s);t&&(r.focus=this.getRect(t))}let c=e.evaluate(`tileRect`,t);c&&(r.tile||={},r.tile.bounds=this.getRect(c));let l=[],u=e.evaluate(`gsLst/gs`,t),d=u?u.length:0;for(let t=0;t<d;t++){let n=u.item(t),r={offset:o.t(n.getAttribute(`pos`)??``),color:this.processAdjColor(e,n)};l.push(r)}return l.length>0&&(r.stops=l),r}getRect(e){let t={};return e.hasAttribute(`t`)&&(t.t=o.t(e.getAttribute(`t`))),e.hasAttribute(`l`)&&(t.l=o.t(e.getAttribute(`l`))),e.hasAttribute(`b`)&&(t.b=o.t(e.getAttribute(`b`))),e.hasAttribute(`r`)&&(t.r=o.t(e.getAttribute(`r`))),Object.keys(t).length===0?null:t}processImageFill(e,t){let r={type:n.dt.Type.Image};return t.hasAttribute(`rotWithShape`)&&(r.isRotatedWithShape=o.p(t.getAttribute(`rotWithShape`))),t.hasAttribute(`dpi`)&&(r.dpi=t.getAttribute(`dpi`)),r.ref=`https://www.sheetxl.com/logo-color-padded-white.jpg`,r.tile=!1,r}processPatternFill(e,t){let r={type:n.dt.Type.Pattern};r.patternType=t.getAttribute(`prst`);let i=e.evaluate(`bgClr`,t);if(i){let t=this.processAdjColor(e,i);t&&(r.background=t)}let a=e.evaluate(`fgClr`,t);if(a){let t=this.processAdjColor(e,a);t&&(r.foreground=t)}return r}processAdjColor(e,t){let n=e.evaluate(`hslClr`,t);if(n)return this.processHslClr(e,n);let r=e.evaluate(`prstClr`,t);if(r)return this.processClrWithValAttribute(e,r);let i=e.evaluate(`schemeClr`,t);if(i)return this.processClrWithValAttribute(e,i);let a=e.evaluate(`sysClr`,t);if(a){let t=this.processClrWithValAttribute(e,a),n=a.getAttribute(`lastClr`);return t&&n&&(t+=` lastClr ${n}`),t}let o=e.evaluate(`scrgbClr`,t);if(o)return this.processScrgbClrElement(e,o);let s=e.evaluate(`srgbClr`,t);return s?this.processSrgbClrElement(e,s):null}processScrgbClrElement(e,t){let n=`lrgba(`+o.t(t.getAttribute(`r`)??``)+`,`+o.t(t.getAttribute(`g`)??``)+`,`+o.t(t.getAttribute(`b`)??``)+`)`;return n+=this.processAdjustments(e,t),n}processSrgbClrElement(e,t){let n=t.getAttribute(`val`);return n+=this.processAdjustments(e,t),n}processHslClr(e,t){let n=`hsl(`+o.f(t.getAttribute(`hue`)??``)+`,`+o.t(t.getAttribute(`sat`)??``)+`,`+o.t(t.getAttribute(`lum`)??``)+`)`;return n+=this.processAdjustments(e,t),n}processClrWithValAttribute(e,t){let n=t.getAttribute(`val`);if(!n)return null;let r=n;return r+=this.processAdjustments(e,t),r}processAdjustments(e,t){let n=``,r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1){let t=i.localName;n+=t===`hue`||t===`hueOff`||t===`hueMod`?this.processAdjustmentElement(e,i,t,6e4):t===`gray`||t===`comp`||t===`inv`||t===`gamma`||t===`invGamma`?this.processAdjustmentElement(e,i,t,1):t===`alpha`||t===`alphaOff`||t===`alphaMod`?this.processAdjustmentElement(e,i,t,1e5):this.processAdjustmentElement(e,i,t)}}return n}processAdjustmentElement(e,t,n,r=1e3){let i=t.getAttribute(`val`);return i?` ${n} ${!i||parseFloat(i)/r}`:` ${n}`}},w=e=>e===`circle`?`radial`:e,T=e=>{if(e===`rnd`)return`round`;if(e===`flat`)return`butt`;if(e===`sq`)return`square`;throw Error(`Invalid lineCap type: `+e)},E=class extends C{visit(e,t,n){try{let r=e.evaluate(`xfrm`,t);if(r){m(r,n);let t={x:0,y:0,width:0,height:0},i=e.evaluate(`off`,r);i&&(t.x=o.i(i.getAttribute(`x`))??0,t.y=o.i(i.getAttribute(`y`))??0);let a=e.evaluate(`ext`,r);i&&(t.width=o.i(a.getAttribute(`cx`))??0,t.height=o.i(a.getAttribute(`cy`))??0),n.bounds=t}let i=e.evaluate(`prstGeom`,t);i?.hasAttribute(`prst`)?n.geometry=i?.getAttribute(`prst`):e.evaluate(`customGeom`,t)&&console.warn(`customGeom not supported yet`);let a=this.getFill(e,t);a&&Object.keys(a).length>0&&(n.fill=a);let s=this.getStroke(e,t);return s&&Object.keys(s).length>0&&(n.stroke=s),n}catch(e){console.warn(e)}}},D=class{visit(e,t,n){let r={};if(h(e,t,r,`grouping`,`grouping`),g(e,t,r,`varyColors`,`varyColors`),v(e,t,r,`gapWidth`,`gapWidth`,.01),v(e,t,r,`overlap`,`overlap`,.01),this.parseType(e,t,r),_(e,t,r,`bubbleScale`,`bubbleScale`),g(e,t,r,`showNegBubbles`,`showNegativeBubbleValues`),g(e,t,r,`sizeRepresents`,`bubbleSizeRepresentsWidth`),_(e,t,r,`firstSliceAng`,`startAngle`),_(e,t,r,`holeSize`,`holeSize`),h(e,t,r,`scatterStyle`,`scatterStyle`),this.parseAxisIds(e,t,r),Object.keys(r).length>0){let t=e.getVisitorParamsState().get(`types`);t||(console.warn(`Uninitialized types array in ChartTypeVisitor`),t=[],e.getVisitorParamsState().set(`types`,t)),t.push(r)}return r}parseType(e,t,n){switch(t.localName){case`areaChart`:n.type=`area`;break;case`bubbleChart`:n.type=`bubble`;break;case`doughnutChart`:case`ofPieType`:case`pieChart`:n.type=`pie`;break;case`lineChart`:n.type=`line`;break;case`scatterChart`:n.type=`scatter`}}parseAxisIds(e,t,n){let r=e.evaluate(`axId`,t);r&&r.length!==0&&(n.xAxisId=r.item(0).getAttribute(`val`),n.yAxisId=r.item(1).getAttribute(`val`))}},O=(e,t,n)=>{if(!0===e.getValAttrAsBoolean(`invertIfNegative`,t))if(e.evaluate(`extLst/ext/invertSolidFillFmt`,t)){if(n.fill&&n.fillNegative){let t=e.getFromPath(n,`fill.solid.adjs`);t&&e.setToPath(n,`fillNegative.solid.adjs`,t)}}else{let e={val:`FFFFFF`},t={};t.solid=e,n.fillNegative=t;let r={val:`000000`},i={};i.solid=r;let a={};a.fill=i,n.strokeNegative=a}},k=class extends C{constructor(e=`text`){super(),this._jsonKey=e}getTextPath(){return this._jsonKey}visit(e,t,n){let r=e.getFromPath(n,this.getTextPath());return r||={},this.parseTextElement(e,t,r,!1),Object.keys(r).length>0&&e.setToPath(n,this.getTextPath(),r),n}parseTextElement(e,t,n,r){let i=e.evaluate(`p/pPr/defRPr`,t)??e.evaluate(`defRPr`,t);i&&(this.parseTextProperties(e,i,n),new E().visit(e,i,n));let a=n.runs??[],o=e.evaluate(`p/r`,t)??e.evaluate(`r`,t),s=t=>{let n={},r=e.evaluate(`t`,t),i=e.evaluate(`rPr`,t);i&&this.parseTextProperties(e,i,n),r&&r.firstChild?n.text=r.firstChild.textContent??``:t.textContent&&(n.text=t.textContent??``),Object.keys(n).length>0&&a.push(n)};if(o?.length!==void 0)for(let e=0;o&&e<o.length;e++)s(o.item(e));else s(o||t);a.length>0&&(n.runs=a);let c=e.evaluate(`bodyPr`,t);c&&m(c,n)}parseTextProperties(e,t,r){if(!t)return;t.hasAttribute(`sz`)&&(r.size=parseFloat(t.getAttribute(`sz`))/100),t.hasAttribute(`b`)&&(r.weight=t.getAttribute(`b`)===`1`?700:400),t.hasAttribute(`i`)&&(r.italic=t.getAttribute(`i`)===`1`),t.hasAttribute(`u`)&&(r.underline=t.getAttribute(`u`)),t.hasAttribute(`strike`)&&(r.strike=t.getAttribute(`strike`));let i=this.getFill(e,t);i&&Object.keys(i).length>0&&(r.color=i);let a=e.evaluate(`latin`,t);if(a&&!a.getAttribute(`typeface`).startsWith(`+`)){let e=r.font??{};if(a.hasAttribute(`typeface`)&&(e.family=a.getAttribute(`typeface`)),a.hasAttribute(`panose`)){let t=a.getAttribute(`panose`);t&&(e.fallbacks=[n.Q.getPanoseFallback(t)])}a.hasAttribute(`pitchFamily`)&&(e.pitch=a.getAttribute(`pitchFamily`)),a.hasAttribute(`charset`)&&(e.charset=a.getAttribute(`charset`)),Object.keys(e).length>0&&(r.font=e)}}},A=class{visit(e,t,n){}processDataBarColor(e,t,n,r,i=`auto`){if(!t)return;let a=o.o(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.Q.Style.Italic),e.getValAttrAsBoolean(`strike`,t,!0)&&(r.strike=!0);let i=e.evaluate(`u`,t);i&&(r.underline=i.getAttribute(`val`)||n.Q.UnderlineStyle.Single),h(e,t,r,`vertAlign`,`verticalAlign`),r.verticalAlign===`superscript`?r.verticalAlign=n.Q.VerticalAlignment.Super:r.verticalAlign===`subscript`&&(r.verticalAlign=n.Q.VerticalAlignment.Sub),v(e,t,r,`sz`,`size`);let a=e.evaluate(`color`,t);this.processDataBarColor(e,a,r,`color`),r.color||=`auto`,h(e,t,r,`name`,`family`),h(e,t,r,`rFont`,`family`);let o=e.evaluate(`family`,t);if(o){let e=o.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`]}}return h(e,t,r,`scheme`,`scheme`),g(e,t,r,`shadow`,`shadow`,!0),g(e,t,r,`outline`,`outline`,!0),e.getValAttrAsBoolean(`condense`,t,!0)&&(r.letterSpacing=-1),e.getValAttrAsBoolean(`extend`,t,!0)&&(r.letterSpacing=1),_(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,r,i){let a={type:n.dt.Type.None},o=t.childNodes,s=!1,c=o.length;for(let t=0;!s&&t<c;t++){let n=o.item(t);n.nodeType===1&&(n.localName===`gradientFill`?(this.processGradientFill(e,n,a),s=!0):n.localName===`patternFill`&&(this.processPatternFill(e,n,a),s=!0))}return r[i]=a,r}processGradientFill(e,t,r){if(!t)return;r.type=n.dt.Type.Gradient;let i=[];r.stops=i;let a=t.getAttribute(`type`);a&&(r.gradientType=a);let o=t.hasAttribute(`degree`)?parseFloat(t.getAttribute(`degree`)):0;(o+90)%360!=0&&(r.angle=(o+90)%360),(t.hasAttribute(`left`)||t.hasAttribute(`top`)||t.hasAttribute(`right`)||t.hasAttribute(`bottom`))&&(r.focus={left:j(t.getAttribute(`left`)),top:j(t.getAttribute(`top`)),right:j(t.getAttribute(`right`)),bottom:j(t.getAttribute(`bottom`))});let s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1&&n.localName===`stop`){let t={};i.push(t),t.offset=parseFloat(n.getAttribute(`position`)??``);let r=e.evaluate(`color`,n);this.processDataBarColor(e,r,t,`color`)}}return r}processPatternFill(e,t,r){if(!t)return;let i=e.getVisitorParamsState().get(`processingDXFs`),a=t.getAttribute(`patternType`)||(i?n.dt.BuiltInSheetPattern.Solid:n.dt.BuiltInSheetPattern.None);if(a===n.dt.BuiltInSheetPattern.None)return{none:!0};r.type=n.dt.Type.Pattern,a&&(r.patternType=a);let o=`foreground`,s=`background`,c=r.patternType===n.dt.BuiltInSheetPattern.Solid&&i,l=c?`dk1`:`lt1`,u=c?`lt1`:`dk1`;if(c){let e=o;o=s,s=e}let d=e.evaluate(`fgColor`,t);this.processDataBarColor(e,d,r,o,l);let f=e.evaluate(`bgColor`,t);return this.processDataBarColor(e,f,r,s,u),c&&(r.foreground||=`lt1`,r.background||=`dk1`),r}processBorders(e,t,n,r){if(!t)return;let i=t.childNodes,a=0,o=i.length;for(let t=0;t<o;t++){let o=i.item(t);o.nodeType===1&&o.localName===`border`&&this.processBorder(e,o,n,a++,r)}return n}processBorder(e,t,r,i,a){if(!t)return;let o={};return this.processBorderStroke(e,t,o,n.it.Edge.Left),this.processBorderStroke(e,t,o,n.it.Edge.Right),a?(o.right||o.left)&&(o.right?o.vertical={...o.right}:o.vertical={...o.left}):this.processBorderStroke(e,t,o,n.it.Edge.Vertical),this.processBorderStroke(e,t,o,n.it.Edge.Top),this.processBorderStroke(e,t,o,n.it.Edge.Bottom),a?(o.bottom||o.top)&&(o.bottom?o.horizontal={...o.bottom}:o.horizontal={...o.top}):this.processBorderStroke(e,t,o,n.it.Edge.Horizontal),r[i]=o,r}processBorderStroke(e,t,r,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=n.it.StrokeStyle.None);let s=e.evaluate(`color`,a);return s&&this.processDataBarColor(e,s,o,`color`),Object.keys(o).length>0?r[i]=o:null}},j=e=>{if(!e)return 0;let t=parseFloat(e);return isNaN(t)?0:t},M={auto:`auto`,autoNoTable:`automaticExceptTables`,manual:`manual`},N=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),e.copyFromAttribute(r,`id`,n)),n}},P=class extends N{visit(e,t,n){if(!t)return;if(e.getPath().includes(`Fallback`)&&n.content)return n;n=super.visit(e,t,n);let r=e.evaluate(`nvSpPr/cNvSpPr`,t);if(r){let t=e.evaluate(`spLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`sp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`sp`,json:s},s}},F=`richTypes`,I=`richData`,ee=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}},te=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||``}}},ne=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{key:t.localName,value:t.textContent||``}}},re=class{visit(e,t,n){return g(e,t,n,`roundedCorners`,`roundedCorners`),_(e,t,n,`.//AlternateContent/Fallback/style`,`styleId`),e.getVisitorParamsState().set(`types`,[]),e.getVisitorParamsState().set(`axes`,new Map),n.range=null,n}afterVisit(e,t,n){let r={};n.types=r;let i={},a=0,o={},s=0,c=e.getVisitorParamsState().get(`axes`),l=e.getVisitorParamsState().get(`types`),u=l.length;for(let e=0;e<u;e++){let t=l[e];if(t.xAxisId){let r=t.xAxisId,o=c.get(r);i[e+``]=o,t.offsetXAxis=e,delete t.xAxisId,n.xAxes=i,i.length=++a}if(t.yAxisId){let r=t.yAxisId,i=c.get(r);o[e+``]=i,t.offsetYAxis=e,delete t.yAxisId,n.yAxes=o,o.length=++s}r[e+``]=t}r.length=l.length;let d=e.getVisitorParamsState().get(`series`);if(!d||d.length===0)return;let f={};n.series=f;let p=d.length;for(let e=0;e<p;e++)f[e+``]=d[e];f.length=p,e.getVisitorParamsState().delete(`types`),e.getVisitorParamsState().delete(`axes`),e.getVisitorParamsState().delete(`series`)}},L=class{visit(e,t,n){let r={};return n.plotArea=r,r}},R=E,z=class extends D{parseType(e,t,n){let r=e.getValAttrAsString(`barDir`,t);r&&(n.type=r===`col`?`column`:`bar`)}},B=D,V=class{constructor(e){this.jsonKey=e}visit(e,t,n){let r={},i=r,a=e.getValAttrAsString(`idx`,t);a!==null&&(i={},i[a]=r);let o=e.getValAttrAsBoolean(`delete`,t);this.parseNumFormat(e,t,r),!0===o?(r.showBubbleSize=!1,r.showCatName=!1,r.showLeaderLines=!1,r.showPercentage=!1,r.showSerName=!1,r.showVal=!1,r.showLegendKey=!1):(g(e,t,r,`showBubbleSize`,`showBubbleSize`),g(e,t,r,`showCatName`,`showCatName`),g(e,t,r,`showLeaderLines`,`showLeaderLines`),g(e,t,r,`showPercent`,`showPercentage`),g(e,t,r,`showSerName`,`showSerName`),g(e,t,r,`showVal`,`showVal`),g(e,t,r,`showLegendKey`,`showLegendKey`));let s=e.evaluate(`separator`,t);return s!==null&&(r.separator=s.textContent),h(e,t,r,`dLblPos`,`position`),n[this.jsonKey]=i,r}parseNumFormat(e,t,n){let r=e.evaluate(`numFmt`,t);r&&(n.formatCode=r.getAttribute(`formatCode`),r.hasAttribute(`sourceLinked`)&&(n.sourceLinked=r.getAttribute(`sourceLinked`)===`1`))}},H=class{visit(e,t,n){let r={};_(e,t,r,`explosion`,`explosion`);let i=e.evaluate(`cat/*/f`,t);i||=e.evaluate(`xVal/*/f`,t);let a=null;i!==null&&i.firstChild!==null&&(a=i.firstChild.nodeValue),i||(i=e.evaluate(`cat/strLit`,t),i||=e.evaluate(`cat/numLit`,t),i&&(a=this.parsePointsAsString(e,i))),a!==null&&(r.xRange=a);let o=e.evaluate(`val/*/f`,t);o||=e.evaluate(`yVal/*/f`,t);let s=null;o&&o.firstChild&&(s=o.firstChild.nodeValue),o||(o=e.evaluate(`val/numLit`,t),o!==null&&(s=this.parsePointsAsString(e,o))),s!==null&&(r.valRange=s),this.parseTitleRangeOrValue(e,t,r),_(e,t,r,`idx`,`idx`),g(e,t,r,`smooth`,`smooth`),r.offsetChart=e.getVisitorParamsState().get(`types`).length-1;let c=e.getVisitorParamsState().get(`series`);return c||(c=[],e.getVisitorParamsState().set(`series`,c)),c.push(r),r}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t);if(r!==null){let t=r.firstChild.nodeValue;e.setToPath(n,`title.range`,t)}else{let r=e.evaluate(`tx/v`,t);r!==null&&e.setToPath(n,`title.text.simpleRun`,r.firstChild.nodeValue)}}parsePointsAsString(e,t){let n=`{`,r=e.getValAttrAsInteger(`ptCount`,t),i=e.evaluate(`pt`,t),a=[];for(let n=0;i&&r&&n<r;n++){let r=null,i=e.evaluate(`pt[@idx='`+n+`']/v`,t);i&&(r=i.textContent),a[n]=r}for(let e=0;e<a.length;e++)e>0&&(n+=`,`),a[e]!==void 0&&(n+=a[e]);return n+=`}`,n}afterVisit(e,t,n){O(e,t,n);let r=e.getFromPath(n,`points`);if(r){let t=Object.keys(r);for(let i=0;i<t.length;i++){let a=t[i],o=e.getFromPath(r,a);if(!o)continue;let s=e.getFromPath(o,`markers`);s&&(e.setToPath(n,`markers.points.`+a,s),delete o.markers)}}}},U=class{DataPointVisitor(){}visit(e,t,n){let r=e.getFromPath(n,`points`),i=null;r?i=r:(i={},e.setToPath(n,`points`,i));let a={},o=e.getValAttrAsString(`idx`,t);return o!==null&&(i[o]=a),g(e,t,a,`bubble3D`,`bubble3D`),_(e,t,a,`explosion`,`explosion`),O(e,t,a),a}},W=class{visit(e,t,n){let r=t.parentNode.localName;if(r===`ser`||r===`dPt`){let r={},i=e.getValAttrAsString(`size`,t);i!==null&&(r.size=i);let a=e.getValAttrAsString(`symbol`,t);return a&&(r.type=a),n.markers=r,r}return null}},G=class{visit(e,t,n){let r={};this.parseScaling(e,t,r),v(e,t,r,`majorUnit`,`majorUnits`),v(e,t,r,`minorUnit`,`minorUnits`),g(e,t,r,`delete`,`shown`),this.parseOrientation(e,t,r),this.parseNumFormat(e,t,r),h(e,t,r,`majorTickMark`,`majorTickMarks`),h(e,t,r,`minorTickMark`,`minorTickMarks`),h(e,t,r,`crosses`,`crosses`),v(e,t,r,`crossesAt`,`crosses`),h(e,t,r,`crossBetween`,`crossBetween`),this.parseLabelAlign(e,t,r),_(e,t,r,`lblOffset`,`labelOffset`),h(e,t,r,`tickLblPos`,`labelPosition`);let i=e.getValAttrAsInteger(`noMultiLvlLbl`,t);r.labelMultiLevel=i!==null&&i===0,_(e,t,r,`tickMarkSkip`,`tickMarkSkip`),_(e,t,r,`tickLblSkip`,`labelInterval`),this.parseDisplayCustOrBuiltInUnit(t,e,r),this.parseTimeUnits(e,t,r,`majorUnitDates`,`majorTimeUnit`,`majorUnit`),this.parseTimeUnits(e,t,r,`minorUnitDates`,`minorTimeUnit`,`minorUnit`),h(e,t,r,`baseTimeUnit`,`baseUnitDates`),e.getVisitorParamsState().get(`axes`)||(console.warn(`Uninitialized axes map in AxisVisitor`),e.getVisitorParamsState().set(`axes`,new Map));let a=e.getValAttrAsString(`axId`,t);return e.getVisitorParamsState().get(`axes`).set(a,r),r}parseTimeUnits(e,t,n,r,i,a){let o={},s=e.getValAttrAsString(i,t);s!==null&&(o.dem=s,o.amt=e.getValAttrAsString(a,t)),Object.keys(o).length>0&&(n[r]=o)}parseDisplayCustOrBuiltInUnit(e,t,n){let r=t.getValAttrAsString(`dispUnits/builtInUnit`,e);r||=t.getValAttrAsString(`dispUnits/custUnit`,e),r&&(n.displayUnits=r)}parseLabelAlign(e,t,n){let r=e.getValAttrAsString(`lblAlgn`,t);r!==null&&(r===`ctr`?n.labelAlign=`center`:r===`l`?n.labelAlign=`left`:r===`r`&&(n.labelAlign=`right`))}parseOrientation(e,t,n){let r=e.getValAttrAsString(`AxPos`,t);r!==null&&(r===`b`?n.orientation=`bottom`:r===`l`?n.orientation=`left`:r===`r`?n.orientation=`right`:r===`t`&&(n.orientation=`top`))}parseNumFormat(e,t,n){let r={},i=e.evaluate(`numFmt`,t);i!==null&&(i.hasAttribute(`formatCode`)&&(r.formatCode=i.getAttribute(`formatCode`)),i.hasAttribute(`sourceLinked`)&&(r.sourceLinked=i.getAttribute(`sourceLinked`)===`1`)),Object.keys(r).length>0&&(n.labels=r)}parseScaling(e,t,n){let r=e.getValAttrAsString(`scaling/orientation`,t);r!==null&&(n.inverted=r!==`minMax`);let i=e.getValAttrAsFloat(`scaling/logBase`,t);i!==null&&(n.logBase=i,n.scaleType=`log`),v(e,t,n,`scaling/max`,`max`),v(e,t,n,`scaling/min`,`min`)}afterVisit(e,t,n){n.fill&&n.labels&&(n.labels.fill=n.fill,delete n.fill);let r=e.getValAttrAsBoolean(`delete`,t);r!==null&&(e.setToPath(n,`labels.shown`,!0!==r),e.setToPath(n,`shown`,!0!==r));let i=e.getFromPath(n,`dispUnits.displayUnitsLabel`);i&&(e.setToPath(n,`displayUnitsLabel`,i),delete n.dispUnits);let a=e.evaluate(`title`,t);e.setToPath(n,`title.shown`,a!==null);let o=e.evaluate(`minorGridlines`,t);e.setToPath(n,`gridLinesMinor.shown`,o!==null);let s=e.evaluate(`majorGridlines`,t);e.setToPath(n,`gridLinesMajor.shown`,s!==null)}},K=k,q=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`series`),i=e.getValAttrAsInteger(`idx`,t),a=i===null?void 0:r[i];if(a){let n=e.getFromPath(a,`title`);n||(n={},e.setToPath(a,`title`,n));let r=n,i=e.getValAttrAsBoolean(`delete`,t);return i!==null&&(r.shown=!i),r}return n}},J=class{visit(e,t,n){let r={};return g(e,t,r,`overlay`,`overlay`),h(e,t,r,`legendPos`,`position`),n.legend=r,r}},Y=class extends E{visit(e,t,n){let r=this.getFill(e,t);Object.keys(r).length>0&&(n.fillNegative=r);let i=this.getStroke(e,t);return Object.keys(i).length>0&&(n.strokeNegative=i),n}},X=class extends k{constructor(e=`title`){super(e)}parseTitleRangeOrValue(e,t,n){let r=e.evaluate(`tx/strRef/f`,t)??null;if(r){let t=r.firstElementChild.nodeValue;e.setToPath(n,`range`,t)}}visit(e,t,n){let r={};g(e,t,r,`overlay`,`overlay`),n[this._jsonKey]=r;let i=e.getFromPath(r,this.getTextPath());i||={},this.parseTitleRangeOrValue(e,t,r);let a=e.evaluate(`txPr`,t);a&&this.parseTextElement(e,a,i,!1);let o=e.evaluate(`tx/rich`,t);return o&&this.parseTextElement(e,o,i,!0),Object.keys(i).length>0&&e.setToPath(r,`text`,i),r}afterVisit(e,t,n){if(n?.text){let e=n.text?.rotation??null;e!==null&&(n.rotation=parseInt(e),delete n.title.rotation)}}},ie=class{visit(e,t,n){let r=e.evaluate(`manualLayout`,t);if(r){let t={};v(e,r,t,`x`,`x`),v(e,r,t,`y`,`y`),v(e,r,t,`w`,`w`),v(e,r,t,`h`,`h`),h(e,r,t,`xMode`,`xMode`),h(e,r,t,`yMode`,`yMode`),h(e,r,t,`wMode`,`wMode`),h(e,r,t,`hMode`,`hMode`),Object.keys(t).length>0&&(n.manualLayout=t)}return n}},ae=class{visit(e,t,n){return n.name=t.getAttribute(`name`),n}},oe=class extends C{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}},se=class{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=e.evaluate(`majorFont`,t),a=this.processFontElement(e,i,{});a&&(r.majorFont=a.family,a.fallbacks&&(r.majorFallbacks=a.fallbacks));let o=e.evaluate(`minorFont`,t),s=this.processFontElement(e,o,{});return s&&(r.minorFont=s.family,s.fallbacks&&(r.minorFallbacks=s.fallbacks)),n.fonts=r,r}processFontElement(e,t,r){if(!t)return;let i=e.evaluate(`latin`,t);if(!i)return;let a=i.getAttribute(`typeface`);a&&(r.family=a);let o=i.getAttribute(`panose`);return o&&(r.fallbacks=[n.Q.getPanoseFallback(o)]),r}},ce=class extends C{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&&i&&a&&o)return n.fillStyleLst=r,n.lnStyleLst=i,n.effectStyleLst=a,void(n.bgFillStyleLst=o);let s=e.serializeElement(t);s&&(n.formatSchemeXml=s)}parseFillList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;let r=this.parseFillListItem(e,n);if(r===void 0)return;i.push(r)}return i}parseFillListItem(e,t){switch(t.localName){case`noFill`:return{type:n.dt.Type.None};case`solidFill`:{let r=this.processAdjColor(e,t);return r?{type:n.dt.Type.Solid,color:r}:void 0}case`gradFill`:return this.processGradFill(e,t);case`pattFill`:return this.processPatternFill(e,t);default:return}}parseLnList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1){if(e.evaluate(`headEnd`,n)||e.evaluate(`tailEnd`,n))return;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}},le=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`r:id`);if(i){let t=e.getRef(i);typeof t==`string`&&(r.address=t)}return e.copyFromAttribute(t,`tooltip`,r,`screenTip`),e.copyFromAttribute(t,`history`,r,`history`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`tgtFrame`,r,`target`),n.hyperlink=r,r}},ue=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),r}processColorFilter(e,t){let r={},i={operator:n.B.BuiltInOperatorNames.Color,param:r};return e.copyFromAttribute(t,`cellColor`,r,`cellColor`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`dxfId`,r,`styleId`,e.INT_COPY),i}processCustomFilter(e,t){return i.o({operator:t.getAttribute(`operator`),val:t.getAttribute(`val`)})}processCustomFilters(e,t){let r=t.getAttribute(`and`),i=r===`and`||r===`1`;t.getAttribute(`val`);let a=[],o={operator:i?n.B.BuiltInOperatorNames.And:n.B.BuiltInOperatorNames.Or,param:a},s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType!==1)continue;let r=null;n.localName===`customFilter`&&(r=this.processCustomFilter(e,n)),r&&a.push(r)}return a.length===1?a[0]:o}processDynamicFilter(e,t){let r={},i={operator:n.B.BuiltInOperatorNames.TimePeriod,param:r},a=t.getAttribute(`type`);return a===`aboveAverage`?a=n.B.AverageType.Above:a===`belowAverage`&&(a=n.B.AverageType.Below),Object.values(n.B.AverageType).includes(a)?(i.operator=n.B.BuiltInOperatorNames.Average,e.copyFromAttribute(t,`val`,r,`stdDevs`,e.INT_COPY)):e.copyFromAttribute(t,`val`,r,`anchorDate`,e.INT_COPY),e.copyFromAttribute(t,`type`,r,`operator`),e.copyFromAttribute(t,`maxVal`,r,`maxVal`,e.INT_COPY),i}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 r={},i={operator:n.B.BuiltInOperatorNames.InSet,param:r};e.copyFromAttribute(t,`blank`,i,`blank`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calendarType`,i,`calendarType`);let a=[],o=[],s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1){if(n.localName===`dateGroupItem`){let t=this.processDateGroupItem(e,n);t&&a.push(t)}else if(n.localName===`filter`){let t=this.processFilterItem(e,n);t!==void 0&&o.push(t)}}}return a.length>0&&(r.dateGroups=a),o.length>0&&(r.items=o),i}processIcon(e,t){let r={},i={operator:n.B.BuiltInOperatorNames.Icon,param:r};return e.copyFromAttribute(t,`iconId`,r,`iconId`,e.INT_COPY),e.copyFromAttribute(t,`iconSet`,r),i}processTop10(e,t){let r={},i={operator:n.B.BuiltInOperatorNames.TopN,param:r};return e.copyFromAttribute(t,`filterVal`,r,`filterVal`,e.FLOAT_COPY),e.copyFromAttribute(t,`percent`,r,`percent`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`top`,r,`top`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`val`,r,`val`,e.FLOAT_COPY),i}processFilterCriteria(e,t){if(!t)return;let n,r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);i.nodeType===1&&(i.localName===`colorFilter`?n=this.processColorFilter(e,i):i.localName===`customFilters`?n=this.processCustomFilters(e,i):i.localName===`dynamicFilter`?n=this.processDynamicFilter(e,i):i.localName===`filters`?n=this.processFilters(e,i):i.localName===`iconFilter`?n=this.processIcon(e,i):i.localName===`top10`&&(n=this.processTop10(e,i)))}return n}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=o.p(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=o.p(t.getAttribute(`showButton`))),a&&n){let e=n.showButtons;!0!==e&&(e||(e=[],n.showButtons=e),e[r]=!0)}let s=this.processFilterCriteria(e,t);return s?(s.index=r,s):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}},de=class{visit(e,r,i){if(!r)return;let a=r.getAttribute(`ref`),s={};r.hasAttribute(`caseSensitive`)&&(s.collatorOptions=o.p(r.getAttribute(`caseSensitive`))?n.x.CaseSensitiveOptions:n.x.CaseInsensitiveOptions);let c=r.getAttribute(`sortMethod`);c!=null&&c!==`none`&&(c===`stroke`?s.collatorOptions={...s.collatorOptions,collation:`stroke`}:c===`pinYin`&&(s.collatorOptions={...s.collatorOptions,collation:`pinyin`}));let l={};r.hasAttribute(`columnSort`)&&o.p(r.getAttribute(`columnSort`))&&(l.axis=t.d.Axis.Column);let u=n.s.fastStringToRange(a),d=[];return this.processSortConditions(e,r,d,u,s),d.length>0&&(l.sorts=d),Object.keys(d).length>0&&(i.sort=l),l}processSortCondition(e,t,r,i){if(!t)return null;let a={};if(!t.hasAttribute(`ref`))return void console.warn(`no ref for sort conditional`,e.getPath());if(t.hasAttribute(`ref`)){let e=t.getAttribute(`ref`),i=n.s.fastStringToRange(e);a.index=r?i.colStart-r.colStart:i.colStart}let s={...i};return a.criteria=s,s.reverse=!1,t.hasAttribute(`descending`)&&(s.reverse=o.p(t.getAttribute(`descending`))),e.copyFromAttribute(t,`sortBy`,s,`sortOn`),e.copyFromAttribute(t,`dxfId`,s),e.copyFromAttribute(t,`iconSet`,s),e.copyFromAttribute(t,`customList`,s),a}processSortConditions(e,t,n,r,i){if(!t)return;let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let o=a.item(t);if(o.nodeType===1&&o.localName===`sortCondition`){let t=this.processSortCondition(e,o,r,i);t&&n.push(t)}}}},Z=class extends A{visit(e,t,r){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let i={fills:{},fonts:{},borders:{}};this.processFonts(e,e.evaluate(`fonts`,t),i.fonts),this.processFills(e,e.evaluate(`fills`,t),i.fills),this.processBorders(e,e.evaluate(`borders`,t),i.borders,!0),i.fills[0]={type:n.dt.Type.None},i.fills[1]={type:n.dt.Type.Pattern,patternType:n.dt.BuiltInSheetPattern.Gray125},i.borders[0]={bottom:{style:n.it.StrokeStyle.None},left:{style:n.it.StrokeStyle.None},right:{style:n.it.StrokeStyle.None},top:{style:n.it.StrokeStyle.None}};let a=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),a,i,null,!1);let o=new Map;if(a.length>0){let n=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),n,a,o),r.named=n}let s=[];this.processXFs(e,e.evaluate(`cellXfs`,t),s,i,o),Object.keys(s).length>0&&(r.direct=s);let c=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),c),this.processTableStyles(e,e.evaluate(`tableStyles`,t),r,c),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),r),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),r),r}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,r,i,a,s){if(!t)return;let c=t.getAttribute(`xfId`);if(c&&a){let e=a.get(parseInt(c));e&&e!==n.ct.BuiltInName.Normal&&(r.named=e)}let l=e=>!(!s&&t.hasAttribute(e))||o.p(t.getAttribute(e)),u=e=>!s||t.hasAttribute(e)&&o.p(t.getAttribute(e)),d=s?`0`:void 0;if(l(`applyFont`)){let e=t.getAttribute(`fontId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFont`))){let t=i.fonts[e];t!==void 0&&(r.font=t)}}if(l(`applyFill`)){let e=t.getAttribute(`fillId`)??d;if(e!==void 0&&(e!==`0`||u(`applyFill`))){let t=i.fills[e];t!==void 0&&Object.keys(t).length>0&&(r.fill=t)}}if(l(`applyBorder`)){let e=t.getAttribute(`borderId`)??d;if(e!==void 0&&(e!==`0`||u(`applyBorder`))){let t=i.borders[e];t!==void 0&&(r.border=t)}}if(l(`applyNumberFormat`)){let n=t.getAttribute(`numFmtId`)??d;if(n!==void 0&&(n!==`0`||u(`applyNumberFormat`))){let t,i=parseInt(n),a=e.getVisitorParamsState();if(a){let e=a.get(`numFmts`);e&&(t=e.get(i)),r.numberFormat=t??i}else console.warn(`no visitor params state`)}}if(l(`applyAlignment`)){let n=e.evaluate(`alignment`,t);(n||u(`applyAlignment`))&&this.processAlignment(e,n,r)}if(l(`applyProtection`)){let n=e.evaluate(`protection`,t);(n||u(`applyProtection`))&&this.processProtection(e,n,r)}let f=o.p(t.getAttribute(`quotePrefix`)??``);f&&(r.quotePrefix=f)}processAlignment(e,t,r){let i={};if(t?.hasAttribute(`horizontal`)?i.horizontal=t.getAttribute(`horizontal`):i.horizontal=n.fn.HorizontalAlignment.General,t?.hasAttribute(`vertical`)?i.vertical=t.getAttribute(`vertical`):i.vertical=n.fn.VerticalAlignment.Bottom,t?.hasAttribute(`indent`)?i.indent=parseInt(t.getAttribute(`indent`)):i.indent=0,t?.hasAttribute(`relativeIndent`)?i.relativeIndent=parseInt(t.getAttribute(`relativeIndent`)):i.relativeIndent=0,o.p(t?.getAttribute(`wrapText`)??``)?i.overflow=n.fn.Overflow.Wrap:i.overflow=n.fn.Overflow.Visible,o.p(t?.getAttribute(`shrinkToFit`)??``)&&(i.overflow=n.fn.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,i.stacked=!0),i.rotation=e}else i.rotation=0;t?.hasAttribute(`justifyLastLine`)&&(i.justifyLastLine=o.p(t.getAttribute(`justifyLastLine`)));let a=t?.getAttribute(`readingOrder`);return a&&(a===`0`?i.readingDirection=n.fn.ReadingDirection.Auto:a===`1`?i.readingDirection=n.fn.ReadingDirection.LeftToRight:a===`2`?i.readingDirection=n.fn.ReadingDirection.RightToLeft:console.warn(`invalid readingOrder: ${a}`)),Object.keys(i).length>0&&(r.alignment=i),r}processProtection(e,t,n){if(!t)return;let r={},i=t.getAttribute(`locked`);i&&!o.p(i)&&(r.edit=!0);let a=t.getAttribute(`hidden`);return a&&o.p(a)&&(r.formulaHidden=!0),Object.keys(r).length>0&&(n.protection=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.border=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`)}processTableStyle(e,t,n,r,i=!1){let a=t.getAttribute(`name`),s={name:a};t.hasAttribute(`table`)&&(s.table=o.p(t.getAttribute(`table`))),t.hasAttribute(`pivot`)&&(s.pivot=o.p(t.getAttribute(`pivot`))),i&&!s.pivot&&r.unshift(null);let c=t.childNodes,l=c.length;for(let e=0;e<l;e++){let t=c.item(e);if(t.nodeType===1&&t.localName===`tableStyleElement`){let e=t.getAttribute(`type`),n=t.getAttribute(`dxfId`),i=n==null?void 0:r?.[n];i||=(console.warn(`invalid dfx id`,n),{}),s[e]=i;let a=null;t.hasAttribute(`size`)&&(a=parseInt(t.getAttribute(`size`))),a&&!isNaN(a)&&(i.size=a)}}delete s.name,n[a]=s}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,r,i,a){if(!t)return;let s=t.childNodes,c=s.length;for(let e=0;e<c;e++){let t=s.item(e);if(t.nodeType===1&&t.localName===`cellStyle`){let e=parseInt(t.getAttribute(`xfId`)??``),s=t.getAttribute(`name`),c=t.getAttribute(`builtinId`),l=s;if(c!==null){let e=n.ct.builtInNameFromId(parseInt(c));e!==void 0&&(l=e)}if(a.set(e,l),!i[e])continue;let u={name:l,style:i[e]};t.getAttribute(`hidden`)&&(u.hidden=o.p(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(u.iLevel=parseInt(t.getAttribute(`iLevel`))),r.push(u)}}}afterVisit(e,t,n){}},fe=class extends A{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.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),Object.keys(a).length>0&&(n[i]=a)}processWorkbookProtection(e,t,n){if(!t)return;let r={};return this.processPassword(e,t,r,`workbook`,`password`),this.processPassword(e,t,r,`revisions`,`revisionsPassword`),e.copyFromAttribute(t,`lockStructure`,r,`structure`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockWindows`,r,`windows`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`lockRevision`,r,`revision`,e.BOOLEAN_COPY),n.protection=r,n}processCalcPr(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`calcMode`,r,`calcMode`,e=>M[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,`refMode`,r,`refMode`),e.copyFromAttribute(t,`iterate`,r,`iterate`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`iterateCount`,r,`maxIterations`,e.INT_COPY),e.copyFromAttribute(t,`iterateDelta`,r,`maxIterateChange`,e.FLOAT_COPY),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`);let i=t.getAttribute(`r:id`),a=e.getRef(i);a&&(r.sheet=a),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)}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={};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]),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 e=t.getAttribute(`localSheetId`);if(!r[e]?.name)return void console.warn(`Defined name '${t.getAttribute(`name`)}' references a sheet with localSheetId '${e}' which does not exist.`);i.scope=r[e].name}e.copyFromAttribute(t,`customMenu`,i),e.copyFromAttribute(t,`description`,i),e.copyFromAttribute(t,`statusBar`,i),e.copyFromAttribute(t,`help`,i),e.copyFromAttribute(t,`shortcutKey`,i),e.copyFromAttribute(t,`function`,i,`function`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`functionGroupId`,i,`functionGroupId`,e.INT_COPY),e.copyFromAttribute(t,`publishToServer`,i,`publishToServer`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`vbProcedure`,i,`vbProcedure`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`xlm`,i,`xlm`,e.BOOLEAN_COPY),Object.keys(i).length>0&&n.push(i)}processDefinedNames(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);a.nodeType===1&&a.localName===`definedName`&&this.processDefineName(e,a,r,n.sheets)}r.length>0&&(n.names=r)}processWorkbookPr(e,t,n){t&&e.copyFromAttribute(t,`date1904`,n,`date1904`,e.BOOLEAN_COPY)}afterVisit(e,t,n){}},pe=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),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),e.copyFromAttribute(t,`totalsRowShown`,r,`totalsRowShown`,e.BOOLEAN_COPY),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),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)}},me=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}},he=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}}return a?(t.getAttribute(`mc:Ignorable`)&&(n.mceIgnorable=!0),n.sheetNames=[],this.processSheetNames(e,a,n),this.processDefinedNames(e,a,n),this.processSheetDataSet(e,a,n),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 r=new n.nn.Builder,i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType!==1||t.localName!==`row`)continue;let a=t.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`cell`)continue;let i=t.getAttribute(`r`);if(!i)continue;let o=n.s.fastStringToCell(i);if(o?.rowIndex===void 0||o?.colIndex===void 0)continue;let s=this._readCellValue(t);s!==void 0&&r.pushAt(o.rowIndex,o.colIndex,s)}}return{sheetIndex:-1,data:r.build()?.tuples??[]}}_readCellValue(e){let n=this._findChild(e,`v`)?.textContent?.trim();if(n!==void 0&&n!==``)switch(e.getAttribute(`t`)){case null:case`n`:return parseFloat(n);case`b`:return n===`1`||n===`true`;case`str`:default:return n;case`e`:{let e=t.o.getBuiltInByLabel(n);return e?{t:`e`,v:e.getCode()}:n}}}_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}},ge=class{visit(e,t,n){e.copyFromAttribute(t,`name`,n),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,`crossFilter`,n),n):(console.warn(`SlicerCacheDefinitionVisitor: missing tableSlicerCache element`),n)}},_e=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;let i=t.getAttribute(`cache`),a=e.getVisitorParamsState().get(`slicerCaches`);if(i){let e=a.get(i);e&&(r.columnId=e.columnId,r.tableId=e.tableId)}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,`locked`,r,`locked`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`rowHeight`,r,`rowHeight`,e.INT_COPY)}},ve=class{visit(e,t,n){return n}},Q=class{visit(e,t,n){if(!t)return;let r={};return e.copyFromAttribute(t,`editAs`,r,`anchorType`),r.anchor={},t.localName===`absoluteAnchor`?(r.anchorType=`absolute`,this.processAbsoluteCoord(e,e.evaluate(`xdr:pos`,t),r.anchor,`from`,`x`,`y`),this.processAbsoluteCoord(e,e.evaluate(`xdr: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(`xdr: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`)),n.movables||=[],n.movables.push(r),r}processAbsoluteCoord(e,t,n,r,i,a){if(!t)return;let s={x:0,y:0};return s.x=o.i(t.getAttribute(i)),s.y=o.i(t.getAttribute(a)),r===`from`?n.tl=s:n.br=s,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=o.i(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(i.y=o.i(e.evaluate(`rowOff`,t).textContent)),r===`from`?n.tl=i:n.br=i,n}},ye=class extends N{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGraphicFramePr/cNvGraphicFramePr`,t);if(r){let t=e.evaluate(`graphicFrameLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}let i={type:`graphicFrame`,json:{}},a=e.evaluate(`graphic/graphicData`,t).childNodes,s=a.length;for(let n=0;n<s;n++){let r=a.item(n);if(r.nodeType===1)try{let n=r.localName;n===`chart`?n=`chart`:n===`slicer`&&(n=`slicer`),i.type=n;let a=r.getAttribute(`r:id`);if(n===`chart`&&a){let n=e.evaluate(`*/cNvPr`,t);n?.item&&(n=n.item(0));let r,s=n?.getAttribute?.(`id`),c=s?parseInt(s,10):void 0,l=e.getRelationships().get(a);if(l?.target){let t=e.getFileLocation(),n=t.slice(0,t.lastIndexOf(`/`)+1);r=o.u(l.target.startsWith(`/`)?l.target:n+l.target)}i.json={xml:e.serializeElement(t)??void 0,sourceId:c===void 0||isNaN(c)?void 0:c,chartRelId:a,chartTargetPath:r}}else a&&(i.json=e.getRef(a))}catch(e){console.warn(`Unable to parse graphicFrame`,e)}}return i&&(n.content=i),i}},be=P,$=class extends N{visit(e,t,n){if(!t)return;let r=super.visit(e,t,n),i=e.evaluate(`nvPicPr/cNvPicPr`,t);if(i){e.copyFromAttribute(t,`preferRelativeResize`,r,`preferRelativeResize`,e.BOOLEAN_COPY);let n=e.evaluate(`picLocks`,i);if(n){n.hasAttribute(`noChangeAspect`)&&(r.lockAspect=n.getAttribute(`noChangeAspect`)===`1`);let t={};e.copyFromAttribute(n,`noChangeArrowheads`,r,`noChangeArrowheads`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noChangeShapeType`,r,`noChangeShapeType`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noEditPoints`,r,`noEditPoints`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noAdjustHandles`,r,`noAdjustHandles`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noCrop`,r,`noCrop`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noGrp`,r,`noGrp`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noMove`,r,`noMove`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noResize`,r,`noResize`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noRot`,r,`noRot`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`noSelect`,r,`noSelect`,e.BOOLEAN_COPY),Object.keys(t).length>0&&(r.locks=t)}}let a,o=e.evaluate(`blipFill/blip`,t);if(o){let t;if(t=o.getAttribute(`r:embed`)??o.getAttribute(`embed`),t||=o.getAttribute(`r:link`)??o.getAttribute(`link`),!t)return void console.warn(`no rId found for blip`,o);a=e.getRef(t,!0)}return n.content={type:`picture`,json:{resId:a}},r}},xe=class extends P{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvGrpSpPr/cNvGrpSpPr`,t);if(r){let t=e.evaluate(`grpSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`Unable to import '${n.name}', group shapes are not supported.`);let i={};return n.content={type:`grpSp`,json:i},i}},Se=class extends P{visit(e,t,n){if(!t)return;n=super.visit(e,t,n);let r=e.evaluate(`nvCxnSpPr/cNvCxnSpPr`,t);if(r){let t=e.evaluate(`cxnSpLocks`,r);if(t){t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`);let e={};Object.keys(e).length>0&&(n.locks=e)}}e.warn(`'${n.name}' is not editable; imported as a fixed drawing.`);let i=e.evaluate(`*/cNvPr`,t);i?.item&&(i=i.item(0));let a=i?.getAttribute?.(`id`),o=a?parseInt(a,10):void 0,s={type:`cxnSp`,xml:e.serializeElement(t)??void 0,sourceId:o===void 0||isNaN(o)?void 0:o};return n.content={type:`cxnSp`,json:s},s}},Ce=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}},we=class{visit(e,t,n){let r=e.getVisitorParamsState().get(F);r||(r=[],e.getVisitorParamsState().set(F,r));let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`s`){let t={type:n.getAttribute(`t`)??`n`,keys:[]};this.processKeys(e,n,t),r.push(t)}}return n.richTypes=r,r}processKeys(e,t,n){let r=t.childNodes,i=r.length,a=n.keys;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`k`){let e=t.getAttribute(`n`),n=t.getAttribute(`t`);a.push([e,n])}}}},Te=class{visit(e,t,n){let r=e.getVisitorParamsState().get(`richTypes`);if(!r)return void e.warn(`RichValueFound but not type.`);let i=e.getVisitorParamsState().get(I);i||(i=[],e.getVisitorParamsState().set(I,i));let a=t.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType===1&&n.localName===`rv`){let t=r[n.getAttribute(`s`)],a={type:t.type};this.processValues(e,n,a,t);let o=this.mapType(e,a);i.push(o)}}return n.richData=i,i}mapType(e,n){if(n.type===`_error`){let e=n.errorType;if(e)try{n=t.o.getBuiltInByCode(e+1)??t.o.BuiltIn.Unknown}catch{}}return n}processValues(e,t,n,r){let i=t.childNodes,a=i.length;r.type;let o=r.keys;for(let t=0;t<a;t++){let r=i.item(t);if(r.nodeType===1&&r.localName===`v`){let i=o[t];if(!i)return void e.warn(`Invalid richData`);let a=i[0],s=i[1],c=r.textContent;s===`i`&&(c=Number(c)),n[a]=c}}}},Ee=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)}}}},De=class{visit(e,t,n){if(!t)return;let r={},i=t.getAttribute(`ref`);e.copyFromAttribute(t,`authorId`,r,`personId`,e.INT_COPY),r.asNote=!0;let a={r:i,v:r};return n.push(a),r}},Oe=class{visit(e,t,n){if(!t)return;let r=[];return n.comments=r,r}},ke=class{visit(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`id`,r,`id`,o.d);let i=t.getAttribute(`ref`);e.copyFromAttribute(t,`personId`,r,`personId`,o.d),e.copyFromAttribute(t,`parentId`,r,`parentId`,o.d),e.copyFromAttribute(t,`dT`,r),t.hasAttribute(`done`)&&(r.done=o.p(t.getAttribute(`done`)));let a={r:i,v:r};return n.push(a),r}},Ae=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`,o.d),e.copyFromAttribute(n,`displayName`,t),e.copyFromAttribute(n,`userId`,t,`userId`,o.d),e.copyFromAttribute(n,`providerId`,t),r.push(t)}}return r.length>0&&(n.persons=r),r}},je=class{constructor(e,t){this.path=e,this.visitor=t}};exports.DOMTransformer=class{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor(`Relationships`,new ee),this.registerVisitor(`cp:coreProperties`,new te),this.registerVisitor(`Properties`,new ne),this.registerVisitor(`spPr`,new R),this.registerVisitor(`txBody`,new K),this.registerVisitor(`txPr`,new K),this.registerVisitor(`c:chartSpace`,new re),this.registerVisitor(`c:plotArea`,new L),this.registerVisitor(`c:barChart`,new z),this.registerVisitor(`c:doughnutChart`,new B),this.registerVisitor(`c:lineChart`,new B),this.registerVisitor(`c:ofPieType`,new B),this.registerVisitor(`c:pieChart`,new B),this.registerVisitor(`c:scatterChart`,new B),this.registerVisitor(`c:barChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:doughnutChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:lineChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:ofPieType`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:pieChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:scatterChart`,new V(`dataLabels`),`dLbls`),this.registerVisitor(`c:ser`,new H),this.registerVisitor(`c:dPt`,new U),this.registerVisitor(`c:marker`,new W),this.registerVisitor(`c:catAx`,new G),this.registerVisitor(`c:valAx`,new G),this.registerVisitor(`c:dateAx`,new G),this.registerVisitor(`c:majorGridlines`,new S(`gridLinesMajor`)),this.registerVisitor(`c:minorGridlines`,new S(`gridLinesMinor`)),this.registerVisitor(`c:chartSpace`,null,`txPr`),this.registerVisitor(`c:catAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:valAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:dateAx`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:legend`,new J),this.registerVisitor(`c:legend`,new K(`labels.text`),`txPr`),this.registerVisitor(`c:legendEntry`,new q),this.registerVisitor(`c:ser`,new Y,`extLst/ext/invertSolidFillFmt/spPr`),this.registerVisitor(`c:ser`,new V(`labels`),`dLbls`),this.registerVisitor(`c:dLbl`,new V(`points`)),this.registerVisitor(`c:title`,new X),this.registerVisitor(`c:title`,null,`tx/rich`),this.registerVisitor(`c:title`,null,`txPr`),this.registerVisitor(`c:layout`,new ie),this.registerVisitor(`c:dispUnits`,new S(`dispUnits`)),this.registerVisitor(`c:dispUnitsLbl`,new X(`displayUnitsLabel`)),this.registerVisitor(`c:dispUnitsLbl`,new K,`tx/rich`),this.registerVisitor(`a:theme`,new ae),this.registerVisitor(`a:theme`,new oe,`themeElements/clrScheme`),this.registerVisitor(`a:theme`,new se,`themeElements/fontScheme`),this.registerVisitor(`a:theme`,new ce,`themeElements/fmtScheme`),this.registerVisitor(`autoFilter`,new ue),this.registerVisitor(`sortState`,new de),this.registerVisitor(`s:workbook`,new fe),this.registerVisitor(`styleSheet`,new Z),this.registerVisitor(`x14:table`,new me),this.registerVisitor(`table`,new pe),this.registerVisitor(`externalLink`,new he),this.registerVisitor(`hlinkClick`,new le),this.registerVisitor(`wsDr`,new ve),this.registerVisitor(`twoCellAnchor`,new Q),this.registerVisitor(`oneCellAnchor`,new Q),this.registerVisitor(`absoluteAnchor`,new Q),this.registerVisitor(`graphicFrame`,new ye),this.registerVisitor(`sp`,new be),this.registerVisitor(`grpSp`,new xe),this.registerVisitor(`cxnSp`,new Se),this.registerVisitor(`pic`,new $),this.registerVisitor(`metadata`,new Ce),this.registerVisitor(`rvStructures`,new we),this.registerVisitor(`rvData`,new Te),this.registerVisitor(`comments`,new Ee),this.registerVisitor(`comment`,new De),this.registerVisitor(`comment`,new K(`content`),`text`),this.registerVisitor(`ThreadedComments`,new Oe),this.registerVisitor(`threadedComment`,new ke),this.registerVisitor(`threadedComment`,new K(`content`),`text`),this.registerVisitor(`personList`,new Ae),this.registerVisitor(`slicerCacheDefinition`,new ge),this.registerVisitor(`slicers`,new _e)}registerVisitor(e,t,n=null){e.indexOf(`:`)===-1&&(e=`*:`+e);let r=e.split(`:`),i=r.length>1?r[1]:r[0];if(!n)return this.visitorsByXmlTagName.set(i,t),void this.visitorsByXmlTagName.set(e,t);let a=this.scopedVisitorsByXmlTagName.get(i);a||(a=[],this.scopedVisitorsByXmlTagName.set(i,a),this.scopedVisitorsByXmlTagName.set(e,a)),a.push(new je(n,t))}parseDxf(e,t=``){this.visitorParamsState||=new Map;let n=this.visitorParamsState,r=n.get(`processingDXFs`);n.set(`processingDXFs`,!0);try{let n=new f(null,this,`/dxf`,e,{},t),r={};return new Z().processDXF(n,e,r),r}finally{r===void 0?n.delete(`processingDXFs`):n.set(`processingDXFs`,r)}}getVisitorParamsState(){return this.visitorParamsState}transform(t,n,r=e.A.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 f(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){console.warn(`Error in afterVisit: ${t.context.getPath()}`,e)}}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{console.warn(`"Invalid path '${c.path}' for '${e}'.`)}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 f(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(),p=r.childNodes,m=p.length;for(let e=0;e<m;e++){let r=p.item(e);if(r.nodeType!==1)continue;let c=r,m=c.nodeName,h=l.get(m);h||=(m=c.localName,l.get(m));let g=t.getPath()+`/`+m,_=new f(t,this,g,u,d,a,o);this._doWalk(h,_,n,c,s??i,a,o)}return s}},exports.ExecutionContext=f,exports.NumberUtils=o.r,exports.VisitorUtils=p;