@sheetxl/mcp 0.8.0-beta.19 → 0.8.0-beta.21
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/{ArL5bPq60ZcPcwU9.js → -NFft0E2Wj6WH3X9.js} +1 -1
- package/assets/{CE4VYOniMmY8sXQ_.js → 0ewqK5X66DZmbhVR.js} +1 -1
- package/assets/{Bk6A5eONxLTBIA_p.js → 1bSTbCnkTWvsV82p.js} +4 -4
- package/assets/{CqvcgwQ0UcKndrhO.js → 4-DOIpV6Hjaymwy7.js} +2 -2
- package/assets/{BgVW1icycJewsx77.js → 69EXDk0YRdjdM86i.js} +1 -1
- package/assets/{D1kI9nJRL1RUF3-E.js → 8wMcuw3b1CFk-D5A.js} +1 -1
- package/assets/{DAnSdO8615XsOPNe.js → AGdlSbOsXWO1oZAE.js} +1 -1
- package/assets/{CjrzyKFdie6KYfsG.js → B1l0k4ErELObdQKE.js} +3 -3
- package/assets/{CIOlYUuBZat8FhHa.js → B4Z_YneQya9mUTN5.js} +1 -1
- package/assets/{D990KjcBrCaAEz5k.js → B8NDzDM0Gpwmkylq.js} +1 -1
- package/assets/{Bpf9jHj5AFY9543y.js → B8URptQcztz4DRvS.js} +39 -39
- package/assets/{CIxf9Y_JsuEEO7Nu.js → BABP2ffkRrOs7_Ym.js} +1 -1
- package/assets/{BPctZbHQFoqJNYzC.js → BAqvmoeYqG6dwX3I.js} +2 -2
- package/assets/{Bl77DvFa09DuVVuj.js → BC2Y5XPkMBKS6jQX.js} +383 -379
- package/assets/{D_6TeeMN5zmoQPTm.js → BEOwJnsyIuMC4SaI.js} +4 -4
- package/assets/{Bgi6ubwGkGYsILci.js → BJo3edG_rqch-Kw2.js} +78 -78
- package/assets/{DT_kCIZ600UsFy4t.js → BM9zwvBRXNbO_uD-.js} +2 -2
- package/assets/{DXe8SG12UJoGbbWR.js → BMkhJwKP7goV0vlJ.js} +1 -1
- package/assets/{iP-shs7tsDGMVvQh.js → BRiLNigzVwOBIxBy.js} +1 -1
- package/assets/{CcGrcjoI12MaDmwV.js → BU7t2vK3_DH_BbMd.js} +2 -2
- package/assets/{CkMXAUkUuJ2LJUBE.js → BVDaUnmVOSaDw9e3.js} +1 -1
- package/assets/{Bw2Nxye4Qj10uA3o.js → BWqKV3QuZX31WPsa.js} +1 -1
- package/assets/{D1nQ_BminCM0cyH0.js → BZJvWc-5DdAyHXFk.js} +1 -1
- package/assets/{CubwsTFIaEVf039H.js → B_RppF41PrYlelc_.js} +1 -1
- package/assets/{BgUHR-HVjZDY4SaH.js → B_n6s7Kj4_5BWn1q.js} +2 -2
- package/assets/{D1ZekPxeTGzhFy2L.js → Bagfe_VVU6NyQNS6.js} +1 -1
- package/assets/{CWHuM2GYuKmi0rZx.js → BbsMdXiRzPW9BCEK.js} +1 -1
- package/assets/{Bbky1A_gIgE8i0Oy.js → BeMLPoHRWacCbpl2.js} +1 -1
- package/assets/{DLJH6ppG9VHjHe_z.js → BneTvtEMcBoSiQnw.js} +3 -3
- package/assets/{C06iKc7jZ6affk2m.js → BrgptoFtJepXL46Z.js} +1 -1
- package/assets/{D06A3fKIe3WCTFru.js → BtiRDaBbNpPpKelt.js} +3 -3
- package/assets/{CKvP54bJ4GkUqcZi.js → BtjG4s0StUieGI5b.js} +3 -3
- package/assets/{DSNaHPvgqymqpsko.js → C0pbMKm0FzhOek9r.js} +1 -1
- package/assets/{DxTzG7VM8v4WJ6cI.js → C1ZP9W2tiVQUwLqZ.js} +1 -1
- package/assets/{1bm0Yqgfehw1Z2QU.js → C1xe-BzKWT17OO8a.js} +13 -13
- package/assets/{7MIo82Ay8jEFMBH-.js → C27330XswujHKrLu.js} +1 -1
- package/assets/{DrkfG324qZRPckuC.js → C2YOx4ianxuIIeMP.js} +1 -1
- package/assets/{CA_22AL82sRhLAko.js → C8huq6_Gvbeyf6Zy.js} +2 -2
- package/assets/{Cgf5GQVN-D8SlQ7A.js → CB9TsE5n0FEyFnAz.js} +15 -15
- package/assets/{Bj1WHx6LIEq6RVGw.js → CBTQ8dknYY7RVQgL.js} +8 -8
- package/assets/{C17Wflhw5IFSgFFY.js → CBqpH_MpBSmQRaGE.js} +1 -1
- package/assets/{BTnTQBSbzYU7cwra.js → CC2hfzradb2KOvtU.js} +1 -1
- package/assets/{D6fQheA4qCS5CxYQ.js → CDKZI2IIZ9boo7zG.js} +1 -1
- package/assets/{CQZq4cA5kbES6htE.js → CDYMLTHkkpRV9igv.js} +1 -1
- package/assets/{BHsQeg6najGesUM4.js → CL348305B-kpRYzz.js} +1 -1
- package/assets/{Cj4MYfqHewu8IOOL.js → CLT0k5UJYPmi8ked.js} +1 -1
- package/assets/{zkoJXSxpRzqfbG8k.js → CME1jbwnNlBD66aW.js} +189 -189
- package/assets/{2nx2Wljhbuct4aKx.js → CPmMYI4DPQcXrZ-g.js} +1 -1
- package/assets/{Bbxkz6vmyZJftTd-.js → CSd5XfU4JBASIwTI.js} +1 -1
- package/assets/{C7Q4V5mU0wsErspO.js → CTLGMulzw-oFbgHy.js} +3 -3
- package/assets/{Ds6LQkRDwXsJ-CFR.js → CVlsdN5C8QL-Kljv.js} +1 -1
- package/assets/{CBSSZrizrucIG_9i.js → CXb2mlCk1s1VFPHU.js} +577 -577
- package/assets/{BfIJP4H3I51jnIVR.js → CZ5v2vTWktJ7qAj1.js} +1 -1
- package/assets/{Gd_0grQd-3D1VPXW.js → CcaH1FoDC8o3dzqp.js} +1 -1
- package/assets/{Se9JmvmEtu4MfXJh.js → Cg05U6rbXUnaz0rA.js} +34 -34
- package/assets/{D4p9Pv82ECKCOlua.js → ChpUbgXIWuQFoXyL.js} +1 -1
- package/assets/{D005GbIBowRGfwed.js → ChwSFUzi5mMzUwdW.js} +6 -6
- package/assets/{CoXgI3MEnvkXeshj.js → CkGQV_x1SpyzePln.js} +262 -258
- package/assets/{DXORLAVmseFlsxkG.js → CmUz8bVbJgWVT-OB.js} +2 -2
- package/assets/{D5OYqo56iGB-5gFG.js → CpLUgqgBDtlfFRj3.js} +1 -1
- package/assets/{DppU35gFSUPaiCQH.js → CrLDmJU84Dbwl6DZ.js} +1 -1
- package/assets/{mrif6ZBbTbZKYaLJ.js → CudjOMo6X7FRW6ME.js} +1 -1
- package/assets/{Cz7tKgNBbnr4DZCb.js → CzQ2o7qoMm0K7KSb.js} +4 -4
- package/assets/{DIPDNtbm8FAru-FQ.js → D-INtJnS1lCrEs8s.js} +105 -105
- package/assets/{DS9HD6_BPxzdun0X.js → D1HLIgumuUqrSyYB.js} +4 -4
- package/assets/{CQiv3YkDRDxTjy0r.js → D2XmpdMAe0SAuQWo.js} +51 -51
- package/assets/{BcYdUKmFOf5rn2VZ.js → D3RuKyCyAzvT0bGL.js} +1 -1
- package/assets/{bJ-XKvDf7IkAafUI.js → D5mfuGSeGXSDHj9-.js} +1 -1
- package/assets/{C53f6C0pAU7_9FI-.js → D7WSYqvuwNQjOIuO.js} +1 -1
- package/assets/{Bk6SeqUJkn7ft1y1.js → D9F0224gK4j4Iuq9.js} +1 -1
- package/assets/{BSNegq0YcivZJmkf.js → DBgOeiZg40MS63pB.js} +14 -14
- package/assets/{Di_C31GTbBJ_xVOK.js → DG3hKZ75iK2wrCcz.js} +1 -1
- package/assets/{rT5f4v0Q_61nHkff.js → DITcEcZJ58z5yOx7.js} +1 -1
- package/assets/{Bq6ocyztkvzKxMMC.js → DO86fHS3WYzHN_Rv.js} +1 -1
- package/assets/{DxKZjKyewqvj46S2.js → DO9RVxvm9vQh8A_j.js} +2 -2
- package/assets/{EkavVNuGWG95UggH.js → DOYXEbY_WslpyqXW.js} +5 -5
- package/assets/{BGLlbVFS6J3lt9Lw.js → DP-m2vK0GTaYqQZM.js} +1 -1
- package/assets/{Curuj_knAdRpMy1L.js → DRiAktGToP73uwgm.js} +208 -208
- package/assets/{DtD0J-7IetHv5o6E.js → DRqBWzdn9KKN68o8.js} +11 -11
- package/assets/{Cur_-XiBPijLpwxX.js → DX0znk3xZmL1AyX8.js} +1 -1
- package/assets/{D-LrOz3Yvp17bUT8.js → Deu2acNFlgo__Mcd.js} +2 -2
- package/assets/{GZJ4AFFt8qKRADOa.js → DjCHmGw-ixoQ6ZTA.js} +2 -2
- package/assets/{B7vRFm79CUJ1VvFw.js → DjbBTiei0H-BIJaN.js} +1 -1
- package/assets/{DngcuWO2cSuMCMu1.js → DmJc5VoPPwBBtLIG.js} +1 -1
- package/assets/{BiOrM24CFYL1JGFE.js → DnQM29yv6KQQOVfl.js} +2 -2
- package/assets/{LV6tvjnxRzrWaFb8.js → Dnn8laImZHy8LouL.js} +1 -1
- package/assets/{CrjUfkCuRaXUC8X8.js → DpgBOcByebrqzUrC.js} +3 -3
- package/assets/{BUHEmX1fseJVV65_.js → DqxW6EBLDV_6Eegk.js} +1 -1
- package/assets/DrgkN0g7OHuD4iD6.js +14 -0
- package/assets/{BQkQNqRh5xxYhBy4.js → DsK1Adz0vo-1zPkp.js} +1 -1
- package/assets/{CiJq0zSDKpaKhL3y.js → Dt5rA9gefJFLoaeI.js} +2 -2
- package/assets/{Bz1lp0mtNAoPuPve.js → DuCNecyIYfZL27SV.js} +1 -1
- package/assets/{CYTPpV3lqNGOwme7.js → DwqgvpYiTLOQd5wm.js} +2 -2
- package/assets/{DHL-ZmN5GzB4pIrM.js → Dzxe5kLF5GOfh0_l.js} +1 -1
- package/assets/{ht0UxaAlRnuYUvpx.js → FOKynZCiA0wU2Spf.js} +1 -1
- package/assets/{DwcKSqV5YEBBA8hY.js → H1ICg_-K5ADFNHJj.js} +1 -1
- package/assets/{DnMDfty7pU96BIEJ.js → H89MX09YsAj7NAk3.js} +1 -1
- package/assets/{C_v4hb9WXIt639Cm.js → I-GZ5PL9n_Sv5yAJ.js} +1 -1
- package/assets/{Ln7XTzksutZHFpml.js → IEmEQHg895CUpAQq.js} +1 -1
- package/assets/{DNtWf9lfGjzoB9Hy.js → I_yb1hhLA5bYPpWx.js} +1 -1
- package/assets/{B6A2URH-mIs7J54h.js → KQGPPHM486XPeClF.js} +2 -2
- package/assets/{DFlL4pAqxaQ_hVe1.js → KSE7OWDMxhbfYt82.js} +30 -30
- package/assets/{DOg_zvSkhsKmw4q1.js → M62BqR7TbmgOzAEW.js} +3 -3
- package/assets/{udbHvSLquJ5xGK3R.js → NEzc406_2k2MuiE3.js} +2 -2
- package/assets/{zEyWjY3NhC8w_spQ.js → Q2j8yQZX1kL_MbbB.js} +573 -572
- package/assets/{BbvOmnXrmBNjeWjQ.js → QMCI00ZCedkNJd8C.js} +1 -1
- package/assets/{-iaCg5U9jrEDEl_O.js → RFPO1vKnkkgwx5Bs.js} +1 -1
- package/assets/{0hHP9xpWzhkDrCTL.js → VcTnn2qw_4tmyctb.js} +1 -1
- package/assets/{BkhdNc3LdmcyAjwk.js → Vo34QvIefEN595xl.js} +8726 -8652
- package/assets/{vb-L2Q2jyjjgDvJy.js → _l84VPWmScznS-9F.js} +11 -11
- package/assets/{jPim6WG_KS-ZDker.js → _oaPA65Bm2idKW7f.js} +1 -1
- package/assets/{B8Z4-80QEORmYOJ9.js → bpjLDXWxL6nDt4Mv.js} +1 -1
- package/assets/{CjoRkjB9NzS4LaFy.js → fUmGsmpgGhd8eZn2.js} +1 -1
- package/assets/{DwWcXC4pUR3U2WXU.js → pg0OaBJVRnW7uSz5.js} +1 -1
- package/assets/{HVm22OJ1gEeY8kii.js → rIQ1pzaGFqvCfzOk.js} +1 -1
- package/assets/{BzkTa7l_e7R--ejo.js → raa4clZOm0L5A0zR.js} +540 -540
- package/assets/{exNO4fmccU8Aq8cE.js → rejXA2fTAujW3QRv.js} +276 -276
- package/assets/{b6GPrIkdzfTW4f2j.js → rhT64BvdSLOEwglQ.js} +1 -1
- package/assets/{CNPUPTd9h7hwijpZ.js → vItpZkDtFsjwsJzb.js} +60 -60
- package/assets/{CqOzqRIQFCnEegoB.js → vXmCJwJaPhkPVhy8.js} +1 -1
- package/index.js +1775 -1712
- package/lib.js +1 -1
- package/licenses/dependencies.txt +46 -46
- package/package.json +2 -2
- package/screenshot-page/assets/{DwNHMH9f_lQyn50d.js → 1s5we6Eqz8n3o0X_.js} +1 -1
- package/screenshot-page/assets/9WplgXo__vp3e1Su.js +2 -0
- package/screenshot-page/assets/B2oadmu_j6WfNbZ1.js +1 -0
- package/screenshot-page/assets/{BU5vg917ZnXC04e-.js → B5ujsbfF1ZBkPI4d.js} +2 -2
- package/screenshot-page/assets/BEzCH6tp_dlxe7BH.js +1 -0
- package/screenshot-page/assets/BJvuevnsIw3DXQds.js +2 -0
- package/screenshot-page/assets/BLON9pILfrgdZqAM.js +5 -0
- package/screenshot-page/assets/BVx7CEdRItIR30Fz.js +1 -0
- package/screenshot-page/assets/{CLcTX_nmvaVPsxDl.js → Bdt92xZzFotX0vdt.js} +1 -1
- package/screenshot-page/assets/{BF6igzahAW9pl35p.js → Ble2ESZnJzZnd3cc.js} +1 -1
- package/screenshot-page/assets/{DeGMS3crYErjsRrw.js → Blg5f-jAtZfGnZ71.js} +1 -1
- package/screenshot-page/assets/Bozva6Wr4B8Q5QZN.js +2 -0
- package/screenshot-page/assets/{Chq6rvtA5qZAwYG4.js → Brp37MPC60tt9V3N.js} +1 -1
- package/screenshot-page/assets/Bs65RHirk11sxOB9.js +39 -0
- package/screenshot-page/assets/{MzJpKWgPrxR1UN-Y.js → BtydzT-AjL_LBr8x.js} +1 -1
- package/screenshot-page/assets/Bu5h0ACtvNxDBmqw.js +1 -0
- package/screenshot-page/assets/BwFvwFIcX0dmcBt7.js +1 -0
- package/screenshot-page/assets/C0rOvlmOfLDpClJ_.js +1 -0
- package/screenshot-page/assets/{Cpwg3bWAqBBcgBmv.js → CBuH_YHDn7A9E_hX.js} +2 -2
- package/screenshot-page/assets/CHZ1925OpIa8ssZn.js +1 -0
- package/screenshot-page/assets/{BuzI4z8RJGOw8BZD.js → CN3dPtUjDVvcnA4e.js} +1 -1
- package/screenshot-page/assets/COO3CwHTbCgxybBd.js +1 -0
- package/screenshot-page/assets/CR8Rj_GpSbIqbaEO.js +13 -0
- package/screenshot-page/assets/{EY31tFQrw7iYFrr6.js → CV9T0juyAiRmwTR-.js} +2 -2
- package/screenshot-page/assets/ClC7zkHPp6egPrjL.js +2 -0
- package/screenshot-page/assets/{Dt1A-DUBfvyouz_T.js → CtS8qZB4_3skg_zL.js} +1 -1
- package/screenshot-page/assets/CwutTi2EnNm_hyVj.js +1 -0
- package/screenshot-page/assets/{BqlVqRKpsFGl-elI.js → CxithxkenssFkfTT.js} +23 -23
- package/screenshot-page/assets/{DjVxI3p3ssmCtYky.js → CzZu7Fd_VeHHL-4i.js} +1 -1
- package/screenshot-page/assets/CzijGQrSoteeqwmH.js +2 -0
- package/screenshot-page/assets/{RutPv2GFWmeBiWvn.js → D4VgxwLDPUfCxPS9.js} +2 -2
- package/screenshot-page/assets/DG6q1MKITeSM4XMx.js +1 -0
- package/screenshot-page/assets/DHTXoT_pArB1opyI.js +48 -0
- package/screenshot-page/assets/{Cx9lvo3Q1xOwYkRK.js → DHUomRu_S2zcBWwt.js} +4 -4
- package/screenshot-page/assets/DP2wwd1IM_gQtEaG.js +1 -0
- package/screenshot-page/assets/DQeIWKasFD3DnWL7.js +586 -0
- package/screenshot-page/assets/Ja-xcEStEdmh2Gwb.js +2 -0
- package/screenshot-page/assets/ODq-dKb9mTtqEIJl.js +1 -0
- package/screenshot-page/assets/VF7dro9jrDEAX6kD.js +3 -0
- package/screenshot-page/assets/{BWDqL5_mwspr6CjI.js → Yz4ksf-M05RGdHO3.js} +1 -1
- package/screenshot-page/assets/Z7Av7oqfaK7wy7Eb.js +1 -0
- package/screenshot-page/assets/{CrUIo7hXByCWY7in.js → bdWMVOcMKRI8kCDE.js} +1 -1
- package/screenshot-page/assets/kJwY8fmEeWlAtTAc.js +1 -0
- package/screenshot-page/assets/{ClWDZixRy4DFZdI5.js → p9abCAJQdpScjZVK.js} +1 -1
- package/screenshot-page/index.html +8 -8
- package/types/scripting-api.json +9338 -9337
- package/types/scripting.d.ts +24 -3
- package/assets/gCkru9Vv-Ban4DCD.js +0 -14
- package/screenshot-page/assets/1yHlU53ypZZelMPx.js +0 -1
- package/screenshot-page/assets/A_-Jwzwmm3lkcm2f.js +0 -586
- package/screenshot-page/assets/BX9VkTqZoroo08EG.js +0 -13
- package/screenshot-page/assets/BdDouZl3VrM4yBP5.js +0 -2
- package/screenshot-page/assets/CJmdRzGWq0FZMrp5.js +0 -1
- package/screenshot-page/assets/C_vPl50T1L5HWnhv.js +0 -1
- package/screenshot-page/assets/CaTGa2NvuuE3qJAV.js +0 -1
- package/screenshot-page/assets/Cb8ORg9ENgscK6yl.js +0 -2
- package/screenshot-page/assets/CmNlzN3DCl87wNU2.js +0 -1
- package/screenshot-page/assets/CoPUxkU9zZy0dXti.js +0 -2
- package/screenshot-page/assets/CqogMOf7MzkOk7as.js +0 -2
- package/screenshot-page/assets/Cv-YUArreXqhafcU.js +0 -2
- package/screenshot-page/assets/D0nZlczIH0ULuSyL.js +0 -3
- package/screenshot-page/assets/D1ZZiOS7_HFjpZCA.js +0 -1
- package/screenshot-page/assets/D23_69pojBfIh4nV.js +0 -5
- package/screenshot-page/assets/D24UBy2L73pOCPPw.js +0 -1
- package/screenshot-page/assets/D2q4M3I5Jmxm85P2.js +0 -1
- package/screenshot-page/assets/D6LmZnV2h3Kg7G3e.js +0 -1
- package/screenshot-page/assets/DAkSmFRVds51vhiy.js +0 -1
- package/screenshot-page/assets/DUFPgv-3CtD_sCVO.js +0 -1
- package/screenshot-page/assets/DegZKTNqt1LRnSxY.js +0 -1
- package/screenshot-page/assets/DwuLl9Ua1k8m9KcK.js +0 -1
- package/screenshot-page/assets/fQ13z3k3bntY-jfw.js +0 -1
- package/screenshot-page/assets/oO6aFwepb3DDkGYF.js +0 -39
- package/screenshot-page/assets/pH9rKZYDE8xrhkC4.js +0 -2
- package/screenshot-page/assets/w7IQEh1FiqZA6o5y.js +0 -42
|
@@ -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.21
|
|
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 { Dt as r, F as a, G as i, Kt as l, Tt as c, U as d, Vt as m, ht as p, k as f, lt as h, p as u, v as g } from "./
|
|
9
|
-
import { f as x, o as y, p as v, u as w } from "./
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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
|
|
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 "./DjbBTiei0H-BIJaN.js";
|
|
8
|
+
import { Dt as r, F as a, G as i, Kt as l, Tt as c, U as d, Vt as m, ht as p, k as f, lt as h, p as u, v as g } from "./CB9TsE5n0FEyFnAz.js";
|
|
9
|
+
import { f as x, o as y, p as v, u as w } from "./D5mfuGSeGXSDHj9-.js";
|
|
10
|
+
import { $n as S, Ai as b, C, Ea as T, Ir as k, Jt as I, Pr as R, Q as F, Rn as E, Ut as M, Xi as P, rn as A, sa as D, uo as L } from "./Vo34QvIefEN595xl.js";
|
|
11
|
+
import { n as _, y as N } from "./CME1jbwnNlBD66aW.js";
|
|
12
|
+
import { n as $ } from "./DOYXEbY_WslpyqXW.js";
|
|
13
|
+
import { F as B, _t as O, gt as V, pt as W, vt as z, yt as j } from "./CSd5XfU4JBASIwTI.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 Tt, R as kt, 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 Te, l as ke, 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 "./rejXA2fTAujW3QRv.js";
|
|
15
|
+
import { i as ln, l as cn, n as dn, o as mn, s as pn, t as fn } from "./D1HLIgumuUqrSyYB.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 S && "#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 Tn(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 kn(t) {
|
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function kn(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 = Tn({ 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 = kn(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 = Tn(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) => ({
|
|
@@ -604,7 +604,7 @@ var qn = class {
|
|
|
604
604
|
for (const e of t) n.set(e, o), o += e.byteLength;
|
|
605
605
|
return n;
|
|
606
606
|
}(o), i = this._options.onPartEmitted;
|
|
607
|
-
i && await i(t.kind, t.path, a),
|
|
607
|
+
i && await i(t.kind, t.path, a), Jn && (console.log(`\n=== ${t.path} ===`), console.log(function(t, e) {
|
|
608
608
|
return function(t, e = " ") {
|
|
609
609
|
let n = "", o = 0;
|
|
610
610
|
const s = t.split(/(<[^>]+>)/g).filter(Boolean);
|
|
@@ -631,7 +631,7 @@ var qn = class {
|
|
|
631
631
|
this._scheduledByNodeKey.delete(t.key), t.resolve();
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
},
|
|
634
|
+
}, Jn = !1, Kn = class {
|
|
635
635
|
constructor() {
|
|
636
636
|
this.map = /* @__PURE__ */ new Map();
|
|
637
637
|
}
|
|
@@ -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)), T = /* @__PURE__ */ new Map(), k = (t, e) => {
|
|
849
849
|
if (e.rowStart >= x || e.colStart >= y) return;
|
|
850
|
-
const n =
|
|
851
|
-
n ? n.push(e) :
|
|
850
|
+
const n = T.get(t);
|
|
851
|
+
n ? n.push(e) : T.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 && k(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) && k(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
|
+
}) : k(r, n) : C(i, a, r, s, n) || k(r, n);
|
|
875
875
|
}
|
|
876
|
-
for (const [t, e] of
|
|
876
|
+
for (const [t, e] of T) {
|
|
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 ? R.refsToRuns(l.cols, !0) : [],
|
|
906
|
+
rows: l.rows ? R.refsToRuns(l.rows, !1) : []
|
|
907
907
|
}, d, a), g = { ...n };
|
|
908
|
-
u.cols.length > 0 ? g.cols =
|
|
908
|
+
u.cols.length > 0 ? g.cols = R.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 = R.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]) => [R.rangeToString(t, d), e]) : delete g.directStyles, g;
|
|
942
942
|
}
|
|
943
943
|
function ro(t, e) {
|
|
944
944
|
if (!t || !e) return t === e;
|
|
@@ -1259,7 +1259,7 @@ var xo = [
|
|
|
1259
1259
|
}
|
|
1260
1260
|
} while (c < t.length);
|
|
1261
1261
|
return o;
|
|
1262
|
-
},
|
|
1262
|
+
}, To = 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
|
+
}, ko = 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 A ? "" + 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 S) return l(e);
|
|
1327
|
+
if (e instanceof A) return t.addValue(t.structureFor("_array", [["array", "a"]]), ["" + r(e)]);
|
|
1328
|
+
if (e instanceof M) 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 (Te.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 A ? "" + 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 S && !yn(t) ? l(t) : t instanceof A ? 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) {
|
|
@@ -1786,7 +1786,7 @@ function Xo(t, e, o, s, r = !1, i = !1) {
|
|
|
1786
1786
|
}), o.type !== a.Type.Image || r) if (o.type !== a.Type.Group || r) if (o.type === a.Type.None || o.type === a.Type.Image || o.type === a.Type.Group) r ? e.empty("patternFill", { patternType: "none" }) : e.empty("noFill");
|
|
1787
1787
|
else if (o.type === a.Type.Solid) {
|
|
1788
1788
|
const t = o;
|
|
1789
|
-
r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? Ao(e, l, t.color, "fgColor") : Mo(e, l, t.color)), r ? e.end("patternFill") : e.end("solidFill");
|
|
1789
|
+
r ? e.start("patternFill", { patternType: "solid" }) : e.start("solidFill"), t.color && (r ? Ao(e, l, t.color, i ? "bgColor" : "fgColor") : Mo(e, l, t.color)), r ? e.end("patternFill") : e.end("solidFill");
|
|
1790
1790
|
} else if (o.type === a.Type.Pattern) {
|
|
1791
1791
|
const t = o, n = t.patternType || "solid";
|
|
1792
1792
|
e.start("patternFill", { patternType: n });
|
|
@@ -1863,7 +1863,7 @@ function Xo(t, e, o, s, r = !1, i = !1) {
|
|
|
1863
1863
|
var Ho = (t, e, o, s) => {
|
|
1864
1864
|
if (!o) return e.start("ln"), e.empty("noFill"), void e.end("ln");
|
|
1865
1865
|
const r = "string" == typeof o ? { fill: o } : o, a = {};
|
|
1866
|
-
if (void 0 !== r.width && (a.w = String(ls(r.width))), void 0 !== r.lineCap && (a.cap = Uo(r.lineCap)), void 0 !== r.compound && (a.cmpd = r.compound), void 0 !== r.align && (a.algn = r.align), e.start("ln", a), void 0 !== r.fill && Xo(t, e, r.fill ??
|
|
1866
|
+
if (void 0 !== r.width && (a.w = String(ls(r.width))), void 0 !== r.lineCap && (a.cap = Uo(r.lineCap)), void 0 !== r.compound && (a.cmpd = r.compound), void 0 !== r.align && (a.algn = r.align), e.start("ln", a), void 0 !== r.fill && Xo(t, e, r.fill ?? Ko, s), Array.isArray(r.dash)) {
|
|
1867
1867
|
e.start("custDash");
|
|
1868
1868
|
for (let t = 0; t < r.dash.length; t += 2) e.empty("ds", {
|
|
1869
1869
|
d: String(n.roundAccurately(1e3 * r.dash[t], 0)),
|
|
@@ -1900,9 +1900,9 @@ var Ho = (t, e, o, s) => {
|
|
|
1900
1900
|
o && r.start(o), r.pushDefaultNamespace("a"), n.fill && Xo(t, r, n.fill, e), n.stroke && Ho(t, r, n.stroke, e), n.effects?.length ? qo(t, r, e.getTheme(), n.effects) : (s || n.effects) && r.empty("effectLst"), r.popDefaultNamespace(), o && r.end(o);
|
|
1901
1901
|
}, qo = (t, e, n, o) => {
|
|
1902
1902
|
e.start("effectLst");
|
|
1903
|
-
for (const t of o)
|
|
1903
|
+
for (const t of o) Jo(e, n, t);
|
|
1904
1904
|
e.end("effectLst");
|
|
1905
|
-
},
|
|
1905
|
+
}, Jo = (t, e, o) => {
|
|
1906
1906
|
switch (o.type) {
|
|
1907
1907
|
case c.Type.OuterShadow: {
|
|
1908
1908
|
const s = {};
|
|
@@ -1935,7 +1935,7 @@ var Ho = (t, e, o, s) => {
|
|
|
1935
1935
|
break;
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
},
|
|
1938
|
+
}, Ko = { type: "none" }, Yo = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", Zo = "imagesWritten", Qo = /* @__PURE__ */ new WeakMap(), ts = async (t, e) => {
|
|
1939
1939
|
let n = Qo.get(t);
|
|
1940
1940
|
n || (n = /* @__PURE__ */ new Map(), Qo.set(t, n));
|
|
1941
1941
|
const o = n.get(e);
|
|
@@ -2149,11 +2149,11 @@ 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 Ts(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 || ks(i.color) !== ks(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 ks = (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
2159
|
n.horizontal && n.horizontal !== h.HorizontalAlignment.General && (s.horizontal = n.horizontal), n.vertical && n.vertical !== h.VerticalAlignment.Bottom && (s.vertical = n.vertical);
|
|
@@ -2182,8 +2182,8 @@ function Rs(t, e, n, o, r, a, i = !1, l = !1, c = 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 T = o.protection?.alwaysUnlocked ?? m?.protection?.alwaysUnlocked ?? !1;
|
|
2186
|
+
(T || i) && (C = {}, T && (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);
|
|
@@ -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 && Ts(t, e, n.borders, s, !0), e.end(r), a;
|
|
2205
2205
|
}
|
|
2206
2206
|
var Ps = 164, As = Object.freeze([
|
|
2207
2207
|
"unselectedItemWithData",
|
|
@@ -2411,8 +2411,8 @@ var Ps = 164, As = Object.freeze([
|
|
|
2411
2411
|
return `<e v="${ee(e)}"${r}/>`;
|
|
2412
2412
|
}
|
|
2413
2413
|
return `<m${r}/>`;
|
|
2414
|
-
}, Gs = "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml", qs = "slicerPivotCacheIds",
|
|
2415
|
-
const n = t.search(/<(?:\w+:)?ext\s[^>]*uri="\{725AE2AE-9491-48be-B2B4-4EB974FC3084\}"/i), o = n >= 0 ?
|
|
2414
|
+
}, Gs = "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml", qs = "slicerPivotCacheIds", Js = (t, e) => t.getSharedStates().get(qs)?.get(e) ?? null, Ks = /<\w+:pivotCacheDefinition\b[^>]*?\spivotCacheId="(\d+)"/, Ys = (t, e) => {
|
|
2415
|
+
const n = t.search(/<(?:\w+:)?ext\s[^>]*uri="\{725AE2AE-9491-48be-B2B4-4EB974FC3084\}"/i), o = n >= 0 ? Ks.exec(t.substring(n)) : null;
|
|
2416
2416
|
if (o) return {
|
|
2417
2417
|
xml: t,
|
|
2418
2418
|
id: o[1]
|
|
@@ -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 = T.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 = R.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 = R.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
|
+
T.BuiltInSelectorNames.Display,
|
|
2526
|
+
T.BuiltInSelectorNames.Date,
|
|
2527
|
+
T.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 !== T.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 === T.BuiltInOperatorNames.Expression) return void t.warn("Expression conditions not supported in Table AutoFilters", n);
|
|
2533
|
+
if (s === T.BuiltInOperatorNames.Unique) return void t.warn("Unique conditions not supported in Table AutoFilters", n);
|
|
2534
|
+
if (s === T.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 === T.BuiltInOperatorNames.InSet) {
|
|
2550
2550
|
const s = n.param ?? {};
|
|
2551
2551
|
let r = Array.isArray(s.items) ? s.items : [];
|
|
2552
|
-
n.selector !==
|
|
2552
|
+
n.selector !== T.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 === T.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 === T.BuiltInOperatorNames.Average) {
|
|
2592
|
+
const o = n.param, s = o?.type === T.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 === T.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 === T.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 && D.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, Tr = (t) => void 0 !== Cr(t)?.timeline, kr = (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 = Tn({ 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) {
|
|
@@ -2725,7 +2725,7 @@ function Dr(t, e, n, o, s, r) {
|
|
|
2725
2725
|
}(n)) || null;
|
|
2726
2726
|
}(e, d) : null));
|
|
2727
2727
|
let m = ve[n], p = At(a.type) === n ? a.type : m.relType, f = a.contentType ?? m.contentType;
|
|
2728
|
-
return "macro" !== n || r || (i = Ie(i), m =
|
|
2728
|
+
return "macro" !== n || r || (i = Ie(i), m = J, p = J.relType, f = J.contentType), t.addPart("embeddedPart", {
|
|
2729
2729
|
...a,
|
|
2730
2730
|
xml: i,
|
|
2731
2731
|
type: p,
|
|
@@ -2887,7 +2887,7 @@ var Lr = "externalLinkParts", _r = {
|
|
|
2887
2887
|
}, Gr = (t, e, n) => {
|
|
2888
2888
|
const o = /^<pivotField((?:\s+[^\s=/>]+\s*=\s*(?:"[^"]*"|'[^']*'))*)/.exec(t.rest ?? "")?.[1] ?? "", s = t.subtotals, r = (t) => t ? "1" : void 0, a = lt([
|
|
2889
2889
|
["name", t.name],
|
|
2890
|
-
["axis", t.axis ?
|
|
2890
|
+
["axis", t.axis ? Jt[t.axis] : void 0],
|
|
2891
2891
|
["dataField", r(t.dataField)],
|
|
2892
2892
|
...t.form ? Ur[t.form] : [],
|
|
2893
2893
|
["numFmtId", void 0 !== t.numberFormat ? n.numFmtId(t.numberFormat) : void 0],
|
|
@@ -2919,7 +2919,7 @@ function qr(t) {
|
|
|
2919
2919
|
for (let t = 0; t < n.length; t++) e += `\nReply:\n ${n[t].getContent()}`;
|
|
2920
2920
|
return e;
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2922
|
+
function Jr(t, e, n) {
|
|
2923
2923
|
if ("string" == typeof e) return void Zr(t, e);
|
|
2924
2924
|
const o = e.runs;
|
|
2925
2925
|
for (let e = 0; e < o.length; e++) {
|
|
@@ -2927,7 +2927,7 @@ function Kr(t, e, n) {
|
|
|
2927
2927
|
t.start("r"), s.font && Yr(t, s.font, n), Zr(t, s.text ?? ""), t.end("r");
|
|
2928
2928
|
}
|
|
2929
2929
|
}
|
|
2930
|
-
var
|
|
2930
|
+
var Kr = {
|
|
2931
2931
|
serif: 1,
|
|
2932
2932
|
"sans-serif": 2,
|
|
2933
2933
|
monospace: 3,
|
|
@@ -2953,7 +2953,7 @@ function Yr(t, e, n) {
|
|
|
2953
2953
|
l && t.empty("rFont", { val: l });
|
|
2954
2954
|
const d = e.fallbacks;
|
|
2955
2955
|
if (d) for (let e = 0; e < d.length; e++) {
|
|
2956
|
-
const n =
|
|
2956
|
+
const n = Kr[d[e]];
|
|
2957
2957
|
if (void 0 !== n) {
|
|
2958
2958
|
t.empty("family", { val: n });
|
|
2959
2959
|
break;
|
|
@@ -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", ke.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: R.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 = [], R.normalizeA1ToR1C1(n, e.rowStart, e.colStart, s)), i = R.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(R.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 === I.ColorStopType.AutoMin ? n = I.ColorStopType.Min : n === I.ColorStopType.AutoMax && (n = I.ColorStopType.Max), t.empty("cfvo", {
|
|
3027
3027
|
type: n,
|
|
3028
3028
|
val: e.value,
|
|
3029
3029
|
gte: e.exclusive ? "0" : void 0
|
|
@@ -3077,12 +3077,12 @@ function fa(t, e, o, s, r, a, i, l, c) {
|
|
|
3077
3077
|
timePeriod: r.timePeriod
|
|
3078
3078
|
};
|
|
3079
3079
|
let p;
|
|
3080
|
-
d?.type ===
|
|
3081
|
-
if (t.gradient || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) return !0;
|
|
3080
|
+
d?.type === I.ScaleType.DataBar && function(t) {
|
|
3081
|
+
if (!t.gradient || t.borderColor || t.negativeFillColor || t.negativeBorderColor || t.axisColor || t.axisPosition || t.direction) return !0;
|
|
3082
3082
|
const e = t.stops, n = e ? e.length : 0;
|
|
3083
3083
|
for (let t = 0; t < n; t++) {
|
|
3084
3084
|
const n = e[t].type;
|
|
3085
|
-
if (n ===
|
|
3085
|
+
if (n === I.ColorStopType.AutoMin || n === I.ColorStopType.AutoMax) return !0;
|
|
3086
3086
|
}
|
|
3087
3087
|
return !1;
|
|
3088
3088
|
}(d) && (p = Pt(n.uuidV4), c.push({
|
|
@@ -3095,22 +3095,22 @@ function fa(t, e, o, s, r, a, i, l, c) {
|
|
|
3095
3095
|
if (0 !== h || d) {
|
|
3096
3096
|
e.start("cfRule", m);
|
|
3097
3097
|
for (let t = 0; t < h; t++) e.start("formula"), e.text(f[t]), e.end("formula");
|
|
3098
|
-
if (d?.type ===
|
|
3098
|
+
if (d?.type === I.ScaleType.ColorScale) {
|
|
3099
3099
|
const t = d.stops ?? [];
|
|
3100
3100
|
e.start("colorScale");
|
|
3101
3101
|
for (let n = 0; n < t.length; n++) ca(e, t[n]);
|
|
3102
3102
|
for (let n = 0; n < t.length; n++) Ao(e, o, t[n].color, "color");
|
|
3103
3103
|
e.end("colorScale");
|
|
3104
|
-
} else if (d?.type ===
|
|
3104
|
+
} else if (d?.type === I.ScaleType.DataBar) {
|
|
3105
3105
|
const t = d.stops ?? [];
|
|
3106
3106
|
e.start("dataBar", {
|
|
3107
|
-
minLength: d.minLength,
|
|
3108
|
-
maxLength: d.maxLength,
|
|
3107
|
+
minLength: d.minLength ?? 0,
|
|
3108
|
+
maxLength: d.maxLength ?? 100,
|
|
3109
3109
|
showValue: ga(d.showValue)
|
|
3110
3110
|
});
|
|
3111
3111
|
for (let n = 0; n < t.length; n++) ca(e, t[n]);
|
|
3112
3112
|
d.color && Ao(e, o, d.color, "color"), e.end("dataBar");
|
|
3113
|
-
} else if (d?.type ===
|
|
3113
|
+
} else if (d?.type === I.ScaleType.IconSet) {
|
|
3114
3114
|
const t = d.stops ?? [];
|
|
3115
3115
|
e.start("iconSet", {
|
|
3116
3116
|
iconSet: d.iconSet,
|
|
@@ -3131,10 +3131,10 @@ function ha(t) {
|
|
|
3131
3131
|
const o = t.split(" ");
|
|
3132
3132
|
for (let t = 0; t < o.length; t++) {
|
|
3133
3133
|
if (!o[t]) continue;
|
|
3134
|
-
const s =
|
|
3134
|
+
const s = R.fastStringToRange(o[t]);
|
|
3135
3135
|
s.rowStart < e && (e = s.rowStart), s.colStart < n && (n = s.colStart);
|
|
3136
3136
|
}
|
|
3137
|
-
return
|
|
3137
|
+
return R.cellToString({
|
|
3138
3138
|
rowIndex: e,
|
|
3139
3139
|
colIndex: n
|
|
3140
3140
|
});
|
|
@@ -3144,12 +3144,12 @@ function ua(t) {
|
|
|
3144
3144
|
if (Array.isArray(t)) {
|
|
3145
3145
|
const e = [];
|
|
3146
3146
|
for (let n = 0; n < t.length; n++) {
|
|
3147
|
-
const o =
|
|
3147
|
+
const o = R.rangeToString(t[n]);
|
|
3148
3148
|
o && e.push(o);
|
|
3149
3149
|
}
|
|
3150
3150
|
return e.length > 0 ? e.join(" ") : null;
|
|
3151
3151
|
}
|
|
3152
|
-
return
|
|
3152
|
+
return R.rangeToString(t);
|
|
3153
3153
|
}
|
|
3154
3154
|
function ga(t) {
|
|
3155
3155
|
if (void 0 !== t) return t ? "1" : "0";
|
|
@@ -3174,7 +3174,7 @@ function va(t) {
|
|
|
3174
3174
|
const o = t.split(" ");
|
|
3175
3175
|
for (let t = 0; t < o.length; t++) {
|
|
3176
3176
|
if (!o[t]) continue;
|
|
3177
|
-
const s =
|
|
3177
|
+
const s = R.fastStringToRange(o[t]);
|
|
3178
3178
|
s.rowStart < e && (e = s.rowStart), s.colStart < n && (n = s.colStart);
|
|
3179
3179
|
}
|
|
3180
3180
|
return e === Number.MAX_SAFE_INTEGER ? null : {
|
|
@@ -3186,7 +3186,7 @@ function wa(t, e, n) {
|
|
|
3186
3186
|
if ("string" != typeof t || !t || !e || !n) return t;
|
|
3187
3187
|
try {
|
|
3188
3188
|
const o = n.parse(t, e);
|
|
3189
|
-
return o &&
|
|
3189
|
+
return o && D.image(n.spell(o, !0), { at: e }) || t;
|
|
3190
3190
|
} catch {
|
|
3191
3191
|
return t;
|
|
3192
3192
|
}
|
|
@@ -3226,12 +3226,12 @@ function Ca(t, e, n) {
|
|
|
3226
3226
|
}
|
|
3227
3227
|
t.end(e);
|
|
3228
3228
|
}
|
|
3229
|
-
function
|
|
3229
|
+
function Ta(t, e, n, o) {
|
|
3230
3230
|
if (!o?.xml) return;
|
|
3231
3231
|
const s = t.addPart("legacyDrawing", o);
|
|
3232
3232
|
e.empty(n, { "r:id": s.relId });
|
|
3233
3233
|
}
|
|
3234
|
-
var
|
|
3234
|
+
var ka = (t, e, n, o) => {
|
|
3235
3235
|
const s = (e, n) => {
|
|
3236
3236
|
const o = t.getRangeAtBounds({
|
|
3237
3237
|
x: e,
|
|
@@ -3318,7 +3318,7 @@ var Ta = (t, e, n, o) => {
|
|
|
3318
3318
|
si: void 0
|
|
3319
3319
|
};
|
|
3320
3320
|
function Da(t, e) {
|
|
3321
|
-
const n =
|
|
3321
|
+
const n = ke.test(e) ? Fe : void 0;
|
|
3322
3322
|
t.start("t", n), t.text(ie(e)), t.end("t");
|
|
3323
3323
|
}
|
|
3324
3324
|
var La = (t) => String(Math.round(1e3 * t)), _a = (t) => void 0 === t ? void 0 : t ? "1" : "0", Na = /* @__PURE__ */ new Set([
|
|
@@ -3434,7 +3434,7 @@ var La = (t) => String(Math.round(1e3 * t)), _a = (t) => void 0 === t ? void 0 :
|
|
|
3434
3434
|
spcCol: void 0 === n.columnSpacing ? void 0 : String(cs(n.columnSpacing)),
|
|
3435
3435
|
rtlCol: _a(n.rightToLeftColumns),
|
|
3436
3436
|
fromWordArt: _a(n.fromWordArt),
|
|
3437
|
-
anchor:
|
|
3437
|
+
anchor: Kt.write(n.anchor),
|
|
3438
3438
|
anchorCtr: _a(n.anchorCenter),
|
|
3439
3439
|
forceAA: _a(n.forceAntiAlias),
|
|
3440
3440
|
upright: _a(n.upright),
|
|
@@ -3516,11 +3516,11 @@ function qa(t, e, n, o) {
|
|
|
3516
3516
|
});
|
|
3517
3517
|
t.end(o);
|
|
3518
3518
|
}
|
|
3519
|
-
var
|
|
3519
|
+
var Ja = [
|
|
3520
3520
|
["shape", "spDef"],
|
|
3521
3521
|
["line", "lnDef"],
|
|
3522
3522
|
["text", "txDef"]
|
|
3523
|
-
],
|
|
3523
|
+
], Ka = { checkbox: "Checkbox" }, Ya = [
|
|
3524
3524
|
["dc:title", "title"],
|
|
3525
3525
|
["dc:subject", "subject"],
|
|
3526
3526
|
["dc:creator", "author"],
|
|
@@ -3544,11 +3544,11 @@ var Ka = [
|
|
|
3544
3544
|
], Za = (t, e, n, o) => {
|
|
3545
3545
|
e.start(n), e.text(o), e.end(n);
|
|
3546
3546
|
}, Qa = {
|
|
3547
|
-
[
|
|
3548
|
-
[
|
|
3549
|
-
[
|
|
3550
|
-
[
|
|
3551
|
-
[
|
|
3547
|
+
[_.Type.String]: "vt:lpwstr",
|
|
3548
|
+
[_.Type.Number]: "vt:i4",
|
|
3549
|
+
[_.Type.Float]: "vt:r8",
|
|
3550
|
+
[_.Type.Boolean]: "vt:bool",
|
|
3551
|
+
[_.Type.Date]: "vt:filetime"
|
|
3552
3552
|
}, ti = (t) => t.split(".")[0] + "Z", ei = {
|
|
3553
3553
|
minSupportedVersion: "120000",
|
|
3554
3554
|
copy: "1",
|
|
@@ -3714,7 +3714,7 @@ var Ka = [
|
|
|
3714
3714
|
uri: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"
|
|
3715
3715
|
};
|
|
3716
3716
|
})(d);
|
|
3717
|
-
g.start("mc:AlternateContent", { "xmlns:mc":
|
|
3717
|
+
g.start("mc:AlternateContent", { "xmlns:mc": Ti }), g.start("mc:Choice", {
|
|
3718
3718
|
[`xmlns:${x.prefix}`]: x.uri,
|
|
3719
3719
|
Requires: x.prefix
|
|
3720
3720
|
}), vi(t, e, n, o, m, u.relId, s), g.end("mc:Choice"), g.start("mc:Fallback"), Fi(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");
|
|
@@ -3757,7 +3757,7 @@ var Ka = [
|
|
|
3757
3757
|
}, bi = async (t, e, n, o, s) => {
|
|
3758
3758
|
const a = t.getXMLWriter(), i = {}, l = o.content?.json, c = l?.type ?? r.Type.Shape, d = e.getStyles();
|
|
3759
3759
|
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"), Di(t, a, n, o, e), Ni(t, a, n, o, e), a.end("nvCxnSpPr"), Pi(t, e, n, o, s), Ai(t, e, n, o), Ua(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"), Di(t, a, n, o, e), Ni(t, a, n, o, e), a.end("nvSpPr"), Pi(t, e, n, o, s), Ai(t, e, n, o), Ua(t, d, l?.text), a.end("sp"));
|
|
3760
|
-
}, Ci = async (t, e, n, o) => Mi(t, e, o, n.getBounds()),
|
|
3760
|
+
}, Ci = async (t, e, n, o) => Mi(t, e, o, n.getBounds()), Ti = "http://schemas.openxmlformats.org/markup-compatibility/2006", ki = "http://schemas.microsoft.com/office/drawing/2010/slicer", Ii = "http://schemas.microsoft.com/office/drawing/2012/timeslicer", Ri = async (t, e, n, o) => {
|
|
3761
3761
|
const s = t.getXMLWriter(), r = o.content?.name ?? "", a = Cr(n.getContent()), i = void 0 !== a?.timeline, l = i ? {
|
|
3762
3762
|
"xmlns:tsle": Ii,
|
|
3763
3763
|
Requires: "tsle"
|
|
@@ -3768,7 +3768,7 @@ var Ka = [
|
|
|
3768
3768
|
"xmlns:sle15": "http://schemas.microsoft.com/office/drawing/2012/slicer",
|
|
3769
3769
|
Requires: "sle15"
|
|
3770
3770
|
}, 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.";
|
|
3771
|
-
s.start("mc:AlternateContent", { "xmlns:mc":
|
|
3771
|
+
s.start("mc:AlternateContent", { "xmlns:mc": Ti }), s.start("mc:Choice", l), s.start("graphicFrame", { macro: "" }), s.start("nvGraphicFramePr"), Di(t, s, n, o, e), s.empty("cNvGraphicFramePr"), s.end("nvGraphicFramePr"), s.start("xfrm"), s.empty("a:off", {
|
|
3772
3772
|
x: "0",
|
|
3773
3773
|
y: "0"
|
|
3774
3774
|
}), s.empty("a:ext", {
|
|
@@ -3777,8 +3777,8 @@ var Ka = [
|
|
|
3777
3777
|
}), s.end("xfrm"), s.start("a:graphic"), i ? (s.start("a:graphicData", { uri: Ii }), s.empty("tsle:timeslicer", {
|
|
3778
3778
|
"xmlns:tsle": Ii,
|
|
3779
3779
|
name: r
|
|
3780
|
-
}), s.end("a:graphicData")) : (s.start("a:graphicData", { uri:
|
|
3781
|
-
"xmlns:sle":
|
|
3780
|
+
}), s.end("a:graphicData")) : (s.start("a:graphicData", { uri: ki }), s.empty("sle:slicer", {
|
|
3781
|
+
"xmlns:sle": ki,
|
|
3782
3782
|
name: r
|
|
3783
3783
|
}), s.end("a:graphicData")), s.end("a:graphic"), s.end("graphicFrame"), s.end("mc:Choice"), s.start("mc:Fallback"), Fi(s, n.getBounds(), c), s.end("mc:Fallback"), s.end("mc:AlternateContent");
|
|
3784
3784
|
}, Fi = (t, e, n) => {
|
|
@@ -3971,7 +3971,7 @@ function ji(t, e, n, o, s, r, a, i, l) {
|
|
|
3971
3971
|
parentId: a ? Xi(a) : void 0,
|
|
3972
3972
|
done: i ? "1" : void 0
|
|
3973
3973
|
};
|
|
3974
|
-
if (t.start("threadedComment", c), t.start("text",
|
|
3974
|
+
if (t.start("threadedComment", c), t.start("text", ke.test(r) || /[\n\r]/.test(r) ? Fe : void 0), t.text(r), t.end("text"), l && l.length > 0) {
|
|
3975
3975
|
t.start("mentions");
|
|
3976
3976
|
for (let e = 0; e < l.length; e++) {
|
|
3977
3977
|
const n = l[e];
|
|
@@ -3996,7 +3996,7 @@ var Hi = {
|
|
|
3996
3996
|
function Ui(t, e, n, o) {
|
|
3997
3997
|
if (null == o) return;
|
|
3998
3998
|
Hi.rowIndex = e, Hi.colIndex = n;
|
|
3999
|
-
const s =
|
|
3999
|
+
const s = R.cellToString(Hi);
|
|
4000
4000
|
let r, a;
|
|
4001
4001
|
switch (typeof o) {
|
|
4002
4002
|
case "number":
|
|
@@ -4060,7 +4060,7 @@ var Gi = [
|
|
|
4060
4060
|
...t.styles,
|
|
4061
4061
|
direct: a.list
|
|
4062
4062
|
}), n.setXfComplements(a.complements), s;
|
|
4063
|
-
}(s, t.getSheets({ visibility:
|
|
4063
|
+
}(s, t.getSheets({ visibility: k.Visibility.VeryHidden }), r, (t, n) => {
|
|
4064
4064
|
e.warn(t, void 0, n);
|
|
4065
4065
|
});
|
|
4066
4066
|
e.getSharedStates().set(pt, mt(s.names, function(t) {
|
|
@@ -4100,12 +4100,12 @@ var Gi = [
|
|
|
4100
4100
|
}(0, n, 0, s), function(t, e, n) {
|
|
4101
4101
|
e.start("bookViews");
|
|
4102
4102
|
const o = n.getView(), s = {}, r = o.getVisibility();
|
|
4103
|
-
r !==
|
|
4103
|
+
r !== N.Visibility.Visible && (s.visibility = r), o.isMinimized() && (s.minimized = "1"), o.isShowHorizontalScrollbar() || (s.showHorizontalScroll = "0"), o.isShowVerticalScrollbar() || (s.showVerticalScroll = "0"), o.isShowTabs() || (s.showSheetTabs = "0");
|
|
4104
4104
|
const a = o.getWindowBounds();
|
|
4105
4105
|
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));
|
|
4106
4106
|
const i = o.getTabRatio();
|
|
4107
4107
|
600 !== i && (s.tabRatio = i);
|
|
4108
|
-
const l = Math.min(o.getFirstTab(), n.getSheets({ visibility:
|
|
4108
|
+
const l = Math.min(o.getFirstTab(), n.getSheets({ visibility: k.Visibility.VeryHidden }).length - 1);
|
|
4109
4109
|
l > 0 && (s.firstSheet = "" + l);
|
|
4110
4110
|
const c = n.getSelectedSheet().getIndex();
|
|
4111
4111
|
0 !== c && (s.activeTab = "" + c), o.isAutoFilterDateGrouping() || (s.autoFilterDateGrouping = "0"), e.empty("workbookView", s), e.end("bookViews");
|
|
@@ -4121,7 +4121,7 @@ var Gi = [
|
|
|
4121
4121
|
t.getSharedStates().set(qs, i);
|
|
4122
4122
|
const l = /* @__PURE__ */ new Set();
|
|
4123
4123
|
for (let t = 0; t < r; t++) {
|
|
4124
|
-
const n =
|
|
4124
|
+
const n = Ks.exec(e[t].part?.xml ?? e[t].rest ?? "");
|
|
4125
4125
|
n && l.add(n[1]);
|
|
4126
4126
|
}
|
|
4127
4127
|
let c = 1;
|
|
@@ -4161,9 +4161,9 @@ var Gi = [
|
|
|
4161
4161
|
}
|
|
4162
4162
|
return s;
|
|
4163
4163
|
})(e, s.pivotCaches, !0 === s.date1904, ((t) => {
|
|
4164
|
-
const e = /* @__PURE__ */ new Set(), n = t.getWorksheets().getItems({ visibility:
|
|
4164
|
+
const e = /* @__PURE__ */ new Set(), n = t.getWorksheets().getItems({ visibility: k.Visibility.VeryHidden });
|
|
4165
4165
|
for (let t = 0; t < n.length; t++) {
|
|
4166
|
-
const o =
|
|
4166
|
+
const o = kr(n[t]);
|
|
4167
4167
|
for (let t = 0; t < o.length; t++) {
|
|
4168
4168
|
const n = Cr(o[t]);
|
|
4169
4169
|
n?.tabular && void 0 !== n.cacheId && e.add(n.cacheId);
|
|
@@ -4176,9 +4176,9 @@ var Gi = [
|
|
|
4176
4176
|
})(e, t), n.start("sheets");
|
|
4177
4177
|
const l = e.getSharedStates(), c = t.getStrings().beginPersist();
|
|
4178
4178
|
l.set("persistStrings", c);
|
|
4179
|
-
const d = new
|
|
4179
|
+
const d = new To();
|
|
4180
4180
|
l.set("metaCollector", d);
|
|
4181
|
-
const m = new
|
|
4181
|
+
const m = new ko(d, t, e.log.bind(e));
|
|
4182
4182
|
l.set("persistRichTypes", m), l.set(Zn, new Qn(s.styles, t.getStyles()));
|
|
4183
4183
|
let p = {
|
|
4184
4184
|
table: [],
|
|
@@ -4187,7 +4187,7 @@ var Gi = [
|
|
|
4187
4187
|
cacheNames: []
|
|
4188
4188
|
};
|
|
4189
4189
|
try {
|
|
4190
|
-
const o = t.getSheets({ visibility:
|
|
4190
|
+
const o = t.getSheets({ visibility: k.Visibility.VeryHidden }), i = s.sheets, d = t.getSelectedSheet(), m = o.length, f = ((t, e) => {
|
|
4191
4191
|
const n = new Array(e), o = /* @__PURE__ */ new Set();
|
|
4192
4192
|
let s = 1;
|
|
4193
4193
|
for (let r = 0; r < e; r++) {
|
|
@@ -4255,16 +4255,16 @@ var Gi = [
|
|
|
4255
4255
|
pivot: [],
|
|
4256
4256
|
timeline: [],
|
|
4257
4257
|
cacheNames: []
|
|
4258
|
-
}, o = pr(t), s = e.getWorksheets().getItems({ visibility:
|
|
4258
|
+
}, o = pr(t), s = e.getWorksheets().getItems({ visibility: k.Visibility.VeryHidden });
|
|
4259
4259
|
for (let e = 0; e < s.length; e++) {
|
|
4260
|
-
const r =
|
|
4260
|
+
const r = kr(s[e]);
|
|
4261
4261
|
for (let e = 0; e < r.length; e++) {
|
|
4262
4262
|
const s = r[e], a = null !== Cr(s);
|
|
4263
4263
|
if (!a && !o.has(s.getTable())) {
|
|
4264
4264
|
t.log(`The slicer '${s.getName?.() ?? ""}' names a table that was not written; its cache was dropped.`);
|
|
4265
4265
|
continue;
|
|
4266
4266
|
}
|
|
4267
|
-
if (
|
|
4267
|
+
if (Tr(s)) {
|
|
4268
4268
|
const e = t.addPart("timelineCache", s);
|
|
4269
4269
|
e.relId && n.timeline.push(e.relId);
|
|
4270
4270
|
continue;
|
|
@@ -4327,7 +4327,7 @@ var Gi = [
|
|
|
4327
4327
|
}(e, n, s), function(t, e, n, o, s) {
|
|
4328
4328
|
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()));
|
|
4329
4329
|
if (0 === i && 0 === c.length) return;
|
|
4330
|
-
const d = /* @__PURE__ */ new Map(), m = n.getSheets({ visibility:
|
|
4330
|
+
const d = /* @__PURE__ */ new Map(), m = n.getSheets({ visibility: k.Visibility.VeryHidden });
|
|
4331
4331
|
for (let t = 0; t < m.length; t++) d.set(m[t].getName().toLowerCase(), t);
|
|
4332
4332
|
e.start("definedNames");
|
|
4333
4333
|
for (let n = 0; n < i; n++) {
|
|
@@ -4497,7 +4497,7 @@ var Gi = [
|
|
|
4497
4497
|
rowEnd: a.rowEnd
|
|
4498
4498
|
}).getAddress()}`), e.empty("dimension", { ref: f });
|
|
4499
4499
|
}(0, s, r, a), function(t, e, n, o, s) {
|
|
4500
|
-
const r = n.getView(), a = r.getTopLeft(), i = n.getRowHeaders().getMetrics().getIndex(a.top), l = n.getColumnHeaders().getMetrics().getIndex(a.left), c =
|
|
4500
|
+
const r = n.getView(), a = r.getTopLeft(), i = n.getRowHeaders().getMetrics().getIndex(a.top), l = n.getColumnHeaders().getMetrics().getIndex(a.left), c = R.cellToString({
|
|
4501
4501
|
colIndex: l,
|
|
4502
4502
|
rowIndex: i
|
|
4503
4503
|
});
|
|
@@ -4505,7 +4505,7 @@ var Gi = [
|
|
|
4505
4505
|
const d = {};
|
|
4506
4506
|
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");
|
|
4507
4507
|
const m = r.getViewMode();
|
|
4508
|
-
m !==
|
|
4508
|
+
m !== F.ViewMode.Normal && (d.view = m);
|
|
4509
4509
|
const p = r.getZoomScale();
|
|
4510
4510
|
100 !== p && (d.zoomScale = p);
|
|
4511
4511
|
const f = r.toJSON(), h = f?.zoomScales ?? {};
|
|
@@ -4526,17 +4526,17 @@ var Gi = [
|
|
|
4526
4526
|
d.colorId = "" + i;
|
|
4527
4527
|
}
|
|
4528
4528
|
d.workbookViewId = "0";
|
|
4529
|
-
const g = n.getSelection().getCoords(), x =
|
|
4529
|
+
const g = n.getSelection().getCoords(), x = R.cellToString(g.cell);
|
|
4530
4530
|
let y = {};
|
|
4531
4531
|
const v = r.getFreezePanes(), w = v.coords ?? {}, S = w.colIndex ?? 0, b = w.rowIndex ?? 0;
|
|
4532
4532
|
if (S > 0 || b > 0) {
|
|
4533
|
-
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 = b - r, m = Math.max(S, n.getColumnHeaders().getMetrics().getIndex(a.left + n.getColumnHeaders().getMetrics().getOffset(S) - s)), p = Math.max(b, n.getRowHeaders().getMetrics().getIndex(a.top + n.getRowHeaders().getMetrics().getOffset(b) - o)), f =
|
|
4533
|
+
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 = b - r, m = Math.max(S, n.getColumnHeaders().getMetrics().getIndex(a.left + n.getColumnHeaders().getMetrics().getOffset(S) - s)), p = Math.max(b, n.getRowHeaders().getMetrics().getIndex(a.top + n.getRowHeaders().getMetrics().getOffset(b) - o)), f = R.cellToString({
|
|
4534
4534
|
colIndex: i,
|
|
4535
4535
|
rowIndex: r
|
|
4536
4536
|
});
|
|
4537
4537
|
"A1" !== f ? d.topLeftCell = f : delete d.topLeftCell, e.start("sheetView", d);
|
|
4538
4538
|
const h = {};
|
|
4539
|
-
l > 0 && (h.xSplit = l), c > 0 && (h.ySplit = c), h.topLeftCell =
|
|
4539
|
+
l > 0 && (h.xSplit = l), c > 0 && (h.ySplit = c), h.topLeftCell = R.cellToString({
|
|
4540
4540
|
colIndex: m,
|
|
4541
4541
|
rowIndex: p
|
|
4542
4542
|
}), h.state = "frozen";
|
|
@@ -4550,27 +4550,27 @@ var Gi = [
|
|
|
4550
4550
|
sqref: s?.sqref ?? r
|
|
4551
4551
|
});
|
|
4552
4552
|
};
|
|
4553
|
-
0 === S ? (h.activePane = "bottomLeft", e.empty("pane", h), g("topLeft",
|
|
4553
|
+
0 === S ? (h.activePane = "bottomLeft", e.empty("pane", h), g("topLeft", R.cellToString({
|
|
4554
4554
|
colIndex: m,
|
|
4555
4555
|
rowIndex: r
|
|
4556
|
-
}), !1), y.pane = "bottomLeft") : 0 === b ? (h.activePane = "topRight", e.empty("pane", h), g("topLeft",
|
|
4556
|
+
}), !1), y.pane = "bottomLeft") : 0 === b ? (h.activePane = "topRight", e.empty("pane", h), g("topLeft", R.cellToString({
|
|
4557
4557
|
colIndex: i,
|
|
4558
4558
|
rowIndex: p
|
|
4559
|
-
}), !1), y.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight",
|
|
4559
|
+
}), !1), y.pane = "topRight") : (h.activePane = "bottomRight", e.empty("pane", h), g("topLeft", f, !1), g("topRight", R.cellToString({
|
|
4560
4560
|
colIndex: m,
|
|
4561
4561
|
rowIndex: r
|
|
4562
|
-
}), !0), g("bottomLeft",
|
|
4562
|
+
}), !0), g("bottomLeft", R.cellToString({
|
|
4563
4563
|
colIndex: i,
|
|
4564
4564
|
rowIndex: p
|
|
4565
4565
|
}), !0), y.pane = "bottomRight");
|
|
4566
4566
|
} else e.start("sheetView", d);
|
|
4567
4567
|
y.activeCell = x;
|
|
4568
|
-
const C = g.ranges,
|
|
4569
|
-
if (
|
|
4568
|
+
const C = g.ranges, T = C ? C.length : 0;
|
|
4569
|
+
if (T > 0) {
|
|
4570
4570
|
let t = "";
|
|
4571
|
-
for (let e = 0; e <
|
|
4571
|
+
for (let e = 0; e < T; e++) {
|
|
4572
4572
|
const n = C[e];
|
|
4573
|
-
e > 0 && (t += " "), t +=
|
|
4573
|
+
e > 0 && (t += " "), t += R.rangeToString(n);
|
|
4574
4574
|
}
|
|
4575
4575
|
y.sqref = t, (g.rangeIndex ?? 0) > 0 && (y.activeCellId = "" + g.rangeIndex);
|
|
4576
4576
|
} else "A1" === x ? y = null : y.sqref = x;
|
|
@@ -4586,7 +4586,7 @@ var Gi = [
|
|
|
4586
4586
|
thickBottom: s,
|
|
4587
4587
|
run: n
|
|
4588
4588
|
};
|
|
4589
|
-
}, s = t.defaultRowSize ?? e, r = t.rows ?
|
|
4589
|
+
}, s = t.defaultRowSize ?? e, r = t.rows ? R.refsToRuns(t.rows, !1) : null;
|
|
4590
4590
|
let a = null, i = 0;
|
|
4591
4591
|
const l = r ? r.length : 0;
|
|
4592
4592
|
for (let t = 0; t < l; t++) {
|
|
@@ -4597,7 +4597,7 @@ var Gi = [
|
|
|
4597
4597
|
})(a, .75 * r.getStyles().getNormal().getBestFit().height, r.getEntireRange().getRowEnd() + 1);
|
|
4598
4598
|
(function(t, e, n, o, s) {
|
|
4599
4599
|
const r = o.defaultColSize, a = o.defaultRowSize, i = {};
|
|
4600
|
-
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(
|
|
4600
|
+
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(R.refsToRuns(o.rows, !1)) && (i.zeroHeight = "1"), s?.thickTop && (i.thickTop = "1"), s?.thickBottom && (i.thickBottom = "1");
|
|
4601
4601
|
const l = n.getOutline(), c = l.getLevelCount(v.Axis.Row);
|
|
4602
4602
|
c > 0 && (i.outlineLevelRow = c);
|
|
4603
4603
|
const d = l.getLevelCount(v.Axis.Column);
|
|
@@ -4605,7 +4605,7 @@ var Gi = [
|
|
|
4605
4605
|
})(0, s, r, a, c);
|
|
4606
4606
|
const d = !1 === a.protection?.showFormulas ? e.getSharedStates().get("xfVariants") ?? null : null;
|
|
4607
4607
|
(function(t, e, n, o, s) {
|
|
4608
|
-
const r = o.cols ?
|
|
4608
|
+
const r = o.cols ? R.refsToRuns(o.cols, !0) : null, a = r ? r.length : 0;
|
|
4609
4609
|
n.getEntireRange().getColumnEnd();
|
|
4610
4610
|
const i = n.getColumnHeaders().getDefaultSizeNative(), l = s ? s.getXf(0, !0, !1) : 0;
|
|
4611
4611
|
let c = 1;
|
|
@@ -4641,7 +4641,7 @@ var Gi = [
|
|
|
4641
4641
|
for (const n of t.pivotTables ?? []) {
|
|
4642
4642
|
const t = n.buttons?.length ? te(n) : null;
|
|
4643
4643
|
if (t) for (const o of n.buttons) {
|
|
4644
|
-
const n =
|
|
4644
|
+
const n = R.fastStringToRange(o);
|
|
4645
4645
|
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) * Ia + t.colStart + s);
|
|
4646
4646
|
}
|
|
4647
4647
|
}
|
|
@@ -4653,15 +4653,15 @@ var Gi = [
|
|
|
4653
4653
|
o && (e ??= []).push({
|
|
4654
4654
|
table: n,
|
|
4655
4655
|
coords: o,
|
|
4656
|
-
formats: t?.header ?
|
|
4656
|
+
formats: t?.header ? P(t) : null
|
|
4657
4657
|
});
|
|
4658
4658
|
}
|
|
4659
4659
|
return e;
|
|
4660
4660
|
}(n);
|
|
4661
4661
|
let g = 0, y = 0;
|
|
4662
4662
|
const S = n.getUsedRange();
|
|
4663
|
-
let
|
|
4664
|
-
const
|
|
4663
|
+
let C = 0;
|
|
4664
|
+
const T = l?.run, k = s.rows ? R.refsToRuns(s.rows, !1) : null, I = s.defaultRowSize ?? .75 * n.getStyles().getNormal().getBestFit().height, F = k && T ? ((t, e, n, o) => {
|
|
4665
4665
|
const s = [];
|
|
4666
4666
|
let r = 0;
|
|
4667
4667
|
const a = (t, e) => {
|
|
@@ -4676,21 +4676,21 @@ var Gi = [
|
|
|
4676
4676
|
a(r, o.min - 1), r = o.max + 1, o.min === e.min && o.max === e.max || s.push(o);
|
|
4677
4677
|
}
|
|
4678
4678
|
return a(r, o - 1), s;
|
|
4679
|
-
})(
|
|
4680
|
-
if (S ||
|
|
4681
|
-
const c = .75, S = s.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * c,
|
|
4679
|
+
})(k, T, I, n.getEntireRange().getRowEnd() + 1) : k, E = F ? F.length : 0, A = ra(F), L = null !== A ? A - 1 : F?.[E - 1]?.max ?? -1, _ = s.cols ? R.refsToRuns(s.cols, !0) : null, N = _ ? _.length : 0, $ = _?.[N - 1]?.max ?? -1;
|
|
4680
|
+
if (S || E > 0) {
|
|
4681
|
+
const c = .75, S = s.defaultRowSize ?? n.getRowHeaders().getMetrics().getDefaultSize() * c, T = n.getStyles().getNormal().getBestFit().height * c, k = sa(n.getOutline(), v.Axis.Row), I = (t, e) => {
|
|
4682
4682
|
const n = Ea;
|
|
4683
4683
|
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;
|
|
4684
4684
|
const o = e.value;
|
|
4685
4685
|
void 0 !== o.s && (n.s = "" + (a ? a.getXf(o.s, !0, !1) : o.s), n.customFormat = "1"), o.h && (n.hidden = "1");
|
|
4686
4686
|
const s = o.csz ?? !1, r = o.sz ?? S;
|
|
4687
|
-
return (r !== (l?.height ??
|
|
4687
|
+
return (r !== (l?.height ?? T) || s) && (n.ht = "" + r), s && (n.customHeight = "1"), o.l && (n.outlineLevel = "" + o.l), k.has(t) && (n.collapsed = "1"), o.tt && (n.thickTop = "1"), o.tb && (n.thickBot = "1"), n;
|
|
4688
4688
|
};
|
|
4689
|
-
let
|
|
4689
|
+
let E = 0, P = F?.[E] ?? null, N = P?.min ?? Number.MAX_SAFE_INTEGER, B = P?.max ?? Number.MAX_SAFE_INTEGER, O = P?.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;
|
|
4690
4690
|
const U = (t, n = !1) => {
|
|
4691
4691
|
if (V !== t) {
|
|
4692
4692
|
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;) {
|
|
4693
|
-
V++, P && V > B && (P =
|
|
4693
|
+
V++, P && V > B && (P = F[++E] ?? null, P ? (N = P.min, B = P.max, O = P.value?.s) : (N = Number.MAX_SAFE_INTEGER, B = Number.MAX_SAFE_INTEGER, O = void 0)), V < N && V < t && null === A && (V = P ? Math.min(N, t) : t), null !== A && V >= A && V < t && (V = t);
|
|
4694
4694
|
const o = V < t || n && V === t, s = I(V, P && V >= N && V <= B ? P : null);
|
|
4695
4695
|
o ? e.empty("row", s) : e.start("row", s);
|
|
4696
4696
|
}
|
|
@@ -4711,8 +4711,8 @@ var Gi = [
|
|
|
4711
4711
|
}
|
|
4712
4712
|
return n;
|
|
4713
4713
|
})(t, n, s.directStyles));
|
|
4714
|
-
const q = s.formulas,
|
|
4715
|
-
if (
|
|
4714
|
+
const q = s.formulas, J = q ? q.length : 0, K = [];
|
|
4715
|
+
if (J > 0) {
|
|
4716
4716
|
const a = /* @__PURE__ */ new Map();
|
|
4717
4717
|
if (r.names.size > 0 && s.formulaArray) for (const t of s.formulaArray) try {
|
|
4718
4718
|
const e = n.getRange(t[0]).getCoords();
|
|
@@ -4739,30 +4739,34 @@ var Gi = [
|
|
|
4739
4739
|
}, f = /* @__PURE__ */ new Set();
|
|
4740
4740
|
for (let t = 0; t < i.length; t++) f.add(`${i[t].rowStart},${i[t].colStart}`);
|
|
4741
4741
|
const h = [];
|
|
4742
|
-
for (let s = 0; s <
|
|
4742
|
+
for (let s = 0; s < J; s++) {
|
|
4743
4743
|
const i = q[s];
|
|
4744
4744
|
try {
|
|
4745
|
-
const
|
|
4746
|
-
let
|
|
4747
|
-
if (ia.test(
|
|
4748
|
-
let
|
|
4749
|
-
const
|
|
4750
|
-
rowIndex:
|
|
4751
|
-
colIndex:
|
|
4752
|
-
},
|
|
4753
|
-
let
|
|
4754
|
-
if (
|
|
4755
|
-
else if (!o.isSingleCell(
|
|
4745
|
+
const e = i[0], m = n.getRange(e), u = m.getCoords();
|
|
4746
|
+
let g = i[1];
|
|
4747
|
+
if (ia.test(g) && la(n, u, g, K)) continue;
|
|
4748
|
+
let x = null;
|
|
4749
|
+
const y = {
|
|
4750
|
+
rowIndex: u.rowStart,
|
|
4751
|
+
colIndex: u.colStart
|
|
4752
|
+
}, 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;
|
|
4753
|
+
let b = S ? D.imager(S, { entireCoords: d }) : null;
|
|
4754
|
+
if (b) g = b(y);
|
|
4755
|
+
else if (!o.isSingleCell(u)) {
|
|
4756
4756
|
const t = [];
|
|
4757
|
-
|
|
4758
|
-
const n = e ??
|
|
4759
|
-
return
|
|
4757
|
+
R.normalizeA1ToR1C1(g, y.rowIndex, y.colIndex, t), b = (e) => {
|
|
4758
|
+
const n = e ?? y;
|
|
4759
|
+
return R.resolveRelativeToA1(t, n.rowIndex, n.colIndex);
|
|
4760
4760
|
};
|
|
4761
4761
|
}
|
|
4762
|
-
|
|
4763
|
-
|
|
4762
|
+
if (g.length > 8192) {
|
|
4763
|
+
t.warn(`The formula at '${n.getName()}'!${R.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");
|
|
4764
|
+
continue;
|
|
4765
|
+
}
|
|
4766
|
+
let T = !0 === w?.cm;
|
|
4767
|
+
const k = !0 === w?.ca;
|
|
4764
4768
|
if (r.affects(s)) {
|
|
4765
|
-
|
|
4769
|
+
x = null, T = !1;
|
|
4766
4770
|
const t = (t, e, n) => {
|
|
4767
4771
|
const o = {
|
|
4768
4772
|
rowStart: t,
|
|
@@ -4774,45 +4778,45 @@ var Gi = [
|
|
|
4774
4778
|
coords: o,
|
|
4775
4779
|
formula: n,
|
|
4776
4780
|
sharedId: null,
|
|
4777
|
-
ref:
|
|
4781
|
+
ref: R.rangeToString(o),
|
|
4778
4782
|
isDynamicRange: !1,
|
|
4779
4783
|
isWrapped: !0
|
|
4780
4784
|
}]);
|
|
4781
|
-
},
|
|
4782
|
-
let
|
|
4783
|
-
if (
|
|
4784
|
-
const
|
|
4785
|
-
if (null !==
|
|
4786
|
-
if (
|
|
4787
|
-
t(
|
|
4785
|
+
}, e = a.get(`${u.rowStart},${u.colStart}`), o = void 0 !== e && (e.rowEnd > e.rowStart || e.colEnd > e.colStart);
|
|
4786
|
+
let s = !1;
|
|
4787
|
+
if (o) {
|
|
4788
|
+
const o = se(g, m.getCell().getValue());
|
|
4789
|
+
if (null !== o) for (let r = e.rowStart; r <= e.rowEnd; r++) for (let a = e.colStart; a <= e.colEnd; a++) {
|
|
4790
|
+
if (r === e.rowStart && a === e.colStart) {
|
|
4791
|
+
t(r, a, o), s = !0;
|
|
4788
4792
|
continue;
|
|
4789
4793
|
}
|
|
4790
|
-
const i = n.getRange(
|
|
4791
|
-
rowStart:
|
|
4794
|
+
const i = n.getRange(R.rangeToString({
|
|
4795
|
+
rowStart: r,
|
|
4792
4796
|
colStart: a,
|
|
4793
|
-
rowEnd:
|
|
4797
|
+
rowEnd: r,
|
|
4794
4798
|
colEnd: a
|
|
4795
4799
|
})), l = Lt(i.getCell().getValue());
|
|
4796
|
-
null !== l && t(
|
|
4800
|
+
null !== l && t(r, a, l);
|
|
4797
4801
|
}
|
|
4798
|
-
} else
|
|
4799
|
-
const o = n.getCoords(),
|
|
4800
|
-
null !== a && (t(o.rowIndex, o.colIndex, a),
|
|
4802
|
+
} else m.forEach((e, n) => {
|
|
4803
|
+
const o = n.getCoords(), r = b?.(o) ?? g, a = se(r, n.getCell().getValue());
|
|
4804
|
+
null !== a && (t(o.rowIndex, o.colIndex, a), s = !0);
|
|
4801
4805
|
}, { includeEmpty: !0 });
|
|
4802
|
-
if (
|
|
4806
|
+
if (s) continue;
|
|
4803
4807
|
}
|
|
4804
|
-
const
|
|
4805
|
-
|
|
4806
|
-
const
|
|
4807
|
-
coords:
|
|
4808
|
-
formula:
|
|
4809
|
-
sharedId:
|
|
4810
|
-
ref:
|
|
4811
|
-
isDynamicRange:
|
|
4808
|
+
const I = -1 !== g.indexOf("!") || -1 !== g.indexOf("[");
|
|
4809
|
+
T || m.isSingleCell() || I || l(u) || (x = "" + C++);
|
|
4810
|
+
const F = null !== x || m.isSingleCell() ? null : b, E = [u, {
|
|
4811
|
+
coords: u,
|
|
4812
|
+
formula: g,
|
|
4813
|
+
sharedId: x,
|
|
4814
|
+
ref: e,
|
|
4815
|
+
isDynamicRange: T,
|
|
4812
4816
|
isExcelVolatile: k,
|
|
4813
|
-
memberImage:
|
|
4817
|
+
memberImage: F
|
|
4814
4818
|
}];
|
|
4815
|
-
h.push(
|
|
4819
|
+
h.push(E);
|
|
4816
4820
|
} catch (e) {
|
|
4817
4821
|
t.log(`Could not write the formula '${i[1]}' over '${i[0]}'; those cells are written as values only. ${e}`);
|
|
4818
4822
|
continue;
|
|
@@ -4854,7 +4858,7 @@ var Gi = [
|
|
|
4854
4858
|
G.push(t);
|
|
4855
4859
|
} else G.push([]);
|
|
4856
4860
|
const et = /* @__PURE__ */ new Map();
|
|
4857
|
-
G.push(
|
|
4861
|
+
G.push(K), G.push(u?.flatMap(({ coords: t, formats: e }) => e?.empty ? [[t, !0]] : []) ?? []);
|
|
4858
4862
|
const nt = t.getSharedStates().get(Er)?.lastEdited, ot = "3" === nt || "4" === nt ? oa : na;
|
|
4859
4863
|
n.getEntireRange().forEach((n, o) => {
|
|
4860
4864
|
const s = o.getCoords(), r = s.rowIndex, l = s.colIndex;
|
|
@@ -4866,14 +4870,14 @@ var Gi = [
|
|
|
4866
4870
|
}
|
|
4867
4871
|
const v = o.getType();
|
|
4868
4872
|
let S = null;
|
|
4869
|
-
|
|
4870
|
-
let
|
|
4871
|
-
Z > 0 && (
|
|
4872
|
-
let
|
|
4873
|
-
tt > 0 && (
|
|
4874
|
-
const
|
|
4873
|
+
J > 0 && (S = o.getInjectedReference(1) ?? null);
|
|
4874
|
+
let C = !1;
|
|
4875
|
+
Z > 0 && (C = o.getInjectedReference(2) ?? !1);
|
|
4876
|
+
let T = null;
|
|
4877
|
+
tt > 0 && (T = o.getInjectedReference(3) ?? null);
|
|
4878
|
+
const k = "error" === T?.kind, I = "fixed" === T?.kind, R = Fa;
|
|
4875
4879
|
R.r = o.getAddress(), R.s = void 0, R.t = void 0, R.cm = void 0, R.vm = void 0;
|
|
4876
|
-
const F = null !== h && h.has(r * Ia + l),
|
|
4880
|
+
const F = null !== h && h.has(r * Ia + l), E = null !== u ? function(t, e, n) {
|
|
4877
4881
|
for (const { table: o, coords: s, formats: r } of t) {
|
|
4878
4882
|
if (e < s.rowStart || e > s.rowEnd || n < s.colStart || n > s.colEnd) continue;
|
|
4879
4883
|
const t = o.getStyleAt(e, n), a = t.getAlignment(), i = "left" === a.getHorizontal() ? a.getIndent() : null, l = t.getNumberFormat(), c = l && "General" !== l ? l : null, d = r?.formatAt(e - s.rowStart, n - s.colStart).user ?? null;
|
|
@@ -4885,8 +4889,8 @@ var Gi = [
|
|
|
4885
4889
|
}
|
|
4886
4890
|
return null;
|
|
4887
4891
|
}(u, r, l) : null;
|
|
4888
|
-
(a || F || null !==
|
|
4889
|
-
const P =
|
|
4892
|
+
(a || F || null !== E) && (c = f.getXf(c ?? 0, null !== a, F, E?.labelIndent ?? null, E?.numberFormat ?? null, E?.user ?? null)), void 0 !== c && 0 !== c && (R.s = "" + c);
|
|
4893
|
+
const P = K.length > 0 ? o.getInjectedReference(4) ?? null : null;
|
|
4890
4894
|
let A = null, D = null;
|
|
4891
4895
|
switch (v) {
|
|
4892
4896
|
case x.Boolean:
|
|
@@ -4907,7 +4911,7 @@ var Gi = [
|
|
|
4907
4911
|
A = n, S || P ? (D = "str", A = n) : (D = "s", A = "" + d.add(A), g++);
|
|
4908
4912
|
break;
|
|
4909
4913
|
case x.RichData:
|
|
4910
|
-
if (n instanceof
|
|
4914
|
+
if (n instanceof b) {
|
|
4911
4915
|
S || P ? (D = "str", A = n.getText()) : (D = "s", A = "" + d.add(function(t, e, n) {
|
|
4912
4916
|
const o = t.getRuns(), s = e.getCell().getRichText();
|
|
4913
4917
|
if (!s) return t.getText();
|
|
@@ -4925,11 +4929,11 @@ var Gi = [
|
|
|
4925
4929
|
}
|
|
4926
4930
|
const a = JSON.stringify(r);
|
|
4927
4931
|
let l = n.get(a);
|
|
4928
|
-
return void 0 === l && (l = new
|
|
4932
|
+
return void 0 === l && (l = new b(r), n.set(a, l)), l;
|
|
4929
4933
|
}(n, o, et)), g++);
|
|
4930
4934
|
break;
|
|
4931
4935
|
}
|
|
4932
|
-
if (n instanceof
|
|
4936
|
+
if (n instanceof M) {
|
|
4933
4937
|
const t = n.toPrimitive();
|
|
4934
4938
|
"number" == typeof t ? A = ot(t) : "boolean" == typeof t ? (D = "b", A = t ? "1" : "0") : S || P ? (D = "str", A = t) : (D = "s", A = "" + d.add(t), g++);
|
|
4935
4939
|
break;
|
|
@@ -4937,9 +4941,9 @@ var Gi = [
|
|
|
4937
4941
|
D = "e", A = w.BuiltIn.Value.getLabel(), R.vm = "" + p.add(n, S?.formula ?? (P ? "" : null));
|
|
4938
4942
|
}
|
|
4939
4943
|
D && (R.t = D);
|
|
4940
|
-
const L = !S?.isWrapped && (null !==
|
|
4944
|
+
const L = !S?.isWrapped && (null !== T || (S?.isDynamicRange ?? !1));
|
|
4941
4945
|
if (null !== S || null !== A || null !== P) {
|
|
4942
|
-
if (L && null !== S && !I && (R.cm = "" + m.registerArrayCell(
|
|
4946
|
+
if (L && null !== S && !I && (R.cm = "" + m.registerArrayCell(k)), e.start("c", R), S) {
|
|
4943
4947
|
const t = r === S.coords.rowStart && l === S.coords.colStart;
|
|
4944
4948
|
let n = S.formula;
|
|
4945
4949
|
S.memberImage && !t && (n = S.memberImage({
|
|
@@ -4952,18 +4956,18 @@ var Gi = [
|
|
|
4952
4956
|
o = Pa;
|
|
4953
4957
|
const t = S.coords;
|
|
4954
4958
|
t.colStart === l && t.rowStart === r ? (o.ref = S.ref, o.si = a, s = S.formula) : (o.ref = void 0, o.si = a);
|
|
4955
|
-
} else L ? (o = Aa, o.aca =
|
|
4956
|
-
o.ca =
|
|
4957
|
-
} else P && e.empty("f",
|
|
4959
|
+
} else L ? (o = Aa, o.aca = k ? "1" : void 0, o.ref = k ? R.r : T?.ref ?? R.r, s = n) : (o = Ma, s = n);
|
|
4960
|
+
o.ca = C || k || S.isExcelVolatile ? "1" : void 0, s ? (e.start("f", o), e.text(s), e.end("f")) : e.empty("f", o);
|
|
4961
|
+
} else P && e.empty("f", C ? {
|
|
4958
4962
|
...P,
|
|
4959
4963
|
ca: "1"
|
|
4960
4964
|
} : P);
|
|
4961
|
-
null !== A && ("str" === D && A ? (e.start("v",
|
|
4965
|
+
null !== A && ("str" === D && A ? (e.start("v", ke.test(A) ? Fe : void 0), e.text(ie(A))) : (e.start("v"), A && e.text(A)), e.end("v")), e.end("c");
|
|
4962
4966
|
} else y++ < aa ? e.empty("c", R) : 1048577 === y && t.warn(`Reached ${aa} style-only cells at '${R.r}'; not writing the rest.`);
|
|
4963
4967
|
}, {
|
|
4964
4968
|
injectReferences: G,
|
|
4965
4969
|
features: []
|
|
4966
|
-
}), -1 !== V && V >=
|
|
4970
|
+
}), -1 !== V && V >= L ? e.end("row") : U(L, !0), e.end("sheetData"), e.setValidationDisabled(!1);
|
|
4967
4971
|
} else e.empty("sheetData");
|
|
4968
4972
|
if (g > 0) {
|
|
4969
4973
|
const t = c.get("stringsCount") ?? 0;
|
|
@@ -4976,7 +4980,7 @@ var Gi = [
|
|
|
4976
4980
|
for (let t = 0; t < n; t++) {
|
|
4977
4981
|
s[t] = null;
|
|
4978
4982
|
try {
|
|
4979
|
-
const n =
|
|
4983
|
+
const n = D.parse(e[t][1]);
|
|
4980
4984
|
if (!n) continue;
|
|
4981
4985
|
let r = null;
|
|
4982
4986
|
const a = (t) => {
|
|
@@ -5048,7 +5052,7 @@ var Gi = [
|
|
|
5048
5052
|
if (s > 0) {
|
|
5049
5053
|
e.start("mergeCells", { count: s });
|
|
5050
5054
|
for (let t = 0; t < s; t++) {
|
|
5051
|
-
const n = o.merges[t], s = "string" == typeof n ? n :
|
|
5055
|
+
const n = o.merges[t], s = "string" == typeof n ? n : R.rangeToString(n);
|
|
5052
5056
|
e.empty("mergeCell", { ref: s });
|
|
5053
5057
|
}
|
|
5054
5058
|
e.end("mergeCells");
|
|
@@ -5077,7 +5081,7 @@ var Gi = [
|
|
|
5077
5081
|
scale: x
|
|
5078
5082
|
});
|
|
5079
5083
|
const y = x ? { type: x.type } : vt(l.condition, ha(c), (e, n) => t.warn(e, void 0, n));
|
|
5080
|
-
y ? (y.formulas && (y.formulas = y.formulas.map((t) => wa(t, g, p))), x?.type ===
|
|
5084
|
+
y ? (y.formulas && (y.formulas = y.formulas.map((t) => wa(t, g, p))), x?.type === I.ScaleType.IconSet && pa(x) ? (h++, u(l), a.push({
|
|
5081
5085
|
guid: Pt(n.uuidV4),
|
|
5082
5086
|
sqref: c,
|
|
5083
5087
|
priority: h,
|
|
@@ -5197,7 +5201,7 @@ var Gi = [
|
|
|
5197
5201
|
e.start("headerFooter", t);
|
|
5198
5202
|
for (const t of n) {
|
|
5199
5203
|
const n = ie(d[t]);
|
|
5200
|
-
e.start(t,
|
|
5204
|
+
e.start(t, ke.test(n) ? Fe : void 0), e.text(n), e.end(t);
|
|
5201
5205
|
}
|
|
5202
5206
|
e.end("headerFooter");
|
|
5203
5207
|
}
|
|
@@ -5267,13 +5271,13 @@ var Gi = [
|
|
|
5267
5271
|
comments: n
|
|
5268
5272
|
});
|
|
5269
5273
|
}(r);
|
|
5270
|
-
|
|
5274
|
+
Ta(e, s, "legacyDrawing", ((t, e) => {
|
|
5271
5275
|
if (!e) return t;
|
|
5272
5276
|
const n = t?.xml ?? null;
|
|
5273
5277
|
let o = Ve(n ?? "");
|
|
5274
5278
|
const s = [], r = e.comments;
|
|
5275
5279
|
for (let t = 0; t < r.length; t++) {
|
|
5276
|
-
const { comment: n, row: a, col: i } = r[t], l = n.isNote() ? n.toJSON() : null, { bounds: c, anchor: d } =
|
|
5280
|
+
const { comment: n, row: a, col: i } = r[t], l = n.isNote() ? n.toJSON() : null, { bounds: c, anchor: d } = ka(e.sheet, n, a, i), m = l?.box, p = m?.fill || m?.stroke ? Ft(m.xml ?? G, {
|
|
5277
5281
|
fill: m.fill,
|
|
5278
5282
|
stroke: m.stroke
|
|
5279
5283
|
}, (t) => e.sheet.getStyles().parseColor(t)) : m?.xml;
|
|
@@ -5288,7 +5292,7 @@ var Gi = [
|
|
|
5288
5292
|
alt: l?.description
|
|
5289
5293
|
}));
|
|
5290
5294
|
}
|
|
5291
|
-
const a =
|
|
5295
|
+
const a = Ke(n, s, o);
|
|
5292
5296
|
return a ? a === n ? t : t ? {
|
|
5293
5297
|
...t,
|
|
5294
5298
|
xml: a
|
|
@@ -5328,12 +5332,12 @@ var Gi = [
|
|
|
5328
5332
|
u && (s.push(u), i > r && (r = i));
|
|
5329
5333
|
}
|
|
5330
5334
|
if (0 === s.length) return e;
|
|
5331
|
-
const i =
|
|
5335
|
+
const i = Ke(e?.xml ?? null, s, r, be);
|
|
5332
5336
|
return i ? e ? {
|
|
5333
5337
|
...e,
|
|
5334
5338
|
xml: i
|
|
5335
5339
|
} : { xml: i } : e;
|
|
5336
|
-
})(r, a.legacyDrawing ?? null, l), u)),
|
|
5340
|
+
})(r, a.legacyDrawing ?? null, l), u)), Ta(e, s, "legacyDrawingHF", a.legacyDrawingHF ?? null), await async function(t, e, n) {
|
|
5337
5341
|
const o = n.getPicture();
|
|
5338
5342
|
if (!o) return;
|
|
5339
5343
|
const s = o.getResource(), r = await s.getExternalURI();
|
|
@@ -5366,7 +5370,7 @@ var Gi = [
|
|
|
5366
5370
|
id: "",
|
|
5367
5371
|
type: _t,
|
|
5368
5372
|
name: "ctrlProp.xml",
|
|
5369
|
-
contentType:
|
|
5373
|
+
contentType: K,
|
|
5370
5374
|
xml: St(a.content.type, i)
|
|
5371
5375
|
};
|
|
5372
5376
|
l = t.addPart("embeddedPart", e, "../ctrlProps/ctrlProp{n}.xml").relId ?? void 0;
|
|
@@ -5417,7 +5421,7 @@ var Gi = [
|
|
|
5417
5421
|
}
|
|
5418
5422
|
e.end("tableParts");
|
|
5419
5423
|
}(e, s, r, a), function(t, e, n, o, s) {
|
|
5420
|
-
const r =
|
|
5424
|
+
const r = kr(n), a = n.getSparklineGroups().getItems(), i = a.length > 0;
|
|
5421
5425
|
if (0 === o.length && 0 === s.length && 0 === r.length && !i) return;
|
|
5422
5426
|
const l = n.getStyles(), c = l.getTheme();
|
|
5423
5427
|
if (e.start("extLst"), o.length > 0) {
|
|
@@ -5427,13 +5431,13 @@ var Gi = [
|
|
|
5427
5431
|
}), e.start("x14:conditionalFormattings");
|
|
5428
5432
|
for (let n = 0; n < o.length; n++) {
|
|
5429
5433
|
const { guid: s, sqref: r, priority: a, scale: i, rule: d, style: m, stopIfTrue: p } = o[n];
|
|
5430
|
-
if (e.start("x14:conditionalFormatting", { "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main" }), i) if (i.type ===
|
|
5434
|
+
if (e.start("x14:conditionalFormatting", { "xmlns:xm": "http://schemas.microsoft.com/office/excel/2006/main" }), i) if (i.type === I.ScaleType.DataBar) {
|
|
5431
5435
|
e.start("x14:cfRule", {
|
|
5432
5436
|
type: "dataBar",
|
|
5433
5437
|
id: s
|
|
5434
5438
|
}), e.start("x14:dataBar", {
|
|
5435
|
-
minLength: i.minLength,
|
|
5436
|
-
maxLength: i.maxLength,
|
|
5439
|
+
minLength: i.minLength ?? 0,
|
|
5440
|
+
maxLength: i.maxLength ?? 100,
|
|
5437
5441
|
gradient: i.gradient ? void 0 : "0",
|
|
5438
5442
|
border: i.borderColor ? "1" : void 0,
|
|
5439
5443
|
direction: i.direction,
|
|
@@ -5442,7 +5446,7 @@ var Gi = [
|
|
|
5442
5446
|
axisPosition: i.axisPosition
|
|
5443
5447
|
});
|
|
5444
5448
|
const t = i.stops ?? [];
|
|
5445
|
-
if (0 === t.length) da(e, { type:
|
|
5449
|
+
if (0 === t.length) da(e, { type: I.ColorStopType.AutoMin }), da(e, { type: I.ColorStopType.AutoMax });
|
|
5446
5450
|
else for (let n = 0; n < t.length; n++) da(e, t[n]);
|
|
5447
5451
|
i.borderColor && Ao(e, c, i.borderColor, "x14:borderColor"), i.negativeFillColor && Ao(e, c, i.negativeFillColor, "x14:negativeFillColor"), i.negativeBorderColor && Ao(e, c, i.negativeBorderColor, "x14:negativeBorderColor"), i.axisColor && Ao(e, c, i.axisColor, "x14:axisColor"), e.end("x14:dataBar"), e.end("x14:cfRule");
|
|
5448
5452
|
} else {
|
|
@@ -5521,7 +5525,7 @@ var Gi = [
|
|
|
5521
5525
|
for (let e = 0; e < r.length; e++) {
|
|
5522
5526
|
const { group: o, sparklines: a } = r[e];
|
|
5523
5527
|
t.start("x14:sparklineGroup", qt(o));
|
|
5524
|
-
for (const e of
|
|
5528
|
+
for (const e of Tt) {
|
|
5525
5529
|
const s = o[e];
|
|
5526
5530
|
s && Ao(t, n, s, `x14:${e}`);
|
|
5527
5531
|
}
|
|
@@ -5535,7 +5539,7 @@ var Gi = [
|
|
|
5535
5539
|
const o = [], s = [], r = [];
|
|
5536
5540
|
for (let t = 0; t < n.slicers.length; t++) {
|
|
5537
5541
|
const e = n.slicers[t];
|
|
5538
|
-
(
|
|
5542
|
+
(Tr(e) ? r : Cr(e) ? o : s).push(e);
|
|
5539
5543
|
}
|
|
5540
5544
|
if (o.length > 0) {
|
|
5541
5545
|
const s = t.addPart("slicers", {
|
|
@@ -5629,7 +5633,7 @@ var Gi = [
|
|
|
5629
5633
|
const a = t.theme;
|
|
5630
5634
|
for (let t = 0; t < s; t++) {
|
|
5631
5635
|
const e = o[t];
|
|
5632
|
-
if (n.start("si"), e instanceof
|
|
5636
|
+
if (n.start("si"), e instanceof b) {
|
|
5633
5637
|
const t = e.getRuns();
|
|
5634
5638
|
for (let e = 0; e < t.length; e++) {
|
|
5635
5639
|
const o = t[e];
|
|
@@ -5679,10 +5683,10 @@ var Gi = [
|
|
|
5679
5683
|
}(t, e, "fmtScheme", o, o.getFormatScheme());
|
|
5680
5684
|
}(e, n, 0, o, s), n.end("themeElements"), function(t, e, n) {
|
|
5681
5685
|
const o = n.getObjectDefaults();
|
|
5682
|
-
if (!
|
|
5686
|
+
if (!Ja.some(([t]) => o[t])) return void e.empty("objectDefaults");
|
|
5683
5687
|
const s = { getTheme: () => n };
|
|
5684
5688
|
e.start("objectDefaults");
|
|
5685
|
-
for (const [r, a] of
|
|
5689
|
+
for (const [r, a] of Ja) {
|
|
5686
5690
|
const i = o[r];
|
|
5687
5691
|
if (!i) continue;
|
|
5688
5692
|
e.start(a), e.start("spPr"), Go(t, s, i), e.end("spPr"), Ga(t, s, i.text);
|
|
@@ -5705,7 +5709,7 @@ var Gi = [
|
|
|
5705
5709
|
}
|
|
5706
5710
|
const a = s?.family;
|
|
5707
5711
|
if (a) {
|
|
5708
|
-
n.start("extLst"), n.start("ext", { uri:
|
|
5712
|
+
n.start("extLst"), n.start("ext", { uri: kt });
|
|
5709
5713
|
const t = {
|
|
5710
5714
|
"xmlns:thm15": "http://schemas.microsoft.com/office/thememl/2012/main",
|
|
5711
5715
|
name: a.name,
|
|
@@ -5819,7 +5823,7 @@ var Gi = [
|
|
|
5819
5823
|
e.end("numFmts");
|
|
5820
5824
|
}
|
|
5821
5825
|
})(0, o, i), function(t, e, n, o) {
|
|
5822
|
-
const s = o.fonts, r = s.length, a = n.getTheme(), i =
|
|
5826
|
+
const s = o.fonts, r = s.length, a = n.getTheme(), i = L.getShared(), l = $e(s.map((t) => ({
|
|
5823
5827
|
...t,
|
|
5824
5828
|
family: ne(t.family, t.fallbacks, a, !0).name
|
|
5825
5829
|
}))).every((t) => gt(i, t));
|
|
@@ -5838,7 +5842,7 @@ var Gi = [
|
|
|
5838
5842
|
const s = o.borders, r = s.length;
|
|
5839
5843
|
e.start("borders", { count: String(r) });
|
|
5840
5844
|
const a = n.getTheme();
|
|
5841
|
-
for (const n of s)
|
|
5845
|
+
for (const n of s) Ts(t, e, n, a, !1);
|
|
5842
5846
|
e.end("borders");
|
|
5843
5847
|
}(e, o, r, i), function(t, e, o, s, r) {
|
|
5844
5848
|
const a = r.namedStyles, i = a.length;
|
|
@@ -5993,7 +5997,7 @@ var Gi = [
|
|
|
5993
5997
|
let r = 0;
|
|
5994
5998
|
for (let t = 0; t < o.length; t++) {
|
|
5995
5999
|
const e = r++;
|
|
5996
|
-
n.empty("bag", { type:
|
|
6000
|
+
n.empty("bag", { type: Ka[o[t].type] ?? o[t].type });
|
|
5997
6001
|
const a = r++;
|
|
5998
6002
|
n.start("bag", { type: "XFControls" }), n.start("bagId", { k: "CellControl" }), n.text(String(e)), n.end("bagId"), n.end("bag"), s.push(r++), n.start("bag", { type: "XFComplement" }), n.start("bagId", { k: "XFControls" }), n.text(String(a)), n.end("bagId"), n.end("bag");
|
|
5999
6003
|
}
|
|
@@ -6047,7 +6051,7 @@ var Gi = [
|
|
|
6047
6051
|
});
|
|
6048
6052
|
}
|
|
6049
6053
|
async emit(t, e) {
|
|
6050
|
-
const n = e.getXMLWriter(), o = t.model, s = (await
|
|
6054
|
+
const n = e.getXMLWriter(), o = t.model, s = (await C.getDetails()).getBuildVersion(), r = Et(s), a = o.getProperties();
|
|
6051
6055
|
n.setValidationDisabled(!0), n.decl(), n.start("Properties", {
|
|
6052
6056
|
xmlns: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
6053
6057
|
"xmlns:vt": "http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"
|
|
@@ -6075,13 +6079,13 @@ var Gi = [
|
|
|
6075
6079
|
chart: 2,
|
|
6076
6080
|
dialog: 3
|
|
6077
6081
|
};
|
|
6078
|
-
for (const t of n.getSheets({ visibility:
|
|
6082
|
+
for (const t of n.getSheets({ visibility: k.Visibility.Hidden })) o[s[t.getKind()] ?? 0].names.push(t.getName());
|
|
6079
6083
|
const r = n.getNames().getItems({ type: "formula" }).filter((t) => !!t.getRanges?.());
|
|
6080
6084
|
o.push({
|
|
6081
6085
|
heading: "Named Ranges",
|
|
6082
6086
|
names: r.map((t) => {
|
|
6083
6087
|
const e = t.getScope();
|
|
6084
|
-
return e ? `${
|
|
6088
|
+
return e ? `${R.sheetNameToString(e)}!${t.getName()}` : t.getName();
|
|
6085
6089
|
})
|
|
6086
6090
|
});
|
|
6087
6091
|
const a = o.filter((t, e) => 0 === e || t.names.length > 0);
|
|
@@ -6129,7 +6133,7 @@ var Gi = [
|
|
|
6129
6133
|
};
|
|
6130
6134
|
a && (i.linkTarget = a), n.start("property", i);
|
|
6131
6135
|
const l = Qa[s];
|
|
6132
|
-
n.start(l), n.text(s ===
|
|
6136
|
+
n.start(l), n.text(s === _.Type.Date ? ti(r) : String(r)), n.end(l), n.end("property");
|
|
6133
6137
|
}
|
|
6134
6138
|
n.end("Properties"), n.close();
|
|
6135
6139
|
}
|
|
@@ -6319,7 +6323,7 @@ var Gi = [
|
|
|
6319
6323
|
let n = s && !s.isClosed() ? s : null;
|
|
6320
6324
|
if (!n) {
|
|
6321
6325
|
const e = await t.workbook.fetch(o);
|
|
6322
|
-
e.ok && e.headers.get("content-type")?.startsWith("image/") && (n = new
|
|
6326
|
+
e.ok && e.headers.get("content-type")?.startsWith("image/") && (n = new E({ source: { buffer: await e.arrayBuffer() } }));
|
|
6323
6327
|
}
|
|
6324
6328
|
n && (a = (await ts(e, n)).relId);
|
|
6325
6329
|
} catch {}
|
|
@@ -6678,7 +6682,7 @@ var Gi = [
|
|
|
6678
6682
|
ref: e.ref,
|
|
6679
6683
|
authorId: e.authorId,
|
|
6680
6684
|
shapeId: 0
|
|
6681
|
-
}), n.start("text"),
|
|
6685
|
+
}), n.start("text"), Jr(n, e.content, l), n.end("text"), n.end("comment");
|
|
6682
6686
|
}
|
|
6683
6687
|
n.end("commentList"), n.end("comments"), n.close();
|
|
6684
6688
|
}
|
|
@@ -6863,7 +6867,7 @@ var Gi = [
|
|
|
6863
6867
|
"xr10:uid": Pt(n.uuidV4),
|
|
6864
6868
|
sourceName: e.sourceName
|
|
6865
6869
|
}), Ir(o, s, t), e.tabular && ((t, e, n, o) => {
|
|
6866
|
-
const s = n._getPivotItems?.(), r = s ?
|
|
6870
|
+
const s = n._getPivotItems?.(), r = s ? Js(t, s.cacheId) : null;
|
|
6867
6871
|
if (!s || null === r) return void t.log(`The slicer '${n.getName?.() ?? ""}' indexes a pivot cache that was not written; Excel repairs it.`);
|
|
6868
6872
|
const a = n.toJSON(), i = n.getSortOrder(), l = n.getCrossFilter();
|
|
6869
6873
|
e.start("data"), e.start("tabular", {
|
|
@@ -6934,7 +6938,7 @@ var Gi = [
|
|
|
6934
6938
|
"xr10:uid": Pt(n.uuidV4),
|
|
6935
6939
|
sourceName: o.sourceName
|
|
6936
6940
|
}), Ir(e, s, t), o.tabular && ((t, e, n) => {
|
|
6937
|
-
const o = n._getTimelineState?.(), s = o ?
|
|
6941
|
+
const o = n._getTimelineState?.(), s = o ? Js(t, o.cacheId) : null;
|
|
6938
6942
|
if (!o || null === s) return void t.log(`The timeline '${n.getName?.() ?? ""}' names a pivot cache that was not written; Excel repairs it.`);
|
|
6939
6943
|
const r = nr(t), a = (t) => st(Math.floor(t), r), i = o.dates ?? o.range ?? {
|
|
6940
6944
|
start: 1,
|
|
@@ -7025,7 +7029,7 @@ var Gi = [
|
|
|
7025
7029
|
}(n, t), n.end("externalBook"), n.end("externalLink"), n.close();
|
|
7026
7030
|
}
|
|
7027
7031
|
}()
|
|
7028
|
-
], qi = "SheetXL Evaluation",
|
|
7032
|
+
], qi = "SheetXL Evaluation", Ji = "xl/worksheets/sheetSheetXLEvaluation.xml", Ki = "rIdSheetXLEvaluation", Yi = [
|
|
7029
7033
|
"This workbook was exported from an unlicensed evaluation of SheetXL.",
|
|
7030
7034
|
"Your own sheets follow this one, unchanged.",
|
|
7031
7035
|
"To license SheetXL, visit https://www.sheetxl.com"
|
|
@@ -7033,7 +7037,7 @@ var Gi = [
|
|
|
7033
7037
|
const e = [...t.matchAll(/<sheet\b[^>]*\bsheetId="(\d+)"/g)].map((t) => parseInt(t[1], 10)), n = new Set([...t.matchAll(/<sheet\b[^>]*\bname="([^"]*)"/g)].map((t) => t[1].toLowerCase()));
|
|
7034
7038
|
let o = qi;
|
|
7035
7039
|
for (let t = 2; n.has(o.toLowerCase()); t++) o = `${qi} (${t})`;
|
|
7036
|
-
const s = `<sheet name="${o}" sheetId="${Math.max(0, ...e) + 1}" r:id="${
|
|
7040
|
+
const s = `<sheet name="${o}" sheetId="${Math.max(0, ...e) + 1}" r:id="${Ki}"/>`;
|
|
7037
7041
|
return t.replace(/<sheets>/, `<sheets>${s}`).replace(/\blocalSheetId="(\d+)"/g, (t, e) => `localSheetId="${parseInt(e, 10) + 1}"`).replace(/<workbookView\b([^>]*?)(\/?)>/, (t, e, n) => {
|
|
7038
7042
|
const o = /\bactiveTab="(\d+)"/.exec(e);
|
|
7039
7043
|
return `<workbookView${(o ? e.replace(/\bactiveTab="\d+"/, `activeTab="${parseInt(o[1], 10) + 1}"`) : `${e} activeTab="1"`).replace(/\s*\bfirstTab="\d+"/, "")}${n}>`;
|
|
@@ -7061,8 +7065,8 @@ var Gi = [
|
|
|
7061
7065
|
const n = t.getPart("xl/workbook.xml"), o = n ? new TextDecoder("utf-8").decode(n.data) : null;
|
|
7062
7066
|
return nl.set(t, o), o;
|
|
7063
7067
|
}, nl = /* @__PURE__ */ new WeakMap(), ol = async (t, e) => {
|
|
7064
|
-
await
|
|
7065
|
-
const n = new
|
|
7068
|
+
await D.load();
|
|
7069
|
+
const n = new Kn();
|
|
7066
7070
|
for (const t of Gi) n.register(t);
|
|
7067
7071
|
const o = sl, s = Cn.createUint8Array({
|
|
7068
7072
|
lastModDate: new Date(1899, 11, 29, 19, 0, 0),
|
|
@@ -7160,7 +7164,7 @@ var Gi = [
|
|
|
7160
7164
|
});
|
|
7161
7165
|
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 });
|
|
7162
7166
|
let h = await f.build();
|
|
7163
|
-
await
|
|
7167
|
+
await C.isWatermarked() && (h = await (async (t) => {
|
|
7164
7168
|
const e = new B(new z(t)), n = new j(), o = new je(n, { lastModDate: new Date(1899, 11, 29, 19, 0, 0) });
|
|
7165
7169
|
try {
|
|
7166
7170
|
for (const t of await e.getEntries()) {
|
|
@@ -7168,14 +7172,14 @@ var Gi = [
|
|
|
7168
7172
|
const e = t.filename;
|
|
7169
7173
|
if ("xl/workbook.xml" === e) await o.add(e, new z(new TextEncoder().encode(Zi(await t.getData(new O())))));
|
|
7170
7174
|
else if ("xl/_rels/workbook.xml.rels" === e) {
|
|
7171
|
-
const n = await t.getData(new O()), s = `<Relationship Id="${
|
|
7175
|
+
const n = await t.getData(new O()), s = `<Relationship Id="${Ki}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="${Ji.slice(3)}"/>`;
|
|
7172
7176
|
await o.add(e, new z(new TextEncoder().encode(n.replace("</Relationships>", `${s}</Relationships>`))));
|
|
7173
7177
|
} else if ("[Content_Types].xml" === e) {
|
|
7174
|
-
const n = await t.getData(new O()), s = `<Override PartName="/${
|
|
7178
|
+
const n = await t.getData(new O()), s = `<Override PartName="/${Ji}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`;
|
|
7175
7179
|
await o.add(e, new z(new TextEncoder().encode(n.replace("</Types>", `${s}</Types>`))));
|
|
7176
7180
|
} else await o.add(e, new z(await t.getData(new j())));
|
|
7177
7181
|
}
|
|
7178
|
-
return await o.add(
|
|
7182
|
+
return await o.add(Ji, new z(new TextEncoder().encode(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><sheetViews><sheetView workbookViewId="0"/></sheetViews><cols><col min="1" max="1" width="80" customWidth="1"/></cols><sheetData>${Yi.map((t, e) => `<row r="${e + 1}"><c r="A${e + 1}" t="inlineStr"><is><t>${t}</t></is></c></row>`).join("")}</sheetData></worksheet>`))), await o.close(), await n.getData();
|
|
7179
7183
|
} finally {
|
|
7180
7184
|
await e.close();
|
|
7181
7185
|
}
|