@sheetxl/mcp 0.8.0-beta.18 → 0.8.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{BhHneZZ7gq4dRaEJ.js → -iaCg5U9jrEDEl_O.js} +1 -1
- package/assets/{BRQd_GNkeaBTl3Zr.js → 0hHP9xpWzhkDrCTL.js} +1 -1
- package/assets/{MfkAFluI0ZyU0UDV.js → 1bm0Yqgfehw1Z2QU.js} +9 -9
- package/assets/{DSDlxGN059KmkCxT.js → 2nx2Wljhbuct4aKx.js} +1 -1
- package/assets/{pg7E7B7ouG2qdZve.js → 7MIo82Ay8jEFMBH-.js} +1 -1
- package/assets/{CnLLwj7OCz4U71wa.js → ArL5bPq60ZcPcwU9.js} +1 -1
- package/assets/{DCHjwIx59QhiV2Zx.js → B6A2URH-mIs7J54h.js} +2 -2
- package/assets/{CDqOifqA400y7KQY.js → B7vRFm79CUJ1VvFw.js} +1 -1
- package/assets/{BQzUK7KiJeJpu-rK.js → B8Z4-80QEORmYOJ9.js} +1 -1
- package/assets/{BFGVZsstQm2MWi7Y.js → BGLlbVFS6J3lt9Lw.js} +1 -1
- package/assets/{D5wI7O_L6QVNXj5I.js → BHsQeg6najGesUM4.js} +1 -1
- package/assets/{CkO0JR629W2kcDMd.js → BPctZbHQFoqJNYzC.js} +2 -2
- package/assets/{Dhg0yeTmVfmRV5rK.js → BQkQNqRh5xxYhBy4.js} +1 -1
- package/assets/{Rpi4k7hMH8wPAIcB.js → BSNegq0YcivZJmkf.js} +1658 -1658
- package/assets/{DafqFM-FGeZJ_fzg.js → BTnTQBSbzYU7cwra.js} +1 -1
- package/assets/{CoQFpWEh4CUgcdwe.js → BUHEmX1fseJVV65_.js} +1 -1
- package/assets/{hLMlKg3lU36xZ6G6.js → Bbky1A_gIgE8i0Oy.js} +1 -1
- package/assets/{CL4BYdfIXgFQA8nY.js → BbvOmnXrmBNjeWjQ.js} +1 -1
- package/assets/{CT6kRDlkfvKq8XGZ.js → Bbxkz6vmyZJftTd-.js} +1 -1
- package/assets/{Ct8BhGWuqN5yOpUF.js → BcYdUKmFOf5rn2VZ.js} +1 -1
- package/assets/{BSvHkSY0R0EU0gC4.js → BfIJP4H3I51jnIVR.js} +1 -1
- package/assets/{BQsLqKWy17wy3znE.js → BgUHR-HVjZDY4SaH.js} +2 -2
- package/assets/{hvCnPO_Fu7Nqz0rs.js → BgVW1icycJewsx77.js} +1 -1
- package/assets/{BgGFX6QJ30T3seyX.js → Bgi6ubwGkGYsILci.js} +94 -94
- package/assets/{DbwDQlhCuGoasVUz.js → BiOrM24CFYL1JGFE.js} +2 -2
- package/assets/{DY1x1ZN7ZyE4OR1-.js → Bj1WHx6LIEq6RVGw.js} +8 -8
- package/assets/{CMXukie7sxP12H2E.js → Bk6A5eONxLTBIA_p.js} +4 -4
- package/assets/{BV11qLZKVWxFwVGV.js → Bk6SeqUJkn7ft1y1.js} +1 -1
- package/assets/{DN4zv4AjDxTsLFsA.js → BkhdNc3LdmcyAjwk.js} +9136 -9130
- package/assets/{DP-FzazhSKAvylUa.js → Bl77DvFa09DuVVuj.js} +137 -137
- package/assets/{Cv8UXBL7O7h1uMR8.js → Bpf9jHj5AFY9543y.js} +21 -21
- package/assets/{ARPN5UhoadZC1yqE.js → Bq6ocyztkvzKxMMC.js} +1 -1
- package/assets/{CLsD7YwSKAsliRZy.js → Bw2Nxye4Qj10uA3o.js} +1 -1
- package/assets/{CYUerpa6WB0Hc3fs.js → Bz1lp0mtNAoPuPve.js} +1 -1
- package/assets/{o9G5KuG1VkSazTvI.js → BzkTa7l_e7R--ejo.js} +402 -402
- package/assets/{BM-ax5N1GzF9KkI4.js → C06iKc7jZ6affk2m.js} +1 -1
- package/assets/{BatIfPAYElNTXVzb.js → C17Wflhw5IFSgFFY.js} +1 -1
- package/assets/{BMc-Hsrp_iifxzG_.js → C53f6C0pAU7_9FI-.js} +1 -1
- package/assets/{CmlxzZYM5hOAAcx5.js → C7Q4V5mU0wsErspO.js} +3 -3
- package/assets/{DjoFujVwGRAxviCF.js → CA_22AL82sRhLAko.js} +2 -2
- package/assets/{CzoexWLhnn08u05j.js → CBSSZrizrucIG_9i.js} +754 -757
- package/assets/{CLBxNjtPjuGX1KnU.js → CE4VYOniMmY8sXQ_.js} +1 -1
- package/assets/{DI_SAQ7hesioI9TW.js → CIOlYUuBZat8FhHa.js} +1 -1
- package/assets/{Dh2iae-q0IngEeyH.js → CIxf9Y_JsuEEO7Nu.js} +1 -1
- package/assets/{BQeb2zXfAs5lRoGt.js → CKvP54bJ4GkUqcZi.js} +3 -3
- package/assets/{Del35nO_1HyjItI0.js → CNPUPTd9h7hwijpZ.js} +69 -69
- package/assets/{D1pD8u8nRprUvn-u.js → CQZq4cA5kbES6htE.js} +1 -1
- package/assets/{BhJ1mH7pUONJScU7.js → CQiv3YkDRDxTjy0r.js} +31 -31
- package/assets/{BQ76ntZm9YFicjXj.js → CWHuM2GYuKmi0rZx.js} +1 -1
- package/assets/{DL3ms6Hf2uEGaMgH.js → CYTPpV3lqNGOwme7.js} +2 -2
- package/assets/{D2IMjoGcj5oz1Kr7.js → C_v4hb9WXIt639Cm.js} +1 -1
- package/assets/{Du9_Ajy9KvnwHApK.js → CcGrcjoI12MaDmwV.js} +2 -2
- package/assets/{CGGpkGg85FZsnYHc.js → Cgf5GQVN-D8SlQ7A.js} +15 -15
- package/assets/{CPkGFumcwSKh5zea.js → CiJq0zSDKpaKhL3y.js} +2 -2
- package/assets/{EDEUvF-L72a6fMCK.js → Cj4MYfqHewu8IOOL.js} +1 -1
- package/assets/{D0-I0aLr6w8IvxFD.js → CjoRkjB9NzS4LaFy.js} +1 -1
- package/assets/{B2C5njsdPylyQOCM.js → CjrzyKFdie6KYfsG.js} +3 -3
- package/assets/{Bi4pI6e3AwTjn-lQ.js → CkMXAUkUuJ2LJUBE.js} +1 -1
- package/assets/{VcmpHRbBIrw6av3U.js → CoXgI3MEnvkXeshj.js} +120 -120
- package/assets/{yBFl0kPv-nwFtG4Z.js → CqOzqRIQFCnEegoB.js} +1 -1
- package/assets/{XDQBri0_cS5paHej.js → CqvcgwQ0UcKndrhO.js} +2 -2
- package/assets/{C3PZVWI_SEXYrzVk.js → CrjUfkCuRaXUC8X8.js} +3 -3
- package/assets/{vXZw1AmMzswOZMiP.js → CubwsTFIaEVf039H.js} +1 -1
- package/assets/{nPoObUd0MvWI-j0F.js → Cur_-XiBPijLpwxX.js} +1 -1
- package/assets/{B7GE-6NROw0onnLD.js → Curuj_knAdRpMy1L.js} +157 -157
- package/assets/{8hZAYFV_v2KmJ_NL.js → Cz7tKgNBbnr4DZCb.js} +4 -4
- package/assets/{wZ-GQhOhikv-_3iQ.js → D-LrOz3Yvp17bUT8.js} +2 -2
- package/assets/{DWK-OKV0MErx-IrU.js → D005GbIBowRGfwed.js} +6 -6
- package/assets/{CPa4og3WQ7BgHrsO.js → D06A3fKIe3WCTFru.js} +28 -28
- package/assets/{C_UAskmm-u2Iw9Nl.js → D1ZekPxeTGzhFy2L.js} +1 -1
- package/assets/{BCeSyFXflYgNP_ES.js → D1kI9nJRL1RUF3-E.js} +1 -1
- package/assets/{Bz5ioWvl-Xl3xspC.js → D1nQ_BminCM0cyH0.js} +1 -1
- package/assets/{CiKd3BnRjhac2Hik.js → D4p9Pv82ECKCOlua.js} +1 -1
- package/assets/{Iv_Zbm3pMLOK2uxf.js → D5OYqo56iGB-5gFG.js} +1 -1
- package/assets/{10d0ZbYF23zeF8_1.js → D6fQheA4qCS5CxYQ.js} +1 -1
- package/assets/{DzEJwSC-_aavYiFd.js → D990KjcBrCaAEz5k.js} +1 -1
- package/assets/{CJoWPN_DsFbaGAiE.js → DAnSdO8615XsOPNe.js} +1 -1
- package/assets/{CNE-erNKNIT7bUb1.js → DFlL4pAqxaQ_hVe1.js} +30 -30
- package/assets/{DlWRvc1pLGPCRMwi.js → DHL-ZmN5GzB4pIrM.js} +1 -1
- package/assets/{CnCtLKkz0bdXIxn2.js → DIPDNtbm8FAru-FQ.js} +79 -79
- package/assets/{BEtUOCupmeICfGE1.js → DLJH6ppG9VHjHe_z.js} +3 -3
- package/assets/{F0HGXXl9AizCAcFy.js → DNtWf9lfGjzoB9Hy.js} +1 -1
- package/assets/{CQBFUsemb94zMBo6.js → DOg_zvSkhsKmw4q1.js} +3 -3
- package/assets/{BFcxaubQp1WMeknL.js → DS9HD6_BPxzdun0X.js} +4 -4
- package/assets/{BxizypreLEtLqpIc.js → DSNaHPvgqymqpsko.js} +1 -1
- package/assets/{BwQM6Q6HHQTXznpy.js → DT_kCIZ600UsFy4t.js} +2 -2
- package/assets/{DmCRCUmmkoRNCS9J.js → DXORLAVmseFlsxkG.js} +2 -2
- package/assets/{DcjJ_zTfdh6RqmVZ.js → DXe8SG12UJoGbbWR.js} +1 -1
- package/assets/{CWuPUrDsnBxboJ02.js → D_6TeeMN5zmoQPTm.js} +108 -108
- package/assets/{CvkibaXI8SOD22pw.js → Di_C31GTbBJ_xVOK.js} +1 -1
- package/assets/{DH7Rur7rNOYzv35r.js → DnMDfty7pU96BIEJ.js} +1 -1
- package/assets/{D5nleqRNvTcmN5_9.js → DngcuWO2cSuMCMu1.js} +1 -1
- package/assets/{DMGq2icilGiyfBTM.js → DppU35gFSUPaiCQH.js} +1 -1
- package/assets/{CcB4xmoUFWBbSISF.js → DrkfG324qZRPckuC.js} +1 -1
- package/assets/{SCOKwiDu6SYiQrQ0.js → Ds6LQkRDwXsJ-CFR.js} +1 -1
- package/assets/{CYcb-DojX92VNGzd.js → DtD0J-7IetHv5o6E.js} +3 -3
- package/assets/{DmUCKxOYIBM6DX64.js → DwWcXC4pUR3U2WXU.js} +1 -1
- package/assets/{rIReGgfQ90pzLAbU.js → DwcKSqV5YEBBA8hY.js} +1 -1
- package/assets/{B74Ls4nlmyBxWanf.js → DxKZjKyewqvj46S2.js} +2 -2
- package/assets/{B-6CmVJvxPNZB9bE.js → DxTzG7VM8v4WJ6cI.js} +1 -1
- package/assets/{Bi8ct8GYvMDKHCE3.js → EkavVNuGWG95UggH.js} +5 -5
- package/assets/{DKnwIboAj_Sg9aVP.js → GZJ4AFFt8qKRADOa.js} +2 -2
- package/assets/{VL-vwx7Pyw1zqIx9.js → Gd_0grQd-3D1VPXW.js} +1 -1
- package/assets/{BOdkvYo03yZ96iZt.js → HVm22OJ1gEeY8kii.js} +1 -1
- package/assets/{DMnhlFBJ2AlVx2_t.js → LV6tvjnxRzrWaFb8.js} +1 -1
- package/assets/{Bqq5Sl5E9ytcPJ3J.js → Ln7XTzksutZHFpml.js} +1 -1
- package/assets/{gAg9rL3U8fWUDeEb.js → Se9JmvmEtu4MfXJh.js} +38 -38
- package/assets/{9rJMq-cyOmajlBEQ.js → b6GPrIkdzfTW4f2j.js} +1 -1
- package/assets/{r9WSFw3a-_a5hlPm.js → bJ-XKvDf7IkAafUI.js} +3 -7
- package/assets/{D2sRTakzE5POMnhF.js → exNO4fmccU8Aq8cE.js} +65 -65
- package/assets/gCkru9Vv-Ban4DCD.js +14 -0
- package/assets/{BDNqot_JWBuVW_pC.js → ht0UxaAlRnuYUvpx.js} +1 -1
- package/assets/{BsYVa-oRhTLH6wnH.js → iP-shs7tsDGMVvQh.js} +1 -1
- package/assets/{Byd5zSRU6LWfL2No.js → jPim6WG_KS-ZDker.js} +1 -1
- package/assets/{NZeFs1MV5h-uMZqJ.js → mrif6ZBbTbZKYaLJ.js} +1 -1
- package/assets/{BrwNVveK5LvYkoGk.js → rT5f4v0Q_61nHkff.js} +1 -1
- package/assets/{BedBCvJP064ZYuO8.js → udbHvSLquJ5xGK3R.js} +2 -2
- package/assets/{D49iRcrfnODORRNC.js → vb-L2Q2jyjjgDvJy.js} +6 -6
- package/assets/{nnqtgWxMIc_Nc-IP.js → zEyWjY3NhC8w_spQ.js} +454 -454
- package/assets/{DwOPJ5TXttTx69oF.js → zkoJXSxpRzqfbG8k.js} +134 -134
- package/index.js +204 -204
- package/lib.js +1 -1
- package/licenses/dependencies.txt +59 -59
- package/package.json +2 -2
- package/screenshot-page/assets/{Di8Yn8O-rD9idC2h.js → 1yHlU53ypZZelMPx.js} +1 -1
- package/screenshot-page/assets/{C3QIYFX-vF_1DVmi.js → A_-Jwzwmm3lkcm2f.js} +11 -11
- package/screenshot-page/assets/{Btgo0VFTT0JxuaP3.js → B-8IMo2f1yGNXOyz.js} +86 -90
- package/screenshot-page/assets/{Cfs_rQCXBMVhJgat.js → BF6igzahAW9pl35p.js} +1 -1
- package/screenshot-page/assets/{C1lrvl0Ad1-NjWKG.js → BU5vg917ZnXC04e-.js} +2 -2
- package/screenshot-page/assets/{CaiPDssAQqXac5AG.js → BWDqL5_mwspr6CjI.js} +1 -1
- package/screenshot-page/assets/BX9VkTqZoroo08EG.js +13 -0
- package/screenshot-page/assets/BdDouZl3VrM4yBP5.js +2 -0
- package/screenshot-page/assets/{D1TqM0Bt65K6svMS.js → BqlVqRKpsFGl-elI.js} +23 -23
- package/screenshot-page/assets/{DNoZea7QMO9zB6D5.js → BuzI4z8RJGOw8BZD.js} +1 -1
- package/screenshot-page/assets/{DqXO_Zw1Cp7rAQ04.js → C7mXat-6esc1AmRD.js} +2 -2
- package/screenshot-page/assets/{D6WTzLygjgK85siu.js → CFl15-2FAF9f3V7L.js} +2 -2
- package/screenshot-page/assets/{C0F9BL11dkgzjp7Y.js → CJmdRzGWq0FZMrp5.js} +1 -1
- package/screenshot-page/assets/{CNFMt4XhKy4tlsUn.js → CLcTX_nmvaVPsxDl.js} +1 -1
- package/screenshot-page/assets/{BMf827t1Ul65MHd5.js → CQukCzhuewMuFOlO.js} +1 -1
- package/screenshot-page/assets/CZq2dMHs2MHHyyBl.js +1 -0
- package/screenshot-page/assets/CaTGa2NvuuE3qJAV.js +1 -0
- package/screenshot-page/assets/{F6yLCIlSWZ1lAUEp.js → Cb8ORg9ENgscK6yl.js} +2 -2
- package/screenshot-page/assets/{CM9cBiCjJIY64PWg.js → Chq6rvtA5qZAwYG4.js} +1 -1
- package/screenshot-page/assets/ClWDZixRy4DFZdI5.js +1 -0
- package/screenshot-page/assets/CmNlzN3DCl87wNU2.js +1 -0
- package/screenshot-page/assets/CoPUxkU9zZy0dXti.js +2 -0
- package/screenshot-page/assets/{Csjis_Fk8q4mSqdp.js → Cpwg3bWAqBBcgBmv.js} +2 -2
- package/screenshot-page/assets/{BwF-LAYFu91KqvJ8.js → CqogMOf7MzkOk7as.js} +2 -2
- package/screenshot-page/assets/{CpZHZoz3xpJMDWI0.js → CrUIo7hXByCWY7in.js} +1 -1
- package/screenshot-page/assets/Cv-YUArreXqhafcU.js +2 -0
- package/screenshot-page/assets/{DgtqX4DiBgkepVZZ.js → Cx1kZ2u_8JFV2Q8D.js} +1 -1
- package/screenshot-page/assets/{NDzpWLUA0pbyI-Rd.js → Cx9lvo3Q1xOwYkRK.js} +4 -4
- package/screenshot-page/assets/D0nZlczIH0ULuSyL.js +3 -0
- package/screenshot-page/assets/D1ZZiOS7_HFjpZCA.js +1 -0
- package/screenshot-page/assets/D23_69pojBfIh4nV.js +5 -0
- package/screenshot-page/assets/D24UBy2L73pOCPPw.js +1 -0
- package/screenshot-page/assets/D2q4M3I5Jmxm85P2.js +1 -0
- package/screenshot-page/assets/{D5kEl0N4l6MzdmTG.js → D6LmZnV2h3Kg7G3e.js} +1 -1
- package/screenshot-page/assets/{BYQZ8o8k3-MDoNat.js → D6Yv5cc1JE7DGd6j.js} +1 -1
- package/screenshot-page/assets/DAkSmFRVds51vhiy.js +1 -0
- package/screenshot-page/assets/DMhOGCTy8V0N14gY.js +1 -0
- package/screenshot-page/assets/{Bw4kRw8JKyNRlLE2.js → DUFPgv-3CtD_sCVO.js} +1 -1
- package/screenshot-page/assets/{B7u12-Sf0HF7g4wI.js → DeGMS3crYErjsRrw.js} +1 -1
- package/screenshot-page/assets/{Bwk0ScujWaYYqx5G.js → DegZKTNqt1LRnSxY.js} +1 -1
- package/screenshot-page/assets/{5TxlmdZxlCDkawVW.js → DjVxI3p3ssmCtYky.js} +1 -1
- package/screenshot-page/assets/Dt1A-DUBfvyouz_T.js +1 -0
- package/screenshot-page/assets/{iAWaCU0XkY0ktnNk.js → DwNHMH9f_lQyn50d.js} +1 -1
- package/screenshot-page/assets/{tPEJNcr51GaPfk3O.js → DwuLl9Ua1k8m9KcK.js} +1 -1
- package/screenshot-page/assets/EY31tFQrw7iYFrr6.js +4 -0
- package/screenshot-page/assets/{C3KvRJ_eXd6xnmlO.js → MzJpKWgPrxR1UN-Y.js} +1 -1
- package/screenshot-page/assets/{DGB9wBuDWt0bzTNE.js → RutPv2GFWmeBiWvn.js} +1 -1
- package/screenshot-page/assets/{DeyRZ5rprDbRbuf4.js → Tj3B5At0OAN3tDza.js} +1 -1
- package/screenshot-page/assets/fQ13z3k3bntY-jfw.js +1 -0
- package/screenshot-page/assets/oO6aFwepb3DDkGYF.js +39 -0
- package/screenshot-page/assets/{t4FRkJl27a0itCt6.js → pH9rKZYDE8xrhkC4.js} +1 -1
- package/screenshot-page/assets/qFyplGXRu7IepHio.js +1 -0
- package/screenshot-page/assets/w7IQEh1FiqZA6o5y.js +42 -0
- package/screenshot-page/assets/{DtihumgXQ7ETaN0A.js → zvxBjll3jnL0-vNn.js} +2 -2
- package/screenshot-page/index.html +11 -11
- package/types/scripting-api.json +7038 -7039
- package/types/scripting.d.ts +8 -15
- package/assets/LLdkCOYvtc1-vOsy.js +0 -14
- package/screenshot-page/assets/2XWoSsrRz2kognCK.js +0 -1
- package/screenshot-page/assets/BCOjWc-VhkuVoCVf.js +0 -1
- package/screenshot-page/assets/BqQ2A9WL6mcRxbSt.js +0 -2
- package/screenshot-page/assets/ByehV0cOs5aIySS-.js +0 -13
- package/screenshot-page/assets/C6vseMcEu3To1U6k.js +0 -4
- package/screenshot-page/assets/CafJ2T5GCjkumgLh.js +0 -1
- package/screenshot-page/assets/CijzqW2bsxOQdDxl.js +0 -2
- package/screenshot-page/assets/D6CzedWHXTesD55R.js +0 -1
- package/screenshot-page/assets/D7e00cCBTtcIRmjV.js +0 -1
- package/screenshot-page/assets/DTrnAtpccj55fGg5.js +0 -1
- package/screenshot-page/assets/DZ2zDgzt-mnhg3Kd.js +0 -1
- package/screenshot-page/assets/DaVBDkeZxbXnuyGz.js +0 -42
- package/screenshot-page/assets/DgNbqKuVd-Q170VZ.js +0 -2
- package/screenshot-page/assets/DjtXY9uxB3QP6hU3.js +0 -1
- package/screenshot-page/assets/Dv-4mfeFKIoD5jaY.js +0 -3
- package/screenshot-page/assets/HZAIE0lHXXFqlb2v.js +0 -1
- package/screenshot-page/assets/Lr2MYBmoCKMLBl_6.js +0 -5
- package/screenshot-page/assets/O-S3tcMip6iXUjQF.js +0 -1
- package/screenshot-page/assets/eV_6j-vFozPgfcjz.js +0 -1
- package/screenshot-page/assets/it1wnIFQtbJ4Dm8N.js +0 -1
- package/screenshot-page/assets/mCyh2440vZi8s1uY.js +0 -39
|
@@ -1,15 +1,15 @@
|
|
|
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.19
|
|
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 { p as e, tt as t } from "./
|
|
8
|
-
import { d as n, en as s, f as r, vt as o } from "./
|
|
9
|
-
import {
|
|
10
|
-
import { $a as
|
|
11
|
-
import { a as
|
|
12
|
-
var
|
|
7
|
+
import { p as e, tt as t } from "./B7vRFm79CUJ1VvFw.js";
|
|
8
|
+
import { d as n, en as s, f as r, vt as o } from "./Cgf5GQVN-D8SlQ7A.js";
|
|
9
|
+
import { u as a } from "./bJ-XKvDf7IkAafUI.js";
|
|
10
|
+
import { $a as i, $i as l, A as d, Bi as u, E as c, Er as f, H as m, I as p, In as h, Ji as g, Li as w, Na as v, Nr as F, On as b, Sa as y, Ta as I, Wa as x, Wn as A, Wr as C, Wt as E, Yi as S, Zr as P, _a as k, d as M, di as T, ea as O, f as R, gr as N, hi as $, ii as L, jr as _, n as D, nt as V, ot as U, pn as H, ra as B, ri as j, u as z, xt as G, y as W } from "./BkhdNc3LdmcyAjwk.js";
|
|
11
|
+
import { a as q, i as K, n as J, o as Q, r as Y } from "./CjrzyKFdie6KYfsG.js";
|
|
12
|
+
var Z = [
|
|
13
13
|
"Jan",
|
|
14
14
|
"Feb",
|
|
15
15
|
"Mar",
|
|
@@ -22,7 +22,7 @@ var Y = [
|
|
|
22
22
|
"Oct",
|
|
23
23
|
"Nov",
|
|
24
24
|
"Dec"
|
|
25
|
-
],
|
|
25
|
+
], X = [
|
|
26
26
|
31,
|
|
27
27
|
29,
|
|
28
28
|
31,
|
|
@@ -52,7 +52,7 @@ var Y = [
|
|
|
52
52
|
case "months": return a.month;
|
|
53
53
|
case "days": {
|
|
54
54
|
let e = a.day;
|
|
55
|
-
for (let t = 0; t < a.month - 1; t++) e +=
|
|
55
|
+
for (let t = 0; t < a.month - 1; t++) e += X[t];
|
|
56
56
|
return e;
|
|
57
57
|
}
|
|
58
58
|
case "hours": return a.hour + 1;
|
|
@@ -61,15 +61,15 @@ var Y = [
|
|
|
61
61
|
default: return null;
|
|
62
62
|
}
|
|
63
63
|
}, te = (e, t) => {
|
|
64
|
-
const n = e.fields ?? [], s =
|
|
64
|
+
const n = e.fields ?? [], s = S(e.records, n.length);
|
|
65
65
|
if (!n.some(B)) return s;
|
|
66
|
-
const r =
|
|
66
|
+
const r = S(e.items, n.length), o = e.recordCount ?? 0, a = s.slice();
|
|
67
67
|
for (let e = 0; e < n.length; e++) {
|
|
68
|
-
const
|
|
69
|
-
if (!B(
|
|
70
|
-
const
|
|
68
|
+
const i = n[e];
|
|
69
|
+
if (!B(i)) continue;
|
|
70
|
+
const l = i.group, d = s[l.base] ?? [], u = r[l.base] ?? [], c = new Int32Array(u.length);
|
|
71
71
|
for (let e = 0; e < u.length; e++) {
|
|
72
|
-
const n =
|
|
72
|
+
const n = l.range ? ee(l.range, l.items.length, T(u[e]), t) : l.discrete?.[e] ?? null;
|
|
73
73
|
c[e] = n ?? -1;
|
|
74
74
|
}
|
|
75
75
|
const f = new Array(o);
|
|
@@ -92,17 +92,17 @@ var Y = [
|
|
|
92
92
|
e < o && (o = e), e > a && (a = e);
|
|
93
93
|
}
|
|
94
94
|
if (0 === t.length) return e;
|
|
95
|
-
const
|
|
96
|
-
s.fixedStart || (
|
|
97
|
-
const { inner:
|
|
98
|
-
const { start: n, end: s } = e, o = e.interval ?? 1, a = se(s, t),
|
|
95
|
+
const i = { ...s };
|
|
96
|
+
s.fixedStart || (i.start = o), s.fixedEnd || (i.end = "numbers" !== s.by && Number.isInteger(a) ? a + 1 : a);
|
|
97
|
+
const { inner: l, endText: d } = ((e, t) => {
|
|
98
|
+
const { start: n, end: s } = e, o = e.interval ?? 1, a = se(s, t), i = (e, t) => Array.from({ length: e }, (e, n) => t(n));
|
|
99
99
|
switch (e.by) {
|
|
100
100
|
case "numbers": {
|
|
101
101
|
const e = Math.max(1, Math.ceil(Number(((s - n) / o).toPrecision(12)))), t = Number.isInteger(Number(((s - n) / o).toPrecision(12))), r = Number.isInteger(n) && Number.isInteger(o);
|
|
102
102
|
return {
|
|
103
|
-
inner:
|
|
104
|
-
const
|
|
105
|
-
return `${ne(
|
|
103
|
+
inner: i(e, (a) => {
|
|
104
|
+
const i = n + a * o, l = a === e - 1 && t ? s : r ? i + o - 1 : i + o;
|
|
105
|
+
return `${ne(i)}-${ne(l)}`;
|
|
106
106
|
}),
|
|
107
107
|
endText: ne(t ? s : n + e * o)
|
|
108
108
|
};
|
|
@@ -110,22 +110,22 @@ var Y = [
|
|
|
110
110
|
case "days":
|
|
111
111
|
if (1 === o) {
|
|
112
112
|
const e = [];
|
|
113
|
-
return
|
|
114
|
-
for (let s = 1; s <= t; s++) e.push(`${s}-${
|
|
113
|
+
return X.forEach((t, n) => {
|
|
114
|
+
for (let s = 1; s <= t; s++) e.push(`${s}-${Z[n]}`);
|
|
115
115
|
}), {
|
|
116
116
|
inner: e,
|
|
117
117
|
endText: a
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
return {
|
|
121
|
-
inner:
|
|
121
|
+
inner: i(Math.max(1, Math.ceil((s - n) / o)), (e) => {
|
|
122
122
|
const r = n + e * o;
|
|
123
123
|
return `${se(r, t)} - ${se(Math.min(r + o - 1, s), t)}`;
|
|
124
124
|
}),
|
|
125
125
|
endText: a
|
|
126
126
|
};
|
|
127
127
|
case "months": return {
|
|
128
|
-
inner:
|
|
128
|
+
inner: Z.slice(),
|
|
129
129
|
endText: a
|
|
130
130
|
};
|
|
131
131
|
case "quarters": return {
|
|
@@ -140,26 +140,26 @@ var Y = [
|
|
|
140
140
|
case "years": {
|
|
141
141
|
const e = r(n, t)?.year ?? 0;
|
|
142
142
|
return {
|
|
143
|
-
inner:
|
|
143
|
+
inner: i((r(s, t)?.year ?? e) - e + 1, (t) => String(e + t)),
|
|
144
144
|
endText: a
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
case "hours": return {
|
|
148
|
-
inner:
|
|
148
|
+
inner: i(24, (e) => `${e % 12 == 0 ? 12 : e % 12} ${e < 12 ? "AM" : "PM"}`),
|
|
149
149
|
endText: a
|
|
150
150
|
};
|
|
151
151
|
default: return {
|
|
152
|
-
inner:
|
|
152
|
+
inner: i(60, (e) => `:${String(e).padStart(2, "0")}`),
|
|
153
153
|
endText: a
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
})(
|
|
156
|
+
})(i, n), u = "numbers" === i.by ? ne(i.start) : se(i.start, n);
|
|
157
157
|
return {
|
|
158
158
|
...e,
|
|
159
|
-
range:
|
|
159
|
+
range: i,
|
|
160
160
|
items: [
|
|
161
161
|
`<${u}`,
|
|
162
|
-
...
|
|
162
|
+
...l,
|
|
163
163
|
`>${d}`
|
|
164
164
|
]
|
|
165
165
|
};
|
|
@@ -191,68 +191,68 @@ var Y = [
|
|
|
191
191
|
n += t, s += t.length;
|
|
192
192
|
continue;
|
|
193
193
|
}
|
|
194
|
-
const a = "'" === o,
|
|
195
|
-
if (!a && !
|
|
194
|
+
const a = "'" === o, i = a ? null : /^[\p{L}_][\p{L}\p{N}_.]*/u.exec(e.slice(s))?.[0];
|
|
195
|
+
if (!a && !i) {
|
|
196
196
|
n += o, s++;
|
|
197
197
|
continue;
|
|
198
198
|
}
|
|
199
|
-
const
|
|
200
|
-
if (a || (s +=
|
|
199
|
+
const l = a ? r() : i;
|
|
200
|
+
if (a || (s += l.length), "(" !== e[s]) {
|
|
201
201
|
if ("[" === e[s]) {
|
|
202
202
|
s++;
|
|
203
203
|
let o = "";
|
|
204
204
|
for ("'" === e[s] && (o = r()); s < e.length && "]" !== e[s];) o += e[s++];
|
|
205
205
|
s++;
|
|
206
|
-
const a = t(
|
|
206
|
+
const a = t(l, o);
|
|
207
207
|
if (null === a) return null;
|
|
208
208
|
n += a;
|
|
209
209
|
continue;
|
|
210
210
|
}
|
|
211
|
-
n += t(
|
|
212
|
-
} else n +=
|
|
211
|
+
n += t(l, null) ?? (a ? `'${l.replace(/'/g, "''")}'` : l);
|
|
212
|
+
} else n += l;
|
|
213
213
|
}
|
|
214
214
|
return n;
|
|
215
215
|
}, ae = (e) => {
|
|
216
216
|
let t = "";
|
|
217
217
|
for (let n = e + 1; n > 0; n = Math.floor((n - 1) / 26)) t = String.fromCharCode(65 + (n - 1) % 26) + t;
|
|
218
218
|
return `${t}1`;
|
|
219
|
-
},
|
|
219
|
+
}, ie = (e, t) => ({
|
|
220
220
|
rowStart: 0,
|
|
221
221
|
colStart: e,
|
|
222
222
|
rowEnd: t - 1,
|
|
223
223
|
colEnd: e
|
|
224
|
-
}),
|
|
224
|
+
}), le = (e, t) => {
|
|
225
225
|
const n = [];
|
|
226
226
|
for (let s = 0; s < t; s++) n.push([s, [[0, e.map((e) => e[s] ?? null)]]]);
|
|
227
227
|
return n;
|
|
228
228
|
}, de = (e, t) => {
|
|
229
|
-
const n = t.fields ?? [], s = [], r = [], o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(),
|
|
229
|
+
const n = t.fields ?? [], s = [], r = [], o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = (e, t) => {
|
|
230
230
|
if (o.has(e)) return !0;
|
|
231
231
|
if (t.includes(e)) return !1;
|
|
232
|
-
const
|
|
232
|
+
const l = [];
|
|
233
233
|
oe(n[e].formula, (e) => {
|
|
234
|
-
const t = n.findIndex((t) =>
|
|
235
|
-
return t >= 0 &&
|
|
234
|
+
const t = n.findIndex((t) => m(t.name, e));
|
|
235
|
+
return t >= 0 && l.push(t), t >= 0 ? "" : null;
|
|
236
236
|
});
|
|
237
|
-
for (const r of
|
|
238
|
-
if (!
|
|
237
|
+
for (const r of l) if ($(n[r])) {
|
|
238
|
+
if (!i(r, [...t, e])) return !1;
|
|
239
239
|
} else s.includes(r) || s.push(r);
|
|
240
240
|
return o.set(e, r.length), a.set(e, n[e].formula), r.push({
|
|
241
241
|
field: e,
|
|
242
242
|
expression: ""
|
|
243
243
|
}), !0;
|
|
244
|
-
},
|
|
245
|
-
for (const [t, s] of (e.dataFields ?? []).entries()) if (
|
|
246
|
-
if (!
|
|
247
|
-
|
|
244
|
+
}, l = [];
|
|
245
|
+
for (const [t, s] of (e.dataFields ?? []).entries()) if ($(n[s.field])) {
|
|
246
|
+
if (!i(s.field, [])) return null;
|
|
247
|
+
l.push({
|
|
248
248
|
data: t,
|
|
249
249
|
formula: o.get(s.field)
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
const d = (e, t) => {
|
|
253
253
|
if (null !== t) return null;
|
|
254
|
-
const r = n.findIndex((t) =>
|
|
255
|
-
return r >= 0 ? ae(
|
|
254
|
+
const r = n.findIndex((t) => m(t.name, e));
|
|
255
|
+
return r >= 0 ? ae($(n[a = r]) ? s.length + o.get(a) : s.indexOf(a)) : null;
|
|
256
256
|
var a;
|
|
257
257
|
};
|
|
258
258
|
for (const e of r) {
|
|
@@ -263,7 +263,7 @@ var Y = [
|
|
|
263
263
|
return {
|
|
264
264
|
operands: s,
|
|
265
265
|
formulas: r,
|
|
266
|
-
measures:
|
|
266
|
+
measures: l
|
|
267
267
|
};
|
|
268
268
|
}, ue = /* @__PURE__ */ new Set([
|
|
269
269
|
"sum",
|
|
@@ -343,22 +343,22 @@ var Y = [
|
|
|
343
343
|
percent: 13,
|
|
344
344
|
percentDiff: 14
|
|
345
345
|
}, Ie = (e, t, n, s) => {
|
|
346
|
-
const r =
|
|
346
|
+
const r = V.peek(), o = e.fields, a = t.fields;
|
|
347
347
|
if (!r || !o || !a || o.length !== a.length) return null;
|
|
348
348
|
if (k(e)) return {
|
|
349
349
|
cells: [],
|
|
350
|
-
...
|
|
350
|
+
...H,
|
|
351
351
|
rowPageCount: 0,
|
|
352
352
|
columnPageCount: 0,
|
|
353
|
-
header:
|
|
353
|
+
header: l(e),
|
|
354
354
|
rowLines: [],
|
|
355
355
|
columnLines: [],
|
|
356
356
|
viewValues: [],
|
|
357
357
|
firstKey: null,
|
|
358
358
|
...s?.roles ? { roles: /* @__PURE__ */ new Map() } : {}
|
|
359
359
|
};
|
|
360
|
-
const
|
|
361
|
-
if (
|
|
360
|
+
const i = F(e, a), d = i ? s?.filters : null;
|
|
361
|
+
if (i && !d) return null;
|
|
362
362
|
const u = o.some((e) => e.items?.some((e) => e.calculated));
|
|
363
363
|
if (u && !d?.calculatedRecords) return null;
|
|
364
364
|
const c = de(e, t);
|
|
@@ -366,13 +366,13 @@ var Y = [
|
|
|
366
366
|
if ((e.dataFields ?? []).some((e) => void 0 === ye[e.showDataAs ?? "normal"] || void 0 === pe[e.subtotal ?? "sum"])) return null;
|
|
367
367
|
const f = xe(e, t, n, d?.calculatedRecords, c.operands);
|
|
368
368
|
if (!f) return null;
|
|
369
|
-
const { items: m, records:
|
|
369
|
+
const { items: m, records: h, values: g, n: w } = f, v = (e) => !!e && (!e.noRecords || B(e)), b = e.form ?? "compact", y = (e) => {
|
|
370
370
|
const t = [];
|
|
371
371
|
for (const n of e ?? []) {
|
|
372
372
|
if (n === ce) {
|
|
373
373
|
t.push({
|
|
374
374
|
field: n,
|
|
375
|
-
form:
|
|
375
|
+
form: b
|
|
376
376
|
});
|
|
377
377
|
continue;
|
|
378
378
|
}
|
|
@@ -387,27 +387,27 @@ var Y = [
|
|
|
387
387
|
return t;
|
|
388
388
|
}, I = y(e.rowFields), x = y(e.columnFields), A = e.pageFields ?? [];
|
|
389
389
|
if (!I || !x || A.some((e) => !v(a[e.field]))) return null;
|
|
390
|
-
const C =
|
|
391
|
-
return C.pageFields?.some((e) => !v(a[e.field])) ? null : Te(e, t, m, I, x, Se(r, C, m,
|
|
390
|
+
const C = p(e, s?.slicerFields);
|
|
391
|
+
return C.pageFields?.some((e) => !v(a[e.field])) ? null : Te(e, t, m, I, x, Se(r, C, m, h, g, I, x, w, d?.keep, d?.records, c.operands.length, d?.fieldValues, !0), n, !0 === s?.roles, "columns" === s?.cellOrder);
|
|
392
392
|
}, xe = (e, t, n, s, r = []) => {
|
|
393
|
-
const o = t.fields?.length ?? 0, a =
|
|
393
|
+
const o = t.fields?.length ?? 0, a = R(t);
|
|
394
394
|
if (!t.records) return null;
|
|
395
|
-
const
|
|
396
|
-
if (!
|
|
397
|
-
const
|
|
398
|
-
const s = !t.fields?.[e]?.noRecords, r = s ? u[e] :
|
|
399
|
-
for (let e = 0; e < c; e++)
|
|
400
|
-
for (let e = 0; e < f; e++)
|
|
401
|
-
return
|
|
395
|
+
const i = te(t, n.isDate1904());
|
|
396
|
+
if (!i) return null;
|
|
397
|
+
const l = !0 === t.fields?.some(B), d = l ? S(t.items, o) : a, u = l ? S(t.records, o) : i, c = t.recordCount ?? 0, f = s?.count ?? 0, m = c + f, p = (e, n) => {
|
|
398
|
+
const s = !t.fields?.[e]?.noRecords, r = s ? u[e] : i[e] ?? [], o = s ? d[e] : a[e], l = new Array(m);
|
|
399
|
+
for (let e = 0; e < c; e++) l[e] = T(o[r[e]]);
|
|
400
|
+
for (let e = 0; e < f; e++) l[c + e] = n?.[e] ?? null;
|
|
401
|
+
return l;
|
|
402
402
|
}, h = [...(e.dataFields ?? []).map((e, t) => p(e.field, s?.values[t])), ...r.map((e) => p(e))];
|
|
403
403
|
return {
|
|
404
404
|
items: a,
|
|
405
|
-
records: s ?
|
|
405
|
+
records: s ? i.map((e, t) => e.concat(s.ids[t] ?? [])) : i,
|
|
406
406
|
values: h,
|
|
407
407
|
n: m
|
|
408
408
|
};
|
|
409
|
-
}, Ae = async (e, t, n, s, r, o, a,
|
|
410
|
-
const d =
|
|
409
|
+
}, Ae = async (e, t, n, s, r, o, a, i, l) => {
|
|
410
|
+
const d = V.peek(), u = e.dataFields?.[r];
|
|
411
411
|
if (!d || !e.fields || !u || void 0 === pe[u.subtotal ?? "sum"]) return null;
|
|
412
412
|
const c = [e.rowFields, e.columnFields].map((e) => (e ?? []).filter((e) => e !== ce)), f = c.findIndex((e) => e.includes(s)), m = c[f];
|
|
413
413
|
if (!m) return null;
|
|
@@ -428,11 +428,11 @@ var Y = [
|
|
|
428
428
|
columnFields: [],
|
|
429
429
|
dataFields: [F],
|
|
430
430
|
rowGrandTotals: !1
|
|
431
|
-
}, y =
|
|
432
|
-
...
|
|
433
|
-
values: [
|
|
434
|
-
} :
|
|
435
|
-
if (!I || I.measures.length > 0 && !
|
|
431
|
+
}, y = i ? {
|
|
432
|
+
...i,
|
|
433
|
+
values: [i.values[r] ?? []]
|
|
434
|
+
} : i, I = de(b, t);
|
|
435
|
+
if (!I || I.measures.length > 0 && !l) return null;
|
|
436
436
|
const x = xe(b, t, n, y, I.operands);
|
|
437
437
|
if (!x) return null;
|
|
438
438
|
const { items: A, records: C, values: E, n: S } = x, P = b.rowFields.map((e) => ({
|
|
@@ -448,18 +448,18 @@ var Y = [
|
|
|
448
448
|
k[t] = (n & e ? 1 : 0) | (3 === n ? 2 : 0);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
const M = I.measures.length > 0 ? await Ee(d, I, b, A, C, E, P, [], S, o, k,
|
|
451
|
+
const M = I.measures.length > 0 ? await Ee(d, I, b, A, C, E, P, [], S, o, k, l) : void 0, T = Se(d, b, A, C, E, P, [], S, o, k, I.operands.length, M), O = (t, n) => e.fields[t].items?.[n]?.item ?? n, R = /* @__PURE__ */ new Map(), N = T.columns.length;
|
|
452
452
|
return T.rows.forEach((e, t) => {
|
|
453
453
|
if (0 !== e.kind || e.path.length !== p.length + 1) return;
|
|
454
|
-
const n = p.map((t, n) =>
|
|
455
|
-
let r =
|
|
456
|
-
r ||
|
|
454
|
+
const n = p.map((t, n) => O(t, e.path[n])).join(",");
|
|
455
|
+
let r = R.get(n);
|
|
456
|
+
r || R.set(n, r = {
|
|
457
457
|
ids: [],
|
|
458
458
|
totals: []
|
|
459
|
-
}), r.ids.push(
|
|
459
|
+
}), r.ids.push(O(s, e.path[p.length])), r.totals.push(T.values[t * N]);
|
|
460
460
|
}), {
|
|
461
461
|
outer: p,
|
|
462
|
-
groups:
|
|
462
|
+
groups: R,
|
|
463
463
|
records: C
|
|
464
464
|
};
|
|
465
465
|
}, Ce = (e, t, n) => {
|
|
@@ -473,8 +473,8 @@ var Y = [
|
|
|
473
473
|
ranks: s,
|
|
474
474
|
flags: r
|
|
475
475
|
};
|
|
476
|
-
}, Ee = async (e, t, n, s, r, o,
|
|
477
|
-
const { request: m, errors: p } = Pe(e, n, s, r, o,
|
|
476
|
+
}, Ee = async (e, t, n, s, r, o, i, l, d, u, c, f) => {
|
|
477
|
+
const { request: m, errors: p } = Pe(e, n, s, r, o, i, l, d, u, c, t.operands.length);
|
|
478
478
|
let h = 0;
|
|
479
479
|
const g = [];
|
|
480
480
|
try {
|
|
@@ -485,7 +485,7 @@ var Y = [
|
|
|
485
485
|
t.operands.forEach((t, n) => {
|
|
486
486
|
const o = s.values(r + n);
|
|
487
487
|
try {
|
|
488
|
-
const t =
|
|
488
|
+
const t = K(e.wasm_memory().buffer, o, p), n = new Array(h);
|
|
489
489
|
for (let e = 0; e < h; e++) n[e] = t(e);
|
|
490
490
|
g.push(n);
|
|
491
491
|
} finally {
|
|
@@ -504,32 +504,32 @@ var Y = [
|
|
|
504
504
|
for (let s = 0; s < n; s++) t[s] = e[s] ?? 0;
|
|
505
505
|
return t[n] = 0, t;
|
|
506
506
|
}), a = await s.evaluateBatch({
|
|
507
|
-
values:
|
|
507
|
+
values: le(o, r),
|
|
508
508
|
formulas: e.formulas.map(({ expression: e }, n) => ({
|
|
509
509
|
expression: e,
|
|
510
|
-
coords:
|
|
510
|
+
coords: ie(t.length + n, r)
|
|
511
511
|
}))
|
|
512
|
-
}),
|
|
512
|
+
}), i = /* @__PURE__ */ new Map();
|
|
513
513
|
for (const { data: t, formula: n } of e.measures) {
|
|
514
514
|
const e = new Array(r);
|
|
515
515
|
for (let t = 0; t < r; t++) e[t] = a[n].getValueAt(t, 0) ?? 0;
|
|
516
|
-
|
|
516
|
+
i.set(t, e);
|
|
517
517
|
}
|
|
518
|
-
return
|
|
518
|
+
return i;
|
|
519
519
|
})(t, g, h, f);
|
|
520
|
-
}, Se = (e, t, n, s, r, o,
|
|
521
|
-
const { request: p, errors: h } = Pe(e, t, n, s, r, o,
|
|
520
|
+
}, Se = (e, t, n, s, r, o, i, l, d, u, c = 0, f, m = !1) => {
|
|
521
|
+
const { request: p, errors: h } = Pe(e, t, n, s, r, o, i, l, d, u, c, f, m), g = h.codeOf(a.BuiltIn.NA), w = h.codeOf(a.BuiltIn.Null), v = p.lay_out(0, g, w);
|
|
522
522
|
try {
|
|
523
523
|
const n = ke(v.row_lines(), v.row_stride()), s = ke(v.column_lines(), v.column_stride()), r = v.states(), a = v.values();
|
|
524
524
|
try {
|
|
525
|
-
const
|
|
526
|
-
for (let e = 0; e < r.length; e++) d[e] = 0 === r[e] ?
|
|
525
|
+
const l = K(e.wasm_memory().buffer, a, h), d = new Array(r.length);
|
|
526
|
+
for (let e = 0; e < r.length; e++) d[e] = 0 === r[e] ? l(e) : null;
|
|
527
527
|
return {
|
|
528
528
|
rows: n,
|
|
529
529
|
columns: s,
|
|
530
530
|
states: r,
|
|
531
531
|
values: d,
|
|
532
|
-
functions: m ? Fe(t, [...o, ...
|
|
532
|
+
functions: m ? Fe(t, [...o, ...i]) : []
|
|
533
533
|
};
|
|
534
534
|
} finally {
|
|
535
535
|
a.free();
|
|
@@ -537,14 +537,14 @@ var Y = [
|
|
|
537
537
|
} finally {
|
|
538
538
|
v.free(), p.free();
|
|
539
539
|
}
|
|
540
|
-
}, Pe = (e, t, n, s, r, o, a,
|
|
541
|
-
const m = t.fields, p = new e.LayoutRequest(
|
|
540
|
+
}, Pe = (e, t, n, s, r, o, a, i, l, d, u = 0, c, f = !1) => {
|
|
541
|
+
const m = t.fields, p = new e.LayoutRequest(i), h = f ? Fe(t, [...o, ...a]) : [], g = [], w = (e, s) => {
|
|
542
542
|
for (const { field: r, form: o } of s) {
|
|
543
543
|
if (r === ce) {
|
|
544
544
|
p.add_values_slot(e, "tabular" === o);
|
|
545
545
|
continue;
|
|
546
546
|
}
|
|
547
|
-
const a = m[r],
|
|
547
|
+
const a = m[r], i = a.subtotals, l = (!i || i.includes("default") ? 1 : 0) | (!1 !== a.subtotalsOnTop ? 2 : 0) | (a.blankRowAfter ? 4 : 0) | (a.showItemsWithNoData ? 8 : 0) | ("tabular" === o ? 16 : 0), d = p.add_field(e, n[r].length, l), u = a.sort;
|
|
548
548
|
void 0 !== u?.dataField && p.set_field_sort(e, d, u.dataField, "descending" === u.order, new Uint32Array((u.scope?.items ?? []).map((e) => e.item)));
|
|
549
549
|
const c = f ? ve(a) : [];
|
|
550
550
|
if (c.length > 0) {
|
|
@@ -569,8 +569,8 @@ var Y = [
|
|
|
569
569
|
if (!n) return;
|
|
570
570
|
let s = 2, r = o.findIndex((t) => t.field === e.baseField);
|
|
571
571
|
r >= 0 ? s = 0 : (r = a.findIndex((t) => t.field === e.baseField), r >= 0 && (s = 1));
|
|
572
|
-
const
|
|
573
|
-
p.set_show_as(t, n, s, Math.max(r, 0),
|
|
572
|
+
const i = "previous" === e.baseItem ? 4294967294 : "next" === e.baseItem ? 4294967295 : e.baseItem ?? 0;
|
|
573
|
+
p.set_show_as(t, n, s, Math.max(r, 0), i);
|
|
574
574
|
});
|
|
575
575
|
for (let e = 0; e < u; e++) p.add_measure(b.length + e, pe.sum);
|
|
576
576
|
u > 0 && p.set_operand_measures(u);
|
|
@@ -582,17 +582,17 @@ var Y = [
|
|
|
582
582
|
}));
|
|
583
583
|
p.set_grand(!1 !== t.rowGrandTotals, !1 !== t.columnGrandTotals);
|
|
584
584
|
const I = d ? p.record_keep() : null, x = e.wasm_memory().buffer;
|
|
585
|
-
d && null !== I && new Uint8Array(x, I,
|
|
585
|
+
d && null !== I && new Uint8Array(x, I, i).set(d.subarray(0, i));
|
|
586
586
|
for (const { axis: e, slot: t, field: r } of g) {
|
|
587
587
|
const o = n[r].length;
|
|
588
|
-
new Uint32Array(x, p.field_ids(e, t),
|
|
589
|
-
const { ranks: a, flags: d } = Ce(m[r], o,
|
|
588
|
+
new Uint32Array(x, p.field_ids(e, t), i).set(s[r].slice(0, i));
|
|
589
|
+
const { ranks: a, flags: d } = Ce(m[r], o, l?.get(r));
|
|
590
590
|
new Uint32Array(x, p.field_ranks(e, t), o).set(a), new Uint8Array(x, p.field_flags(e, t), o).set(d);
|
|
591
591
|
}
|
|
592
592
|
for (const { page: e, index: t } of v) {
|
|
593
593
|
const r = n[e.field].length;
|
|
594
|
-
new Uint32Array(x, p.page_ids(t),
|
|
595
|
-
const { ranks: o, flags: a } = Ce(m[e.field], r), d = new Uint8Array(x, p.page_keep(t), r), u = void 0 !== e.item ? m[e.field].items?.[e.item]?.item : void 0, c = e.slicer ?
|
|
594
|
+
new Uint32Array(x, p.page_ids(t), i).set(s[e.field].slice(0, i));
|
|
595
|
+
const { ranks: o, flags: a } = Ce(m[e.field], r), d = new Uint8Array(x, p.page_keep(t), r), u = void 0 !== e.item ? m[e.field].items?.[e.item]?.item : void 0, c = e.slicer ? l?.get(e.field) : void 0;
|
|
596
596
|
for (let t = 0; t < r; t++) {
|
|
597
597
|
const n = void 0 !== u ? t === u : !(o[t] === fe && m[e.field].items || 1 & a[t]);
|
|
598
598
|
d[t] = !n || c && 0 === c[t] ? 0 : 1;
|
|
@@ -601,14 +601,14 @@ var Y = [
|
|
|
601
601
|
const A = new J();
|
|
602
602
|
F.forEach((e, t) => {
|
|
603
603
|
const n = {
|
|
604
|
-
doubles: new Float64Array(x, e,
|
|
605
|
-
ints: new Int32Array(x, e, 2 *
|
|
606
|
-
types: new Uint8Array(x, e + 8 *
|
|
604
|
+
doubles: new Float64Array(x, e, i),
|
|
605
|
+
ints: new Int32Array(x, e, 2 * i),
|
|
606
|
+
types: new Uint8Array(x, e + 8 * i, i)
|
|
607
607
|
}, s = {
|
|
608
608
|
ok: !0,
|
|
609
609
|
numeric: !0
|
|
610
610
|
}, o = r[t];
|
|
611
|
-
for (let e = 0; e <
|
|
611
|
+
for (let e = 0; e < i; e++) Y(n, e, o[e], A, s);
|
|
612
612
|
});
|
|
613
613
|
for (const { column: e, ptr: t } of y) {
|
|
614
614
|
const n = e.length, s = {
|
|
@@ -619,7 +619,7 @@ var Y = [
|
|
|
619
619
|
ok: !0,
|
|
620
620
|
numeric: !0
|
|
621
621
|
};
|
|
622
|
-
for (let t = 0; t < n; t++)
|
|
622
|
+
for (let t = 0; t < n; t++) Y(s, t, e[t], A, r);
|
|
623
623
|
}
|
|
624
624
|
return {
|
|
625
625
|
request: p,
|
|
@@ -649,50 +649,50 @@ var Y = [
|
|
|
649
649
|
} else s.type = 1 === e.kind ? null !== e.function ? t[e.function] : "default" : 2 === e.kind ? "grand" : "blank", s.items = 2 === e.kind ? [0] : e.path.slice();
|
|
650
650
|
return null !== e.data && e.data > 0 && (s.dataField = e.data), s;
|
|
651
651
|
});
|
|
652
|
-
}, Te = (e, t, n, r, o,
|
|
653
|
-
const
|
|
652
|
+
}, Te = (e, t, n, r, o, i, d, u, c) => {
|
|
653
|
+
const m = e.fields, p = t.fields, h = e.dataFields ?? [], w = (t) => t === ce ? e.valuesCaption ?? "Values" : m[t].name ?? p[t].name, v = (e, t) => {
|
|
654
654
|
if (e === ce) return h[t]?.name ?? "";
|
|
655
|
-
const s =
|
|
655
|
+
const s = m[e].items?.[t];
|
|
656
656
|
if (void 0 !== s?.name) return s.name;
|
|
657
657
|
const r = T(n[e][s?.item ?? t]);
|
|
658
|
-
return null === r ?
|
|
658
|
+
return null === r ? P : r;
|
|
659
659
|
}, F = (e, t) => {
|
|
660
660
|
const n = v(e, t);
|
|
661
661
|
if ("number" == typeof n) {
|
|
662
|
-
const r =
|
|
663
|
-
return s(d, o ?
|
|
662
|
+
const r = m[e].items?.[t]?.item ?? t, o = void 0 === (m[e].numberFormat ?? p[e].numberFormat) && C(p[e], r);
|
|
663
|
+
return s(d, o ? L(x(p[e], r), d) : ((e) => L(m[e].numberFormat ?? p[e].numberFormat, d))(e), n);
|
|
664
664
|
}
|
|
665
665
|
return a.isError(n) ? n.getLabel() : "boolean" == typeof n ? n ? "TRUE" : "FALSE" : String(n);
|
|
666
666
|
}, b = (e) => {
|
|
667
667
|
if (void 0 !== e.item) return v(e.field, e.item);
|
|
668
|
-
const t =
|
|
668
|
+
const t = m[e.field].items ?? [];
|
|
669
669
|
if (!t.some((e) => e.hidden)) return "(All)";
|
|
670
|
-
const n = t.flatMap((e, t) =>
|
|
670
|
+
const n = t.flatMap((e, t) => f(e) && !e.hidden ? [t] : []);
|
|
671
671
|
return 1 === n.length ? v(e.field, n[0]) : "(Multiple Items)";
|
|
672
|
-
}, I = e.grandTotalCaption ?? "Grand Total",
|
|
672
|
+
}, I = e.grandTotalCaption ?? "Grand Total", A = u ? /* @__PURE__ */ new Map() : null, E = (e, t) => e === ce ? {
|
|
673
673
|
kind: "dataCaption",
|
|
674
674
|
data: t
|
|
675
675
|
} : {
|
|
676
676
|
kind: "item",
|
|
677
677
|
field: e,
|
|
678
678
|
rank: t
|
|
679
|
-
},
|
|
679
|
+
}, S = (e) => e === ce ? null : {
|
|
680
680
|
kind: "fieldCaption",
|
|
681
681
|
field: e
|
|
682
|
-
}, k = (e, t) => 2 === e.kind && t === I ? { kind: "grandTotal" } : null, M = 0 === r.length && 0 === o.length && 0 === h.length,
|
|
682
|
+
}, k = (e, t) => 2 === e.kind && t === I ? { kind: "grandTotal" } : null, M = 0 === r.length && 0 === o.length && 0 === h.length, O = M ? {
|
|
683
683
|
firstHeaderRow: 0,
|
|
684
684
|
firstDataRow: 0,
|
|
685
685
|
firstDataCol: 0
|
|
686
|
-
} :
|
|
686
|
+
} : l(e), R = M ? [] : Me(i.rows, i.functions), N = M ? [] : Me(i.columns, i.functions), $ = y({
|
|
687
687
|
...e,
|
|
688
|
-
header:
|
|
689
|
-
rowLines:
|
|
690
|
-
columnLines:
|
|
691
|
-
}),
|
|
688
|
+
header: O,
|
|
689
|
+
rowLines: R,
|
|
690
|
+
columnLines: N
|
|
691
|
+
}), _ = i.columns.length, V = (e) => "row" === e ? r : o, U = (t) => {
|
|
692
692
|
switch (t.kind) {
|
|
693
693
|
case "pageCaption": {
|
|
694
694
|
const n = e.pageFields[t.page].field;
|
|
695
|
-
return [
|
|
695
|
+
return [w(n), {
|
|
696
696
|
kind: "fieldCaption",
|
|
697
697
|
field: n
|
|
698
698
|
}];
|
|
@@ -711,30 +711,30 @@ var Y = [
|
|
|
711
711
|
case "rowHeader": return [r.every((e) => e.field === ce) ? e.valuesCaption ?? "Values" : e.rowHeaderCaption ?? "Row Labels", { kind: "rowHeader" }];
|
|
712
712
|
case "columnHeader": return [e.columnHeaderCaption ?? "Column Labels", { kind: "columnHeader" }];
|
|
713
713
|
case "fieldCaption": {
|
|
714
|
-
const e =
|
|
715
|
-
return [
|
|
714
|
+
const e = V(t.axis)[t.level].field;
|
|
715
|
+
return [w(e), S(e)];
|
|
716
716
|
}
|
|
717
717
|
case "label": {
|
|
718
|
-
const e =
|
|
718
|
+
const e = V(t.axis)[t.level].field, n = t.line.path[t.level];
|
|
719
719
|
return [v(e, n), E(e, n)];
|
|
720
720
|
}
|
|
721
721
|
case "total": {
|
|
722
|
-
const e = ("row" === t.axis ?
|
|
722
|
+
const e = ("row" === t.axis ? i.rows : i.columns)[t.line.index], n = ((e, t) => {
|
|
723
723
|
const n = e.findIndex((e) => e.field === ce) >= t.path.length && null !== t.data, s = n ? h[t.data]?.name ?? "" : "";
|
|
724
724
|
if (2 === t.kind) return n ? `Total ${s}` : I;
|
|
725
725
|
const r = t.path.length - 1, o = e[r].field, a = F(o, t.path[r]);
|
|
726
726
|
if (null !== t.function) {
|
|
727
|
-
const e = we[
|
|
728
|
-
return (n || t.across) && null !== t.data ? `${a} ${e} of ${
|
|
727
|
+
const e = we[i.functions[t.function]];
|
|
728
|
+
return (n || t.across) && null !== t.data ? `${a} ${e} of ${w(h[t.data].field)}` : `${a} ${e}`;
|
|
729
729
|
}
|
|
730
|
-
return
|
|
731
|
-
})(
|
|
730
|
+
return m[o]?.subtotalCaption ?? (n ? `${a} ${s}` : `${a} Total`);
|
|
731
|
+
})(V(t.axis), e);
|
|
732
732
|
return [n, k(e, n)];
|
|
733
733
|
}
|
|
734
734
|
case "value": {
|
|
735
|
-
const n = t.row.index *
|
|
735
|
+
const n = t.row.index * _ + t.column.index, s = i.states[n];
|
|
736
736
|
let r = null;
|
|
737
|
-
return 0 === s ? (r =
|
|
737
|
+
return 0 === s ? (r = i.values[n], e.showError && a.isError(r) && (r = e.errorCaption ?? "")) : 1 === s && (r = !1 === e.showEmpty ? 0 : ((e) => {
|
|
738
738
|
if (void 0 === e) return null;
|
|
739
739
|
const t = e.trim();
|
|
740
740
|
if (!/^[+-]?\d*(?:\.\d*)?$/.test(t)) return e;
|
|
@@ -743,69 +743,69 @@ var Y = [
|
|
|
743
743
|
})(e.emptyCaption)), [r, null];
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
|
-
},
|
|
746
|
+
}, H = new g.Builder(), B = $.top, j = $.pages.reduce((e, t) => Math.max(e, t.column + 2), 0), G = (e, t) => {
|
|
747
747
|
const n = z($, e, t);
|
|
748
748
|
if (!n) return;
|
|
749
|
-
const [s, r] =
|
|
749
|
+
const [s, r] = U(n);
|
|
750
750
|
((e, t, n) => {
|
|
751
|
-
|
|
752
|
-
})(e -
|
|
751
|
+
A && n && A.set(e + "," + t, n);
|
|
752
|
+
})(e - B, t, r), null !== s && (c ? H.pushAt(t, e - B, s) : H.pushAt(e - B, t, s));
|
|
753
753
|
};
|
|
754
754
|
if (c) {
|
|
755
|
-
const e = Math.max(
|
|
756
|
-
for (let t = 0; t < e; t++) for (let e = 0; e < $.rows.length; e++) t < (e <
|
|
755
|
+
const e = Math.max(j, $.columns.length);
|
|
756
|
+
for (let t = 0; t < e; t++) for (let e = 0; e < $.rows.length; e++) t < (e < B ? j : $.columns.length) && G(e, t);
|
|
757
757
|
} else for (let e = 0; e < $.rows.length; e++) {
|
|
758
|
-
const t = e <
|
|
758
|
+
const t = e < B ? j : $.columns.length;
|
|
759
759
|
for (let n = 0; n < t; n++) G(e, n);
|
|
760
760
|
}
|
|
761
761
|
if (M) {
|
|
762
762
|
const t = D(e);
|
|
763
763
|
return {
|
|
764
|
-
cells:
|
|
764
|
+
cells: H.build()?.tuples ?? [],
|
|
765
765
|
rows: 1,
|
|
766
766
|
columns: 1,
|
|
767
767
|
rowPageCount: t.rows,
|
|
768
768
|
columnPageCount: t.columns,
|
|
769
|
-
header:
|
|
769
|
+
header: O,
|
|
770
770
|
rowLines: [],
|
|
771
771
|
columnLines: [],
|
|
772
772
|
viewValues: [],
|
|
773
773
|
firstKey: null,
|
|
774
|
-
...
|
|
774
|
+
...A ? { roles: A } : {}
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
const
|
|
777
|
+
const W = (e, t) => {
|
|
778
778
|
const n = [];
|
|
779
779
|
return e.forEach((e, s) => {
|
|
780
780
|
e.field !== ce && n.push(s < t.path.length ? t.path[s] : -1);
|
|
781
781
|
}), n;
|
|
782
|
-
},
|
|
783
|
-
|
|
784
|
-
3 === t.kind ||
|
|
785
|
-
const o =
|
|
786
|
-
if (3 === s.kind ||
|
|
787
|
-
let
|
|
788
|
-
e.showError && a.isError(
|
|
782
|
+
}, K = (e, t) => q(e.data ?? t.data ?? 0, [...W(r, e), ...W(o, t)]), [J] = i.rows, [Q] = i.columns, Y = J && Q && 3 !== J.kind && 3 !== Q.kind ? K(J, Q) : null, Z = [], X = (e) => 1 === e.kind && null !== e.function;
|
|
783
|
+
i.rows.forEach((t, n) => {
|
|
784
|
+
3 === t.kind || X(t) || (W(r, t), i.columns.forEach((s, r) => {
|
|
785
|
+
const o = i.states[n * _ + r];
|
|
786
|
+
if (3 === s.kind || X(s) || 0 !== o && 1 !== o) return;
|
|
787
|
+
let l = 0 === o ? i.values[n * _ + r] : 0;
|
|
788
|
+
e.showError && a.isError(l) && (l = e.errorCaption || 0), Z.push([K(t, s), l]);
|
|
789
789
|
}));
|
|
790
790
|
});
|
|
791
791
|
const ee = D(e);
|
|
792
792
|
return {
|
|
793
|
-
cells:
|
|
794
|
-
rows: $.rows.length -
|
|
793
|
+
cells: H.build()?.tuples ?? [],
|
|
794
|
+
rows: $.rows.length - B,
|
|
795
795
|
columns: $.columns.length,
|
|
796
796
|
rowPageCount: ee.rows,
|
|
797
797
|
columnPageCount: ee.columns,
|
|
798
|
-
header:
|
|
799
|
-
rowLines:
|
|
800
|
-
columnLines:
|
|
801
|
-
viewValues:
|
|
802
|
-
firstKey:
|
|
803
|
-
...
|
|
798
|
+
header: O,
|
|
799
|
+
rowLines: R,
|
|
800
|
+
columnLines: N,
|
|
801
|
+
viewValues: Z,
|
|
802
|
+
firstKey: Y,
|
|
803
|
+
...A ? { roles: A } : {}
|
|
804
804
|
};
|
|
805
|
-
},
|
|
805
|
+
}, Oe = (e, t, n, r, o = !1, i, l) => {
|
|
806
806
|
const d = Ie(e, t, r, {
|
|
807
|
-
filters:
|
|
808
|
-
slicerFields:
|
|
807
|
+
filters: i,
|
|
808
|
+
slicerFields: l
|
|
809
809
|
});
|
|
810
810
|
if (!d) return null;
|
|
811
811
|
const u = d.rowPageCount > 0 ? d.rowPageCount + 1 : 0, c = d.rowPageCount > 0 ? 3 * d.columnPageCount - 1 : 0, { rowStart: f, colStart: m } = n;
|
|
@@ -815,11 +815,11 @@ var Y = [
|
|
|
815
815
|
colStart: m,
|
|
816
816
|
rowEnd: f + d.rows - 1,
|
|
817
817
|
colEnd: m + Math.max(d.columns, c) - 1
|
|
818
|
-
}, h = e.fields, g = t.fields, w =
|
|
819
|
-
const n = h[e], o = n.numberFormat ?? g[e].numberFormat,
|
|
820
|
-
const n = T(d[t.item]), u =
|
|
818
|
+
}, h = e.fields, g = t.fields, w = R(t), v = (e, t) => {
|
|
819
|
+
const n = h[e], o = n.numberFormat ?? g[e].numberFormat, i = L(o, r), l = B(g[e]), d = w[e], u = (n.items ?? []).filter((e) => void 0 !== e.item && void 0 === e.type), c = u.length > 0 ? u : d.map((e, t) => ({ item: t })), f = c.map((t) => {
|
|
820
|
+
const n = T(d[t.item]), u = C(g[e], t.item), c = null === n ? "(blank)" : "number" == typeof n ? s(r, u ? (f = t.item, void 0 === o ? L(x(g[e], f), r) : i) : i, n) : a.isError(n) ? n.getLabel() : "boolean" == typeof n ? n ? "TRUE" : "FALSE" : String(n);
|
|
821
821
|
var f;
|
|
822
|
-
const m =
|
|
822
|
+
const m = l && u ? c : n;
|
|
823
823
|
return void 0 !== t.name ? {
|
|
824
824
|
value: m,
|
|
825
825
|
text: c,
|
|
@@ -865,85 +865,85 @@ var Y = [
|
|
|
865
865
|
columns: d.columns
|
|
866
866
|
}
|
|
867
867
|
};
|
|
868
|
-
},
|
|
869
|
-
const o = /* @__PURE__ */ new Map(),
|
|
870
|
-
if (0 ===
|
|
871
|
-
const u =
|
|
872
|
-
for (const s of
|
|
873
|
-
const a = s.field,
|
|
874
|
-
if (!
|
|
875
|
-
const
|
|
876
|
-
for (let e = 0; e <
|
|
868
|
+
}, Re = async (e, t, n, r) => {
|
|
869
|
+
const o = /* @__PURE__ */ new Map(), i = (e.filters ?? []).filter((t) => j(t) || e.rowFields?.includes(t.field) || e.columnFields?.includes(t.field)), l = e.fields?.some((e) => e.items?.some((e) => e.calculated)), d = e.dataFields?.some((e) => $(t.fields?.[e.field]));
|
|
870
|
+
if (0 === i.length && !l && !d) return { keep: o };
|
|
871
|
+
const u = R(t);
|
|
872
|
+
for (const s of i.filter(j)) {
|
|
873
|
+
const a = s.field, i = u[a];
|
|
874
|
+
if (!i) continue;
|
|
875
|
+
const l = O(s.condition) ? Le(e, t, i, a, n) : null, d = new Array(i.length);
|
|
876
|
+
for (let e = 0; e < i.length; e++) d[e] = l ? l[e] : T(i[e]);
|
|
877
877
|
const c = await $e(s.condition, d, n, r), f = o.get(a);
|
|
878
878
|
if (f) for (let e = 0; e < c.length; e++) f[e] &= c[e];
|
|
879
879
|
else o.set(a, c);
|
|
880
880
|
}
|
|
881
|
-
const c =
|
|
882
|
-
const
|
|
883
|
-
if (1 !== d.length || u.some((e) =>
|
|
884
|
-
const c = d[0], f =
|
|
885
|
-
if (!
|
|
886
|
-
const
|
|
881
|
+
const c = l && r ? await (async (e, t, n, r, o) => {
|
|
882
|
+
const i = t.fields ?? [], l = e.fields ?? [], d = i.flatMap((e, t) => e.calculatedItems?.length ? [t] : []), u = e.dataFields ?? [];
|
|
883
|
+
if (1 !== d.length || u.some((e) => $(i[e.field]) || !ue.has(e.subtotal ?? "sum"))) return null;
|
|
884
|
+
const c = d[0], f = i[c].calculatedItems, p = te(t, n.isDate1904());
|
|
885
|
+
if (!p) return null;
|
|
886
|
+
const h = R(t), g = R({
|
|
887
887
|
...t,
|
|
888
|
-
fields:
|
|
888
|
+
fields: i.map(({ group: e, ...t }) => t)
|
|
889
889
|
}), w = (e.rowFields ?? []).filter((e) => e >= 0), v = (e.columnFields ?? []).filter((e) => e >= 0), F = w.includes(c) ? w : v.includes(c) ? v : null;
|
|
890
890
|
if (!F) return null;
|
|
891
|
-
const b = F.slice(0, F.indexOf(c)), y = [...F.slice(F.indexOf(c) + 1), ...F === w ? v : w], I = [...b, ...y], x = t.recordCount ?? 0,
|
|
892
|
-
const n =
|
|
891
|
+
const b = F.slice(0, F.indexOf(c)), y = [...F.slice(F.indexOf(c) + 1), ...F === w ? v : w], I = [...b, ...y], x = t.recordCount ?? 0, A = (e, t) => {
|
|
892
|
+
const n = l[e]?.items, s = n?.find((e) => e.item === t && void 0 === e.type);
|
|
893
893
|
return !(n && (!s || s.hidden) || o?.get(e) && 0 === o.get(e)[t]);
|
|
894
894
|
}, E = (e, t) => {
|
|
895
|
-
const n =
|
|
895
|
+
const n = l[e.field]?.items;
|
|
896
896
|
if (void 0 !== e.item) return n?.[e.item]?.item === t;
|
|
897
897
|
const s = n?.find((e) => e.item === t && void 0 === e.type);
|
|
898
898
|
return !n || !!s && !s.hidden;
|
|
899
|
-
},
|
|
899
|
+
}, S = e.pageFields ?? [], k = L(i[c].numberFormat ?? 14, n), M = (e) => h[c].findIndex((t, r) => {
|
|
900
900
|
const o = T(t);
|
|
901
|
-
return "number" == typeof o && (
|
|
902
|
-
}),
|
|
903
|
-
let t =
|
|
904
|
-
return void 0 === t &&
|
|
901
|
+
return "number" == typeof o && (i[c].dates || C(i[c], r)) ? m(s(n, k, o), e) : m(null === o ? P : G(o), e);
|
|
902
|
+
}), O = /* @__PURE__ */ new Map(), N = new Map(f.map((e) => [e.item, e.formula])), _ = (e) => {
|
|
903
|
+
let t = O.get(e);
|
|
904
|
+
return void 0 === t && O.set(e, t = O.size), t;
|
|
905
905
|
};
|
|
906
906
|
for (const e of f) if (null === oe(e.formula, (e, t) => {
|
|
907
|
-
if (null === t || !
|
|
907
|
+
if (null === t || !m(i[c].name, e)) return null;
|
|
908
908
|
const n = M(t);
|
|
909
|
-
return n < 0 ? null : (
|
|
909
|
+
return n < 0 ? null : (N.has(n) || _(n), "");
|
|
910
910
|
})) return null;
|
|
911
|
-
const
|
|
912
|
-
column:
|
|
911
|
+
const D = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), U = u.map((e) => ({
|
|
912
|
+
column: p[e.field],
|
|
913
913
|
values: g[e.field],
|
|
914
914
|
fold: e.subtotal ?? "sum"
|
|
915
|
-
})),
|
|
915
|
+
})), H = O.size;
|
|
916
916
|
for (let e = 0; e < x; e++) {
|
|
917
|
-
if (!
|
|
918
|
-
if (!I.every((t) =>
|
|
917
|
+
if (!S.every((t) => E(t, p[t.field][e]))) continue;
|
|
918
|
+
if (!I.every((t) => A(t, p[t][e]))) continue;
|
|
919
919
|
let t = "";
|
|
920
|
-
for (const n of b) t +=
|
|
921
|
-
|
|
922
|
-
const n =
|
|
920
|
+
for (const n of b) t += p[n][e] + ",";
|
|
921
|
+
V.has(t) || V.set(t, e);
|
|
922
|
+
const n = O.get(p[c][e]);
|
|
923
923
|
if (void 0 === n) continue;
|
|
924
924
|
let s = t;
|
|
925
|
-
for (const t of y) s +=
|
|
926
|
-
let r =
|
|
925
|
+
for (const t of y) s += p[t][e] + ",";
|
|
926
|
+
let r = D.get(s);
|
|
927
927
|
r || (r = {
|
|
928
|
-
sums: u.map(() => new Array(
|
|
929
|
-
errors: u.map(() => new Array(
|
|
930
|
-
},
|
|
931
|
-
const { sums: o, errors:
|
|
932
|
-
|
|
928
|
+
sums: u.map(() => new Array(H).fill(0)),
|
|
929
|
+
errors: u.map(() => new Array(H).fill(void 0))
|
|
930
|
+
}, D.set(s, r));
|
|
931
|
+
const { sums: o, errors: i } = r;
|
|
932
|
+
U.forEach(({ column: t, values: s, fold: r }, l) => {
|
|
933
933
|
const d = T(s[t[e]]);
|
|
934
|
-
"sum" === r ? "number" == typeof d ? o[
|
|
934
|
+
"sum" === r ? "number" == typeof d ? o[l][n] += d : a.isError(d) && (i[l][n] ??= d) : ("countNums" === r ? "number" == typeof d : null !== d) && (o[l][n] += 1);
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
|
-
const
|
|
938
|
-
const t =
|
|
939
|
-
return t ? t.flatMap((t) => void 0 !== t.item && void 0 === t.type && !t.missing &&
|
|
937
|
+
const B = y.map((e) => {
|
|
938
|
+
const t = l[e]?.items;
|
|
939
|
+
return t ? t.flatMap((t) => void 0 !== t.item && void 0 === t.type && !t.missing && A(e, t.item) ? [t.item] : []) : h[e].map((e, t) => t);
|
|
940
940
|
});
|
|
941
|
-
if (
|
|
942
|
-
const
|
|
943
|
-
for (const [e, t] of
|
|
941
|
+
if (B.reduce((e, t) => e * t.length, V.size) > 5e5) return null;
|
|
942
|
+
const j = [];
|
|
943
|
+
for (const [e, t] of V) {
|
|
944
944
|
const n = (e, s, r) => {
|
|
945
|
-
if (e !==
|
|
946
|
-
else
|
|
945
|
+
if (e !== B.length) for (const t of B[e]) n(e + 1, [...s, t], r + t + ",");
|
|
946
|
+
else j.push({
|
|
947
947
|
exemplar: t,
|
|
948
948
|
path: s,
|
|
949
949
|
key: r
|
|
@@ -951,15 +951,15 @@ var Y = [
|
|
|
951
951
|
};
|
|
952
952
|
n(0, [], e);
|
|
953
953
|
}
|
|
954
|
-
const z =
|
|
954
|
+
const z = j.length;
|
|
955
955
|
if (0 === z) return {
|
|
956
956
|
count: 0,
|
|
957
|
-
ids:
|
|
957
|
+
ids: i.map(() => []),
|
|
958
958
|
values: u.map(() => [])
|
|
959
959
|
};
|
|
960
|
-
const
|
|
961
|
-
for (let e = 0; e < u.length; e++) for (let t = 0; t <
|
|
962
|
-
const s =
|
|
960
|
+
const W = u.length * H, q = (e, t) => e * H + t, K = (e, t) => W + e * f.length + t, J = [];
|
|
961
|
+
for (let e = 0; e < u.length; e++) for (let t = 0; t < H; t++) J.push(j.map(({ key: n }) => {
|
|
962
|
+
const s = D.get(n);
|
|
963
963
|
return s ? s.errors[e][t] ?? s.sums[e][t] : 0;
|
|
964
964
|
}));
|
|
965
965
|
const Q = [];
|
|
@@ -967,82 +967,82 @@ var Y = [
|
|
|
967
967
|
const n = oe(f[t].formula, (t, n) => {
|
|
968
968
|
if (null === n) return null;
|
|
969
969
|
const s = M(n), r = f.findIndex((e) => e.item === s);
|
|
970
|
-
return ae(r >= 0 ?
|
|
970
|
+
return ae(r >= 0 ? K(e, r) : q(e, O.get(s)));
|
|
971
971
|
});
|
|
972
972
|
if (null === n) return null;
|
|
973
973
|
Q.push({
|
|
974
974
|
expression: n,
|
|
975
|
-
coords:
|
|
975
|
+
coords: ie(K(e, t), z)
|
|
976
976
|
});
|
|
977
977
|
}
|
|
978
|
-
const
|
|
979
|
-
values:
|
|
978
|
+
const Y = await r.evaluateBatch({
|
|
979
|
+
values: le(J, z),
|
|
980
980
|
formulas: Q
|
|
981
|
-
}),
|
|
982
|
-
|
|
981
|
+
}), Z = i.map(() => []), X = u.map(() => []), ee = (e, t, n, s) => {
|
|
982
|
+
p.forEach((n, s) => {
|
|
983
983
|
const r = y.indexOf(s);
|
|
984
|
-
|
|
985
|
-
}),
|
|
984
|
+
Z[s].push(s === c ? t : r >= 0 ? e.path[r] : n[e.exemplar] ?? 0);
|
|
985
|
+
}), X.forEach((e, t) => {
|
|
986
986
|
e.push(t === n ? s : null);
|
|
987
987
|
});
|
|
988
988
|
};
|
|
989
|
-
return
|
|
989
|
+
return j.forEach((e, t) => {
|
|
990
990
|
f.forEach(({ item: n }, s) => {
|
|
991
991
|
u.forEach((r, o) => {
|
|
992
|
-
const a =
|
|
992
|
+
const a = Y[o * f.length + s].getValueAt(t, 0) ?? 0;
|
|
993
993
|
if ("sum" !== (r.subtotal ?? "sum") && "number" == typeof a) for (let t = 0; t < Math.round(a); t++) ee(e, n, o, 1);
|
|
994
994
|
else ee(e, n, o, a);
|
|
995
995
|
});
|
|
996
996
|
});
|
|
997
997
|
}), {
|
|
998
|
-
count:
|
|
999
|
-
ids:
|
|
1000
|
-
values:
|
|
998
|
+
count: Z[0]?.length ?? 0,
|
|
999
|
+
ids: Z,
|
|
1000
|
+
values: X
|
|
1001
1001
|
};
|
|
1002
|
-
})(e, t, n, r, o) : void 0, f =
|
|
1002
|
+
})(e, t, n, r, o) : void 0, f = i.filter((e) => !j(e)).map((e, t) => ({
|
|
1003
1003
|
filter: e,
|
|
1004
1004
|
index: t
|
|
1005
|
-
})).sort((e, t) => (e.filter.evalOrder ?? -1) - (t.filter.evalOrder ?? -1) || e.index - t.index),
|
|
1006
|
-
let
|
|
1005
|
+
})).sort((e, t) => (e.filter.evalOrder ?? -1) - (t.filter.evalOrder ?? -1) || e.index - t.index), p = (t.recordCount ?? 0) + (c?.count ?? 0);
|
|
1006
|
+
let h;
|
|
1007
1007
|
const g = e.rowFields ?? [];
|
|
1008
1008
|
for (const { filter: s } of f) {
|
|
1009
|
-
const a = await Ae(e, t, n, s.field, s.dataField, o,
|
|
1009
|
+
const a = await Ae(e, t, n, s.field, s.dataField, o, h, c, r);
|
|
1010
1010
|
if (!a) continue;
|
|
1011
|
-
const
|
|
1011
|
+
const i = /* @__PURE__ */ new Set();
|
|
1012
1012
|
for (const [e, t] of a.groups) {
|
|
1013
1013
|
const o = await $e(s.condition, t.totals, n, r);
|
|
1014
1014
|
t.ids.forEach((t, n) => {
|
|
1015
|
-
o[n] ||
|
|
1015
|
+
o[n] || i.add(`${e}|${t}`);
|
|
1016
1016
|
});
|
|
1017
1017
|
}
|
|
1018
|
-
if (0 ===
|
|
1019
|
-
|
|
1020
|
-
const
|
|
1021
|
-
for (let e = 0; e <
|
|
1022
|
-
if (!(
|
|
1018
|
+
if (0 === i.size) continue;
|
|
1019
|
+
h ??= new Uint8Array(p).fill(3);
|
|
1020
|
+
const l = a.outer.map((e) => a.records[e]), d = a.records[s.field], u = g.includes(s.field) ? 1 : 2;
|
|
1021
|
+
for (let e = 0; e < p; e++) {
|
|
1022
|
+
if (!(h[e] & u)) continue;
|
|
1023
1023
|
let t = "";
|
|
1024
|
-
for (let n = 0; n <
|
|
1025
|
-
|
|
1024
|
+
for (let n = 0; n < l.length; n++) t += (n > 0 ? "," : "") + l[n][e];
|
|
1025
|
+
i.has(`${t}|${d[e]}`) && (h[e] &= ~u);
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
1028
|
const w = d && r ? await (async (e, t, n, s, r, o, a) => {
|
|
1029
|
-
const
|
|
1030
|
-
if (!
|
|
1031
|
-
const d = xe(e, t, n, a,
|
|
1029
|
+
const i = V.peek(), l = de(e, t);
|
|
1030
|
+
if (!i || !l) return null;
|
|
1031
|
+
const d = xe(e, t, n, a, l.operands);
|
|
1032
1032
|
if (!d) return null;
|
|
1033
1033
|
const u = (t) => (t ?? []).map((t) => ({
|
|
1034
1034
|
field: t,
|
|
1035
1035
|
form: t === ce ? e.form ?? "compact" : e.fields?.[t]?.form ?? "compact"
|
|
1036
1036
|
}));
|
|
1037
|
-
return Ee(
|
|
1038
|
-
})(e, t, n, r, o,
|
|
1037
|
+
return Ee(i, l, e, d.items, d.records, d.values, u(e.rowFields), u(e.columnFields), d.n, r, o, s);
|
|
1038
|
+
})(e, t, n, r, o, h, c) : void 0;
|
|
1039
1039
|
return {
|
|
1040
1040
|
keep: o,
|
|
1041
|
-
...
|
|
1041
|
+
...h ? { records: h } : {},
|
|
1042
1042
|
...c ? { calculatedRecords: c } : {},
|
|
1043
1043
|
...w ? { fieldValues: w } : {}
|
|
1044
1044
|
};
|
|
1045
|
-
},
|
|
1045
|
+
}, Ne = (e, t) => {
|
|
1046
1046
|
const n = e.filters;
|
|
1047
1047
|
if (!n) return e;
|
|
1048
1048
|
let s = !1;
|
|
@@ -1060,9 +1060,9 @@ var Y = [
|
|
|
1060
1060
|
}, $e = async (e, t, n, s) => {
|
|
1061
1061
|
const r = t.length, o = new Uint8Array(r);
|
|
1062
1062
|
if (0 === r) return o;
|
|
1063
|
-
const a = new
|
|
1063
|
+
const a = new c();
|
|
1064
1064
|
for (let e = 0; e < r; e++) null !== t[e] && a.setValueAt(e, 0, t[e]);
|
|
1065
|
-
let
|
|
1065
|
+
let i = !1;
|
|
1066
1066
|
return await M({
|
|
1067
1067
|
conditions: [e],
|
|
1068
1068
|
runtime: n,
|
|
@@ -1075,28 +1075,28 @@ var Y = [
|
|
|
1075
1075
|
colEnd: 0
|
|
1076
1076
|
},
|
|
1077
1077
|
onTrue: (e) => {
|
|
1078
|
-
|
|
1078
|
+
i = !0, o[e.rowIndex] = 1;
|
|
1079
1079
|
},
|
|
1080
1080
|
onFalse: () => {
|
|
1081
|
-
|
|
1081
|
+
i = !0;
|
|
1082
1082
|
},
|
|
1083
1083
|
onBlank: (e) => {
|
|
1084
|
-
|
|
1084
|
+
i = !0;
|
|
1085
1085
|
for (let n = 0; n < r; n++) null === t[n] && e(n, 0) && (o[n] = 1);
|
|
1086
1086
|
}
|
|
1087
|
-
}),
|
|
1087
|
+
}), i || o.fill(1), o;
|
|
1088
1088
|
}, Le = (e, t, n, r, o) => {
|
|
1089
|
-
const
|
|
1090
|
-
for (const e of
|
|
1091
|
-
const d =
|
|
1089
|
+
const i = e.fields?.[r], l = /* @__PURE__ */ new Map();
|
|
1090
|
+
for (const e of i?.items ?? []) void 0 !== e.item && void 0 === e.type && void 0 !== e.name && l.set(e.item, e.name);
|
|
1091
|
+
const d = i?.numberFormat ?? t.fields?.[r]?.numberFormat, u = L(d, o), c = (e) => void 0 === d ? L(x(t.fields?.[r], e), o) : u, f = new Array(n.length);
|
|
1092
1092
|
for (let e = 0; e < n.length; e++) {
|
|
1093
|
-
const
|
|
1094
|
-
if (void 0 !==
|
|
1095
|
-
f[e] =
|
|
1093
|
+
const i = l.get(e);
|
|
1094
|
+
if (void 0 !== i) {
|
|
1095
|
+
f[e] = i;
|
|
1096
1096
|
continue;
|
|
1097
1097
|
}
|
|
1098
1098
|
const d = T(n[e]);
|
|
1099
|
-
null === d ? f[e] =
|
|
1099
|
+
null === d ? f[e] = P : "number" == typeof d ? f[e] = s(o, C(t.fields?.[r], e) ? c(e) : u, d) : "boolean" == typeof d ? f[e] = d ? "TRUE" : "FALSE" : a.isError(d) ? f[e] = d.getLabel() : f[e] = String(d);
|
|
1100
1100
|
}
|
|
1101
1101
|
return f;
|
|
1102
1102
|
}, _e = (e) => {
|
|
@@ -1107,8 +1107,8 @@ var Y = [
|
|
|
1107
1107
|
colEnd: t.colEnd
|
|
1108
1108
|
}).getValues()[0] ?? [], a = [];
|
|
1109
1109
|
for (let e = 0; e < n; e++) {
|
|
1110
|
-
const n = o[e] ?? null,
|
|
1111
|
-
let d, u, c = !1, f =
|
|
1110
|
+
const n = o[e] ?? null, i = new Q(), l = new Uint32Array(s);
|
|
1111
|
+
let d, u, c = !1, f = i.values;
|
|
1112
1112
|
if (s > 0) {
|
|
1113
1113
|
const n = r.getRange({
|
|
1114
1114
|
rowStart: t.rowStart + 1,
|
|
@@ -1116,13 +1116,13 @@ var Y = [
|
|
|
1116
1116
|
colStart: t.colStart + e,
|
|
1117
1117
|
colEnd: t.colStart + e
|
|
1118
1118
|
});
|
|
1119
|
-
|
|
1120
|
-
const o = Ue(n, t.rowStart + 1,
|
|
1119
|
+
i.fill(n.getValuesRange(), l), d = Ve(n, s);
|
|
1120
|
+
const o = Ue(n, t.rowStart + 1, l, i.values);
|
|
1121
1121
|
c = o.dates, u = o.dateIds, f = o.values;
|
|
1122
1122
|
}
|
|
1123
1123
|
a.push({
|
|
1124
1124
|
header: De(n),
|
|
1125
|
-
ids:
|
|
1125
|
+
ids: l,
|
|
1126
1126
|
values: f,
|
|
1127
1127
|
numberFormat: d,
|
|
1128
1128
|
dates: c,
|
|
@@ -1155,17 +1155,17 @@ var Y = [
|
|
|
1155
1155
|
dates: o,
|
|
1156
1156
|
values: s
|
|
1157
1157
|
};
|
|
1158
|
-
const
|
|
1158
|
+
const i = s.slice(), l = /* @__PURE__ */ new Map();
|
|
1159
1159
|
for (let e = 0; e < n.length; e++) {
|
|
1160
1160
|
const t = n[e];
|
|
1161
1161
|
if ("number" != typeof s[t] || !He(r, e)) continue;
|
|
1162
|
-
let o =
|
|
1163
|
-
void 0 === o && (o =
|
|
1162
|
+
let o = l.get(t);
|
|
1163
|
+
void 0 === o && (o = i.length, i.push(s[t]), l.set(t, o)), n[e] = o;
|
|
1164
1164
|
}
|
|
1165
1165
|
return {
|
|
1166
1166
|
dates: !1,
|
|
1167
|
-
dateIds: new Set(
|
|
1168
|
-
values:
|
|
1167
|
+
dateIds: new Set(l.values()),
|
|
1168
|
+
values: i
|
|
1169
1169
|
};
|
|
1170
1170
|
}, He = (e, t) => {
|
|
1171
1171
|
let n = 0, s = e.length - 1;
|
|
@@ -1184,8 +1184,8 @@ var Y = [
|
|
|
1184
1184
|
} : a.isError(e) ? {
|
|
1185
1185
|
t: "e",
|
|
1186
1186
|
v: e.getCode()
|
|
1187
|
-
} : e, je = (e, t) => (t && "number" == typeof e ? "date:" : "") +
|
|
1188
|
-
const r = e.fields ?? [], o =
|
|
1187
|
+
} : e, je = (e, t) => (t && "number" == typeof e ? "date:" : "") + w(T(e)), ze = (e, t, n, s = !1) => {
|
|
1188
|
+
const r = e.fields ?? [], o = S(e.items, r.length), a = /\smissingItemsLimit="0"/.test(e.rest ?? ""), i = ((e) => {
|
|
1189
1189
|
const t = /* @__PURE__ */ new Set();
|
|
1190
1190
|
return e.map((e, n) => {
|
|
1191
1191
|
const s = "" === e ? `Field${n + 1}` : e;
|
|
@@ -1193,10 +1193,10 @@ var Y = [
|
|
|
1193
1193
|
for (let e = 2; t.has(r.toLocaleLowerCase()); e++) r = `${s}${e}`;
|
|
1194
1194
|
return t.add(r.toLocaleLowerCase()), r;
|
|
1195
1195
|
});
|
|
1196
|
-
})(t.columns.map((e) => e.header)),
|
|
1196
|
+
})(t.columns.map((e) => e.header)), l = /* @__PURE__ */ new Map();
|
|
1197
1197
|
r.forEach((e, t) => {
|
|
1198
1198
|
const n = e.name.toLocaleLowerCase();
|
|
1199
|
-
e.noRecords ||
|
|
1199
|
+
e.noRecords || l.has(n) || l.set(n, t);
|
|
1200
1200
|
});
|
|
1201
1201
|
const d = t.recordCount, u = r.map(() => -1), c = r.map((e, t) => o[t].map(() => -1)), f = [], m = [], p = [], h = [], g = [], w = [], v = [], F = (e, t, n) => {
|
|
1202
1202
|
h[t] = n.items, w[t] = n.items.length, v[t] = !0, c[e] = ((e, t) => {
|
|
@@ -1207,20 +1207,20 @@ var Y = [
|
|
|
1207
1207
|
})(r[e].group.items, n.items);
|
|
1208
1208
|
};
|
|
1209
1209
|
t.columns.forEach((e, t) => {
|
|
1210
|
-
const n =
|
|
1211
|
-
void 0 !== n && (
|
|
1210
|
+
const n = l.get(i[t].toLocaleLowerCase());
|
|
1211
|
+
void 0 !== n && (l.delete(i[t].toLocaleLowerCase()), u[n] = t);
|
|
1212
1212
|
const b = new Int32Array(e.values.length).fill(-1), y = [], I = [], x = new Array(d);
|
|
1213
1213
|
for (let t = 0; t < d; t++) {
|
|
1214
1214
|
const n = e.ids[t];
|
|
1215
1215
|
let s = b[n];
|
|
1216
1216
|
s < 0 && (s = b[n] = y.length, y.push(Be(e.values[n])), I.push(e.dates || !!e.dateIds?.has(n))), x[t] = s;
|
|
1217
1217
|
}
|
|
1218
|
-
const
|
|
1218
|
+
const A = (e) => void 0 !== n && (!!r[n].dates || C(r[n], e)), E = y.length, S = void 0 !== n ? !0 === r[n].inline : y.every((e) => "number" == typeof e || "object" == typeof e && "z" === e?.t), P = [];
|
|
1219
1219
|
if (void 0 !== n && S) {
|
|
1220
1220
|
const e = /* @__PURE__ */ new Map();
|
|
1221
1221
|
for (let t = 0; t < E; t++) e.set(je(y[t], I[t]), t);
|
|
1222
1222
|
o[n].forEach((t, s) => {
|
|
1223
|
-
c[n][s] = e.get(je(t,
|
|
1223
|
+
c[n][s] = e.get(je(t, A(s))) ?? -1;
|
|
1224
1224
|
});
|
|
1225
1225
|
} else if (void 0 !== n) {
|
|
1226
1226
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -1228,22 +1228,22 @@ var Y = [
|
|
|
1228
1228
|
const t = new Set(r[n].calculatedItems?.map((e) => e.item));
|
|
1229
1229
|
o[n].forEach((s, r) => {
|
|
1230
1230
|
if (t.has(r)) return;
|
|
1231
|
-
const o = je(s,
|
|
1232
|
-
let
|
|
1233
|
-
void 0 !==
|
|
1231
|
+
const o = je(s, A(r));
|
|
1232
|
+
let i = e.get(o);
|
|
1233
|
+
void 0 !== i || a || A(r) || (i = y.length, y.push(s), I.push(A(r)), P.push(i), e.set(o, i)), c[n][r] = i ?? -1;
|
|
1234
1234
|
});
|
|
1235
1235
|
}
|
|
1236
|
-
const k = { name:
|
|
1236
|
+
const k = { name: i[t] };
|
|
1237
1237
|
S && (k.inline = !0), void 0 !== e.numberFormat && (k.numberFormat = e.numberFormat);
|
|
1238
1238
|
const M = [];
|
|
1239
|
-
let
|
|
1239
|
+
let O = !1;
|
|
1240
1240
|
y.forEach((e, t) => {
|
|
1241
|
-
"number" == typeof e && (I[t] ? M.push(t) :
|
|
1242
|
-
}), M.length > 0 && !
|
|
1243
|
-
const
|
|
1244
|
-
|
|
1245
|
-
const
|
|
1246
|
-
|
|
1241
|
+
"number" == typeof e && (I[t] ? M.push(t) : O = !0);
|
|
1242
|
+
}), M.length > 0 && !O ? k.dates = !0 : M.length > 0 && (k.dateItems = M), g[t] = k.dateItems ? new Set(k.dateItems) : void 0, P.length > 0 && (k.unused = P);
|
|
1243
|
+
const R = void 0 !== n ? r[n].rest : void 0;
|
|
1244
|
+
R && (k.rest = R);
|
|
1245
|
+
const N = void 0 !== n ? r[n].calculatedItems : void 0;
|
|
1246
|
+
N?.length && (k.calculatedItems = N.map(({ item: e, formula: t }) => {
|
|
1247
1247
|
const s = y.length;
|
|
1248
1248
|
return y.push(o[n][e]), c[n][e] = s, {
|
|
1249
1249
|
item: s,
|
|
@@ -1260,27 +1260,27 @@ var Y = [
|
|
|
1260
1260
|
} else $ && !B(r[n]) && (k.group = $);
|
|
1261
1261
|
}), r.forEach((e, t) => {
|
|
1262
1262
|
if (!e.noRecords) return;
|
|
1263
|
-
if (
|
|
1263
|
+
if ($(e)) return u[t] = f.length, f.push(e), h.push([]), w.push(0), void v.push(!1);
|
|
1264
1264
|
const n = e.group;
|
|
1265
1265
|
if (!n) return;
|
|
1266
1266
|
const r = u[n.base];
|
|
1267
1267
|
if (void 0 === r || r < 0) return;
|
|
1268
1268
|
const o = h[r];
|
|
1269
|
-
let a,
|
|
1269
|
+
let a, i = [];
|
|
1270
1270
|
if (n.range) a = re(n, o.slice(0, w[r]).map(T), s);
|
|
1271
1271
|
else {
|
|
1272
1272
|
const e = Ge(n, c[n.base], o, f[r]);
|
|
1273
|
-
a = e.group,
|
|
1273
|
+
a = e.group, i = e.itemMap;
|
|
1274
1274
|
}
|
|
1275
1275
|
if (!a) return;
|
|
1276
|
-
const
|
|
1277
|
-
u[t] =
|
|
1276
|
+
const l = f.length;
|
|
1277
|
+
u[t] = l, f.push({
|
|
1278
1278
|
...e,
|
|
1279
1279
|
group: {
|
|
1280
1280
|
...a,
|
|
1281
1281
|
base: r
|
|
1282
1282
|
}
|
|
1283
|
-
}), h.push(a.items), g[
|
|
1283
|
+
}), h.push(a.items), g[l] = a.dateItems ? new Set(a.dateItems) : void 0, w.push(a.items.length), v.push(!1), n.range ? F(t, l, a) : c[t] = i;
|
|
1284
1284
|
}), f.forEach((e, t) => {
|
|
1285
1285
|
const n = e.group;
|
|
1286
1286
|
if (void 0 === n?.parent) return;
|
|
@@ -1293,10 +1293,10 @@ var Y = [
|
|
|
1293
1293
|
base: t
|
|
1294
1294
|
});
|
|
1295
1295
|
});
|
|
1296
|
-
const { cacheId: b, part: y, partFormats: I, fields: x, items:
|
|
1296
|
+
const { cacheId: b, part: y, partFormats: I, fields: x, items: A, records: E, ...P } = e;
|
|
1297
1297
|
return {
|
|
1298
1298
|
model: {
|
|
1299
|
-
...
|
|
1299
|
+
...P,
|
|
1300
1300
|
source: n ?? e.source,
|
|
1301
1301
|
fields: f,
|
|
1302
1302
|
items: m,
|
|
@@ -1318,29 +1318,29 @@ var Y = [
|
|
|
1318
1318
|
const s = t?.[n] ?? -1;
|
|
1319
1319
|
s < 0 || (o[s] = e, r.add(e));
|
|
1320
1320
|
});
|
|
1321
|
-
const a = [],
|
|
1321
|
+
const a = [], i = [], l = new Set(e.dateItems), d = e.items.map((e, t) => r.has(t) ? (l.has(t) && i.push(a.length), a.push(e), a.length - 1) : -1), u = o.map((e, t) => e >= 0 ? d[e] : ((s.dates || C(s, t)) && i.push(a.length), a.push(n[t]), a.length - 1)), { dateItems: c, ...f } = e;
|
|
1322
1322
|
return {
|
|
1323
1323
|
group: {
|
|
1324
1324
|
...f,
|
|
1325
1325
|
items: a,
|
|
1326
1326
|
discrete: u,
|
|
1327
|
-
...
|
|
1327
|
+
...i.length > 0 ? { dateItems: i } : {}
|
|
1328
1328
|
},
|
|
1329
1329
|
itemMap: d
|
|
1330
1330
|
};
|
|
1331
|
-
},
|
|
1331
|
+
}, We = (e, t, n = !1, s = !1) => {
|
|
1332
1332
|
const r = (e, t) => null === e ? 5 : "number" == typeof e ? t ? 3 : 0 : "string" == typeof e ? 1 : "boolean" == typeof e ? 2 : 4, o = r(e, n), a = r(t, s);
|
|
1333
1333
|
return o !== a ? o - a : 0 === o || 3 === o ? e - t : 1 === o ? e.localeCompare(t, void 0, { sensitivity: "base" }) : 2 === o ? Number(e) - Number(t) : 4 === o ? e.getCode() - t.getCode() : 0;
|
|
1334
|
-
},
|
|
1335
|
-
const n = e.fields ?? [], s = t.newItems.length, r = (e) => e < 0 ? e : t.fields[e] ?? -1, o = (e) => e < 0 || r(e) >= 0, a = e.dataFields ?? [],
|
|
1334
|
+
}, qe = (e, t) => {
|
|
1335
|
+
const n = e.fields ?? [], s = t.newItems.length, r = (e) => e < 0 ? e : t.fields[e] ?? -1, o = (e) => e < 0 || r(e) >= 0, a = e.dataFields ?? [], i = [], l = [];
|
|
1336
1336
|
a.forEach((e) => {
|
|
1337
|
-
if (!o(e.field)) return void
|
|
1338
|
-
|
|
1337
|
+
if (!o(e.field)) return void i.push(-1);
|
|
1338
|
+
i.push(l.length);
|
|
1339
1339
|
const t = {
|
|
1340
1340
|
...e,
|
|
1341
1341
|
field: r(e.field)
|
|
1342
1342
|
};
|
|
1343
|
-
void 0 !== e.baseField && (o(e.baseField) ? t.baseField = r(e.baseField) : delete t.baseField),
|
|
1343
|
+
void 0 !== e.baseField && (o(e.baseField) ? t.baseField = r(e.baseField) : delete t.baseField), l.push(t);
|
|
1344
1344
|
});
|
|
1345
1345
|
const d = n.map(() => null), u = [];
|
|
1346
1346
|
for (let e = 0; e < s; e++) u.push({});
|
|
@@ -1349,7 +1349,7 @@ var Y = [
|
|
|
1349
1349
|
if (s < 0) return;
|
|
1350
1350
|
const o = { ...e };
|
|
1351
1351
|
if (void 0 !== e.sort?.dataField) {
|
|
1352
|
-
const t =
|
|
1352
|
+
const t = i[e.sort.dataField];
|
|
1353
1353
|
o.sort = t >= 0 ? {
|
|
1354
1354
|
...e.sort,
|
|
1355
1355
|
dataField: t
|
|
@@ -1378,27 +1378,27 @@ var Y = [
|
|
|
1378
1378
|
const c = (e) => {
|
|
1379
1379
|
if (!e) return;
|
|
1380
1380
|
let t = e.filter(o).map(r);
|
|
1381
|
-
return
|
|
1381
|
+
return l.length < 2 && (t = t.filter((e) => -2 !== e)), t.length > 0 ? t : void 0;
|
|
1382
1382
|
}, f = {
|
|
1383
1383
|
...e,
|
|
1384
1384
|
fields: u
|
|
1385
1385
|
};
|
|
1386
|
-
|
|
1387
|
-
const n =
|
|
1386
|
+
Ke(f, "rowFields", c(e.rowFields)), Ke(f, "columnFields", c(e.columnFields)), Ke(f, "dataFields", l.length > 0 ? l : void 0), a.forEach((e, t) => {
|
|
1387
|
+
const n = i[t];
|
|
1388
1388
|
if (n < 0 || void 0 === e.baseField || "number" != typeof e.baseItem) return;
|
|
1389
1389
|
const s = d[e.baseField]?.[e.baseItem];
|
|
1390
|
-
void 0 !== s && s >= 0 && (
|
|
1390
|
+
void 0 !== s && s >= 0 && (l[n].baseItem = s);
|
|
1391
1391
|
});
|
|
1392
1392
|
const m = (e.pageFields ?? []).flatMap((e) => {
|
|
1393
1393
|
if (!o(e.field)) return [];
|
|
1394
1394
|
const t = { field: r(e.field) };
|
|
1395
1395
|
if (void 0 !== e.item) {
|
|
1396
|
-
const n =
|
|
1396
|
+
const n = Ye(u[t.field].items ?? [], d[e.field]?.[e.item] ?? -1);
|
|
1397
1397
|
void 0 !== n && (t.item = n);
|
|
1398
1398
|
}
|
|
1399
1399
|
return [t];
|
|
1400
1400
|
});
|
|
1401
|
-
|
|
1401
|
+
Ke(f, "pageFields", m.length > 0 ? m : void 0);
|
|
1402
1402
|
const p = (e.filters ?? []).flatMap((e) => {
|
|
1403
1403
|
if (!o(e.field)) return [];
|
|
1404
1404
|
const t = {
|
|
@@ -1406,21 +1406,21 @@ var Y = [
|
|
|
1406
1406
|
field: r(e.field)
|
|
1407
1407
|
};
|
|
1408
1408
|
if (void 0 !== e.dataField) {
|
|
1409
|
-
const n =
|
|
1409
|
+
const n = i[e.dataField];
|
|
1410
1410
|
if (void 0 === n || n < 0) return [];
|
|
1411
1411
|
t.dataField = n;
|
|
1412
1412
|
}
|
|
1413
1413
|
return [t];
|
|
1414
1414
|
});
|
|
1415
|
-
|
|
1416
|
-
const h = (e) =>
|
|
1415
|
+
Ke(f, "filters", p.length > 0 ? p : void 0);
|
|
1416
|
+
const h = (e) => Ze(e, r, o, d, i), g = (e.formats ?? []).flatMap((e) => {
|
|
1417
1417
|
const t = h(e.area);
|
|
1418
1418
|
return t ? [{
|
|
1419
1419
|
...e,
|
|
1420
1420
|
area: t
|
|
1421
1421
|
}] : [];
|
|
1422
1422
|
});
|
|
1423
|
-
|
|
1423
|
+
Ke(f, "formats", g.length > 0 ? g : void 0);
|
|
1424
1424
|
const w = (e.conditionalFormats ?? []).flatMap((e) => {
|
|
1425
1425
|
const t = e.areas.flatMap((e) => {
|
|
1426
1426
|
const t = h(e);
|
|
@@ -1431,19 +1431,19 @@ var Y = [
|
|
|
1431
1431
|
areas: t
|
|
1432
1432
|
}] : [];
|
|
1433
1433
|
});
|
|
1434
|
-
return
|
|
1435
|
-
},
|
|
1434
|
+
return Ke(f, "conditionalFormats", w.length > 0 ? w : void 0), f;
|
|
1435
|
+
}, Ke = (e, t, n) => {
|
|
1436
1436
|
void 0 === n ? delete e[t] : e[t] = n;
|
|
1437
1437
|
}, Je = (e, t, n, s, r = !1, o) => {
|
|
1438
|
-
const a = e.items ?? [],
|
|
1438
|
+
const a = e.items ?? [], i = [], l = [], d = /* @__PURE__ */ new Set();
|
|
1439
1439
|
for (const e of a) {
|
|
1440
|
-
if (!
|
|
1441
|
-
|
|
1440
|
+
if (!f(e)) {
|
|
1441
|
+
l.push(i.length), i.push(e);
|
|
1442
1442
|
continue;
|
|
1443
1443
|
}
|
|
1444
1444
|
const n = t[e.item] ?? -1;
|
|
1445
1445
|
if (n < 0) {
|
|
1446
|
-
|
|
1446
|
+
l.push(-1);
|
|
1447
1447
|
continue;
|
|
1448
1448
|
}
|
|
1449
1449
|
d.add(n);
|
|
@@ -1451,15 +1451,15 @@ var Y = [
|
|
|
1451
1451
|
...e,
|
|
1452
1452
|
item: n
|
|
1453
1453
|
};
|
|
1454
|
-
n >= s && !e.calculated ? r.missing = !0 : delete r.missing,
|
|
1454
|
+
n >= s && !e.calculated ? r.missing = !0 : delete r.missing, l.push(i.length), i.push(r);
|
|
1455
1455
|
}
|
|
1456
1456
|
const u = [];
|
|
1457
1457
|
for (let e = 0; e < n.length; e++) d.has(e) || u.push(e);
|
|
1458
1458
|
if (r) {
|
|
1459
|
-
const t = void 0 === e.sort?.dataField && "descending" === e.sort?.order, n = !e.includeNewItemsInFilter && a.some((e) => e.hidden), s =
|
|
1459
|
+
const t = void 0 === e.sort?.dataField && "descending" === e.sort?.order, n = !e.includeNewItemsInFilter && a.some((e) => e.hidden), s = i.map((e, t) => ({
|
|
1460
1460
|
item: e,
|
|
1461
1461
|
at: t
|
|
1462
|
-
})), r = s.filter((e) => !
|
|
1462
|
+
})), r = s.filter((e) => !f(e.item)), o = [...[...s.filter((e) => f(e.item)), ...u.map((e) => ({
|
|
1463
1463
|
item: n ? {
|
|
1464
1464
|
item: e,
|
|
1465
1465
|
hidden: !0
|
|
@@ -1468,43 +1468,43 @@ var Y = [
|
|
|
1468
1468
|
}))].sort((e, n) => t ? n.item.item - e.item.item : e.item.item - n.item.item), ...r], d = new Map(o.map((e, t) => [e.at, t]));
|
|
1469
1469
|
return {
|
|
1470
1470
|
items: o.map((e) => e.item),
|
|
1471
|
-
positions:
|
|
1471
|
+
positions: l.map((e) => e < 0 ? e : d.get(e) ?? -1)
|
|
1472
1472
|
};
|
|
1473
1473
|
}
|
|
1474
1474
|
if (0 === u.length) return {
|
|
1475
|
-
items:
|
|
1476
|
-
positions:
|
|
1475
|
+
items: i,
|
|
1476
|
+
positions: l
|
|
1477
1477
|
};
|
|
1478
|
-
const
|
|
1478
|
+
const c = !e.includeNewItemsInFilter && a.some((e) => e.hidden), m = (e) => c ? {
|
|
1479
1479
|
item: e,
|
|
1480
1480
|
hidden: !0
|
|
1481
1481
|
} : { item: e };
|
|
1482
1482
|
if (e.sort && void 0 === e.sort.dataField) {
|
|
1483
|
-
const t = "descending" === e.sort.order, s = (e, t) =>
|
|
1483
|
+
const t = "descending" === e.sort.order, s = (e, t) => We(b(e, n), T(n[t]), void 0 === e.name && o?.has(e.item), o?.has(t));
|
|
1484
1484
|
for (const e of u) {
|
|
1485
|
-
const n =
|
|
1486
|
-
let r =
|
|
1487
|
-
r < 0 && (r = Qe(
|
|
1488
|
-
for (let e = 0; e <
|
|
1485
|
+
const n = m(e);
|
|
1486
|
+
let r = i.findIndex((n) => f(n) && (t ? s(n, e) < 0 : s(n, e) > 0));
|
|
1487
|
+
r < 0 && (r = Qe(i)), i.splice(r, 0, n);
|
|
1488
|
+
for (let e = 0; e < l.length; e++) l[e] >= r && l[e]++;
|
|
1489
1489
|
}
|
|
1490
1490
|
} else {
|
|
1491
|
-
const e = Qe(
|
|
1492
|
-
|
|
1493
|
-
for (let t = 0; t <
|
|
1491
|
+
const e = Qe(i);
|
|
1492
|
+
i.splice(e, 0, ...u.map(m));
|
|
1493
|
+
for (let t = 0; t < l.length; t++) l[t] >= e && (l[t] += u.length);
|
|
1494
1494
|
}
|
|
1495
1495
|
return {
|
|
1496
|
-
items:
|
|
1497
|
-
positions:
|
|
1496
|
+
items: i,
|
|
1497
|
+
positions: l
|
|
1498
1498
|
};
|
|
1499
1499
|
}, Qe = (e) => {
|
|
1500
|
-
const t = e.findIndex((e) => !
|
|
1500
|
+
const t = e.findIndex((e) => !f(e));
|
|
1501
1501
|
return t < 0 ? e.length : t;
|
|
1502
|
-
},
|
|
1502
|
+
}, Ye = (e, t) => {
|
|
1503
1503
|
if (!(t < 0)) for (let n = 0; n < e.length; n++) {
|
|
1504
1504
|
const s = (t + n) % e.length, r = e[s];
|
|
1505
|
-
if (
|
|
1505
|
+
if (f(r) && !r.missing) return s;
|
|
1506
1506
|
}
|
|
1507
|
-
},
|
|
1507
|
+
}, Ze = (e, t, n, s, r) => {
|
|
1508
1508
|
const o = { ...e };
|
|
1509
1509
|
if (void 0 !== e.field) {
|
|
1510
1510
|
if (!n(e.field)) return null;
|
|
@@ -1531,7 +1531,7 @@ var Y = [
|
|
|
1531
1531
|
o.references = a;
|
|
1532
1532
|
}
|
|
1533
1533
|
return o;
|
|
1534
|
-
},
|
|
1534
|
+
}, Xe = (e, t, n) => {
|
|
1535
1535
|
const s = e.fields ?? [], r = s[t]?.items ?? [], o = new Array(r.length);
|
|
1536
1536
|
n.forEach((e, t) => {
|
|
1537
1537
|
o[e] = t;
|
|
@@ -1545,7 +1545,7 @@ var Y = [
|
|
|
1545
1545
|
};
|
|
1546
1546
|
const a = e.sort?.scope;
|
|
1547
1547
|
if (!a?.items.some((e) => e.field === t)) return e;
|
|
1548
|
-
const
|
|
1548
|
+
const i = a.items.map((e) => e.field === t ? {
|
|
1549
1549
|
...e,
|
|
1550
1550
|
item: o[e.item] ?? e.item
|
|
1551
1551
|
} : e);
|
|
@@ -1555,7 +1555,7 @@ var Y = [
|
|
|
1555
1555
|
...e.sort,
|
|
1556
1556
|
scope: {
|
|
1557
1557
|
...a,
|
|
1558
|
-
items:
|
|
1558
|
+
items: i
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
1561
|
};
|
|
@@ -1568,7 +1568,7 @@ var Y = [
|
|
|
1568
1568
|
...e,
|
|
1569
1569
|
baseItem: o[e.baseItem] ?? e.baseItem
|
|
1570
1570
|
} : e));
|
|
1571
|
-
const
|
|
1571
|
+
const i = s.map((e, n) => n === t ? o : null), l = (e.dataFields ?? []).map((e, t) => t), d = (e) => Ze(e, (e) => e, () => !0, i, l) ?? e;
|
|
1572
1572
|
return e.formats && (a.formats = e.formats.map((e) => ({
|
|
1573
1573
|
...e,
|
|
1574
1574
|
area: d(e.area)
|
|
@@ -1577,40 +1577,40 @@ var Y = [
|
|
|
1577
1577
|
areas: e.areas.map(d)
|
|
1578
1578
|
}))), a;
|
|
1579
1579
|
}, et = (e, t, n, s) => {
|
|
1580
|
-
const r = (e.fields ?? [])[n]?.items ?? [], o =
|
|
1580
|
+
const r = (e.fields ?? [])[n]?.items ?? [], o = R(t)[n] ?? [], a = t.fields?.[n], i = void 0 !== a?.group?.range, l = (e) => void 0 === e.name && C(a, e.item), d = r.map((e, t) => ({
|
|
1581
1581
|
item: e,
|
|
1582
1582
|
at: t
|
|
1583
|
-
})), u = d.filter((e) =>
|
|
1584
|
-
u.sort((e, t) =>
|
|
1585
|
-
let
|
|
1586
|
-
const
|
|
1583
|
+
})), u = d.filter((e) => f(e.item));
|
|
1584
|
+
u.sort((e, t) => i ? e.item.item - t.item.item : We(b(e.item, o), b(t.item, o), l(e.item), l(t.item))), "descending" === s && u.reverse();
|
|
1585
|
+
let c = 0;
|
|
1586
|
+
const m = Xe(e, n, d.map((e) => f(e.item) ? u[c++] : e).map((e) => e.at));
|
|
1587
1587
|
return {
|
|
1588
|
-
...
|
|
1589
|
-
fields:
|
|
1588
|
+
...m,
|
|
1589
|
+
fields: m.fields.map((e, t) => t === n ? {
|
|
1590
1590
|
...e,
|
|
1591
1591
|
sort: { order: s }
|
|
1592
1592
|
} : e)
|
|
1593
1593
|
};
|
|
1594
1594
|
}, tt = (n, s, r) => {
|
|
1595
1595
|
const o = n.fields?.[s]?.items?.[r];
|
|
1596
|
-
if (!o || !
|
|
1596
|
+
if (!o || !f(o)) throw new t(e("error.pivotTable.changePart"));
|
|
1597
1597
|
return o;
|
|
1598
1598
|
}, nt = (n, s, r, o, a) => {
|
|
1599
|
-
const
|
|
1599
|
+
const i = tt(n, r, o), l = n.fields[r].items, d = R(s)[r] ?? [], u = (e) => {
|
|
1600
1600
|
const t = T(d[e.item]);
|
|
1601
|
-
return null === t ?
|
|
1601
|
+
return null === t ? P : G(t);
|
|
1602
1602
|
};
|
|
1603
|
-
if (
|
|
1604
|
-
const { name: c, ...
|
|
1605
|
-
...
|
|
1603
|
+
if (l.some((e, t) => t !== o && f(e) && m(e.name ?? u(e), a))) throw new t(e("error.pivotTable.itemNameExists", { name: a }));
|
|
1604
|
+
const { name: c, ...p } = i, h = a === u(i) ? p : {
|
|
1605
|
+
...i,
|
|
1606
1606
|
name: a
|
|
1607
1607
|
};
|
|
1608
|
-
if (
|
|
1608
|
+
if (h.name === i.name) return n;
|
|
1609
1609
|
const g = {
|
|
1610
1610
|
...n,
|
|
1611
1611
|
fields: n.fields.map((e, t) => t === r ? {
|
|
1612
1612
|
...e,
|
|
1613
|
-
items:
|
|
1613
|
+
items: l.map((e, t) => t === o ? h : e)
|
|
1614
1614
|
} : e)
|
|
1615
1615
|
}, w = n.fields[r].sort;
|
|
1616
1616
|
return w && void 0 === w.dataField ? et(g, s, r, w.order) : g;
|
|
@@ -1620,7 +1620,7 @@ var Y = [
|
|
|
1620
1620
|
r.splice(s, 0, n);
|
|
1621
1621
|
const o = e.fields[t].sort;
|
|
1622
1622
|
if (!o && r.every((e, t) => e === t)) return e;
|
|
1623
|
-
const a =
|
|
1623
|
+
const a = Xe(e, t, r);
|
|
1624
1624
|
return o ? {
|
|
1625
1625
|
...a,
|
|
1626
1626
|
fields: a.fields.map((e, n) => {
|
|
@@ -1630,36 +1630,36 @@ var Y = [
|
|
|
1630
1630
|
})
|
|
1631
1631
|
} : a;
|
|
1632
1632
|
}, rt = (n, s, r, o) => {
|
|
1633
|
-
const a = G(o),
|
|
1633
|
+
const a = G(o), i = n.fields, l = s.fields, d = n.dataFields ?? [], u = R(s), c = (e, t) => {
|
|
1634
1634
|
if (void 0 !== t.name) return t.name;
|
|
1635
1635
|
const n = T(u[e][t.item]);
|
|
1636
|
-
return null === n ?
|
|
1637
|
-
},
|
|
1638
|
-
if (void 0 !== r.field && a === (
|
|
1636
|
+
return null === n ? P : G(n);
|
|
1637
|
+
}, p = (r) => {
|
|
1638
|
+
if (void 0 !== r.field && a === (i[r.field].name ?? l[r.field].name)) return;
|
|
1639
1639
|
const o = void 0 === r.field ? n : {
|
|
1640
1640
|
...n,
|
|
1641
|
-
fields:
|
|
1641
|
+
fields: i.map((e, t) => t === r.field ? {
|
|
1642
1642
|
...e,
|
|
1643
1643
|
name: "\0"
|
|
1644
1644
|
} : e)
|
|
1645
1645
|
};
|
|
1646
|
-
if (
|
|
1646
|
+
if (U(o, s, a, r.data) !== a) throw new t(e("error.pivotTable.fieldNameExists"));
|
|
1647
1647
|
};
|
|
1648
1648
|
switch (r.kind) {
|
|
1649
1649
|
case "item": {
|
|
1650
1650
|
const { field: e, rank: t } = r;
|
|
1651
1651
|
tt(n, e, t);
|
|
1652
|
-
const o =
|
|
1652
|
+
const o = i[e].items.findIndex((n, s) => s !== t && f(n) && m(c(e, n), a));
|
|
1653
1653
|
return o >= 0 ? st(n, e, o, t) : nt(n, s, e, t, a);
|
|
1654
1654
|
}
|
|
1655
1655
|
case "fieldCaption": {
|
|
1656
1656
|
const { field: e } = r;
|
|
1657
|
-
return
|
|
1657
|
+
return p({ field: e }), ((e, t) => ({
|
|
1658
1658
|
...n,
|
|
1659
|
-
fields:
|
|
1659
|
+
fields: i.map((n, s) => s === e ? t(n) : n)
|
|
1660
1660
|
}))(e, (t) => {
|
|
1661
1661
|
const { name: n, ...s } = t;
|
|
1662
|
-
return a ===
|
|
1662
|
+
return a === l[e].name ? s : {
|
|
1663
1663
|
...t,
|
|
1664
1664
|
name: a
|
|
1665
1665
|
};
|
|
@@ -1667,7 +1667,7 @@ var Y = [
|
|
|
1667
1667
|
}
|
|
1668
1668
|
case "dataCaption": {
|
|
1669
1669
|
const { data: e } = r;
|
|
1670
|
-
return
|
|
1670
|
+
return p({ data: e }), {
|
|
1671
1671
|
...n,
|
|
1672
1672
|
dataFields: d.map((t, n) => n === e ? {
|
|
1673
1673
|
...t,
|
|
@@ -1689,15 +1689,15 @@ var Y = [
|
|
|
1689
1689
|
};
|
|
1690
1690
|
case "pageItem": {
|
|
1691
1691
|
const s = n.pageFields, o = s[r.page];
|
|
1692
|
-
let
|
|
1693
|
-
if (!
|
|
1694
|
-
const { item: d, ...u } = o,
|
|
1692
|
+
let l;
|
|
1693
|
+
if (!m(a, "(All)") && (l = (i[o.field].items ?? []).findIndex((e) => f(e) && m(c(o.field, e), a)), l < 0)) throw new t(e("error.pivotTable.notAnItem", { name: a }));
|
|
1694
|
+
const { item: d, ...u } = o, p = void 0 === l ? u : {
|
|
1695
1695
|
...o,
|
|
1696
|
-
item:
|
|
1696
|
+
item: l
|
|
1697
1697
|
};
|
|
1698
1698
|
return {
|
|
1699
1699
|
...n,
|
|
1700
|
-
pageFields: s.map((e, t) => t === r.page ?
|
|
1700
|
+
pageFields: s.map((e, t) => t === r.page ? p : e)
|
|
1701
1701
|
};
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
@@ -1711,13 +1711,13 @@ var Y = [
|
|
|
1711
1711
|
const { inline: s, ...r } = e;
|
|
1712
1712
|
return r;
|
|
1713
1713
|
})
|
|
1714
|
-
} : e,
|
|
1714
|
+
} : e, it = (e) => [
|
|
1715
1715
|
...e.rowFields ?? [],
|
|
1716
1716
|
...e.columnFields ?? [],
|
|
1717
1717
|
...(e.pageFields ?? []).map((e) => e.field)
|
|
1718
|
-
].filter((e) => e >= 0),
|
|
1719
|
-
const n = e.fields[t], s =
|
|
1720
|
-
B(n) || r.sort((e, t) =>
|
|
1718
|
+
].filter((e) => e >= 0), lt = (e, t) => {
|
|
1719
|
+
const n = e.fields[t], s = R(e)[t], r = s.map((e, t) => t);
|
|
1720
|
+
B(n) || r.sort((e, t) => We(T(s[e]), T(s[t]), C(n, e), C(n, t)));
|
|
1721
1721
|
const o = new Set(n.calculatedItems?.map((e) => e.item)), a = new Set(n.unused);
|
|
1722
1722
|
return [...r.map((e) => ({
|
|
1723
1723
|
item: e,
|
|
@@ -1727,11 +1727,11 @@ var Y = [
|
|
|
1727
1727
|
}, dt = (s) => {
|
|
1728
1728
|
if (!("number" == typeof s ? void 0 !== o(s) : "" !== s && n.isValidFormat(s))) throw new t(e("error.pivotTable.notANumberFormat", { name: String(s) }));
|
|
1729
1729
|
}, ut = (n, s, r, o) => {
|
|
1730
|
-
const a = o?.function ?? ((e, t) => "number" === d(e, t) ? "sum" : "count")(s.fields[r],
|
|
1731
|
-
if (!
|
|
1730
|
+
const a = o?.function ?? ((e, t) => "number" === d(e, t) ? "sum" : "count")(s.fields[r], R(s)[r]), l = E[a];
|
|
1731
|
+
if (!l) throw new t(e("error.pivotTable.notAFunction", { name: a }));
|
|
1732
1732
|
let u = o?.name;
|
|
1733
|
-
if (void 0 === u) u =
|
|
1734
|
-
else if (
|
|
1733
|
+
if (void 0 === u) u = U(n, s, `${l} of ${i(n, s, r)}`);
|
|
1734
|
+
else if (U(n, s, u) !== u) throw new t(e("error.pivotTable.fieldNameExists"));
|
|
1735
1735
|
const c = {
|
|
1736
1736
|
name: u,
|
|
1737
1737
|
field: r,
|
|
@@ -1741,27 +1741,27 @@ var Y = [
|
|
|
1741
1741
|
return "sum" !== a && (c.subtotal = a), void 0 !== o?.numberFormat && (dt(o.numberFormat), c.numberFormat = o.numberFormat), c;
|
|
1742
1742
|
}, ct = (n, s) => {
|
|
1743
1743
|
const r = n.fields ?? [], o = (n) => {
|
|
1744
|
-
const s = r.findIndex((e) =>
|
|
1744
|
+
const s = r.findIndex((e) => m(e.name, n));
|
|
1745
1745
|
if (s < 0) throw new t(e("error.pivotTable.notAField", { name: n }));
|
|
1746
1746
|
return s;
|
|
1747
|
-
}, a = /* @__PURE__ */ new Map(),
|
|
1747
|
+
}, a = /* @__PURE__ */ new Map(), i = (e, t) => {
|
|
1748
1748
|
for (const n of e ?? []) {
|
|
1749
1749
|
const e = o(n);
|
|
1750
1750
|
a.delete(e), a.set(e, t);
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
|
-
|
|
1754
|
-
const
|
|
1753
|
+
i(s?.rows, "row"), i(s?.columns, "column"), i(s?.pages, "page");
|
|
1754
|
+
const l = (e) => [...a].filter(([, t]) => t === e).map(([e]) => e), d = [];
|
|
1755
1755
|
for (const e of s?.values ?? []) {
|
|
1756
1756
|
const { field: t, ...s } = "string" == typeof e ? { field: e } : e;
|
|
1757
1757
|
d.push(ut({ dataFields: d }, n, o(t), s));
|
|
1758
1758
|
}
|
|
1759
1759
|
const u = new Set(d.map((e) => e.field)), c = s?.form && "compact" !== s.form ? s.form : void 0, f = r.map((e, t) => {
|
|
1760
1760
|
const s = {}, r = a.get(t);
|
|
1761
|
-
return r && (s.axis = r, s.items =
|
|
1762
|
-
}),
|
|
1763
|
-
d.length > 1 &&
|
|
1764
|
-
const
|
|
1761
|
+
return r && (s.axis = r, s.items = lt(n, t)), u.has(t) && (s.dataField = !0), c && (s.form = c), e.dates && void 0 !== e.numberFormat && (s.numberFormat = e.numberFormat), s;
|
|
1762
|
+
}), p = l("column");
|
|
1763
|
+
d.length > 1 && p.push(-2);
|
|
1764
|
+
const h = {
|
|
1765
1765
|
fields: f,
|
|
1766
1766
|
style: {
|
|
1767
1767
|
name: s?.style ?? "PivotStyleLight16",
|
|
@@ -1771,14 +1771,14 @@ var Y = [
|
|
|
1771
1771
|
showColumnStripes: !1,
|
|
1772
1772
|
showLastColumn: !0
|
|
1773
1773
|
}
|
|
1774
|
-
}, g =
|
|
1775
|
-
g.length > 0 && (
|
|
1776
|
-
const w =
|
|
1777
|
-
return w.length > 0 && (
|
|
1774
|
+
}, g = l("row");
|
|
1775
|
+
g.length > 0 && (h.rowFields = g), p.length > 0 && (h.columnFields = p);
|
|
1776
|
+
const w = l("page");
|
|
1777
|
+
return w.length > 0 && (h.pageFields = w.map((e) => ({ field: e }))), d.length > 0 && (h.dataFields = d), c && (h.form = c), h;
|
|
1778
1778
|
}, ft = (e, t) => t.map((t) => {
|
|
1779
1779
|
const n = t.sort?.scope;
|
|
1780
1780
|
if (!n) return t;
|
|
1781
|
-
const s = ((t.axis ===
|
|
1781
|
+
const s = ((t.axis === N.Axis.Row ? e.columnFields : t.axis === N.Axis.Column ? e.rowFields : void 0) ?? []).filter((e) => -2 !== e);
|
|
1782
1782
|
if (!n.items.every((e, t) => s[t] === e.field)) {
|
|
1783
1783
|
const { sort: e, ...n } = t;
|
|
1784
1784
|
return n;
|
|
@@ -1795,25 +1795,25 @@ var Y = [
|
|
|
1795
1795
|
}
|
|
1796
1796
|
};
|
|
1797
1797
|
}), mt = (n, s, r, o, a) => {
|
|
1798
|
-
const
|
|
1799
|
-
if (o ===
|
|
1798
|
+
const i = N.Axis, l = s.fields?.[r], d = n.fields?.[r]?.axis ?? null;
|
|
1799
|
+
if (o === i.Values) throw new t(e("error.pivotTable.valuesNotAnAxis"));
|
|
1800
1800
|
if (null === o) {
|
|
1801
1801
|
if (null === d) return n;
|
|
1802
|
-
} else if (void 0 !==
|
|
1803
|
-
const c = o ?
|
|
1802
|
+
} else if (void 0 !== l?.formula || o === i.Page && (l?.calculatedItems?.length ?? 0) > 0) throw new t(e("error.pivotTable.fieldNotPlaceable"));
|
|
1803
|
+
const c = o ? v(n, o).filter((e) => e !== r) : [];
|
|
1804
1804
|
if (void 0 !== a && (!Number.isInteger(a) || a < 1 || a > c.length + 1)) throw new t(e("error.pivotTable.fieldPosition"));
|
|
1805
1805
|
const f = (a ?? c.length + 1) - 1;
|
|
1806
|
-
if (o === d && (void 0 === a ||
|
|
1806
|
+
if (o === d && (void 0 === a || v(n, o)[f] === r)) return n;
|
|
1807
1807
|
c.splice(f, 0, r);
|
|
1808
|
-
const { rowFields: m, columnFields: p, pageFields: h, ...g } = n, w = {},
|
|
1808
|
+
const { rowFields: m, columnFields: p, pageFields: h, ...g } = n, w = {}, F = (e) => (e ?? []).filter((e) => e !== r), b = o === i.Row ? c : F(n.rowFields), y = o === i.Column ? c : F(n.columnFields), x = o === i.Page ? c.map((e) => n.pageFields?.find((t) => t.field === e) ?? { field: e }) : (n.pageFields ?? []).filter((e) => e.field !== r);
|
|
1809
1809
|
b.length > 0 && (w.rowFields = b), y.length > 0 && (w.columnFields = y), x.length > 0 && (w.pageFields = x);
|
|
1810
1810
|
let A = {
|
|
1811
1811
|
...g,
|
|
1812
1812
|
...w
|
|
1813
1813
|
};
|
|
1814
|
-
o ===
|
|
1814
|
+
o === i.Page && d !== i.Page && (A = u(A, r, () => !0));
|
|
1815
1815
|
const C = { ...n.fields?.[r] };
|
|
1816
|
-
o ? C.axis = o : delete C.axis, o && !C.items &&
|
|
1816
|
+
o ? C.axis = o : delete C.axis, o && !C.items && l && (C.items = I(lt(s, r), C.subtotals)), o && void 0 === C.numberFormat && l?.dates && void 0 !== l.numberFormat && (C.numberFormat = l.numberFormat), o === i.Page && C.items?.some((e) => e.hidden) && (C.multipleItemSelection = !0);
|
|
1817
1817
|
const E = (n.fields ?? []).map((e, t) => t === r ? C : e);
|
|
1818
1818
|
if (A = {
|
|
1819
1819
|
...A,
|
|
@@ -1888,7 +1888,7 @@ var Y = [
|
|
|
1888
1888
|
} : n;
|
|
1889
1889
|
}
|
|
1890
1890
|
return r;
|
|
1891
|
-
}), { dataFields: o, filters: a, formats:
|
|
1891
|
+
}), { dataFields: o, filters: a, formats: i, conditionalFormats: l, ...d } = e, u = {
|
|
1892
1892
|
...d,
|
|
1893
1893
|
fields: r
|
|
1894
1894
|
};
|
|
@@ -1902,7 +1902,7 @@ var Y = [
|
|
|
1902
1902
|
}];
|
|
1903
1903
|
});
|
|
1904
1904
|
c.length > 0 && (u.filters = c);
|
|
1905
|
-
const f = (e) =>
|
|
1905
|
+
const f = (e) => Ze(e, (e) => e, () => !0, [], n), m = (e.formats ?? []).flatMap((e) => {
|
|
1906
1906
|
const t = f(e.area);
|
|
1907
1907
|
return t ? [{
|
|
1908
1908
|
...e,
|
|
@@ -1920,11 +1920,11 @@ var Y = [
|
|
|
1920
1920
|
return p.length > 0 && (u.conditionalFormats = p), ((e) => {
|
|
1921
1921
|
const t = e.dataFields?.length ?? 0, n = e.rowFields?.includes(pt), s = e.columnFields?.includes(pt), { valuesPosition: r, ...o } = e;
|
|
1922
1922
|
if (t < 2 && (n || s)) {
|
|
1923
|
-
const t = n ? "rowFields" : "columnFields", s = e[t], r = s.indexOf(pt), a = s.filter((e) => e !== pt),
|
|
1923
|
+
const t = n ? "rowFields" : "columnFields", s = e[t], r = s.indexOf(pt), a = s.filter((e) => e !== pt), i = {
|
|
1924
1924
|
...o,
|
|
1925
1925
|
...r < a.length ? { valuesPosition: r } : {}
|
|
1926
1926
|
};
|
|
1927
|
-
return a.length > 0 ?
|
|
1927
|
+
return a.length > 0 ? i[t] = a : delete i[t], i;
|
|
1928
1928
|
}
|
|
1929
1929
|
if (t >= 2 && !n && !s) {
|
|
1930
1930
|
const t = e.valuesOnRows ? "rowFields" : "columnFields", n = [...e[t] ?? []];
|
|
@@ -1949,12 +1949,12 @@ var Y = [
|
|
|
1949
1949
|
if (r - 1 === s) return n;
|
|
1950
1950
|
const a = o.map((e, t) => t).filter((e) => e !== s);
|
|
1951
1951
|
a.splice(r - 1, 0, s);
|
|
1952
|
-
const
|
|
1952
|
+
const i = [];
|
|
1953
1953
|
return a.forEach((e, t) => {
|
|
1954
|
-
|
|
1955
|
-
}), It(n, a.map((e) => o[e]),
|
|
1954
|
+
i[e] = t;
|
|
1955
|
+
}), It(n, a.map((e) => o[e]), i);
|
|
1956
1956
|
}, Et = (e, t, n, s) => {
|
|
1957
|
-
const r =
|
|
1957
|
+
const r = A(e, t, n, s);
|
|
1958
1958
|
return (e.dataFields[n].subtotal ?? "sum") === s ? e : bt(e, n, (e) => {
|
|
1959
1959
|
const { subtotal: t, ...n } = e, o = {
|
|
1960
1960
|
...n,
|
|
@@ -1963,40 +1963,40 @@ var Y = [
|
|
|
1963
1963
|
return "sum" !== s && (o.subtotal = s), o;
|
|
1964
1964
|
});
|
|
1965
1965
|
}, St = (n, s, r, o) => {
|
|
1966
|
-
const a = n.dataFields[r],
|
|
1966
|
+
const a = n.dataFields[r], l = a.showDataAs ?? "normal", d = o?.kind ?? "normal";
|
|
1967
1967
|
if (o && !wt.has(o.kind)) throw new t(e("error.pivotTable.notAShowAs", { name: o.kind }));
|
|
1968
|
-
const { showDataAs: u, baseField: c, baseItem: f, ...
|
|
1968
|
+
const { showDataAs: u, baseField: c, baseItem: f, ...p } = a, g = { ...p };
|
|
1969
1969
|
"normal" !== d && (g.showDataAs = d);
|
|
1970
1970
|
let w = a.baseField, v = a.baseItem;
|
|
1971
1971
|
if (void 0 !== o?.baseField) {
|
|
1972
|
-
const r = o.baseField, a = (s.fields ?? []).findIndex((e, t) =>
|
|
1972
|
+
const r = o.baseField, a = (s.fields ?? []).findIndex((e, t) => m(i(n, s, t), r));
|
|
1973
1973
|
if (a < 0) throw new t(e("error.pivotTable.notAField", { name: r }));
|
|
1974
1974
|
a !== w && (w = a, v = 0);
|
|
1975
1975
|
}
|
|
1976
1976
|
if (void 0 !== o?.baseItem) {
|
|
1977
1977
|
const r = w ?? 0;
|
|
1978
|
-
if (
|
|
1979
|
-
else if (
|
|
1978
|
+
if (m(o.baseItem, "(previous)")) v = "previous";
|
|
1979
|
+
else if (m(o.baseItem, "(next)")) v = "next";
|
|
1980
1980
|
else {
|
|
1981
1981
|
const a = n.fields?.[r]?.items ? n : { fields: (n.fields ?? []).map((e, t) => t === r ? {
|
|
1982
1982
|
...e,
|
|
1983
|
-
items:
|
|
1984
|
-
} : e) },
|
|
1985
|
-
if (
|
|
1986
|
-
v =
|
|
1983
|
+
items: lt(s, r)
|
|
1984
|
+
} : e) }, i = W(a, s, r).findIndex((e) => null !== e && m(e, o.baseItem));
|
|
1985
|
+
if (i < 0) throw new t(e("error.pivotTable.notAnItem", { name: o.baseItem }));
|
|
1986
|
+
v = i;
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
|
-
if (void 0 !== w && (g.baseField = w), void 0 !== v && (g.baseItem = v), d ===
|
|
1989
|
+
if (void 0 !== w && (g.baseField = w), void 0 !== v && (g.baseItem = v), d === l) return g.baseField === a.baseField && g.baseItem === a.baseItem ? n : bt(n, r, () => g);
|
|
1990
1990
|
const F = ((e, t, n) => {
|
|
1991
1991
|
if (gt.has(n)) return gt.has(t) ? e : void 0;
|
|
1992
|
-
const s = ((e) =>
|
|
1992
|
+
const s = ((e) => h(e).replace(/"[^"]*"|\\./g, "").includes("%"))(e);
|
|
1993
1993
|
return ht.has(n) ? ht.has(t) || s ? e : 10 : ht.has(t) && s ? void 0 : e;
|
|
1994
|
-
})(a.numberFormat,
|
|
1994
|
+
})(a.numberFormat, l, d);
|
|
1995
1995
|
return F === a.numberFormat ? bt(n, r, () => g) : bt(Ft(n, r), r, () => yt(g, F));
|
|
1996
1996
|
}, Pt = (e, t, n) => {
|
|
1997
1997
|
dt(n);
|
|
1998
|
-
const s =
|
|
1999
|
-
if (
|
|
1998
|
+
const s = h(n), r = e.dataFields[t], o = e.formats?.[e.formats.length - 1];
|
|
1999
|
+
if (h(r.numberFormat) === s && o && vt(o.area, t) && o.style.numberFormat === s) return e;
|
|
2000
2000
|
const a = bt(Ft(e, t), t, (e) => yt(e, "General" === s ? void 0 : n));
|
|
2001
2001
|
return {
|
|
2002
2002
|
...a,
|
|
@@ -2013,27 +2013,27 @@ var Y = [
|
|
|
2013
2013
|
};
|
|
2014
2014
|
}, kt = (n, s, r) => {
|
|
2015
2015
|
if (null === s) return At(n);
|
|
2016
|
-
const o =
|
|
2016
|
+
const o = N.Axis;
|
|
2017
2017
|
if (s !== o.Row && s !== o.Column) throw new t(e("error.pivotTable.fieldNotPlaceable"));
|
|
2018
2018
|
const a = n.rowFields?.includes(pt) ? o.Row : n.columnFields?.includes(pt) ? o.Column : null;
|
|
2019
2019
|
if (!a) throw new t(e("error.pivotTable.fieldPosition"));
|
|
2020
|
-
const
|
|
2021
|
-
if (void 0 !== r && (!Number.isInteger(r) || r < 1 || r >
|
|
2022
|
-
const
|
|
2023
|
-
if (s === a && (void 0 === r ||
|
|
2024
|
-
|
|
2025
|
-
const { rowFields: d, columnFields: u, valuesOnRows: c, ...f } = n, m =
|
|
2020
|
+
const i = v(n, s).filter((e) => e !== pt);
|
|
2021
|
+
if (void 0 !== r && (!Number.isInteger(r) || r < 1 || r > i.length + 1)) throw new t(e("error.pivotTable.fieldPosition"));
|
|
2022
|
+
const l = (r ?? i.length + 1) - 1;
|
|
2023
|
+
if (s === a && (void 0 === r || v(n, s)[l] === pt)) return n;
|
|
2024
|
+
i.splice(l, 0, pt);
|
|
2025
|
+
const { rowFields: d, columnFields: u, valuesOnRows: c, ...f } = n, m = v(n, s === o.Row ? o.Column : o.Row).filter((e) => e !== pt), p = { ...f }, h = s === o.Row ? i : m, g = s === o.Column ? i : m;
|
|
2026
2026
|
return h.length > 0 && (p.rowFields = [...h]), g.length > 0 && (p.columnFields = [...g]), s === o.Row && (p.valuesOnRows = !0), p;
|
|
2027
2027
|
}, Mt = (n, s, r) => {
|
|
2028
2028
|
if (r === (n.valuesCaption ?? "Values")) return n;
|
|
2029
|
-
const { valuesCaption: o, ...a } = n,
|
|
2029
|
+
const { valuesCaption: o, ...a } = n, i = {
|
|
2030
2030
|
...a,
|
|
2031
2031
|
valuesCaption: "\0"
|
|
2032
2032
|
};
|
|
2033
|
-
if (
|
|
2033
|
+
if (U(i, s, r) !== r) throw new t(e("error.pivotTable.fieldNameExists"));
|
|
2034
2034
|
return "Values" === r ? a : {
|
|
2035
2035
|
...a,
|
|
2036
2036
|
valuesCaption: r
|
|
2037
2037
|
};
|
|
2038
2038
|
};
|
|
2039
|
-
export { xt as addPivotDataField,
|
|
2039
|
+
export { xt as addPivotDataField, Ne as anchorPivotPeriods, dt as assertNumberFormat, it as axisFieldsOf, Oe as buildPivotView, Re as evaluatePivotFilters, j as isItemFilter, Ie as layOutPivot, lt as listedItemsOf, Ct as movePivotDataField, mt as movePivotField, st as movePivotItem, kt as movePivotValues, ot as newPivotCache, ct as newPivotTable, _e as readPivotSource, ze as refreshPivotCache, qe as remapPivotTable, At as removePivotDataField, nt as renamePivotItem, Mt as renamePivotValues, Xe as reorderPivotItems, Et as setPivotDataFunction, Pt as setPivotDataNumberFormat, St as setPivotDataShowAs, et as sortPivotItemsByLabel, rt as typeOverPivot, at as withListedFields };
|