@sheetxl/mcp 0.8.0-beta.17 → 0.8.0-beta.19
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.
- package/assets/{Dzz3yrKbECzg6caR.js → -iaCg5U9jrEDEl_O.js} +1 -1
- package/assets/{Bcak_hZpcIkB2gJD.js → 0hHP9xpWzhkDrCTL.js} +1 -1
- package/assets/{B7OyFSpBb1eBvMVd.js → 1bm0Yqgfehw1Z2QU.js} +13 -13
- package/assets/{BodrfKIAhDFD-X3t.js → 2nx2Wljhbuct4aKx.js} +1 -1
- package/assets/{IGAV8DdYH32cW8XU.js → 7MIo82Ay8jEFMBH-.js} +1 -1
- package/assets/{CJF3P7U7yBQVF2Cg.js → ArL5bPq60ZcPcwU9.js} +1 -1
- package/assets/{C2NPIWe0pLs3PAZM.js → B6A2URH-mIs7J54h.js} +2 -2
- package/assets/{CfA8o-FNret9-D6Y.js → B7vRFm79CUJ1VvFw.js} +1 -1
- package/assets/{4qMP71Fe1Ep8kbOX.js → B8Z4-80QEORmYOJ9.js} +1 -1
- package/assets/{Jd71-QCmFEcDcYSw.js → BGLlbVFS6J3lt9Lw.js} +1 -1
- package/assets/{BS4ZsfH5D6aemSpO.js → BHsQeg6najGesUM4.js} +1 -1
- package/assets/{DsCNtBR5jCeqmLBS.js → BPctZbHQFoqJNYzC.js} +2 -2
- package/assets/{B6NnxkSmEzCGZEZA.js → BQkQNqRh5xxYhBy4.js} +1 -1
- package/assets/{B8JX7a6VZlBNA_Bd.js → BSNegq0YcivZJmkf.js} +1663 -1663
- package/assets/{DE4xC78p5UtS7wH6.js → BTnTQBSbzYU7cwra.js} +1 -1
- package/assets/{qgW-p2sFhMtuu5yw.js → BUHEmX1fseJVV65_.js} +1 -1
- package/assets/{CwRhhoL5ynbe78dB.js → Bbky1A_gIgE8i0Oy.js} +1 -1
- package/assets/{z24-oIqP_fu2hsOt.js → BbvOmnXrmBNjeWjQ.js} +1 -1
- package/assets/{DPKeRb9GKmh_WCPv.js → Bbxkz6vmyZJftTd-.js} +1 -1
- package/assets/{CqwEHSKivMYw7tRZ.js → BcYdUKmFOf5rn2VZ.js} +1 -1
- package/assets/{Mgs_OJP41a-Nfac3.js → BfIJP4H3I51jnIVR.js} +1 -1
- package/assets/{Xe7sA_mEwDQpJjcF.js → BgUHR-HVjZDY4SaH.js} +2 -2
- package/assets/{DrHVew6gwOB6oxCn.js → BgVW1icycJewsx77.js} +1 -1
- package/assets/{lcIaYgz4tQGBlzlo.js → Bgi6ubwGkGYsILci.js} +86 -86
- package/assets/{BebXDUnlrDDRGW60.js → BiOrM24CFYL1JGFE.js} +2 -2
- package/assets/{CqjNsZ2OB4Kx6J3s.js → Bj1WHx6LIEq6RVGw.js} +8 -8
- package/assets/{dcvgOfBmWFTsXoT8.js → Bk6A5eONxLTBIA_p.js} +4 -4
- package/assets/{B7Nqa7V-v0cxGBux.js → Bk6SeqUJkn7ft1y1.js} +1 -1
- package/assets/{D6ON3ZLcTAXV3fO6.js → BkhdNc3LdmcyAjwk.js} +9803 -7812
- package/assets/{D5L35C8cbX16BSCF.js → Bl77DvFa09DuVVuj.js} +1147 -1082
- package/assets/{Dre79rTMoYYikNuB.js → Bpf9jHj5AFY9543y.js} +19 -19
- package/assets/{oJNJQJEDQCsjHSmo.js → Bq6ocyztkvzKxMMC.js} +1 -1
- package/assets/{DF7-oRscXc_vkMo8.js → Bw2Nxye4Qj10uA3o.js} +1 -1
- package/assets/{C4deMY87Q_haYyLF.js → Bz1lp0mtNAoPuPve.js} +1 -1
- package/assets/{C2ZX6ffXsMaEr2d2.js → BzkTa7l_e7R--ejo.js} +448 -448
- package/assets/{iBgLe32XErisaUSr.js → C06iKc7jZ6affk2m.js} +1 -1
- package/assets/{BMJhHHX2LWgOJWGz.js → C17Wflhw5IFSgFFY.js} +1 -1
- package/assets/{PbBzI4PlKpCgULLd.js → C53f6C0pAU7_9FI-.js} +1 -1
- package/assets/{UH_biJmLrI9SvckA.js → C7Q4V5mU0wsErspO.js} +3 -3
- package/assets/{kpS1vY0DcE9p8JnI.js → CA_22AL82sRhLAko.js} +2 -2
- package/assets/{BT8AGlSg2t7V1QNj.js → CBSSZrizrucIG_9i.js} +764 -767
- package/assets/{YQtUMMGmb1_WFsh_.js → CE4VYOniMmY8sXQ_.js} +1 -1
- package/assets/{CaJ9j3l0cERnYqDS.js → CIOlYUuBZat8FhHa.js} +1 -1
- package/assets/{BvDcHHJvQMRHthm-.js → CIxf9Y_JsuEEO7Nu.js} +1 -1
- package/assets/{Bw_FtA-1886HMCLJ.js → CKvP54bJ4GkUqcZi.js} +3 -3
- package/assets/{DnTfXqCnRCe-1QYI.js → CNPUPTd9h7hwijpZ.js} +64 -64
- package/assets/{DoBvgI3Ry8DlGzwQ.js → CQZq4cA5kbES6htE.js} +1 -1
- package/assets/{BjnQVl1lb1KEbt2D.js → CQiv3YkDRDxTjy0r.js} +23 -23
- package/assets/{BSY9Tbmz6VEY_F_x.js → CWHuM2GYuKmi0rZx.js} +1 -1
- package/assets/{Dgi2xwb2DN2Gybj3.js → CYTPpV3lqNGOwme7.js} +2 -2
- package/assets/{CLze192iF2o-aETZ.js → C_v4hb9WXIt639Cm.js} +1 -1
- package/assets/{-cMvbaW1kvHslPKX.js → CcGrcjoI12MaDmwV.js} +2 -2
- package/assets/{BJBoygm-gY68bLAP.js → Cgf5GQVN-D8SlQ7A.js} +15 -15
- package/assets/{D336KioeSjd-T8n3.js → CiJq0zSDKpaKhL3y.js} +2 -2
- package/assets/{1feDuXw6tBXu2XFg.js → Cj4MYfqHewu8IOOL.js} +1 -1
- package/assets/{BUV7BlOZcuPgDZ__.js → CjoRkjB9NzS4LaFy.js} +1 -1
- package/assets/{BjhAYfsKC8iEbtgn.js → CjrzyKFdie6KYfsG.js} +30 -30
- package/assets/{Cl7HHR6Vc9S4n3AP.js → CkMXAUkUuJ2LJUBE.js} +1 -1
- package/assets/{G2Wjyx_ETCAcofwm.js → CoXgI3MEnvkXeshj.js} +1294 -1267
- package/assets/{YFiGplEq1G4XdCJ2.js → CqOzqRIQFCnEegoB.js} +1 -1
- package/assets/{CshK6Ew7OQ7mngI3.js → CqvcgwQ0UcKndrhO.js} +2 -2
- package/assets/{CMRLNLqYkiqCLMRa.js → CrjUfkCuRaXUC8X8.js} +3 -3
- package/assets/{FvxN6PPps-rNPDo8.js → CubwsTFIaEVf039H.js} +1 -1
- package/assets/{BmM-nHMAAuNatCcN.js → Cur_-XiBPijLpwxX.js} +1 -1
- package/assets/{7TRx0dMYnL2i4tqL.js → Curuj_knAdRpMy1L.js} +265 -265
- package/assets/{DDhPOQPc-lpyZrUJ.js → Cz7tKgNBbnr4DZCb.js} +4 -4
- package/assets/{C3Q-fjiZZ15waCq_.js → D-LrOz3Yvp17bUT8.js} +2 -2
- package/assets/{0kfwZuOHUkJmVjg6.js → D005GbIBowRGfwed.js} +6 -6
- package/assets/{BKRLtOdVOUTrLjQN.js → D06A3fKIe3WCTFru.js} +28 -28
- package/assets/{8cVPexxAVrFJ9QLX.js → D1ZekPxeTGzhFy2L.js} +1 -1
- package/assets/{C46RpMrfF6FiEFI7.js → D1kI9nJRL1RUF3-E.js} +1 -1
- package/assets/{B2UxLSteMiPlg8Uu.js → D1nQ_BminCM0cyH0.js} +1 -1
- package/assets/{Dkg-LQVsZlrHk7A8.js → D4p9Pv82ECKCOlua.js} +1 -1
- package/assets/{DSsH28SW8CMrSL-q.js → D5OYqo56iGB-5gFG.js} +1 -1
- package/assets/{COa691om4fLN4CUy.js → D6fQheA4qCS5CxYQ.js} +1 -1
- package/assets/{OHBzl-tZOi9Ni8YV.js → D990KjcBrCaAEz5k.js} +1 -1
- package/assets/{BQYpVYbvfWuUJgdx.js → DAnSdO8615XsOPNe.js} +1 -1
- package/assets/{z7nDK_gfX7G37XbZ.js → DFlL4pAqxaQ_hVe1.js} +115 -115
- package/assets/{Cr6lm0oXZJaaoAmD.js → DHL-ZmN5GzB4pIrM.js} +1 -1
- package/assets/{BKjovBsLpX2Fkhov.js → DIPDNtbm8FAru-FQ.js} +120 -120
- package/assets/{Cz4H3Qge2u8er3Ny.js → DLJH6ppG9VHjHe_z.js} +3 -3
- package/assets/{DMuOMpgIhVgB3eG8.js → DNtWf9lfGjzoB9Hy.js} +1 -1
- package/assets/{DeEZvPW-VvlE28oE.js → DOg_zvSkhsKmw4q1.js} +3 -3
- package/assets/{C7iHn3y3HVBHflpA.js → DS9HD6_BPxzdun0X.js} +33 -33
- package/assets/{BgldX21zhey2aR9D.js → DSNaHPvgqymqpsko.js} +1 -1
- package/assets/{CUbCBf24Ie4A2l4R.js → DT_kCIZ600UsFy4t.js} +2 -2
- package/assets/{B2BfjRdJGZs6afVL.js → DXORLAVmseFlsxkG.js} +2 -2
- package/assets/{CWLleOolFzyT0COW.js → DXe8SG12UJoGbbWR.js} +1 -1
- package/assets/{DV6WSFmSEKfb3d2s.js → D_6TeeMN5zmoQPTm.js} +108 -108
- package/assets/{CLgvdaqeFlESLvbF.js → Di_C31GTbBJ_xVOK.js} +1 -1
- package/assets/{BGZ_ltNFYvnAmbVR.js → DnMDfty7pU96BIEJ.js} +1 -1
- package/assets/{BlbxiLf1zD6_fWZs.js → DngcuWO2cSuMCMu1.js} +1 -1
- package/assets/{D_peM8fbRgGaWvpq.js → DppU35gFSUPaiCQH.js} +1 -1
- package/assets/{BdijGsy5W7yZ_I_n.js → DrkfG324qZRPckuC.js} +1 -1
- package/assets/{BhCbCEPpDzhg5nqL.js → Ds6LQkRDwXsJ-CFR.js} +1 -1
- package/assets/{nQbVdQrfdz3osBdi.js → DtD0J-7IetHv5o6E.js} +3 -3
- package/assets/{CsiIgnb_L2x2Go6g.js → DwWcXC4pUR3U2WXU.js} +1 -1
- package/assets/{Ljri8sTW3dWT4clD.js → DwcKSqV5YEBBA8hY.js} +1 -1
- package/assets/{CyI1eGGzJX8nJXaT.js → DxKZjKyewqvj46S2.js} +2 -2
- package/assets/{Bj4BFLBC9Tf6SGSt.js → DxTzG7VM8v4WJ6cI.js} +1 -1
- package/assets/{BX5xFncPLyeN7TqA.js → EkavVNuGWG95UggH.js} +5 -5
- package/assets/{AnF1Kh3Vo2AniIYO.js → GZJ4AFFt8qKRADOa.js} +2 -2
- package/assets/{DYJcfrNUUJQtxXWX.js → Gd_0grQd-3D1VPXW.js} +1 -1
- package/assets/{B9M_sgHpoc-op6FF.js → HVm22OJ1gEeY8kii.js} +1 -1
- package/assets/{BSAdmOdx3brRE9LW.js → LV6tvjnxRzrWaFb8.js} +1 -1
- package/assets/{Bz1ImBvJwPwBrA5j.js → Ln7XTzksutZHFpml.js} +1 -1
- package/assets/{CtmrBbpapaNwjwNB.js → Se9JmvmEtu4MfXJh.js} +52 -52
- package/assets/{B3mh2tuvP-lMP6f_.js → b6GPrIkdzfTW4f2j.js} +1 -1
- package/assets/{MW2nt7se27FlH9Yb.js → bJ-XKvDf7IkAafUI.js} +3 -7
- package/assets/{Bni-y4FJS4rkFYtn.js → exNO4fmccU8Aq8cE.js} +2227 -2121
- package/assets/gCkru9Vv-Ban4DCD.js +14 -0
- package/assets/{B9J8nV-dh6jHpzZI.js → ht0UxaAlRnuYUvpx.js} +1 -1
- package/assets/{D0OQ6ka8so0BWPwL.js → iP-shs7tsDGMVvQh.js} +1 -1
- package/assets/{BBC_WF8BcAH-k_cQ.js → jPim6WG_KS-ZDker.js} +1 -1
- package/assets/{BOx4Ut_Rme7NH34X.js → mrif6ZBbTbZKYaLJ.js} +1 -1
- package/assets/{DidhZpf9qJAei29Y.js → rT5f4v0Q_61nHkff.js} +1 -1
- package/assets/{APP8AzsNgQXHTalA.js → udbHvSLquJ5xGK3R.js} +2 -2
- package/assets/{Bxkx8QokmRNyXbOI.js → vb-L2Q2jyjjgDvJy.js} +6 -6
- package/assets/{BJdWgj1hv57eGVl4.js → zEyWjY3NhC8w_spQ.js} +436 -436
- package/assets/{D5VFuX1h50V2jLmZ.js → zkoJXSxpRzqfbG8k.js} +201 -200
- package/index.js +1164 -1093
- package/lib.js +1 -1
- package/licenses/dependencies.txt +59 -59
- package/package.json +2 -2
- package/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
- package/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
- package/screenshot-page/assets/{C71ZZMVLfHdPl441.js → 1yHlU53ypZZelMPx.js} +1 -1
- package/screenshot-page/assets/A_-Jwzwmm3lkcm2f.js +586 -0
- package/screenshot-page/assets/{Btgo0VFTT0JxuaP3.js → B-8IMo2f1yGNXOyz.js} +86 -90
- package/screenshot-page/assets/BF6igzahAW9pl35p.js +1 -0
- package/screenshot-page/assets/{Bh33WyohJvbKZVQN.js → BU5vg917ZnXC04e-.js} +2 -2
- package/screenshot-page/assets/BWDqL5_mwspr6CjI.js +3 -0
- package/screenshot-page/assets/BX9VkTqZoroo08EG.js +13 -0
- package/screenshot-page/assets/BdDouZl3VrM4yBP5.js +2 -0
- package/screenshot-page/assets/{CB2mQ5rbaSw2W4ik.js → BqlVqRKpsFGl-elI.js} +3 -3
- package/screenshot-page/assets/{CfkssmHURDicfYvR.js → BuzI4z8RJGOw8BZD.js} +1 -1
- package/screenshot-page/assets/{DqXO_Zw1Cp7rAQ04.js → C7mXat-6esc1AmRD.js} +2 -2
- package/screenshot-page/assets/{B8qybUclSjEYP5FJ.js → CFl15-2FAF9f3V7L.js} +2 -2
- package/screenshot-page/assets/{CUZobZ3mfNAdEisS.js → CJmdRzGWq0FZMrp5.js} +1 -1
- package/screenshot-page/assets/{CTjUtxDw6Z2I9OGc.js → CLcTX_nmvaVPsxDl.js} +1 -1
- package/screenshot-page/assets/COpZTXe_J1mSpeYD.js +5 -0
- package/screenshot-page/assets/{BMf827t1Ul65MHd5.js → CQukCzhuewMuFOlO.js} +1 -1
- package/screenshot-page/assets/CZq2dMHs2MHHyyBl.js +1 -0
- package/screenshot-page/assets/CaTGa2NvuuE3qJAV.js +1 -0
- package/screenshot-page/assets/Cb8ORg9ENgscK6yl.js +2 -0
- package/screenshot-page/assets/Chq6rvtA5qZAwYG4.js +1 -0
- package/screenshot-page/assets/ClWDZixRy4DFZdI5.js +1 -0
- package/screenshot-page/assets/CmNlzN3DCl87wNU2.js +1 -0
- package/screenshot-page/assets/CoPUxkU9zZy0dXti.js +2 -0
- package/screenshot-page/assets/{DXaM3CulPA3aPGV1.js → Cpwg3bWAqBBcgBmv.js} +2 -2
- package/screenshot-page/assets/{BE8ea8S0Q-qogeEs.js → CqogMOf7MzkOk7as.js} +2 -2
- package/screenshot-page/assets/{BKwVcuWOKeH2xREA.js → CrUIo7hXByCWY7in.js} +1 -1
- package/screenshot-page/assets/Cv-YUArreXqhafcU.js +2 -0
- package/screenshot-page/assets/{DgtqX4DiBgkepVZZ.js → Cx1kZ2u_8JFV2Q8D.js} +1 -1
- package/screenshot-page/assets/{BD96fN2dSVuoME09.js → Cx9lvo3Q1xOwYkRK.js} +4 -4
- package/screenshot-page/assets/D0nZlczIH0ULuSyL.js +3 -0
- package/screenshot-page/assets/D1ZZiOS7_HFjpZCA.js +1 -0
- package/screenshot-page/assets/D23_69pojBfIh4nV.js +5 -0
- package/screenshot-page/assets/D24UBy2L73pOCPPw.js +1 -0
- package/screenshot-page/assets/D2q4M3I5Jmxm85P2.js +1 -0
- package/screenshot-page/assets/D6LmZnV2h3Kg7G3e.js +1 -0
- package/screenshot-page/assets/{BYQZ8o8k3-MDoNat.js → D6Yv5cc1JE7DGd6j.js} +1 -1
- package/screenshot-page/assets/DAkSmFRVds51vhiy.js +1 -0
- package/screenshot-page/assets/DMhOGCTy8V0N14gY.js +1 -0
- package/screenshot-page/assets/DUFPgv-3CtD_sCVO.js +1 -0
- package/screenshot-page/assets/{CSMEGhAHxl5-4FxB.js → DeGMS3crYErjsRrw.js} +1 -1
- package/screenshot-page/assets/{D_rtIYQ7FDC2CoEn.js → DegZKTNqt1LRnSxY.js} +1 -1
- package/screenshot-page/assets/{CT7cY57t9j1sBhAy.js → DjVxI3p3ssmCtYky.js} +1 -1
- package/screenshot-page/assets/DknSteOdQ6CdF0RT.js +1 -0
- package/screenshot-page/assets/Dt1A-DUBfvyouz_T.js +1 -0
- package/screenshot-page/assets/{DcUOAH274IbYOuK1.js → DwNHMH9f_lQyn50d.js} +1 -1
- package/screenshot-page/assets/{D0koRjO2KnWQ1fNV.js → DwuLl9Ua1k8m9KcK.js} +1 -1
- package/screenshot-page/assets/DzlbsQ0qqdQEl80f.js +1 -0
- package/screenshot-page/assets/EY31tFQrw7iYFrr6.js +4 -0
- package/screenshot-page/assets/{B1W17rc9ilPFCh31.js → MzJpKWgPrxR1UN-Y.js} +1 -1
- package/screenshot-page/assets/{-N4OYIMgf6f5vgNy.js → RutPv2GFWmeBiWvn.js} +1 -1
- package/screenshot-page/assets/{DeyRZ5rprDbRbuf4.js → Tj3B5At0OAN3tDza.js} +1 -1
- package/screenshot-page/assets/fQ13z3k3bntY-jfw.js +1 -0
- package/screenshot-page/assets/oO6aFwepb3DDkGYF.js +39 -0
- package/screenshot-page/assets/{DdXSKhFUAsKUsQ1u.js → pH9rKZYDE8xrhkC4.js} +1 -1
- package/screenshot-page/assets/qFyplGXRu7IepHio.js +1 -0
- package/screenshot-page/assets/w7IQEh1FiqZA6o5y.js +42 -0
- package/screenshot-page/assets/zEVoxCTt-ZW8Aowg.js +16 -0
- package/screenshot-page/assets/{DtihumgXQ7ETaN0A.js → zvxBjll3jnL0-vNn.js} +2 -2
- package/screenshot-page/index.html +12 -11
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
- package/types/scripting-api.json +11444 -11299
- package/types/scripting-enums.json +22 -1
- package/types/scripting.d.ts +631 -15
- package/assets/CSLLHl-zum7m1CJl.js +0 -14
- package/screenshot-page/assets/7Xk_eQAcM_HgWrOC.js +0 -1
- package/screenshot-page/assets/B8UkvH0o9n_G5UO9.js +0 -3
- package/screenshot-page/assets/BMwQInar0xVS5FRu.js +0 -1
- package/screenshot-page/assets/BNMBa8EZgWX2Eb3c.js +0 -1
- package/screenshot-page/assets/BQCyH9YbEgnH78Ke.js +0 -2
- package/screenshot-page/assets/BcDxaEii3arJqOym.js +0 -1
- package/screenshot-page/assets/Be-rukvcufhLamH5.js +0 -1
- package/screenshot-page/assets/C2ty_K_uix4ooip6.js +0 -1
- package/screenshot-page/assets/C9mUKjQ3yEzRu9j2.js +0 -2
- package/screenshot-page/assets/CCVAsuUimIJOkBnk.js +0 -1
- package/screenshot-page/assets/CFfgJlXaIS8QMx5O.js +0 -1
- package/screenshot-page/assets/CN8u05DjKwNHbUHN.js +0 -5
- package/screenshot-page/assets/COoMVTzF50qBNFEu.js +0 -39
- package/screenshot-page/assets/C_OuKbe6z1it80cj.js +0 -1
- package/screenshot-page/assets/Cbcv49b9jWyY4HKj.js +0 -2
- package/screenshot-page/assets/CtZFqwLoeJOvwFrl.js +0 -42
- package/screenshot-page/assets/Cz6KFmsp267l_VZS.js +0 -1
- package/screenshot-page/assets/D6CzedWHXTesD55R.js +0 -1
- package/screenshot-page/assets/DCP8JXEeiwAMiVD2.js +0 -1
- package/screenshot-page/assets/DQAZPADvH5lhlMnK.js +0 -1
- package/screenshot-page/assets/DQBUH0j44Vtrykua.js +0 -13
- package/screenshot-page/assets/DRncpwDkZZX8rL9S.js +0 -20
- package/screenshot-page/assets/DSKOOgcJQeqIc9Us.js +0 -3
- package/screenshot-page/assets/DTrnAtpccj55fGg5.js +0 -1
- package/screenshot-page/assets/Djl40tfWoPJSvqtv.js +0 -1
- package/screenshot-page/assets/LYyM_ig973jLdOU0.js +0 -2
- package/screenshot-page/assets/TCImIYUUdVD4Z35I.js +0 -1
- package/screenshot-page/assets/Tph2vYqw17-NBCtd.js +0 -1
- package/screenshot-page/assets/dQsis-90Up-pIkSq.js +0 -4
- package/screenshot-page/assets/dXn1GWWjYmuLb1HF.js +0 -586
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.17
|
|
3
|
-
*
|
|
4
|
-
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
|
-
*/
|
|
7
|
-
import { $ as a, A as s, B as e, C as o, D as t, E as r, F as l, G as i, H as n, I as c, J as I, K as m, L as g, M as C, N as d, O as S, P as R, Q as p, R as u, S as L, St as T, T as E, U as y, V as h, W as k, X as b, Y as f, Z as F, _ as O, _t as x, a as U, at as P, b as A, bt as v, c as D, ct as N, d as _, dt as M, et as B, f as K, ft as w, g as W, gt as V, h as z, ht as j, i as G, it as H, j as q, k as X, l as Y, lt as $, m as Z, mt as J, n as Q, nt as aa, o as sa, ot as ea, p as oa, pt as ta, q as ra, r as la, rt as ia, s as na, st as ca, t as Ia, tt as ma, u as ga, ut as Ca, v as da, vt as Sa, w as Ra, x as pa, xt as ua, y as La, yt as Ta, z as Ea } from "./CfA8o-FNret9-D6Y.js";
|
|
8
|
-
import { a as ya, i as ha, o as ka } from "./DsCNtBR5jCeqmLBS.js";
|
|
9
|
-
import { C as ba, Dt as fa, F as Fa, G as Oa, Kt as xa, Tt as Ua, U as Pa, V as Aa, Vt as va, Z as Da, at as Na, ht as _a, i as Ma, k as Ba, lt as Ka, o as wa, p as Wa, v as Va } from "./BJBoygm-gY68bLAP.js";
|
|
10
|
-
import { a as za, c as ja, d as Ga, f as Ha, i as qa, l as Xa, m as Ya, n as $a, o as Za, p as Ja, r as Qa, s as as, t as ss, u as es } from "./MW2nt7se27FlH9Yb.js";
|
|
11
|
-
import { $i as os, $r as ts, An as rs, Ca as ls, Ci as is, Ct as ns, En as cs, Fa as Is, Ft as ms, Gt as gs, H as Cs, I as ds, In as Ss, K as Rs, Ki as ps, Li as us, Lr as Ls, Mi as Ts, Mn as Es, Mt as ys, Nr as hs, Nt as ks, O as bs, Or as fs, Pn as Fs, Ra as Os, Rt as xs, Sa as Us, Sn as Ps, Sr as As, T as vs, Ti as Ds, U as Ns, Ui as _s, Vi as Ms, Vt as Bs, Wr as Ks, Wt as ws, X as Ws, Yt as Vs, Za as zs, _i as js, _n as Gs, a as Hs, ao as qs, bi as Xs, dt as Ys, eo as $s, fa as Zs, fr as Js, gr as Qs, h as ae, io as se, ir as ee, it as oe, l as te, lt as re, n as le, na as ie, nr as ne, oa as ce, ot as Ie, q as me, qi as ge, qt as Ce, r as de, rn as Se, so as Re, sr as pe, to as ue, ua as Le, v as Te, vn as Ee, xi as ye, xr as he, ya as ke, yt as be, za as fe, zr as Fe, zt as Oe } from "./D6ON3ZLcTAXV3fO6.js";
|
|
12
|
-
import { n as xe, r as Ue } from "./CMRLNLqYkiqCLMRa.js";
|
|
13
|
-
import { A as Pe, C as Ae, D as ve, E as De, F as Ne, I as _e, L as Me, M as Be, N as Ke, O as we, P as We, R as Ve, S as ze, T as je, _ as Ge, a as He, b as qe, c as Xe, d as Ye, f as $e, g as Ze, h as Je, i as Qe, j as ao, k as so, l as eo, m as oo, n as to, o as ro, p as lo, r as io, s as no, t as co, u as Io, v as mo, w as go, x as Co, y as So, z as Ro } from "./D5VFuX1h50V2jLmZ.js";
|
|
14
|
-
export { Ss as AbstractCollection, ha as AbstractMovableContent, ts as AddressUtils, o as AnchorLocation, So as ArrayBackingStore, Ks as AutoFill, ia as AxisSelection, Xe as BUILD_DATE, $ as BufferLogger, ua as BufferUtils, ce as CellControlRegistry, ms as CellImage, Ns as CellImageKind, x as ChainedError, Le as ChartElementSelection, Ue as ChartKinds, ps as CheckboxKind, u as ClipboardUtils, Pa as Color, U as CommonMessages, j as CommonUtils, Rs as Condition, C as ConsoleLogger, S as ConsoleNotifier, ea as CoordUtils, Qa as DEFAULT_LOCALE_PROFILE, R as DEFAULT_LOG_TIMEOUT_MS, w as DOMUtils, fs as DateUtils, L as DefaultLanguagePackService, Be as DefaultWorkbookIO, l as Deferred, Ra as Direction, W as ENGLISH_TAG, fe as EXTERNAL_LINK_PATH_REL_TYPE, Sa as ErrorUtils, ma as ExpectedError, Ve as ExternalRangeClipboardItem, je as FONTS_KIND, io as Fetcher, Da as FontUtils, Xa as FormulaContext, Ga as FormulaError, Te as FormulaText, Ke as FunctionDeclarations, $s as GeomUtils, js as Hyperlink, ds as HyperlinkKind, me as IAnchored, xa as IBorders, Ts as ICalculation, Zs as ICell, Ne as ICellHeaderRange, Us as ICellRange, _e as ICellRanges, Va as ICellStyle, va as IColor, us as ICondition, os as IConditionalFormat, Ze as ICustomProperty, be as IDataValidation, to as IDropDown, Ua as IEffect, Fa as IFill, Oa as IFont, rs as IFontCollection, ba as IFontStyle, De as IFormControl, wa as IGeometry, Co as IMovable, hs as IPageLayout, Ae as IPicture, le as IPivotTable, Ya as IRange, Ha as IRangeStats, ze as IResource, Ds as IRichDataKind, Ls as IScript, fa as IShape, Qs as ISheet, ys as ISlicerStyle, Io as ISort, Wa as IStroke, ge as ITable, ke as ITableStyle, gs as IText, Ka as ITextFrame, $e as ITheme, Hs as IThemeCollection, Qe as IWorkbookIO, Pe as IWorkbookView, As as IWorksheetView, N as ImageUtils, M as InternalClipboard, qa as InteropScalarType, t as InvalidPasswordError, ve as LOCALES_KIND, n as LOG_TIMEOUT_ENV, na as LazyLoadError, La as LazyModules, Is as LicenseManager, E as MimeType, pe as MovableContentRegistry, ns as NamedStyleCollection, ta as NotImplementedError, I as Notifier, G as NullNotAllowedError, _a as NumberFormat, as as Observable, F as OutOfBoundsError, z as OverlappingRange, xe as PaintUtils, O as PartialError, v as PasswordRequiredError, We as PersonCollection, e as ProtectedError, p as RangeAxis, eo as RangeClipboardItem, k as RangeSweep, Ro as RectAlignment, ie as Registry, Gs as Resource, re as ResourceCollection, Bs as RichArray, Ws as RichArrayKind, _s as RichDataCollection, Ps as RichDataRegistry, Re as RichRecord, Os as RichText, vs as RichTextKind, go as SHEETXL_RESOURCE_KINDS, Aa as SYSTEM_COLOR_CSS_PREFIX, Za as Scalar, Ja as ScalarType, $a as ScopedFormulaContext, Y as SelectionTraversalUtils, Ba as ShapeStyleUtils, Vs as SimpleFontFace, ws as SlicerStyleCollection, Ie as Sort, Ce as StringCollection, ss as StubbedFormulaContext, Fs as StyleCollection, lo as Table, cs as TableStyleCollection, oe as TextRotation, ae as TextStacked, Es as TextUtils, is as Theme, xs as ThemeCollection, Ia as TimerUtils, ka as TransactionConflictError, Je as TransactionSaveStateManager, ya as TransactionStore, Ge as TransactionUndoManager, Ms as Tuple, s as TypedError, Z as TypedObject, r as TypesUtils, c as UndoManager, no as VERSION, ja as ValueKind, es as WildCard, Ye as Workbook, ao as WorkbookIO, He as WorkbookOrigin, co as WorkbookView, qs as Worksheet, H as addResourceRoot, mo as builtInStyleNameDisplay, ye as createCellRangeCounts, so as createChart, A as createLanguagePackService, b as createLogChannels, ca as createPieceStore, sa as createSeededRandom, m as defineLazyModule, Se as externalBookClosedName, he as externalBookFileName, zs as externalBookLocation, Xs as externalBookOpenName, f as fetchLocaleResource, d as fetchLocaleResourceAll, Js as findLabel, D as formatMessage, qe as getBuiltInFunctionNames, ue as getLanguagePack, Ma as getLocaleProfile, i as getLocaleResourceBase, ee as getScriptRuntime, ro as getScriptingApi, oo as getScriptingDeclarations, g as growInt32, a as growPieces, T as hashText, pa as instantiateWasmBindgen, K as instantiateWasmBindgenSync, Q as interpolate, za as isLazyValue, la as keyedRandom, y as listLocaleResources, q as listResources, aa as loadPackageLocales, J as loadResource, Cs as localizeBoolean, Oe as localizeErrorLabel, Na as makeLocaleProfile, Ca as mergeMessageFiles, ga as messageKey, te as normalizeLabel, X as onResourceRootsChange, ks as parseBooleanLocal, Ee as parseErrorLocal, se as parseExternalScope, we as parseFormulaLiteral, V as parseLogTimeout, Fe as pivotBoxOf, de as pivotCellFormatsOf, ne as pivotControlsIn, Me as pivotStylePreviewOf, da as registerPackageMessages, Ys as registerSdkLocales, Ta as releaseChannel, h as resolveLocaleChain, P as resolveLocaleResource, Ea as resolveLogTimeout, B as setLocaleResourceBase, bs as sourceEntryFromPath, oa as t, _ as trackLocaleRegistration, ra as whenLocalesRegistered, ls as withScriptRuntime };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as e}from"./ChSvXfVMLxZsP9zG.js";import{C as t,D as n,K as r,Ot as i,Z as a,ht as o,t as s}from"./DuYb_otrRZZDq6-f.js";import{c,i as l}from"./BMf827t1Ul65MHd5.js";import{Wr as u,h as d,jn as f,rn as p,ut as m}from"./dXn1GWWjYmuLb1HF.js";import{$ as h,$t as g,Bn as ee,Dn as _,G as v,Hn as y,J as b,K as x,Kt as te,L as S,Nn as C,Pn as ne,Pr as re,R as ie,Ut as ae,Wn as oe,Xt as se,a as ce,an as w,bn as le,br as T,d as ue,dt as de,er as E,fr as fe,ht as pe,ir as me,it as D,j as O,lt as he,n as ge,o as k,pt as _e,qn as A,tn as j,u as M,v as N,vr as P,wn as F,wt as I,xt as L}from"./COoMVTzF50qBNFEu.js";import"./B8UkvH0o9n_G5UO9.js";import{a as ve,c as ye,o as be,s as R,t as xe}from"./DSKOOgcJQeqIc9Us.js";var Se=class{constructor(e){this.list=e}get length(){return this.list.length}item(e){return this.list[e]}forEach(e,t){let n=this.list,r=n.length;for(let t=0;t<r;t++)e(n[t],t,this)}entries(){return this.list.entries()}keys(){return this.list.keys()}values(){return this.list.values()}[Symbol.iterator](){return this.list.values()}},Ce=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,we=e=>{let t=parseInt(e);return isNaN(t)?null:t},Te=e=>{let t=parseFloat(e);return isNaN(t)?null:t},Ee=new Map,z=class{constructor(t,n,r,i,a,o=null,s=e.EmptyObject){this._fileLocation=``;let c=(e,t,n)=>s?.getRef?.(e,t,n,s?.parsedRefs),l=e=>s?.getRefs?.(e,s?.parsedRefs);this._parent=t,this.sharedShared=n,this.currentPath=r,this.elemRoot=i,this.jsonRoot=a,t?(this._fileLocation=t._fileLocation,this._getRef=t._getRef,this._getRefs=t._getRefs,this._serializeElement=t._serializeElement,this._readEmbeddedPart=t._readEmbeddedPart):(o&&(this._fileLocation=o),s?.getRef&&(this._getRef=c),s?.getRefs&&(this._getRefs=l),this._onWarning=s?.onWarning,this._addPerson=s?.addPerson,this._serializeElement=s?.serializeElement,this._readEmbeddedPart=s?.readEmbeddedPart)}getRef(e,t=!1){return this._getRef?.(e,this._fileLocation,t)??null}readEmbeddedPart(e){return this._readEmbeddedPart?.(e,this._fileLocation)??null}getRelationships(){return this._getRefs?.(this._fileLocation)??Ee}getPath(){return this.currentPath}getFileLocation(){return this._fileLocation}getElemRoot(){return this.elemRoot}getJsonRoot(){return this.jsonRoot}warn(e,t){this._raiseWarning(e,this.getFileLocation(),t?.onceKey)}_raiseWarning(e,t,n){this._onWarning?this._onWarning(e,t,n):this._parent?this._parent._raiseWarning(e,t,n):console.warn(e)}serializeElement(e){return this._serializeElement?.(e)??null}addPerson(e){return typeof e==`string`&&(e={displayName:e}),this._addPerson?this._addPerson(e):this._parent?this._parent?._addPerson?.(e)??null:null}getVisitorParamsState(){return this.sharedShared.getVisitorParamsState()}evaluate(e,t){if(!e)return t;let n=[t],r=e.split(`/`),i=r.length;for(let e=0;e<i;e++){let t=r[e];if(t===``||t===`.`)continue;let a=[],o=(t===`*`||t===`**`)&&e!==i-1;for(let i of n)if(i){if(o){let t=r[e+1];t&&t!==``&&t!==`.`&&(this._findDescendants(i,t,a),e++)}else if(t===`*`||t===`**`){if(!i.childNodes)continue;let e=i.childNodes,t=e.length;for(let n=0;n<t;n++){let t=e[n];t.nodeType===1&&a.push(t)}}else{if(!i.childNodes)continue;let e=i.childNodes,n=e.length;for(let r=0;r<n;r++){let n=e[r];if(n.nodeType!==1)continue;let i=n;this._matchesElementName(i,t)&&a.push(i)}}}if(n=a,n.length===0)return null}return n.length===1?n[0]:n.length===0?null:new Se(n)}_matchesElementName(e,t){return t.includes(`:`)?(e.tagName||e.nodeName)===t:e.localName===t}_findDescendants(e,t,n){if(!e||!e.childNodes)return;let r=e.childNodes,i=r.length;for(let e=0;e<i;e++){let i=r[e];if(i.nodeType!==1)continue;let a=i;this._matchesElementName(a,t)&&n.push(a),this._findDescendants(a,t,n)}}getFromPath(t,n){return e.getFromPath(t,n)}setToPath(t,n,r){return e.setToPath(t,n,r)}getValAttrAsString(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?n.getAttribute(`val`)??null:null}getValAttrAsBoolean(e,t,n=!1){let r=this.evaluate(e,t);if(!r)return null;let i=r.hasAttribute(`val`)?r.getAttribute(`val`):void 0;return i==null?n:i===`1`||i===`on`||i===`true`||i!==`0`&&i!==`off`&&i!==`false`&&n}getValAttrAsInteger(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseInt(n.getAttribute(`val`))??null:null}getValAttrAsFloat(e,t){let n=this.evaluate(e,t);return n&&n.hasAttribute(`val`)?parseFloat(n.getAttribute(`val`))??null:null}get BOOLEAN_COPY(){return Ce}get INT_COPY(){return we}get FLOAT_COPY(){return Te}copyFromAttribute(e,t,n,r=t,i=null){if(!e||!n||!e.hasAttribute(t))return;let a=e.getAttribute(t);if(i){if(Array.isArray(i)){let e=i.length;for(let t=0;t<e;t++)if(a==null||(a=i[t](a),a==null))return}else if(a==null||(a=i(a),a==null))return}this.setToPath(n,r,a)}},B=(e,t)=>{let n=[],r=e.childNodes,i=r.length;for(let e=0;e<i;e++){let i=r.item(e);i.nodeType===1&&i.localName===t&&n.push(i)}return n},De=[[`fillRef`,`fill`],[`lnRef`,`stroke`],[`effectRef`,`effect`]],V=(e,t)=>{let n=new w,r={};for(let[i,a]of De){let o=e.evaluate(i,t);if(!o)continue;let s={index:parseInt(o.getAttribute(`idx`)??`0`,10)||0},c=n.processAdjColor(e,o);c&&(s.color=c),r[a]=s}let i=e.evaluate(`fontRef`,t);if(i){let t={index:i.getAttribute(`idx`)??`none`},a=n.processAdjColor(e,i);a&&(t.color=a),r.font=t}return r},H=class{visit(e,t,n){if(!t)return;let r=e.evaluate(`*/cNvPr`,t);return r.item&&(r=r.item(0)),r&&(e.copyFromAttribute(r,`name`,n),e.copyFromAttribute(r,`descr`,n,`description`),e.copyFromAttribute(r,`hidden`,n,`hidden`,e.BOOLEAN_COPY),this.readNonVisualDetails(e,r,n),e.copyFromAttribute(r,`id`,n)),n}readNonVisualDetails(e,t,n){t.hasAttribute(`title`)&&(n.title=t.getAttribute(`title`));let r=e.evaluate(`hlinkClick`,t);r&&(n.hyperlink=v(e,r));let i=e.evaluate(`hlinkHover`,t);i&&(n.hoverHyperlink=v(e,i));let a=e.evaluate(`extLst`,t),o=a?e.serializeElement(a):null;o&&(n.extLst={...n.extLst,nonVisual:o})}setContent(e,t){let n=e;n.name!==void 0&&(t.name=n.name,delete n.name),n.description!==void 0&&(t.description=n.description,delete n.description);for(let e of[`title`,`hyperlink`,`hoverHyperlink`,`extLst`])n[e]!==void 0&&(t.json&&(t.json[e]=n[e]),delete n[e]);e.content=t}isGroupContent(e){return Array.isArray(e?.members)}readMemberHeader(e,t,n){let r={},i={anchor:void 0,content:{type:n,json:r}},a=e.evaluate(`*/cNvPr`,t);if(a?.item&&(a=a.item(0)),a){let n=a.getAttribute(`name`);n!==null&&(i.content.name=n);let o=a.getAttribute(`descr`);o&&(i.content.description=o),e.copyFromAttribute(a,`hidden`,i,`hidden`,e.BOOLEAN_COPY),this.readNonVisualDetails(e,a,r);let s=this.readSourceId(e,t);s!==void 0&&(r.sourceId=s)}return{movable:i,content:r}}readStyleRefs(e,t,n){let r=e.evaluate(`style`,t);if(!r)return void(n.style=null);let i=V(e,r),o=a.withoutDefaultStyleRefs({...n,style:i});o&&(n.style=o)}readLocks(e){let t=e?.attributes;if(!t||t.length===0)return;let n={};for(let e=0;e<t.length;e++){let r=t.item(e);r.name.startsWith(`xmlns`)||(n[r.localName??r.name]=j(r.value))}return Object.keys(n).length>0?n:void 0}readSourceId(e,t){let n=e.evaluate(`*/cNvPr`,t);n?.item&&(n=n.item(0));let r=n?.getAttribute?.(`id`),i=r?parseInt(r,10):void 0;return i===void 0||isNaN(i)?void 0:i}},Oe=[[`spDef`,`shape`],[`lnDef`,`line`],[`txDef`,`text`]],U=(e,t)=>{let n=t.getAttribute(`dxfId`);if(n===null)return;let r=parseInt(n);return e.getVisitorParamsState().get(`dxfs`)?.get(r)||(e.warn(`A color filter or sort names a format that does not exist (dxfId '${n}').`),{})},W=e=>e===`1`||e===`true`,G=class{visit(e,t,n){}processDataBarColor(e,t,n,r,i=`auto`){if(!t)return;let a=T(e=>t.getAttribute(e),i);return a&&(n[r]=a),n}processFonts(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);if(a.nodeType===1&&a.localName===`font`){let t={};this.processFont(e,a,t),n[i++]=t}}return n}processFont(e,t,r){e.getValAttrAsBoolean(`b`,t,!0)&&(r.weight=700),e.getValAttrAsBoolean(`i`,t,!0)&&(r.style=n.Style.Italic),e.getValAttrAsBoolean(`strike`,t,!0)&&(r.strike=x(!0));let i=e.evaluate(`u`,t);if(i){let e=i.getAttribute(`val`);r.underline=O(e)}let a=k(e.evaluate(`vertAlign`,t)?.getAttribute(`val`));a!==void 0&&(r.baseline=a),me(e,t,r,`sz`,`size`);let o=e.evaluate(`color`,t);this.processDataBarColor(e,o,r,`color`),r.color||=`auto`,_(e,t,r,`name`,`family`),_(e,t,r,`rFont`,`family`);let s=e.evaluate(`family`,t);if(s){let e=s.getAttribute(`val`);if(e)switch(e){case`1`:r.fallbacks=[`serif`];break;case`2`:r.fallbacks=[`sans-serif`];break;case`3`:r.fallbacks=[`monospace`];break;case`4`:r.fallbacks=[`cursive`];break;case`5`:r.fallbacks=[`fantasy`]}}h(r,e.evaluate(`scheme`,t)?.getAttribute(`val`)),g(e,t,r,`shadow`,`shadow`,!0),g(e,t,r,`outline`,`outline`,!0);for(let n of[`condense`,`extend`]){let i=D(n,!!e.getValAttrAsBoolean(n,t,!0));i!==void 0&&(r.letterSpacing=i)}return oe(e,t,r,`charset`,`charset`),r}processFills(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`fill`&&this.processFill(e,a,n,i++)}return n}processFill(e,t,n,i){let a={type:r.Type.None},o=t.childNodes,s=!1,c=o.length;for(let t=0;!s&&t<c;t++){let n=o.item(t);n.nodeType===1&&(n.localName===`gradientFill`?(this.processGradientFill(e,n,a),s=!0):n.localName===`patternFill`&&(this.processPatternFill(e,n,a),s=!0))}return n[i]=a,n}processGradientFill(e,t,n){if(!t)return;n.type=r.Type.Gradient;let i=[];n.stops=i;let a=t.getAttribute(`type`);a&&(n.gradientType=a);let o=t.hasAttribute(`degree`)?parseFloat(t.getAttribute(`degree`)):0;(o+90)%360!=0&&(n.angle=(o+90)%360),(t.hasAttribute(`left`)||t.hasAttribute(`top`)||t.hasAttribute(`right`)||t.hasAttribute(`bottom`))&&(n.focus={left:K(t.getAttribute(`left`)),top:K(t.getAttribute(`top`)),right:K(t.getAttribute(`right`)),bottom:K(t.getAttribute(`bottom`))});let s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1&&n.localName===`stop`){let t={};i.push(t),t.offset=parseFloat(n.getAttribute(`position`)??``);let r=e.evaluate(`color`,n);this.processDataBarColor(e,r,t,`color`)}}return n}processPatternFill(e,t,n){if(!t)return;let i=e.getVisitorParamsState().get(`processingDXFs`),a=t.getAttribute(`patternType`)||(i?r.BuiltInSheetPattern.Solid:r.BuiltInSheetPattern.None);if(a===r.BuiltInSheetPattern.None)return{none:!0};n.type=r.Type.Pattern,a&&(n.patternType=a);let o=`foreground`,s=`background`,c=n.patternType===r.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,n,o,l);let f=e.evaluate(`bgColor`,t);return this.processDataBarColor(e,f,n,s,u),c&&(n.foreground||=`lt1`,n.background||=`dk1`),n}processBorders(e,t,n,r){if(!t)return;let i=t.childNodes,a=0,o=i.length;for(let t=0;t<o;t++){let o=i.item(t);o.nodeType===1&&o.localName===`border`&&this.processBorder(e,o,n,a++,r)}return n}processBorder(e,t,n,r,a){if(!t)return;let o={};this.processBorderStroke(e,t,o,i.Edge.Left),this.processBorderStroke(e,t,o,i.Edge.Right),a?(o.right||o.left)&&(o.vertical=o.right?{...o.right}:{...o.left}):this.processBorderStroke(e,t,o,i.Edge.Vertical),this.processBorderStroke(e,t,o,i.Edge.Top),this.processBorderStroke(e,t,o,i.Edge.Bottom),a?(o.bottom||o.top)&&(o.horizontal=o.bottom?{...o.bottom}:{...o.top}):this.processBorderStroke(e,t,o,i.Edge.Horizontal);let s=this.processBorderStroke(e,t,{},`diagonal`);return s&&(W(t.getAttribute(`diagonalUp`))&&(o.diagonalUp={...s}),W(t.getAttribute(`diagonalDown`))&&(o.diagonalDown={...s})),n[r]=o,n}processBorderStroke(e,t,n,r){if(!t)return;let a=e.evaluate(r,t);if(!a)return;let o={};a.hasAttribute(`style`)?o.style=a.getAttribute(`style`):e.getVisitorParamsState().get(`processingDXFs`)&&(o.style=i.StrokeStyle.None);let s=e.evaluate(`color`,a);return s&&this.processDataBarColor(e,s,o,`color`),Object.keys(o).length>0?n[r]=o:null}},K=e=>{if(!e)return 0;let t=parseFloat(e);return isNaN(t)?0:t},q=(e,t)=>{if(!e||e.nodeType!==1)return null;let n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType===1&&r.localName===t)return r}return null},ke=new Set(Object.values(p.ElementType).filter(e=>e!==p.ElementType.WholeTable&&e!==p.ElementType.HeaderRow)),Ae={auto:`auto`,autoNoTable:`automaticExceptTables`,manual:`manual`},J=[`tableId`,`columnId`,`cacheName`,`cachePath`,`sourceName`,`sortOrder`,`customListSort`,`crossFilter`,`pivotTables`,`pivotCacheId`,`pivotBody`,`tabular`,`pivotData`,`showMissing`],je=new Set([`name`,`xr10:uid`,`cache`,`caption`]),Y=(e,t)=>{let n=e.content,r=n?.json;if(r){if(n.type===`shape`||n.type===`picture`){let{rotation:n,flipH:i,flipV:a,bounds:o}=r;delete r.rotation,delete r.flipH,delete r.flipV,delete r.bounds,n!==void 0&&n!==0&&(e.rotation=n),i&&(e.flipH=!0),a&&(e.flipV=!0),t&&o&&(e.anchor={tl:{x:o.x,y:o.y},br:{x:o.width,y:o.height}})}if(n.type===`group`)for(let e of r.members??[])Y(e,!0)}},X=class extends H{visit(e,t,n){if(t)return this.visitShape(e,t,n,`sp`,`nvSpPr/cNvSpPr/spLocks`)}visitShape(e,n,r,i,a){let o=ie[i];if(this.isGroupContent(r)){if(e.getPath().includes(`Fallback`))return{};let{movable:s,content:c}=this.readMemberHeader(e,n,`shape`);o!==t.Type.Shape&&(c.type=o),this.readShapeDetails(e,n,i,a,c),this.readStyleRefs(e,n,c);let l=e.evaluate(a,n);l?.hasAttribute?.(`noChangeAspect`)&&(s.lockAspect=l.getAttribute(`noChangeAspect`)===`1`);let u=this.readTwinOf(e,n);return u!==void 0&&Object.assign(c,{twinOf:u}),r.members.push(s),c}if(e.getPath().includes(`Fallback`)&&r.content){let i=r.content.json;if(r.content.type===`shape`&&i&&(i.type??t.Type.Shape)===o){let t=e.evaluate(`txBody`,n),r=t?new S().readTextBody(e,t):null;r&&de(r)!==``&&(i.text=r)}return{}}r=super.visit(e,n,r);let s=e.evaluate(a,n);s?.hasAttribute?.(`noChangeAspect`)&&(r.lockAspect=s.getAttribute(`noChangeAspect`)===`1`);let c=o===t.Type.Shape?{}:{type:o},l=this.readSourceId(e,n);l!==void 0&&(c.sourceId=l),this.readShapeDetails(e,n,i,a,c),this.readStyleRefs(e,n,c);let u=this.readTwinOf(e,n);return u!==void 0&&Object.assign(c,{twinOf:u}),this.setContent(r,{type:`shape`,json:c}),c}readTwinOf(e,t){let n=e.evaluate(`*/cNvPr/extLst/ext/compatExt`,t);n?.item&&(n=n.item(0));let r=/^_x0000_s(\d+)$/.exec(n?.getAttribute?.(`spid`)??``);return r?parseInt(r[1],10):void 0}readShapeDetails(e,t,n,r,i){let a=t.getAttribute(`macro`);a&&(i.macro=a);let o=t.getAttribute(`textlink`);o&&(i.textLink=o),t.hasAttribute(`fLocksText`)&&(i.locksText=j(t.getAttribute(`fLocksText`))),t.hasAttribute(`fPublished`)&&(i.published=j(t.getAttribute(`fPublished`)));let s=r.slice(0,r.lastIndexOf(`/`)),c=e.evaluate(s,t);c?.getAttribute?.(`txBox`)===`1`&&(i.textBox=!0);let l=this.readLocks(e.evaluate(r,t));if(l&&(i.locks=l),n===`cxnSp`&&c){let t=t=>{let n=e.evaluate(t,c);if(n?.getAttribute)return{id:parseInt(n.getAttribute(`id`)??`0`,10)||0,index:parseInt(n.getAttribute(`idx`)??`0`,10)||0}},n=t(`stCxn`),r=t(`endCxn`);(n||r)&&(i.connectorEnds={},n&&(i.connectorEnds.start=n),r&&(i.connectorEnds.end=r))}}},Me=/^<a:extLst(?:\s+xmlns:a="[^"]*")?><a:ext uri="\{28A0092B-C50C-407E-A947-70E740481C1C\}"><a14:useLocalDpi(?:\s+xmlns:a14="[^"]*")?\s+val="0"\s*\/><\/a:ext><\/a:extLst>$/,Z=(e,t,n,r)=>{let i=e.evaluate(n,t),a=e.evaluate(r,t);return i||a?{x:y(i?.getAttribute(`x`)??null)??0,y:y(i?.getAttribute(`y`)??null)??0,width:y(a?.getAttribute(`cx`)??null)??0,height:y(a?.getAttribute(`cy`)??null)??0}:null},Ne={Checkbox:`checkbox`},Q=e=>{let t=e.getAttribute(`val`);return t!==`0`&&t!==`false`},Pe={1:`serif`,2:`sans-serif`,3:`monospace`,4:`cursive`,5:`fantasy`};function Fe(e){let t={},r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1)switch(i.localName){case`b`:t.weight=Q(i)?700:400;break;case`i`:t.style=Q(i)?n.Style.Italic:n.Style.Normal;break;case`strike`:t.strike=x(Q(i));break;case`outline`:t.outline=Q(i);break;case`shadow`:t.shadow=Q(i);break;case`condense`:case`extend`:{let e=D(i.localName,Q(i));e!==void 0&&(t.letterSpacing=e);break}case`u`:t.underline=O(i.getAttribute(`val`));break;case`vertAlign`:{let e=k(i.getAttribute(`val`));e!==void 0&&(t.baseline=e);break}case`sz`:{let e=parseFloat(i.getAttribute(`val`)??``);isNaN(e)||(t.size=e);break}case`rFont`:{let e=i.getAttribute(`val`);e&&(t.family=e);break}case`family`:{let e=Pe[i.getAttribute(`val`)??``];e&&(t.fallbacks=[e]);break}case`charset`:{let e=parseInt(i.getAttribute(`val`)??``,10);isNaN(e)||(t.charset=e);break}case`scheme`:h(t,i.getAttribute(`val`));break;case`color`:{let e=i.getAttribute(`rgb`);if(e&&!i.hasAttribute(`theme`)){t.color=`#`+(e.length===8?e.substring(2):e).toUpperCase();break}let n=T(e=>i.getAttribute(e));n&&(t.color=n);break}}}return Object.keys(t).length>0?t:null}var $={RelsVisitor:class{visit(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);i.nodeType===1&&i.localName===`Relationship`&&this.processRelationship(e,i,n)}return n}processRelationship(e,t,n){let r={};e.copyFromAttribute(t,`Target`,r,`target`),e.copyFromAttribute(t,`Type`,r,`type`),e.copyFromAttribute(t,`TargetMode`,r,`targetMode`),n[t.getAttribute(`Id`)]=r}},CorePropertiesVisitor:class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType!==1)continue;let a=this.processProperty(e,n);a&&r.push(a)}return r.length>0&&(n.properties=r),r}processProperty(e,t){if(t)return t.getAttribute(`xsi:type`),{key:t.localName,value:t.textContent||``}}},AppPropertiesVisitor:class{visit(e,t,n){let r=t.childNodes,i=r.length;for(let e=0;e<i;e++)if(r.item(e).localName===`property`)return this.visitCustom(t,n);let a=[];for(let t=0;t<i;t++){let n=r.item(t);if(n.nodeType!==1)continue;let i=this.processProperty(e,n);i&&a.push(i)}return a.length>0&&(n.properties=a),a}visitCustom(e,t){let n=[],r=e.childNodes,i=r.length;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType!==1||t.localName!==`property`)continue;let i=t.getAttribute(`name`);if(!i)continue;let a=null;for(let e=0;e<t.childNodes.length&&!a;e++){let n=t.childNodes.item(e);n.nodeType===1&&(a=n)}let o={key:i,kind:a?.localName??null,value:a?.textContent??``},s=t.getAttribute(`linkTarget`);s&&(o.linkTarget=s),n.push(o)}return n.length>0&&(t.custom=n),n}processProperty(e,t){if(t)return{key:t.localName,value:t.textContent||``}}},ShapePropertiesVisitor:C,TextPropertiesVisitor:b,ShapeTextVisitor:S,ThemeVisitor:class{visit(e,t,n){n.name=t.getAttribute(`name`),n.objectDefaults={};let r=B(t,`custClrLst`)[0];if(r){let t=new w,i=[];for(let n of B(r,`custClr`)){let r=t.processAdjColor(e,n);if(!r)continue;let a={color:r},o=n.getAttribute(`name`);o&&(a.name=o),i.push(a)}i.length&&(n.customColors=i)}for(let e of B(t,`extLst`))for(let t of B(e,`ext`)){if(t.getAttribute(`uri`)!==`{05A4C25C-085E-4340-85A3-A5531E510DB2}`)continue;let e=B(t,`themeFamily`)[0],r=e?.getAttribute(`id`);if(!r)continue;let i={name:e.getAttribute(`name`)??``,id:r},a=e.getAttribute(`vid`);a&&(i.vid=a),n.family=i}return n}},ClrSchemeVisitor:class extends w{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=t.childNodes,a=i.length;for(let n=0;n<a;n++){let a=i.item(n);if(a.nodeType===1){let n=a.localName,i=e.evaluate(n,t);r[n]=this.processAdjColor(e,i)}}return Object.keys(r).length>0&&(n.colors=r),r}},FontSchemeVisitor:class{visit(e,t,n){let r={};r.name=t.getAttribute(`name`);let i=this.processFontCollection(e,e.evaluate(`majorFont`,t));i&&(r.major=i);let a=this.processFontCollection(e,e.evaluate(`minorFont`,t));return a&&(r.minor=a),n.fonts=r,r}processFontCollection(e,t){if(!t)return;let n={},r=e.evaluate(`latin`,t),i=r?.getAttribute(`typeface`);i&&(n.latin=i);let a=r?.getAttribute(`panose`);a&&(n.panose=a);let o=e.evaluate(`ea`,t)?.getAttribute(`typeface`);o&&(n.eastAsian=o);let s=e.evaluate(`cs`,t)?.getAttribute(`typeface`),c;s&&(n.complexScript=s);let l=t.childNodes,u=l.length;for(let e=0;e<u;e++){let t=l.item(e);if(t.nodeType!==1||t.localName!==`font`)continue;let n=t.getAttribute(`script`);n&&((c??={})[n]=t.getAttribute(`typeface`)??``)}return c&&(n.scripts=c),n}},ObjectDefaultsVisitor:class{visit(e,t,n){let r={};for(let[n,i]of Oe){let a=e.evaluate(n,t);a&&(r[i]=this.processDefault(e,a))}return n.objectDefaults=r,{}}processDefault(e,t){let n={},r=e.evaluate(`spPr`,t);r&&new C().visit(e,r,n);let i=new S().readTextBody(e,t);(i.body||i.listStyle)&&(n.text=i);let a=e.evaluate(`style`,t);return a&&(n.style=V(e,a)),n}},FmtSchemeVisitor:class extends w{visit(e,t,n){let r=this.parseFillList(e,t,`fillStyleLst`),i=this.parseLnList(e,t,`lnStyleLst`),a=this.parseEffectStyleList(e,t,`effectStyleLst`),o=this.parseFillList(e,t,`bgFillStyleLst`);if(r&&(n.fillStyleLst=r),i&&(n.lnStyleLst=i),a&&(n.effectStyleLst=a),o&&(n.bgFillStyleLst=o),r&&i&&a&&o)return;let s=e.serializeElement(t);s&&(n.formatSchemeXml=s)}parseFillList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;let r=this.parseFillListItem(e,n);if(r===void 0)return;i.push(r)}return i}parseFillListItem(e,t){switch(t.localName){case`noFill`:return{type:r.Type.None};case`solidFill`:{let n=this.processAdjColor(e,t);return n?{type:r.Type.Solid,color:n}:void 0}case`gradFill`:return this.processGradFill(e,t);case`pattFill`:return this.processPatternFill(e,t);default:return}}parseLnList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);n.nodeType===1&&i.push(this.parseLn(e,n))}return i}parseEffectStyleList(e,t,n){let r=e.evaluate(n,t);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1)continue;if(e.evaluate(`scene3d`,n)||e.evaluate(`sp3d`,n))return;let r=this.getEffects(e,n);if(r===void 0)return;i.push(r??[])}return i}},AutoFilterVisitor:class{visit(e,t,n){if(!t)return;let r={},i=[];return this.processFilterColumns(e,t,i,n),i.length>0&&(r.conditions=i),Object.keys(r).length>0&&(n.filter=r),n}processColorFilter(e,t){let n={},r={operator:f.BuiltInOperatorNames.Color,param:n};e.copyFromAttribute(t,`cellColor`,n,`cellColor`,e.BOOLEAN_COPY);let i=U(e,t);return i&&(n.style=i),r}processCustomFilter(e,t){return se({operator:t.getAttribute(`operator`),val:t.getAttribute(`val`)},t=>e.warn(t))}processCustomFilters(e,t){let n=t.getAttribute(`and`),r=n===`and`||n===`1`;t.getAttribute(`val`);let i=[],a={operator:r?f.BuiltInOperatorNames.And:f.BuiltInOperatorNames.Or,param:i},o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let n=o.item(t);if(n.nodeType!==1)continue;let r=null;n.localName===`customFilter`&&(r=this.processCustomFilter(e,n)),r&&i.push(r)}return i.length===1?i[0]:fe(a)}processDynamicFilter(e,t){return te(t.getAttribute(`type`),t.getAttribute(`val`),t.getAttribute(`maxVal`))}processDateGroupItem(e,t){let n={};return e.copyFromAttribute(t,`dateTimeGrouping`,n,`group`),e.copyFromAttribute(t,`day`,n,`day`,e.INT_COPY),e.copyFromAttribute(t,`hour`,n,`hour`,e.INT_COPY),e.copyFromAttribute(t,`minute`,n,`minute`,e.INT_COPY),e.copyFromAttribute(t,`month`,n,`month`,e.INT_COPY),e.copyFromAttribute(t,`second`,n,`second`,e.INT_COPY),e.copyFromAttribute(t,`year`,n,`year`,e.INT_COPY),n}processFilterItem(e,t){if(t.hasAttribute(`val`))return t.getAttribute(`val`)}processFilters(e,t){let n={},r={operator:f.BuiltInOperatorNames.InSet,param:n};r.selector=f.BuiltInSelectorNames.Display,e.copyFromAttribute(t,`blank`,n,`blank`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calendarType`,n,`calendarType`);let i=[],a=[],o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let n=o.item(t);if(n.nodeType===1){if(n.localName===`dateGroupItem`){let t=this.processDateGroupItem(e,n);t&&i.push(t)}else if(n.localName===`filter`){let t=this.processFilterItem(e,n);t!==void 0&&a.push(t)}}}return i.length>0&&(n.dateGroups=i),a.length>0&&(n.items=a),r}processIcon(e,t){let n={},r={operator:f.BuiltInOperatorNames.Icon,param:n};return e.copyFromAttribute(t,`iconId`,n,`iconId`,e.INT_COPY),e.copyFromAttribute(t,`iconSet`,n),r}processTop10(e,t){let n={},r={operator:f.BuiltInOperatorNames.TopN,param:n};return e.copyFromAttribute(t,`filterVal`,n,`filterVal`,e.FLOAT_COPY),e.copyFromAttribute(t,`percent`,n,`percent`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`top`,n,`top`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`val`,n,`limit`,e.FLOAT_COPY),r}processFilterColumnExt(e,t){let n=t.childNodes;for(let t=0;t<n.length;t++){let r=n.item(t);if(r.nodeType!==1||r.localName!==`ext`||A(r.getAttribute(`uri`))!==A(`{1AD28BCE-077C-4C59-8B6E-1921CE8616D4}`))continue;let i=r.childNodes;for(let t=0;t<i.length;t++){let n=i.item(t);if(n.nodeType!==1||n.localName!==`filterColumn`)continue;let r=n.childNodes;for(let t=0;t<r.length;t++){let n=r.item(t);if(n.nodeType===1&&n.localName===`filters`)return this.processFilters(e,n)}}}}processFilterCriteria(e,t){if(!t)return;let n=t.childNodes,r,i=n.length;for(let t=0;t<i;t++){let i=n.item(t);i.nodeType===1&&(i.localName===`colorFilter`?r=this.processColorFilter(e,i):i.localName===`customFilters`?r=this.processCustomFilters(e,i):i.localName===`dynamicFilter`?r=this.processDynamicFilter(e,i):i.localName===`filters`?r=this.processFilters(e,i):i.localName===`iconFilter`?r=this.processIcon(e,i):i.localName===`top10`?r=this.processTop10(e,i):i.localName===`extLst`&&(r=this.processFilterColumnExt(e,i)??r))}return r}processFilterColumn(e,t,n){if(!t)return null;if(!t.hasAttribute(`colId`))return;let r=parseInt(t.getAttribute(`colId`)),i=!1;if(t.hasAttribute(`hiddenButton`)&&(i=j(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=j(t.getAttribute(`showButton`))),a&&n){let e=n.showButtons;!0!==e&&(e||(e=[],n.showButtons=e),e[r]=!0)}let o=this.processFilterCriteria(e,t);return o?(o.index=r,o):null}processFilterColumns(e,t,n,r){if(!t)return;let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`filterColumn`){let t=this.processFilterColumn(e,a,r);t&&n.push(t)}}return n}},SortStateVisitor:class{visit(e,t,n){if(!t)return;let r=t.getAttribute(`ref`),i={};t.hasAttribute(`caseSensitive`)&&(i.collatorOptions=j(t.getAttribute(`caseSensitive`))?d.CaseSensitiveOptions:d.CaseInsensitiveOptions);let a=t.getAttribute(`sortMethod`);a!=null&&a!==`none`&&(a===`stroke`?i.collatorOptions={...i.collatorOptions,collation:`stroke`}:a===`pinYin`&&(i.collatorOptions={...i.collatorOptions,collation:`pinyin`}));let o={};t.hasAttribute(`columnSort`)&&j(t.getAttribute(`columnSort`))&&(o.axis=c.Axis.Column);let s=u.fastStringToRange(r),l=[],f=[];this.processSortConditions(e,t,l,s,i,f),l.length>0&&(o.sorts=l);let p=e.getVisitorParamsState().get(`ref`);if(p&&r){let e=u.fastStringToRange(p);o.extent={range:pe(e,s),sorts:f.map(t=>P(e,s,t))}}return Object.keys(l).length>0&&(n.sort=o),o}processSortCondition(e,t,n,r,i){if(!t)return null;let a={};if(!t.hasAttribute(`ref`))return void e.warn(`A sort condition has no ref; it was dropped.`,{onceKey:`xlsx.sheet.sort.noRef`});if(t.hasAttribute(`ref`)){let e=t.getAttribute(`ref`),r=u.fastStringToRange(e);a.index=n?r.colStart-n.colStart:r.colStart,i?.push(r)}let o={...r};a.criteria=o,o.reverse=!1,t.hasAttribute(`descending`)&&(o.reverse=j(t.getAttribute(`descending`)));let s=ue(t.getAttribute(`sortBy`));s&&(o.sortOn=s);let c=U(e,t);return c&&(o.style=c),e.copyFromAttribute(t,`iconSet`,o),e.copyFromAttribute(t,`customList`,o),a}processSortConditions(e,t,n,r,i,a){if(!t)return;let o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let s=o.item(t);if(s.nodeType===1&&s.localName===`sortCondition`){let t=this.processSortCondition(e,s,r,i,a);t&&n.push(t)}}}},SheetStyleVisitor:class extends G{visit(e,t,n){this.processNumFmts(e,e.evaluate(`numFmts`,t),null),e.getVisitorParamsState().set(`colorsToProcess`,new Set);let a={fills:{},fonts:{},borders:{}},o=e.evaluate(`fonts`,t);this.processFonts(e,o,a.fonts);let s=a.fonts[this.normalFontId(e,t)],c={declared:[`1`,`true`].includes(o?.getAttribute(`x14ac:knownFonts`)??``),normalIsThemeFont:N(s?.family),faces:ce(Object.values(a.fonts).map(e=>({...e,family:ne(e?.family,e?.fallbacks,null,!1).name})))};e.getVisitorParamsState().set(ae,c),s&&e.getVisitorParamsState().set(`defaultFont`,s),this.processFills(e,e.evaluate(`fills`,t),a.fills),this.processBorders(e,e.evaluate(`borders`,t),a.borders,!0),a.fills[0]={type:r.Type.None},a.fills[1]={type:r.Type.Pattern,patternType:r.BuiltInSheetPattern.Gray125},a.borders[0]={bottom:{style:i.StrokeStyle.None},left:{style:i.StrokeStyle.None},right:{style:i.StrokeStyle.None},top:{style:i.StrokeStyle.None}};let l=[];this.processXFs(e,e.evaluate(`cellStyleXfs`,t),l,a,null,!1);let u=new Map;if(l.length>0){let r=[];this.processCellStyles(e,e.evaluate(`cellStyles`,t),r,l,u),n.named=r}let d=[];this.processXFs(e,e.evaluate(`cellXfs`,t),d,a,u),Object.keys(d).length>0&&(n.direct=d);let f=this.collectHiddenXfs(e.evaluate(`cellXfs`,t));f.size>0&&e.getVisitorParamsState().set(`hiddenXfs`,f);let p=this.collectPivotButtonXfs(e.evaluate(`cellXfs`,t));p.size>0&&e.getVisitorParamsState().set(`pivotButtonXfs`,p);let m=this.collectXfComplements(e.evaluate(`cellXfs`,t));m.size>0&&e.getVisitorParamsState().set(`xfComplements`,m);let h=[];return this.processDXFs(e,e.evaluate(`dxfs`,t),h),this.processTableStyles(e,e.evaluate(`tableStyles`,t),n,h),this.processSlicerStyles(e,e.evaluate(`extLst`,t),n),this.processIndexColors(e,e.evaluate(`colors/indexedColors`,t),n),this.processMruColors(e,e.evaluate(`colors/mruColors`,t),n),n}normalFontId(e,t){let n=e.evaluate(`cellStyles`,t)?.childNodes,r=0;for(let e=0;e<(n?.length??0);e++){let t=n.item(e);if(t.nodeType===1&&t.getAttribute(`builtinId`)===`0`){r=parseInt(t.getAttribute(`xfId`)??`0`,10)||0;break}}let i=e.evaluate(`cellStyleXfs`,t)?.childNodes,a=0;for(let e=0;e<(i?.length??0);e++){let t=i.item(e);if(t.nodeType===1&&a++===r)return parseInt(t.getAttribute(`fontId`)??`0`,10)||0}return 0}processIndexColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`rgbColor`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}n.indexedColors=r}processMruColors(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`color`){let t={color:null};this.processDataBarColor(e,n,t,`color`),t.color&&r.push(t.color)}}r.length>0&&(n.mruColors=r)}processNumFmts(e,t,n){if(!t)return;let r=new Map;if(e.getVisitorParamsState().set(`numFmts`,r),!t)return;let i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType===1&&t.localName===`numFmt`){let e=t.getAttribute(`numFmtId`),n=t.getAttribute(`formatCode`);if(e&&n){let t=n;r.set(parseInt(e),t)}}}}processXFs(e,t,n,r,i=null,a=!0){if(!t)return;let o=t.childNodes,s=o.length;for(let t=0;t<s;t++){let s=o.item(t);if(s.nodeType===1&&s.localName===`xf`){let t={};this.processXF(e,s,t,r,i,a),n.push(t)}}}processXF(e,t,n,r,i,a){if(!t)return;let o=t.getAttribute(`xfId`);if(o&&i){let e=i.get(parseInt(o));e&&e!==s.BuiltInName.Normal&&(n.named=e)}let c=e=>!(!a&&t.hasAttribute(e))||j(t.getAttribute(e)),l=e=>!a||t.hasAttribute(e)&&j(t.getAttribute(e)),u=a?`0`:void 0;if(c(`applyFont`)){let e=t.getAttribute(`fontId`)??u;if(e!==void 0&&(e!==`0`||l(`applyFont`))){let t=r.fonts[e];t!==void 0&&(n.font=t)}}if(c(`applyFill`)){let e=t.getAttribute(`fillId`)??u;if(e!==void 0&&(e!==`0`||l(`applyFill`))){let t=r.fills[e];t!==void 0&&Object.keys(t).length>0&&(n.fill=t)}}if(c(`applyBorder`)){let e=t.getAttribute(`borderId`)??u;if(e!==void 0&&(e!==`0`||l(`applyBorder`))){let t=r.borders[e];t!==void 0&&(n.borders=t)}}if(c(`applyNumberFormat`)){let r=t.getAttribute(`numFmtId`)??u;if(r!==void 0&&(r!==`0`||l(`applyNumberFormat`))){let t=parseInt(r),i,a=e.getVisitorParamsState();if(a){let e=a.get(`numFmts`);e&&(i=e.get(t)),n.numberFormat=i??t}else e.warn(`Number formats were unavailable; a cell format was not read.`,{onceKey:`xlsx.style.numberFormat.state`})}}if(c(`applyAlignment`)){let r=e.evaluate(`alignment`,t);(r||l(`applyAlignment`))&&this.processAlignment(e,r,n)}if(c(`applyProtection`)){let r=e.evaluate(`protection`,t);(r||l(`applyProtection`))&&this.processProtection(e,r,n)}let d=j(t.getAttribute(`quotePrefix`)??``);d&&(n.quotePrefix=d)}processAlignment(e,t,n){let r={};if(r.horizontal=t?.hasAttribute(`horizontal`)?t.getAttribute(`horizontal`):o.HorizontalAlignment.General,r.vertical=t?.hasAttribute(`vertical`)?t.getAttribute(`vertical`):o.VerticalAlignment.Bottom,r.indent=t?.hasAttribute(`indent`)?parseInt(t.getAttribute(`indent`)):0,r.relativeIndent=t?.hasAttribute(`relativeIndent`)?parseInt(t.getAttribute(`relativeIndent`)):0,r.overflow=j(t?.getAttribute(`wrapText`)??``)?o.Overflow.Wrap:o.Overflow.Visible,j(t?.getAttribute(`shrinkToFit`)??``)&&(r.overflow=o.Overflow.Shrink),t?.hasAttribute(`textRotation`)){let e=parseFloat(t.getAttribute(`textRotation`));e>0&&e<=90?e=360-e:e>90&&e<=180?e-=90:e===255&&(e=0,r.stacked=!0),r.rotation=e}else r.rotation=0;t?.hasAttribute(`justifyLastLine`)&&(r.justifyLastLine=j(t.getAttribute(`justifyLastLine`)));let i=t?.getAttribute(`readingOrder`);return i&&(i===`0`?r.readingDirection=o.ReadingDirection.Auto:i===`1`?r.readingDirection=o.ReadingDirection.LeftToRight:i===`2`?r.readingDirection=o.ReadingDirection.RightToLeft:e.warn(`Invalid readingOrder '${i}'; the direction was left automatic.`,{onceKey:`xlsx.style.readingOrder`})),Object.keys(r).length>0&&(n.alignment=r),n}collectHiddenXfs(e){let t=new Set;if(!e)return t;let n=e.childNodes,r=0;for(let e=0;e<n.length;e++){let i=n.item(e);if(i.nodeType!==1||i.localName!==`xf`)continue;let a=i.childNodes;for(let e=0;e<a.length;e++){let n=a.item(e);n.nodeType===1&&n.localName===`protection`&&j(n.getAttribute(`hidden`)??``)&&t.add(r)}r++}return t}collectPivotButtonXfs(e){let t=new Set;if(!e)return t;let n=e.childNodes,r=0;for(let e=0;e<n.length;e++){let i=n.item(e);i.nodeType===1&&i.localName===`xf`&&(j(i.getAttribute(`pivotButton`)??``)&&t.add(r),r++)}return t}collectXfComplements(e){let t=new Map;if(!e)return t;let n=e.childNodes,r=0;for(let e=0;e<n.length;e++){let i=n.item(e);if(i.nodeType!==1||i.localName!==`xf`)continue;let a=q(i,`extLst`);if(a){let e=a.childNodes;for(let n=0;n<e.length;n++){let i=q(e.item(n),`xfComplement`),a=parseInt(i?.getAttribute(`i`)??``,10);isNaN(a)||t.set(r,a)}}r++}return t}processProtection(e,t,n){if(!t)return;let r=t.getAttribute(`locked`);return n.protection={alwaysUnlocked:!!r&&!j(r)},n}processDXF(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`font`){let t={};this.processFont(e,i,t),n.font=t}else if(i.nodeType===1&&i.localName===`fill`){let t=[];this.processFill(e,i,t,0),t.length>0&&t[0]&&(n.fill=t[0])}else if(i.nodeType===1&&i.localName===`border`){let t=[];this.processBorder(e,i,t,0,!1),t.length>0&&t[0]&&(n.borders=t[0])}else if(i.nodeType===1&&i.localName===`numFmt`){let e=i.getAttribute(`formatCode`);if(e)n.numberFormat=e;else{let e=i.getAttribute(`numFmtId`);e&&(n.numberFormat=Number(e))}}else i.nodeType===1&&i.localName===`alignment`&&this.processAlignment(e,i,n)}}processDXFs(e,t,n){if(!t)return;e.getVisitorParamsState().set(`processingDXFs`,!0);let r=new Map;e.getVisitorParamsState().set(`dxfs`,r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);if(a.nodeType===1&&a.localName===`dxf`){let t={};this.processDXF(e,a,t);let i=n.length;r.set(i,t),n.push(t)}}e.getVisitorParamsState().delete(`processingDXFs`)}processSlicerStyles(e,t,n){if(!t)return;let r=null,i=null,a=t.childNodes;for(let e=0;e<a.length;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`ext`)continue;let n=t.childNodes;for(let e=0;e<n.length;e++){let t=n.item(e);t.nodeType===1&&(t.localName===`dxfs`?r=t:t.localName===`slicerStyles`&&(i=t))}}if(!i)return;let o=[];if(r){e.getVisitorParamsState().set(`processingDXFs`,!0);let t=r.childNodes;for(let n=0;n<t.length;n++){let r=t.item(n);if(r.nodeType!==1||r.localName!==`dxf`)continue;let i={};this.processDXF(e,r,i),o.push(i)}e.getVisitorParamsState().delete(`processingDXFs`)}let s={},c=i.getAttribute(`defaultSlicerStyle`);c&&c!==`SlicerStyleLight1`&&(s.defaultSlicerStyle=c);let l=n.tables?.styles,u=i.childNodes;for(let t=0;t<u.length;t++){let n=u.item(t);if(n.nodeType!==1||n.localName!==`slicerStyle`)continue;let r=n.getAttribute(`name`);if(!r)continue;let i={},a=l?.[r];a&&!1===a.table&&!a.pivot&&(a.wholeTable&&(i.wholeTable=a.wholeTable),a.headerRow&&(i.headerRow=a.headerRow),delete l[r]);let c=e.evaluate(`slicerStyleElements`,n)?.childNodes,d=c?.length??0;for(let t=0;t<d;t++){let n=c.item(t);if(n.nodeType!==1||n.localName!==`slicerStyleElement`)continue;let r=n.getAttribute(`type`);if(!r||!ke.has(r))continue;let a=n.getAttribute(`dxfId`),s=a==null?void 0:o[parseInt(a)];s?i[r]=s:e.warn(`A slicer style names a format that does not exist (dxfId '${a}').`,{onceKey:`xlsx.style.slicerStyle.dxf`})}(s.styles??={})[r]=i}l&&Object.keys(l).length===0&&(delete n.tables.styles,Object.keys(n.tables).length===0&&delete n.tables),Object.keys(s).length>0&&(n.slicers=s)}processTableStyle(e,t,n,r,i=!1){let a=t.getAttribute(`name`),o={name:a};t.hasAttribute(`table`)&&(o.table=j(t.getAttribute(`table`))),o.pivot=!t.hasAttribute(`pivot`)||j(t.getAttribute(`pivot`)),i&&!o.pivot&&r.unshift(null);let s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType===1&&n.localName===`tableStyleElement`){let t=n.getAttribute(`type`),i=n.getAttribute(`dxfId`),a=i==null?void 0:r?.[i];a||=(e.warn(`A table style names a format that does not exist (dxfId '${i}').`,{onceKey:`xlsx.style.tableStyle.dxf`}),{}),o[t]=a;let s=null;n.hasAttribute(`size`)&&(s=parseInt(n.getAttribute(`size`))),s&&!isNaN(s)&&(a.size=s)}}delete o.name,n[a]=o}processTableStyles(e,t,n,r,i){if(!t)return;let a={},o=t.getAttribute(`defaultTableStyle`);o&&(a.defaultTableStyle=o);let s=t.getAttribute(`defaultPivotStyle`);s&&(a.defaultPivotStyle=s);let c=t.childNodes,l={},u=c.length;for(let t=0;t<u;t++){let n=c.item(t);n.nodeType===1&&n.localName===`tableStyle`&&this.processTableStyle(e,n,l,r,i)}return Object.keys(l).length>0&&(a.styles=l),Object.keys(a).length>0&&(n.tables=a),n}processCellStyles(e,t,n,r,i){if(!t)return;let a=t.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType===1&&t.localName===`cellStyle`){let e=parseInt(t.getAttribute(`xfId`)??``),a=t.getAttribute(`name`),o=t.getAttribute(`builtinId`),c=a;if(o!==null){let e=s.builtInNameFromId(parseInt(o));e!==void 0&&(c=e)}if(i.set(e,c),!r[e])continue;let l={name:c,style:r[e]};t.getAttribute(`hidden`)&&(l.hidden=j(t.getAttribute(`hidden`))),t.getAttribute(`iLevel`)&&(l.iLevel=parseInt(t.getAttribute(`iLevel`))),o!==null&&j(t.getAttribute(`customBuiltin`)??`0`)&&(l.customized=!0),n.push(l)}}}afterVisit(e,t,n){}},WorkbookVisitor:class extends G{visit(e,t,n){return this.processSheetRefs(e,e.evaluate(`sheets`,t),n),this.processExternalReferences(e,e.evaluate(`externalReferences`,t),n),this.processBookViews(e,e.evaluate(`bookViews`,t),n),this.processDefinedNames(e,e.evaluate(`definedNames`,t),n),this.processCalcPr(e,e.evaluate(`calcPr`,t),n),this.processPivotCaches(e,e.evaluate(`pivotCaches`,t),n),this.processWorkbookProtection(e,e.evaluate(`workbookProtection`,t),n),this.processWorkbookPr(e,e.evaluate(`workbookPr`,t),n),n}processPassword(e,t,n,r=`workbook`,i=`password`){if(!t)return;let a={};e.copyFromAttribute(t,`${r}AlgorithmName`,a,`algorithm`),e.copyFromAttribute(t,`${r}HashValue`,a,`hash`),e.copyFromAttribute(t,`${r}SaltValue`,a,`salt`),e.copyFromAttribute(t,`${r}SpinCount`,a,`spinCount`,e.INT_COPY),e.copyFromAttribute(t,`${r}Password`,a,`legacyHash`),Object.keys(a).length>0&&(n[i]=a)}processWorkbookProtection(e,t,n){if(!t)return;let r={};this.processPassword(e,t,r,`workbook`,`password`),this.processPassword(e,t,r,`revisions`,`revisionsPassword`);for(let e of re)r[e.key]=M(e,t.getAttribute(e.attribute));return n.protection=r,n}processCalcPr(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`calcMode`,r,`calcMode`,e=>Ae[e]??null),e.copyFromAttribute(t,`fullCalcOnLoad`,r,`fullCalcOnLoad`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calcOnSave`,r,`calcOnSave`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`calcCompleted`,r,`calcCompleted`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`fullPrecision`,r,`fullPrecision`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`forceFullCalc`,r,`forceFullCalc`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`concurrentCalc`,r,`concurrentCalc`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`concurrentManualCount`,r,`concurrentManualCount`,e.INT_COPY),e.copyFromAttribute(t,`refMode`,r,`refMode`),e.copyFromAttribute(t,`iterate`,r,`iterate`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`iterateCount`,r,`maxIteration`,e.INT_COPY),e.copyFromAttribute(t,`iterateDelta`,r,`maxIterateChange`,e.FLOAT_COPY);let i=t.getAttribute(`calcId`);i!==null&&e.getVisitorParamsState().set(`calcId`,i),n.calc=r}processSheetRefs(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`sheet`&&this.processSheetRef(e,n,r)}n.sheets=r}processSheetRef(e,t,n){let r={};e.copyFromAttribute(t,`name`,r,`name`),e.copyFromAttribute(t,`state`,r,`visibility`),e.copyFromAttribute(t,`sheetId`,r,`sheetId`,e.INT_COPY);let i=t.getAttribute(`r:id`),a=i?_e(e.getRelationships().get(i)?.type):null;if(a){let t=e.readEmbeddedPart(i);if(t?.xml){let e={part:t},i=I(t.xml),o=i?T(e=>i.get(e)):void 0;o&&(e.tabColor=o),r.kind=a,r.sheet=e,n.push(r);return}e.warn(`The ${a} sheet '${r.name}' could not be read and was loaded as an empty worksheet.`),n.push(r);return}let o=i?e.getRef(i):null;o&&(r.sheet=o),n.push(r)}processExternalReferences(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`externalReference`){let t=n.getAttribute(`r:id`),i=t?e.getRef(t):null;r.push(i??null)}}r.length>0&&(n.externalBooks=r)}processPivotCaches(e,t,n){if(!t)return;let r=[],i=e.evaluate(`workbookPr`,t.parentNode)?.getAttribute?.(`date1904`),a=i===`1`||i===`true`,o=ge(e.getVisitorParamsState().get(`numFmts`),void 0),s=t.childNodes,c=s.length;for(let t=0;t<c;t++){let n=s.item(t);if(n.nodeType!==1||n.localName!==`pivotCache`)continue;let i=parseInt(n.getAttribute(`cacheId`)??``,10),c=n.getAttribute(`r:id`);if(isNaN(i)||!c)continue;let l=e.readEmbeddedPart(c);if(!l)continue;let u=R(l,a,e=>o.numberFormat(e)),d=!u&&l.xml?F(l.xml,o):void 0,f=!u&&l.xml?be(l.xml):void 0;r.push({cacheId:i,part:l,...d?{partFormats:d}:{},...f?{source:f}:{},...u})}r.length>0&&(n.pivotCaches=r)}processBookViews(e,t,n){if(!t)return;let r=t.childNodes,i=0,a=r.length;for(let t=0;i<1&&t<a;t++){let a=r.item(t);a.nodeType===1&&a.localName===`workbookView`&&(this.processWorkbookView(e,a,n),i++)}}processWorkbookView(e,t,n){if(!t)return;let r={},i=[`xWindow`,`yWindow`,`windowWidth`,`windowHeight`].map(e=>parseInt(t.getAttribute(e)??``,10));if(i.some(e=>Number.isFinite(e))){let[e,t,n,a]=i.map(e=>Number.isFinite(e)?e:0);r.windowBounds={left:e,top:t,width:n,height:a}}e.copyFromAttribute(t,`activeTab`,r,`activeSheetId`,[e.INT_COPY,e=>e]),t.hasAttribute(`activeTab`)||(r.activeSheetId=0),e.copyFromAttribute(t,`showHorizontalScroll`,r,`showHorizontalScrollbar`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`showVerticalScroll`,r,`showVerticalScrollbar`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`showSheetTabs`,r,`showTabs`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`tabRatio`,r,`tabRatio`,[e.FLOAT_COPY,e=>e]),e.copyFromAttribute(t,`firstSheet`,r,`firstTab`,[e.INT_COPY,e=>e]),e.copyFromAttribute(t,`minimized`,r,`minimized`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`autoFilterDateGrouping`,r,`autoFilterDateGrouping`,e.BOOLEAN_COPY);let a=t.getAttribute(`visibility`);a!==`hidden`&&a!==`veryHidden`||(r.visibility=a),Object.keys(r).length>0&&(n.view=r)}processDefineName(e,t,n,r){if(!t)return;let i={},a=t.firstChild;if(a&&a.nodeType===3&&(i.ref=a.textContent),e.copyFromAttribute(t,`name`,i),e.copyFromAttribute(t,`comment`,i),e.copyFromAttribute(t,`hidden`,i,`hidden`,e.BOOLEAN_COPY),t.hasAttribute(`localSheetId`)){let n=t.getAttribute(`localSheetId`);if(!r[n]?.name)return void e.warn(`Defined name '${t.getAttribute(`name`)}' references a sheet with localSheetId '${n}' which does not exist.`);i.scope=r[n].name}let o={};for(let n of ve)e.copyFromAttribute(t,n,o);for(let e of ye){let n=t.getAttribute(e);n!==`1`&&n!==`true`||(o[e]=!0)}e.copyFromAttribute(t,`functionGroupId`,o,`functionGroupId`,e.INT_COPY),Object.keys(o).length>0&&(i.fileAttributes=o),Object.keys(i).length>0&&n.push(i)}processDefinedNames(e,t,n){if(!t)return;let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let a=i.item(t);a.nodeType===1&&a.localName===`definedName`&&this.processDefineName(e,a,r,n.sheets)}r.length>0&&(n.names=r)}processWorkbookPr(e,t,n){if(!t)return;e.copyFromAttribute(t,`date1904`,n,`date1904`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`codeName`,n,`codeName`),e.copyFromAttribute(t,`updateLinks`,n,`updateLinks`);let r=t.getAttribute(`hidePivotFieldList`);r!==`1`&&r!==`true`||(n.hiddenPivotFieldList=!0)}afterVisit(e,t,n){}},TableVisitor:class{visit(e,t,n){let r={};return e.copyFromAttribute(t,`ref`,n,`r`),e.getVisitorParamsState().set(`ref`,n.r),n.v=r,e.copyFromAttribute(t,`name`,r),e.copyFromAttribute(t,`displayName`,r,`name`),e.copyFromAttribute(t,`headerRowCount`,r,`headerRowCount`,e.INT_COPY),e.copyFromAttribute(t,`totalsRowCount`,r,`totalsRowCount`,e.INT_COPY),this.processTableColumns(e,t,r),this.processTableStyleInfo(e,t,r),e.copyFromAttribute(t,`id`,r),e.copyFromAttribute(t,`comment`,r,`description`),e.copyFromAttribute(t,`connectionId`,r,`connectionId`,e.INT_COPY),e.copyFromAttribute(t,`tableType`,r),e.copyFromAttribute(t,`published`,r,`published`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`insertRow`,r,`insertRow`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`insertRowShift`,r,`insertRowShift`,e.BOOLEAN_COPY),r.totalsRowShown=t.getAttribute(`totalsRowShown`)!==`0`,r}afterVisit(e,t,n){let r=n.v;if(e.evaluate(`autoFilter`,t)){if(Array.isArray(r.hiddenButtons)){let e=r.hiddenButtons.length;e===0?r.hiddenButtons=!1:e===r.columns?.length&&(r.hiddenButtons=!0)}}else r.hiddenButtons=!0,r.showButtons=!1;return r}processTableStyleInfo(e,t,n){if(!t)return;let r=t.childNodes,i={},a=r.length;for(let t=0;t<a;t++){let n=r.item(t);n.nodeType===1&&n.localName===`tableStyleInfo`&&(e.copyFromAttribute(n,`name`,i),e.copyFromAttribute(n,`showColumnStripes`,i,`showColumnStripes`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showFirstColumn`,i,`showFirstColumn`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showLastColumn`,i,`showLastColumn`,e.BOOLEAN_COPY),e.copyFromAttribute(n,`showRowStripes`,i,`showRowStripes`,e.BOOLEAN_COPY))}Object.keys(i).length>0&&(n.style=i)}processTableColumn(e,t,n){if(!t)return null;let r=t.childNodes,i=r.length;for(let t=0;t<i;t++){let i=r.item(t);if(i.nodeType===1&&i.localName===`tableColumn`){let t={};e.copyFromAttribute(i,`name`,t),e.copyFromAttribute(i,`id`,t),e.copyFromAttribute(i,`uniqueName`,t),e.copyFromAttribute(i,`queryTableFieldId`,t),e.copyFromAttribute(i,`totalsRowLabel`,t);let r=i.getAttribute(`totalsRowFunction`);if(r!==null){if(r===`custom`){let n=e.evaluate(`totalsRowFormula`,i);n&&(t.totalsRowFormula=n.textContent)}else t.totalsRowFormula=r}e.copyFromAttribute(i,`totalsRowLabel`,t);let a=e.evaluate(`calculatedColumnFormula`,i);a?.textContent&&(t.calculatedColumnFormula=a.textContent),n.push(t)}}return n}processTableColumns(e,t,n){let r=t.childNodes,i=[],a=r.length;for(let t=0;t<a;t++){let n=r.item(t);n.nodeType===1&&n.localName===`tableColumns`&&this.processTableColumn(e,n,i)}i.length>0&&(n.columns=i)}},TableX14Visitor:class{visit(e,t,n){let r=e.getVisitorParamsState().get(`ref`);if(r){let n=e.getVisitorParamsState().get(`descriptions`);n&&(n.add(r,t.getAttribute(`altText`)),n.add(r,t.getAttribute(`altTextSummary`)))}return e.copyFromAttribute(t,`altText`,n),e.copyFromAttribute(t,`altTextSummary`,n),n}},ExternalLinkVisitor:class{visit(e,t,n){let r=t.childNodes,i=r.length,a=null;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1){t.localName===`externalBook`&&(a=t);break}}if(!a)return n;t.getAttribute(`mc:Ignorable`)&&(n.mceIgnorable=!0);let o=a.getAttribute(`r:id`);o&&(n.__bookRelId=o);let s=this._findAbsoluteUrlRelId(a);return s&&(n.__absoluteUrlRelId=s),n.sheetNames=[],this.processSheetNames(e,a,n),this.processDefinedNames(e,a,n),this.processSheetDataSet(e,a,n),n}processSheetNames(e,t,n){let r=this._findChild(t,`sheetNames`);if(!r)return;let i=r.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);t.nodeType===1&&t.localName===`sheetName`&&n.sheetNames.push(t.getAttribute(`val`)??``)}}processDefinedNames(e,t,n){let r=this._findChild(t,`definedNames`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let e=0;e<o;e++){let t=a.item(e);if(t.nodeType!==1||t.localName!==`definedName`)continue;let n=t.getAttribute(`name`);if(!n)continue;let r={name:n,refersTo:t.getAttribute(`refersTo`)??``},o=t.getAttribute(`sheetId`);o!==null&&(r.sheetIndex=parseInt(o,10)),i.push(r)}i.length>0&&(n.definedNames=i)}processSheetDataSet(e,t,n){let r=this._findChild(t,`sheetDataSet`);if(!r)return;let i=[],a=r.childNodes,o=a.length;for(let t=0;t<o;t++){let n=a.item(t);if(n.nodeType!==1||n.localName!==`sheetData`)continue;let r=n.getAttribute(`sheetId`);if(r===null)continue;let o=this.processSheetData(e,n);o.sheetIndex=parseInt(r,10),n.getAttribute(`refreshError`)===`1`&&(o.refreshError=!0),i.push(o)}i.length>0&&(n.sheetDataSet=i)}processSheetData(e,t){let n=new m.Builder,r=t.childNodes,i=r.length;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType!==1||t.localName!==`row`)continue;let i=t.childNodes,a=i.length;for(let e=0;e<a;e++){let t=i.item(e);if(t.nodeType!==1||t.localName!==`cell`)continue;let r=t.getAttribute(`r`);if(!r)continue;let a=u.fastStringToCell(r);if(a?.rowIndex===void 0||a?.colIndex===void 0)continue;let o=this._readCellValue(t);o!==void 0&&n.pushAt(a.rowIndex,a.colIndex,o)}}return{sheetIndex:-1,data:n.build()?.tuples??[]}}_readCellValue(e){let t=this._findChild(e,`v`)?.textContent?.trim();if(t!==void 0&&t!==``)switch(e.getAttribute(`t`)){case null:case`n`:return parseFloat(t);case`b`:return t===`1`||t===`true`;case`str`:default:return t;case`e`:{let e=l.getBuiltInByLabel(t);return e?{t:`e`,v:e.getCode()}:t}}}_findChild(e,t){let n=e.childNodes,r=n.length;for(let e=0;e<r;e++){let r=n.item(e);if(r.nodeType===1&&r.localName===t)return r}return null}_findAbsoluteUrlRelId(e){let t=this._findChild(e,`alternateUrls`);return t?this._findChild(t,`absoluteUrl`)?.getAttribute(`r:id`)??null:null}},SlicerCacheDefinitionVisitor:class{visit(e,t,n){e.copyFromAttribute(t,`name`,n,`cacheName`),e.copyFromAttribute(t,`sourceName`,n);let r=e.evaluate(`*/tableSlicerCache`,t);return r?(e.copyFromAttribute(r,`tableId`,n),e.copyFromAttribute(r,`column`,n,`columnId`),e.copyFromAttribute(r,`sortOrder`,n),e.copyFromAttribute(r,`customListSort`,n,`customListSort`,e.BOOLEAN_COPY),e.copyFromAttribute(r,`crossFilter`,n),n):(this.processPivot(e,t,n),n)}processPivot(e,t,n){let r=[],i=``,a=t.childNodes;for(let t=0;t<a.length;t++){let o=a.item(t);if(o.nodeType!==1)continue;if(o.localName===`pivotTables`){let e=o.childNodes;for(let t=0;t<e.length;t++){let n=e.item(t);n.nodeType===1&&n.localName===`pivotTable`&&r.push({tabId:n.getAttribute(`tabId`)??``,name:n.getAttribute(`name`)??``})}continue}let s=o.getAttribute(`pivotCacheId`);if(s&&(n.pivotCacheId=s),o.localName===`state`||o.localName===`timelinePivotFilter`){n.tabular=!0,n.pivotData=(n.pivotData??``)+(e.serializeElement(o)??``);continue}if(o.localName===`data`){let t=null,r=o.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType!==1)continue;let a=i.getAttribute(`pivotCacheId`);a&&(n.pivotCacheId=a),i.localName===`tabular`&&(t=i)}if(t){n.tabular=!0,e.copyFromAttribute(t,`sortOrder`,n),e.copyFromAttribute(t,`customListSort`,n,`customListSort`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`crossFilter`,n),e.copyFromAttribute(t,`showMissing`,n,`showMissing`,e.BOOLEAN_COPY),n.pivotData=e.serializeElement(o)??void 0;continue}}let c=e.serializeElement(o);if(c===null)return;i+=c}n.pivotTables=r,n.pivotBody=i}},SlicersVisitor:class{visit(e,t,n){let r=n.slicers;r||(r={},n.slicers=r);let i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);n.nodeType===1&&n.localName===`slicer`&&this.processSlicer(e,n,r)}return r}processSlicer(e,t,n){if(!t)return;let r={};n[t.getAttribute(`name`)]=r,e.copyFromAttribute(t,`xr10:uid`,r,`uid`);let i=t.getAttribute(`cache`),a=e.getVisitorParamsState().get(`slicerCaches`),o=i?a?.get(i):void 0;if(o)for(let e=0;e<J.length;e++){let t=J[e];o[t]!==void 0&&(r[t]=o[t])}e.copyFromAttribute(t,`caption`,r),e.copyFromAttribute(t,`startItem`,r,`startItem`,e.INT_COPY),e.copyFromAttribute(t,`columnCount`,r,`columnCount`,e.INT_COPY),e.copyFromAttribute(t,`showCaption`,r,`showCaption`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`level`,r,`level`,e.INT_COPY),e.copyFromAttribute(t,`style`,r),e.copyFromAttribute(t,`lockedPosition`,r,`lockedPosition`,e.BOOLEAN_COPY),e.copyFromAttribute(t,`rowHeight`,r,`rowHeight`,e.INT_COPY)}},TimelinesVisitor:class{visit(e,t,n){let r=n.slicers;r||(r={},n.slicers=r);let i=t.childNodes;for(let t=0;t<i.length;t++){let n=i.item(t);n.nodeType===1&&n.localName===`timeline`&&this.processTimeline(e,n,r)}return r}processTimeline(e,t,n){let r={};n[t.getAttribute(`name`)]=r,e.copyFromAttribute(t,`xr10:uid`,r,`uid`);let i=t.getAttribute(`cache`),a=e.getVisitorParamsState().get(`slicerCaches`),o=i?a?.get(i):void 0;if(o)for(let e=0;e<J.length;e++){let t=J[e];o[t]!==void 0&&(r[t]=o[t])}e.copyFromAttribute(t,`caption`,r);let s={};for(let e=0;e<t.attributes.length;e++){let n=t.attributes.item(e);je.has(n.name)||n.name.startsWith(`xmlns`)||(s[n.name]=n.value)}r.timelineAttributes=s;let c=``,l=t.childNodes;for(let t=0;t<l.length;t++){let n=l.item(t);n.nodeType===1&&(c+=e.serializeElement(n)??``)}r.timelineBody=c}},FormControlPrVisitor:class{visit(e,t,n){let r={},i=t.attributes;for(let e=0;e<i.length;e++){let t=i.item(e),n=t.name;n===`xmlns`||n.startsWith(`xmlns:`)||(r[n]=t.value)}let a=[],o,s=t.childNodes;for(let t=0;t<s.length;t++){let n=s.item(t);if(n.nodeType===1){if(n.localName===`itemLst`){let e=n.childNodes;for(let t=0;t<e.length;t++){let n=e.item(t);n.nodeType===1&&n.localName===`item`&&a.push(n.getAttribute(`val`)??``)}}else n.localName===`extLst`&&(o=e.serializeElement(n)??void 0)}}let c=le(r,a,o);return n.formControl=c,c}},DrawingVisitor:class{visit(e,t,n){return n}afterVisit(e,t,n){for(let e of n?.movables??[])Y(e,!1)}},DrawingAnchorVisitor:class{visit(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`editAs`,r,`anchorType`),r.anchor={},t.localName===`absoluteAnchor`?(r.anchorType=`absolute`,this.processAbsoluteCoord(e,e.evaluate(`pos`,t),r.anchor,`from`,`x`,`y`),this.processAbsoluteCoord(e,e.evaluate(`ext`,t),r.anchor,`to`,`cx`,`cy`)):t.localName===`oneCellAnchor`?(this.processOffsetCoord(e,e.evaluate(`from`,t),r.anchor,`from`),this.processAbsoluteCoord(e,e.evaluate(`ext`,t),r.anchor,`to`,`cx`,`cy`)):(this.processOffsetCoord(e,e.evaluate(`from`,t),r.anchor,`from`),this.processOffsetCoord(e,e.evaluate(`to`,t),r.anchor,`to`));let i=e.evaluate(`clientData`,t),a=e=>{let t=i?.getAttribute(e);return t===`0`||t===`false`};return a(`fPrintsWithSheet`)&&(r.noPrint=!0),a(`fLocksWithSheet`)&&(r.unlocked=!0),n.movables||=[],n.movables.push(r),r}processAbsoluteCoord(e,t,n,r,i,a){if(!t)return;let o={x:0,y:0};return o.x=y(t.getAttribute(i)),o.y=y(t.getAttribute(a)),r===`from`?n.tl=o:n.br=o,n}processOffsetCoord(e,t,n,r){if(!t)return;let i={c:0,r:0,x:0,y:0};return e.evaluate(`col`,t)&&(i.c=parseInt(e.evaluate(`col`,t).textContent)),e.evaluate(`row`,t)&&(i.r=parseInt(e.evaluate(`row`,t).textContent)),e.evaluate(`colOff`,t)&&(i.x=y(e.evaluate(`colOff`,t).textContent)),e.evaluate(`rowOff`,t)&&(i.y=y(e.evaluate(`rowOff`,t).textContent)),r===`from`?n.tl=i:n.br=i,n}},DrawingGraphicFrameVisitor:class extends H{visit(e,t,n){if(!t)return;if(this.isGroupContent(n)){if(e.getPath().includes(`Fallback`))return{};let{movable:r}=this.readMemberHeader(e,t,`graphicFrame`),i=e.evaluate(`xfrm`,t);if(i){E(i,r);let t=e.evaluate(`off`,i),n=e.evaluate(`ext`,i);r.anchor={tl:{x:y(t?.getAttribute(`x`)??null)??0,y:y(t?.getAttribute(`y`)??null)??0},br:{x:y(n?.getAttribute(`cx`)??null)??0,y:y(n?.getAttribute(`cy`)??null)??0}}}let a=this.readGraphic(e,t),o=a.type===`chart`?{...r.content.json,...a.json}:a.json;return r.content={...r.content,type:a.type,json:o},n.members.push(r),a.json}n=super.visit(e,t,n);let r=e.evaluate(`nvGraphicFramePr/cNvGraphicFramePr`,t);if(r){let t=e.evaluate(`graphicFrameLocks`,r);t&&t.hasAttribute(`noChangeAspect`)&&(n.lockAspect=t.getAttribute(`noChangeAspect`)===`1`)}let i=this.readGraphic(e,t);return this.setContent(n,i),i}readGraphic(e,t){let n=e.evaluate(`graphic/graphicData`,t),r={type:`graphicFrame`,json:{}};if(!n)return r;let i=n.childNodes,a=i.length;for(let n=0;n<a;n++){let a=i.item(n);if(a.nodeType===1)try{let n=a.localName;n===`chart`?n=`chart`:n!==`slicer`&&n!==`timeslicer`||(n=`slicer`),r.type=n;let i=a.getAttribute(`r:id`);if(n===`chart`&&i){let n=this.readSourceId(e,t),a=e.readEmbeddedPart(i)??void 0,o;try{let t=a?.xml?xe(a.xml):null;o=t?.model,t?.lossy&&e.warn(`A chart states something its model does not; it is saved as it was until it is changed.`,{onceKey:`xlsx.chart.lossy`})}catch(t){e.warn(`A chart could not be read into the chart model; it is kept as its markup: ${t?.message??t}`,{onceKey:`xlsx.chart.model`})}r.json={sourceId:n,part:a,model:o}}else if(n===`slicer`){let n=this.readSourceId(e,t);n!==void 0&&(r.json={sourceId:n})}else i&&(r.json=e.getRef(i))}catch(t){e.warn(`Unable to read a graphic frame: ${t?.message??t}`,{onceKey:`xlsx.drawing.graphicFrame`})}}return r}},DrawingSpVisitor:X,DrawingPicVisitor:class extends H{visit(e,t,n){if(!t)return;if(this.isGroupContent(n)){if(e.getPath().includes(`Fallback`))return{};let{movable:r,content:i}=this.readMemberHeader(e,t,`picture`),a=this.readImage(e,t);return a?(this.readPictureDetails(e,t,a,r,i),n.members.push(r),i):{}}let r=super.visit(e,t,n),i=this.readImage(e,t);if(i===null)return;let a={},o=this.readSourceId(e,t);return o!==void 0&&(a.sourceId=o),this.readPictureDetails(e,t,i,r,a),this.setContent(r,{type:`picture`,json:a}),a}readPictureDetails(e,t,n,r,i){n?.resId!==void 0&&(i.resId=n.resId),n?.image&&(i.image=n.image);let a=t.getAttribute(`macro`);a&&(i.macro=a),t.hasAttribute(`fPublished`)&&(i.published=j(t.getAttribute(`fPublished`)));let o=e.evaluate(`nvPicPr/cNvPicPr`,t);if(o?.getAttribute){o.getAttribute(`preferRelativeResize`)===`0`&&(i.noRelativeResize=!0);let t=this.readLocks(e.evaluate(`picLocks`,o));t&&(i.locks=t),r.lockAspect=t?.noChangeAspect??!1}}readImage(e,t){let n=e.evaluate(`blipFill`,t),r=n?e.evaluate(`blip`,n):null;if(!r)return;if(!(r.getAttribute(`r:embed`)??r.getAttribute(`embed`)??r.getAttribute(`r:link`)??r.getAttribute(`link`)))return e.warn(`A picture names no image; it was not imported.`,{onceKey:`xlsx.drawing.picture.noRel`}),null;let{type:i,resId:a,...o}=new w().processImageFill(e,n);return!o.tile&&o.stretch&&Object.keys(o.stretch).length===0&&delete o.stretch,o.extLst&&Me.test(o.extLst)&&delete o.extLst,{resId:a,image:Object.keys(o).length>0?o:void 0}}},DrawingGrpSpVisitor:class extends H{constructor(...e){super(...e),this._fills=new w}visit(e,t,n){if(!t)return;let r=this.isGroupContent(n),i,a;if(r){if(e.getPath().includes(`Fallback`))return{};let r=this.readMemberHeader(e,t,`group`);i=r.movable,a=r.content,n.members.push(i)}else{if(e.getPath().includes(`Fallback`)&&n.content)return{};i=super.visit(e,t,n),a={};let r=this.readSourceId(e,t);r!==void 0&&(a.sourceId=r),this.setContent(i,{type:`group`,json:a})}a.members=[];let o=e.evaluate(`nvGrpSpPr/cNvGrpSpPr/grpSpLocks`,t);o?.hasAttribute?.(`noChangeAspect`)&&(i.lockAspect=o.getAttribute(`noChangeAspect`)===`1`);let s=this.readLocks(o);s&&(a.locks=s);let c=e.evaluate(`grpSpPr`,t);if(c){let t=e.evaluate(`xfrm`,c);if(t){E(t,i),t.getAttribute(`flipH`)===`1`&&(i.flipH=!0),t.getAttribute(`flipV`)===`1`&&(i.flipV=!0);let n=Z(e,t,`off`,`ext`),o=Z(e,t,`chOff`,`chExt`)??n;o&&(a.childBounds=o),r&&n&&(i.anchor={tl:{x:n.x,y:n.y},br:{x:n.width,y:n.height}})}let n=this._fills.getFill(e,c);n&&Object.keys(n).length>0&&(a.fill=n);let o=this._fills.getEffects(e,c);o&&(a.effects=o);let s=e.evaluate(`scene3d`,c),l=s?e.serializeElement(s):null;l&&(a.scene3d=l);let u=e.evaluate(`extLst`,c),d=u?e.serializeElement(u):null;d&&(a.extLst={...a.extLst,properties:d})}return a}},DrawingCxnSpVisitor:class extends X{visit(e,t,n){if(t)return this.visitShape(e,t,n,`cxnSp`,`nvCxnSpPr/cNvCxnSpPr/cxnSpLocks`)}},MetadataVisitor:class{visit(e,t,n){let r=[],i=new Map,a={cells:[],values:[]},o=t.childNodes;for(let e=0;e<o.length;e++){let t=o.item(e);if(t.nodeType===1)switch(t.localName){case`metadataTypes`:this._parseMetadataTypes(t,r,i);break;case`futureMetadata`:this._attachFutureMetadata(t,i);break;case`cellMetadata`:this._resolveBlocks(t,r,a.cells);break;case`valueMetadata`:this._resolveBlocks(t,r,a.values)}}return n.metadata=a,a}_parseMetadataTypes(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1&&i.localName===`metadataType`){let e=this._parseMetadataType(i);t.push(e),n.set(e.name,e)}}}_parseMetadataType(e){let t={name:e.getAttribute(`name`)??``,_blocks:[]},n=e.getAttribute(`minSupportedVersion`);n!=null&&(t.minSupportedVersion=Number(n));for(let n of[`copy`,`pasteAll`,`pasteValues`,`merge`,`splitFirst`,`splitAll`,`rowColShift`,`clearFormats`,`clearComments`,`assign`,`coerce`,`cellMeta`,`adjust`,`trans`,`delete`,`edit`])e.getAttribute(n)===`1`&&(t[n]=!0);return t}_attachFutureMetadata(e,t){let n=e.getAttribute(`name`)??``,r=t.get(n);if(!r)return;let i=e.childNodes;for(let e=0;e<i.length;e++){let t=i.item(e);t.nodeType===1&&t.localName===`bk`&&r._blocks.push(this._parseFutureBlock(t))}}_parseFutureBlock(e){let t={},n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType!==1||r.localName!==`extLst`)continue;let i=r.childNodes;for(let e=0;e<i.length;e++){let n=i.item(e);if(n.nodeType!==1||n.localName!==`ext`)continue;let r=n.childNodes;for(let e=0;e<r.length;e++){let n=r.item(e);n.nodeType===1&&(n.localName===`dynamicArrayProperties`?(t.fDynamic=n.getAttribute(`fDynamic`)===`1`,t.fCollapsed=n.getAttribute(`fCollapsed`)===`1`):n.localName===`rvb`&&(t.richValueIndex=Number(n.getAttribute(`i`)??`0`)))}}}return t}_resolveBlocks(e,t,n){let r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);i.nodeType===1&&i.localName===`bk`&&n.push(this._resolveBlock(i,t))}}_resolveBlock(e,t){let n=new Map,r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType!==1||i.localName!==`rc`)continue;let a=Number(i.getAttribute(`t`)),o=Number(i.getAttribute(`v`)),s=t[a-1];if(!s)continue;let{_blocks:c,...l}=s,u={...l};for(let e of Object.keys(u))u[e]===void 0&&delete u[e];let d=c[o];d&&(d.fDynamic!==void 0&&(u.fDynamic=d.fDynamic,u.fCollapsed=d.fCollapsed??!1),d.richValueIndex!==void 0&&(u.richValueIndex=d.richValueIndex)),n.set(s.name,u)}return n}},FeaturePropertyBagVisitor:class{visit(e,t,n){let r=[],i=t.childNodes;for(let e=0;e<i.length;e++){let t=i.item(e);t.nodeType===1&&t.localName===`bag`&&r.push(this._readBag(t))}let a=[],o=r.find(e=>e.type===`XFComplements`)?.arrays.get(`MappedFeaturePropertyBags`)??[];for(let t=0;t<o.length;t++){let n=r[o[t]]?.ids.get(`XFControls`),i=n===void 0?void 0:r[n]?.ids.get(`CellControl`),s=i===void 0?void 0:r[i]?.type,c=s?Ne[s]:void 0;c||e.warn(`A cell format's feature '${s??`unknown`}' is not read; its cells keep their values.`),a.push(c?{type:c}:null)}let s={controls:a};return n.featurePropertyBag=s,s}_readBag(e){let t={type:e.getAttribute(`type`)??``,ids:new Map,arrays:new Map},n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType!==1)continue;let i=r.getAttribute(`k`)??``;if(r.localName===`bagId`){let e=parseInt(r.textContent??``,10);isNaN(e)||t.ids.set(i,e)}else if(r.localName===`a`){let e=[],n=r.childNodes;for(let t=0;t<n.length;t++){let r=n.item(t);if(r.nodeType!==1||r.localName!==`bagId`)continue;let i=parseInt(r.textContent??``,10);isNaN(i)||e.push(i)}t.arrays.set(i,e)}}return t}},CommentsVisitor:class{visit(e,t,n){if(!t)return;let r=[];this.processAuthors(e,e.evaluate(`authors`,t),r),r.length>0&&(n.authors=r);let i=[];return n.comments=i,i}processAuthors(e,t,n){if(!t)return;let r=t.childNodes,i=r.length;for(let e=0;e<i;e++){let t=r.item(e);if(t.nodeType===1&&t.localName===`author`){let e=t.firstChild;e&&e.nodeType===3&&n.push(e.textContent)}}}},CommentVisitor:class{visit(e,t,n){if(!t)return;let r=t.getAttribute(`ref`);if(!r)return;let i={content:``};if(t.hasAttribute(`authorId`)){let e=parseInt(t.getAttribute(`authorId`),10);isNaN(e)||(i.authorId=e)}return i.content=function(e){if(!e)return``;let t=[],n=!0,r=e.childNodes;for(let e=0;e<r.length;e++){let i=r.item(e);if(i.nodeType===1){if(i.localName===`t`)t.push({text:i.textContent??``});else if(i.localName===`r`){let e={text:``},r=i.childNodes;for(let t=0;t<r.length;t++){let n=r.item(t);if(n.nodeType===1){if(n.localName===`t`)e.text+=n.textContent??``;else if(n.localName===`rPr`){let t=Fe(n);t&&(e.font=t)}}}e.font&&(n=!1),t.push(e)}}}return t.length===0?e.textContent??``:n?t.map(e=>e.text).join(``):{runs:t}}(e.evaluate(`text`,t)),n.push({r,v:i}),i}},ThreadedCommentsVisitor:class{visit(e,t,n){if(!t)return;let r=[];return n.comments=r,r}},ThreadedCommentVisitor:class{visit(e,t,n){if(!t)return;let r={};e.copyFromAttribute(t,`id`,r,`id`,L);let i=t.getAttribute(`ref`);e.copyFromAttribute(t,`personId`,r,`personId`,L),e.copyFromAttribute(t,`parentId`,r,`parentId`,L);let a=t.getAttribute(`dT`);a&&(r.dt=function(e){let t=/^(.*T\d{2}:\d{2}:\d{2})(?:\.(\d+))?(Z|[+-]\d{2}:?\d{2})?$/i.exec(e.trim());if(!t)return e;let[,n,r,i]=t;return`${n}${r?`.${(r+`00`).substring(0,3)}`:``}${i??`Z`}`}(a)),t.hasAttribute(`done`)&&(r.done=j(t.getAttribute(`done`)));let o=function(e){let t,n=e.childNodes;for(let e=0;e<n.length;e++){let r=n.item(e);if(r.nodeType!==1||r.localName!==`mentions`)continue;let i=r.childNodes;for(let e=0;e<i.length;e++){let n=i.item(e);if(n.nodeType!==1||n.localName!==`mention`)continue;let r=n.getAttribute(`mentionId`),a=n.getAttribute(`mentionpersonId`);if(!r||!a)continue;let o={id:L(r),personId:L(a)},s=parseInt(n.getAttribute(`startIndex`)??``,10);isNaN(s)||(o.startIndex=s);let c=parseInt(n.getAttribute(`length`)??``,10);isNaN(c)||(o.length=c),(t??=[]).push(o)}}return t}(t);return o&&(r.mentions=o),n.push({r:i,v:r}),r}},PersonListVisitor:class{visit(e,t,n){let r=[],i=t.childNodes,a=i.length;for(let t=0;t<a;t++){let n=i.item(t);if(n.nodeType===1&&n.localName===`person`){let t={};e.copyFromAttribute(n,`id`,t,`id`,L),e.copyFromAttribute(n,`displayName`,t),e.copyFromAttribute(n,`userId`,t,`userId`,L),e.copyFromAttribute(n,`providerId`,t),r.push(t)}}return r.length>0&&(n.persons=r),r}}},Ie=class{constructor(e,t){this.path=e,this.visitor=t}},Le=class{constructor(){this.visitorsByXmlTagName=new Map,this.scopedVisitorsByXmlTagName=new Map,this.visitorParamsState=null,this.registerVisitor(`Relationships`,new $.RelsVisitor),this.registerVisitor(`cp:coreProperties`,new $.CorePropertiesVisitor),this.registerVisitor(`Properties`,new $.AppPropertiesVisitor),this.registerVisitor(`spPr`,new $.ShapePropertiesVisitor),this.registerVisitor(`txBody`,new $.ShapeTextVisitor),this.registerVisitor(`txPr`,new $.TextPropertiesVisitor),this.registerVisitor(`a:theme`,new $.ThemeVisitor),this.registerVisitor(`a:theme`,new $.ClrSchemeVisitor,`themeElements/clrScheme`),this.registerVisitor(`a:theme`,new $.FontSchemeVisitor,`themeElements/fontScheme`),this.registerVisitor(`a:theme`,new $.FmtSchemeVisitor,`themeElements/fmtScheme`),this.registerVisitor(`a:theme`,new $.ObjectDefaultsVisitor,`objectDefaults`),this.registerVisitor(`autoFilter`,new $.AutoFilterVisitor),this.registerVisitor(`sortState`,new $.SortStateVisitor),this.registerVisitor(`s:workbook`,new $.WorkbookVisitor),this.registerVisitor(`styleSheet`,new $.SheetStyleVisitor),this.registerVisitor(`x14:table`,new $.TableX14Visitor),this.registerVisitor(`table`,new $.TableVisitor),this.registerVisitor(`externalLink`,new $.ExternalLinkVisitor),this.registerVisitor(`wsDr`,new $.DrawingVisitor),this.registerVisitor(`twoCellAnchor`,new $.DrawingAnchorVisitor),this.registerVisitor(`oneCellAnchor`,new $.DrawingAnchorVisitor),this.registerVisitor(`absoluteAnchor`,new $.DrawingAnchorVisitor),this.registerVisitor(`graphicFrame`,new $.DrawingGraphicFrameVisitor),this.registerVisitor(`sp`,new $.DrawingSpVisitor),this.registerVisitor(`grpSp`,new $.DrawingGrpSpVisitor),this.registerVisitor(`cxnSp`,new $.DrawingCxnSpVisitor),this.registerVisitor(`pic`,new $.DrawingPicVisitor),this.registerVisitor(`metadata`,new $.MetadataVisitor),this.registerVisitor(`FeaturePropertyBags`,new $.FeaturePropertyBagVisitor),this.registerVisitor(`comments`,new $.CommentsVisitor),this.registerVisitor(`comment`,new $.CommentVisitor),this.registerVisitor(`ThreadedComments`,new $.ThreadedCommentsVisitor),this.registerVisitor(`threadedComment`,new $.ThreadedCommentVisitor),this.registerVisitor(`threadedComment`,new $.TextPropertiesVisitor(`content`),`text`),this.registerVisitor(`personList`,new $.PersonListVisitor),this.registerVisitor(`slicerCacheDefinition`,new $.SlicerCacheDefinitionVisitor),this.registerVisitor(`slicers`,new $.SlicersVisitor),this.registerVisitor(`timelineCacheDefinition`,new $.SlicerCacheDefinitionVisitor),this.registerVisitor(`timelines`,new $.TimelinesVisitor),this.registerVisitor(`formControlPr`,new $.FormControlPrVisitor)}registerVisitor(e,t,n=null){e.indexOf(`:`)===-1&&(e=`*:`+e);let r=e.split(`:`),i=r.length>1?r[1]:r[0];if(!n)return this.visitorsByXmlTagName.set(i,t),void this.visitorsByXmlTagName.set(e,t);let a=this.scopedVisitorsByXmlTagName.get(i);a||(a=[],this.scopedVisitorsByXmlTagName.set(i,a),this.scopedVisitorsByXmlTagName.set(e,a)),a.push(new Ie(n,t))}parseDxf(t,n=``,r=e.EmptyObject){this.visitorParamsState||=new Map;let i=this.visitorParamsState,a=i.get(`processingDXFs`);i.set(`processingDXFs`,!0);try{let e=new z(null,this,`/dxf`,t,{},n,r),i={};return new $.SheetStyleVisitor().processDXF(e,t,i),i}finally{a===void 0?i.delete(`processingDXFs`):i.set(`processingDXFs`,a)}}getVisitorParamsState(){return this.visitorParamsState}transform(t,n,r=e.EmptyObject){let i=t.documentElement;this.visitorParamsState&&!r?.paramMap||(this.visitorParamsState=r?.paramMap??new Map);let a={},o=this.visitorsByXmlTagName.get(i.nodeName);if(o||=this.visitorsByXmlTagName.get(i.localName),!o)throw Error(`A visitor for the root element: '${i.nodeName}' or '${i.localName}' must be registered.`);let s=`/`+i.localName,c=new z(null,this,s,i,a,n,r),l=[];this._doWalk(o,c,l,i,a,n,r);let u=l.length;for(let e=0;e<u;e++){let t=l[e];try{t.visitor?.afterVisit?.(t.context,t.elemParent,t.jsonParent)}catch(e){t.context.warn(`Unable to finish reading '${t.context.getPath()}': ${e?.message??e}`,{onceKey:`xlsx.transform.afterVisit`})}}return a}_walkScoped(e,t,n,r,i,a,o){let s=this.scopedVisitorsByXmlTagName.get(e),c=s?s.length:0;for(let l=0;l<c;l++){let c=s[l],u=null;try{u=t.evaluate(c.path,r)}catch{t.warn(`Invalid path '${c.path}' for '${e}'.`,{onceKey:`xlsx.transform.invalidPath`})}if(!u)continue;let d=e=>{let s=e.localName,l=e.parentNode;for(;l&&l!==r;)s=l.localName+`/`+s,l=l.parentNode;let u=t.getPath()+`/`+s;if(c.visitor){let r=new z(t,this,u,t.getElemRoot(),t.getJsonRoot(),a,o);this._doWalk(c.visitor,r,n,e,i,a,o)}};if(u.length>0){let e=u,t=e.length;for(let n=0;n<t;n++)d(e.item(n))}else d(u)}}_doWalk(e,t,n,r,i,a,o){let s=null;e&&(n.push({visitor:e,context:t,elemParent:r,jsonParent:i}),s=e.visit(t,r,i)),s||=i;let c=r.localName;this._walkScoped(c,t,n,r,s,a,o);let l=this.visitorsByXmlTagName,u=t.getElemRoot(),d=t.getJsonRoot(),f=r.childNodes,p=f.length;for(let e=0;e<p;e++){let r=f.item(e);if(r.nodeType!==1)continue;let c=r,p=c.nodeName,m=l.get(p);m||=(p=c.localName,l.get(p));let h=t.getPath()+`/`+p,g=new z(t,this,h,u,d,a,o);this._doWalk(m,g,n,c,s??i,a,o)}return s}};export{Le as DOMTransformer,z as ExecutionContext,he as NumberUtils,ee as VisitorUtils};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./7Xk_eQAcM_HgWrOC.js","./ChSvXfVMLxZsP9zG.js","./HclGiUj8dZXDFmoM.js","./DuYb_otrRZZDq6-f.js","./3Ls_kOvlQseMV8Q0.js","./nHThFXCAZFOM_npq.js","./BMf827t1Ul65MHd5.js","./dXn1GWWjYmuLb1HF.js","./DcrVJCyDwGKeil2U.js","./BQnELVV0uR4T4ItQ.js","./CnXLpFE_vFrJ5Jbf.js","./DtihumgXQ7ETaN0A.js","./COoMVTzF50qBNFEu.js","./dQsis-90Up-pIkSq.js","./B5GO9v4p9L70Xb9i.js","./DSKOOgcJQeqIc9Us.js","./J_xJVgE7YlmeU-ZO.js","./w3bV7wggRayUYTd-.js","./CHlWgOAlcRCjVuhg.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"./HclGiUj8dZXDFmoM.js";import{F as t,G as n,I as r,L as i,_ as a,m as o,u as s}from"./ChSvXfVMLxZsP9zG.js";import{D as c,Yt as l,ht as u,t as d}from"./DuYb_otrRZZDq6-f.js";import{c as f,i as p,r as m}from"./BMf827t1Ul65MHd5.js";import{$ as h,$t as g,Wr as _,ct as ee,fr as v,h as y,ia as b,jn as x,ni as te,ut as ne}from"./dXn1GWWjYmuLb1HF.js";import{f as re,l as S,o as C,u as ie}from"./dQsis-90Up-pIkSq.js";import{r as w,t as ae}from"./B5GO9v4p9L70Xb9i.js";import{$ as T,C as oe,Cn as se,Ct as ce,D as le,F as ue,Ft as de,Hn as E,Ht as fe,I as pe,It as me,Jt as he,K as D,Kt as O,Lt as ge,M as k,Mn as A,Nr as j,O as M,On as N,Or as P,Q as _e,Qn as ve,Qt as ye,T as F,Tn as be,Tr as I,Tt as L,U as xe,Un as R,Ut as Se,V as Ce,Xt as z,Z as we,Zn as Te,_t as Ee,ar as De,br as Oe,ct as ke,d as Ae,dr as je,en as Me,f as Ne,fr as Pe,ft as Fe,gn as Ie,gr as Le,hn as Re,hr as ze,ht as B,i as Be,it as Ve,j as He,jr as V,kt as Ue,ln as H,mr as We,n as Ge,nr as U,nt as Ke,o as qe,or as W,ot as Je,pn as Ye,qn as Xe,sn as Ze,tn as Qe,u as $e,ur as et,ut as tt,vr as nt,vt as rt,w as it,wn as at,xt as ot,yn as st,yt as ct,zn as lt,zt as ut}from"./COoMVTzF50qBNFEu.js";var dt={ascending:`ascending`,descending:`descending`,natural:`dataSource`};function ft(e,t){let n=e.sheets??[],r=new Map;for(let e=0;e<n.length;e++){let t=n[e],i=k(t)?.tables??[];for(let e=0;e<i.length;e++){let t=i[e],n=Array.isArray(t)?t[1]:t?.v;if(!n?.id)continue;let a=(n.columns??[]).map(e=>typeof e==`string`?{name:e}:e);r.set(String(n.id),{name:n.name??``,columns:a})}}let i=new Map;for(let e=0;e<n.length;e++){let t=n[e];t?.sheetId!==void 0&&t.name&&i.set(String(t.sheetId),t.name)}let a=function(e){let t=new Map,n=e.pivotCaches??[];for(let e=0;e<n.length;e++){let r=n[e].part?.xml,i=r?/<(?:\w+:)?pivotCacheDefinition\b[^>]*?\spivotCacheId="(\d+)"[^>]*\/?>\s*<\/(?:\w+:)?ext>/.exec(r)?.[1]:void 0;i!==void 0&&t.set(i,n[e].cacheId)}return t}(e),o=new Map;for(let e=0;e<n.length;e++){let t=k(n[e])?.pivotTables??[];for(let r=0;r<t.length;r++)o.set(`${n[e].name}\0${t[r].name}`,t[r])}let s=new Set((e.pivotCaches??[]).flatMap(e=>e.fields?[e.cacheId]:[])),c=new Set;for(let e=0;e<n.length;e++){let l=n[e],u=k(l);if(!u)continue;let d=u.slicers,f=u.movables;if(d&&f)for(let e=f.length-1;e>=0;e--){let n=f[e].content;if(n?.type!==`slicer`||n.json?.source)continue;let l=n.name??``,u=d[l];if(!u)continue;if(!u.tableId){if(u.pivotBody===void 0)continue;n.json=ht(u,n.json),n.json.pivot=mt(u,i,a,o,s),c.add(l),u.cachePath&&t.markAbsorbed(u.cachePath);continue}let p=r.get(String(u.tableId)),m=p?pt(p.columns,u.columnId):null;p&&m?(n.json=ht(u,n.json,b.structuredReference(p.name,m.name)),c.add(l),u.cachePath&&t.markAbsorbed(u.cachePath)):(t.warn(`A slicer names no table; it was not imported.`,`xlsx.slicer.cacheDefinition`),f.splice(e,1))}delete u.slicers}t.slicerParts.forEach((e,n)=>{let r=Object.keys(e);r.length>0&&r.every(e=>c.has(e))&&t.markAbsorbed(n)})}function pt(e,t){if(!t)return null;for(let n=0;n<e.length;n++)if(e[n].id!==void 0&&String(e[n].id)===t)return e[n];let n=Number(t);return Number.isInteger(n)&&n>=1&&n<=e.length?e[n-1]:null}function mt(e,t,n,r,i){let a=[],o=e.pivotTables??[];for(let e=0;e<o.length;e++){let n=t.get(o[e].tabId);n&&a.push({sheet:n,name:o[e].name})}let s={sourceName:e.sourceName??``,tables:a,body:e.pivotBody??``},c=e.pivotCacheId===void 0?void 0:n.get(e.pivotCacheId);if(e.tabular){let t=a.length>0?r.get(`${a[0].sheet}\0${a[0].name}`):void 0;c??=t?.cacheId,t?.fields&&c!==void 0&&i.has(c)?s.tabular=!1===e.showMissing?{hideMissing:!0}:{}:s.body=(e.pivotData??``)+s.body}return c!==void 0&&(s.cacheId=c),e.timelineAttributes&&(s.timeline={attributes:e.timelineAttributes,body:e.timelineBody??``}),s}function ht(e,t,n){let r={...t};if(n!==void 0&&(r.source=n),e.caption!==void 0&&e.caption!==e.sourceName&&(r.caption=e.caption),!1===e.showCaption&&(r.hiddenCaption=!0),e.columnCount!==void 0&&e.columnCount>1&&(r.columnCount=e.columnCount),e.rowHeight!==void 0){let t=Math.round(e.rowHeight/9525);t>0&&t!==27&&(r.rowHeight=t)}e.style&&e.style!==`SlicerStyleLight1`&&(r.style=e.style);let i=e.sortOrder?dt[e.sortOrder]:void 0;return i&&i!==`ascending`&&(r.sortOrder=i),e.crossFilter&&e.crossFilter!==`showItemsWithDataAtTop`&&(r.crossFilter=e.crossFilter),e.lockedPosition&&(r.lockedPosition=!0),!1===e.customListSort&&(r.disabledCustomListSort=!0),e.cacheName&&(r.cacheName=e.cacheName),e.startItem&&(r.startItem=e.startItem),e.level!==void 0&&(r.level=e.level),e.uid&&(r.uid=e.uid),r}var gt=`xl/richData/rdrichvaluestructure.xml`,_t=`xl/richData/rdrichvalue.xml`,vt=`xl/richData/rdarray.xml`,yt=`xl/richData/rdsupportingpropertybagstructure.xml`,bt=`xl/richData/rdsupportingpropertybag.xml`,xt=`xl/richData/rdRichValueTypes.xml`,St=`xl/richData/richStyles.xml`,G=(e,t)=>{let n=[],r=e?.childNodes,i=r?.length??0;for(let e=0;e<i;e++){let i=r.item(e);i.nodeType!==1||t&&i.localName!==t||n.push(i)}return n},Ct=e=>G(e,`k`).map(e=>[e.getAttribute(`n`)??``,e.getAttribute(`t`)||null]),wt=e=>G(e,`v`).map(e=>({t:e.getAttribute(`t`)||null,text:e.textContent??``})),Tt=e=>{let t=new Map;for(let n of G(e,`key`)){let e=new Map;for(let t of G(n,`flag`))e.set(t.getAttribute(`name`)??``,t.getAttribute(`value`)??``);t.set(n.getAttribute(`name`)??``,e)}return t},Et=new Uint8Array,K=class e{constructor(e,t,n){this.buffers=new Map,this.zip=e,this.entries=t,this.rawBuffer=n}static normalize(e){return e.startsWith(`/`)?e.slice(1):e}static async create(t){let n=t instanceof Blob?Et:t instanceof Uint8Array?t:new Uint8Array(t),r=t instanceof Blob?new Re(t):new N(n),i=new L(r),a=new Map;for(let e of await i.getEntries())e.directory||a.set(e.filename,e);return new e(i,a,n)}getNames(){return[...this.entries.keys()]}has(t){return this.entries.has(e.normalize(t))}uncompressedSize(t){return this.entries.get(e.normalize(t))?.uncompressedSize??0}async getBuffer(t){let n=e.normalize(t),r=this.buffers.get(n);if(r)return r;let i=this.entries.get(n);if(!i)return null;let a=await i.getData(new Me);return this.buffers.set(n,a),a}async prefetch(e){let t=[];for(let[n,r]of this.entries)!this.buffers.has(n)&&e(n,r)&&t.push(r.getData(new Me).then(e=>{this.buffers.set(n,e)}));await Promise.all(t)}getEntry(t){return this.buffers.get(e.normalize(t))??null}async getTextStream(t,n){let r=this.entries.get(e.normalize(t));if(!r)return null;let i=new TransformStream;r.getData(i.writable).catch(()=>{});let a=i.readable.getReader(),o=new TextDecoder(`utf-8`);return new ReadableStream({async pull(e){let{value:t,done:r}=await a.read();if(r){let t=o.decode();t&&e.enqueue(t),e.close();return}n?.(t.byteLength);let i=o.decode(t,{stream:!0});i&&e.enqueue(i)}}).getReader()}getRawEntry(t){let n=this.entries.get(e.normalize(t));if(!n||n.encrypted||n.crc32===void 0)return null;let r=n.offset;if(r+30>this.rawBuffer.byteLength)return null;let i=new DataView(this.rawBuffer.buffer,this.rawBuffer.byteOffset+r,30);if(i.getUint32(0,!0)!==67324752)return null;let a=r+30+i.getUint16(26,!0)+i.getUint16(28,!0),o=a+n.compressedSize;return o>this.rawBuffer.byteLength?null:{data:this.rawBuffer.subarray(a,o),compressionMethod:n.compressionMethod,signature:n.crc32}}async close(){await this.zip.close()}},Dt=class{constructor(e){this._sink=e,this._samples=[],this._t0=Ot(),this._tPrev=this._t0,this._heapPrev=kt()}mark(e){let t=Ot(),n=kt(),r={label:e,tMs:t-this._t0,dtMs:t-this._tPrev,heapBytes:n,dHeapBytes:n!==void 0&&this._heapPrev!==void 0?n-this._heapPrev:void 0,rssBytes:At()};this._tPrev=t,this._heapPrev=n,this._samples.push(r),this._sink?.(r)}samples(){return this._samples}toTable(){return this._samples.map(e=>({phase:e.label,tMs:Math.round(e.tMs),dtMs:Math.round(e.dtMs),heapMB:e.heapBytes===void 0?`—`:jt(e.heapBytes/1048576),dHeapMB:e.dHeapBytes===void 0?`—`:jt(e.dHeapBytes/1048576),rssMB:e.rssBytes===void 0?`—`:jt(e.rssBytes/1048576)}))}},Ot=typeof performance==`object`&&typeof performance.now==`function`?()=>performance.now():()=>Date.now();function kt(){let e=typeof performance==`object`?performance.memory:void 0;if(e&&typeof e.usedJSHeapSize==`number`)return e.usedJSHeapSize;let t=globalThis.process;return typeof t==`object`&&typeof t.memoryUsage==`function`?t.memoryUsage().heapUsed:void 0}function At(){let e=globalThis.process;if(typeof e==`object`&&typeof e.memoryUsage==`function`)return e.memoryUsage().rss}function jt(e){return Math.round(10*e)/10}var Mt=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,Nt=`-${Mt}.0-9·̀-ͯ‿-⁀`,Pt=(RegExp(`^[${Mt}]$`,`u`),RegExp(`^[${Nt}]$`,`u`),RegExp(`^[${Mt}][${Nt}]*$`,`u`)),Ft=(RegExp(`^[${Nt}]+$`,`u`),[32,10,13,9]);function It(e){return e>=65&&e<=90||e>=97&&e<=122||e===58||e===95||e===8204||e===8205||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}var Lt=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,Rt=`-${Lt}.0-9·̀-ͯ‿-⁀`;RegExp(`^[${Lt}]$`,`u`),RegExp(`^[${Rt}]$`,`u`),RegExp(`^[${Lt}][${Rt}]*$`,`u`),RegExp(`^[${Rt}]+$`,`u`);var zt=`A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-`,Bt=`-${zt}.0-9·̀-ͯ‿-⁀`,Vt=(RegExp(`^[${zt}]$`,`u`),RegExp(`^[${Bt}]$`,`u`),RegExp(`^[${zt}][${Bt}]*$`,`u`));function Ht(e){return e>=65&&e<=90||e===95||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}var Ut=function(e){return e===32||e===10||e===13||e===9},Wt=function(e){return e>=32&&e<=55295||e===10||e===13||e===9||e>=57344&&e<=65533||e>=65536&&e<=1114111},Gt=It,Kt=function(e){return It(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256},qt=Ft,Jt=Pt,Yt=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},Xt=Ht,Zt=function(e){return Ht(e)||e===45||e===46||e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256},Qt=Vt,$t=`http://www.w3.org/XML/1998/namespace`,en=`http://www.w3.org/2000/xmlns/`,tn={__proto__:null,xml:$t,xmlns:en},nn={__proto__:null,amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`},q=-1,rn=-2,J=13,an=33,on=10,sn=60,cn=61,Y=62,X=63,ln=93,un=e=>e===34||e===39,dn=[34,39],fn=[...dn,91,Y],pn=[...dn,sn,ln],mn=[cn,X,...qt],hn=[...qt,Y,38,sn];function gn(e,t,n){switch(t){case`xml`:n!==$t&&e.fail(`xml prefix must be bound to ${$t}.`);break;case`xmlns`:n!==en&&e.fail(`xmlns prefix must be bound to ${en}.`)}switch(n){case en:e.fail(t===``?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI ${en}.`);break;case $t:switch(t){case`xml`:break;case``:e.fail(`the default namespace may not be set to ${n}.`);break;default:e.fail(`may not assign the xml namespace to another prefix.`)}}}var _n,vn=e=>Qt.test(e),yn=e=>Jt.test(e),bn={xmldecl:`xmlDeclHandler`,text:`textHandler`,processinginstruction:`piHandler`,doctype:`doctypeHandler`,comment:`commentHandler`,opentagstart:`openTagStartHandler`,attribute:`attributeHandler`,opentag:`openTagHandler`,closetag:`closeTagHandler`,cdata:`cdataHandler`,error:`errorHandler`,end:`endHandler`,ready:`readyHandler`},xn=class{get closed(){return this._closed}constructor(e){this.i=0,this.prevI=0,this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;let t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=Xt,this.nameCheck=Zt,this.isName=vn,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...tn};let e=this.opt.additionalNamespaces;e!=null&&(function(e,t){for(let n of Object.keys(t))gn(e,n,t[n])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=Gt,this.nameCheck=Kt,this.isName=yn,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}_init(){this.openWakaBang=``,this.text=``,this.name=``,this.piTarget=``,this.entity=``,this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk=``,this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];let{fragmentOpt:e}=this;this.state=e?J:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=e,this.xmlDeclPossible=!e,this.xmlDeclExpects=[`version`],this.entityReturnState=void 0;let{defaultXMLVersion:t}=this.opt;if(t===void 0){if(!0===this.opt.forceXMLVersion)throw Error(`forceXMLVersion set but defaultXMLVersion is not set`);t=`1.0`}this.setXMLVersion(t),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(nn),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[bn[e]]=t}off(e){this[bn[e]]=void 0}makeError(e){let t=this.fileName??``;return this.trackPosition&&(t.length>0&&(t+=`:`),t+=`${this.line}:${this.column}`),t.length>0&&(t+=`: `),Error(t+e)}fail(e){let t=this.makeError(e),n=this.errorHandler;if(n===void 0)throw t;return n(t),this}write(e){if(this.closed)return this.fail(`cannot write after close.`);let t=!1;e===null?(t=!0,e=``):typeof e==`object`&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length,r=e.charCodeAt(n-1);!t&&(r===13||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));let{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}close(){return this.write(null)}getCode10(){let e=this.chunk,t=this.i;if(this.prevI=t,this.i++,t>=e.length)return q;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||n===9)return n;switch(n){case on:return this.line++,this.column=0,this.positionAtNewLine=this.position,on;case 13:return e.charCodeAt(t+1)===on&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,rn;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCode11(){let{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return q;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==8232||n===9)return n;switch(n){case on:return this.line++,this.column=0,this.positionAtNewLine=this.position,on;case 13:{let n=e.charCodeAt(t+1);n!==on&&n!==133||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,rn;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCodeNorm(){let e=this.getCode();return e===rn?on:e}unGet(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode(),i=r===rn,a=i?on:r;if(a===q||e.includes(a))return this.text+=n.slice(t,this.prevI),a;i&&(this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i)}}captureToChar(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode();switch(r){case rn:this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i,r=on;break;case q:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}captureNameChars(){let{chunk:e,i:t}=this;for(;;){let n=this.getCode();if(n===q)return this.name+=e.slice(t),q;if(!Kt(n))return this.name+=e.slice(t,this.prevI),n===rn?on:n}}skipSpaces(){for(;;){let e=this.getCodeNorm();if(e===q||!Ut(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e===`1.0`?(this.isChar=Wt,this.getCode=this.getCode10):(this.isChar=Yt,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){let e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case sn:if(this.state=15,this.text.length!==0)throw Error(`no-empty text at start`);break;case q:break;default:this.unGet(),this.state=J,this.xmlDeclPossible=!1}}sDoctype(){let e=this.captureTo(fn);switch(e){case Y:this.doctypeHandler?.(this.text),this.text=``,this.state=J,this.doctype=!0;break;case q:break;default:this.text+=String.fromCodePoint(e),e===91?this.state=4:un(e)&&(this.state=3,this.q=e)}}sDoctypeQuote(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){let e=this.captureTo(pn);e!==q&&(this.text+=String.fromCodePoint(e),e===ln?this.state=2:e===sn?this.state=6:un(e)&&(this.state=5,this.q=e))}sDTDQuoted(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){let e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang=``;break;case X:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){let e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,t!==`-`&&(this.state=t===`--`?8:4,this.openWakaBang=``)}sDTDComment(){this.captureToChar(45)&&(this.text+=`-`,this.state=9)}sDTDCommentEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===45?10:8}sDTDCommentEnded(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===Y?this.state=4:(this.fail(`malformed comment.`),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+=`?`,this.state=12)}sDTDPIEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===Y&&(this.state=4)}sText(){this.tags.length===0?this.handleTextOutsideRoot():this.handleTextInRoot()}sEntity(){let{i:e}=this,{chunk:t}=this;t:for(;;)switch(this.getCode()){case rn:this.entity+=`${t.slice(e,this.prevI)}\n`,e=this.i;break;case 59:{let{entityReturnState:n}=this,r=this.entity+t.slice(e,this.prevI),i;this.state=n,r===``?(this.fail(`empty entity name.`),i=`&;`):(i=this.parseEntity(r),this.entity=``),n===J&&this.textHandler===void 0||(this.text+=i);break t}case q:this.entity+=t.slice(e);break t}}sOpenWaka(){let e=this.getCode();if(Gt(e))this.state=34,this.unGet(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang=``,this.xmlDeclPossible=!1;break;case X:this.state=23;break;default:this.fail(`disallowed character in tag name`),this.state=J,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case`[CDATA[`:this.sawRoot||this.reportedTextBeforeRoot||(this.fail(`text data outside of root node.`),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail(`text data outside of root node.`),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang=``;break;case`--`:this.state=17,this.openWakaBang=``;break;case`DOCTYPE`:this.state=2,(this.doctype||this.sawRoot)&&this.fail(`inappropriately located doctype declaration.`),this.openWakaBang=``;break;default:this.openWakaBang.length>=7&&this.fail(`incorrect syntax.`)}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){let e=this.getCodeNorm();e===45?(this.state=19,this.commentHandler?.(this.text),this.text=``):(this.text+=`-${String.fromCodePoint(e)}`,this.state=17)}sCommentEnded(){let e=this.getCodeNorm();e===Y?this.state=J:(this.fail(`malformed comment.`),this.text+=`--${String.fromCodePoint(e)}`,this.state=17)}sCData(){this.captureToChar(ln)&&(this.state=21)}sCDataEnding(){let e=this.getCodeNorm();e===ln?this.state=22:(this.text+=`]${String.fromCodePoint(e)}`,this.state=20)}sCDataEnding2(){let e=this.getCodeNorm();switch(e){case Y:this.cdataHandler?.(this.text),this.text=``,this.state=J;break;case ln:this.text+=`]`;break;default:this.text+=`]]${String.fromCodePoint(e)}`,this.state=20}}sPIFirstChar(){let e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):e===X||Ut(e)?(this.fail(`processing instruction without a target.`),this.state=e===X?26:25):(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){let{chunk:e,i:t}=this;for(;;){let n=this.getCodeNorm();if(n===q)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);let r=n===X;r||Ut(n)?this.piTarget===`xml`?(this.xmlDeclPossible||this.fail(`an XML declaration must be at the start of the document.`),this.state=r?an:27):this.state=r?26:25:(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){let e=this.getCodeNorm();e===X?this.state=26:Ut(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){let e=this.getCodeNorm();if(e===Y){let{piTarget:e}=this;e.toLowerCase()===`xml`&&this.fail(`the XML declaration must appear at the start of the document.`),this.piHandler?.({target:e,body:this.text}),this.piTarget=this.text=``,this.state=J}else e===X?this.text+=`?`:(this.text+=`?${String.fromCodePoint(e)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){let e=this.skipSpaces();e===X?this.state=an:e!==q&&(this.state=28,this.name=String.fromCodePoint(e))}sXMLDeclName(){let e=this.captureTo(mn);if(e===X)return this.state=an,this.name+=this.text,this.text=``,void this.fail(`XML declaration is incomplete.`);if(Ut(e)||e===cn){if(this.name+=this.text,this.text=``,!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail(`did not expect any more name/value pairs.`);break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(`, `)}`)}this.state=e===cn?30:29}}sXMLDeclEq(){let e=this.getCodeNorm();if(e===X)return this.state=an,void this.fail(`XML declaration is incomplete.`);Ut(e)||(e!==cn&&this.fail(`value required.`),this.state=30)}sXMLDeclValueStart(){let e=this.getCodeNorm();if(e===X)return this.state=an,void this.fail(`XML declaration is incomplete.`);Ut(e)||(un(e)?this.q=e:(this.fail(`value must be quoted.`),this.q=32),this.state=31)}sXMLDeclValue(){let e=this.captureTo([this.q,X]);if(e===X)return this.state=an,this.text=``,void this.fail(`XML declaration is incomplete.`);if(e===q)return;let t=this.text;switch(this.text=``,this.name){case`version`:{this.xmlDeclExpects=[`encoding`,`standalone`];let e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail(`version number must match /^1\\.[0-9]+$/.`);break}case`encoding`:/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail(`encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.`),this.xmlDeclExpects=[`standalone`],this.xmlDecl.encoding=t;break;case`standalone`:t!==`yes`&&t!==`no`&&this.fail(`standalone value must match "yes" or "no".`),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name=``,this.state=32}sXMLDeclSeparator(){let e=this.getCodeNorm();e===X?this.state=an:(Ut(e)||(this.fail(`whitespace required.`),this.unGet()),this.state=27)}sXMLDeclEnding(){this.getCodeNorm()===Y?(this.piTarget===`xml`?this.name!==`version`&&this.xmlDeclExpects.includes(`version`)&&this.fail(`XML declaration must contain a version.`):this.fail(`processing instructions are not allowed before root.`),this.xmlDeclHandler?.(this.xmlDecl),this.name=``,this.piTarget=this.text=``,this.state=J):this.fail(`The character ? is disallowed anywhere in XML declarations.`),this.xmlDeclPossible=!1}sOpenTag(){let e=this.captureNameChars();if(e===q)return;let t=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name=``,this.xmlnsOpt&&(this.topNS=t.ns=Object.create(null)),this.openTagStartHandler?.(t),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail(`documents may contain only one root.`),e){case Y:this.openTag();break;case 47:this.state=35;break;default:Ut(e)||this.fail(`disallowed character in tag name.`),this.state=36}}sOpenTagSlash(){this.getCode()===Y?this.openSelfClosingTag():(this.fail(`forward-slash in opening tag not followed by >.`),this.state=36)}sAttrib(){let e=this.skipSpaces();e!==q&&(Gt(e)?(this.unGet(),this.state=37):e===Y?this.openTag():e===47?this.state=35:this.fail(`disallowed character in attribute name.`))}sAttribName(){let e=this.captureNameChars();e===cn?this.state=39:Ut(e)?this.state=38:e===Y?(this.fail(`attribute without value.`),this.pushAttrib(this.name,this.name),this.name=this.text=``,this.openTag()):e!==q&&this.fail(`disallowed character in attribute name.`)}sAttribNameSawWhite(){let e=this.skipSpaces();switch(e){case q:return;case cn:this.state=39;break;default:this.fail(`attribute without value.`),this.text=``,this.name=``,e===Y?this.openTag():Gt(e)?(this.unGet(),this.state=37):(this.fail(`disallowed character in attribute name.`),this.state=36)}}sAttribValue(){let e=this.getCodeNorm();un(e)?(this.q=e,this.state=40):Ut(e)||(this.fail(`unquoted attribute value.`),this.state=42,this.unGet())}sAttribValueQuoted(){let{q:e,chunk:t}=this,{i:n}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text=``,this.q=null,this.state=41;return;case 38:this.text+=t.slice(n,this.prevI),this.state=14,this.entityReturnState=40;return;case on:case rn:case 9:this.text+=`${t.slice(n,this.prevI)} `,n=this.i;break;case sn:this.text+=t.slice(n,this.prevI),this.fail(`disallowed character.`);return;case q:this.text+=t.slice(n);return}}sAttribValueClosed(){let e=this.getCodeNorm();Ut(e)?this.state=36:e===Y?this.openTag():e===47?this.state=35:Gt(e)?(this.fail(`no whitespace between attributes.`),this.unGet(),this.state=37):this.fail(`disallowed character in attribute name.`)}sAttribValueUnquoted(){let e=this.captureTo(hn);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case sn:this.fail(`disallowed character.`);break;case q:break;default:this.text.includes(`]]>`)&&this.fail(`the string "]]>" is disallowed in char data.`),this.pushAttrib(this.name,this.text),this.name=this.text=``,e===Y?this.openTag():this.state=36}}sCloseTag(){let e=this.captureNameChars();e===Y?this.closeTag():Ut(e)?this.state=44:e!==q&&this.fail(`disallowed character in closing tag.`)}sCloseTagSawWhite(){switch(this.skipSpaces()){case Y:this.closeTag();break;case q:break;default:this.fail(`disallowed character in closing tag.`)}}handleTextInRoot(){let{i:e,forbiddenState:t}=this,{chunk:n,textHandler:r}=this;t:for(;;)switch(this.getCode()){case sn:if(this.state=15,r!==void 0){let{text:t}=this,i=n.slice(e,this.prevI);t.length===0?i.length!==0&&r(i):(r(t+i),this.text=``)}t=0;break t;case 38:this.state=14,this.entityReturnState=J,r!==void 0&&(this.text+=n.slice(e,this.prevI)),t=0;break t;case ln:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw Error(`impossible state`)}break;case Y:t===2&&this.fail(`the string "]]>" is disallowed in char data.`),t=0;break;case rn:r!==void 0&&(this.text+=`${n.slice(e,this.prevI)}\n`),e=this.i,t=0;break;case q:r!==void 0&&(this.text+=n.slice(e));break t;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this,{chunk:t,textHandler:n}=this,r=!1;t:for(;;){let i=this.getCode();switch(i){case sn:if(this.state=15,n!==void 0){let{text:r}=this,i=t.slice(e,this.prevI);r.length===0?i.length!==0&&n(i):(n(r+i),this.text=``)}break t;case 38:this.state=14,this.entityReturnState=J,n!==void 0&&(this.text+=t.slice(e,this.prevI)),r=!0;break t;case rn:n!==void 0&&(this.text+=`${t.slice(e,this.prevI)}\n`),e=this.i;break;case q:n!==void 0&&(this.text+=t.slice(e));break t;default:Ut(i)||(r=!0)}}r&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail(`text data outside of root node.`),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail(`text data outside of root node.`),this.reportedTextAfterRoot=!0))}pushAttribNS(e,t){let{prefix:n,local:r}=this.qName(e),i={name:e,prefix:n,local:r,value:t};if(this.attribList.push(i),this.attributeHandler?.(i),n===`xmlns`){let e=t.trim();this.currentXMLVersion===`1.0`&&e===``&&this.fail(`invalid attempt to undefine prefix in XML 1.0`),this.topNS[r]=e,gn(this,r,e)}else if(e===`xmlns`){let e=t.trim();this.topNS[``]=e,gn(this,``,e)}}pushAttribPlain(e,t){let n={name:e,value:t};this.attribList.push(n),this.attributeHandler?.(n)}end(){this.sawRoot||this.fail(`document must contain a root element.`);let{tags:e}=this;for(;e.length>0;){let t=e.pop();this.fail(`unclosed tag: ${t.name}`)}this.state!==0&&this.state!==J&&this.fail(`unexpected end.`);let{text:t}=this;return t.length!==0&&(this.textHandler?.(t),this.text=``),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(e){let t=this.topNS[e];if(t!==void 0)return t;let{tags:n}=this;for(let r=n.length-1;r>=0;r--)if(t=n[r].ns[e],t!==void 0)return t;return t=this.ns[e],t===void 0?this.opt.resolvePrefix?.(e):t}qName(e){let t=e.indexOf(`:`);if(t===-1)return{prefix:``,local:e};let n=e.slice(t+1),r=e.slice(0,t);return(r===``||n===``||n.includes(`:`))&&this.fail(`malformed name: ${e}.`),{prefix:r,local:n}}processAttribsNS(){let{attribList:e}=this,t=this.tag;{let{prefix:e,local:n}=this.qName(t.name);t.prefix=e,t.local=n;let r=t.uri=this.resolve(e)??``;e!==``&&(e===`xmlns`&&this.fail(`tags may not have "xmlns" as prefix.`),r===``&&(this.fail(`unbound namespace prefix: ${JSON.stringify(e)}.`),t.uri=e))}if(e.length===0)return;let{attributes:n}=t,r=new Set;for(let t of e){let{name:e,prefix:i,local:a}=t,o,s;i===``?(o=e===`xmlns`?en:``,s=e):(o=this.resolve(i),o===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(i)}.`),o=i),s=`{${o}}${a}`),r.has(s)&&this.fail(`duplicate attribute: ${s}.`),r.add(s),t.uri=o,n[e]=t}this.attribList=[]}processAttribsPlain(){let{attribList:e}=this,t=this.tag.attributes;for(let{name:n,value:r}of e)t[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),t[n]=r;this.attribList=[]}openTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!1,this.openTagHandler?.(t),e.push(t),this.state=J,this.name=``}openSelfClosingTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!0,this.openTagHandler?.(t),this.closeTagHandler?.(t),(this.tag=e[e.length-1]??null)===null&&(this.closedRoot=!0),this.state=J,this.name=``}closeTag(){let{tags:e,name:t}=this;if(this.state=J,this.name=``,t===``)return this.fail(`weird empty close tag.`),void(this.text+=`</>`);let n=this.closeTagHandler,r=e.length;for(;r-->0;){let r=this.tag=e.pop();if(this.topNS=r.ns,n?.(r),r.name===t)break;this.fail(`unexpected close tag: ${t}.`)}r===0?this.closedRoot=!0:r<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if(e[0]!==`#`){let t=this.ENTITIES[e];return t===void 0?(this.fail(this.isName(e)?`undefined entity.`:`disallowed character in entity name.`),`&${e};`):t}let t=NaN;return e[1]===`x`&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail(`malformed character entity.`),`&${e};`)}},Sn=/&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g,Cn={amp:`&`,lt:`<`,gt:`>`,quot:`"`,apos:`'`},wn=(e,t)=>{let n=Cn[t];if(n!==void 0)return n;let r=t.charCodeAt(1)===120?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return r>0&&r<=1114111?String.fromCodePoint(r):e},Tn=e=>{let t=e;return t.indexOf(`\r`)!==-1&&(t=t.replace(/\r\n?/g,`
|
|
3
|
-
`)),t.indexOf(`&`)!==-1&&(t=t.replace(Sn,wn)),t},En=e=>{let t=e,n=t.length;for(let e=0;e<n;e++){let n=t.charCodeAt(e);if(n===9||n===10||n===13){t=t.replace(/\r\n|[\t\n\r]/g,` `);break}}return t.indexOf(`&`)!==-1&&(t=t.replace(Sn,wn)),t},Dn=e=>e===32||e===9||e===10||e===13,On=class e{constructor(){this._openTagHandler=void 0,this._closeTagHandler=void 0,this._textHandler=void 0,this._cdataHandler=void 0,this._errorHandler=void 0,this._endHandler=void 0,this._scanners=null,this._carry=``,this._text=``,this._tags=[],this._sawRoot=!1,this._closed=!1}static{this.NEED_MORE=-1}static{this.NOT_HANDLED=-2}static decodeText(e){return Tn(e)}on(e,t){switch(e){case`opentag`:this._openTagHandler=t;break;case`closetag`:this._closeTagHandler=t;break;case`text`:this._textHandler=t;break;case`cdata`:this._cdataHandler=t;break;case`error`:this._errorHandler=t;break;case`end`:this._endHandler=t}}setElementScanners(e){if(!e||e.length===0)return void(this._scanners=null);let t=Array(128);for(let n of e){let e=n.name.charCodeAt(0);if(!(e<128)||t[e]!==void 0)throw Error(`Element scanner '${n.name}' needs an ASCII first character no other scanner uses.`);t[e]=n}this._scanners=t}fail(e){let t=Error(e),n=this._errorHandler;if(n===void 0)throw t;n(t)}write(e){if(this._closed)return this.fail(`cannot write after close.`),this;let t=e;this._carry.length!==0&&(t=this._carry+e,this._carry=``);let n=t.length,r=0;for(;r<n;){let e=t.indexOf(`<`,r);if(e===-1)return this._text+=t.slice(r),this;e>r&&(this._text+=t.slice(r,e));let i=this._markup(t,e,n);if(i===-1)return this._carry=t.slice(e),this;r=i}return this}close(){this._carry.length!==0&&(this.fail(`unexpected end.`),this._carry=``),this._sawRoot||this.fail(`document must contain a root element.`);let e=this._tags;for(;e.length>0;){let t=e.pop();this.fail(`unclosed tag: ${t.name}`)}return this._flushText(),this._closed=!0,this._endHandler?.(),this}_flushText(){let e=this._text;if(e.length===0)return;this._text=``;let t=this._textHandler;t!==void 0&&this._tags.length!==0&&t(Tn(e))}_markup(t,n,r){if(n+1>=r)return-1;let i=t.charCodeAt(n+1);if(i===47){let e=t.indexOf(`>`,n+2);return e===-1?-1:(this._flushText(),this._closeTag(t.slice(n+2,e).trimEnd()),e+1)}if(i===63){let e=t.indexOf(`?>`,n+2);return e===-1?-1:e+2}if(i===33){if(n+4>r)return-1;if(t.charCodeAt(n+2)===45&&t.charCodeAt(n+3)===45){let e=t.indexOf(`-->`,n+4);return e===-1?-1:e+3}if(n+9>r)return-1;if(t.startsWith(`[CDATA[`,n+2)){let e=t.indexOf(`]]>`,n+9);return e===-1?-1:(this._flushText(),this._cdataHandler?.(t.slice(n+9,e)),e+3)}let e=t.indexOf(`[`,n+2),i=t.indexOf(`>`,n+2);if(i===-1)return-1;if(e!==-1&&e<i){let n=t.indexOf(`]>`,e);return n===-1?-1:n+2}return i+1}let a=this._scanners;if(a!==null){let o=i<128?a[i]:void 0;if(o!==void 0&&t.startsWith(o.name,n+1)){let i=n+1+o.name.length;if(i>=r)return-1;let a=t.charCodeAt(i);if(a===62||a===47||Dn(a)){this._flushText();let i=o.scan(t,n,r);if(i!==e.NOT_HANDLED){if(i!==e.NEED_MORE){this._sawRoot=!0;let e=o.openTag;e!==void 0&&this._tags.push(e)}return i}}}}return this._openTag(t,n,r)}_openTag(e,t,n){let r=t+1,i=0;for(;r<n&&(i=e.charCodeAt(r),i!==62&&i!==47&&!Dn(i));)r++;if(r>=n)return-1;let a=e.slice(t+1,r),o={},s=!1;for(;;){for(;r<n&&Dn(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i===62){r++;break}if(i===47){if(r+1>=n)return-1;if(e.charCodeAt(r+1)!==62){this.fail(`forward-slash in opening tag not followed by >.`),r++;continue}s=!0,r+=2;break}let t=r;for(;r<n&&(i=e.charCodeAt(r),i!==61&&i!==62&&i!==47&&!Dn(i));)r++;if(r>=n)return-1;let a=e.slice(t,r);for(;r<n&&Dn(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i!==61){this.fail(`attribute without value.`);continue}for(r++;r<n&&Dn(i=e.charCodeAt(r));)r++;if(r>=n)return-1;if(i!==34&&i!==39){this.fail(`unquoted attribute value.`);continue}let c=e.indexOf(i===34?`"`:`'`,r+1);if(c===-1)return-1;a!==`__proto__`&&(o[a]=En(e.slice(r+1,c))),r=c+1}this._flushText(),this._sawRoot=!0;let c={name:a,attributes:o,isSelfClosing:s};return this._openTagHandler?.(c),s?this._closeTagHandler?.(c):this._tags.push(c),r}_closeTag(e){if(e===``)return void this.fail(`weird empty close tag.`);let t=this._tags,n=this._closeTagHandler,r=t.length;for(;r-->0;){let r=t.pop();if(n?.(r),r.name===e)return;this.fail(`unexpected close tag: ${e}.`)}this.fail(`unmatched closing tag: ${e}.`)}};(function(e){e.Events={XmlDecl:`xmldecl`,Text:`text`,ProcessingInstruction:`processinginstruction`,Doctype:`doctype`,Comment:`comment`,OpenTagStart:`opentagstart`,Attribute:`attribute`,OpenTag:`opentag`,CloseTag:`closetag`,CDdata:`cdata`,Error:`error`,End:`end`,Ready:`ready`},e.parseStream=async(e,t,n)=>{if(n?.lean)return(async(e,t)=>{let n=new On,r;t.elementScanners&&n.setElementScanners(t.elementScanners),t.onOpenTag&&n.on(`opentag`,t.onOpenTag),t.onCloseTag&&n.on(`closetag`,t.onCloseTag),t.onText&&n.on(`text`,t.onText),t.onError&&n.on(`error`,t.onError);let i=t.onEnd;for(i&&n.on(`end`,()=>{r=i()});;){let{value:t,done:r}=await e.read();if(r)break;n.write(t)}return n.close(),r})(e,t);let r=new xn({position:!1,...n}),i;t.onOpenTagStart&&r.on(_n.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&r.on(_n.Events.OpenTag,t.onOpenTag),t.onCloseTag&&r.on(_n.Events.CloseTag,t.onCloseTag),t.onAttribute&&r.on(_n.Events.Attribute,t.onAttribute),t.onText&&r.on(_n.Events.Text,t.onText),t.onError&&r.on(_n.Events.Error,t.onError);let a=t.onEnd;for(a&&r.on(_n.Events.End,()=>{i=a()});;){let{value:t,done:n}=await e.read();if(n)break;r.write(t)}return r.close(),i}})(_n||={});var Z=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,Q=e=>{let t=parseInt(e);return isNaN(t)?null:t},kn=e=>{let t=parseFloat(e);return isNaN(t)?null:t},$=null,An=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),jn=e=>An(e).replace(/"/g,`"`),Mn=class{constructor(){this._registeredVisitors=new Map}registerVisitor(e){this._registeredVisitors.set(e.from,e)}createEventHandler(e,t,n){let r=this._registeredVisitors,i=[],a=[],o=null,s=null,c=null,l=null,u=[],d={key:null,source:e,parent:null},f=null,p=!1,m=null,h=null,g=null,_=(e,t)=>{let n=c.attributes[e];if(t){if(Array.isArray(t)){let e=t.length;for(let r=0;r<e;r++)if(n==null||(n=t[r](n),n==null))return}else if(n==null||(n=t(n),n==null))return}return n},ee={getSource:()=>f?.source??null,setSource:e=>{f.source=e},setKey:e=>{f.key=e},getFrom:()=>c,getAttribute:(e,t)=>_(e,t)??null,hasAttribute:e=>ee.getAttribute(e)!==null,getParent:()=>{let e=u[u.length-2];return e.parent??e.source},getPath:()=>{let e=[],t=a.length;for(let n=0;n<t;n++)e.push(a[n].local);return e.join(`\\`)},parseAttribute:_,getRawXml:()=>g,copyToObject:(e,t,n,r)=>{let i=_(r??t,n);i!==void 0&&(e[t]=i)},copyTo:(e,t,n)=>{let r=_(n??e,t);r!==void 0&&(f.source[e]=r)},warn:(e,t)=>{n?n(e,void 0,t?.onceKey):console.warn(e)}};return{onOpenTag:e=>{let t=e.name,n=t.indexOf(`:`);if(n!==-1&&(t=t.slice(n+1)),m)return m.push((e=>{let t=e.attributes??{},n=`<${e.name}`;for(let e in t){let r=t[e];n+=` ${e}="${jn(typeof r==`string`?r:r?.value??``)}"`}return n+`>`})(e)),o={local:t,tag:e,destination:null},a.push(o),s=t,void(c=e);let g=(i.length>0?i[i.length-1]:r).get(t);if(o={local:t,visitor:g,tag:e,destination:null},p)return a.push(o),s=t,void(c=e);l=o?.visitor??null,s=t,c=e;let _=!!g&&g.to===null;if(g&&!_&&g.scope){let e=g.scope(ee);e===null?_=!0:e&&(i.push(e),o.pushedScope=!0)}g&&(a.length===0?(f=d,o.destination=f,o.pushedDestination=!0,u.push(f)):_?(f=null,o.destination=null):g.transparent?o.destination=f:(f={key:null,source:{},parent:null},o.destination=f,o.pushedDestination=!0,u.push(f))),a.push(o),p=_;let v=l?.openTag?.(ee);v!==void 0&&(f.parent=v),g?.raw&&!_&&(m=[],h=o)},onCloseTag:e=>{let t=e.name,r=t.indexOf(`:`);if(r!==-1&&(t=t.slice(r+1)),t!==s)throw Error(`mismatch open/close tag: '${t}'/'${s}'`);let _=!1;if(m){if(a[a.length-1]!==h)return m.push(`</${e.name}>`),a.pop(),o=a[a.length-1]??null,s=o?.local??null,void(c=o?.tag??null);g=m.join(``),m=null,h=null,_=!0}p||l?.closeTag?.(ee),_&&(g=null);let v=a.pop()??null;o=a[a.length-1]??null,v?.pushedScope&&i.pop();let y=v?.destination;if(y&&v.pushedDestination){u.pop(),f=u[u.length-1]??d;let e=v.visitor;e&&e.to&&y.source!==void 0&&(Array.isArray(e.to)?f.source.push?f.source.push(y.source):n?.(`Unable to parse array for ${e.from} at ${ee.getPath()}`):y.key?f.source[y.key]=y.source:typeof e.to==`string`&&(f.source[e.to]=y.source))}else y||(f=u[u.length-1]??d);s=o?.local??null,c=o?.tag??null,l=o?.visitor??null,p=!o?.destination},onText:e=>{m?m.push(An(e)):l?.text?.(e,ee)},onEnd:t}}},Nn=`IFERROR(${De}(`,Pn=Nn.toUpperCase(),Fn=H.toUpperCase(),In={kind:`none`},Ln={kind:`spilled`},Rn=(e,t)=>{if(e.charCodeAt(t)!==34)return null;let n=``,r=t+1;for(;r<e.length;)if(e.charCodeAt(r)===34){if(e.charCodeAt(r+1)!==34)return{value:n,end:r+1};n+=`"`,r+=2}else n+=e[r],r++;return null},zn=e=>{let t=[],n=0;for(;n<e.length;){let r=e.charCodeAt(n);if(r===34){let t=Rn(e,n);if(t===null)break;n=t.end;continue}if(!(r>=65&&r<=90||r>=97&&r<=122||r===95)){n++;continue}let i=n+1;for(;i<e.length;){let t=e.charCodeAt(i);if(!(t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===95||t===46))break;i++}e.charCodeAt(i)===40&&t.push(e.slice(n,i).toUpperCase().replace(/^_XLFN\./,``).replace(/^_XLWS\./,``)),n=i}return t},Bn=class{constructor(e){this._restored=[],this._byColumn=new Map,this._isKnown=e}anchor(e,t,n){let r=this._byColumn.get(t);r&&e===r.rowEnd+1&&e>r.rowStart&&(r.closed=!0);let i=zn(n),a=!0;for(let e=0;e<i.length&&a;e++)a=this._isKnown(i[e]);let o={rowStart:e,colStart:t,rowEnd:e,colEnd:t,closed:!1,restored:a};return this._byColumn.set(t,o),a&&this._restored.push(o),a}placeholder(e,t){let n=this._byColumn.get(t);if(n&&!n.closed&&e>n.rowStart&&e<=n.rowEnd+1&&t>=n.colStart&&t<=n.colEnd)return n.rowEnd=e,n.restored;let r=this._byColumn.get(t-1);return!(!r||r.rowStart!==e||r.colEnd!==t-1)&&(r.colEnd=t,this._byColumn.set(t,r),r.restored)}getFormulaArray(){return this._restored.map(e=>[_.rangeToString(e),`dynamic`])}},Vn=/^\s*TABLE\s*\(([^()]*)\)\s*$/i,Hn=/^\s*(\$?)([A-Za-z]{1,3})(\$?)(\d{1,7})\s*$/,Un=e=>{let t=Hn.exec(e);if(!t)return null;let n=_.fastStringToCol(t[2]),r=parseInt(t[4],10)-1;return n<0||r<0?null:{row:r,col:n,colAbsolute:t[1]===`$`,rowAbsolute:t[3]===`$`}},Wn=e=>_.cellToString({rowIndex:e.row,colIndex:e.col}),Gn=(e,t)=>{let n=Vn.exec(e);if(!n)return null;let r=n[1].split(`,`);if(r.length!==3&&r.length!==5)return null;let i=[];for(let e=0;e<r.length;e++){let t=Un(r[e]);if(!t)return null;i.push(t)}let a=t.rowStart,o=t.colStart,s=e=>e.colAbsolute&&!e.rowAbsolute&&e.col===o-1&&e.row===a,c=e=>e.rowAbsolute&&!e.colAbsolute&&e.row===a-1&&e.col===o,l={rowStart:a,colStart:o,rowEnd:t.rowEnd,colEnd:t.colEnd},u=i[0];if(i.length===3){let[,e,t]=i;return s(t)&&c(u)?{ref:l,columnInput:Wn(e)}:c(t)&&s(u)?{ref:l,rowInput:Wn(e)}:null}if(!u.rowAbsolute||!u.colAbsolute||u.row!==a-1||u.col!==o-1)return null;let[,d,f,p,m]=i;return s(f)&&c(m)?{ref:l,rowInput:Wn(p),columnInput:Wn(d)}:c(f)&&s(m)?{ref:l,rowInput:Wn(d),columnInput:Wn(p)}:null},Kn=/^(?:(\d{4})-(\d{2})-(\d{2}))?T?(?:(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/,qn=/^PT(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?$/,Jn=(e,t,n)=>{let r=Math.floor((14-t)/12),i=e+4800-r,a=t+12*r-3;return n+Math.floor((153*a+2)/5)+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)-32045},Yn=Jn(1899,12,30),Xn=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)},Zn=class{constructor(){this._runs=null,this._text=``,this._font=null,this._inRun=!1,this._inRPr=!1}reset(){this._runs=null,this._inRun=!1,this._inRPr=!1}onOpenTag(e,t){e===`r`?(this._inRun=!0,this._text=``,this._font=null,this._runs??=[]):e===`rPr`?this._inRun&&(this._inRPr=!0):this._inRPr&&function(e,t,n){switch(e){case`b`:n.weight=er(t)?700:400;break;case`i`:n.style=er(t)?c.Style.Italic:c.Style.Normal;break;case`strike`:n.strike=D(er(t));break;case`outline`:n.outline=er(t);break;case`shadow`:n.shadow=er(t);break;case`condense`:case`extend`:{let r=Ve(e,er(t));r!==void 0&&(n.letterSpacing=r);break}case`u`:n.underline=He(t.val);break;case`vertAlign`:{let e=qe(t.val);e!==void 0&&(n.baseline=e);break}case`sz`:{let e=parseFloat(t.val??``);isNaN(e)||(n.size=e);break}case`rFont`:{let e=t.val;e&&(n.family=e);break}case`family`:{let e=$n[t.val??``];e&&(n.fallbacks=[e]);break}case`charset`:{let e=parseInt(t.val??``,10);isNaN(e)||(n.charset=e);break}case`scheme`:T(n,t.val);break;case`color`:{let e=t.rgb;if(e&&t.theme===void 0){n.color=`#`+(e.length===8?e.substring(2):e).toUpperCase();break}let r=Oe(e=>t[e]);r&&(n.color=r);break}}}(e,t,this._font??={})}onText(e){this._inRun&&(this._text+=e)}onCloseTag(e){if(e===`rPr`)this._inRPr=!1,this._font??={};else if(e===`r`&&this._inRun){let e=ct(this._text),t=this._font;this._runs.push(t?{text:e,font:t}:{text:e}),this._inRun=!1}}take(){let e=this._runs;if(this.reset(),!e)return null;for(let t=0;t<e.length;t++)if(e[t].font)return e;return null}};function Qn(e,t){let n={family:`Calibri`,size:11,...t,weight:400,style:c.Style.Normal,underline:c.UnderlineStyle.None,strike:c.StrikeStyle.None,baseline:0},r=Array(e.length);for(let t=0;t<e.length;t++){let i=e[t];if(!i.font){r[t]=i;continue}let a={...n,...i.font};r[t]={text:i.text,font:a}}return r}var $n={1:`serif`,2:`sans-serif`,3:`monospace`,4:`cursive`,5:`fantasy`},er=e=>{let t=e.val;return t===void 0||t===`1`||t===`true`},tr=e=>{let t=t=>{if(e)return RegExp(`<(?:[\\w.-]+:)?${t}\\b[^>]*>([^<]*)<`).exec(e)?.[1]},n=e=>{let t=parseInt(e??``,10);return isNaN(t)?0:t};return{c:n(t(`col`)),r:n(t(`row`)),x:E(t(`colOff`)??`0`)??0,y:E(t(`rowOff`)??`0`)??0}},nr=`formulaDialect`,rr=`isKnownFunction`,ir=`date1904`,ar=`richStrings`,or=`defaultFont`,sr=(e,t,n,r,i,a,o,s)=>{let c=new Mn,l=e=>{let t=e.getAttribute(`dxfId`,Q);return t===null?void 0:r?.get(t)||(a?.(`A color filter or sort names a format that does not exist (dxfId '${t}').`),{})},u=!1,d=s?.get(`parseInlineDxf`),p=s?.get(nr),m=e=>p&&e?p.readDetached(e):e,h=new ne.TransposedBuilder,g=null,ee=`topLeft`;c.registerVisitor({from:`autoFilter`,to:`autoTable`,openTag:e=>{let t=e.getAttribute(`ref`),n=_.fastStringToRange(t);e.getSource().r=n,e.getSource().v={}},closeTag:e=>{let t=e.getSource(),n=t.v,r=n.hiddenButtons;if(Array.isArray(r)){let e=r.length,i=t.r,a=i.colEnd-i.colStart+1;e===0?n.hiddenButtons=!1:e===a&&(n.hiddenButtons=!0)}}}),c.registerVisitor({from:`conditionalFormatting`,to:{},openTag:e=>{let t=e.getParent();t.conditionals||=[];let n=e.getAttribute(`sqref`);n&&=n.trim().split(/\s+/).join(`,`);let r={r:n,conditionals:t.conditionals},i=e.getAttribute(`pivot`,Z);i!==null&&(r.pivot=i),e.setSource(r)}}),c.registerVisitor({from:`cfRule`,to:{},openTag:e=>{let t=e.getParent();if(!t?.r)return;let n=e.getSource()??{};t.pivot!==void 0&&(n.pivot=t.pivot),t.conditionals.push({r:t.r,v:null,rule:n}),e.copyToObject(n,`type`,$),e.copyToObject(n,`priority`,Q),e.copyToObject(n,`stopIfTrue`,Z);let i=e.getAttribute(`dxfId`,Q);if(i!==null){let t=r?.get(i);t||=(a?.(`Unable to load conditional color. Invalid dxfI: '${i}' at '${e.getPath()}'.`),{}),n.style=t}e.copyToObject(n,`aboveAverage`,Z),e.copyToObject(n,`equalAverage`,Z),e.copyToObject(n,`stdDev`,Q),e.copyToObject(n,`bottom`,Z),e.copyToObject(n,`percent`,Z),e.copyToObject(n,`rank`,Q),e.copyToObject(n,`operator`,$),e.copyToObject(n,`text`,$),e.copyToObject(n,`timePeriod`,$)},closeTag:e=>{let t=e.getParent();if(!t?.r)return;let n=t.conditionals[t.conditionals.length-1],r=n?.rule;if(!r)return;let i={},o=Ne(r,a);o&&(i.condition=o),r.style&&(i.style=r.style),r.scale&&(i.scale=r.scale),r.stopIfTrue&&(i.stopIfTrue=!0),r.pivot&&typeof r.priority==`number`&&(i.pivotKey=r.priority),n.v=i,n.priority=r.priority,r.x14Id&&(n.x14Id=r.x14Id),delete n.rule}});let b=e=>{let t=e.conditions??[],n=[];for(let e=0;e<t.length;e++){let r=t[e],i={};r.type&&(i.type=r.type),r.value!==void 0&&(i.value=r.value),r.exclusive&&(i.exclusive=!0),n.push(i)}return n};c.registerVisitor({from:`colorScale`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),n=t.colors??[],r=b(t);for(let e=0;e<r.length;e++)r[e].color=n[e];e.getParent().scale={type:v.ScaleType.ColorScale,stops:r}}}),c.registerVisitor({from:`dataBar`,to:{},openTag:e=>{e.copyTo(`maxLength`,Q),e.copyTo(`minLength`,Q),e.copyTo(`showValue`,Z)},closeTag:e=>{let t=e.getSource(),n={type:v.ScaleType.DataBar,stops:b(t)},r=t.colors?.[0];r&&(n.color=r),t.minLength!==void 0&&(n.minLength=t.minLength),t.maxLength!==void 0&&(n.maxLength=t.maxLength),t.showValue!==void 0&&(n.showValue=t.showValue),e.getParent().scale=n}}),c.registerVisitor({from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,$),e.copyTo(`reverse`,Z),e.copyTo(`showValue`,Z)},closeTag:e=>{let t=e.getSource(),n={type:v.ScaleType.IconSet,stops:b(t)};t.iconSet!==void 0&&(n.iconSet=t.iconSet),t.reverse!==void 0&&(n.reverse=t.reverse),t.showValue!==void 0&&(n.showValue=t.showValue),e.getParent().scale=n}}),c.registerVisitor({from:`formula`,to:{},text:(e,t)=>{let n=t.getParent(),r=n.formulas;r||(r=[],n.formulas=r),r.push(m(e))}}),c.registerVisitor({from:`cfvo`,to:{},openTag:e=>{let t=e.getParent();t.conditions||=[];let n=e.getSource();if(t.conditions.push(n),e.copyTo(`type`,$),n.type===v.ColorStopType.Formula){let t=e.getAttribute(`val`);t!=null&&(n.value=m(String(t)))}else e.copyTo(`value`,kn,`val`);!1===e.getAttribute(`gte`,Z)&&(n.exclusive=!0)}}),c.registerVisitor({from:`color`,to:{},openTag:e=>{let t=e.getParent();t.colors||=[];let n=Oe(t=>e.getAttribute(t));t.colors.push(n)}}),c.registerVisitor({from:`filterColumn`,to:{},openTag:e=>{let t=e.getParent().v,n=parseInt(e.getAttribute(`colId`)),r=e.getSource();r.index=n;let i=t.filter;i||(i={conditions:[]},t.filter=i);let a=i.conditions;if(a||(a=[],i.conditions=a),a.push(r),e.getAttribute(`hiddenButton`,Z)&&t){let e=t.hiddenButtons;e||(e=[],t.hiddenButtons=e),e.push(n)}if(e.getAttribute(`showButton`,Z)&&t){let e=t.showButtons;e||(e=[],t.showButtons=e),e.push(n)}return r}}),c.registerVisitor({from:`colorFilter`,openTag:e=>{let t=e.getParent(),n={};t.operator=x.BuiltInOperatorNames.Color,t.param=n,e.copyToObject(n,`cellColor`,Z);let r=l(e);r&&(n.style=r)}}),c.registerVisitor({from:`iconFilter`,openTag:e=>{let t=e.getParent(),n={};t.operator=x.BuiltInOperatorNames.Icon,t.param=n,e.copyToObject(n,`iconId`,Q),e.copyToObject(n,`iconSet`,$)}}),c.registerVisitor({from:`top10`,openTag:e=>{let t=e.getParent(),n={};t.operator=x.BuiltInOperatorNames.TopN,t.param=n,e.copyToObject(n,`filterVal`,kn),e.copyToObject(n,`percent`,Z),e.copyToObject(n,`top`,Z),e.copyToObject(n,`limit`,kn,`val`)}}),c.registerVisitor({from:`dynamicFilter`,openTag:e=>{let t=e.getParent(),n=O(e.getAttribute(`type`),e.getAttribute(`val`),e.getAttribute(`maxVal`));t.operator=n.operator,t.param=n.param}});let te={from:`filters`,to:{},openTag:e=>{let t=e.getParent(),n={};return t.selector=x.BuiltInSelectorNames.Display,t.operator=x.BuiltInOperatorNames.InSet,t.param=n,e.copyToObject(n,`blank`,Z),e.copyToObject(n,`calendarType`,$),n}};c.registerVisitor(te);let re={from:`filter`,openTag:e=>{let t=e.getParent(),n=t.items;n||(n=[],t.items=n),n.push(e.getAttribute(`val`,$))}};c.registerVisitor(re);let S={from:`dateGroupItem`,to:{},openTag:e=>{let t=e.getParent(),n=t.dateGroups;n||(n=[],t.dateGroups=n),n.push(e.getSource()),e.copyTo(`group`,$,`dateTimeGrouping`),e.copyTo(`day`,Q),e.copyTo(`hour`,Q),e.copyTo(`minute`,Q),e.copyTo(`month`,Q),e.copyTo(`second`,Q),e.copyTo(`year`,Q)}};c.registerVisitor(S);let C=new Map;C.set(`filterColumn`,{from:`filterColumn`,transparent:!0}),C.set(`filters`,te),C.set(`filter`,re),C.set(`dateGroupItem`,S),c.registerVisitor({from:`customFilters`,openTag:e=>{let t=e.getParent(),n=e.getAttribute(`and`),r=n===`and`||n===`1`,i=[];return t.operator=r?x.BuiltInOperatorNames.And:x.BuiltInOperatorNames.Or,t.param=i,e.setSource(t),i},closeTag:e=>{let t=e.getSource(),n=t?.param;if(!t||!n)return;let r=n.length===1?n[0]:Pe(t);r!==t&&(t.operator=r.operator,t.param=r.param)}}),c.registerVisitor({from:`customFilter`,openTag:e=>{let t=e.getParent(),n;Array.isArray(t)?(n={},t.push(n)):n=t;let r=z({operator:e.getAttribute(`operator`),val:e.getAttribute(`val`)},t=>e.warn(t));r&&(n.operator=r.operator,n.param=r.param)}});let ie={},w=null;c.registerVisitor({from:`sortState`,to:{},openTag:e=>{let t=e.getParent(),n=t.v;if(!n)return;let r={};ie={};let i=e.getAttribute(`caseSensitive`,Z);i!=null&&(ie.collatorOptions=i?y.CaseSensitiveOptions:y.CaseInsensitiveOptions);let a=e.getAttribute(`sortMethod`);a!==`stroke`&&a!==`pinYin`||(ie.collatorOptions={...ie.collatorOptions,collation:a===`stroke`?`stroke`:`pinyin`}),e.getAttribute(`columnSort`,Z)&&(r.axis=f.Axis.Column);let o=e.getAttribute(`ref`),s=t.r;w=o&&s?_.fastStringToRange(o):null,w&&(r.extent={range:B(s,w)}),n.sort=r,e.setSource(t)}}),c.registerVisitor({from:`sortCondition`,to:{},openTag:e=>{let t=e.getParent(),n=t.v;if(!n)return;let r=n.sort;if(!r)return;let i=r.sorts;i||(i=[],r.sorts=i);let a=e.getAttribute(`ref`),o=0,s=null;if(a){let e=_.fastStringToRange(a,dr),n=e.colStart,r=t.r,i=r.colStart;o=r?n-i:n,r&&w&&(s=nt(r,w,e))}r.extent&&(r.extent.sorts??=[]).push(s);let c={...ie},u=Ae(e.getAttribute(`sortBy`));u&&(c.sortOn=u);let d=l(e);d&&(c.style=d),e.copyToObject(c,`iconSet`,$),e.copyToObject(c,`customList`,$),c.reverse=e.getAttribute(`descending`,Z)??!1;let f={index:o,criteria:c};i.push(f)}});let ae=e=>{g=e.getSource(),ee=`topLeft`,e.copyTo(`topLeft`,$,`topLeftCell`);let t=Qe(e.getAttribute(`defaultGridColor`)),n=e.getAttribute(`colorId`);n===null||t||(e.getSource().gridLineColor=`index`+parseFloat(n)),e.copyTo(`showZeros`,Z),e.copyTo(`showFormulas`,Z),e.copyTo(`zoomScale`,Q),e.copyTo(`viewMode`,$,`view`);let r={};for(let[t,n]of M){let i=e.getAttribute(n,Q);i&&(r[t]=Math.min(400,Math.max(10,i)))}Object.keys(r).length>0&&(e.getSource().zoomScales=r),e.copyTo(`showRuler`,Z),e.copyTo(`showWhitespace`,Z,`showWhiteSpace`),e.copyTo(`windowProtection`,Z),e.copyTo(`showRowHeaders`,Z,`showRowColHeaders`),e.copyTo(`showColumnHeaders`,Z,`showRowColHeaders`),e.copyTo(`showRowGridlines`,Z,`showGridLines`),e.copyTo(`showColumnGridlines`,Z,`showGridLines`),e.copyTo(`rightToLeft`,Z),e.copyTo(`showOutlineSymbols`,Z)};c.registerVisitor({from:`sheetView`,to:`view`,openTag:e=>{ae(e)},closeTag:()=>{g=null}}),c.registerVisitor({from:`customSheetViews`,to:`customSheetViews`,openTag:e=>{e.setSource([])}}),c.registerVisitor({from:`customSheetView`,to:[],openTag:e=>{T=!0,ae(e)},closeTag:()=>{T=!1,g=null}}),c.registerVisitor({from:`selection`,to:null,openTag:e=>{if(!g)return;let t=e.getAttribute(`activeCell`)?.replace(/\$/g,``),n=e.getAttribute(`sqref`)?.replace(/\$/g,``),r=e.getAttribute(`pane`)??`topLeft`;if(r!==ee){let e=g.freezePanes;if(e&&t){let i={activeCell:t};n&&n!==t&&(i.sqref=n),(e.paneSelections??={})[r]=i}return}let i={};t&&(i.cell=t);let a=e.getAttribute(`activeCellId`,Q);a!==null&&(i.rangeIndex=a),n&&n!==t&&(i.ranges=n.trim().split(/\s+/)),g.selection=i}}),c.registerVisitor({from:`pane`,to:null,openTag:e=>{if(!g)return;ee=e.getAttribute(`activePane`)??`topLeft`;let t=e.getAttribute(`state`);if(t===`frozen`||t===`frozenSplit`){let t={};g.freezePanes=t,e.copyToObject(t,`topLeft`,$,`topLeftCell`);let n=(g.topLeft?_.fastStringToCell(g.topLeft):void 0)??{colIndex:0,rowIndex:0},r={colIndex:0,rowIndex:0};e.copyToObject(r,`colIndex`,Q,`xSplit`),e.copyToObject(r,`rowIndex`,Q,`ySplit`);let i={colIndex:n.colIndex+r.colIndex,rowIndex:n.rowIndex+r.rowIndex};t.coords=_.cellToString(i)}}}),c.registerVisitor({from:`sheetPr`,transparent:!0,openTag:t=>{let n=t.getAttribute(`codeName`);n&&(e.codeName=n),!1===t.getAttribute(`enableFormatConditionsCalculation`,Z)&&(e.conditionalFormatCalculation=!1),!0===t.getAttribute(`transitionEvaluation`,Z)&&(e.transitionFormulaEvaluation=!0),!0===t.getAttribute(`transitionEntry`,Z)&&(e.transitionFormulaEntry=!0),!1===t.getAttribute(`published`,Z)&&(e.excludeFromPublishing=!0);let r={};!0===t.getAttribute(`syncHorizontal`,Z)&&(r.horizontal=!0),!0===t.getAttribute(`syncVertical`,Z)&&(r.vertical=!0);let i=t.getAttribute(`syncRef`);i&&(r.anchor=i),Object.keys(r).length>0&&(e.syncScroll=r)}}),c.registerVisitor({from:`tabColor`,to:null,openTag:t=>{let n=Oe(e=>t.getAttribute(e));n&&(e.tabColor=n)}});let T=!1,oe=()=>e.pageLayout??={};c.registerVisitor({from:`pageSetUpPr`,to:null,openTag:e=>{!0===e.getAttribute(`fitToPage`,Z)&&(oe().fitToPage=!0),!1===e.getAttribute(`autoPageBreaks`,Z)&&(oe().hideAutoPageBreaks=!0)}}),c.registerVisitor({from:`outlinePr`,to:null,openTag:t=>{let n=e=>{let n=t.getAttribute(e);return n===`0`||n===`false`},r={};n(`summaryBelow`)&&(r.summaryRow=`up`),n(`summaryRight`)&&(r.summaryColumn=`left`),(e=>{let n=t.getAttribute(e);return n===`1`||n===`true`})(`applyStyles`)&&(r.automaticStyles=!0),Object.keys(r).length>0&&(e.outline=r)}}),c.registerVisitor({from:`pageMargins`,to:null,openTag:e=>{if(T)return;let t=(t,n)=>e.getAttribute(t,kn)??n,n={left:t(`left`,.7),right:t(`right`,.7),top:t(`top`,.75),bottom:t(`bottom`,.75),header:t(`header`,.3),footer:t(`footer`,.3)};n.left===.7&&n.right===.7&&n.top===.75&&n.bottom===.75&&n.header===.3&&n.footer===.3||(oe().margins=n)}}),c.registerVisitor({from:`pageSetup`,to:null,openTag:e=>{if(T)return;let n=oe(),r=t=>e.getAttribute(t,Q)??void 0,i=t=>e.getAttribute(t,Z),a=e.getAttribute(`orientation`);a!==`landscape`&&a!==`portrait`||(n.orientation=a);for(let e of[`paperSize`,`scale`,`fitToWidth`,`fitToHeight`,`firstPageNumber`,`horizontalDpi`,`verticalDpi`,`copies`]){let t=r(e);t!==void 0&&(n[e]=t)}let o=e.getAttribute(`paperHeight`);o&&(n.paperHeight=o);let s=e.getAttribute(`paperWidth`);s&&(n.paperWidth=s),e.getAttribute(`pageOrder`)===`overThenDown`&&(n.printOrder=`overThenDown`),!0===i(`blackAndWhite`)&&(n.blackAndWhite=!0),!0===i(`draft`)&&(n.draftMode=!0),!0===i(`useFirstPageNumber`)&&(n.useFirstPageNumber=!0),!1===i(`usePrinterDefaults`)&&(n.ignorePrinterDefaults=!0);let c=e.getAttribute(`cellComments`),l=ce.find(([e])=>e===c)?.[1];l&&(n.printComments=l);let u=e.getAttribute(`errors`),d=Ue.find(([e])=>e===u)?.[1];d&&(n.printErrors=d);let f=e.getAttribute(`r:id`),p=f?t(f,`part`):null;p&&(n.printerSettings=p)}}),c.registerVisitor({from:`printOptions`,to:null,openTag:e=>{if(T)return;let t=t=>!0===e.getAttribute(t,Z);t(`horizontalCentered`)&&(oe().centerHorizontally=!0),t(`verticalCentered`)&&(oe().centerVertically=!0),t(`gridLines`)&&(oe().printGridlines=!0),t(`headings`)&&(oe().printHeadings=!0)}}),c.registerVisitor({from:`headerFooter`,to:{},openTag:e=>{if(T)return;let t={},n=t=>e.getAttribute(t,Z);!0===n(`differentOddEven`)&&(t.differentOddEven=!0),!0===n(`differentFirst`)&&(t.differentFirst=!0),!1===n(`scaleWithDoc`)&&(t.ignoreSheetScale=!0),!1===n(`alignWithMargins`)&&(t.ignoreSheetMargins=!0),Object.keys(t).length>0&&(oe().headerFooter=t)}});for(let e of F)c.registerVisitor({from:e,to:{},text:(t,n)=>{if(T)return;let r=oe(),i=r.headerFooter??={};i[e]=(i[e]??``)+ct(t)}});let se=`rowBreaks`;for(let[e,t]of[[`rowBreaks`,`rowBreaks`],[`colBreaks`,`columnBreaks`]])c.registerVisitor({from:e,to:{},openTag:()=>{se=t}});c.registerVisitor({from:`brk`,to:null,openTag:e=>{if(T)return;let t=e.getAttribute(`id`,Q);if(t==null)return;let n={index:t},r=e.getAttribute(`min`,Q);r!=null&&(n.min=r);let i=e.getAttribute(`max`,Q);i!=null&&(n.max=i),!0!==e.getAttribute(`man`,Z)&&(n.automatic=!0),!0===e.getAttribute(`pt`,Z)&&(n.pivot=!0);let a=oe();(a[se]??=[]).push(n)}}),c.registerVisitor({from:`ignoredErrors`,transparent:!0}),c.registerVisitor({from:`ignoredError`,to:null,openTag:t=>{let n=t.getAttribute(`sqref`);if(!n)return;let r=[];for(let e of me)!0===t.getAttribute(e,Z)&&r.push(e);if(r.length!==0)for(let t of n.trim().split(/\s+/))(e.ignoredErrors??=[]).push({r:t,v:r})}}),c.registerVisitor({from:`mergeCells`,to:`merges`,openTag:e=>{e.setSource([])}}),c.registerVisitor({from:`dataValidations`,to:`validations`,openTag:t=>{t.setSource([]);let n={};!0===t.getAttribute(`disablePrompts`,Z)&&(n.disablePrompts=!0);let r=t.getAttribute(`xWindow`,Q);r!==null&&(n.windowX=r);let i=t.getAttribute(`yWindow`,Q);i!==null&&(n.windowY=i),Object.keys(n).length>0&&(e.validationSettings={...e.validationSettings,...n})}});let ue={from:`dataValidation`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n,rule:{type:e.getAttribute(`type`)??void 0,operator:e.getAttribute(`operator`)??void 0}};!0===e.getAttribute(`showDropDown`,Z)&&(n.hideDropdown=!0),e.copyToObject(n,`alert`,$,`error`),e.copyToObject(n,`alertTitle`,$,`errorTitle`),e.copyToObject(n,`showAlertMessage`,Z,`showErrorMessage`),n.alertStyle=e.getAttribute(`errorStyle`)??`stop`,e.copyToObject(n,`imeMode`),e.copyToObject(n,`prompt`),e.copyToObject(n,`promptTitle`),e.copyToObject(n,`showPromptMessage`,Z,`showInputMessage`),e.setSource(r)},closeTag:e=>{let t=e.getSource();if(!t?.rule)return;let n=le(t.rule,a);n&&(e.getAttribute(`allowBlank`,Z)&&(n.includeBlanks=!0),t.v.condition=n),delete t.rule}};c.registerVisitor(ue),c.registerVisitor({from:`formula1`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula1=j(m(e),n.type))}}),c.registerVisitor({from:`formula2`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula2=j(m(e),n.type))}}),c.registerVisitor({from:`picture`,to:`picture`,openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return void e.warn(`A picture names no image; it was not imported.`,{onceKey:`xlsx.sheet.picture.noRel`});let r=t(n,`resource`);e.getSource().resId=r}});let de={from:`slicer`,to:{},openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return void e.warn(`A slicer names no cache; it was not imported.`,{onceKey:`xlsx.sheet.slicer.noRel`});let r=t(n)?.slicers,i=e.getParent();i.slicers||={};let a=Object.keys(r);for(let e of a)i.slicers[e]=r[e]}};c.registerVisitor(de);let E={from:`timelineRef`,to:{},openTag:e=>{let n=e.getAttribute(`r:id`),r=n?t(n)?.slicers:void 0;if(!r)return void e.warn(`A timeline names no part; it was not imported.`,{onceKey:`xlsx.sheet.timeline.noRel`});let i=e.getParent();i.slicers??={};for(let e of Object.keys(r))i.slicers[e]=r[e]}},fe=(e,t)=>({from:e,to:{},openTag:e=>{e.setSource(``)},text:(e,t)=>{t.setSource((t.getSource()??``)+e)},closeTag:e=>{t(String(e.getSource()??``),e)}}),pe=new Map;pe.set(`dataValidations`,{from:`dataValidations`,to:`validations`,openTag:e=>{let t=e.getParent();e.setSource(t.validations??[])},closeTag:e=>{(e.getSource()?.length??0)===0&&e.setSource(void 0)}}),pe.set(`dataValidation`,{...ue,closeTag:e=>{ue.closeTag(e);let t=e.getSource();t&&!t.r&&(e.warn(`x14 dataValidation with no xm:sqref was dropped.`),e.setSource(void 0))}});let D=e=>({from:e,to:{},openTag:t=>{t.setSource({rule:t.getParent()?.rule,key:e})}});pe.set(`formula1`,D(`formula1`)),pe.set(`formula2`,D(`formula2`)),pe.set(`f`,fe(`f`,(e,t)=>{let n=t.getParent(),r=n?.rule;r&&(r[n.key]=j(m(e),r.type))})),pe.set(`sqref`,fe(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.r=r.split(/\s+/).join(`,`))}));let ge=new Map,k=[],A=new Map;A.set(`conditionalFormattings`,{from:`conditionalFormattings`,transparent:!0}),A.set(`conditionalFormatting`,{from:`conditionalFormatting`,to:{},openTag:e=>{e.setSource({rules:[]})},closeTag:e=>{let t=e.getSource(),n=t?.rules??[];for(let e=0;e<n.length;e++){let r=n[e];r.sqref=t.sqref,r.id?ge.set(r.id,r):k.push(r)}}}),A.set(`cfRule`,{from:`cfRule`,to:{},openTag:e=>{e.copyTo(`id`,$),e.copyTo(`type`,$),e.copyTo(`priority`,Q),e.copyTo(`stopIfTrue`,Z),e.copyTo(`operator`,$),e.copyTo(`text`,$),e.copyTo(`timePeriod`,$),e.copyTo(`aboveAverage`,Z),e.copyTo(`equalAverage`,Z),e.copyTo(`stdDev`,Q),e.copyTo(`bottom`,Z),e.copyTo(`percent`,Z),e.copyTo(`rank`,Q)},closeTag:e=>{let t=e.getSource();t&&e.getParent()?.rules?.push(t)}}),A.set(`sqref`,fe(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.sqref=r)})),A.set(`dataBar`,{from:`dataBar`,to:{},openTag:e=>{e.copyTo(`minLength`,Q),e.copyTo(`maxLength`,Q),e.copyTo(`gradient`,Z),e.copyTo(`border`,Z),e.copyTo(`direction`,$),e.copyTo(`axisPosition`,$),e.copyTo(`negativeBarColorSameAsPositive`,Z),e.copyTo(`negativeBarBorderColorSameAsPositive`,Z)},closeTag:e=>{e.getParent().dataBar=e.getSource()}}),A.set(`iconSet`,{from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,$),e.copyTo(`custom`,Z),e.copyTo(`reverse`,Z),e.copyTo(`showValue`,Z)},closeTag:e=>{e.getParent().iconSet=e.getSource()}});let N=new Map;N.set(`f`,fe(`f`,(e,t)=>{let n=t.getParent();if(!n)return;let r=e.trim(),i=Number(r);n.value=r.length>0&&Number.isFinite(i)?i:m(e)})),A.set(`cfvo`,{from:`cfvo`,to:{},scope:()=>N,openTag:e=>{let t=e.getParent();t.conditions||=[];let n=e.getSource();t.conditions.push(n),e.copyTo(`type`,$),!1===e.getAttribute(`gte`,Z)&&(n.exclusive=!0)}}),A.set(`f`,fe(`f`,(e,t)=>{let n=t.getParent();n&&(n.formulas??=[]).push(m(e))})),A.set(`dxf`,{from:`dxf`,to:{},raw:!0,closeTag:e=>{if(!d)return;let t=e.getParent();if(!t)return;let n=d(e.getRawXml()??``);n&&(t.style=n)}});let P=e=>({from:e,to:{},openTag:t=>{let n=Oe(e=>t.getAttribute(e));n&&(t.getParent()[e]=n)}});A.set(`borderColor`,P(`borderColor`)),A.set(`negativeFillColor`,P(`negativeFillColor`)),A.set(`negativeBorderColor`,P(`negativeBorderColor`)),A.set(`axisColor`,P(`axisColor`)),A.set(`cfIcon`,{from:`cfIcon`,to:{},openTag:e=>{let t=e.getAttribute(`iconSet`),n=e.getAttribute(`iconId`,Q);if(t===null||n===null)return;let r=e.getParent();r.icons||=[],r.icons.push({set:t,id:n})}});let _e=new Map;_e.set(`id`,fe(`id`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.x14Id=r)}));let ve=new Map;ve.set(`slicerList`,{from:`slicerList`,transparent:!0}),ve.set(`slicer`,de);let ye=new Map;ye.set(`timelineRefs`,{from:`timelineRefs`,transparent:!0}),ye.set(`timelineRef`,E);let be=new Map([[Xe(he),pe],[Xe(ke),A],[Xe(Be),A],[Xe(Ie),_e],[Xe(R),ve],[Xe(U),ve],[Xe(W),ye],[Xe(et),C]]),I=new Set;c.registerVisitor({from:`extLst`,transparent:!0}),c.registerVisitor({from:`ext`,transparent:!0,scope:e=>{let t=e.getAttribute(`uri`),n=Xe(t),r=be.get(n);if(r)return r;if(!st.has(n)&&!I.has(n)){I.add(n);let r=Ye[n];e.warn(r?`Extension content '${r}' (${t}) is not read; it will be lost on resave.`:`Unknown extension content (uri ${t}) is not read; it will be lost on resave.`)}return null}}),c.registerVisitor({from:`mergeCell`,to:[],openTag:e=>{let t=e.getAttribute(`ref`);e.setSource(t)}}),c.registerVisitor({from:`hyperlinks`,to:`hyperlinks`,openTag:e=>{e.setSource([])}}),c.registerVisitor({from:`hyperlink`,to:[],openTag:e=>{let n=e.getAttribute(`r:id`),r=e.getAttribute(`ref`);if(!r)return void e.warn(`A hyperlink has no ref; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.noRef`});e.setKey(r);let i=n?t(n):``;if(typeof i!=`string`)return void e.warn(`A hyperlink has an invalid address; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.address`});i.endsWith(`\\`)&&(i=i.substring(0,i.length-1));let a=e.getAttribute(`location`);if(a&&(i+=`#`+a),!i)return void e.warn(`A hyperlink has no address; it was dropped.`,{onceKey:`xlsx.sheet.hyperlink.address`});let o,s=e.getAttribute(`tooltip`),c=e.getAttribute(`display`);s||c?(o={address:i},s&&(o.screenTip=s),c&&(o.display=c)):o=i,e.setSource({r,v:o})}}),c.registerVisitor({from:`drawing`,to:`movables`,openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return;let r=t(n);r?e.setSource(r.movables):e.warn(`A drawing part is missing; its shapes were not imported.`,{onceKey:`xlsx.sheet.drawing.missing`})}}),c.registerVisitor({from:`legacyDrawing`,to:`legacyDrawing`,openTag:e=>{e.setSource(t(e.getAttribute(`r:id`),`legacyDrawing`)??void 0)}}),c.registerVisitor({from:`legacyDrawingHF`,to:`legacyDrawingHF`,openTag:e=>{e.setSource(t(e.getAttribute(`r:id`),`legacyDrawing`)??void 0)}});let L=null,xe=!1,Se=new Map,Ce={from:`Fallback`,to:null},we={from:`Choice`,transparent:!0};Se.set(`Fallback`,Ce),Se.set(`Choice`,we),Se.set(`control`,{from:`control`,transparent:!0,openTag:e=>{let n=e.getAttribute(`name`),r=e.getAttribute(`r:id`),i=r?t(r,`formControl`):null;if(!i)return e.warn(`The form control '${n??``}' has no properties and was not read.`,{onceKey:`xlsx.sheet.control.noProperties`}),void(L=null);let a=i.json,o=parseInt(e.getAttribute(`shapeId`)??``,10);isNaN(o)||(a.shapeId=o);let s={anchor:{tl:{c:0,r:0,x:0,y:0},br:{c:0,r:0,x:0,y:0}},content:{type:i.type,json:a}};n&&(s.content.name=n),L={movable:s,control:a}},closeTag:()=>{L&&=(e.movables||=[],e.movables.push(L.movable),null)}}),Se.set(`controlPr`,{from:`controlPr`,transparent:!0,raw:!0,openTag:e=>{if(!L)return;let t=e.getFrom().attributes??{},n={};for(let e in t){let r=t[e];n[e]=typeof r==`string`?r:r?.value??``}lt(n,L.control)},closeTag:e=>{if(!L)return;let t=(e=>{let t=/<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(e);if(!t)return null;let n=t[2],r=e=>RegExp(`<(?:[\\w.-]+:)?${e}\\b[^>]*>([\\s\\S]*?)<\\/(?:[\\w.-]+:)?${e}>`).exec(n)?.[1],i=t[1],a=/\bmoveWithCells="(?:1|true)"/.test(i),o=/\bsizeWithCells="(?:1|true)"/.test(i);return{anchor:{tl:tr(r(`from`)),br:tr(r(`to`))},anchorType:a?o?`twoCell`:`oneCell`:`absolute`,rest:(e.slice(0,t.index)+e.slice(t.index+t[0].length)).trim()}})(e.getRawXml()??``);t?(L.movable.anchor=t.anchor,t.anchorType!==`twoCell`&&(L.movable.anchorType=t.anchorType),t.rest&&(L.control.xml=t.rest)):xe||(xe=!0,e.warn(`A form control has no anchor; it is placed at the top left of the sheet.`))}});let Te={from:`controls`,transparent:!0,scope:()=>Se};c.registerVisitor(Te);let Ee=new Map([[`Choice`,we],[`Fallback`,Ce],[`controls`,Te]]);c.registerVisitor({from:`AlternateContent`,transparent:!0,scope:()=>Ee}),c.registerVisitor({from:`tableParts`,to:`tables`,openTag:e=>{e.setSource([])}}),c.registerVisitor({from:`tablePart`,to:[],openTag:e=>{let n=e.getAttribute(`r:id`);if(!n)return;let r=t(n);r?e.setSource(r):e.warn(`A table part is missing; the table was not imported.`,{onceKey:`xlsx.sheet.table.missing`})}});let De=(e,t)=>{t.conditions?.length&&(e.stops=b(t)),t.minLength!==void 0&&(e.minLength=t.minLength),t.maxLength!==void 0&&(e.maxLength=t.maxLength),(t.gradient??1)&&(e.gradient=!0),t.border&&t.borderColor&&(e.borderColor=t.borderColor),!t.negativeBarColorSameAsPositive&&t.negativeFillColor&&(e.negativeFillColor=t.negativeFillColor),!(t.negativeBarBorderColorSameAsPositive??1)&&t.negativeBorderColor&&(e.negativeBorderColor=t.negativeBorderColor),t.axisColor&&(e.axisColor=t.axisColor),t.axisPosition!==`middle`&&t.axisPosition!==`none`||(e.axisPosition=t.axisPosition),t.direction!==`leftToRight`&&t.direction!==`rightToLeft`||(e.direction=t.direction)},je=(e,t)=>{t.conditions?.length&&(e.stops=b(t)),t.iconSet&&t.iconSet!==e.iconSet&&(e.iconSet=t.iconSet),t.icons?.length&&(e.icon=t.icons),t.reverse!==void 0&&(e.reverse=t.reverse),t.showValue!==void 0&&(e.showValue=t.showValue)},Me=e=>{if(!e.sqref)return null;let t=e.sqref.split(/\s+/).join(`,`);if(e.type===`iconSet`){if(!e.iconSet)return null;let n={type:v.ScaleType.IconSet,stops:[]};return je(n,e.iconSet),{r:t,v:{scale:n},priority:e.priority}}let n=Ne(e,a);if(!n)return null;let r={condition:n};return e.style&&(r.style=e.style),e.stopIfTrue&&(r.stopIfTrue=!0),{r:t,v:r,priority:e.priority}};c.registerVisitor({from:`worksheet`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),n=t?.conditionals;if(n)for(let e=0;e<n.length;e++){let t=n[e],r=t.x14Id;if(!r)continue;delete t.x14Id;let i=ge.get(r);if(!i)continue;ge.delete(r);let a=t.v?.scale;i.dataBar&&a?.type===v.ScaleType.DataBar?De(a,i.dataBar):i.iconSet&&a?.type===v.ScaleType.IconSet&&je(a,i.iconSet)}let r=[...ge.values(),...k],i=new Set,o=0;for(let e=0;e<r.length;e++){let a=Me(r[e]);a?(n||(n=[],t.conditionals=n),n.push(a)):(i.add(r[e].type??`unknown`),o++)}if(o>0){let e=[...i].map(e=>`'${e}'`).join(`, `);a?.(o===1?`An x14-only conditional formatting rule (type ${e}) is not read and will be lost on resave.`:`${o} x14-only conditional formatting rules (types ${e}) are not read and will be lost on resave.`)}if(n){n.length>1&&n.sort((e,t)=>(e.priority??1/0)-(t.priority??1/0));for(let e=0;e<n.length;e++)delete n[e].priority}}}),c.registerVisitor({from:`customProperties`,to:`customProperties`,openTag:e=>{e.setSource([])},closeTag:e=>{let t=e.getSource();t.length>0&&(e.getParent().customProperties=t)}}),c.registerVisitor({from:`customPr`,to:{},openTag:e=>{let n=e.getParent();e.copyTo(`name`);let r=e.getAttribute(`r:id`);if(!r)return void e.warn(`A custom property names no part; it was not imported.`,{onceKey:`xlsx.sheet.customProperty.noRel`});let i=t(r,`resource`),a=e.getSource();a.resId=i,n.push(a)}}),c.registerVisitor({from:`sheetProtection`,to:`protection`,openTag:e=>{let t=e.getSource();for(let n of Fe){let r=e.hasAttribute(n.attribute)?e.getAttribute(n.attribute):null;t[n.key]=$e(n,r)}if(t.sheet)return;let n={};e.copyToObject(n,`hash`,$,`hashValue`),e.copyToObject(n,`algorithm`,$,`algorithmName`),e.copyToObject(n,`salt`,$,`saltValue`),e.copyToObject(n,`spinCount`,Q),e.copyToObject(n,`legacyHash`,$,`password`),Object.keys(n).length>0&&(e.getSource().password=n)}}),c.registerVisitor({from:`protectedRanges`,to:`protectedRanges`,openTag:e=>{e.setSource([])}}),c.registerVisitor({from:`protectedRange`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n};e.copyToObject(n,`name`),e.copyToObject(n,`securityDescriptor`);let i={};e.copyToObject(i,`hash`,$,`hashValue`),e.copyToObject(i,`algorithm`,$,`algorithmName`),e.copyToObject(i,`salt`,$,`saltValue`),e.copyToObject(i,`spinCount`,Q),e.copyToObject(i,`legacyHash`,$,`password`),Object.keys(i).length>0&&(n.password=i),e.setSource(r)},closeTag:e=>{let t=e.getSource();t?.r&&t.v.name||e.setSource(void 0)}}),c.registerVisitor({from:`sheetFormatPr`,to:`sheetFormatPr`,openTag:t=>{t.copyToObject(e,`defaultColSize`,kn,`defaultColWidth`);let n=t.getAttribute(`customHeight`);n!==`1`&&n!==`true`||t.copyToObject(e,`defaultRowSize`,kn,`defaultRowHeight`);let r=t.getAttribute(`baseColWidth`,Q);r&&r!==8&&(e.baseColSize=r),u=!!t.getAttribute(`zeroHeight`,Z)}}),c.registerVisitor({from:`cols`,to:`cols`,openTag:e=>{e.setSource([])}}),c.registerVisitor({from:`col`,to:[],openTag:e=>{let t=e.getSource(),n=e.getAttribute(`min`),r=e.getAttribute(`max`),i=n===void 0?0:parseInt(n)-1,a=r===void 0?i:parseInt(r)-1;t.r=_.runToString(i,a,!0);let o={};t.v=o,e.copyToObject(o,`sz`,kn,`width`),e.copyToObject(o,`csz`,Z,`customWidth`),e.copyToObject(o,`h`,Z,`hidden`),e.copyToObject(o,`l`,Q,`outlineLevel`),e.copyToObject(o,`cl`,Z,`collapsed`),e.getAttribute(`bestFit`,Z)&&(o.bf=!0),e.copyToObject(o,`s`,Q,`style`)}}),c.registerVisitor({from:`oleObjects`,to:null,openTag:e=>{e.warn(`'OLE Objects' are not supported.`)}});let Le=!1,Re=!1,ze=0,Ve=``,He=``,V=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)},H=new Zn;return pr(h,e,c.createEventHandler(e,i,a),a,o,{onOpenTag:e=>{Le=!0;let t=V(e.name);t===`t`||t===`v`?ze===0&&(Re=!0):t===`rPh`||t===`phoneticPr`?ze++:ze===0&&H.onOpenTag(t,e.attributes)},onText:e=>{Re&&(Ve+=e,H.onText(e))},onCloseTag:e=>{let t=V(e.name);t===`t`||t===`v`?Re=!1:t===`rPh`||t===`phoneticPr`?ze>0&&ze--:H.onCloseTag(t)},onEnd:()=>{if(!Le)return;let e=H.take();Le=!1,Re=!1,ze=0;let t=ct(Ve);return Ve=``,He=t,e?{t:`r`,v:{type:`richText`,data:{runs:Qn(e,s?.get(or))}}}:n(t)},onError:e=>{}},s,n,()=>u,()=>He)},cr=class{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}},lr=(e,t,n)=>{if(e[0].value[0]===e[1].value[0])return t},ur=/^\s*TABLE\s*\(/i,dr={colStart:0,colEnd:0,rowStart:0,rowEnd:0},fr=e=>e===`1`||e===`true`,pr=(e,t,n,i,o,s,c,l,u,d)=>{let h=!1,g=[],ee=c?.get(ar),v=c?.get(or),y=new Map,b=!1,x=[],ne=!1,S=null,C=null,ie=null,w=null,ae=null,T=null,oe=c?.get(`richData`)??r.EmptyArray,ce=null,le=!1,ue=_.normalizeA1ToR1C1,de=a.createConflatingRanges(),E=new Map,fe=[],pe=[],me=!1,he=!1,D=null,O=e=>{let t=c?.get(`metadata`)?.values;if(!t)return;let n=parseInt(e,10);if(!Number.isFinite(n)||n<1)return;let r=t[n-1]?.get(`XLRICHVALUE`);return r?.richValueIndex===void 0?void 0:oe[r.richValueIndex]},ge=!1,k=a.createConflatingRanges(),A,j=!1,M=-1,N=-1,P=null,_e=null,ve=e=>({t:`r`,v:{type:`hyperlink`,data:{address:A,friendly:e}}}),ye=null,F=[],be=null,I=-2,L=0,xe=``,R=``,Se=``,Ce=``,z=``,Te=``,Ee=``,De=``,Oe=``,ke=``,Ae=``,je=``,Me=``,Ne=``,Pe=!0,Fe=null,Ie=!1,Le=!1,Re=!1,ze=null,B=0,Be=e=>{let r=e.name,i=r.indexOf(`:`);if(i!==-1&&(r=r.slice(i+1)),B++,B%196608==0&&o?.(B),_e){let t=e.attributes;switch(r){case`v`:b=!0;break;case`f`:switch(ne=!0,t.t??null){case null:case`normal`:break;case`shared`:let e=t.si;C=t.ref,S=e;break;case`array`:C=t.ref,D=C;break;case`dataTable`:{let e=((e,t,n)=>{let r=e.r1,i=fr(e.del1);if(!r&&!i)return null;let a=e.ref??_.cellToString({rowIndex:t,colIndex:n}),o=_.fastStringToRange(a);if(!o)return null;let s={ref:{rowStart:o.rowStart,colStart:o.colStart,rowEnd:o.rowEnd,colEnd:o.colEnd}},c=fr(e.dt2D);if(c||fr(e.dtr)?(r&&(s.rowInput=r),i&&(s.rowInputDeleted=!0)):(r&&(s.columnInput=r),i&&(s.columnInputDeleted=!0)),c){let t=e.r2;t&&(s.columnInput=t),fr(e.del2)&&(s.columnInputDeleted=!0)}return s})(t,M,N);e&&(pe.push(e),fr(t.ca)&&k.append(M,N));return}}let e=t.ca;e!==void 0&&(ge=e===`1`);break;case`is`:j=!0;return}j&&!ne&&s?.onOpenTag?.(e)}else if(h){if(r===`c`){_e=e,A=void 0;let t=e.attributes,n=t.r;N=n===void 0?N+1:_.fastStringToCol(n);let r=t.t;r===void 0?ye=null:(ye=r,ye===`str`&&(j=!0));let i=t.s;i===void 0&&(ze!==null||Re)&&(i=`0`),i!==void 0&&(i=parseInt(i),Fe&&Fe.value===i&&Fe.colEnd+1===N?Fe.colEnd=N:(Fe={colStart:N,rowStart:M,colEnd:N,rowEnd:M,value:i},x.push(Fe))),D=null,he=!1,le=!1;let a=t.cm;me=a!==void 0&&(e=>{let t=c?.get(`metadata`)?.cells;if(!t)return!1;let n=parseInt(e,10);return!(!Number.isFinite(n)||n<1)&&!0===t[n-1]?.get(`XLDAPR`)?.fDynamic})(a);let o=t.vm;if(o!==void 0){let e=O(o);if(p.isError(e)){let t=e.getCode();P={t:`e`,v:t},me&&t===p.Code.Spill&&(he=!0)}}}}else{if(Le&&r===`row`){h=!0;let t=e.attributes.r;if(M=t===void 0?M+1:parseInt(t)-1,N=-1,u?.()){let e=g[g.length-1];e&&e.max+1===M?e.max=M:g.push({min:M,max:M})}if(L=0,R=e.attributes.customHeight,R!==void 0&&(L|=cr.CustomHeight),R!==Oe&&(Pe=!0,Oe=R),xe=e.attributes.ht,xe!==void 0&&(L|=cr.Ht),xe!==De&&(Pe=!0,De=xe),Se=e.attributes.hidden,Se!==void 0&&(L|=cr.Hidden),Se!==ke&&(Pe=!0,ke=Se),z=e.attributes.s,z!==void 0&&(L|=cr.S),z!==je&&(Pe=!0,je=z),Ce=e.attributes.customFormat,Ce!==void 0&&(L|=cr.CustomFormat),Ce!==Ae&&(Pe=!0,Ae=Ce),Te=e.attributes.outlineLevel,Te!==void 0&&(L|=cr.OutlineLevel),Te!==Me&&(Pe=!0,Me=Te),Ee=e.attributes.collapsed,Ee!==void 0&&(L|=cr.Collapsed),Ee!==Ne&&(Pe=!0,Ne=Ee),L!==0){if(I+1!==M||Pe){let e=R!==void 0&&(R===`1`||R===`true`),t=Ce!==void 0&&(Ce===`1`||Ce===`true`);ze=t&&z!==void 0?z:null,t&&ze===null&&(ze=`0`),be={min:M,max:M,value:{sz:xe===void 0?-1:parseFloat(xe),csz:e,h:Se!==void 0&&(Se===`1`||Se===`true`),s:ze===null?void 0:ze===`0`?0:parseInt(ze),l:Te===void 0||Te===`0`?0:parseInt(Te),cl:Ee!==void 0&&(Ee===`1`||Ee===`true`)}},F.push(be)}else be.max=M}I=M,Pe=!1;return}if(r===`sheetData`&&(Le=!0),!Ie&&r===`sheetData`){Ie=!0;let e=t.cols,n=e?e.length:0;for(let t=0;!Re&&t<n;t++)e[t].v.s&&(Re=!0)}n?.onOpenTag?.(e)}},Ve=t=>{let r=t.name;if(r===`sheetData`&&(Le=!1),!ne||r!==`c`&&r!==`f`||(S&&(w=E.get(S)??null),w&&(A=(e=>{if(e.length<11||(32|e.charCodeAt(0))!=104||!/^HYPERLINK\(/i.test(e))return;let t=1,n=!1,r=10;for(;r<e.length&&t>0;r++){let i=e.charCodeAt(r);n?i===34&&(e.charCodeAt(r+1)===34?r++:n=!1):i===34?n=!0:i===40?t++:i===41&&t--}if(t!==0||e.slice(r).trim().length>0)return;let i=/^HYPERLINK\(\s*"((?:[^"]|"")*)"\s*[,)]/i.exec(e);return i?i[1].replace(/""/g,`"`):null})(w[2]),de.append(M,N,w),ge&&k.append(M,N)),D!==null&&fe.push([D,me?he?`error`:`dynamic`:`fixed`]),ne=!1,w=null,S=null,C=null,b=!1,ge=!1,D=null,me=!1,he=!1),_e){let n=r.indexOf(`:`);if(n!==-1&&(r=r.slice(n+1)),j){if(r===`is`||r===`v`){let t=s?.onEnd?.();t==null||le&&d?.()===``||e.pushAt(M,N,A!==void 0&&typeof t==`number`?ve(d?.()??``):typeof t==`number`?``+t:t)}else r!==`f`&&s?.onCloseTag?.(t)}b&&=!1,r===`c`&&(_e=null,j=!1)}else{if(h)return h=!1,void(Fe=null);n?.onCloseTag?.(t)}},He=t=>{let r=t.trim();if(b){switch(P=null,ye){case null:case`n`:P=m.flushSubnormal(parseFloat(r));break;case`b`:P=r===`1`||r===`true`;break;case`s`:{let e=parseInt(r,10),t=y.get(e);if(t===void 0){let n=ee?.get(e);t=n?Qn(n,v):null,y.set(e,t)}P=t?{t:`r`,v:{type:`richText`,data:{runs:t}}}:r;break}case`d`:{let e=((e,t=!1)=>{if(!e)return null;let n=qn.exec(e);if(n){let[,e,t,r]=n;return e===void 0&&t===void 0&&r===void 0?null:(3600*parseFloat(e??`0`)+60*parseFloat(t??`0`)+parseFloat(r??`0`))/86400}let r=Kn.exec(e);if(!r)return null;let[,i,a,o,s,c,l,u]=r;if(i===void 0&&s===void 0)return null;let d=0;if(i!==void 0){let e=parseInt(i,10),n=parseInt(a,10),r=parseInt(o,10);if(n<1||n>12||r<1||r>31)return null;let s=Jn(e,n,r)-Yn;if(d=s<=60?s-1:s,t&&(d-=1462),d<0)return null}return s!==void 0&&(d+=(3600*parseInt(s,10)+60*parseInt(c,10)+(l===void 0?0:parseInt(l,10))+(u===void 0?0:parseFloat(u)))/86400),d})(r,!0===c?.get(ir));e===null?l&&(i?.(`Date '${r}' in cell ${_.cellToString({colIndex:N,rowIndex:M})} is not a date this workbook can hold; kept as text.`,void 0,`xlsx.cell.isoDateText`),P=``+l(r)):P=e;break}case`e`:if(r===`#VALUE!`){let e=_e.attributes.vm;if(e!==void 0){let t=O(e);if(p.isError(t)){P={t:`e`,v:t.getCode()};break}if(te.isJSON(t)){P={t:`r`,v:t};break}}}let e=p.getBuiltInByLabel(r);e?P={t:`e`,v:e.getCode()}:(P=r,i?.(`Unknown formula error '${r}' in cell ${_.cellToString({colIndex:N,rowIndex:M})}`));break;case`str`:case`inlineStr`:j=!0}P!==null&&e.pushAt(M,N,A===void 0||typeof P!=`number`&&typeof P!=`boolean`?P:ve(P))}let a=S!==null;if(S){if(ae===S)w=T;else{if(w=E.get(S)??null,!w){let e=[];ie=ue(r,M,N,e),w=[ie,e,r],E.set(S,w)}ae=S,T=w}S=null}if(ne){let e=r,t=a?void 0:c?.get(rr);if(t){let n=(e=>{if(e.length<Nn.length||e.slice(0,Nn.length).toUpperCase()!==Pn)return In;let t=Rn(e,Nn.length);if(t===null||e.charCodeAt(t.end)!==41||e.charCodeAt(t.end+1)!==44||e.charCodeAt(e.length-1)!==41)return In;let n=t.value;return n.toUpperCase()===Fn?Ln:n.length===0?In:{kind:`formula`,formula:n}})(r);n.kind!==`none`&&(ce??=new Bn(t),n.kind===`spilled`?le=ce.placeholder(M,N):ce.anchor(M,N,n.formula)&&(e=n.formula,ge||=(e=>zn(e).some(e=>we(e)||!0===re.get(e)?.getDeclaration().getReturnType()?.isVolatile()))(e)))}if(le)ge=!1;else{let t=[];ie=ue(e,M,N,t),w=[ie,t,e]}}j?s?.onText?.(t):h||n?.onText?.(r)},V={r:void 0,t:void 0,s:void 0,cm:void 0,vm:void 0},Ue={name:`c`,attributes:V,isSelfClosing:!1},H={t:void 0,si:void 0,ref:void 0,ca:void 0},We={name:`f`,attributes:H,isSelfClosing:!1},Ge={name:`v`,attributes:{},isSelfClosing:!1},U={r:void 0,s:void 0,ht:void 0,hidden:void 0,collapsed:void 0,customHeight:void 0,customFormat:void 0,outlineLevel:void 0},Ke={name:`row`,attributes:U,isSelfClosing:!1},qe=On.NEED_MORE,W=On.NOT_HANDLED,Je=On.decodeText,Ye=!1,Xe=(e,t,n,r)=>{for(;;){let i=0;for(;t<n&&((i=e.charCodeAt(t))===32||i===9||i===10||i===13);)t++;if(t>=n)return qe;if(i===62)return Ye=!1,t+1;if(i===47)return t+1>=n?qe:e.charCodeAt(t+1)===62?(Ye=!0,t+2):W;let a=t;for(;t<n&&(i=e.charCodeAt(t))!==61;){if(i===62||i===47||i===32||i===9||i===10||i===13)return W;t++}if(t+1>=n)return qe;let o=t-a,s=e.charCodeAt(t+1);if(s!==34&&s!==39)return W;let c=t+2,l=c;for(;l<n&&(i=e.charCodeAt(l))!==s;){if(i===38||i<32)return W;l++}if(l>=n)return qe;t=l+1;let u=e.charCodeAt(a);if(r===2)switch(o){case 1:u===114?U.r=e.slice(c,l):u===115&&(U.s=e.slice(c,l));break;case 2:e.startsWith(`ht`,a)&&(U.ht=e.slice(c,l));break;case 6:e.startsWith(`hidden`,a)&&(U.hidden=e.slice(c,l));break;case 9:e.startsWith(`collapsed`,a)&&(U.collapsed=e.slice(c,l));break;case 12:e.startsWith(`customHeight`,a)?U.customHeight=e.slice(c,l):e.startsWith(`customFormat`,a)?U.customFormat=e.slice(c,l):e.startsWith(`outlineLevel`,a)&&(U.outlineLevel=e.slice(c,l))}else if(r===0)o===1?u===114?V.r=e.slice(c,l):u===116?V.t=e.slice(c,l):u===115&&(V.s=e.slice(c,l)):o===2&&e.charCodeAt(a+1)===109&&(u===99?V.cm=e.slice(c,l):u===118&&(V.vm=e.slice(c,l)));else if(o===1)u===116&&(H.t=e.slice(c,l));else if(o===2){let t=e.charCodeAt(a+1);u===115&&t===105?H.si=e.slice(c,l):u===99&&t===97&&(H.ca=e.slice(c,l))}else o===3&&e.startsWith(`ref`,a)&&(H.ref=e.slice(c,l))}},Ze=(e,t,n)=>e.charCodeAt(t+1)===47&&e.charCodeAt(t+2)===n&&e.charCodeAt(t+3)===62;return{...n,onEnd:()=>{if(u?.()){let e=0,t=[],n=(e,t)=>({min:e,max:t,value:{sz:-1,csz:!1,h:!0,s:void 0,l:0,cl:!1}});for(let r of g)r.min>e&&t.push(n(e,r.min-1)),e=Math.max(e,r.max+1);e<=1048575&&t.push(n(e,1048575)),t.length>0&&(F.push(...t),F.sort((e,t)=>e.min-t.min))}F.length>0&&(t.rows=_.runsToRefs(F,!1));let r=de.done(lr);r=((e,t)=>{let n=null;for(let t=0;t<e.length;t++){let r=e[t];if(!ur.test(r.value[2]))continue;n??=new Map;let i=r.value[0],a=n.get(i);a?a.push(r):n.set(i,[r])}if(n===null)return e;let r=new Set;for(let e of n.values()){let n=e[0],i={rowStart:n.rowStart,colStart:n.colStart,rowEnd:n.rowEnd,colEnd:n.colEnd},a=0;for(let t=0;t<e.length;t++){let n=e[t];n.rowStart<i.rowStart&&(i.rowStart=n.rowStart),n.colStart<i.colStart&&(i.colStart=n.colStart),n.rowEnd>i.rowEnd&&(i.rowEnd=n.rowEnd),n.colEnd>i.colEnd&&(i.colEnd=n.colEnd),a+=(n.rowEnd-n.rowStart+1)*(n.colEnd-n.colStart+1)}if(a!==(i.rowEnd-i.rowStart+1)*(i.colEnd-i.colStart+1))continue;let o=Gn(_.resolveRelativeToA1(n.value[1],i.rowStart,i.colStart),i);if(o){t.push(o);for(let t=0;t<e.length;t++)r.add(e[t])}}return r.size===0?e:e.filter(e=>!r.has(e))})(r,pe);let i=r.length;if(i>0||pe.length>0){let e=Array(i);for(let t=0;t<i;t++){let n=r[t],i=_.rangeToString(n),a=n.value[1],o=_.resolveRelativeToA1(a,n.rowStart,n.colStart);e[t]=[i,o]}for(let t=0;t<pe.length;t++){let n=pe[t],r=n.ref;e.push([_.cellToString({rowIndex:r.rowStart,colIndex:r.colStart}),se(n)]),fe.push([_.rangeToString(r),`dynamic`])}t.formulas=e}let o=k.done(!0),s=o.length;if(s>0){let e=Array(s);for(let t=0;t<s;t++){let n=o[t],r=_.rangeToString(n);e[t]=r}t.volatile=e}ce&&fe.push(...ce.getFormulaArray()),fe.length>0&&(t.formulaArray=[...fe]);let c=x.length;if(c>0){x.sort(a.createRangeComparator(f.Axis.Column));let e=x[0],n=e.colStart,r=e.colEnd,i=e.rowEnd,o=e.value,s=[];s.push(e);let l=null;for(let t=1;t<c;t++)l=x[t],o!==l.value||n!==l.colStart||r!==l.colEnd||i+1!==l.rowEnd?(s.push(l),e=l,n=e.colStart,r=e.colEnd,i=e.rowEnd,o=e.value):(i=l.rowEnd,e.rowEnd=i);let u=s.length,d=Array(u);for(let e=0;e<u;e++){let t=s[e],n=_.rangeToString(t);d[e]=[n,t.value]}t.directStyles=d}let l=e.build();l&&(t.data=l.tuples),n?.onEnd?.()},onOpenTag:Be,onCloseTag:Ve,onText:He,elementScanners:[{name:`c`,scan:(e,t,n)=>{if(!h||_e!==null)return W;V.r=V.t=V.s=V.cm=V.vm=void 0;let r=Xe(e,t+2,n,0);if(r<0)return r;let i=V.t;if(V.r===void 0||i===`str`||i===`inlineStr`)return W;let a=!1,o=-1,s=-1,c=-1,l=-1,u=r;if(!Ye)for(H.t=H.si=H.ref=H.ca=void 0;;){let t=e.indexOf(`<`,r);if(t===-1||t+3>=n)return qe;for(let n=r;n<t;n++){let t=e.charCodeAt(n);if(t!==32&&t!==9&&t!==10&&t!==13)return W}let i=e.charCodeAt(t+1),d=e.charCodeAt(t+2);if(i===47){if(!Ze(e,t,99))return W;u=t+4;break}if(i===102&&!a&&c===-1&&(d===32||d===62||d===47)){if(a=!0,r=Xe(e,t+2,n,1),r<0)return r;if(H.t===`dataTable`)return W;if(Ye)continue;let i=e.indexOf(`<`,r);if(i===-1||i+3>=n)return qe;if(!Ze(e,i,102))return W;o=r,s=i,r=i+4}else if(i===118&&d===62&&c===-1){let i=e.indexOf(`<`,t+3);if(i===-1||i+3>=n)return qe;if(!Ze(e,i,118))return W;c=t+3,l=i,r=i+4}else return W}return Be(Ue),a&&(Be(We),s>o&&He(Je(e.slice(o,s))),Ve(We)),c!==-1&&(Be(Ge),l>c&&He(Je(e.slice(c,l))),Ve(Ge)),Ve(Ue),u}},{name:`row`,openTag:Ke,scan:(e,t,n)=>{if(!Le||h||_e!==null)return W;U.r=U.s=U.ht=U.hidden=U.collapsed=U.customHeight=U.customFormat=U.outlineLevel=void 0;let r=Xe(e,t+4,n,2);return r<0?r:Ye||U.r===void 0?W:(Be(Ke),r)}}]}},mr=new Map([[`urn:schemas-microsoft-com:vml`,`v`],[`urn:schemas-microsoft-com:office:office`,`o`],[`urn:schemas-microsoft-com:office:excel`,`x`]]),hr=[...mr].map(([e,t])=>` xmlns:${t}="${e}"`).join(``),gr=/<(\/?)([A-Za-z_][\w.-]*(?::[\w.-]+)?)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/g,_r=/(\s+)([A-Za-z_][\w.-]*(?::[\w.-]+)?)(\s*=\s*)("[^"]*"|'[^']*')/g,vr=/\sxmlns(?::([\w.-]+))?\s*=\s*(?:"([^"]*)"|'([^']*)')/g;function yr(e){if(!e||!(e=>{let t;for(vr.lastIndex=0;(t=vr.exec(e))!==null;){let e=mr.get(t[2]??t[3]??``);if(e&&e!==(t[1]??``))return!0}return!1})(e))return e;let t=[],n=(e,n,r)=>{let i=e.indexOf(`:`);if(i===-1&&r)return null;let a=i===-1?``:e.substring(0,i);if(a===`xmlns`)return null;let o=((e,n)=>{let r=n?.get(e);if(r!==void 0)return r;for(let n=t.length-1;n>=0;n--){let r=t[n].bindings.get(e);if(r!==void 0)return r}})(a,n),s=o===void 0?void 0:mr.get(o);return s?`${s}:${i===-1?e:e.substring(i+1)}`:null},r=!1,i=!1,a=e.replace(gr,(e,a,o,s,c)=>{if(a){let r=t[t.length-1],i=n(o,null,!1);return r&&r.name===o&&(r.nested>0?r.nested--:t.pop()),i?`</${i}>`:e}let l=(e=>{let t,n=null;for(vr.lastIndex=0;(t=vr.exec(e))!==null;)(n??=new Map).set(t[1]??``,t[2]??t[3]??``);return n})(s);l?.forEach((e,t)=>{let n=[...mr].find(([,e])=>e===t)?.[0];n&&n!==e&&(r=!0)});let u=n(o,l,!1),d=s.replace(_r,(e,t,r,i,a)=>{if(r===`xmlns`||r.startsWith(`xmlns:`)){let t=a.slice(1,-1);return mr.has(t)?``:e}let o=n(r,l,!0);return o?`${t}${o}${i}${a}`:e});if(i||(i=!0,d=d.replace(/\s+$/,``)+hr),!c){let e=t[t.length-1];l?t.push({name:o,bindings:l,nested:0}):e&&e.name===o&&e.nested++}return`<${u??o}${d}${c}>`});return r?e:a}var br={creator:`author`,category:`category`,description:`comments`,contentStatus:`contentStatus`,created:`creationDate`,keywords:`keywords`,lastModifiedBy:`lastAuthor`,modified:`lastModifiedDate`,lastPrinted:`lastPrinted`,revision:`revisionNumber`,subject:`subject`,title:`title`},xr={Company:`company`,Manager:`manager`},Sr={lpwstr:C.Type.String,lpstr:C.Type.String,bstr:C.Type.String,i1:C.Type.Number,i2:C.Type.Number,i4:C.Type.Number,i8:C.Type.Number,int:C.Type.Number,ui1:C.Type.Number,ui2:C.Type.Number,ui4:C.Type.Number,ui8:C.Type.Number,uint:C.Type.Number,r4:C.Type.Float,r8:C.Type.Float,decimal:C.Type.Float,bool:C.Type.Boolean,filetime:C.Type.Date,date:C.Type.Date},Cr=e=>{let t=e.kind?Sr[e.kind]:void 0;if(!t)return null;let n=e.value.trim(),r;if(t===C.Type.String)r={key:e.key,type:t,value:e.value};else if(t===C.Type.Boolean){if(n!==`true`&&n!==`false`&&n!==`1`&&n!==`0`)return null;r={key:e.key,type:t,value:n===`true`||n===`1`}}else if(t===C.Type.Date){let i=new Date(n);if(!n||isNaN(i.getTime()))return null;r={key:e.key,type:t,value:i.toISOString()}}else{let i=Number(n);if(!n||!Number.isFinite(i))return null;let a=t===C.Type.Number&&i>=-2147483648&&i<=2147483647;r={key:e.key,type:a?t:C.Type.Float,value:i}}return e.linkTarget&&(r.linkTarget=e.linkTarget),r},wr=`hiddenXfs`,Tr=e=>(Array.isArray(e)?e[1]:e?.v)?.s,Er=e=>{if(!e||e.length===0)return!1;let t=_.refsToRuns(e,!0),n=0;for(let e of t){if(e.min>n||e.value?.s===void 0)return!1;n=Math.max(n,e.max+1)}return n>ue},Dr=(e,t)=>{e.protection={...e.protection,showFormulas:t}},Or=`pivotButtonXfs`,kr=(e,n)=>{let r=e.styles?.direct;if(!r||r.length===0)return;let i=null,a=new Map,o=new Map,s=(e,s,c,l)=>{let u=``;l&&(u=o.get(l)??t.JSONStableStringify(l),o.set(l,u));let d=`${e}|${s??``}|${c??``}|${u}`,f=a.get(d);if(f!==void 0)return f;let p=r[e],m=p?jr(p,s,c,l):null,h=n?.get(e);return f=m===p?e:m||h!==void 0?((e,a)=>{if(!i){i=new Map;for(let e=0;e<r.length;e++){let a=t.JSONStableStringify(r[e]),o=n?.get(e);o!==void 0&&(a+=`|${o}`),i.has(a)||i.set(a,e)}}let o=t.JSONStableStringify(e);a!==void 0&&(o+=`|${a}`);let s=i.get(o);return s===void 0&&(s=r.length,r.push(e),i.set(o,s),a!==void 0&&n.set(s,a)),s})(m??{},h):null,a.set(d,f),f},c=new Map((e.pivotCaches??[]).map(e=>[e.cacheId,e.fields]));for(let t of e.sheets??[]){let e=k(t),n=e?.pivotTables,r=e?.directStyles;if(!e||!n||n.length===0||!r||r.length===0)continue;let i=r,a=!1;for(let e of n){let t=Ar(e,c.get(e.cacheId));if(!t)continue;let n=[];for(let e of i){let r=_.fastStringToRange(e[0]),i=Rr(r,t.coords);if(!i){n.push(e);continue}a=!0;for(let t of zr(r,i))n.push([_.rangeToString(t),e[1]]);let{rowIndex:o,colIndex:c}=t.origin;for(let r=i.rowStart;r<=i.rowEnd;r++){let a=i.colStart,l=null,u=e=>{l!==null&&n.push([_.rangeToString({rowStart:r,rowEnd:r,colStart:a,colEnd:e}),l])};for(let n=i.colStart;n<=i.colEnd;n++){let{numberFormat:d,labelIndent:f,user:p}=t.formats.formatAt(r-o,n-c),m=s(e[1],d,f,p);n!==i.colStart&&m===l||(n!==i.colStart&&u(n-1),a=n,l=m)}u(i.colEnd)}}i=n}a&&(e.directStyles=i)}},Ar=(e,t)=>{let n=h(e,t);if(!n||!e.location)return null;let r=_.fastStringToRange(e.location),i={rowIndex:r.rowStart-n.top,colIndex:r.colStart};return i.rowIndex<0||r.rowEnd!==i.rowIndex+n.rows-1?null:{coords:{rowStart:i.rowIndex,colStart:i.colIndex,rowEnd:r.rowEnd,colEnd:i.colIndex+n.columns-1},origin:i,formats:n}},jr=(e,t,n,r)=>{let i=e,a=r?.numberFormat??t??0;if(e.numberFormat!==void 0&&Mr(e.numberFormat,a)){let{numberFormat:e,...t}=i;i=t}let o=i.alignment;if(n!==null&&o?.horizontal===u.HorizontalAlignment.Left&&(o.indent??0)===n){let{horizontal:e,indent:t,...n}=o,{alignment:r,...a}=i;i=Lr(n)?a:{...a,alignment:n}}if(r){let{numberFormat:e,...t}=r;if(i=Fr(i,t),i.alignment&&Lr(i.alignment)){let{alignment:e,...t}=i;i=t}}if(i===e)return e;for(let e of Object.keys(i))if(i[e]!==void 0&&(e!==`named`||i.named!==d.BuiltInName.Normal))return i;return null},Mr=(e,t)=>e===t||l.toBuiltInID(e)===l.toBuiltInID(t),Nr=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Pr=(e,n)=>!(!Nr(e)||!Nr(n))&&(e.patternType===`solid`&&n.patternType===`solid`?e.foreground===n.foreground:t.JSONStableStringify(e)===t.JSONStableStringify(n)),Fr=(e,t)=>{let n=null,r=(t,r)=>{n??={...e},r===void 0?delete n[t]:n[t]=r};for(let n of Object.keys(e)){let i=e[n],a=t[n];if(a!==void 0&&i!==void 0){if(n===`fill`)Pr(i,a)&&r(n);else if(Nr(i)&&Nr(a)){let e=Fr(i,a);e!==i&&r(n,Object.keys(e).some(t=>e[t]!==void 0)?e:void 0)}else i===a&&r(n)}}return n??e},Ir={vertical:u.VerticalAlignment.Bottom,relativeIndent:0,overflow:u.Overflow.Visible,rotation:0},Lr=e=>Object.keys(e).every(t=>e[t]===void 0||Ir[t]===e[t]),Rr=(e,t)=>{let n=Math.max(e.rowStart,t.rowStart),r=Math.min(e.rowEnd,t.rowEnd),i=Math.max(e.colStart,t.colStart),a=Math.min(e.colEnd,t.colEnd);return n<=r&&i<=a?{rowStart:n,rowEnd:r,colStart:i,colEnd:a}:null},zr=(e,t)=>{let n=[];return e.rowStart<t.rowStart&&n.push({...e,rowEnd:t.rowStart-1}),e.rowEnd>t.rowEnd&&n.push({...e,rowStart:t.rowEnd+1}),e.colStart<t.colStart&&n.push({rowStart:t.rowStart,rowEnd:t.rowEnd,colStart:e.colStart,colEnd:t.colStart-1}),e.colEnd>t.colEnd&&n.push({rowStart:t.rowStart,rowEnd:t.rowEnd,colStart:t.colEnd+1,colEnd:e.colEnd}),n},Br=`xfComplements`,Vr=(e,t)=>{if(typeof e==`string`)return void t.push(e);let n=Array.isArray(e)?e:[e];for(let e=0;e<n.length;e++){let r=_.rangeToString(n[e]);r&&t.push(r)}},Hr=e=>{let t=Array.isArray(e)?e[1]:e.v;if(!t||!(`s`in t))return;let n=t.s;return delete t.s,n},Ur=(e,t,n,r)=>{if(!e)return;let i=t?2:1,a=t?n.rowStart:n.colStart,o=t?n.rowEnd:n.colEnd,s,c=-1;for(let n of e){let e=_.refToRun(n,t),l=Hr(n);e&&l!==void 0?l!==c||(t?s.colEnd:s.rowEnd)+1!==e.min?(s={colStart:t?e.min:a,rowStart:t?a:e.min,colEnd:t?e.max:o,rowEnd:t?o:e.max,value:{kind:i,index:l}},c=l,r.push(s)):t?s.colEnd=e.max:s.rowEnd=e.max:c=-1}},Wr={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.macroEnabled.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.binary.macroEnabled.main":`workbooks`,"application/vnd.ms-excel.addin.macroEnabled.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":`workbooks`,"application/vnd.ms-excel.template.macroEnabled.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":`sheets`,"application/vnd.ms-excel.worksheet":`sheets`,"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":`charts`,"application/vnd.ms-excel.chartsheet":`charts`,"application/vnd.ms-excel.macrosheet+xml":`macros`,"application/vnd.ms-excel.macrosheet":`macros`,"application/vnd.ms-excel.intlmacrosheet+xml":`macros`,"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":`dialogs`,"application/vnd.ms-excel.dialogsheet":`dialogs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":`strs`,"application/vnd.ms-excel.sharedStrings":`strs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":`styles`,"application/vnd.ms-excel.styles":`styles`,"application/vnd.openxmlformats-package.core-properties+xml":`coreprops`,"application/vnd.openxmlformats-officedocument.custom-properties+xml":`custprops`,"application/vnd.openxmlformats-officedocument.extended-properties+xml":`extprops`,"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":`comments`,"application/vnd.ms-excel.comments":`comments`,"application/vnd.ms-excel.threadedcomments+xml":`threadedcomments`,"application/vnd.ms-excel.person+xml":`people`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":`metadata`,"application/vnd.ms-excel.sheetMetadata":`metadata`,"application/vnd.ms-excel.featurepropertybag+xml":`featurePropertyBag`,"application/vnd.ms-excel.externalLink":`links`,"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":`links`,"application/vnd.openxmlformats-officedocument.theme+xml":`themes`},Gr=w({readXLSX:()=>Xr}),Kr=e=>e.startsWith(`/`)?e.slice(1):e,qr=[208,207,17,224,161,177,26,225],Jr=/^xl\/worksheets\/[^/]+\.xml$/i,Yr=e=>typeof e==`string`?e:(e?.runs??[]).map(e=>e.text??``).join(``),Xr=async(a,c)=>{let{password:l,onVBA:u,profile:f,calcOnLoad:p=`auto`,createWorkbookOptions:m={},...h}=c??{};await b.load();let v=!!m.origin&&typeof m.origin!=`string`,y=f?new Dt(typeof f==`function`?f:void 0):null,x=[],te=(e,t,n)=>{x.push([e,t??``,n])},ne={onWarning:te},C=c?.progress,w=C?.onProgress?C.onProgress.bind(C):void 0,T=a.byteLength,se=0,ce=0,le=w?e=>{if(se<=0)return;ce+=e;let t=Math.min(T,Math.round(ce/se*T));w(t,T)}:void 0,E=e(()=>import(`./7Xk_eQAcM_HgWrOC.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url),me=null;try{me=new DOMParser}catch{}let he=null;try{he=new XMLSerializer}catch{}let D,O,j,M=null;me||(M=e(()=>import(`./J_xJVgE7YlmeU-ZO.js`).then(e=>ae(e.default,1)),__vite__mapDeps([16,14]),import.meta.url));try{let[e,t]=await Promise.all([M,E]);D=new t.DOMTransformer,O=me??new e.DOMParser,j=he??new e.XMLSerializer}catch(e){throw Error(`Unable to load XLSX parser.`,{cause:e})}let N=e=>j.serializeToString(e);if((e=>{if(e.byteLength<qr.length)return!1;let t=new Uint8Array(e,0,qr.length);return qr.every((e,n)=>t[n]===e)})(a))throw new s(`This is an Excel 97-2003 workbook (.xls), which cannot be read. Save it as '.xlsx' and try again.`);let F;try{F=await K.create(a)}catch(e){throw new s(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`,{cause:e})}y?.mark(`zip-open`);try{if(!F.has(`[Content_Types].xml`))throw new s(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);let a=e=>{let t=F.getEntry(e);return t?{content:t}:void 0},o={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],metadata:[],people:[],featurePropertyBag:[],overrides:{},sst:``,style:``,defaults:{}};{let e=((e,t)=>({onOpenTag:t=>{let n=(e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)})(t.name),r=t.attributes;if(n===`Override`){let t=r.ContentType,n=r.PartName;if(!t||!n)return;e.overrides[n.startsWith(`/`)?n.slice(1):n]=t;let i=Wr[t],a=i?e[i]:void 0;Array.isArray(a)&&a.push(n)}else if(n===`Default`){let t=r.Extension,n=r.ContentType;t&&(e.defaults[t.toLowerCase()]=n)}},onEnd:()=>{e.sst=e.strs.length>0?e.strs[0]:``,e.style=e.styles.length>0?e.styles[0]:``},onError:e=>{t?.(`Error parsing content types: ${e?.message??e}`)}}))(o,e=>{x.push([e,`[Content_Types].xml`])}),t=await F.getTextStream(`[Content_Types].xml`);if(!t)throw Error(`Error parsing content types: '[Content_Types].xml'`);try{await _n.parseStream(t,e,{xmlns:!1})}catch(e){throw Error(`Error parsing content types: '[Content_Types].xml'`,{cause:e})}v&&await F.getBuffer(`[Content_Types].xml`)}y?.mark(`content-types`);let c=o.sst,l=new Set;for(let e of o.sheets)l.add(Kr(e));c&&l.add(Kr(c));for(let e of l)se+=F.uncompressedSize(e);if(await F.prefetch(e=>!l.has(e)&&!Jr.test(e)),y?.mark(`prefetch-side-parts`),o.workbooks.length===0){let e=Ze(`_rels/.rels`,a,O,D,ne);if(e){for(let t of e.values())if(t.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`&&t.target){o.workbooks.push(t.target);break}}}if(o.workbooks.length===0)throw new s(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);let h=m?.resources??new ee,b=h.beginPersist(),ae={},ce=new Set,E=new Map;E.set(`parseInlineDxf`,e=>{if(!e)return;let t=O.parseFromString(`<dxf xmlns:x14="${fe}" xmlns:xm="${de}">${e}</dxf>`,`text/xml`)?.documentElement;if(!t)return;let n=D.parseDxf(t,``,ne);return Object.keys(n).length>0?n:void 0});let me=I(`metadata`,o,a,O,D,ne).entries().next()?.value?.[1]?.metadata;me&&E.set(`metadata`,me),E.set(nr,je());let he=new Map,j=[],M=new Set,L=e=>{M.add(Kr(e))},R=(e,t=he)=>{let n=e.lastIndexOf(`/`),r=e.substring(0,n+1)+`_rels/`+e.substring(n+1,e.length)+`.rels`,i=t.get(r);return i||(i=Ze(r,a,O,D,B),t.set(r,i)),i},z=(e,t,n,r=he)=>{let i=R(t,r).get(e),o=i?.target;if(!o)return null;if(i.targetMode===`External`){if(!n)return i.target;let e=h.add({source:{external:i.target}});return e.addReference(ae),ce.add(e),b.toResourceId(e)}let s=t.lastIndexOf(`/`),c=t.substring(0,s+1);o.startsWith(`/`)||(o=c+o),o=Ee(o);let l=D?.getVisitorParamsState().get(`dxfs`),u=r.get(o);if(!u){if(i.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`){let e={};u=e,j.push((async()=>{let t=sr(e,(e,t)=>t===`legacyDrawing`?Oe(e,o):t===`formControl`?ke(e,o):t===`part`?Ae(e,o):z(e,o,t===`resource`)??null,U,l,()=>{},(e,t,n)=>{te(e,t?`${t} (${o})`:o,n)},void 0,E),n=await F.getTextStream(o,le);if(n)try{await _n.parseStream(n,t,{xmlns:!1,lean:!0})}catch(e){throw Error(`Error parsing sheet: '${o}'`,{cause:e})}let i=R(o,r);if(i){De(e,o,i,r),ze(e),Ce(e);let t=[];i.forEach((e,n)=>{if(e.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable`)return;let r=Ae(n,o,e.type,e=>e!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition`);if(!r?.xml)return;let i=/<pivotTableDefinition\b[^>]*>/.exec(r.xml)?.[0]??``,a=parseInt(/\scacheId="(\d+)"/.exec(i)?.[1]??``,10);if(isNaN(a))return void x.push([`Pivot table '${r.name}' names no cache and was dropped.`,o]);let s=/\sname="([^"]*)"/.exec(i)?.[1],c=Je(r.xml);if(!c)return void x.push([`Pivot table '${r.name}' states no location and was dropped.`,o]);let l=D?.getVisitorParamsState(),u=Ge(l?.get(`numFmts`),l?.get(`dxfs`)),d=oe(r.xml,u),f=d?void 0:at(r.xml,u);t.push({...s?{name:ye(s)}:{},cacheId:a,location:c,part:r,...f?{partFormats:f}:{},...d})}),t.length>0&&(e.pivotTables=t)}})())}else if(i.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink`){let e=V(o,a,O,D,B);if(e&&Object.keys(e).length!==0){let t=e,n=t.__bookRelId,i=t.__absoluteUrlRelId;delete t.__bookRelId,delete t.__absoluteUrlRelId;let a=[];R(o,r)?.forEach((e,t)=>{if(e.targetMode===`External`&&e.type&&e.target){let r={type:e.type,target:e.target};t===n?r.role=`book`:t===i&&(r.role=`absoluteUrl`),a.push(r)}}),a.sort((e,t)=>(e.role===`book`?0:1)-(t.role===`book`?0:1)),t.sources=a,L(o),u=t}else u=null}else u=n?We(o,a,(e,t)=>{let n=h.add({source:{buffer:e}});return n.addReference(ae),ce.add(n),b.toResourceId(n)},B):V(o,a,O,D,B)}return u},we=(e,t)=>{if(!e)return null;let n=R(t,he)?.get(e);if(!n?.target||n.targetMode===`External`)return null;let r=n.target;return r.startsWith(`/`)||(r=t.substring(0,t.lastIndexOf(`/`)+1)+r),Ee(r)},De=(e,t,n,i)=>{let a=[],o=new Map,s=[];n.forEach((e,n)=>{if(e.type!==`http://schemas.microsoft.com/office/2017/10/relationships/threadedComment`)return;let r=z(n,t,!1,i)?.comments;if(!r)return;for(let e=0;e<r.length;e++){let t=r[e];if(!t?.v?.id)continue;let{parentId:n,done:i,content:c,...l}=t.v,u={...l,content:Yr(c)};n?s.push({parentId:n,json:u}):(i&&(u.done=!0),o.set(u.id,u),a.push({r:t.r,v:u}))}let c=we(n,t);c&&L(c)});for(let e=0;e<s.length;e++){let{parentId:t,json:n}=s[e],r=o.get(t);r&&(r.replies??=[]).push(n)}let c=[];if(n.forEach((e,n)=>{if(e.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`)return;let a=z(n,t,!1,i),s=a?.comments;if(!s)return;let l=a?.authors;for(let e=0;e<s.length;e++){let t=s[e];if(!t?.r)continue;let n=l&&t.v.authorId!==void 0?l[t.v.authorId]:void 0;if(n&&n.startsWith(`tc=`)){if(o.has(ot(n.substring(3))))continue;n=void 0}let i={id:r.uuidV4().toUpperCase(),asNote:!0,content:t.v.content??``},a=n?Re({displayName:n}):void 0;a&&(i.personId=a.id),c.push({r:t.r,v:i})}let u=we(n,t);u&&L(u)}),a.length===0&&c.length===0)return;let l=[...a,...c],u=e.legacyDrawing;if(u?.xml){let{rest:t,notes:n}=Ke(u.xml);if(n.length>0){let r=new Map;for(let e=0;e<n.length;e++){let t=n[e];r.set(_.cellToString({rowIndex:t.row,colIndex:t.col}),t)}for(let e=0;e<l.length;e++){let t=l[e],n=r.get(String(t.r).toUpperCase());if(!n||(r.delete(String(t.r).toUpperCase()),!t.v.asNote))continue;let i=it(n.xml),a={};if(i.anchor){let[e,t,r,o,s,c,l,u]=i.anchor;a.anchor={tl:{c:e-n.col,x:t,r:r-n.row,y:o},br:{c:s-n.col,x:c,r:l-n.row,y:u}}}else i.bounds&&(a.bounds=i.bounds);i.style.fill&&(a.fill=i.style.fill),i.style.stroke&&(a.stroke=i.style.stroke),i.xml&&(a.xml=i.xml),(a.anchor||a.bounds||a.fill||a.stroke||a.xml)&&(t.v.box=a),i.visible&&(t.v.shown=!0),i.alt&&(t.v.description=i.alt)}let i=[];r.forEach(e=>{i.push(e.xml)});let a=ut(t,i);a?u.xml=a:delete e.legacyDrawing}}e.comments=l},Oe=(e,t)=>{let n=we(e,t);if(!n)return null;let r=a(Kr(n));if(!r)return null;let i={xml:yr(new TextDecoder(`utf-8`).decode(r.content))},o=[];return R(n,he)?.forEach((e,t)=>{if(e.type!==`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`)return;let r=z(t,n,!0);typeof r==`number`&&o.push({id:t,resId:r})}),o.length>0&&(i.images=o),L(n),i},ke=(e,t)=>{let n=we(e,t);if(!n)return null;let r=V(n,a,O,D,B)?.formControl??null;return r&&L(n),r},Ae=(e,t,n,r,i=new Set)=>{let s=we(e,t);if(!s||i.has(s))return null;let c=n??R(t,he)?.get(e)?.type;if(!c)return null;let l=a(Kr(s));if(!l)return null;i.add(s);let u=s.substring(s.lastIndexOf(`/`)+1),d=o.overrides[Kr(s)]??o.defaults[u.substring(u.lastIndexOf(`.`)+1).toLowerCase()],f={id:e,type:c,name:u};if(d&&(f.contentType=d),((e,t)=>e?e.endsWith(`+xml`)||e===`application/xml`:/\.(xml|rels|vml)$/i.test(t))(d,u))f.xml=new TextDecoder(`utf-8`).decode(l.content);else{let n=z(e,t,!0);if(typeof n!=`number`)return null;f.resId=n}let p=[];return R(s,he)?.forEach((e,t)=>{if(!e?.type||r&&!r(e.type))return;if(e.targetMode===`External`){let n=z(t,s,!0);typeof n==`number`&&p.push({id:t,type:e.type,resId:n});return}let n=Ae(t,s,e.type,r,i);n&&p.push(n)}),p.length>0&&(f.parts=p),L(s),f},Me=I(`coreprops`,o,a,O,D,ne),Ne=I(`extprops`,o,a,O,D,ne),Pe=I(`custprops`,o,a,O,D,ne);Pe.forEach((e,t)=>{e?.custom&&L(t)});let Fe=new S,Ie=I(`people`,o,a,O,D,ne);if(Ie.size>0){let[e,t]=Ie.entries().next().value;Fe.fromJSON(t?.persons),L(e)}let Re=e=>{if(e)return Fe.add(e).toJSON()},B={paramMap:E,getRefs:R,getRef:z,parsedRefs:he,readEmbeddedPart:(e,t)=>Ae(e,t),addPerson:Re,serializeElement:N,onWarning:te},Be=[],Ve=new Map;if(E.set(ar,Ve),c){let e=await F.getTextStream(c,le);if(e){let t=((e,t)=>{let n=!1,r=!1,i=0,a=``,o=new Zn;return{onOpenTag:e=>{let t=Xn(e.name);t===`t`?n&&i===0&&(r=!0):t===`si`?(n=!0,a=``,o.reset(),i=0):t===`rPh`||t===`phoneticPr`?i++:n&&i===0&&o.onOpenTag(t,e.attributes)},onText:e=>{r&&(a+=e,o.onText(e))},onCloseTag:t=>{let s=Xn(t.name);s===`t`?r=!1:s===`si`?(e(ct(a),o.take()??void 0),n=!1,a=``):s===`rPh`||s===`phoneticPr`?i>0&&i--:o.onCloseTag(s)},onError:e=>{t?.(`Error parsing shared strings: ${e?.message??e}`)}}})((e,t)=>{t&&Ve.set(Be.length,t),Be.push(e)},e=>{te(e,c)});try{await _n.parseStream(e,t,{xmlns:!1})}catch(e){throw Error(`Error parsing shared strings: '${c}'`,{cause:e})}}}y?.mark(`shared-strings`);let He=Be.length,Ue=new Map,H=He,U=e=>{let t=Ue.get(e);if(t!==void 0)return t;let n=H;return Ue.set(e,H++),Be.push(e),n},qe=[];o.slicersCache=qe;let W=F.getNames(),Ye=W.length;for(let e=0;e<Ye;e++){let t=W[e];t&&(t.startsWith(`xl/slicerCache`)||t.startsWith(`xl/timelineCaches/`)&&t.endsWith(`.xml`))&&qe.push(`/${t}`)}let Xe=I(`slicersCache`,o,a,O,D,B),Qe=new Map;Xe.forEach((e,t)=>{e?.cacheName&&(e.cachePath=t,Qe.set(e.cacheName,e))}),E.set(`slicerCaches`,Qe);let $e=[];o.slicers=$e;for(let e=0;e<Ye;e++){let t=W[e];t&&(t.startsWith(`xl/slicers/`)||t.startsWith(`xl/timelines/`))&&t.endsWith(`.xml`)&&$e.push(`/${t}`)}let et={getFile:a,domParser:O,getAddress:(e,t)=>{let n=z(t,e,!1);return typeof n==`string`?n:null},getBytes:(e,t)=>{let n=we(t,e),r=n?a(n.substring(1))?.content:void 0;return r?r.slice().buffer:null},addFetched:(e,t)=>{let n=h.add({source:{buffer:e},fetchedFrom:t});return n.addReference(ae),ce.add(n),b.toResourceId(n)},markAbsorbed:L},nt=new Map;for(let e of be.getAll())nt.set(e.structure,e.beginRead(et));let st=((e,t)=>{let n=n=>{let r=e(n);return r?t.parseFromString(new TextDecoder().decode(r.content),`text/xml`).documentElement??null:null},r=G(n(gt),`s`).map(e=>({t:e.getAttribute(`t`)??``,keys:Ct(e)})),i=G(n(_t),`rv`).map(e=>{let t=G(e,`fb`)[0];return{s:parseInt(e.getAttribute(`s`)??`-1`,10),values:G(e,`v`).map(e=>e.textContent??``),fb:t?t.textContent??``:null}}),a=G(n(vt),`a`).map(e=>{let t=wt(e),n=parseInt(e.getAttribute(`r`)??``,10),r=parseInt(e.getAttribute(`c`)??``,10),i=n>0?n:t.length;return{rows:i,columns:r>0?r:Math.max(1,Math.ceil(t.length/Math.max(1,i))),items:t}}),o=G(n(yt),`s`).map(Ct),s=n(bt),c=G(G(s,`spbArrays`)[0],`a`).map(wt),l=G(G(s,`spbData`)[0],`spb`).map(e=>({s:parseInt(e.getAttribute(`s`)??`-1`,10),values:G(e,`v`).map(e=>e.textContent??``)})),u=n(xt),d=Tt(G(G(u,`global`)[0],`keyFlags`)[0]),f=new Map;for(let e of G(G(u,`types`)[0],`type`))f.set(e.getAttribute(`name`)??``,Tt(G(e,`keyFlags`)[0]));let p=n(St),m=G(G(p,`dxfs`)[0],`dxf`).map(e=>G(e,`numFmt`)[0]?.getAttribute(`formatCode`)??null),h=G(G(p,`richProperties`)[0],`rPr`).map(e=>e.getAttribute(`n`)??``);return{structures:r,values:i,arrays:a,bagStructures:o,bagArrays:c,bags:l,globalKeyFlags:d,typeKeyFlags:f,richStyles:G(G(p,`richStyles`)[0],`rSty`).map(e=>{let t=new Map;for(let n of G(e,`rpv`)){let e=h[parseInt(n.getAttribute(`i`)??`-1`,10)];e&&t.set(e,n.textContent??``)}let n=parseInt(e.getAttribute(`dxfid`)??``,10);return{numberFormat:t.get(`NumberFormat`)??(n>=0?m[n]??null:null),isTitle:t.get(`IsTitleField`)===`1`,isHero:t.get(`IsHeroField`)===`1`}})}})(a,O),lt=ge(st,nt,e=>{te(e,`/xl/richData/rdrichvalue.xml`)});E.set(`richData`,st.values.map((e,t)=>lt.cellValue(t)));for(let e=0;e<Ye;e++){let t=W[e];t.startsWith(`xl/richData/`)&&!t.includes(`/_rels/`)&&L(t)}let dt=I(`themes`,o,a,O,D,B),pt=null;if(dt&&dt.entries){let e=dt.entries().next();e?.value?.[1]&&(pt=e.value[1])}let mt=new g(pt),ht=I(`styles`,o,a,O,D,B).entries().next()?.value?.[1];ht&&=JSON.parse(t.JSONStableStringify(ht));let Et=I(`workbooks`,o,a,O,D,B);E.set(ir,!0===Et.entries().next().value?.[1]?.date1904),(m.calcOnLoad??p)!==`none`&&E.set(rr,((e,t)=>{let n=new Set;if(e)for(let t=0;t<e.length;t++)n.add(String(e[t]?.name).toUpperCase());if(t)for(let e=0;e<t.length;e++)try{let r=t[e](()=>{throw Error(`Not evaluating.`)},(e,t,r,i)=>{for(let e of Object.keys(i))n.add(e.toUpperCase())},new Map);for(let e of r.keys())n.add(e.toUpperCase())}catch{}return e=>n.has(e)||re.has(e)})(Et.entries().next().value?.[1]?.names,m.functions)),y?.mark(`side-parts-json`),await Promise.all(j);{let e=Et.entries().next().value?.[1],t=je(e?.names),n=e?.sheets??[];for(let e=0;e<n.length;e++){let r=n[e],i=xe(r);if(r?.kind===`macro`&&i?.part.xml){i.part.xml=ve(i.part.xml,Be);continue}let a=k(r);a&&P(a,t)}let r=e?.names;if(r)for(let e=0;e<r.length;e++){let n=r[e]?.ref;typeof n==`string`&&(r[e].ref=t.readDetached(n))}}w&&se>0&&(w(T,T),await new Promise(e=>setTimeout(e,0))),y?.mark(`sheets`);let K={...Et.entries().next().value?.[1],styles:ht,theme:mt.toJSON()},Dt=((e,t,n,r)=>{let i={},a=(e,t)=>{if(e)for(let{key:n,value:r}of e){let e=t[n];if(e&&r){if(e===`revisionNumber`){let e=parseInt(r,10);Number.isFinite(e)&&(i.revisionNumber=e)}else i[e]=r}}};if(a(e,br),a(t,xr),n){let e=[];for(let t of n){let n=Cr(t);n?e.push(n):r?.(`The custom document property '${t.key}' holds a value of a kind that is not read (${t.kind?`vt:`+t.kind:`none`}); it was dropped.`,`xlsx.docProps.custom.kind`)}e.length>0&&(i.custom=e)}return Object.keys(i).length>0?i:void 0})(Me.values().next().value?.properties,Ne.values().next().value?.properties,Pe.values().next().value?.custom,(e,t)=>{te(e,`docProps/custom.xml`,t)});Dt&&(K.properties=Dt),((e,t)=>{if(!t||t.size===0)return;let n=e.styles;if(!n)return;let r=new Set,i=new Set;for(let n of e.sheets??[]){let e=k(n);if(!e)continue;let a=new Set;Er(e.cols)||a.add(0);for(let t of e.directStyles??[])a.add(Array.isArray(t)?t[1]:t.v);for(let t of e.rows??[]){let e=Tr(t);e!==void 0&&a.add(e)}for(let t of e.cols??[]){let e=Tr(t);e!==void 0&&a.add(e)}let o=!1;for(let e of a)if(t.has(e)){o=!0;break}if(o){e.protection={...e.protection??{sheet:!0},showFormulas:!1};for(let e of a)(t.has(e)?i:r).add(e)}}if(r.size===0)return;let a=n.direct??=[];for(let e of r)e!==0&&Dr(a[e]??(a[e]={}),!0);for(let e of i)e!==0&&Dr(a[e]??(a[e]={}),!1);if(r.has(0)){let e=n.named??=[],t=d.BuiltInName.Normal.toLowerCase(),r=e.find(e=>e.name?.toLowerCase()===t);r||(r={name:d.BuiltInName.Normal,style:{}},e.push(r)),Dr(r.style,!0)}})(K,E.get(wr)),((e,t)=>{if(t&&t.size!==0)for(let n of e.sheets??[]){let e=k(n),r=e?.pivotTables;if(!e||!r||r.length===0)continue;let i=r.map(pe),a=r.map(()=>[]);for(let[n,r]of e.directStyles??[]){if(!t.has(r))continue;let e=_.fastStringToRange(n);for(let t=0;t<i.length;t++){let n=i[t];if(!n)continue;let r=Math.max(e.rowStart,n.rowStart),o=Math.min(e.rowEnd,n.rowEnd),s=Math.max(e.colStart,n.colStart),c=Math.min(e.colEnd,n.colEnd);if(r>o||s>c)continue;let l=_.rangeToString({rowStart:r-n.rowStart,rowEnd:o-n.rowStart,colStart:s-n.colStart,colEnd:c-n.colStart});l&&a[t].push(l)}}for(let e=0;e<r.length;e++)a[e].length>0&&(r[e].buttons=a[e])}})(K,E.get(Or));let Ot=E.get(Br);kr(K,Ot),(e=>{let t={colStart:0,rowStart:0,colEnd:ue,rowEnd:Te};for(let r of e.sheets??[]){let e=k(r);if(!e)continue;let a=[];if(Ur(e.cols,!0,t,a),Ur(e.rows,!1,t,a),a.length===0)continue;let o=[];for(let[t,n]of e.directStyles??[])o.push({..._.fastStringToRange(t),value:{kind:0,index:n}});o.push(...a);let s=[],c=new n.IteratorInstance(o,{axis:i.Column});for(let e=c.next();!e.done;e=c.next()){let n=e.value.overlaps,r;if(n.length===1){if(r=n[0].value,r.index===0)continue}else{let e,t,i;for(let r=0;!e&&r<n.length;r++){let a=n[r].value;a.kind===0?e=a:a.kind===1?t=a:i=a}r=e??t??i}s.push([_.rangeToString(e.value.range,t),r.index])}s.length>0?e.directStyles=s:delete e.directStyles}})(K),Ot&&((e,t,n)=>{if(!t||t.size===0||!n)return;let r=e=>{if(e===void 0||e===0)return null;let r=t.get(e);return r===void 0?null:n.controls[r]??null};for(let t of e.sheets??[]){let e=k(t);if(!e)continue;let n=new Map;for(let t of e.directStyles??[]){let e=Array.isArray(t)?t[0]:t.r,i=r(Array.isArray(t)?t[1]:t.v);if(!i)continue;let a=JSON.stringify(i),o=n.get(a);o||(o={control:i,addresses:[]},n.set(a,o)),Vr(e,o.addresses)}if(n.size===0)continue;let i=[...e.cellControls??[]];for(let{control:e,addresses:t}of n.values())i.push({r:t.join(`,`),v:e});e.cellControls=i}})(K,Ot,I(`featurePropertyBag`,o,a,O,D,B).values().next().value?.featurePropertyBag);{let e=new Map;I(`slicers`,o,a,O,D,B).forEach((t,n)=>{t?.slicers&&e.set(n,t.slicers)}),ft(K,{warn:(e,t)=>{te(e,`xl/slicers`,t)},markAbsorbed:L,slicerParts:e})}K.calc={...K.calc??{},legacyIntersect:!0},Be.length>0&&(K.strings=Be);let kt=Fe.toJSON();kt&&kt.length>0&&(K.people=kt);let At=F.getEntry(`xl/vbaProject.bin`);if(At)try{let{VBAProject:t}=await e(async()=>{let{VBAProject:e}=await import(`./w3bV7wggRayUYTd-.js`);return{VBAProject:e}},__vite__mapDeps([17,18]),import.meta.url),n=t.extract(At);if(n){let e=new Map;for(let t of K.sheets??[]){let n=k(t),r=n?.codeName;r&&e.set(r,n)}for(let r of n.modules){let n={language:`vba`},{header:i,body:a}=t.splitAttributes(r.code);a&&(n.source=a),i&&(n.sourceHeader=i);let o=r.type===`document`?e.get(r.name):void 0;o||r.type!==`document`||(n.scope=`workbook`);let s=o?o.modules??={}:K.modules??={};s[r.name]||(s[r.name]=n)}u?.(n)}else x.push([`Unable to parse VBA project.`,`xl/vbaProject.bin`])}catch(e){x.push([`Error extracting VBA: ${e?.message??e}`,`xl/vbaProject.bin`])}let jt=E.get(`calcId`),Mt=jt===void 0||!(Number(jt)>=191029),Nt=m.calcOnLoad??(p===`auto`&&Mt?`full`:p),Pt={...m,calcOnLoad:Nt,resources:h,json:K};if(Pt.disableLoadAutoFit===void 0){let e=E.get(Se);Pt.disableLoadAutoFit=!!e?.declared&&e.normalIsThemeFont&&await tt(e.faces)}y?.mark(`json-assembled`);let Ft=new ie(Pt);if(y?.mark(`workbook-constructed`),ce.forEach(e=>{e.deleteReference(ae)}),b.endPersist(),v){A(Ft);let e=new Map,t=0;for(let n of F.getNames()){let r=F.getEntry(n);if(!r)continue;let i=F.getRawEntry(n),a=i?{data:r,uncompressedSize:F.uncompressedSize(n),raw:{compressedData:i.data,compressionMethod:i.compressionMethod,signature:i.signature}}:{data:r,uncompressedSize:F.uncompressedSize(n)};e.set(n,a),t+=r.byteLength}if(t>67108864)x.push([`Source package too large to retain (${t} bytes, limit ${Le}); unmodeled parts will be dropped on save.`,`SourcePackage`]);else if(e.size>0){let t=new rt(e,M);_e(Ft,t);let n=Ft.getWorksheets().getItems(),r=Ft.getTransactions().addListener({onCommitEnd:e=>{let n=e.getOperation()?.name;n!==`insertCells`&&n!==`deleteCells`||t.markStructuralChange()}}),i=Ft.addListeners({onSheetsChange:()=>{let e=Ft.getWorksheets().getItems();(e.length!==n.length||e.some((e,t)=>e!==n[t]))&&t.markStructuralChange(),n=e}});Ft.addListeners({onClose:()=>{r(),i(),A(Ft)}})}}if(x.length&&C?.onWarning){let e=new Set;for(let t of x){let[n,r,i]=t,a=i??n;e.has(a)||(e.add(a),C.onWarning(n,r))}}return y&&!0===f&&console.table(y.toTable()),await Ft.whenFontsReady(),Ft}catch(e){let t=`Unable to parse XLSX.`;throw e instanceof o&&(t=`Unable to open XLSX. There are too many rows or columns.`),Error(t,{cause:e})}finally{await F.close().catch(()=>{})}};export{Or as a,Xr as i,wr as n,or as o,Br as r,Gr as t};
|