@sheetxl/mcp 0.8.0-beta.23 → 0.8.0-beta.24
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/{CSisGJ4hiDhTi19U.js → 2YT_wstXIH6UIigi.js} +1 -1
- package/assets/{E-KM5RFByUxjlkId.js → 3VycPrqi6qgLOgGY.js} +6 -6
- package/assets/{B2zUUqxAJ1RiM7YI.js → 6CBUVbF01Bedq0e2.js} +43 -43
- package/assets/{BVUfaOAGhdMim8yB.js → 76dPHG5RYA7MUV_g.js} +3 -3
- package/assets/{CtlrxXVgZDIOcuc1.js → 7IzItpr7MkdnaAwh.js} +169 -169
- package/assets/{BBuB6ffvyg2Cd7V5.js → 7vPlH3_rhJxmmBvG.js} +1 -1
- package/assets/{aTxgpOOxLenli4af.js → 9GnbVPKozgrJpeLW.js} +1 -1
- package/assets/{DuQU8JjPLBIK804w.js → B-5mBXpY9i6-eCrZ.js} +29 -29
- package/assets/{CH8DNTUgM79xk8Tt.js → B-t1q2NS61c2B8E4.js} +1 -1
- package/assets/{BomatnedZsGMF7MW.js → B16G2473LTkZP6Mq.js} +150 -131
- package/assets/{DoP6myQHGI-X1gNy.js → B4uS01J0mrSJSftQ.js} +84 -84
- package/assets/{CC7EfXPwp7_nSBIz.js → B6caaQsfOpFEgYQ4.js} +1 -1
- package/assets/{2xkoVdiI70Gpaxoc.js → B7lATTNffVTrDsKE.js} +2 -2
- package/assets/{DgLQfXTWavoBetna.js → B8bEJ65vQRqsfBlS.js} +5 -5
- package/assets/{BGxwDpW8DkO8W0Ig.js → BAVltO4Xf7lC0Xr6.js} +1 -1
- package/assets/{CgYef9dYxY8YyUTE.js → BH7ctzMzOYVTGxzA.js} +1 -1
- package/assets/{CBMMHYgUAhgiJhJE.js → BJqo8c5bFKjnq69G.js} +11 -11
- package/assets/{CQCPJBQD0qv9y8qE.js → BJwiwzwx4Bl5L4Vq.js} +1 -1
- package/assets/{BJMeWtr7TiLNpt17.js → BPNLZ07Bu_B8Yhf1.js} +1 -1
- package/assets/{BWeaY19OpTJK5v0n.js → BWLavTnANLUerdS0.js} +2 -2
- package/assets/{gver5Sz7ZO6ZyrOi.js → BXWGS09xFG81nnIT.js} +1 -1
- package/assets/{DvkBNkPyR5kuS0Uo.js → BaYk1vO2hP2S3_1w.js} +2 -2
- package/assets/{PVGDjdR9C4stMNpM.js → BifwlrCmEVtjh_1U.js} +1 -1
- package/assets/{BPtf3_nlovO4r9Bm.js → BjyXkr-CzV8mVx0t.js} +1 -1
- package/assets/{DACd4ZjYwzNE7Koc.js → BkHeIMSE7-LehRCs.js} +1 -1
- package/assets/{DLuQ_rdu0XjYF7Jq.js → BkekCZ17YTtd07_C.js} +2 -2
- package/assets/{BDSNdgf_hbhX1DhN.js → BnNB_ejvNaLu6B3o.js} +1 -1
- package/assets/{f_dBJuakO_BJ7Tvm.js → BrJd9jVVv9SQzZol.js} +335 -335
- package/assets/{1J1R3dclFOh322Yr.js → BrYc6PLonux_gI6b.js} +209 -209
- package/assets/{CrTLWpsRNBSyTLor.js → BxwB3iTNSE1TgHkb.js} +1 -1
- package/assets/{Cx1bc-Dsja7W3GlB.js → By1QPrSxtnRiJu0R.js} +2 -2
- package/assets/{jKIDENA_QP4bEX49.js → ByYJTTTUuu67hDF-.js} +4 -4
- package/assets/{DXmebUOAhtW4V6BO.js → C-nA4SXN5hWHaxV6.js} +556 -556
- package/assets/{BNEBXKAh-N4Tygk7.js → C0uu0vLKQh0S508B.js} +23 -23
- package/assets/{Bjk1Twm0RFO_3fS8.js → C6PNMev7cs5JLgwy.js} +1 -1
- package/assets/{Cl04_aSpBHTwfsQR.js → C9iFJ52KwQTePQ81.js} +10248 -10246
- package/assets/{dep8oZGwBmUpxjHl.js → CCF6CwJ6cbeLRl23.js} +1 -1
- package/assets/{Cg1tSmK_AGJa2VeI.js → CEk658HeLJk2cAjM.js} +3 -3
- package/assets/{DiJexWBIzdGj1H0H.js → CFNtPYPfDPH-3BXK.js} +1 -1
- package/assets/CFT_tDogP98gTbh7.js +304 -0
- package/assets/{BKpicdc9H5WnZPb-.js → CFWwwr74qRKOBrg9.js} +1 -1
- package/assets/{5MnsnJcajdtAujE2.js → CIY_RiLu1_FmRLAA.js} +1 -1
- package/assets/{DcO0gub7cRKVw4xB.js → CIw6ZC3K9x-ccacl.js} +1 -1
- package/assets/{KhdF512BKcJXZMvq.js → CJ2hV-9ipqOEkLSG.js} +1 -1
- package/assets/{wKkW4LO-iUp92LVC.js → CKD460cQOgwF6uSV.js} +1 -1
- package/assets/{NDe-uS1n_Q7u1H3m.js → CM-q_J5aF6YXmjeu.js} +3 -3
- package/assets/{a9lvcAd7rWsWSWAo.js → CR1aLf7CWEfPTO9a.js} +1 -1
- package/assets/{BlhJHu9ni2T9IaM1.js → CSXmTA6w6Pnbtqvb.js} +1 -1
- package/assets/{DfBERTJjS9LP0RSp.js → CT4czEKWIj1GeQN8.js} +1 -1
- package/assets/{Dg5QmWm0uBTEjZy4.js → CUYQlZz5zWsUdmRy.js} +1 -1
- package/assets/{ChbkkN_JqbAGrUwB.js → CbJWbjmv4bz4ppIZ.js} +303 -303
- package/assets/{C8G_px4dGuR2KjJh.js → Cf0zmfQYfJ7zM0Ya.js} +1 -1
- package/assets/{2XwVsSfo5wF5K-HA.js → Ch9w7xFxVMrvGuC_.js} +1 -1
- package/assets/{BZaXHnsJ6RkCZsnz.js → CmkgQ5-IG0BSCM3R.js} +3 -3
- package/assets/{DZt1ONN8CTTfmHGn.js → CmwNIrRssYuLN2fn.js} +606 -606
- package/assets/{t4qTfgdlstczTs2z.js → CnI4Nli8vtWdFKvf.js} +21 -21
- package/assets/{BdUFL3lVdwifHrf0.js → CnKX5SPVE2iuSK42.js} +1 -1
- package/assets/{DPjWOMoJ-elAAOmS.js → CpvJUGg9ckuCIpIS.js} +1 -1
- package/assets/{DN1RRp4qQfCq3JAO.js → Cxzowsi6ASdZtzeI.js} +1 -1
- package/assets/{BYbzf-TVwbKQPCyK.js → CzRvg04_TIbwBH5C.js} +3 -3
- package/assets/{D7oYfHgO0kEqAnPV.js → D-vo2bQyAmStQmD9.js} +1 -1
- package/assets/{Cl8_HMhRgzPzqFc7.js → D6d1DKL15m52ZCuC.js} +1 -1
- package/assets/{DUytcsu0MV3GnsrM.js → D8k9de_hen-KqBWe.js} +1 -1
- package/assets/{B3YRTBFhX61z6rJv.js → DE7G34oYbvrfXbJ7.js} +385 -380
- package/assets/{YtxPcFPURJF6CxWu.js → DFVQIZ2zZyAphhCF.js} +1 -1
- package/assets/{BynbAjhJnLjyP7HH.js → DGI_8HyNF0eAv0P5.js} +1 -1
- package/assets/{DtETpSxSR8C1voac.js → DGOgx3-IyO8bjF_t.js} +94 -94
- package/assets/{CyhngJo16o7G18lq.js → DIgPlkEabQdKNUQn.js} +1 -1
- package/assets/{KMTTqSwDthnXnD4F.js → DJGYlGr2Zj7SkYqc.js} +1 -1
- package/assets/{BazhmjGvrL7pqVQP.js → DJfpKncnYnrr28G0.js} +1 -1
- package/assets/{DV3PnM9lo0AW-YOA.js → DL8pez0eKo8arYPj.js} +3 -3
- package/assets/{BcWSfKJ9Atkc0X_p.js → DM-yGHahbfA_uarn.js} +1 -1
- package/assets/{DIAQ_WlBCWhgHt-z.js → DMDTS0LH9Ke9t-3z.js} +1 -1
- package/assets/{D5O3m16KeyU_oXqH.js → DNSWaXblwhTtI3w7.js} +1 -1
- package/assets/{D-PYDPXobSWiPh1D.js → DOSWSyKkK4eSi4PD.js} +2 -2
- package/assets/{Bbmh8_bdk_HrQ5Y6.js → DPLTGglaPovTg9e5.js} +1 -1
- package/assets/{WuKVkvMPAOmRaCDY.js → DPYFRLJbHGlrcrJq.js} +2 -2
- package/assets/{CqP4H_-kRRjcxO91.js → DRq6lQLndj73WT35.js} +1 -1
- package/assets/{BI8kb-rd9dW85XJs.js → DRzZ4bEyLRGVOLzV.js} +1 -1
- package/assets/{CnUYevzhUJYNqLad.js → DUbIxDAzW1dzrtdI.js} +1 -1
- package/assets/{Dawi8y7JWn6A9gAx.js → DXCTHw-ZutNIuo_2.js} +1 -1
- package/assets/{CEsRqYMd5IjnAzzX.js → D_tdoUtUe7cApQJn.js} +4 -4
- package/assets/{WH1Vl-MDWX3vSMn1.js → DaF9L7No8h8a-cqb.js} +2 -2
- package/assets/{BULbMlvQuB2WFBFE.js → DaHD9SY75O8wDy3p.js} +2 -2
- package/assets/{C6_KHS3-ROddeSbS.js → Daaro0HbHkKXkBP-.js} +2 -2
- package/assets/{CE-9VKh5-Xwxnxmu.js → DczQhB3mRSUw6GCf.js} +1 -1
- package/assets/Dfv_T_PQVL0O3lu5.js +14 -0
- package/assets/{Cidwv57sKqhIrpHP.js → Dhy6iU_09lrQnOAV.js} +28 -28
- package/assets/{DL8wUEe2Kx7bjDYP.js → Dk9zYXO3VoBhTdex.js} +1 -1
- package/assets/{DrKr8dXQEQ3Aukmt.js → DkQ4kxEKhKYQgfjK.js} +1 -1
- package/assets/{BLr8y5StL65VZQxG.js → Dlqk7XqKnAZ8Pcj3.js} +89 -89
- package/assets/{CwrOCbcS4IHLsERQ.js → DqSBb1HmgeU7eg_i.js} +84 -84
- package/assets/{D60N4r1a2YsNEwqj.js → Ds4TB1hn56-RK6_f.js} +1 -1
- package/assets/{L9RIicOHtZd2Rx8g.js → DtVSjxL6N_7WyM8Z.js} +1 -1
- package/assets/{CGLapmkNccH1g_ZJ.js → DuEtCJEnG_GnJzTX.js} +1 -1
- package/assets/{DJ2jlogB1DWlGM-J.js → DwNcvKM47ZHfvQM6.js} +1 -1
- package/assets/{DbbNJyL67KdOK7nc.js → DyiH3LlinD-38bG7.js} +1 -1
- package/assets/{DSyZaCML62gSnudE.js → Jy-_0a72nn5Iv1NK.js} +1 -1
- package/assets/{CPZgEZ2jKoo7hS6g.js → KMzONx2Ps841nJHj.js} +8 -8
- package/assets/{CndRpNCcV89ncnqz.js → LM2rVDHdB0jVUFcT.js} +1 -1
- package/assets/{D5PpcRuJYSv0i2y9.js → MosMza0-rXD8uHX_.js} +2 -2
- package/assets/{sIWsnPhnHm_MeeM9.js → NAWWzA_hk4wYtsPP.js} +2 -2
- package/assets/{BbU6aT_c6-4tkcCw.js → P6V3JAiRpC3BWceC.js} +1 -1
- package/assets/{CzoRlNMlpFz4iax3.js → TZnuVwhVjkOBax9F.js} +2 -2
- package/assets/{BEsnJS5jYwkHNcZd.js → TdDTOcC1TYhk6UuR.js} +1 -1
- package/assets/{CE5DhB5As59VJ-Ig.js → Xccc6oxtlSvJUDsC.js} +1 -1
- package/assets/{BPorbjbkH-VoV1M0.js → a2e_g9YI3J-lUD7-.js} +1 -1
- package/assets/{MzfM7zDcnyOFK1lK.js → b8yACuWy67eIj_j2.js} +1 -1
- package/assets/{CpyybSV2kR6b-SIB.js → bv3fZLUPzd14I58C.js} +263 -263
- package/assets/{DAliB9N1z6qnw4NO.js → doqBmhonQlHp-1Ud.js} +1 -1
- package/assets/{CCBQDcCHI47PZ0YQ.js → fEfisM0E2fUYKIyU.js} +5 -5
- package/assets/{q1rCdlJA6Z7tA6om.js → flby0g5gyZ9P2Wu2.js} +1 -1
- package/assets/{DKKLWACR9GsidnkS.js → g2Nu44uuSJFMzxEV.js} +2 -2
- package/assets/{Bz08KxFupjbdsoFx.js → mZt9BTEejCJZ4YK4.js} +1 -1
- package/assets/{Dol52NFQzLCbObuC.js → qc7rA-Z3a4rkVQPx.js} +225 -225
- package/assets/{DL7_uGw6KiZhlvR8.js → sJVPCrgeh0U6LbAK.js} +1 -1
- package/assets/{CHG4ZuzhyjGRuKBg.js → suLYEZBtGUhSYeB7.js} +1 -1
- package/assets/{qjyVXZeVSr_qZfX5.js → tWO-mE87mAuj1qih.js} +2 -2
- package/assets/{PiFW6uPRJABzK3V1.js → xD41vsQY6h60lCqz.js} +14 -14
- package/assets/{CeVCLRwjkH3_OXJu.js → yz2PTfYm_8EGJPM5.js} +1 -1
- package/index.js +191 -191
- package/lib.js +1 -1
- package/licenses/dependencies.txt +114 -114
- package/package.json +2 -2
- package/screenshot-page/assets/{Ce8b0lOBuWKlfLzJ.js → B-0-chiwq4MIUQy9.js} +1 -1
- package/screenshot-page/assets/{C9a-cNha8mBw5q-l.js → B7pXfEVkcbaMBMhc.js} +1 -1
- package/screenshot-page/assets/{CAQ7QWes7j7Fq8o5.js → BDRMUi2BsnBqytIq.js} +1 -1
- package/screenshot-page/assets/{DrnzLCa7NIirMxno.js → BEjJHVSbtlsNtoq7.js} +3 -3
- package/screenshot-page/assets/{JM0_BaBZ3yF6lnHC.js → BIuMiduMHSsTGacU.js} +2 -2
- package/screenshot-page/assets/{DvRXbyteeo_8sy8T.js → BKwDvElKinpn1IK0.js} +1 -1
- package/screenshot-page/assets/{Cbbl3H042tb0krfe.js → BTJ1NNUzHotNDiDe.js} +2 -2
- package/screenshot-page/assets/BbT5KRhoeAKLzy54.js +2 -0
- package/screenshot-page/assets/{BAxPBeFudRJ3OqIC.js → BcZPWw18bdj_ZvA9.js} +1 -1
- package/screenshot-page/assets/{B2PWru6Ty7ODc2Ie.js → Bfq6-treWd_rRiWl.js} +1 -1
- package/screenshot-page/assets/{Bml69dFBVggmVWda.js → Bg9UyX4yrB2mSdJt.js} +23 -23
- package/screenshot-page/assets/Bxq4FCQhyPbVhhaR.js +2 -0
- package/screenshot-page/assets/{DEAD_MduPNVoT_T6.js → CNB6WmYfGVZjlCKV.js} +1 -1
- package/screenshot-page/assets/{DtQFcMvZesaQ4xRf.js → CSFFMEKyxEFaykqL.js} +1 -1
- package/screenshot-page/assets/{DXbOBAxx4_2rt5KM.js → CXeJV1BW2CVemhPE.js} +1 -1
- package/screenshot-page/assets/{DMbFr7oWja7Qpsm6.js → C_YKEkTsGB_5gFNg.js} +2 -2
- package/screenshot-page/assets/{D7Y0npF3FMsGUjgO.js → CkxmJxdtjBIxYoMq.js} +1 -1
- package/screenshot-page/assets/CtiTwHzd_ZSzd3W2.js +1 -0
- package/screenshot-page/assets/{ONNSfQ8RDOqBDsvw.js → CwCu_r0BW41uLt3P.js} +2 -2
- package/screenshot-page/assets/{CEL5lzj2NDYwJ-HC.js → Cx9eq2x1gIXGki3Q.js} +1 -1
- package/screenshot-page/assets/D43IayseD2Cy8OZo.js +4 -0
- package/screenshot-page/assets/{CaOsWPeN_FXseSNg.js → D6Ciix7JAZtdKqmj.js} +1 -1
- package/screenshot-page/assets/{D4hvW_TF7vwc-Xlq.js → D6EXAYU-ZH8hjx_7.js} +2 -2
- package/screenshot-page/assets/D7Yt7xmUlA6-Lq0Q.js +48 -0
- package/screenshot-page/assets/{B3yyoGGGl8ICyeoC.js → D8KyhLvfyjLZW92H.js} +6 -6
- package/screenshot-page/assets/DBxAatsD6aWk7Zb6.js +586 -0
- package/screenshot-page/assets/{BjJ_nnNDZEPLpapa.js → DGkaCFHx4PsOJkFu.js} +1 -1
- package/screenshot-page/assets/{CGx-ZSMV9cPOzbu4.js → DM6hr-bvWV50-Oex.js} +2 -2
- package/screenshot-page/assets/{C5-sm7wuk62Nzm_p.js → DOVt9zHz7FQ2KUQM.js} +1 -1
- package/screenshot-page/assets/{Cengqc8q8BTmNfb_.js → DR-og7vslxlOZd8j.js} +1 -1
- package/screenshot-page/assets/{CaP_vH0sJFjNrSkW.js → DSTlKGmqncM7XHeW.js} +1 -1
- package/screenshot-page/assets/Dh14XQinAphjZOKC.js +1 -0
- package/screenshot-page/assets/{CiFaOHqsDQTE4RRi.js → DmDFKv_3APEWI-IY.js} +2 -2
- package/screenshot-page/assets/{DgLZb-StwCd9ftop.js → Dt8JxbBBr2TeDflQ.js} +1 -1
- package/screenshot-page/assets/Dxi-bXNjS-CpC5Qr.js +1 -0
- package/screenshot-page/assets/{BT2nkqpteSR9booH.js → DynKB5GH-vfFMJEy.js} +1 -1
- package/screenshot-page/assets/{C-n8BDiksNjX6Orz.js → FqdZRM336KMEcsbU.js} +1 -1
- package/screenshot-page/assets/Oay0yGsGYgJDzy8r.js +1 -0
- package/screenshot-page/assets/{Cv0zGWEBpmC07Jps.js → Pt9ne0xkE2icD3Ih.js} +1 -1
- package/screenshot-page/assets/{EOw6vVvEfYNga9b4.js → QZg76Jflu3Q808W3.js} +1 -1
- package/screenshot-page/assets/{BJct69niPZc8L_gZ.js → WTrYzPnMQhYDILMR.js} +1 -1
- package/screenshot-page/assets/{BTKdl-XR9TlWaFe7.js → a3fvt1Klg1uGE7p6.js} +5 -5
- package/screenshot-page/assets/{Be1S5czBx0lxhYLW.js → clrFU8i-0wNkmbs7.js} +1 -1
- package/screenshot-page/assets/r2HZG9_SMzF3__ID.js +13 -0
- package/screenshot-page/index.html +7 -7
- package/types/scripting-api.json +5745 -5743
- package/types/scripting.d.ts +22 -3
- package/assets/DU2Dzzu0oY_eDN6i.js +0 -14
- package/assets/bsnhRuD-K-qhW-y5.js +0 -304
- package/screenshot-page/assets/37LAUhU1_yKtsBlH.js +0 -2
- package/screenshot-page/assets/B3c6NBI22E5SZWG-.js +0 -1
- package/screenshot-page/assets/B56KxTxcAXDom0g4.js +0 -13
- package/screenshot-page/assets/Bh2DVAOWvWfylt77.js +0 -1
- package/screenshot-page/assets/BoiQQ-37KQn6NcLT.js +0 -1
- package/screenshot-page/assets/CcVllJMjVF6SvVVq.js +0 -2
- package/screenshot-page/assets/CyfTQE0Z76Rp4Fbt.js +0 -586
- package/screenshot-page/assets/D2CxEHjkPQMAxzWl.js +0 -1
- package/screenshot-page/assets/DVQnEWIisXaOXb_G.js +0 -4
- package/screenshot-page/assets/_zzVe2R8R4vwuc5q.js +0 -48
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/mcp - MCP server exposing SheetXL spreadsheet operations as tools and resources. - v0.8.0-beta.24
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { Q as t, h as e, ht as n, ot as o, xt as s } from "./
|
|
8
|
-
import {
|
|
9
|
-
import { f as x, o as y, p as v, u as w } from "./
|
|
10
|
-
import {
|
|
11
|
-
import { u as _, y as N } from "./
|
|
12
|
-
import { n as $ } from "./
|
|
13
|
-
import { F as B, _t as O, gt as V, pt as W, vt as z, yt as j } from "./
|
|
14
|
-
import { $t as X, A as H, An as U, At as G, Ct as q, D as J, Dn as K, Dr as Y, Dt as Z, En as Q, Et as et, F as nt, Ft as ot, G as st, Gn as rt, Gt as at, It as it, J as lt, Jn as ct, Jt as dt, Kn as mt, Kt as pt, L as ft, Lt as ht, M as ut, Mn as gt, Mt as xt, O as yt, Or as vt, Ot as wt, P as St, Pn as bt, Pt as Ct, Qn as
|
|
15
|
-
import { i as ln, l as cn, n as dn, o as mn, s as pn, t as fn } from "./
|
|
7
|
+
import { Q as t, h as e, ht as n, ot as o, xt as s } from "./DMDTS0LH9Ke9t-3z.js";
|
|
8
|
+
import { Et as r, G as a, Gt as i, N as l, O as c, U as d, ct as m, m as p, mt as f, wt as h, y as u, zt as g } from "./B16G2473LTkZP6Mq.js";
|
|
9
|
+
import { f as x, o as y, p as v, u as w } from "./DRzZ4bEyLRGVOLzV.js";
|
|
10
|
+
import { B as S, Dt as b, Qr as C, U as k, Wr as T, X as I, _i as R, do as F, et as E, ir as M, k as P, l as A, pa as D, qr as L } from "./C9iFJ52KwQTePQ81.js";
|
|
11
|
+
import { u as _, y as N } from "./CbJWbjmv4bz4ppIZ.js";
|
|
12
|
+
import { n as $ } from "./fEfisM0E2fUYKIyU.js";
|
|
13
|
+
import { F as B, _t as O, gt as V, pt as W, vt as z, yt as j } from "./BAVltO4Xf7lC0Xr6.js";
|
|
14
|
+
import { $t as X, A as H, An as U, At as G, Ct as q, D as J, Dn as K, Dr as Y, Dt as Z, En as Q, Et as et, F as nt, Ft as ot, G as st, Gn as rt, Gt as at, It as it, J as lt, Jn as ct, Jt as dt, Kn as mt, Kt as pt, L as ft, Lt as ht, M as ut, Mn as gt, Mt as xt, O as yt, Or as vt, Ot as wt, P as St, Pn as bt, Pt as Ct, Qn as kt, R as Tt, Rt as It, Sn as Rt, Sr as Ft, St as Et, Tn as Mt, Tr as Pt, Tt as At, U as Dt, Un as Lt, Ut as _t, Vt as Nt, W as $t, Wn as Bt, Xt as Vt, Yn as Wt, Yt as zt, Z as jt, Zt as Xt, _ as Ht, _r as Ut, ar as Gt, at as qt, b as Jt, bn as Kt, bt as Yt, c as Zt, cn as Qt, cr as te, ct as ee, d as ne, dn as oe, dr as se, dt as re, er as ae, et as ie, fr as ce, ft as de, gn as me, gr as pe, h as fe, hn as he, ht as ue, i as ge, ir as xe, it as ye, j as ve, jn as we, jr as Se, k as be, kn as Ce, kt as ke, l as Te, lr as Ie, lt as Re, n as Fe, nn as Ee, nt as Me, on as Pe, or as Ae, p as De, pn as Le, pr as _e, pt as Ne, qn as $e, r as Be, rn as Oe, rr as Ve, sn as We, st as ze, t as je, tn as Xe, tr as He, u as Ue, un as Ge, ur as qe, vn as Ke, vt as Ye, w as Ze, wn as Qe, wt as tn, y as en, yn as nn, yr as on, z as sn, zn as rn, zt as an } from "./bv3fZLUPzd14I58C.js";
|
|
15
|
+
import { i as ln, l as cn, n as dn, o as mn, s as pn, t as fn } from "./DqSBb1HmgeU7eg_i.js";
|
|
16
16
|
var hn = [
|
|
17
17
|
["%EntityServiceId", "i"],
|
|
18
18
|
["_DisplayString", "s"],
|
|
@@ -27,7 +27,7 @@ var hn = [
|
|
|
27
27
|
], xn = (t) => {
|
|
28
28
|
const e = t.getName(), n = e.lastIndexOf(":");
|
|
29
29
|
return n > 0 ? e.substring(0, n) : e;
|
|
30
|
-
}, yn = (t) => t instanceof
|
|
30
|
+
}, yn = (t) => t instanceof R && "#spb" === xn(t.getKind()), vn = (t) => "" + t, wn = (t, e) => {
|
|
31
31
|
const n = [];
|
|
32
32
|
return t?.cardView && n.push(["ShowInCardView", "0"]), t?.dotNotation && n.push(["ShowInDotNotation", "0"]), t?.autoComplete && n.push(["ShowInAutoComplete", "0"]), e && t?.calcCompare && n.push(["ExcludeFromCalcComparison", "1"]), n;
|
|
33
33
|
}, Sn = "resourcesById", bn = class {
|
|
@@ -114,7 +114,7 @@ var hn = [
|
|
|
114
114
|
return "writable" === this.outputKind ? this.outWritable ?? n : n;
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
|
-
function
|
|
117
|
+
function kn(t) {
|
|
118
118
|
const e = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), n = (t) => e(t).replace(/"/g, """), o = (t) => {
|
|
119
119
|
if (!t) return "";
|
|
120
120
|
let e = "";
|
|
@@ -178,13 +178,13 @@ function Tn(t) {
|
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Tn(t) {
|
|
182
182
|
switch (t.kind) {
|
|
183
183
|
case "bytes": return t.bytes;
|
|
184
184
|
case "text": return t.text;
|
|
185
185
|
case "stream": return t.stream;
|
|
186
186
|
case "xmlStream": {
|
|
187
|
-
const e = [], n =
|
|
187
|
+
const e = [], n = kn({ write: (t) => e.push(t) });
|
|
188
188
|
return t.writeXml(n), n.close(), function(t) {
|
|
189
189
|
let e = 0;
|
|
190
190
|
for (const n of t) e += n.byteLength;
|
|
@@ -365,7 +365,7 @@ var _n = class {
|
|
|
365
365
|
async emit() {
|
|
366
366
|
const t = [...this.parts].sort((t, e) => t.path.localeCompare(e.path));
|
|
367
367
|
for (const e of t) {
|
|
368
|
-
const t =
|
|
368
|
+
const t = Tn(e.body);
|
|
369
369
|
await this.zip.add(e.path, t, e.optionsZip);
|
|
370
370
|
}
|
|
371
371
|
const e = this.relsRoot.toXmlBytes();
|
|
@@ -568,7 +568,7 @@ var qn = class {
|
|
|
568
568
|
} };
|
|
569
569
|
let r;
|
|
570
570
|
await e.emit(t.payload, {
|
|
571
|
-
getXMLWriter: () => r || (r =
|
|
571
|
+
getXMLWriter: () => r || (r = kn(s), r),
|
|
572
572
|
addPart: (t, e, o, s) => this._addPartInternal(n, t, e, o, s),
|
|
573
573
|
addBinary: (t, e, o, s, r = !1, a) => this._addBinaryInternal(n, t, e, o, s, r, a),
|
|
574
574
|
addExternal: (t, e, o) => ({
|
|
@@ -685,7 +685,7 @@ var Zn = "xfVariants", Qn = class {
|
|
|
685
685
|
if (void 0 !== e) return e;
|
|
686
686
|
const n = this._json?.direct?.[t];
|
|
687
687
|
if (e = n?.protection?.showFormulas, void 0 === e) {
|
|
688
|
-
const o = (0 !== t ? n?.named : void 0) ??
|
|
688
|
+
const o = (0 !== t ? n?.named : void 0) ?? p.BuiltInName.Normal;
|
|
689
689
|
e = this._styles.getNamedStyles().getByName(o)?.toJSON().style?.protection?.showFormulas ?? !1;
|
|
690
690
|
}
|
|
691
691
|
return this._shown.set(t, e), e;
|
|
@@ -845,10 +845,10 @@ function so(n, s, r, a, i) {
|
|
|
845
845
|
a && (a = ao(a, t, n, !1));
|
|
846
846
|
const i = { ...s };
|
|
847
847
|
return a ? i.borders = a : delete i.borders, r.getElementID(i, r.getElementComplement?.(e)) ?? e;
|
|
848
|
-
}, C = (t, e, n, o, s) => e === o && (!S(o) || b(t, e, s) === b(n, o, s)),
|
|
848
|
+
}, C = (t, e, n, o, s) => e === o && (!S(o) || b(t, e, s) === b(n, o, s)), k = /* @__PURE__ */ new Map(), T = (t, e) => {
|
|
849
849
|
if (e.rowStart >= x || e.colStart >= y) return;
|
|
850
|
-
const n =
|
|
851
|
-
n ? n.push(e) :
|
|
850
|
+
const n = k.get(t);
|
|
851
|
+
n ? n.push(e) : k.set(t, [e]);
|
|
852
852
|
}, I = [], R = [];
|
|
853
853
|
let F = g.next();
|
|
854
854
|
for (; !F.done;) {
|
|
@@ -856,7 +856,7 @@ function so(n, s, r, a, i) {
|
|
|
856
856
|
F = g.next();
|
|
857
857
|
const e = t.overlaps, n = t.range, o = e.length;
|
|
858
858
|
if (1 === o) {
|
|
859
|
-
e[0].value &&
|
|
859
|
+
e[0].value && T(e[0], n);
|
|
860
860
|
continue;
|
|
861
861
|
}
|
|
862
862
|
let s, r, a, i, l, c;
|
|
@@ -864,16 +864,16 @@ function so(n, s, r, a, i) {
|
|
|
864
864
|
const n = e[t], o = n.value;
|
|
865
865
|
"number" != typeof o ? 0 === n.rowStart && n.rowEnd === x ? (l = o.s, c = n) : 0 === n.colStart && n.colEnd === y && (a = o.s, i = n) : 0 === o && void 0 !== s || (s = o, r = n);
|
|
866
866
|
}
|
|
867
|
-
void 0 === a ? void 0 === l ? (0 !== s || 2 !== o && 4 !== o) &&
|
|
867
|
+
void 0 === a ? void 0 === l ? (0 !== s || 2 !== o && 4 !== o) && T(r, n) : C(c, l, r, s, n) ? R.push({
|
|
868
868
|
...n,
|
|
869
869
|
value: l,
|
|
870
870
|
header: c
|
|
871
871
|
}) : 0 === s ? I.push({
|
|
872
872
|
...n,
|
|
873
873
|
value: 0
|
|
874
|
-
}) :
|
|
874
|
+
}) : T(r, n) : C(i, a, r, s, n) || T(r, n);
|
|
875
875
|
}
|
|
876
|
-
for (const [t, e] of
|
|
876
|
+
for (const [t, e] of k) {
|
|
877
877
|
const n = ho(e);
|
|
878
878
|
for (let e = 0; e < n.length; e++) {
|
|
879
879
|
const o = {
|
|
@@ -902,10 +902,10 @@ function so(n, s, r, a, i) {
|
|
|
902
902
|
};
|
|
903
903
|
}({
|
|
904
904
|
cells: m,
|
|
905
|
-
cols: l.cols ?
|
|
906
|
-
rows: l.rows ?
|
|
905
|
+
cols: l.cols ? F.refsToRuns(l.cols, !0) : [],
|
|
906
|
+
rows: l.rows ? F.refsToRuns(l.rows, !1) : []
|
|
907
907
|
}, d, a), g = { ...n };
|
|
908
|
-
u.cols.length > 0 ? g.cols =
|
|
908
|
+
u.cols.length > 0 ? g.cols = F.runsToRefs(u.cols, !0) : delete g.cols;
|
|
909
909
|
const x = function(t, e, n) {
|
|
910
910
|
if (0 === e.length && 0 === n.length) return t;
|
|
911
911
|
const o = [], s = (t) => {
|
|
@@ -936,9 +936,9 @@ function so(n, s, r, a, i) {
|
|
|
936
936
|
}
|
|
937
937
|
return r;
|
|
938
938
|
}(u.rows, h.top, h.bottom);
|
|
939
|
-
x.length > 0 ? g.rows =
|
|
939
|
+
x.length > 0 ? g.rows = F.runsToRefs(x, !1) : delete g.rows;
|
|
940
940
|
const y = u.cells;
|
|
941
|
-
return y.length > 0 ? g.directStyles = y.map(([t, e]) => [
|
|
941
|
+
return y.length > 0 ? g.directStyles = y.map(([t, e]) => [F.rangeToString(t, d), e]) : delete g.directStyles, g;
|
|
942
942
|
}
|
|
943
943
|
function ro(t, e) {
|
|
944
944
|
if (!t || !e) return t === e;
|
|
@@ -951,19 +951,19 @@ function ro(t, e) {
|
|
|
951
951
|
return e.color?.isIColor && (o = e.color.toString()), n === o;
|
|
952
952
|
}
|
|
953
953
|
function ao(t, e, n, o) {
|
|
954
|
-
const s = o ?
|
|
954
|
+
const s = o ? i.Edge.Left : i.Edge.Top, r = o ? i.Edge.Right : i.Edge.Bottom, a = o ? i.Edge.Vertical : i.Edge.Horizontal, l = o ? e.colStart : e.rowStart, c = o ? e.colEnd : e.rowEnd, d = o ? n.colStart : n.rowStart, m = o ? n.colEnd : n.rowEnd, p = l === d, f = c === m, h = { ...t };
|
|
955
955
|
return p && f ? t : (delete h[s], delete h[r], delete h[a], p ? void 0 !== t[s] && (h[s] = t[s]) : void 0 !== t[a] && (h[s] = t[a]), f ? void 0 !== t[r] && (h[r] = t[r]) : void 0 !== t[a] && (h[r] = t[a]), m - d > 0 && void 0 !== t[a] && (h[a] = t[a]), 0 === Object.keys(h).length ? null : h);
|
|
956
956
|
}
|
|
957
957
|
function io(t, e, n) {
|
|
958
958
|
const o = t.colEnd - t.colStart + 1, s = t.rowEnd - t.rowStart + 1;
|
|
959
959
|
let r = e.borders;
|
|
960
960
|
if (1 === o && 1 === s || !r) return [[t, e]];
|
|
961
|
-
const a = void 0 !== n && t.colEnd >= n.colEnd,
|
|
962
|
-
if ((a ||
|
|
961
|
+
const a = void 0 !== n && t.colEnd >= n.colEnd, l = void 0 !== n && t.rowEnd >= n.rowEnd;
|
|
962
|
+
if ((a || l) && (r = { ...r }, a && (void 0 !== r[i.Edge.Vertical] ? r[i.Edge.Right] = r[i.Edge.Vertical] : delete r[i.Edge.Right]), l && (void 0 !== r[i.Edge.Horizontal] ? r[i.Edge.Bottom] = r[i.Edge.Horizontal] : delete r[i.Edge.Bottom]), 0 === Object.keys(r).length)) {
|
|
963
963
|
const n = { ...e };
|
|
964
964
|
return delete n.borders, Object.keys(n).length > 0 ? [[t, n]] : [];
|
|
965
965
|
}
|
|
966
|
-
const c = 1 === o || ro(r[
|
|
966
|
+
const c = 1 === o || ro(r[i.Edge.Left], r[i.Edge.Vertical]) && ro(r[i.Edge.Right], r[i.Edge.Vertical]), d = 1 === s || ro(r[i.Edge.Top], r[i.Edge.Horizontal]) && ro(r[i.Edge.Bottom], r[i.Edge.Horizontal]);
|
|
967
967
|
if (c && d) return [[t, r === e.borders ? e : {
|
|
968
968
|
...e,
|
|
969
969
|
borders: r
|
|
@@ -975,12 +975,12 @@ function io(t, e, n) {
|
|
|
975
975
|
rowStart: e.rowStart,
|
|
976
976
|
colEnd: e.colEnd,
|
|
977
977
|
rowEnd: e.rowStart
|
|
978
|
-
}, a, o, !1), (s > 2 ||
|
|
978
|
+
}, a, o, !1), (s > 2 || l) && p(e, {
|
|
979
979
|
colStart: e.colStart,
|
|
980
980
|
rowStart: e.rowStart + 1,
|
|
981
981
|
colEnd: e.colEnd,
|
|
982
|
-
rowEnd:
|
|
983
|
-
}, a, o, !1),
|
|
982
|
+
rowEnd: l ? e.rowEnd : e.rowEnd - 1
|
|
983
|
+
}, a, o, !1), l || p(e, {
|
|
984
984
|
colStart: e.colStart,
|
|
985
985
|
rowStart: e.rowEnd,
|
|
986
986
|
colEnd: e.colEnd,
|
|
@@ -1009,7 +1009,7 @@ function io(t, e, n) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
var lo = 2, co = 3, mo = (t) => {
|
|
1011
1011
|
const e = t?.style;
|
|
1012
|
-
return e ?
|
|
1012
|
+
return e ? i.BuiltInDefinitions.get(e)?.width ?? 0 : 0;
|
|
1013
1013
|
};
|
|
1014
1014
|
function po(t) {
|
|
1015
1015
|
t.sort((t, e) => t.min - e.min);
|
|
@@ -1259,7 +1259,7 @@ var xo = [
|
|
|
1259
1259
|
}
|
|
1260
1260
|
} while (c < t.length);
|
|
1261
1261
|
return o;
|
|
1262
|
-
},
|
|
1262
|
+
}, ko = class {
|
|
1263
1263
|
constructor() {
|
|
1264
1264
|
this._daprFMBks = [], this._daprFMBkMap = /* @__PURE__ */ new Map(), this._rvFMBks = [], this._rvFMBkMap = /* @__PURE__ */ new Map(), this._valueMeta = [];
|
|
1265
1265
|
}
|
|
@@ -1295,7 +1295,7 @@ var xo = [
|
|
|
1295
1295
|
getValueMeta() {
|
|
1296
1296
|
return this._valueMeta;
|
|
1297
1297
|
}
|
|
1298
|
-
},
|
|
1298
|
+
}, To = class {
|
|
1299
1299
|
constructor(t, e, n = console.warn) {
|
|
1300
1300
|
this._entries = [], this._keyMap = /* @__PURE__ */ new Map(), this._writers = /* @__PURE__ */ new Map(), this._structureIndex = /* @__PURE__ */ new Map(), this._structures = /* @__PURE__ */ new Map(), this._arrays = [], this._arrayKeys = /* @__PURE__ */ new Map(), this._bagStructures = [], this._bagStructureKeys = /* @__PURE__ */ new Map(), this._bags = [], this._bagKeys = /* @__PURE__ */ new Map(), this._bagArrays = [], this._bagArrayKeys = /* @__PURE__ */ new Map(), this._richStyles = [], this._richStyleKeys = /* @__PURE__ */ new Map(), this._keyFlags = /* @__PURE__ */ new Map(), this._records = ((t) => {
|
|
1301
1301
|
const e = (n) => {
|
|
@@ -1307,7 +1307,7 @@ var xo = [
|
|
|
1307
1307
|
o.push([a.name, "spb"]), r.push(yn(i) ? "" + e(i) : "");
|
|
1308
1308
|
break;
|
|
1309
1309
|
case "array":
|
|
1310
|
-
o.push([a.name, "spba"]), r.push(i instanceof
|
|
1310
|
+
o.push([a.name, "spba"]), r.push(i instanceof E ? "" + t.addBagArray(s(i)) : "");
|
|
1311
1311
|
break;
|
|
1312
1312
|
case "integer":
|
|
1313
1313
|
o.push([a.name, "i"]), r.push(null == i ? "0" : "" + i);
|
|
@@ -1323,9 +1323,9 @@ var xo = [
|
|
|
1323
1323
|
const n = e.getElements(), o = Math.max(1, ...n.map((t) => t.length));
|
|
1324
1324
|
return t.addArray(n.length, o, s(e));
|
|
1325
1325
|
}, a = (e, o) => {
|
|
1326
|
-
if (e instanceof
|
|
1327
|
-
if (e instanceof
|
|
1328
|
-
if (e instanceof
|
|
1326
|
+
if (e instanceof R) return l(e);
|
|
1327
|
+
if (e instanceof E) return t.addValue(t.structureFor("_array", [["array", "a"]]), ["" + r(e)]);
|
|
1328
|
+
if (e instanceof S) return t.addValue(t.structureFor("_hyperlink", [["Address", "s"], ["Text", "s"]]), [e.getAddress() ?? "", "" + (e.getFriendlyName() ?? e.getAddress() ?? "")]);
|
|
1329
1329
|
if ("number" == typeof e) {
|
|
1330
1330
|
const s = o ? [["_Self", "" + t.addRichStyle({ numberFormat: o })]] : [];
|
|
1331
1331
|
return t.addValue(t.structureFor("_formattednumber", [["_Format", "spb"]]), ["" + n(s, "i")], vn(e));
|
|
@@ -1336,7 +1336,7 @@ var xo = [
|
|
|
1336
1336
|
const s = o.getKind(), i = xn(s), l = s.getMeta(), c = l?.card, d = o.getOwnMeta() ?? {}, m = o.getValues(), p = [], f = [];
|
|
1337
1337
|
for (const o of s.getProperties()) {
|
|
1338
1338
|
const { name: h } = o;
|
|
1339
|
-
if (
|
|
1339
|
+
if (ke.has(h)) {
|
|
1340
1340
|
switch (p.push([h, "_Icon" === h ? "s" : "spb"]), h) {
|
|
1341
1341
|
case "_Icon":
|
|
1342
1342
|
f.push(l?.icon ?? "");
|
|
@@ -1386,7 +1386,7 @@ var xo = [
|
|
|
1386
1386
|
yn(u) ? (p.push([h, "spb"]), f.push("" + e(u))) : (p.push([h, "r"]), f.push(null == u ? "" : "" + a(u, d[h]?.numberFormat)));
|
|
1387
1387
|
break;
|
|
1388
1388
|
case "array":
|
|
1389
|
-
p.push([h, "a"]), f.push(u instanceof
|
|
1389
|
+
p.push([h, "a"]), f.push(u instanceof E ? "" + r(u) : "");
|
|
1390
1390
|
break;
|
|
1391
1391
|
case "string":
|
|
1392
1392
|
p.push([h, "s"]), f.push(null == u ? "" : "" + u);
|
|
@@ -1423,7 +1423,7 @@ var xo = [
|
|
|
1423
1423
|
}
|
|
1424
1424
|
return i(e);
|
|
1425
1425
|
};
|
|
1426
|
-
return { writeCell: (t) => t instanceof
|
|
1426
|
+
return { writeCell: (t) => t instanceof R && !yn(t) ? l(t) : t instanceof E ? a(t, void 0) : null };
|
|
1427
1427
|
})(this), this._metaCollector = t, this._workbook = e, this._onWarn = n;
|
|
1428
1428
|
}
|
|
1429
1429
|
add(t, e = null) {
|
|
@@ -1662,28 +1662,28 @@ function Ao(t, e, n, o, s = !1, r = !1) {
|
|
|
1662
1662
|
const a = "string" == typeof n ? e.parseColor(n) : n, i = () => {
|
|
1663
1663
|
t.empty(o, { rgb: Vo(a.toHex().toString(!0)) });
|
|
1664
1664
|
}, l = a.getAdjustments(), c = l && l.length > 0, d = a.getType();
|
|
1665
|
-
if (d !==
|
|
1666
|
-
if (d ===
|
|
1665
|
+
if (d !== g.Type.Auto) {
|
|
1666
|
+
if (d === g.Type.Scheme) {
|
|
1667
1667
|
const e = a.getVal(), n = Do[e] ?? e, s = No.get(n);
|
|
1668
1668
|
if (void 0 === s && "phClr" !== n) return console.warn(`Color scheme not in theme. schemeVal=${e} themeKey=${n}`), i();
|
|
1669
1669
|
const r = {};
|
|
1670
1670
|
if (r.theme = s, c) {
|
|
1671
1671
|
if (!function(t) {
|
|
1672
1672
|
for (const e of t) switch (Object.keys(e)[0]) {
|
|
1673
|
-
case
|
|
1674
|
-
case
|
|
1675
|
-
case
|
|
1676
|
-
case
|
|
1677
|
-
case
|
|
1678
|
-
case
|
|
1679
|
-
case
|
|
1680
|
-
case
|
|
1681
|
-
case
|
|
1673
|
+
case g.AdjustmentType.Tint:
|
|
1674
|
+
case g.AdjustmentType.ETint:
|
|
1675
|
+
case g.AdjustmentType.Shade:
|
|
1676
|
+
case g.AdjustmentType.Lum:
|
|
1677
|
+
case g.AdjustmentType.LumOff:
|
|
1678
|
+
case g.AdjustmentType.LumMod:
|
|
1679
|
+
case g.AdjustmentType.Alpha:
|
|
1680
|
+
case g.AdjustmentType.AlphaOff:
|
|
1681
|
+
case g.AdjustmentType.AlphaMod: continue;
|
|
1682
1682
|
default: return !1;
|
|
1683
1683
|
}
|
|
1684
1684
|
return !0;
|
|
1685
1685
|
}(l)) return i();
|
|
1686
|
-
const t = 1 === l.length ? l[0][
|
|
1686
|
+
const t = 1 === l.length ? l[0][g.AdjustmentType.ETint] : void 0;
|
|
1687
1687
|
let e;
|
|
1688
1688
|
if (void 0 !== t) e = Bo(t);
|
|
1689
1689
|
else {
|
|
@@ -1698,7 +1698,7 @@ function Ao(t, e, n, o, s = !1, r = !1) {
|
|
|
1698
1698
|
t.empty(o, r);
|
|
1699
1699
|
return;
|
|
1700
1700
|
}
|
|
1701
|
-
if (d ===
|
|
1701
|
+
if (d === g.Type.Index) {
|
|
1702
1702
|
const e = a.getVal(), n = e.substring(5, e.length);
|
|
1703
1703
|
t.empty(o, { indexed: Number(n) });
|
|
1704
1704
|
return;
|
|
@@ -1778,40 +1778,40 @@ var zo = "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
|
1778
1778
|
const s = "string" == typeof o ? { address: o } : o, r = { "xmlns:r": zo };
|
|
1779
1779
|
s.address && (r["r:id"] = t.addExternal("http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", s.address).relId ?? void 0), r.action = s.action, r.tgtFrame = s.target, r.tooltip = s.screenTip, void 0 !== s.history && (r.history = s.history ? "1" : "0"), e.empty(n, r);
|
|
1780
1780
|
};
|
|
1781
|
-
function Xo(t, e, o, s, r = !1,
|
|
1782
|
-
const
|
|
1781
|
+
function Xo(t, e, o, s, r = !1, a = !1) {
|
|
1782
|
+
const i = s.getTheme();
|
|
1783
1783
|
if (r && e.start("fill"), "string" == typeof o && (o = {
|
|
1784
|
-
type:
|
|
1784
|
+
type: l.Type.Solid,
|
|
1785
1785
|
color: o
|
|
1786
|
-
}), o.type !==
|
|
1787
|
-
else if (o.type ===
|
|
1786
|
+
}), o.type !== l.Type.Image || r) if (o.type !== l.Type.Group || r) if (o.type === l.Type.None || o.type === l.Type.Image || o.type === l.Type.Group) r ? e.empty("patternFill", { patternType: "none" }) : e.empty("noFill");
|
|
1787
|
+
else if (o.type === l.Type.Solid) {
|
|
1788
1788
|
const t = o;
|
|
1789
|
-
r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? Ao(e,
|
|
1790
|
-
} else if (o.type ===
|
|
1789
|
+
r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? Ao(e, i, t.color, a ? "bgColor" : "fgColor") : Mo(e, i, t.color)), r ? e.end("patternFill") : e.end("solidFill");
|
|
1790
|
+
} else if (o.type === l.Type.Pattern) {
|
|
1791
1791
|
const t = o, n = t.patternType || "solid";
|
|
1792
1792
|
e.start("patternFill", { patternType: n });
|
|
1793
|
-
const s =
|
|
1794
|
-
s && (r ? Ao(e,
|
|
1795
|
-
} else if (o.type ===
|
|
1793
|
+
const s = a ? t.background : t.foreground, l = a ? t.foreground : t.background;
|
|
1794
|
+
s && (r ? Ao(e, i, s, "fgColor") : Mo(e, i, s)), l && (r ? Ao(e, i, l, "bgColor") : Mo(e, i, l)), e.end("patternFill");
|
|
1795
|
+
} else if (o.type === l.Type.Gradient && r) {
|
|
1796
1796
|
const t = o, n = {}, s = t.gradientType;
|
|
1797
|
-
if (s !==
|
|
1797
|
+
if (s !== l.GradientType.Path && s !== l.GradientType.Linear || (n.type = s), void 0 !== t.angle) {
|
|
1798
1798
|
const e = (t.angle - 90) % 360;
|
|
1799
1799
|
0 !== e && (n.degree = String(e));
|
|
1800
1800
|
}
|
|
1801
1801
|
const r = t.focus;
|
|
1802
1802
|
r && (r.left && (n.left = String(r.left)), r.right && (n.right = String(r.right)), r.top && (n.top = String(r.top)), r.bottom && (n.bottom = String(r.bottom))), e.start("gradientFill", n);
|
|
1803
|
-
const
|
|
1804
|
-
if (
|
|
1803
|
+
const a = t.stops;
|
|
1804
|
+
if (a && a.length > 0) for (const t of a) {
|
|
1805
1805
|
let n, o = 0;
|
|
1806
1806
|
if ("string" == typeof t || "object" == typeof t && !("offset" in t)) n = t, o = 0;
|
|
1807
1807
|
else {
|
|
1808
1808
|
const e = t;
|
|
1809
1809
|
o = e.offset || 0, n = e.color;
|
|
1810
1810
|
}
|
|
1811
|
-
e.start("stop", { position: String(o) }), n && Ao(e,
|
|
1811
|
+
e.start("stop", { position: String(o) }), n && Ao(e, i, n, "color"), e.end("stop");
|
|
1812
1812
|
}
|
|
1813
1813
|
e.end("gradientFill");
|
|
1814
|
-
} else if (o.type ===
|
|
1814
|
+
} else if (o.type === l.Type.Gradient) {
|
|
1815
1815
|
const t = o, s = {};
|
|
1816
1816
|
void 0 !== t.flip && (s.flip = t.flip), void 0 !== t.isRotatedWithShape && (s.rotWithShape = t.isRotatedWithShape ? "1" : "0"), e.start("gradFill", s), e.start("gsLst");
|
|
1817
1817
|
const r = t.stops;
|
|
@@ -1819,19 +1819,19 @@ function Xo(t, e, o, s, r = !1, i = !1) {
|
|
|
1819
1819
|
const t = r.length - 1;
|
|
1820
1820
|
for (let o = 0; o < r.length; o++) {
|
|
1821
1821
|
const s = r[o];
|
|
1822
|
-
let a,
|
|
1822
|
+
let a, l = t > 0 ? o / t : 0;
|
|
1823
1823
|
if ("string" == typeof s || "object" == typeof s && !("offset" in s)) a = s;
|
|
1824
1824
|
else {
|
|
1825
1825
|
const t = s;
|
|
1826
|
-
|
|
1826
|
+
l = t.offset ?? l, a = t.color;
|
|
1827
1827
|
}
|
|
1828
|
-
e.start("gs", { pos: String(n.roundAccurately(1e5 *
|
|
1828
|
+
e.start("gs", { pos: String(n.roundAccurately(1e5 * l, 0)) }), a && Mo(e, i, a), e.end("gs");
|
|
1829
1829
|
}
|
|
1830
1830
|
}
|
|
1831
1831
|
e.end("gsLst");
|
|
1832
|
-
const
|
|
1833
|
-
if (
|
|
1834
|
-
const o =
|
|
1832
|
+
const a = t.gradientType;
|
|
1833
|
+
if (a && a !== l.GradientType.Linear) {
|
|
1834
|
+
const o = a === l.GradientType.Path || "radial" === a ? "circle" : a;
|
|
1835
1835
|
e.start("path", { path: o });
|
|
1836
1836
|
const s = t.focus;
|
|
1837
1837
|
if (s) {
|
|
@@ -1904,32 +1904,32 @@ var Ho = (t, e, o, s) => {
|
|
|
1904
1904
|
e.end("effectLst");
|
|
1905
1905
|
}, Jo = (t, e, o) => {
|
|
1906
1906
|
switch (o.type) {
|
|
1907
|
-
case
|
|
1907
|
+
case h.Type.OuterShadow: {
|
|
1908
1908
|
const s = {};
|
|
1909
1909
|
void 0 !== o.blur && (s.blurRad = String(ls(o.blur))), void 0 !== o.distance && (s.dist = String(ls(o.distance))), void 0 !== o.angle && (s.dir = String(ds(o.angle))), void 0 !== o.alignment && (s.algn = o.alignment), void 0 !== o.isRotatedWithShape && (s.rotWithShape = o.isRotatedWithShape ? "1" : "0"), void 0 !== o.scaleX && (s.sx = String(n.roundAccurately(1e3 * o.scaleX, 0))), void 0 !== o.scaleY && (s.sy = String(n.roundAccurately(1e3 * o.scaleY, 0))), void 0 !== o.skewX && (s.kx = String(ds(o.skewX))), void 0 !== o.skewY && (s.ky = String(ds(o.skewY))), t.start("outerShdw", s), Mo(t, e, o.color), t.end("outerShdw");
|
|
1910
1910
|
break;
|
|
1911
1911
|
}
|
|
1912
|
-
case
|
|
1912
|
+
case h.Type.InnerShadow: {
|
|
1913
1913
|
const n = {};
|
|
1914
1914
|
void 0 !== o.blur && (n.blurRad = String(ls(o.blur))), void 0 !== o.distance && (n.dist = String(ls(o.distance))), void 0 !== o.angle && (n.dir = String(ds(o.angle))), t.start("innerShdw", n), Mo(t, e, o.color), t.end("innerShdw");
|
|
1915
1915
|
break;
|
|
1916
1916
|
}
|
|
1917
|
-
case
|
|
1917
|
+
case h.Type.PresetShadow: {
|
|
1918
1918
|
const n = { prst: o.preset };
|
|
1919
1919
|
void 0 !== o.distance && (n.dist = String(ls(o.distance))), void 0 !== o.angle && (n.dir = String(ds(o.angle))), t.start("prstShdw", n), Mo(t, e, o.color), t.end("prstShdw");
|
|
1920
1920
|
break;
|
|
1921
1921
|
}
|
|
1922
|
-
case
|
|
1922
|
+
case h.Type.Glow: {
|
|
1923
1923
|
const n = {};
|
|
1924
1924
|
void 0 !== o.radius && (n.rad = String(ls(o.radius))), t.start("glow", n), Mo(t, e, o.color), t.end("glow");
|
|
1925
1925
|
break;
|
|
1926
1926
|
}
|
|
1927
|
-
case
|
|
1927
|
+
case h.Type.SoftEdge: {
|
|
1928
1928
|
const e = {};
|
|
1929
1929
|
void 0 !== o.radius && (e.rad = String(ls(o.radius))), t.empty("softEdge", e);
|
|
1930
1930
|
break;
|
|
1931
1931
|
}
|
|
1932
|
-
case
|
|
1932
|
+
case h.Type.Reflection: {
|
|
1933
1933
|
const e = {};
|
|
1934
1934
|
void 0 !== o.blur && (e.blurRad = String(ls(o.blur))), void 0 !== o.distance && (e.dist = String(ls(o.distance))), void 0 !== o.angle && (e.dir = String(ds(o.angle))), void 0 !== o.fadeAngle && (e.fadeDir = String(ds(o.fadeAngle))), void 0 !== o.startAlpha && (e.stA = String(n.roundAccurately(1e3 * o.startAlpha, 0))), void 0 !== o.startPosition && (e.stPos = String(n.roundAccurately(1e3 * o.startPosition, 0))), void 0 !== o.endAlpha && (e.endA = String(n.roundAccurately(1e3 * o.endAlpha, 0))), void 0 !== o.endPosition && (e.endPos = String(n.roundAccurately(1e3 * o.endPosition, 0))), void 0 !== o.scaleX && (e.sx = String(n.roundAccurately(1e3 * o.scaleX, 0))), void 0 !== o.scaleY && (e.sy = String(n.roundAccurately(1e3 * o.scaleY, 0))), void 0 !== o.skewX && (e.kx = String(ds(o.skewX))), void 0 !== o.skewY && (e.ky = String(ds(o.skewY))), void 0 !== o.alignment && (e.algn = o.alignment), void 0 !== o.isRotatedWithShape && (e.rotWithShape = o.isRotatedWithShape ? "1" : "0"), t.empty("reflection", e);
|
|
1935
1935
|
break;
|
|
@@ -1968,7 +1968,7 @@ var Ho = (t, e, o, s) => {
|
|
|
1968
1968
|
}, es = (t, e) => void 0 === e ? void 0 : t.getSharedStates().get(Sn)?.get(e), ns = async (t, e) => {
|
|
1969
1969
|
if (!e) return;
|
|
1970
1970
|
const n = e.fill;
|
|
1971
|
-
if (n?.type ===
|
|
1971
|
+
if (n?.type === l.Type.Image) {
|
|
1972
1972
|
const e = es(t, n.resId);
|
|
1973
1973
|
e && await ts(t, e);
|
|
1974
1974
|
}
|
|
@@ -2015,7 +2015,7 @@ var Ho = (t, e, o, s) => {
|
|
|
2015
2015
|
for (let e = 0; e < o; e++) {
|
|
2016
2016
|
const o = 0 === e ? {
|
|
2017
2017
|
...n[e],
|
|
2018
|
-
named:
|
|
2018
|
+
named: p.BuiltInName.Normal
|
|
2019
2019
|
} : n[e], r = t.resolve(o), a = {};
|
|
2020
2020
|
void 0 !== o.named && (a.named = o.named), void 0 !== o.quotePrefix && (a.quotePrefix = o.quotePrefix), void 0 !== o.protection && (a.protection = o.protection);
|
|
2021
2021
|
for (let t = 0; t < xs.length; t++) {
|
|
@@ -2054,7 +2054,7 @@ function ys(t, e, o) {
|
|
|
2054
2054
|
namedStyles: []
|
|
2055
2055
|
};
|
|
2056
2056
|
(function(t, e) {
|
|
2057
|
-
const n = (t.getNamedStyles().getByName(
|
|
2057
|
+
const n = (t.getNamedStyles().getByName(p.BuiltInName.Normal).toJSON().style ?? {}).font ?? {};
|
|
2058
2058
|
e.fontMap.set(s.JSONStableStringify(n), "0"), e.fonts.push(n);
|
|
2059
2059
|
})(t, r), function(t) {
|
|
2060
2060
|
const e = { type: "none" };
|
|
@@ -2073,7 +2073,7 @@ function ys(t, e, o) {
|
|
|
2073
2073
|
};
|
|
2074
2074
|
t.borderMap.set(s.JSONStableStringify(e), "0"), t.borders.push(e);
|
|
2075
2075
|
}(r), function(t, e) {
|
|
2076
|
-
Ss(t, t.getNamedStyles().getByName(
|
|
2076
|
+
Ss(t, t.getNamedStyles().getByName(p.BuiltInName.Normal).toJSON(), e);
|
|
2077
2077
|
}(t, r);
|
|
2078
2078
|
const a = e?.named ?? n.EmptyArray;
|
|
2079
2079
|
for (const e of a) Ss(t, e, r);
|
|
@@ -2082,7 +2082,7 @@ function ys(t, e, o) {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
function vs(t, e, n) {
|
|
2084
2084
|
if (!e) return;
|
|
2085
|
-
const o =
|
|
2085
|
+
const o = f.toBuiltInID(e), s = n.numFmtMap;
|
|
2086
2086
|
if (!s.has(e)) {
|
|
2087
2087
|
let t = 0;
|
|
2088
2088
|
"number" == typeof o ? t = o : (t = n.numFmtsCustom.length + Ps, n.numFmtsCustom.push(o)), s.set(e, "" + t);
|
|
@@ -2149,41 +2149,41 @@ function Cs(t, e, n, o, s, r = !1) {
|
|
|
2149
2149
|
let a = s.color;
|
|
2150
2150
|
a && Ao(e, n, a, "color", !r, r), e.end(o);
|
|
2151
2151
|
}
|
|
2152
|
-
function
|
|
2152
|
+
function ks(t, e, n, o, s = !1) {
|
|
2153
2153
|
const r = {}, a = (t) => !!t?.style && "none" !== t.style, i = a(n.diagonalUp) ? n.diagonalUp : void 0, l = a(n.diagonalDown) ? n.diagonalDown : void 0;
|
|
2154
|
-
s ? (r.diagonalUp = "0", r.diagonalDown = "0") : (i && (r.diagonalUp = "1"), l && (r.diagonalDown = "1")), e.start("border", r), Cs(0, e, o, "left", n.left, s), Cs(0, e, o, "right", n.right, s), Cs(0, e, o, "top", n.top, s), Cs(0, e, o, "bottom", n.bottom, s), s ? (Cs(0, e, o, "vertical", n.vertical, s), Cs(0, e, o, "horizontal", n.horizontal, s)) : (i && l && (i.style !== l.style ||
|
|
2154
|
+
s ? (r.diagonalUp = "0", r.diagonalDown = "0") : (i && (r.diagonalUp = "1"), l && (r.diagonalDown = "1")), e.start("border", r), Cs(0, e, o, "left", n.left, s), Cs(0, e, o, "right", n.right, s), Cs(0, e, o, "top", n.top, s), Cs(0, e, o, "bottom", n.bottom, s), s ? (Cs(0, e, o, "vertical", n.vertical, s), Cs(0, e, o, "horizontal", n.horizontal, s)) : (i && l && (i.style !== l.style || Ts(i.color) !== Ts(l.color)) && t.warn("A cell has diagonal borders in two different line styles or colors; an xlsx cell holds one diagonal line, so both are saved in the up diagonal's.", void 0, "xlsx.border.diagonalMismatch"), Cs(0, e, o, "diagonal", i ?? l, s)), e.end("border");
|
|
2155
2155
|
}
|
|
2156
|
-
var
|
|
2156
|
+
var Ts = (t) => null == t ? null : "string" == typeof t ? t : JSON.stringify(t);
|
|
2157
2157
|
function Is(t, e, n, o = !1) {
|
|
2158
2158
|
const s = {};
|
|
2159
|
-
n.horizontal && n.horizontal !==
|
|
2159
|
+
n.horizontal && n.horizontal !== m.HorizontalAlignment.General && (s.horizontal = n.horizontal), n.vertical && n.vertical !== m.VerticalAlignment.Bottom && (s.vertical = n.vertical);
|
|
2160
2160
|
let r = n.rotation;
|
|
2161
2161
|
n.stacked && (s.textRotation = "255", r = 0), r && (r >= 270 && r < 360 ? r = 360 - r : r > 0 && r <= 90 && (r += 90), s.textRotation = String(r));
|
|
2162
2162
|
const a = n.overflow;
|
|
2163
|
-
switch (a ===
|
|
2164
|
-
case
|
|
2165
|
-
case
|
|
2163
|
+
switch (a === m.Overflow.Wrap && (s.wrapText = "1"), n.indent && (s.indent = "" + n.indent), n.relativeIndent && (s.relativeIndent = "" + n.relativeIndent), n.justifyLastLine && (s.justifyLastLine = "1"), a === m.Overflow.Shrink && (s.shrinkToFit = "1"), n.readingDirection) {
|
|
2164
|
+
case m.ReadingDirection.Auto: break;
|
|
2165
|
+
case m.ReadingDirection.LeftToRight:
|
|
2166
2166
|
s.readingOrder = "1";
|
|
2167
2167
|
break;
|
|
2168
|
-
case
|
|
2168
|
+
case m.ReadingDirection.RightToLeft: s.readingOrder = "2";
|
|
2169
2169
|
}
|
|
2170
2170
|
return Object.keys(s).length > 0 ? s : null;
|
|
2171
2171
|
}
|
|
2172
2172
|
function Rs(t, e, n, o, r, a, i = !1, l = !1, c = null) {
|
|
2173
2173
|
const d = {};
|
|
2174
|
-
let m = null,
|
|
2175
|
-
|
|
2176
|
-
const
|
|
2177
|
-
if (d.numFmtId = (void 0 !== w ? r.numFmtMap.get(w) : void 0) ?? "0", d.fontId = String(
|
|
2178
|
-
const t = o.named ??
|
|
2174
|
+
let m = null, f = o.named;
|
|
2175
|
+
f && (m = n.getNamedStyles().getByName(f).toJSON().style);
|
|
2176
|
+
const h = o.font ?? m?.font, u = h ? r.fontMap.get(s.JSONStableStringify(h)) ?? 0 : 0, g = o.fill ?? m?.fill, x = g ? r.fillMap.get(s.JSONStableStringify(g)) ?? 0 : 0, y = o.borders ?? m?.borders, v = y ? r.borderMap.get(s.JSONStableStringify(y)) ?? 0 : 0, w = o.numberFormat ?? m?.numberFormat;
|
|
2177
|
+
if (d.numFmtId = (void 0 !== w ? r.numFmtMap.get(w) : void 0) ?? "0", d.fontId = String(u), d.fillId = String(x), d.borderId = String(v), a) {
|
|
2178
|
+
const t = o.named ?? p.BuiltInName.Normal;
|
|
2179
2179
|
d.xfId = r.namedStyleMap.get(t.toLowerCase());
|
|
2180
2180
|
}
|
|
2181
2181
|
let S = null;
|
|
2182
2182
|
const b = o.alignment ?? m?.alignment;
|
|
2183
2183
|
b && (S = Is(0, 0, b)), o.font && (d.applyFont = "1"), o.fill && (d.applyFill = "1"), o.numberFormat && (d.applyNumberFormat = "1"), o.borders && (d.applyBorder = "1"), S && (d.applyAlignment = "1");
|
|
2184
2184
|
let C = null;
|
|
2185
|
-
const
|
|
2186
|
-
(
|
|
2185
|
+
const k = o.protection?.alwaysUnlocked ?? m?.protection?.alwaysUnlocked ?? !1;
|
|
2186
|
+
(k || i) && (C = {}, k && (C.locked = "0"), i && (C.hidden = "1"), d.applyProtection = "1"), o.quotePrefix && (d.quotePrefix = "1"), l && (d.pivotButton = "1"), S || C || null !== c ? (e.start("xf", d), S && e.empty("alignment", S), C && e.empty("protection", C), null !== c && (e.start("extLst"), e.start("ext", {
|
|
2187
2187
|
uri: Fs,
|
|
2188
2188
|
"xmlns:xfpb": Es
|
|
2189
2189
|
}), e.empty("xfpb:xfComplement", { i: String(c) }), e.end("ext"), e.end("extLst")), e.end("xf")) : e.empty("xf", d);
|
|
@@ -2191,7 +2191,7 @@ function Rs(t, e, n, o, r, a, i = !1, l = !1, c = null) {
|
|
|
2191
2191
|
var Fs = "{C7286773-470A-42A8-94C5-96B5CB345126}", Es = "http://schemas.microsoft.com/office/spreadsheetml/2022/featurepropertybag";
|
|
2192
2192
|
function Ms(t, e, n, o, s, r = "dxf", a = Ps) {
|
|
2193
2193
|
if (e.start(r), n.font && bs(0, e, n.font, o, !0), void 0 !== n.numberFormat && null !== n.numberFormat) {
|
|
2194
|
-
const t =
|
|
2194
|
+
const t = f.toBuiltInID(n.numberFormat), o = "number" == typeof t, s = o ? f.builtInFormat(t) : String(t);
|
|
2195
2195
|
s && e.empty("numFmt", {
|
|
2196
2196
|
numFmtId: String(o ? t : a++),
|
|
2197
2197
|
formatCode: s
|
|
@@ -2201,7 +2201,7 @@ function Ms(t, e, n, o, s, r = "dxf", a = Ps) {
|
|
|
2201
2201
|
const t = Is(0, 0, n.alignment, !0);
|
|
2202
2202
|
t && e.empty("alignment", t);
|
|
2203
2203
|
}
|
|
2204
|
-
return n.borders &&
|
|
2204
|
+
return n.borders && ks(t, e, n.borders, s, !0), e.end(r), a;
|
|
2205
2205
|
}
|
|
2206
2206
|
var Ps = 164, As = Object.freeze([
|
|
2207
2207
|
"unselectedItemWithData",
|
|
@@ -2463,7 +2463,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2463
2463
|
numFmtId: (t) => ((t, e) => (vs(t.styles, e, t.denormalized), parseInt(t.denormalized.numFmtMap.get(e) ?? "0", 10)))(n, t),
|
|
2464
2464
|
dxfId: (t) => o.add(t)
|
|
2465
2465
|
};
|
|
2466
|
-
}, tr = (t, e) => t.getSharedStates().get("pivotCachePaths")?.get(e) ?? null, er = "date1904", nr = (t) => !0 === t.getSharedStates().get(er), or = 0, sr =
|
|
2466
|
+
}, tr = (t, e) => t.getSharedStates().get("pivotCachePaths")?.get(e) ?? null, er = "date1904", nr = (t) => !0 === t.getSharedStates().get(er), or = 0, sr = D.BuiltInOperatorNames, rr = (t, e, n, o, s, r, a) => {
|
|
2467
2467
|
const i = o.sorts, l = i ? i.length : 0;
|
|
2468
2468
|
if (0 === l) return;
|
|
2469
2469
|
const c = {};
|
|
@@ -2472,7 +2472,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2472
2472
|
t && (c.caseSensitive = "object" != typeof t || Array.isArray(t) || "case" !== t.sensitivity && "variant" !== t.sensitivity ? "0" : "1");
|
|
2473
2473
|
}
|
|
2474
2474
|
const d = o.extent, m = n.getRange().getCoords(), p = (d ? an(m, d.range) : null) ?? r;
|
|
2475
|
-
c.ref =
|
|
2475
|
+
c.ref = F.rangeToString(p), c["xmlns:xlrd2"] = "http://schemas.microsoft.com/office/spreadsheetml/2017/richdata2", e.start("sortState", c);
|
|
2476
2476
|
for (let n = 0; n < l; n++) {
|
|
2477
2477
|
const o = i[n], s = o.criteria ?? {}, l = o.index + r.colStart, c = {};
|
|
2478
2478
|
s.reverse && (c.descending = "1");
|
|
@@ -2486,7 +2486,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2486
2486
|
colStart: l,
|
|
2487
2487
|
colEnd: l
|
|
2488
2488
|
});
|
|
2489
|
-
c.ref =
|
|
2489
|
+
c.ref = F.rangeToString(h);
|
|
2490
2490
|
const u = ue(s.sortOn);
|
|
2491
2491
|
u && (c.sortBy = u), void 0 !== s.style && (c.dxfId = hs(t.getSharedStates()).add(s.style)), void 0 !== s.iconSet && (c.iconSet = s.iconSet), void 0 !== s.customList && (c.customList = s.customList), e.empty("sortCondition", c);
|
|
2492
2492
|
}
|
|
@@ -2522,16 +2522,16 @@ var Ps = 164, As = Object.freeze([
|
|
|
2522
2522
|
const s = { operator: o.operator };
|
|
2523
2523
|
void 0 !== o.val && (s.val = o.val), e.empty("customFilter", s);
|
|
2524
2524
|
}, lr = /* @__PURE__ */ new Set([
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2525
|
+
D.BuiltInSelectorNames.Display,
|
|
2526
|
+
D.BuiltInSelectorNames.Date,
|
|
2527
|
+
D.BuiltInSelectorNames.Time
|
|
2528
2528
|
]), cr = (t, e, n, o, s, r = null) => {
|
|
2529
2529
|
const a = {};
|
|
2530
2530
|
a.colId = "" + n, s && (a.hiddenButton = "1"), o ? (e.start("filterColumn", a), ((t, e, n, o = null) => {
|
|
2531
2531
|
const s = n.operator, r = "string" == typeof n.selector ? n.selector : n.selector?.getName?.();
|
|
2532
|
-
if (r && !lr.has(r) && t.warn(`A '${r}' selector has no OOXML form in a Table AutoFilter; the rule is written without it`, n), !0 === n.includeBlanks && s !==
|
|
2533
|
-
if (s ===
|
|
2534
|
-
if (s ===
|
|
2532
|
+
if (r && !lr.has(r) && t.warn(`A '${r}' selector has no OOXML form in a Table AutoFilter; the rule is written without it`, n), !0 === n.includeBlanks && s !== D.BuiltInOperatorNames.InSet && s !== sr.Blank && t.warn("Ignore Blank has no OOXML form in a Table AutoFilter outside a values list; Excel will hide the blank rows", n), s === D.BuiltInOperatorNames.Expression) return void t.warn("Expression conditions not supported in Table AutoFilters", n);
|
|
2533
|
+
if (s === D.BuiltInOperatorNames.Unique) return void t.warn("Unique conditions not supported in Table AutoFilters", n);
|
|
2534
|
+
if (s === D.BuiltInOperatorNames.Color) {
|
|
2535
2535
|
const o = n.param, s = {};
|
|
2536
2536
|
void 0 !== o.cellColor && (s.cellColor = o.cellColor ? "1" : "0"), void 0 !== o.style && (s.dxfId = hs(t.getSharedStates()).add(o.style)), e.empty("colorFilter", s);
|
|
2537
2537
|
}
|
|
@@ -2546,10 +2546,10 @@ var Ps = 164, As = Object.freeze([
|
|
|
2546
2546
|
});
|
|
2547
2547
|
e.end("customFilters");
|
|
2548
2548
|
} else if (s !== sr.Blank) {
|
|
2549
|
-
if (s ===
|
|
2549
|
+
if (s === D.BuiltInOperatorNames.InSet) {
|
|
2550
2550
|
const s = n.param ?? {};
|
|
2551
2551
|
let r = Array.isArray(s.items) ? s.items : [];
|
|
2552
|
-
n.selector !==
|
|
2552
|
+
n.selector !== D.BuiltInSelectorNames.Display && r.some((t) => "string" != typeof t) && (r = ((t, e, n, o) => {
|
|
2553
2553
|
const s = [], r = [];
|
|
2554
2554
|
for (let t = 0; t < n.length; t++) {
|
|
2555
2555
|
const e = n[t];
|
|
@@ -2577,7 +2577,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2577
2577
|
e.end("customFilters");
|
|
2578
2578
|
}
|
|
2579
2579
|
} else U(n) ? (e.start("customFilters"), ir(t, e, n), e.end("customFilters")) : s === sr.Not && t.warn("Not rule with non-comparison criteria not supported in OOXML", n.param);
|
|
2580
|
-
if (s ===
|
|
2580
|
+
if (s === D.BuiltInOperatorNames.TimePeriod) {
|
|
2581
2581
|
const o = n.param, s = o?.type;
|
|
2582
2582
|
if (s && Qe.has(s)) {
|
|
2583
2583
|
const n = o.anchorDate, r = "number" == typeof n && Number.isFinite(n) ? tn(s, Math.floor(n), nr(t)) : null;
|
|
@@ -2588,15 +2588,15 @@ var Ps = 164, As = Object.freeze([
|
|
|
2588
2588
|
} : { type: s });
|
|
2589
2589
|
} else t.warn(`TimePeriod '${s}' has no OOXML dynamicFilter type; not written`, n.param);
|
|
2590
2590
|
}
|
|
2591
|
-
if (s ===
|
|
2592
|
-
const o = n.param, s = o?.type ===
|
|
2591
|
+
if (s === D.BuiltInOperatorNames.Average) {
|
|
2592
|
+
const o = n.param, s = o?.type === D.AverageType.Below ? "belowAverage" : "aboveAverage";
|
|
2593
2593
|
o?.stdDevs && t.warn(`Average with stdDevs has no OOXML spelling; written as ${s}`, n.param), e.empty("dynamicFilter", { type: s });
|
|
2594
2594
|
}
|
|
2595
|
-
if (s ===
|
|
2595
|
+
if (s === D.BuiltInOperatorNames.Icon) {
|
|
2596
2596
|
const t = n.param, o = {};
|
|
2597
2597
|
void 0 !== t.iconSet && (o.iconSet = t.iconSet), void 0 !== t.iconId && (o.iconId = "" + t.iconId), e.empty("iconFilter", o);
|
|
2598
2598
|
}
|
|
2599
|
-
if (s ===
|
|
2599
|
+
if (s === D.BuiltInOperatorNames.TopN) {
|
|
2600
2600
|
const o = n.param;
|
|
2601
2601
|
if (o.sum) return void t.warn("Top N by sum has no OOXML form in a Table AutoFilter; it is not written", n);
|
|
2602
2602
|
const s = {};
|
|
@@ -2636,7 +2636,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2636
2636
|
rowIndex: t.rowStart,
|
|
2637
2637
|
colIndex: t.colStart + n
|
|
2638
2638
|
}, a = s.parse(o, r);
|
|
2639
|
-
return a &&
|
|
2639
|
+
return a && C.image(s.spell(a, !1, e.getName()), { at: r }) || o;
|
|
2640
2640
|
} catch {
|
|
2641
2641
|
return o;
|
|
2642
2642
|
}
|
|
@@ -2659,7 +2659,7 @@ var Ps = 164, As = Object.freeze([
|
|
|
2659
2659
|
"mc:Ignorable": "x xr10",
|
|
2660
2660
|
"xmlns:x": gr,
|
|
2661
2661
|
"xmlns:xr10": yr
|
|
2662
|
-
}, Cr = (t) => t.toJSON()?.pivot ?? null,
|
|
2662
|
+
}, Cr = (t) => t.toJSON()?.pivot ?? null, kr = (t) => void 0 !== Cr(t)?.timeline, Tr = (t) => {
|
|
2663
2663
|
const e = [], n = t.getMovables().getItems();
|
|
2664
2664
|
for (let t = 0; t < n.length; t++) {
|
|
2665
2665
|
const o = n[t].getContent();
|
|
@@ -2712,7 +2712,7 @@ function Dr(t, e, n, o, s, r) {
|
|
|
2712
2712
|
let i = Xe(a.xml, s);
|
|
2713
2713
|
const l = wt(i), c = l ? $t((t) => l.get(t)) : void 0, d = o.tabColor;
|
|
2714
2714
|
(d ?? void 0) !== c && (i = ft(i, d ? function(t, e) {
|
|
2715
|
-
const n = [], o =
|
|
2715
|
+
const n = [], o = kn({ write: (t) => {
|
|
2716
2716
|
n.push(t);
|
|
2717
2717
|
} });
|
|
2718
2718
|
return o.setValidationDisabled(!0), Ao(o, t.getTheme(), e, "tabColor", !1), o.close(), new TextDecoder("utf-8").decode(function(t) {
|
|
@@ -2939,13 +2939,13 @@ function Yr(t, e, n) {
|
|
|
2939
2939
|
const o = (e, n) => {
|
|
2940
2940
|
void 0 !== n && t.empty(e, n ? void 0 : { val: 0 });
|
|
2941
2941
|
};
|
|
2942
|
-
o("b", void 0 === e.weight ? void 0 : e.weight >= 700), o("i", void 0 === e.style ? void 0 : e.style !==
|
|
2942
|
+
o("b", void 0 === e.weight ? void 0 : e.weight >= 700), o("i", void 0 === e.style ? void 0 : e.style !== a.Style.Normal), o("strike", on(e.strike));
|
|
2943
2943
|
const s = Dt(e.letterSpacing);
|
|
2944
2944
|
s && o(s, !0), o("outline", e.outline), o("shadow", e.shadow);
|
|
2945
2945
|
const r = Mt(e.underline);
|
|
2946
|
-
r && t.empty("u", r ===
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2946
|
+
r && t.empty("u", r === a.UnderlineStyle.Single ? void 0 : { val: r });
|
|
2947
|
+
const i = sn(e.baseline, !0);
|
|
2948
|
+
i && t.empty("vertAlign", { val: i }), void 0 !== e.size && t.empty("sz", { val: e.size }), e.color && function(t, e, n) {
|
|
2949
2949
|
const o = /^index(\d+)$/.exec(e);
|
|
2950
2950
|
o ? t.empty("color", { indexed: Number(o[1]) }) : Ao(t, n, e, "color");
|
|
2951
2951
|
}(t, e.color, n);
|
|
@@ -2962,14 +2962,14 @@ function Yr(t, e, n) {
|
|
|
2962
2962
|
void 0 !== e.charset && t.empty("charset", { val: e.charset }), c && t.empty("scheme", { val: c }), t.end("rPr");
|
|
2963
2963
|
}
|
|
2964
2964
|
function Zr(t, e) {
|
|
2965
|
-
t.start("t",
|
|
2965
|
+
t.start("t", Te.test(e) || /[\n\r]/.test(e) ? Fe : void 0), t.text(e), t.end("t");
|
|
2966
2966
|
}
|
|
2967
2967
|
function Qr(t) {
|
|
2968
2968
|
const e = t.getRanges();
|
|
2969
2969
|
if (e.isInvalid()) return null;
|
|
2970
2970
|
const n = e.getCoords()[0];
|
|
2971
2971
|
return n ? {
|
|
2972
|
-
ref:
|
|
2972
|
+
ref: F.cellToString({
|
|
2973
2973
|
rowIndex: n.rowStart,
|
|
2974
2974
|
colIndex: n.colStart
|
|
2975
2975
|
}),
|
|
@@ -3001,13 +3001,13 @@ function la(t, e, n, o) {
|
|
|
3001
3001
|
const r = [];
|
|
3002
3002
|
for (let o = e.rowStart; o <= e.rowEnd; o++) for (let a = e.colStart; a <= e.colEnd; a++) {
|
|
3003
3003
|
let i = n;
|
|
3004
|
-
o === e.rowStart && a === e.colStart || (s || (s = [],
|
|
3004
|
+
o === e.rowStart && a === e.colStart || (s || (s = [], F.normalizeA1ToR1C1(n, e.rowStart, e.colStart, s)), i = F.resolveRelativeToA1(s, o, a));
|
|
3005
3005
|
const l = ge(i, {
|
|
3006
3006
|
rowIndex: o,
|
|
3007
3007
|
colIndex: a
|
|
3008
3008
|
});
|
|
3009
3009
|
if (!l) return !1;
|
|
3010
|
-
const c = t.getRange(
|
|
3010
|
+
const c = t.getRange(F.cellToString({
|
|
3011
3011
|
rowIndex: o,
|
|
3012
3012
|
colIndex: a
|
|
3013
3013
|
})).getCell().getValue();
|
|
@@ -3023,7 +3023,7 @@ function la(t, e, n, o) {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
function ca(t, e) {
|
|
3025
3025
|
let n = e.type;
|
|
3026
|
-
n ===
|
|
3026
|
+
n === k.ColorStopType.AutoMin ? n = k.ColorStopType.Min : n === k.ColorStopType.AutoMax && (n = k.ColorStopType.Max), t.empty("cfvo", {
|
|
3027
3027
|
type: n,
|
|
3028
3028
|
val: e.value,
|
|
3029
3029
|
gte: e.exclusive ? "0" : void 0
|
|
@@ -3037,29 +3037,29 @@ function da(t, e) {
|
|
|
3037
3037
|
void 0 !== e.value ? (t.start("x14:cfvo", n), t.start("xm:f"), t.text(e.value), t.end("xm:f"), t.end("x14:cfvo")) : t.empty("x14:cfvo", n);
|
|
3038
3038
|
}
|
|
3039
3039
|
var ma = /* @__PURE__ */ new Set([
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3040
|
+
p.IconSet.Arrows3,
|
|
3041
|
+
p.IconSet.ArrowsGray3,
|
|
3042
|
+
p.IconSet.Flags3,
|
|
3043
|
+
p.IconSet.Signs3,
|
|
3044
|
+
p.IconSet.Symbols3,
|
|
3045
|
+
p.IconSet.Symbols3_2,
|
|
3046
|
+
p.IconSet.TrafficLights3,
|
|
3047
|
+
p.IconSet.TrafficLights3_2,
|
|
3048
|
+
p.IconSet.Arrows4,
|
|
3049
|
+
p.IconSet.ArrowsGray4,
|
|
3050
|
+
p.IconSet.Rating4,
|
|
3051
|
+
p.IconSet.RedToBlack4,
|
|
3052
|
+
p.IconSet.TrafficLights4,
|
|
3053
|
+
p.IconSet.Arrows5,
|
|
3054
|
+
p.IconSet.ArrowsGray5,
|
|
3055
|
+
p.IconSet.Quarters5,
|
|
3056
|
+
p.IconSet.Rating5
|
|
3057
3057
|
]);
|
|
3058
3058
|
function pa(t) {
|
|
3059
3059
|
return (t.icon?.length ?? 0) > 0 || void 0 !== t.iconSet && !ma.has(t.iconSet);
|
|
3060
3060
|
}
|
|
3061
3061
|
function fa(t) {
|
|
3062
|
-
return [t.minPoint ?? { type:
|
|
3062
|
+
return [t.minPoint ?? { type: k.ColorStopType.Min }, t.maxPoint ?? { type: k.ColorStopType.Max }];
|
|
3063
3063
|
}
|
|
3064
3064
|
function ha(t, e, o, s, r, a, i, l, c) {
|
|
3065
3065
|
const d = s.scale;
|
|
@@ -3080,8 +3080,8 @@ function ha(t, e, o, s, r, a, i, l, c) {
|
|
|
3080
3080
|
timePeriod: r.timePeriod
|
|
3081
3081
|
};
|
|
3082
3082
|
let p;
|
|
3083
|
-
d?.type ===
|
|
3084
|
-
return !!(t.solidFill || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) || t.minPoint?.type ===
|
|
3083
|
+
d?.type === k.ScaleType.DataBar && function(t) {
|
|
3084
|
+
return !!(t.solidFill || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) || t.minPoint?.type === k.ColorStopType.AutoMin || t.maxPoint?.type === k.ColorStopType.AutoMax;
|
|
3085
3085
|
}(d) && (p = Pt(n.uuidV4), c.push({
|
|
3086
3086
|
guid: p,
|
|
3087
3087
|
sqref: a,
|
|
@@ -3092,13 +3092,13 @@ function ha(t, e, o, s, r, a, i, l, c) {
|
|
|
3092
3092
|
if (0 !== h || d) {
|
|
3093
3093
|
e.start("cfRule", m);
|
|
3094
3094
|
for (let t = 0; t < h; t++) e.start("formula"), e.text(f[t]), e.end("formula");
|
|
3095
|
-
if (d?.type ===
|
|
3095
|
+
if (d?.type === k.ScaleType.ColorScale) {
|
|
3096
3096
|
const t = d.stops ?? [];
|
|
3097
3097
|
e.start("colorScale");
|
|
3098
3098
|
for (let n = 0; n < t.length; n++) ca(e, t[n]);
|
|
3099
3099
|
for (let n = 0; n < t.length; n++) Ao(e, o, t[n].color, "color");
|
|
3100
3100
|
e.end("colorScale");
|
|
3101
|
-
} else if (d?.type ===
|
|
3101
|
+
} else if (d?.type === k.ScaleType.DataBar) {
|
|
3102
3102
|
e.start("dataBar", {
|
|
3103
3103
|
minLength: d.minLength ?? 0,
|
|
3104
3104
|
maxLength: d.maxLength ?? 100,
|
|
@@ -3106,7 +3106,7 @@ function ha(t, e, o, s, r, a, i, l, c) {
|
|
|
3106
3106
|
});
|
|
3107
3107
|
const [t, n] = fa(d);
|
|
3108
3108
|
ca(e, t), ca(e, n), Ao(e, o, d.color ?? "#638EC6", "color"), e.end("dataBar");
|
|
3109
|
-
} else if (d?.type ===
|
|
3109
|
+
} else if (d?.type === k.ScaleType.IconSet) {
|
|
3110
3110
|
const t = d.stops ?? [];
|
|
3111
3111
|
e.start("iconSet", {
|
|
3112
3112
|
iconSet: d.iconSet,
|
|
@@ -3127,10 +3127,10 @@ function ua(t) {
|
|
|
3127
3127
|
const o = t.split(" ");
|
|
3128
3128
|
for (let t = 0; t < o.length; t++) {
|
|
3129
3129
|
if (!o[t]) continue;
|
|
3130
|
-
const s =
|
|
3130
|
+
const s = F.fastStringToRange(o[t]);
|
|
3131
3131
|
s.rowStart < e && (e = s.rowStart), s.colStart < n && (n = s.colStart);
|
|
3132
3132
|
}
|
|
3133
|
-
return
|
|
3133
|
+
return F.cellToString({
|
|
3134
3134
|
rowIndex: e,
|
|
3135
3135
|
colIndex: n
|
|
3136
3136
|
});
|
|
@@ -3140,12 +3140,12 @@ function ga(t) {
|
|
|
3140
3140
|
if (Array.isArray(t)) {
|
|
3141
3141
|
const e = [];
|
|
3142
3142
|
for (let n = 0; n < t.length; n++) {
|
|
3143
|
-
const o =
|
|
3143
|
+
const o = F.rangeToString(t[n]);
|
|
3144
3144
|
o && e.push(o);
|
|
3145
3145
|
}
|
|
3146
3146
|
return e.length > 0 ? e.join(" ") : null;
|
|
3147
3147
|
}
|
|
3148
|
-
return
|
|
3148
|
+
return F.rangeToString(t);
|
|
3149
3149
|
}
|
|
3150
3150
|
function xa(t) {
|
|
3151
3151
|
if (void 0 !== t) return t ? "1" : "0";
|
|
@@ -3170,7 +3170,7 @@ function wa(t) {
|
|
|
3170
3170
|
const o = t.split(" ");
|
|
3171
3171
|
for (let t = 0; t < o.length; t++) {
|
|
3172
3172
|
if (!o[t]) continue;
|
|
3173
|
-
const s =
|
|
3173
|
+
const s = F.fastStringToRange(o[t]);
|
|
3174
3174
|
s.rowStart < e && (e = s.rowStart), s.colStart < n && (n = s.colStart);
|
|
3175
3175
|
}
|
|
3176
3176
|
return e === Number.MAX_SAFE_INTEGER ? null : {
|
|
@@ -3182,7 +3182,7 @@ function Sa(t, e, n) {
|
|
|
3182
3182
|
if ("string" != typeof t || !t || !e || !n) return t;
|
|
3183
3183
|
try {
|
|
3184
3184
|
const o = n.parse(t, e);
|
|
3185
|
-
return o &&
|
|
3185
|
+
return o && C.image(n.spell(o, !0), { at: e }) || t;
|
|
3186
3186
|
} catch {
|
|
3187
3187
|
return t;
|
|
3188
3188
|
}
|
|
@@ -3198,7 +3198,7 @@ function ba(t, e, n) {
|
|
|
3198
3198
|
value: s
|
|
3199
3199
|
};
|
|
3200
3200
|
};
|
|
3201
|
-
if (t.type ===
|
|
3201
|
+
if (t.type === k.ScaleType.DataBar) {
|
|
3202
3202
|
const e = o(t.minPoint), n = o(t.maxPoint);
|
|
3203
3203
|
if (e === t.minPoint && n === t.maxPoint) return t;
|
|
3204
3204
|
const s = { ...t };
|
|
@@ -3220,7 +3220,7 @@ function Ca(t) {
|
|
|
3220
3220
|
const e = t.getDataValidations().getSettings(), n = {};
|
|
3221
3221
|
return e.disablePrompts && (n.disablePrompts = "1"), void 0 !== e.windowX && (n.xWindow = e.windowX), void 0 !== e.windowY && (n.yWindow = e.windowY), n;
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function ka(t, e, n) {
|
|
3224
3224
|
if (!n || 0 === n.length) return;
|
|
3225
3225
|
const o = n.filter((t) => !t.automatic).length;
|
|
3226
3226
|
t.start(e, {
|
|
@@ -3233,7 +3233,7 @@ function Ta(t, e, n) {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
t.end(e);
|
|
3235
3235
|
}
|
|
3236
|
-
function
|
|
3236
|
+
function Ta(t, e, n, o) {
|
|
3237
3237
|
if (!o?.xml) return;
|
|
3238
3238
|
const s = t.addPart("legacyDrawing", o);
|
|
3239
3239
|
e.empty(n, { "r:id": s.relId });
|
|
@@ -3325,7 +3325,7 @@ var Ia = (t, e, n, o) => {
|
|
|
3325
3325
|
si: void 0
|
|
3326
3326
|
};
|
|
3327
3327
|
function La(t, e) {
|
|
3328
|
-
const n =
|
|
3328
|
+
const n = Te.test(e) ? Fe : void 0;
|
|
3329
3329
|
t.start("t", n), t.text(ie(e)), t.end("t");
|
|
3330
3330
|
}
|
|
3331
3331
|
var _a = (t) => String(Math.round(1e3 * t)), Na = (t) => void 0 === t ? void 0 : t ? "1" : "0", $a = /* @__PURE__ */ new Set([
|
|
@@ -3370,7 +3370,7 @@ var _a = (t) => String(Math.round(1e3 * t)), Na = (t) => void 0 === t ? void 0 :
|
|
|
3370
3370
|
buFont: "lt"
|
|
3371
3371
|
}, Oa = (t, e, n) => {
|
|
3372
3372
|
if (!n) return;
|
|
3373
|
-
const o = void 0 !== n.scheme && n.scheme !==
|
|
3373
|
+
const o = void 0 !== n.scheme && n.scheme !== a.Scheme.None ? `+${n.scheme === a.Scheme.Major ? "mj" : "mn"}-${Ba[e]}` : n.family;
|
|
3374
3374
|
void 0 !== o && t.empty(e, {
|
|
3375
3375
|
typeface: o,
|
|
3376
3376
|
panose: n.panose,
|
|
@@ -3425,12 +3425,12 @@ var _a = (t) => String(Math.round(1e3 * t)), Na = (t) => void 0 === t ? void 0 :
|
|
|
3425
3425
|
}
|
|
3426
3426
|
o.defaultRun && Va(t, e, "defRPr", o.defaultRun), s.end(n);
|
|
3427
3427
|
} else s.empty(n, r);
|
|
3428
|
-
}, ja = (t) => t ===
|
|
3428
|
+
}, ja = (t) => t === m.Overflow.Visible ? void 0 : rt.write(t), Xa = (t, e) => {
|
|
3429
3429
|
const n = e.body ?? {}, o = n.insets, s = {
|
|
3430
3430
|
rot: void 0 === e.rotation ? void 0 : String(Math.round(6e4 * e.rotation)),
|
|
3431
3431
|
spcFirstLastPara: Na(n.spaceFirstLastParagraph),
|
|
3432
|
-
vertOverflow: ja(n.verticalOverflow ??
|
|
3433
|
-
horzOverflow: ja(n.horizontalOverflow ??
|
|
3432
|
+
vertOverflow: ja(n.verticalOverflow ?? c.TEXT_DEFAULTS.verticalOverflow),
|
|
3433
|
+
horzOverflow: ja(n.horizontalOverflow ?? c.TEXT_DEFAULTS.horizontalOverflow),
|
|
3434
3434
|
vert: _e.write(n.vertical),
|
|
3435
3435
|
wrap: n.wrap,
|
|
3436
3436
|
lIns: void 0 === o?.left ? void 0 : String(cs(o.left)),
|
|
@@ -3462,13 +3462,13 @@ var _a = (t) => String(Math.round(1e3 * t)), Na = (t) => void 0 === t ? void 0 :
|
|
|
3462
3462
|
t.end("prstTxWarp");
|
|
3463
3463
|
}
|
|
3464
3464
|
switch (n.autoFit) {
|
|
3465
|
-
case
|
|
3465
|
+
case m.Autofit.None:
|
|
3466
3466
|
t.empty("noAutofit");
|
|
3467
3467
|
break;
|
|
3468
|
-
case
|
|
3468
|
+
case m.Autofit.Shape:
|
|
3469
3469
|
t.empty("spAutoFit");
|
|
3470
3470
|
break;
|
|
3471
|
-
case
|
|
3471
|
+
case m.Autofit.Normal: t.empty("normAutofit", {
|
|
3472
3472
|
fontScale: void 0 === n.fontScale ? void 0 : _a(n.fontScale),
|
|
3473
3473
|
lnSpcReduction: void 0 === n.lineSpacingReduction ? void 0 : _a(n.lineSpacingReduction)
|
|
3474
3474
|
});
|
|
@@ -3483,9 +3483,9 @@ var _a = (t) => String(Math.round(1e3 * t)), Na = (t) => void 0 === t ? void 0 :
|
|
|
3483
3483
|
}, Ua = (t, e, n, o) => {
|
|
3484
3484
|
const s = t.getXMLWriter();
|
|
3485
3485
|
s.pushDefaultNamespace("a"), s.start("p");
|
|
3486
|
-
const { runs: r, endRun: a, ...i } = o, l = void 0 !==
|
|
3486
|
+
const { runs: r, endRun: a, ...i } = o, l = void 0 !== c.inheritedTextSize(n, o) ? (t) => t : (t) => void 0 === t.size ? {
|
|
3487
3487
|
...t,
|
|
3488
|
-
size:
|
|
3488
|
+
size: c.TEXT_DEFAULTS.size
|
|
3489
3489
|
} : t;
|
|
3490
3490
|
((t) => !!t && Object.keys(t).some((e) => "runs" !== e && "endRun" !== e && void 0 !== t[e]))(i) && za(t, e, "pPr", i);
|
|
3491
3491
|
for (const n of r ?? []) {
|
|
@@ -3658,17 +3658,17 @@ var Ka = [
|
|
|
3658
3658
|
for (const n of hi(e)) await gi(t, n);
|
|
3659
3659
|
}
|
|
3660
3660
|
}, xi = async (t, e, n, o, s, r) => {
|
|
3661
|
-
const
|
|
3661
|
+
const a = await ts(t, r), i = o.content?.json, c = i?.image ?? {}, d = c.extLst ?? (a.external ? void 0 : yi), m = {
|
|
3662
3662
|
...c,
|
|
3663
|
-
type:
|
|
3663
|
+
type: l.Type.Image,
|
|
3664
3664
|
extLst: d,
|
|
3665
3665
|
stretch: c.tile ? void 0 : c.stretch ?? {}
|
|
3666
3666
|
}, p = {};
|
|
3667
|
-
void 0 !==
|
|
3667
|
+
void 0 !== i?.macro && (p.macro = i.macro), void 0 !== i?.published && (p.fPublished = i.published ? "1" : "0");
|
|
3668
3668
|
const f = {};
|
|
3669
3669
|
void 0 !== c.dpi && (f.dpi = String(c.dpi)), void 0 !== c.isRotatedWithShape && (f.rotWithShape = c.isRotatedWithShape ? "1" : "0");
|
|
3670
3670
|
const h = t.getXMLWriter();
|
|
3671
|
-
h.start("pic", p), h.start("nvPicPr"), Li(t, h, n, o, e), h.start("cNvPicPr",
|
|
3671
|
+
h.start("pic", p), h.start("nvPicPr"), Li(t, h, n, o, e), h.start("cNvPicPr", i?.noRelativeResize ? { preferRelativeResize: "0" } : {}), h.empty("a:picLocks", Bi(o)), h.end("cNvPicPr"), h.end("nvPicPr"), h.start("blipFill", f), h.pushDefaultNamespace("a"), as(h, m, a), h.popDefaultNamespace(), h.end("blipFill"), await Ai(t, e, n, o, s), h.end("pic");
|
|
3672
3672
|
}, yi = "<a:extLst><a:ext uri=\"{28A0092B-C50C-407E-A947-70E740481C1C}\"><a14:useLocalDpi xmlns:a14=\"http://schemas.microsoft.com/office/drawing/2010/main\" val=\"0\"/></a:ext></a:extLst>", vi = async (t, e, n, o, s) => {
|
|
3673
3673
|
const r = o.content?.json, a = r?.model, i = r?.part, l = () => s ?? n?.getBounds() ?? {
|
|
3674
3674
|
x: 0,
|
|
@@ -3721,7 +3721,7 @@ var Ka = [
|
|
|
3721
3721
|
uri: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"
|
|
3722
3722
|
};
|
|
3723
3723
|
})(d);
|
|
3724
|
-
g.start("mc:AlternateContent", { "xmlns:mc":
|
|
3724
|
+
g.start("mc:AlternateContent", { "xmlns:mc": Ti }), g.start("mc:Choice", {
|
|
3725
3725
|
[`xmlns:${x.prefix}`]: x.uri,
|
|
3726
3726
|
Requires: x.prefix
|
|
3727
3727
|
}), wi(t, e, n, o, m, u.relId, s), g.end("mc:Choice"), g.start("mc:Fallback"), Ei(g, l(), "This chart isn't available in your version of Excel.\n\nEditing this shape or saving this workbook into a different file format will permanently break the chart."), g.end("mc:Fallback"), g.end("mc:AlternateContent");
|
|
@@ -3748,23 +3748,24 @@ var Ka = [
|
|
|
3748
3748
|
r.start("grpSp"), r.start("nvGrpSpPr"), Li(t, r, n, o, e);
|
|
3749
3749
|
const l = Ni(o);
|
|
3750
3750
|
l ? (r.start("cNvGrpSpPr"), r.empty("a:grpSpLocks", l), r.end("cNvGrpSpPr")) : r.empty("cNvGrpSpPr"), r.end("nvGrpSpPr"), r.start("grpSpPr"), r.pushDefaultNamespace("a"), Oi(r, s, o, a?.childBounds ?? s), Go(t, i, a), a?.scene3d && r.raw(a.scene3d), a?.extLst?.properties && r.raw(a.extLst.properties), r.popDefaultNamespace(), r.end("grpSpPr");
|
|
3751
|
-
|
|
3751
|
+
const c = hi(o), d = n?.getMovables()?.getItems() ?? [];
|
|
3752
|
+
for (let n = 0; n < c.length; n++) await bi(t, e, d.length === c.length ? d[n] : null, c[n], ui(c[n]));
|
|
3752
3753
|
r.end("grpSp");
|
|
3753
|
-
}, bi = async (t, e, n, o) => {
|
|
3754
|
-
switch (
|
|
3754
|
+
}, bi = async (t, e, n, o, s) => {
|
|
3755
|
+
switch (o.content?.type) {
|
|
3755
3756
|
case "picture": {
|
|
3756
|
-
const
|
|
3757
|
-
return
|
|
3757
|
+
const r = es(t, o.content.json?.resId);
|
|
3758
|
+
return r ? xi(t, e, n, o, s, r) : void t.warn(`The picture '${o.content.name ?? ""}' in a group names no image in the workbook; the group is saved without it.`, void 0, "xlsx.drawing.group.picture");
|
|
3758
3759
|
}
|
|
3759
|
-
case "chart": return vi(t, e,
|
|
3760
|
-
case "shape": return Ci(t, e,
|
|
3761
|
-
case "group": return Si(t, e,
|
|
3762
|
-
default: return We(
|
|
3760
|
+
case "chart": return vi(t, e, n, o, s);
|
|
3761
|
+
case "shape": return Ci(t, e, n, o, s);
|
|
3762
|
+
case "group": return Si(t, e, n, o, s);
|
|
3763
|
+
default: return We(o.content?.type) ? void Wi(t.getXMLWriter(), o, s) : Pi(t, e, o, s);
|
|
3763
3764
|
}
|
|
3764
3765
|
}, Ci = async (t, e, n, o, s) => {
|
|
3765
3766
|
const a = t.getXMLWriter(), i = {}, l = o.content?.json, c = l?.type ?? r.Type.Shape, d = e.getStyles();
|
|
3766
|
-
c === r.Type.Connector ? (void 0 !== l?.macro && (i.macro = l.macro), void 0 !== l?.published && (i.fPublished = l.published ? "1" : "0"), a.start("cxnSp", i), a.start("nvCxnSpPr"), Li(t, a, n, o, e), $i(t, a, n, o, e), a.end("nvCxnSpPr"), Ai(t, e, n, o, s), Di(t, e, n, o), Ga(t, d, l?.text), a.end("cxnSp")) : (void 0 !== l?.macro && (i.macro = l.macro), void 0 !== l?.textLink && (i.textlink = l.textLink), void 0 !== l?.locksText && (i.fLocksText = l.locksText ? "1" : "0"), void 0 !== l?.published && (i.fPublished = l.published ? "1" : "0"), a.start("sp", i), a.start("nvSpPr"), Li(t, a, n, o, e), $i(t, a, n, o, e), a.end("nvSpPr"), Ai(t, e, n, o, s), Di(t, e, n, o), Ga(t, d, l?.text), a.end("sp"));
|
|
3767
|
-
},
|
|
3767
|
+
c === r.Type.Connector ? (void 0 !== l?.macro && (i.macro = l.macro), void 0 !== l?.published && (i.fPublished = l.published ? "1" : "0"), a.start("cxnSp", i), a.start("nvCxnSpPr"), Li(t, a, n, o, e), $i(t, a, n, o, e), a.end("nvCxnSpPr"), await Ai(t, e, n, o, s), Di(t, e, n, o), Ga(t, d, l?.text), a.end("cxnSp")) : (void 0 !== l?.macro && (i.macro = l.macro), void 0 !== l?.textLink && (i.textlink = l.textLink), void 0 !== l?.locksText && (i.fLocksText = l.locksText ? "1" : "0"), void 0 !== l?.published && (i.fPublished = l.published ? "1" : "0"), a.start("sp", i), a.start("nvSpPr"), Li(t, a, n, o, e), $i(t, a, n, o, e), a.end("nvSpPr"), await Ai(t, e, n, o, s), Di(t, e, n, o), Ga(t, d, l?.text), a.end("sp"));
|
|
3768
|
+
}, ki = async (t, e, n, o) => Pi(t, e, o, n.getBounds()), Ti = "http://schemas.openxmlformats.org/markup-compatibility/2006", Ii = "http://schemas.microsoft.com/office/drawing/2010/slicer", Ri = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Fi = async (t, e, n, o) => {
|
|
3768
3769
|
const s = t.getXMLWriter(), r = o.content?.name ?? "", a = Cr(n.getContent()), i = void 0 !== a?.timeline, l = i ? {
|
|
3769
3770
|
"xmlns:tsle": Ri,
|
|
3770
3771
|
Requires: "tsle"
|
|
@@ -3775,7 +3776,7 @@ var Ka = [
|
|
|
3775
3776
|
"xmlns:sle15": "http://schemas.microsoft.com/office/drawing/2012/slicer",
|
|
3776
3777
|
Requires: "sle15"
|
|
3777
3778
|
}, c = i ? "Timeline: Works in Excel 2013 or higher. Do not move or resize." : a ? "This shape represents a slicer. Slicers are supported in Excel 2010 or later.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2003 or earlier, the slicer cannot be used." : "This shape represents a table slicer. Table slicers are not supported in this version of Excel.\n\nIf the shape was modified in an earlier version of Excel, or if the workbook was saved in Excel 2007 or earlier, the slicer can't be used.";
|
|
3778
|
-
s.start("mc:AlternateContent", { "xmlns:mc":
|
|
3779
|
+
s.start("mc:AlternateContent", { "xmlns:mc": Ti }), s.start("mc:Choice", l), s.start("graphicFrame", { macro: "" }), s.start("nvGraphicFramePr"), Li(t, s, n, o, e), s.empty("cNvGraphicFramePr"), s.end("nvGraphicFramePr"), s.start("xfrm"), s.empty("a:off", {
|
|
3779
3780
|
x: "0",
|
|
3780
3781
|
y: "0"
|
|
3781
3782
|
}), s.empty("a:ext", {
|
|
@@ -3808,29 +3809,35 @@ var Ka = [
|
|
|
3808
3809
|
lang: "en-US",
|
|
3809
3810
|
sz: "1100"
|
|
3810
3811
|
}), t.start("a:t"), t.text(n), t.end("a:t"), t.end("a:r"), t.end("a:p"), t.end("txBody"), t.end("sp");
|
|
3811
|
-
}, Mi = async (t, e, n, o) => Pi(t, e, o, n.getBounds()), Pi = async (t, e, n, o) => {
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
text:
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3812
|
+
}, Mi = async (t, e, n, o) => Pi(t, e, o, n.getBounds()), Pi = async (t, e, n, o) => Ci(t, e, null, {
|
|
3813
|
+
...n,
|
|
3814
|
+
content: {
|
|
3815
|
+
type: "shape",
|
|
3816
|
+
name: n.content?.name,
|
|
3817
|
+
description: n.content?.description,
|
|
3818
|
+
json: {
|
|
3819
|
+
fill: "bg1",
|
|
3820
|
+
stroke: {
|
|
3821
|
+
width: 2,
|
|
3822
|
+
fill: "red"
|
|
3823
|
+
},
|
|
3824
|
+
text: { runs: [{
|
|
3825
|
+
text: "Unsupported Type: " + (n.content?.type ?? "unknown"),
|
|
3826
|
+
color: "tx1"
|
|
3827
|
+
}] }
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
}, o), Ai = async (t, e, n, o, s) => {
|
|
3831
|
+
const r = o.content?.json, a = r?.geometry, i = e.getStyles(), l = "string" == typeof a ? a : "rect";
|
|
3832
|
+
let c = [];
|
|
3833
|
+
"object" != typeof a && r?.adjustments && Object.keys(r.adjustments).length > 0 && (c = ((t, e) => {
|
|
3834
|
+
const n = [];
|
|
3835
|
+
if (t) return t.isAdjusted() && t.forEachAdjustment((t, e) => n.push([t, `val ${Math.round(e)}`])), n;
|
|
3836
|
+
for (const t of Object.keys(e ?? {})) Number.isFinite(e[t]) && n.push([t, `val ${Math.round(e[t])}`]);
|
|
3837
|
+
return n;
|
|
3838
|
+
})(await (n?.getContent())?.getGeometry?.(Math.max(1, s.width), Math.max(1, s.height)) ?? null, r.adjustments));
|
|
3839
|
+
const d = t.getXMLWriter();
|
|
3840
|
+
if (d.start("spPr"), d.pushDefaultNamespace("a"), Oi(d, s, o), "object" == typeof a && a) ((t, e) => {
|
|
3834
3841
|
t.start("custGeom"), t.start("avLst");
|
|
3835
3842
|
for (const n of e.av ?? []) ai(t, n);
|
|
3836
3843
|
t.end("avLst"), t.start("gdLst");
|
|
@@ -3854,26 +3861,24 @@ var Ka = [
|
|
|
3854
3861
|
t.start("pathLst");
|
|
3855
3862
|
for (const n of e.paths) di(t, n);
|
|
3856
3863
|
t.end("pathLst"), t.end("custGeom");
|
|
3857
|
-
})(
|
|
3864
|
+
})(d, a);
|
|
3858
3865
|
else {
|
|
3859
|
-
|
|
3860
|
-
const t = ((t) => t ? Object.keys(t).filter((e) => Number.isFinite(t[e])).map((e) => [e, `val ${Math.round(t[e])}`]) : [])(a?.adjustments);
|
|
3861
|
-
if (0 === t.length) r.empty("avLst");
|
|
3866
|
+
if (d.start("prstGeom", { prst: l }), 0 === c.length) d.empty("avLst");
|
|
3862
3867
|
else {
|
|
3863
|
-
|
|
3864
|
-
for (const [
|
|
3865
|
-
name:
|
|
3866
|
-
fmla:
|
|
3868
|
+
d.start("avLst");
|
|
3869
|
+
for (const [t, e] of c) d.empty("gd", {
|
|
3870
|
+
name: t,
|
|
3871
|
+
fmla: e
|
|
3867
3872
|
});
|
|
3868
|
-
|
|
3873
|
+
d.end("avLst");
|
|
3869
3874
|
}
|
|
3870
|
-
|
|
3875
|
+
d.end("prstGeom");
|
|
3871
3876
|
}
|
|
3872
|
-
Go(t,
|
|
3877
|
+
Go(t, i, r), r?.scene3d && d.raw(r.scene3d), r?.shape3d && d.raw(r.shape3d), r?.extLst?.properties && d.raw(r.extLst.properties), d.popDefaultNamespace(), d.end("spPr");
|
|
3873
3878
|
}, Di = (t, e, n, o) => {
|
|
3874
3879
|
const s = t.getXMLWriter(), r = o.content?.json?.style;
|
|
3875
3880
|
if (null === r) return;
|
|
3876
|
-
const a = e.getStyles().getTheme(), i =
|
|
3881
|
+
const a = e.getStyles().getTheme(), i = c.defaultStyleRefs(o.content?.json), l = (t, e) => {
|
|
3877
3882
|
e && (s.start(t, { idx: String(e.index) }), e.color && Mo(s, a, e.color), s.end(t));
|
|
3878
3883
|
};
|
|
3879
3884
|
s.start("style"), s.pushDefaultNamespace("a"), l("lnRef", r?.stroke ?? i.stroke), l("fillRef", r?.fill ?? i.fill), l("effectRef", r?.effect ?? i.effect), l("fontRef", r?.font ?? i.font), s.popDefaultNamespace(), s.end("style");
|
|
@@ -3978,7 +3983,7 @@ function Xi(t, e, n, o, s, r, a, i, l) {
|
|
|
3978
3983
|
parentId: a ? Hi(a) : void 0,
|
|
3979
3984
|
done: i ? "1" : void 0
|
|
3980
3985
|
};
|
|
3981
|
-
if (t.start("threadedComment", c), t.start("text",
|
|
3986
|
+
if (t.start("threadedComment", c), t.start("text", Te.test(r) || /[\n\r]/.test(r) ? Fe : void 0), t.text(r), t.end("text"), l && l.length > 0) {
|
|
3982
3987
|
t.start("mentions");
|
|
3983
3988
|
for (let e = 0; e < l.length; e++) {
|
|
3984
3989
|
const n = l[e];
|
|
@@ -4003,7 +4008,7 @@ var Ui = {
|
|
|
4003
4008
|
function Gi(t, e, n, o) {
|
|
4004
4009
|
if (null == o) return;
|
|
4005
4010
|
Ui.rowIndex = e, Ui.colIndex = n;
|
|
4006
|
-
const s =
|
|
4011
|
+
const s = F.cellToString(Ui);
|
|
4007
4012
|
let r, a;
|
|
4008
4013
|
switch (typeof o) {
|
|
4009
4014
|
case "number":
|
|
@@ -4067,7 +4072,7 @@ var qi = [
|
|
|
4067
4072
|
...t.styles,
|
|
4068
4073
|
direct: a.list
|
|
4069
4074
|
}), n.setXfComplements(a.complements), s;
|
|
4070
|
-
}(s, t.getSheets({ visibility:
|
|
4075
|
+
}(s, t.getSheets({ visibility: A.Visibility.VeryHidden }), r, (t, n) => {
|
|
4071
4076
|
e.warn(t, void 0, n);
|
|
4072
4077
|
});
|
|
4073
4078
|
e.getSharedStates().set(pt, mt(s.names, function(t) {
|
|
@@ -4112,7 +4117,7 @@ var qi = [
|
|
|
4112
4117
|
a && (s.xWindow = "" + Math.round(a.left), s.yWindow = "" + Math.round(a.top), s.windowWidth = "" + Math.round(a.width), s.windowHeight = "" + Math.round(a.height));
|
|
4113
4118
|
const i = o.getTabRatio();
|
|
4114
4119
|
600 !== i && (s.tabRatio = i);
|
|
4115
|
-
const l = Math.min(o.getFirstTab(), n.getSheets({ visibility:
|
|
4120
|
+
const l = Math.min(o.getFirstTab(), n.getSheets({ visibility: A.Visibility.VeryHidden }).length - 1);
|
|
4116
4121
|
l > 0 && (s.firstSheet = "" + l);
|
|
4117
4122
|
const c = n.getSelectedSheet().getIndex();
|
|
4118
4123
|
0 !== c && (s.activeTab = "" + c), o.isAutoFilterDateGrouping() || (s.autoFilterDateGrouping = "0"), e.empty("workbookView", s), e.end("bookViews");
|
|
@@ -4168,9 +4173,9 @@ var qi = [
|
|
|
4168
4173
|
}
|
|
4169
4174
|
return s;
|
|
4170
4175
|
})(e, s.pivotCaches, !0 === s.date1904, ((t) => {
|
|
4171
|
-
const e = /* @__PURE__ */ new Set(), n = t.getWorksheets().getItems({ visibility:
|
|
4176
|
+
const e = /* @__PURE__ */ new Set(), n = t.getWorksheets().getItems({ visibility: A.Visibility.VeryHidden });
|
|
4172
4177
|
for (let t = 0; t < n.length; t++) {
|
|
4173
|
-
const o =
|
|
4178
|
+
const o = Tr(n[t]);
|
|
4174
4179
|
for (let t = 0; t < o.length; t++) {
|
|
4175
4180
|
const n = Cr(o[t]);
|
|
4176
4181
|
n?.tabular && void 0 !== n.cacheId && e.add(n.cacheId);
|
|
@@ -4183,9 +4188,9 @@ var qi = [
|
|
|
4183
4188
|
})(e, t), n.start("sheets");
|
|
4184
4189
|
const l = e.getSharedStates(), c = t.getStrings().beginPersist();
|
|
4185
4190
|
l.set("persistStrings", c);
|
|
4186
|
-
const d = new
|
|
4191
|
+
const d = new ko();
|
|
4187
4192
|
l.set("metaCollector", d);
|
|
4188
|
-
const m = new
|
|
4193
|
+
const m = new To(d, t, e.log.bind(e));
|
|
4189
4194
|
l.set("persistRichTypes", m), l.set(Zn, new Qn(s.styles, t.getStyles()));
|
|
4190
4195
|
let p = {
|
|
4191
4196
|
table: [],
|
|
@@ -4194,7 +4199,7 @@ var qi = [
|
|
|
4194
4199
|
cacheNames: []
|
|
4195
4200
|
};
|
|
4196
4201
|
try {
|
|
4197
|
-
const o = t.getSheets({ visibility:
|
|
4202
|
+
const o = t.getSheets({ visibility: A.Visibility.VeryHidden }), i = s.sheets, d = t.getSelectedSheet(), m = o.length, f = ((t, e) => {
|
|
4198
4203
|
const n = new Array(e), o = /* @__PURE__ */ new Set();
|
|
4199
4204
|
let s = 1;
|
|
4200
4205
|
for (let r = 0; r < e; r++) {
|
|
@@ -4262,16 +4267,16 @@ var qi = [
|
|
|
4262
4267
|
pivot: [],
|
|
4263
4268
|
timeline: [],
|
|
4264
4269
|
cacheNames: []
|
|
4265
|
-
}, o = pr(t), s = e.getWorksheets().getItems({ visibility:
|
|
4270
|
+
}, o = pr(t), s = e.getWorksheets().getItems({ visibility: A.Visibility.VeryHidden });
|
|
4266
4271
|
for (let e = 0; e < s.length; e++) {
|
|
4267
|
-
const r =
|
|
4272
|
+
const r = Tr(s[e]);
|
|
4268
4273
|
for (let e = 0; e < r.length; e++) {
|
|
4269
4274
|
const s = r[e], a = null !== Cr(s);
|
|
4270
4275
|
if (!a && !o.has(s.getTable())) {
|
|
4271
4276
|
t.log(`The slicer '${s.getName?.() ?? ""}' names a table that was not written; its cache was dropped.`);
|
|
4272
4277
|
continue;
|
|
4273
4278
|
}
|
|
4274
|
-
if (
|
|
4279
|
+
if (kr(s)) {
|
|
4275
4280
|
const e = t.addPart("timelineCache", s);
|
|
4276
4281
|
e.relId && n.timeline.push(e.relId);
|
|
4277
4282
|
continue;
|
|
@@ -4334,7 +4339,7 @@ var qi = [
|
|
|
4334
4339
|
}(e, n, s), function(t, e, n, o, s) {
|
|
4335
4340
|
const r = t.getSharedStates().get(pt), a = o.names, i = a ? a.length : 0, l = new Set((a ?? []).filter((t) => !t.scope).map((t) => t.name.toLowerCase())), c = s.filter((t) => !l.has(t.toLowerCase()));
|
|
4336
4341
|
if (0 === i && 0 === c.length) return;
|
|
4337
|
-
const d = /* @__PURE__ */ new Map(), m = n.getSheets({ visibility:
|
|
4342
|
+
const d = /* @__PURE__ */ new Map(), m = n.getSheets({ visibility: A.Visibility.VeryHidden });
|
|
4338
4343
|
for (let t = 0; t < m.length; t++) d.set(m[t].getName().toLowerCase(), t);
|
|
4339
4344
|
e.start("definedNames");
|
|
4340
4345
|
for (let n = 0; n < i; n++) {
|
|
@@ -4432,7 +4437,7 @@ var qi = [
|
|
|
4432
4437
|
});
|
|
4433
4438
|
}
|
|
4434
4439
|
async emit(t, e) {
|
|
4435
|
-
const s = e.getXMLWriter(), r = t.model,
|
|
4440
|
+
const s = e.getXMLWriter(), r = t.model, i = t.json, l = Ze(r, i);
|
|
4436
4441
|
((t, e) => {
|
|
4437
4442
|
if (0 === e.length) return;
|
|
4438
4443
|
let n = Ve(t.legacyDrawing?.xml ?? "");
|
|
@@ -4446,7 +4451,7 @@ var qi = [
|
|
|
4446
4451
|
const o = e[t].jsonMovable.content, r = o.json ?? (o.json = {});
|
|
4447
4452
|
("number" != typeof r.shapeId || s.has(r.shapeId)) && (r.shapeId = ++n), s.add(r.shapeId);
|
|
4448
4453
|
}
|
|
4449
|
-
})(
|
|
4454
|
+
})(i, l), s.decl(), s.start("worksheet", {
|
|
4450
4455
|
xmlns: "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
|
4451
4456
|
"xmlns:r": "http://schemas.openxmlformats.org/officeDocument/2006/relationships",
|
|
4452
4457
|
"xmlns:mc": "http://schemas.openxmlformats.org/markup-compatibility/2006",
|
|
@@ -4463,7 +4468,7 @@ var qi = [
|
|
|
4463
4468
|
p?.hideAutoPageBreaks && (f.autoPageBreaks = "0"), p?.fitToPage && (f.fitToPage = "1");
|
|
4464
4469
|
const h = Object.keys(f).length > 0, u = !!s || m || h;
|
|
4465
4470
|
(u || 0 !== Object.keys(a).length) && (u ? (e.start("sheetPr", a), s && Ao(e, n.getStyles().getTheme(), s, "tabColor", !1), m && e.empty("outlinePr", d), h && e.empty("pageSetUpPr", f), e.end("sheetPr")) : e.empty("sheetPr", a));
|
|
4466
|
-
}(0, s, r,
|
|
4471
|
+
}(0, s, r, i), function(t, e, n, s) {
|
|
4467
4472
|
let r = n.getUsedRange({ features: [] }), a = r ? r.getCoords() : null;
|
|
4468
4473
|
const i = Wt, l = et, c = s.directStyles, d = c ? c.length : 0;
|
|
4469
4474
|
for (let t = 0; t < d; t++) {
|
|
@@ -4503,8 +4508,8 @@ var qi = [
|
|
|
4503
4508
|
colEnd: a.colEnd,
|
|
4504
4509
|
rowEnd: a.rowEnd
|
|
4505
4510
|
}).getAddress()}`), e.empty("dimension", { ref: f });
|
|
4506
|
-
}(0, s, r,
|
|
4507
|
-
const r = n.getView(), a = r.getTopLeft(), i = n.getRowHeaders().getMetrics().getIndex(a.top), l = n.getColumnHeaders().getMetrics().getIndex(a.left), c =
|
|
4511
|
+
}(0, s, r, i), function(t, e, n, o, s) {
|
|
4512
|
+
const r = n.getView(), a = r.getTopLeft(), i = n.getRowHeaders().getMetrics().getIndex(a.top), l = n.getColumnHeaders().getMetrics().getIndex(a.left), c = F.cellToString({
|
|
4508
4513
|
colIndex: l,
|
|
4509
4514
|
rowIndex: i
|
|
4510
4515
|
});
|
|
@@ -4512,7 +4517,7 @@ var qi = [
|
|
|
4512
4517
|
const d = {};
|
|
4513
4518
|
r.isShowFormulas() && (d.showFormulas = "1"), r.isShowColumnGridlines() || r.isShowRowGridlines() || (d.showGridLines = "0"), r.isShowColumnHeaders() || r.isShowRowHeaders() || (d.showRowColHeaders = "0"), r.isShowZeros() || (d.showZeros = "0"), r.isRightToLeft() && (d.rightToLeft = "1"), r.isShowOutlineSymbols() || (d.showOutlineSymbols = "0"), s && (d.tabSelected = "1"), "A1" !== c && (d.topLeftCell = c), r.isShowRuler() || (d.showRuler = "0"), r.isShowWhitespace() || (d.showWhiteSpace = "0");
|
|
4514
4519
|
const m = r.getViewMode();
|
|
4515
|
-
m !==
|
|
4520
|
+
m !== b.ViewMode.Normal && (d.view = m);
|
|
4516
4521
|
const p = r.getZoomScale();
|
|
4517
4522
|
100 !== p && (d.zoomScale = p);
|
|
4518
4523
|
const f = r.toJSON(), h = f?.zoomScales ?? {};
|
|
@@ -4533,17 +4538,17 @@ var qi = [
|
|
|
4533
4538
|
d.colorId = "" + i;
|
|
4534
4539
|
}
|
|
4535
4540
|
d.workbookViewId = "0";
|
|
4536
|
-
const g = n.getSelection().getCoords(), x =
|
|
4541
|
+
const g = n.getSelection().getCoords(), x = F.cellToString(g.cell);
|
|
4537
4542
|
let y = {};
|
|
4538
|
-
const v = r.getFreezePanes(), w = v.coords ?? {},
|
|
4539
|
-
if (
|
|
4540
|
-
const t = v.topLeft ?? {}, o = t.top ?? 0, s = t.left ?? 0, r = n.getRowHeaders().getMetrics().getIndex(o), i = n.getColumnHeaders().getMetrics().getIndex(s), l =
|
|
4543
|
+
const v = r.getFreezePanes(), w = v.coords ?? {}, S = w.colIndex ?? 0, C = w.rowIndex ?? 0;
|
|
4544
|
+
if (S > 0 || C > 0) {
|
|
4545
|
+
const t = v.topLeft ?? {}, o = t.top ?? 0, s = t.left ?? 0, r = n.getRowHeaders().getMetrics().getIndex(o), i = n.getColumnHeaders().getMetrics().getIndex(s), l = S - i, c = C - r, m = Math.max(S, n.getColumnHeaders().getMetrics().getIndex(a.left + n.getColumnHeaders().getMetrics().getOffset(S) - s)), p = Math.max(C, n.getRowHeaders().getMetrics().getIndex(a.top + n.getRowHeaders().getMetrics().getOffset(C) - o)), f = F.cellToString({
|
|
4541
4546
|
colIndex: i,
|
|
4542
4547
|
rowIndex: r
|
|
4543
4548
|
});
|
|
4544
4549
|
"A1" !== f ? d.topLeftCell = f : delete d.topLeftCell, e.start("sheetView", d);
|
|
4545
4550
|
const h = {};
|
|
4546
|
-
l > 0 && (h.xSplit = l), c > 0 && (h.ySplit = c), h.topLeftCell =
|
|
4551
|
+
l > 0 && (h.xSplit = l), c > 0 && (h.ySplit = c), h.topLeftCell = F.cellToString({
|
|
4547
4552
|
colIndex: m,
|
|
4548
4553
|
rowIndex: p
|
|
4549
4554
|
}), h.state = "frozen";
|
|
@@ -4557,27 +4562,27 @@ var qi = [
|
|
|
4557
4562
|
sqref: s?.sqref ?? r
|
|
4558
4563
|
});
|
|
4559
4564
|
};
|
|
4560
|
-
0 ===
|
|
4565
|
+
0 === S ? (h.activePane = "bottomLeft", e.empty("pane", h), g("topLeft", F.cellToString({
|
|
4561
4566
|
colIndex: m,
|
|
4562
4567
|
rowIndex: r
|
|
4563
|
-
}), !1), y.pane = "bottomLeft") : 0 === C ? (h.activePane = "topRight", e.empty("pane", h), g("topLeft",
|
|
4568
|
+
}), !1), y.pane = "bottomLeft") : 0 === C ? (h.activePane = "topRight", e.empty("pane", h), g("topLeft", F.cellToString({
|
|
4564
4569
|
colIndex: i,
|
|
4565
4570
|
rowIndex: p
|
|
4566
|
-
}), !1), y.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight",
|
|
4571
|
+
}), !1), y.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight", F.cellToString({
|
|
4567
4572
|
colIndex: m,
|
|
4568
4573
|
rowIndex: r
|
|
4569
|
-
}), !0), g("bottomLeft",
|
|
4574
|
+
}), !0), g("bottomLeft", F.cellToString({
|
|
4570
4575
|
colIndex: i,
|
|
4571
4576
|
rowIndex: p
|
|
4572
4577
|
}), !0), y.pane = "bottomRight");
|
|
4573
4578
|
} else e.start("sheetView", d);
|
|
4574
4579
|
y.activeCell = x;
|
|
4575
|
-
const
|
|
4576
|
-
if (
|
|
4580
|
+
const k = g.ranges, T = k ? k.length : 0;
|
|
4581
|
+
if (T > 0) {
|
|
4577
4582
|
let t = "";
|
|
4578
|
-
for (let e = 0; e <
|
|
4579
|
-
const n =
|
|
4580
|
-
e > 0 && (t += " "), t +=
|
|
4583
|
+
for (let e = 0; e < T; e++) {
|
|
4584
|
+
const n = k[e];
|
|
4585
|
+
e > 0 && (t += " "), t += F.rangeToString(n);
|
|
4581
4586
|
}
|
|
4582
4587
|
y.sqref = t, (g.rangeIndex ?? 0) > 0 && (y.activeCellId = "" + g.rangeIndex);
|
|
4583
4588
|
} else "A1" === x ? y = null : y.sqref = x;
|
|
@@ -4593,7 +4598,7 @@ var qi = [
|
|
|
4593
4598
|
thickBottom: s,
|
|
4594
4599
|
run: n
|
|
4595
4600
|
};
|
|
4596
|
-
}, s = t.defaultRowSize ?? e, r = t.rows ?
|
|
4601
|
+
}, s = t.defaultRowSize ?? e, r = t.rows ? F.refsToRuns(t.rows, !1) : null;
|
|
4597
4602
|
let a = null, i = 0;
|
|
4598
4603
|
const l = r ? r.length : 0;
|
|
4599
4604
|
for (let t = 0; t < l; t++) {
|
|
@@ -4601,18 +4606,18 @@ var qi = [
|
|
|
4601
4606
|
i += e.max - e.min + 1, ta(e.value) && (!a || e.max - e.min > a.max - a.min) && (a = e);
|
|
4602
4607
|
}
|
|
4603
4608
|
return a && a.max - a.min + 1 > n - i ? o(a.value.sz ?? s, a) : void 0 !== t.defaultRowSize ? o(t.defaultRowSize, null) : null;
|
|
4604
|
-
})(
|
|
4609
|
+
})(i, .75 * r.getStyles().getNormal().getBestFit().height, r.getEntireRange().getRowEnd() + 1);
|
|
4605
4610
|
(function(t, e, n, o, s) {
|
|
4606
4611
|
const r = o.defaultColSize, a = o.defaultRowSize, i = {};
|
|
4607
|
-
void 0 !== o.baseColSize && (i.baseColWidth = o.baseColSize), void 0 !== r && (i.defaultColWidth = r), s ? (i.defaultRowHeight = s.height, s.custom && (i.customHeight = "1")) : (i.defaultRowHeight = a ?? .75 * n.getRowHeaders().getMetrics().getDefaultSize(), void 0 !== a && (i.customHeight = "1")), o.rows && null !== ra(
|
|
4612
|
+
void 0 !== o.baseColSize && (i.baseColWidth = o.baseColSize), void 0 !== r && (i.defaultColWidth = r), s ? (i.defaultRowHeight = s.height, s.custom && (i.customHeight = "1")) : (i.defaultRowHeight = a ?? .75 * n.getRowHeaders().getMetrics().getDefaultSize(), void 0 !== a && (i.customHeight = "1")), o.rows && null !== ra(F.refsToRuns(o.rows, !1)) && (i.zeroHeight = "1"), s?.thickTop && (i.thickTop = "1"), s?.thickBottom && (i.thickBottom = "1");
|
|
4608
4613
|
const l = n.getOutline(), c = l.getLevelCount(v.Axis.Row);
|
|
4609
4614
|
c > 0 && (i.outlineLevelRow = c);
|
|
4610
4615
|
const d = l.getLevelCount(v.Axis.Column);
|
|
4611
4616
|
d > 0 && (i.outlineLevelCol = d), i["x14ac:dyDescent"] = "0.25", e.empty("sheetFormatPr", i);
|
|
4612
|
-
})(0, s, r,
|
|
4613
|
-
const d = !1 ===
|
|
4617
|
+
})(0, s, r, i, c);
|
|
4618
|
+
const d = !1 === i.protection?.showFormulas ? e.getSharedStates().get("xfVariants") ?? null : null;
|
|
4614
4619
|
(function(t, e, n, o, s) {
|
|
4615
|
-
const r = o.cols ?
|
|
4620
|
+
const r = o.cols ? F.refsToRuns(o.cols, !0) : null, a = r ? r.length : 0;
|
|
4616
4621
|
n.getEntireRange().getColumnEnd();
|
|
4617
4622
|
const i = n.getColumnHeaders().getDefaultSizeNative(), l = s ? s.getXf(0, !0, !1) : 0;
|
|
4618
4623
|
let c = 1;
|
|
@@ -4642,13 +4647,13 @@ var qi = [
|
|
|
4642
4647
|
}
|
|
4643
4648
|
d(et + 1), e.end("cols");
|
|
4644
4649
|
}
|
|
4645
|
-
})(0, s, r,
|
|
4650
|
+
})(0, s, r, i, d), function(t, e, n, s, r, i, l) {
|
|
4646
4651
|
const c = t.getSharedStates(), d = c.get("persistStrings"), m = c.get("metaCollector"), p = c.get("persistRichTypes"), f = c.get(Zn), h = function(t) {
|
|
4647
4652
|
let e = null;
|
|
4648
4653
|
for (const n of t.pivotTables ?? []) {
|
|
4649
4654
|
const t = n.buttons?.length ? te(n) : null;
|
|
4650
4655
|
if (t) for (const o of n.buttons) {
|
|
4651
|
-
const n =
|
|
4656
|
+
const n = F.fastStringToRange(o);
|
|
4652
4657
|
for (let o = n.rowStart; o <= n.rowEnd; o++) for (let s = n.colStart; s <= n.colEnd; s++) (e ??= /* @__PURE__ */ new Set()).add((t.rowStart + o) * Ra + t.colStart + s);
|
|
4653
4658
|
}
|
|
4654
4659
|
}
|
|
@@ -4660,15 +4665,15 @@ var qi = [
|
|
|
4660
4665
|
o && (e ??= []).push({
|
|
4661
4666
|
table: n,
|
|
4662
4667
|
coords: o,
|
|
4663
|
-
formats: t?.header ?
|
|
4668
|
+
formats: t?.header ? L(t) : null
|
|
4664
4669
|
});
|
|
4665
4670
|
}
|
|
4666
4671
|
return e;
|
|
4667
4672
|
}(n);
|
|
4668
4673
|
let g = 0, y = 0;
|
|
4669
|
-
const
|
|
4670
|
-
let
|
|
4671
|
-
const T = l?.run,
|
|
4674
|
+
const b = n.getUsedRange();
|
|
4675
|
+
let k = 0;
|
|
4676
|
+
const T = l?.run, I = s.rows ? F.refsToRuns(s.rows, !1) : null, R = s.defaultRowSize ?? .75 * n.getStyles().getNormal().getBestFit().height, E = I && T ? ((t, e, n, o) => {
|
|
4672
4677
|
const s = [];
|
|
4673
4678
|
let r = 0;
|
|
4674
4679
|
const a = (t, e) => {
|
|
@@ -4683,26 +4688,26 @@ var qi = [
|
|
|
4683
4688
|
a(r, o.min - 1), r = o.max + 1, o.min === e.min && o.max === e.max || s.push(o);
|
|
4684
4689
|
}
|
|
4685
4690
|
return a(r, o - 1), s;
|
|
4686
|
-
})(
|
|
4687
|
-
if (
|
|
4688
|
-
const c = .75,
|
|
4691
|
+
})(I, T, R, n.getEntireRange().getRowEnd() + 1) : I, M = E ? E.length : 0, A = ra(E), D = null !== A ? A - 1 : E?.[M - 1]?.max ?? -1, _ = s.cols ? F.refsToRuns(s.cols, !0) : null, N = _ ? _.length : 0, $ = _?.[N - 1]?.max ?? -1;
|
|
4692
|
+
if (b || M > 0) {
|
|
4693
|
+
const c = .75, b = s.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * c, T = n.getStyles().getNormal().getBestFit().height * c, I = sa(n.getOutline(), v.Axis.Row), R = (t, e) => {
|
|
4689
4694
|
const n = Ma;
|
|
4690
4695
|
if (n.r = "" + (t + 1), n.s = void 0, n.customFormat = void 0, n.hidden = void 0, n.ht = void 0, n.customHeight = void 0, n.outlineLevel = void 0, n.collapsed = void 0, n.thickTop = void 0, n.thickBot = void 0, !e) return n;
|
|
4691
4696
|
const o = e.value;
|
|
4692
|
-
void 0 !== o.s && (n.s = "" + (
|
|
4693
|
-
const s = o.csz ?? !1, r = o.sz ??
|
|
4694
|
-
return (r !== (l?.height ?? T) || s) && (n.ht = "" + r), s && (n.customHeight = "1"), o.l && (n.outlineLevel = "" + o.l),
|
|
4697
|
+
void 0 !== o.s && (n.s = "" + (i ? i.getXf(o.s, !0, !1) : o.s), n.customFormat = "1"), o.h && (n.hidden = "1");
|
|
4698
|
+
const s = o.csz ?? !1, r = o.sz ?? b;
|
|
4699
|
+
return (r !== (l?.height ?? T) || s) && (n.ht = "" + r), s && (n.customHeight = "1"), o.l && (n.outlineLevel = "" + o.l), I.has(t) && (n.collapsed = "1"), o.tt && (n.thickTop = "1"), o.tb && (n.thickBot = "1"), n;
|
|
4695
4700
|
};
|
|
4696
|
-
let
|
|
4701
|
+
let M = 0, L = E?.[M] ?? null, N = L?.min ?? Number.MAX_SAFE_INTEGER, B = L?.max ?? Number.MAX_SAFE_INTEGER, O = L?.value?.s, V = -1, W = 0, z = _?.[W] ?? null, j = z?.min ?? Number.MAX_SAFE_INTEGER, X = z?.max ?? Number.MAX_SAFE_INTEGER, H = z?.value?.s;
|
|
4697
4702
|
const U = (t, n = !1) => {
|
|
4698
4703
|
if (V !== t) {
|
|
4699
4704
|
for (-1 !== V && (e.end("row"), 0 !== W && (W = 0, z = _?.[W] ?? null, j = z?.min ?? Number.MAX_SAFE_INTEGER, X = z?.max ?? Number.MAX_SAFE_INTEGER, H = z?.value?.s)); V + 1 <= t;) {
|
|
4700
|
-
V++,
|
|
4701
|
-
const o = V < t || n && V === t, s =
|
|
4705
|
+
V++, L && V > B && (L = E[++M] ?? null, L ? (N = L.min, B = L.max, O = L.value?.s) : (N = Number.MAX_SAFE_INTEGER, B = Number.MAX_SAFE_INTEGER, O = void 0)), V < N && V < t && null === A && (V = L ? Math.min(N, t) : t), null !== A && V >= A && V < t && (V = t);
|
|
4706
|
+
const o = V < t || n && V === t, s = R(V, L && V >= N && V <= B ? L : null);
|
|
4702
4707
|
o ? e.empty("row", s) : e.start("row", s);
|
|
4703
4708
|
}
|
|
4704
4709
|
if (t < V) {
|
|
4705
|
-
const n =
|
|
4710
|
+
const n = R(t, null);
|
|
4706
4711
|
e.start("row", n);
|
|
4707
4712
|
}
|
|
4708
4713
|
}
|
|
@@ -4757,21 +4762,21 @@ var qi = [
|
|
|
4757
4762
|
rowIndex: u.rowStart,
|
|
4758
4763
|
colIndex: u.colStart
|
|
4759
4764
|
}, v = c.parse(g, y), w = v ? c.annotate(v) : void 0, S = v ? c.spell(v, f.has(`${u.rowStart},${u.colStart}`), p(u.rowStart, u.colStart)) : null;
|
|
4760
|
-
let
|
|
4761
|
-
if (
|
|
4765
|
+
let b = S ? C.imager(S, { entireCoords: d }) : null;
|
|
4766
|
+
if (b) g = b(y);
|
|
4762
4767
|
else if (!o.isSingleCell(u)) {
|
|
4763
4768
|
const t = [];
|
|
4764
|
-
|
|
4769
|
+
F.normalizeA1ToR1C1(g, y.rowIndex, y.colIndex, t), b = (e) => {
|
|
4765
4770
|
const n = e ?? y;
|
|
4766
|
-
return
|
|
4771
|
+
return F.resolveRelativeToA1(t, n.rowIndex, n.colIndex);
|
|
4767
4772
|
};
|
|
4768
4773
|
}
|
|
4769
4774
|
if (g.length > 8192) {
|
|
4770
|
-
t.warn(`The formula at '${n.getName()}'!${
|
|
4775
|
+
t.warn(`The formula at '${n.getName()}'!${F.rangeToString(u)} is ${g.length.toLocaleString()} characters as xlsx stores it; Excel allows at most ${8192 .toLocaleString()}. Its cells are saved as values.`, void 0, "xlsx.formula.lengthLimit");
|
|
4771
4776
|
continue;
|
|
4772
4777
|
}
|
|
4773
4778
|
let T = !0 === w?.cm;
|
|
4774
|
-
const
|
|
4779
|
+
const I = !0 === w?.ca;
|
|
4775
4780
|
if (r.affects(s)) {
|
|
4776
4781
|
x = null, T = !1;
|
|
4777
4782
|
const t = (t, e, n) => {
|
|
@@ -4785,7 +4790,7 @@ var qi = [
|
|
|
4785
4790
|
coords: o,
|
|
4786
4791
|
formula: n,
|
|
4787
4792
|
sharedId: null,
|
|
4788
|
-
ref:
|
|
4793
|
+
ref: F.rangeToString(o),
|
|
4789
4794
|
isDynamicRange: !1,
|
|
4790
4795
|
isWrapped: !0
|
|
4791
4796
|
}]);
|
|
@@ -4798,7 +4803,7 @@ var qi = [
|
|
|
4798
4803
|
t(r, a, o), s = !0;
|
|
4799
4804
|
continue;
|
|
4800
4805
|
}
|
|
4801
|
-
const i = n.getRange(
|
|
4806
|
+
const i = n.getRange(F.rangeToString({
|
|
4802
4807
|
rowStart: r,
|
|
4803
4808
|
colStart: a,
|
|
4804
4809
|
rowEnd: r,
|
|
@@ -4807,23 +4812,23 @@ var qi = [
|
|
|
4807
4812
|
null !== l && t(r, a, l);
|
|
4808
4813
|
}
|
|
4809
4814
|
} else m.forEach((e, n) => {
|
|
4810
|
-
const o = n.getCoords(), r =
|
|
4815
|
+
const o = n.getCoords(), r = b?.(o) ?? g, a = se(r, n.getCell().getValue());
|
|
4811
4816
|
null !== a && (t(o.rowIndex, o.colIndex, a), s = !0);
|
|
4812
4817
|
}, { includeEmpty: !0 });
|
|
4813
4818
|
if (s) continue;
|
|
4814
4819
|
}
|
|
4815
|
-
const
|
|
4816
|
-
T || m.isSingleCell() ||
|
|
4817
|
-
const
|
|
4820
|
+
const R = -1 !== g.indexOf("!") || -1 !== g.indexOf("[");
|
|
4821
|
+
T || m.isSingleCell() || R || l(u) || (x = "" + k++);
|
|
4822
|
+
const E = null !== x || m.isSingleCell() ? null : b, M = [u, {
|
|
4818
4823
|
coords: u,
|
|
4819
4824
|
formula: g,
|
|
4820
4825
|
sharedId: x,
|
|
4821
4826
|
ref: e,
|
|
4822
4827
|
isDynamicRange: T,
|
|
4823
|
-
isExcelVolatile:
|
|
4824
|
-
memberImage:
|
|
4828
|
+
isExcelVolatile: I,
|
|
4829
|
+
memberImage: E
|
|
4825
4830
|
}];
|
|
4826
|
-
h.push(
|
|
4831
|
+
h.push(M);
|
|
4827
4832
|
} catch (e) {
|
|
4828
4833
|
t.log(`Could not write the formula '${i[1]}' over '${i[0]}'; those cells are written as values only. ${e}`);
|
|
4829
4834
|
continue;
|
|
@@ -4876,13 +4881,13 @@ var qi = [
|
|
|
4876
4881
|
void 0 !== H && l >= j && l <= X && (c = H);
|
|
4877
4882
|
}
|
|
4878
4883
|
const v = o.getType();
|
|
4879
|
-
let
|
|
4880
|
-
J > 0 && (
|
|
4881
|
-
let
|
|
4882
|
-
Z > 0 && (
|
|
4883
|
-
let
|
|
4884
|
-
tt > 0 && (
|
|
4885
|
-
const
|
|
4884
|
+
let b = null;
|
|
4885
|
+
J > 0 && (b = o.getInjectedReference(1) ?? null);
|
|
4886
|
+
let C = !1;
|
|
4887
|
+
Z > 0 && (C = o.getInjectedReference(2) ?? !1);
|
|
4888
|
+
let k = null;
|
|
4889
|
+
tt > 0 && (k = o.getInjectedReference(3) ?? null);
|
|
4890
|
+
const T = "error" === k?.kind, I = "fixed" === k?.kind, R = Ea;
|
|
4886
4891
|
R.r = o.getAddress(), R.s = void 0, R.t = void 0, R.cm = void 0, R.vm = void 0;
|
|
4887
4892
|
const F = null !== h && h.has(r * Ra + l), E = null !== u ? function(t, e, n) {
|
|
4888
4893
|
for (const { table: o, coords: s, formats: r } of t) {
|
|
@@ -4896,30 +4901,30 @@ var qi = [
|
|
|
4896
4901
|
}
|
|
4897
4902
|
return null;
|
|
4898
4903
|
}(u, r, l) : null;
|
|
4899
|
-
(
|
|
4904
|
+
(i || F || null !== E) && (c = f.getXf(c ?? 0, null !== i, F, E?.labelIndent ?? null, E?.numberFormat ?? null, E?.user ?? null)), void 0 !== c && 0 !== c && (R.s = "" + c);
|
|
4900
4905
|
const M = K.length > 0 ? o.getInjectedReference(4) ?? null : null;
|
|
4901
|
-
let
|
|
4906
|
+
let A = null, D = null;
|
|
4902
4907
|
switch (v) {
|
|
4903
4908
|
case x.Boolean:
|
|
4904
|
-
|
|
4909
|
+
A = n ? "1" : "0", D = "b";
|
|
4905
4910
|
break;
|
|
4906
4911
|
case x.Error:
|
|
4907
4912
|
const t = n.getCode();
|
|
4908
|
-
if (
|
|
4913
|
+
if (D = "e", t > 7) A = w.BuiltIn.Value.getLabel(), R.vm = "" + p.add(n);
|
|
4909
4914
|
else if (t < 1) {
|
|
4910
4915
|
let t;
|
|
4911
|
-
|
|
4912
|
-
} else
|
|
4916
|
+
D = "s", b ? (t = "=" + b.formula, b = null) : t = "" + n.getLabel(), A = "" + d.add(t), g++;
|
|
4917
|
+
} else A = "" + n.getLabel();
|
|
4913
4918
|
break;
|
|
4914
4919
|
case x.Number:
|
|
4915
|
-
|
|
4920
|
+
A = ot(n), D = null;
|
|
4916
4921
|
break;
|
|
4917
4922
|
case x.String:
|
|
4918
|
-
|
|
4923
|
+
A = n, b || M ? (D = "str", A = n) : (D = "s", A = "" + d.add(A), g++);
|
|
4919
4924
|
break;
|
|
4920
4925
|
case x.RichData:
|
|
4921
|
-
if (n instanceof
|
|
4922
|
-
|
|
4926
|
+
if (n instanceof P) {
|
|
4927
|
+
b || M ? (D = "str", A = n.getText()) : (D = "s", A = "" + d.add(function(t, e, n) {
|
|
4923
4928
|
const o = t.getRuns(), s = e.getCell().getRichText();
|
|
4924
4929
|
if (!s) return t.getText();
|
|
4925
4930
|
const r = new Array(o.length);
|
|
@@ -4929,65 +4934,65 @@ var qi = [
|
|
|
4929
4934
|
continue;
|
|
4930
4935
|
}
|
|
4931
4936
|
const e = { ...s.runs[t].font };
|
|
4932
|
-
void 0 !== e.weight && e.weight < 700 && delete e.weight, e.style ===
|
|
4937
|
+
void 0 !== e.weight && e.weight < 700 && delete e.weight, e.style === a.Style.Normal && delete e.style, e.underline === a.UnderlineStyle.None && delete e.underline, e.strike === a.StrikeStyle.None && delete e.strike, 0 === e.baseline && delete e.baseline, r[t] = {
|
|
4933
4938
|
text: o[t].text,
|
|
4934
4939
|
font: e
|
|
4935
4940
|
};
|
|
4936
4941
|
}
|
|
4937
|
-
const
|
|
4938
|
-
let l = n.get(
|
|
4939
|
-
return void 0 === l && (l = new
|
|
4942
|
+
const i = JSON.stringify(r);
|
|
4943
|
+
let l = n.get(i);
|
|
4944
|
+
return void 0 === l && (l = new P(r), n.set(i, l)), l;
|
|
4940
4945
|
}(n, o, et)), g++);
|
|
4941
4946
|
break;
|
|
4942
4947
|
}
|
|
4943
|
-
if (n instanceof
|
|
4948
|
+
if (n instanceof S) {
|
|
4944
4949
|
const t = n.toPrimitive();
|
|
4945
|
-
"number" == typeof t ?
|
|
4950
|
+
"number" == typeof t ? A = ot(t) : "boolean" == typeof t ? (D = "b", A = t ? "1" : "0") : b || M ? (D = "str", A = t) : (D = "s", A = "" + d.add(t), g++);
|
|
4946
4951
|
break;
|
|
4947
4952
|
}
|
|
4948
|
-
|
|
4953
|
+
D = "e", A = w.BuiltIn.Value.getLabel(), R.vm = "" + p.add(n, b?.formula ?? (M ? "" : null));
|
|
4949
4954
|
}
|
|
4950
|
-
|
|
4951
|
-
const L = !
|
|
4952
|
-
if (null !==
|
|
4953
|
-
if (L && null !==
|
|
4954
|
-
const t = r ===
|
|
4955
|
-
let n =
|
|
4956
|
-
|
|
4955
|
+
D && (R.t = D);
|
|
4956
|
+
const L = !b?.isWrapped && (null !== k || (b?.isDynamicRange ?? !1));
|
|
4957
|
+
if (null !== b || null !== A || null !== M) {
|
|
4958
|
+
if (L && null !== b && !I && (R.cm = "" + m.registerArrayCell(T)), e.start("c", R), b) {
|
|
4959
|
+
const t = r === b.coords.rowStart && l === b.coords.colStart;
|
|
4960
|
+
let n = b.formula;
|
|
4961
|
+
b.memberImage && !t && (n = b.memberImage({
|
|
4957
4962
|
rowIndex: r,
|
|
4958
4963
|
colIndex: l
|
|
4959
4964
|
}));
|
|
4960
4965
|
let o, s = null;
|
|
4961
|
-
const a =
|
|
4966
|
+
const a = b.sharedId;
|
|
4962
4967
|
if (a) {
|
|
4963
4968
|
o = Aa;
|
|
4964
|
-
const t =
|
|
4965
|
-
t.colStart === l && t.rowStart === r ? (o.ref =
|
|
4966
|
-
} else L ? (o = Da, o.aca =
|
|
4967
|
-
o.ca =
|
|
4968
|
-
} else M && e.empty("f",
|
|
4969
|
+
const t = b.coords;
|
|
4970
|
+
t.colStart === l && t.rowStart === r ? (o.ref = b.ref, o.si = a, s = b.formula) : (o.ref = void 0, o.si = a);
|
|
4971
|
+
} else L ? (o = Da, o.aca = T ? "1" : void 0, o.ref = T ? R.r : k?.ref ?? R.r, s = n) : (o = Pa, s = n);
|
|
4972
|
+
o.ca = C || T || b.isExcelVolatile ? "1" : void 0, s ? (e.start("f", o), e.text(s), e.end("f")) : e.empty("f", o);
|
|
4973
|
+
} else M && e.empty("f", C ? {
|
|
4969
4974
|
...M,
|
|
4970
4975
|
ca: "1"
|
|
4971
4976
|
} : M);
|
|
4972
|
-
null !==
|
|
4977
|
+
null !== A && ("str" === D && A ? (e.start("v", Te.test(A) ? Fe : void 0), e.text(ie(A))) : (e.start("v"), A && e.text(A)), e.end("v")), e.end("c");
|
|
4973
4978
|
} else y++ < aa ? e.empty("c", R) : 1048577 === y && t.warn(`Reached ${aa} style-only cells at '${R.r}'; not writing the rest.`);
|
|
4974
4979
|
}, {
|
|
4975
4980
|
injectReferences: G,
|
|
4976
4981
|
features: []
|
|
4977
|
-
}), -1 !== V && V >=
|
|
4982
|
+
}), -1 !== V && V >= D ? e.end("row") : U(D, !0), e.end("sheetData"), e.setValidationDisabled(!1);
|
|
4978
4983
|
} else e.empty("sheetData");
|
|
4979
4984
|
if (g > 0) {
|
|
4980
4985
|
const t = c.get("stringsCount") ?? 0;
|
|
4981
4986
|
c.set("stringsCount", t + g);
|
|
4982
4987
|
}
|
|
4983
|
-
}(e, s, r,
|
|
4988
|
+
}(e, s, r, i, await (async (t, e) => {
|
|
4984
4989
|
const n = e ? e.length : 0;
|
|
4985
4990
|
if (0 === n) return ea;
|
|
4986
4991
|
const o = /* @__PURE__ */ new Set(), s = new Array(n);
|
|
4987
4992
|
for (let t = 0; t < n; t++) {
|
|
4988
4993
|
s[t] = null;
|
|
4989
4994
|
try {
|
|
4990
|
-
const n =
|
|
4995
|
+
const n = C.parse(e[t][1]);
|
|
4991
4996
|
if (!n) continue;
|
|
4992
4997
|
let r = null;
|
|
4993
4998
|
const a = (t) => {
|
|
@@ -5012,7 +5017,7 @@ var qi = [
|
|
|
5012
5017
|
return !1;
|
|
5013
5018
|
}
|
|
5014
5019
|
};
|
|
5015
|
-
})(r,
|
|
5020
|
+
})(r, i.formulas), d, c), function(t, e, n, o) {
|
|
5016
5021
|
const s = o.protection;
|
|
5017
5022
|
if (!s) return;
|
|
5018
5023
|
const r = {};
|
|
@@ -5022,7 +5027,7 @@ var qi = [
|
|
|
5022
5027
|
null !== e && (r[t.attribute] = e);
|
|
5023
5028
|
}
|
|
5024
5029
|
e.empty("sheetProtection", r);
|
|
5025
|
-
}(0, s, 0,
|
|
5030
|
+
}(0, s, 0, i), function(t, e, n, o) {
|
|
5026
5031
|
const s = o.protectedRanges, r = s ? s.length : 0;
|
|
5027
5032
|
if (0 === r) return;
|
|
5028
5033
|
const a = [];
|
|
@@ -5047,8 +5052,8 @@ var qi = [
|
|
|
5047
5052
|
for (let t = 0; t < a.length; t++) e.empty("protectedRange", a[t]);
|
|
5048
5053
|
e.end("protectedRanges");
|
|
5049
5054
|
}
|
|
5050
|
-
}(e, s, 0,
|
|
5051
|
-
const m =
|
|
5055
|
+
}(e, s, 0, i);
|
|
5056
|
+
const m = i.autoTable;
|
|
5052
5057
|
if (m) {
|
|
5053
5058
|
let t;
|
|
5054
5059
|
const n = m;
|
|
@@ -5059,12 +5064,12 @@ var qi = [
|
|
|
5059
5064
|
if (s > 0) {
|
|
5060
5065
|
e.start("mergeCells", { count: s });
|
|
5061
5066
|
for (let t = 0; t < s; t++) {
|
|
5062
|
-
const n = o.merges[t], s = "string" == typeof n ? n :
|
|
5067
|
+
const n = o.merges[t], s = "string" == typeof n ? n : F.rangeToString(n);
|
|
5063
5068
|
e.empty("mergeCell", { ref: s });
|
|
5064
5069
|
}
|
|
5065
5070
|
e.end("mergeCells");
|
|
5066
5071
|
}
|
|
5067
|
-
})(0, s, 0,
|
|
5072
|
+
})(0, s, 0, i);
|
|
5068
5073
|
const p = /* @__PURE__ */ new Map(), f = function(t, e, o, s, r) {
|
|
5069
5074
|
const a = [], i = s.conditionals, l = i ? i.length : 0;
|
|
5070
5075
|
if (0 === l) return a;
|
|
@@ -5088,7 +5093,7 @@ var qi = [
|
|
|
5088
5093
|
scale: x
|
|
5089
5094
|
});
|
|
5090
5095
|
const y = x ? { type: x.type } : vt(l.condition, ua(c), (e, n) => t.warn(e, void 0, n));
|
|
5091
|
-
y ? (y.formulas && (y.formulas = y.formulas.map((t) => Sa(t, g, p))), x?.type ===
|
|
5096
|
+
y ? (y.formulas && (y.formulas = y.formulas.map((t) => Sa(t, g, p))), x?.type === k.ScaleType.IconSet && pa(x) ? (h++, u(l), a.push({
|
|
5092
5097
|
guid: Pt(n.uuidV4),
|
|
5093
5098
|
sqref: c,
|
|
5094
5099
|
priority: h,
|
|
@@ -5106,7 +5111,7 @@ var qi = [
|
|
|
5106
5111
|
}))) : l.condition || t.log("Skipping conditional format with neither a condition nor a scale.");
|
|
5107
5112
|
}
|
|
5108
5113
|
return null !== f && e.end("conditionalFormatting"), a;
|
|
5109
|
-
}(e, s, r,
|
|
5114
|
+
}(e, s, r, i, p), h = function(t, e, n, o) {
|
|
5110
5115
|
const s = [], r = t.getSharedStates().get(pt), a = o.validations, i = a ? a.length : 0;
|
|
5111
5116
|
if (0 === i) return s;
|
|
5112
5117
|
const l = [];
|
|
@@ -5155,7 +5160,7 @@ var qi = [
|
|
|
5155
5160
|
void 0 !== o || void 0 !== s ? (e.start("dataValidation", n), void 0 !== o && (e.start("formula1"), e.text(o), e.end("formula1")), void 0 !== s && (e.start("formula2"), e.text(s), e.end("formula2")), e.end("dataValidation")) : e.empty("dataValidation", n);
|
|
5156
5161
|
}
|
|
5157
5162
|
return e.end("dataValidations"), s;
|
|
5158
|
-
}(e, s, r,
|
|
5163
|
+
}(e, s, r, i);
|
|
5159
5164
|
(function(t, e, n, o) {
|
|
5160
5165
|
const s = o.hyperlinks, r = s ? s.length : 0;
|
|
5161
5166
|
if (0 !== r) {
|
|
@@ -5169,7 +5174,7 @@ var qi = [
|
|
|
5169
5174
|
}
|
|
5170
5175
|
e.end("hyperlinks");
|
|
5171
5176
|
}
|
|
5172
|
-
})(e, s, 0,
|
|
5177
|
+
})(e, s, 0, i), await async function(t, e, n) {
|
|
5173
5178
|
const o = {};
|
|
5174
5179
|
n?.centerHorizontally && (o.horizontalCentered = "1"), n?.centerVertically && (o.verticalCentered = "1"), n?.printHeadings && (o.headings = "1"), n?.printGridlines && (o.gridLines = "1"), Object.keys(o).length > 0 && e.empty("printOptions", o);
|
|
5175
5180
|
const s = n?.margins;
|
|
@@ -5208,13 +5213,13 @@ var qi = [
|
|
|
5208
5213
|
e.start("headerFooter", t);
|
|
5209
5214
|
for (const t of n) {
|
|
5210
5215
|
const n = ie(d[t]);
|
|
5211
|
-
e.start(t,
|
|
5216
|
+
e.start(t, Te.test(n) ? Fe : void 0), e.text(n), e.end(t);
|
|
5212
5217
|
}
|
|
5213
5218
|
e.end("headerFooter");
|
|
5214
5219
|
}
|
|
5215
5220
|
}
|
|
5216
|
-
|
|
5217
|
-
}(e, s,
|
|
5221
|
+
ka(e, "rowBreaks", n.rowBreaks), ka(e, "colBreaks", n.columnBreaks);
|
|
5222
|
+
}(e, s, i.pageLayout), function(t, e) {
|
|
5218
5223
|
if (!e?.length) return;
|
|
5219
5224
|
const n = /* @__PURE__ */ new Map();
|
|
5220
5225
|
for (const t of e) {
|
|
@@ -5238,7 +5243,7 @@ var qi = [
|
|
|
5238
5243
|
}
|
|
5239
5244
|
t.end("ignoredErrors");
|
|
5240
5245
|
}
|
|
5241
|
-
}(s,
|
|
5246
|
+
}(s, i.ignoredErrors), function(t, e, n, o) {
|
|
5242
5247
|
const s = o.movables;
|
|
5243
5248
|
if (0 === (s ? s.length : 0)) return;
|
|
5244
5249
|
if (!s.some((t) => {
|
|
@@ -5261,7 +5266,7 @@ var qi = [
|
|
|
5261
5266
|
resources: n.getResources()
|
|
5262
5267
|
});
|
|
5263
5268
|
e.empty("drawing", { "r:id": c.relId });
|
|
5264
|
-
}(e, s, r,
|
|
5269
|
+
}(e, s, r, i);
|
|
5265
5270
|
const u = function(t) {
|
|
5266
5271
|
const e = t.getComments().toArray();
|
|
5267
5272
|
if (0 === e.length) return null;
|
|
@@ -5278,7 +5283,7 @@ var qi = [
|
|
|
5278
5283
|
comments: n
|
|
5279
5284
|
});
|
|
5280
5285
|
}(r);
|
|
5281
|
-
|
|
5286
|
+
Ta(e, s, "legacyDrawing", ((t, e) => {
|
|
5282
5287
|
if (!e) return t;
|
|
5283
5288
|
const n = t?.xml ?? null;
|
|
5284
5289
|
let o = Ve(n ?? "");
|
|
@@ -5344,7 +5349,7 @@ var qi = [
|
|
|
5344
5349
|
...e,
|
|
5345
5350
|
xml: i
|
|
5346
5351
|
} : { xml: i } : e;
|
|
5347
|
-
})(r,
|
|
5352
|
+
})(r, i.legacyDrawing ?? null, l), u)), Ta(e, s, "legacyDrawingHF", i.legacyDrawingHF ?? null), await async function(t, e, n) {
|
|
5348
5353
|
const o = n.getPicture();
|
|
5349
5354
|
if (!o) return;
|
|
5350
5355
|
const s = o.getResource(), r = await s.getExternalURI();
|
|
@@ -5427,8 +5432,8 @@ var qi = [
|
|
|
5427
5432
|
c["r:id"] = l.relId, e.empty("tablePart", c);
|
|
5428
5433
|
}
|
|
5429
5434
|
e.end("tableParts");
|
|
5430
|
-
}(e, s, r,
|
|
5431
|
-
const r =
|
|
5435
|
+
}(e, s, r, i), function(t, e, n, o, s) {
|
|
5436
|
+
const r = Tr(n), a = n.getSparklineGroups().getItems(), i = a.length > 0;
|
|
5432
5437
|
if (0 === o.length && 0 === s.length && 0 === r.length && !i) return;
|
|
5433
5438
|
const l = n.getStyles(), c = l.getTheme();
|
|
5434
5439
|
if (e.start("extLst"), o.length > 0) {
|
|
@@ -5438,7 +5443,7 @@ var qi = [
|
|
|
5438
5443
|
}), e.start("x14:conditionalFormattings");
|
|
5439
5444
|
for (let n = 0; n < o.length; n++) {
|
|
5440
5445
|
const { guid: s, sqref: r, priority: a, scale: i, rule: d, style: m, stopIfTrue: p } = o[n];
|
|
5441
|
-
if (e.start("x14:conditionalFormatting", { "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main" }), i) if (i.type ===
|
|
5446
|
+
if (e.start("x14:conditionalFormatting", { "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main" }), i) if (i.type === k.ScaleType.DataBar) {
|
|
5442
5447
|
e.start("x14:cfRule", {
|
|
5443
5448
|
type: "dataBar",
|
|
5444
5449
|
id: s
|
|
@@ -5530,7 +5535,7 @@ var qi = [
|
|
|
5530
5535
|
for (let e = 0; e < r.length; e++) {
|
|
5531
5536
|
const { group: o, sparklines: a } = r[e];
|
|
5532
5537
|
t.start("x14:sparklineGroup", qt(o));
|
|
5533
|
-
for (const e of
|
|
5538
|
+
for (const e of kt) {
|
|
5534
5539
|
const s = o[e];
|
|
5535
5540
|
s && Ao(t, n, s, `x14:${e}`);
|
|
5536
5541
|
}
|
|
@@ -5544,7 +5549,7 @@ var qi = [
|
|
|
5544
5549
|
const o = [], s = [], r = [];
|
|
5545
5550
|
for (let t = 0; t < n.slicers.length; t++) {
|
|
5546
5551
|
const e = n.slicers[t];
|
|
5547
|
-
(
|
|
5552
|
+
(kr(e) ? r : Cr(e) ? o : s).push(e);
|
|
5548
5553
|
}
|
|
5549
5554
|
if (o.length > 0) {
|
|
5550
5555
|
const s = t.addPart("slicers", {
|
|
@@ -5614,7 +5619,7 @@ var qi = [
|
|
|
5614
5619
|
}
|
|
5615
5620
|
});
|
|
5616
5621
|
}
|
|
5617
|
-
}(e,
|
|
5622
|
+
}(e, i, p), function(t, e) {
|
|
5618
5623
|
e && (t.addPart("comments", e), e.comments.some((t) => !t.comment.isNote()) && t.addPart("threadedComments", e));
|
|
5619
5624
|
}(e, u), s.end("worksheet"), s.close();
|
|
5620
5625
|
}
|
|
@@ -5638,7 +5643,7 @@ var qi = [
|
|
|
5638
5643
|
const a = t.theme;
|
|
5639
5644
|
for (let t = 0; t < s; t++) {
|
|
5640
5645
|
const e = o[t];
|
|
5641
|
-
if (n.start("si"), e instanceof
|
|
5646
|
+
if (n.start("si"), e instanceof P) {
|
|
5642
5647
|
const t = e.getRuns();
|
|
5643
5648
|
for (let e = 0; e < t.length; e++) {
|
|
5644
5649
|
const o = t[e];
|
|
@@ -5714,7 +5719,7 @@ var qi = [
|
|
|
5714
5719
|
}
|
|
5715
5720
|
const a = s?.family;
|
|
5716
5721
|
if (a) {
|
|
5717
|
-
n.start("extLst"), n.start("ext", { uri:
|
|
5722
|
+
n.start("extLst"), n.start("ext", { uri: Tt });
|
|
5718
5723
|
const t = {
|
|
5719
5724
|
"xmlns:thm15": "http://schemas.microsoft.com/office/thememl/2012/main",
|
|
5720
5725
|
name: a.name,
|
|
@@ -5786,7 +5791,7 @@ var qi = [
|
|
|
5786
5791
|
dxfs: s,
|
|
5787
5792
|
dxfIndexMap: r
|
|
5788
5793
|
};
|
|
5789
|
-
}(c, l?.getCount() ?? 0),
|
|
5794
|
+
}(c, l?.getCount() ?? 0), f = e.getSharedStates().get(Zn), h = (f?.getSources() ?? []).map((t) => function(t, e, o) {
|
|
5790
5795
|
let s = e[t.xf];
|
|
5791
5796
|
if (t.user) {
|
|
5792
5797
|
const { numberFormat: e, ...r } = t.user;
|
|
@@ -5803,7 +5808,7 @@ var qi = [
|
|
|
5803
5808
|
...s,
|
|
5804
5809
|
alignment: {
|
|
5805
5810
|
...n,
|
|
5806
|
-
horizontal:
|
|
5811
|
+
horizontal: m.HorizontalAlignment.Left,
|
|
5807
5812
|
...t.labelIndent > 0 ? { indent: t.labelIndent } : {}
|
|
5808
5813
|
}
|
|
5809
5814
|
};
|
|
@@ -5813,7 +5818,7 @@ var qi = [
|
|
|
5813
5818
|
numberFormat: t.numberFormat
|
|
5814
5819
|
}), s;
|
|
5815
5820
|
}(t, a, s));
|
|
5816
|
-
for (const t of
|
|
5821
|
+
for (const t of h) ws(r, t, i);
|
|
5817
5822
|
(function(t, e, n) {
|
|
5818
5823
|
const o = n.numFmtsCustom, s = o.length;
|
|
5819
5824
|
if (0 !== s) {
|
|
@@ -5828,7 +5833,7 @@ var qi = [
|
|
|
5828
5833
|
e.end("numFmts");
|
|
5829
5834
|
}
|
|
5830
5835
|
})(0, o, i), function(t, e, n, o) {
|
|
5831
|
-
const s = o.fonts, r = s.length, a = n.getTheme(), i =
|
|
5836
|
+
const s = o.fonts, r = s.length, a = n.getTheme(), i = M.getShared(), l = $e(s.map((t) => ({
|
|
5832
5837
|
...t,
|
|
5833
5838
|
family: ne(t.family, t.fallbacks, a, !0).name
|
|
5834
5839
|
}))).every((t) => gt(i, t));
|
|
@@ -5847,7 +5852,7 @@ var qi = [
|
|
|
5847
5852
|
const s = o.borders, r = s.length;
|
|
5848
5853
|
e.start("borders", { count: String(r) });
|
|
5849
5854
|
const a = n.getTheme();
|
|
5850
|
-
for (const n of s)
|
|
5855
|
+
for (const n of s) ks(t, e, n, a, !1);
|
|
5851
5856
|
e.end("borders");
|
|
5852
5857
|
}(e, o, r, i), function(t, e, o, s, r) {
|
|
5853
5858
|
const a = r.namedStyles, i = a.length;
|
|
@@ -5863,7 +5868,7 @@ var qi = [
|
|
|
5863
5868
|
Rs(0, e, n, a[t], s, !0, o.hidden, o.pivotButton, i?.getXfComplement(o.xf) ?? null);
|
|
5864
5869
|
}
|
|
5865
5870
|
e.end("cellXfs");
|
|
5866
|
-
}(e, o, r, a, i,
|
|
5871
|
+
}(e, o, r, a, i, f, h, e.getSharedStates().get(to)), function(t, e, n, o, s) {
|
|
5867
5872
|
const r = s.namedStyles, a = r.length;
|
|
5868
5873
|
e.start("cellStyles", { count: String(a) });
|
|
5869
5874
|
const i = s.namedStyleMap;
|
|
@@ -5874,7 +5879,7 @@ var qi = [
|
|
|
5874
5879
|
};
|
|
5875
5880
|
o.hidden && (l.hidden = "1"), o.iLevel && (l.iLevel = String(o.iLevel));
|
|
5876
5881
|
let c = null;
|
|
5877
|
-
c = a ===
|
|
5882
|
+
c = a === p.BuiltInName.Normal.toLowerCase() ? 0 : n.getNamedStyles().getByName(s).getBuiltInID(), null !== c && (l.builtinId = String(c), o.customized && (l.customBuiltin = "1")), e.empty("cellStyle", l);
|
|
5878
5883
|
}
|
|
5879
5884
|
e.end("cellStyles");
|
|
5880
5885
|
}(0, o, r, 0, i), function(t, e, n, o, s) {
|
|
@@ -6056,7 +6061,7 @@ var qi = [
|
|
|
6056
6061
|
});
|
|
6057
6062
|
}
|
|
6058
6063
|
async emit(t, e) {
|
|
6059
|
-
const n = e.getXMLWriter(), o = t.model, s = (await
|
|
6064
|
+
const n = e.getXMLWriter(), o = t.model, s = (await T.getDetails()).getBuildVersion(), r = Et(s), a = o.getProperties();
|
|
6060
6065
|
n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
|
|
6061
6066
|
xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
6062
6067
|
"xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
|
|
@@ -6084,13 +6089,13 @@ var qi = [
|
|
|
6084
6089
|
chart: 2,
|
|
6085
6090
|
dialog: 3
|
|
6086
6091
|
};
|
|
6087
|
-
for (const t of n.getSheets({ visibility:
|
|
6092
|
+
for (const t of n.getSheets({ visibility: A.Visibility.Hidden })) o[s[t.getKind()] ?? 0].names.push(t.getName());
|
|
6088
6093
|
const r = n.getNames().getItems({ type: "formula" }).filter((t) => !!t.getRanges?.());
|
|
6089
6094
|
o.push({
|
|
6090
6095
|
heading: "Named Ranges",
|
|
6091
6096
|
names: r.map((t) => {
|
|
6092
6097
|
const e = t.getScope();
|
|
6093
|
-
return e ? `${
|
|
6098
|
+
return e ? `${F.sheetNameToString(e)}!${t.getName()}` : t.getName();
|
|
6094
6099
|
})
|
|
6095
6100
|
});
|
|
6096
6101
|
const a = o.filter((t, e) => 0 === e || t.names.length > 0);
|
|
@@ -6328,7 +6333,7 @@ var qi = [
|
|
|
6328
6333
|
let n = s && !s.isClosed() ? s : null;
|
|
6329
6334
|
if (!n) {
|
|
6330
6335
|
const e = await t.workbook.fetch(o);
|
|
6331
|
-
e.ok && e.headers.get("content-type")?.startsWith("image/") && (n = new
|
|
6336
|
+
e.ok && e.headers.get("content-type")?.startsWith("image/") && (n = new I({ source: { buffer: await e.arrayBuffer() } }));
|
|
6332
6337
|
}
|
|
6333
6338
|
n && (a = (await ts(e, n)).relId);
|
|
6334
6339
|
} catch {}
|
|
@@ -6556,7 +6561,7 @@ var qi = [
|
|
|
6556
6561
|
await Si(e, o, i, a, i.getBounds());
|
|
6557
6562
|
break;
|
|
6558
6563
|
case "smartArt":
|
|
6559
|
-
await
|
|
6564
|
+
await ki(e, o, i, a);
|
|
6560
6565
|
break;
|
|
6561
6566
|
case "slicer":
|
|
6562
6567
|
await Fi(e, o, i, a);
|
|
@@ -7070,7 +7075,7 @@ var qi = [
|
|
|
7070
7075
|
const n = t.getPart("xl/workbook.xml"), o = n ? new TextDecoder("utf-8").decode(n.data) : null;
|
|
7071
7076
|
return ol.set(t, o), o;
|
|
7072
7077
|
}, ol = /* @__PURE__ */ new WeakMap(), sl = async (t, e) => {
|
|
7073
|
-
await
|
|
7078
|
+
await C.load();
|
|
7074
7079
|
const n = new Kn();
|
|
7075
7080
|
for (const t of qi) n.register(t);
|
|
7076
7081
|
const o = rl, s = Cn.createUint8Array({
|
|
@@ -7169,7 +7174,7 @@ var qi = [
|
|
|
7169
7174
|
});
|
|
7170
7175
|
f.addPart("workbook", t, "/xl/workbook.xml"), await f.waitEmit(), f.addPart("propsCore", { model: t }), f.addPart("propsApp", { model: t }), t.getProperties().getCustom().length > 0 && f.addPart("propsCustom", { model: t });
|
|
7171
7176
|
let h = await f.build();
|
|
7172
|
-
await
|
|
7177
|
+
await T.isWatermarked() && (h = await (async (t) => {
|
|
7173
7178
|
const e = new B(new z(t)), n = new j(), o = new je(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
|
|
7174
7179
|
try {
|
|
7175
7180
|
for (const t of await e.getEntries()) {
|