@poe-platform/safe-bash 0.1.817 → 0.1.818
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/dist/image-ast/index.js +2 -2
- package/dist/mp4-ast/index.d.ts +2 -1
- package/dist/mp4-ast/mp4-metadata-source.d.ts +10 -0
- package/dist/mp4-ast/mp4-packets-source.d.ts +8 -1
- package/dist/mp4-ast/types.d.ts +21 -3
- package/dist/pdf-ast/ast.d.ts +2 -0
- package/dist/pdf-ast/content/evaluator.d.ts +7 -0
- package/dist/pdf-ast/content/retained-evaluator.d.ts +2 -2
- package/dist/pdf-ast/content/retained-page.d.ts +2 -2
- package/dist/pdf-ast/extract/html-text-stream.d.ts +14 -0
- package/dist/pdf-ast/extract/logical-text-stream.d.ts +14 -0
- package/dist/pdf-ast/extract/raw-text-index.d.ts +18 -4
- package/dist/pdf-ast/extract/retained-color.d.ts +6 -6
- package/dist/pdf-ast/extract/retained-decoded-image.d.ts +2 -2
- package/dist/pdf-ast/extract/stored-text-glyphs.d.ts +8 -0
- package/dist/pdf-ast/fonts/retained.d.ts +2 -2
- package/dist/pdf-ast/image.d.ts +2 -0
- package/dist/pdf-ast/image.js +19 -0
- package/dist/pdf-ast/index.d.ts +3 -0
- package/dist/pdf-ast/index.js +264 -66852
- package/dist/pdf-ast/render/postscript.d.ts +6 -0
- package/dist/pdf-ast/render/raster.d.ts +21 -1
- package/dist/pdf-ast/retained-document.d.ts +16 -95
- package/dist/pdf-ast/retained-reader.d.ts +109 -0
- package/dist/safe-bash/command-chunks/biff-AYJZR2YV-JPESBEOO.js +5741 -0
- package/dist/safe-bash/command-chunks/{chunk-SL4LD25A.js → chunk-232N24HE.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-ALD53QFL.js → chunk-2C4QMQQD.js} +42 -12
- package/dist/safe-bash/command-chunks/{chunk-3PM46VWH.js → chunk-2FEMMALH.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-QDV2NIFR.js → chunk-2TMTGVJR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ARE267HR.js → chunk-2WTDP3TP.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-FSG6UC2N.js → chunk-2XR7B6DY.js} +420 -167
- package/dist/safe-bash/command-chunks/{chunk-EY3UE26F.js → chunk-2YC6MWQB.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-UPWLHHZ2.js → chunk-37KBCKDF.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-DOVWHVHI.js → chunk-3B6554G6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-FB2WPI3M.js → chunk-3ZGO24WG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-GR4ONCQ5.js → chunk-424NYO35.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-MQE77MEQ.js → chunk-45GTHPL5.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-AF2IO57Q.js → chunk-4OHTYYNU.js} +8 -136
- package/dist/safe-bash/command-chunks/{chunk-ICJH6A73.js → chunk-4PMMJ45F.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-57PK2QFX.js → chunk-4SFX6YGC.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-G3LUT475.js → chunk-4WHTTCKY.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-UYZ6EFZE.js → chunk-4Z7PBIMP.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-A4P37F3P.js → chunk-57SKL76U.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-J6FNSVHT.js → chunk-5GP4A3TD.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-OFONWWEZ.js → chunk-5IHJWBDR.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-A2L3U7DW.js → chunk-5OS4Q3AX.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-FUYZUETI.js → chunk-5PMLTSQ5.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-TXU7MMHN.js → chunk-5RDS6CNQ.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-FR63MJSO.js → chunk-5UGQGB5Y.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-UKAGRRLZ.js → chunk-5VY5O37W.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-5WS6DXYE.js +68444 -0
- package/dist/safe-bash/command-chunks/{chunk-2ALHVXEM.js → chunk-6EK76ERE.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-4772DJKS.js → chunk-6GCK2KSL.js} +61 -26
- package/dist/safe-bash/command-chunks/{chunk-T5OQ53XS.js → chunk-6IID5HTY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-EZDWPTYB.js → chunk-6LOAJOWK.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-WMBELKPP.js → chunk-6PE2L522.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-ZAYTFXUX.js → chunk-73KY3MZ3.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-BOVDUJ3A.js → chunk-77WBFVZQ.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-3DWFXESW.js → chunk-7GJJDM2F.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-WIW3KDBS.js → chunk-7NFICYRU.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-35DU6I2M.js → chunk-7ZEGARPB.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-A5SPMSKD.js → chunk-A32PUWYE.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-KYIGYYEY.js → chunk-A32ZROH5.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-IOXMGD2H.js → chunk-ADVQZLLE.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-CGJ7GMHO.js → chunk-AEZU6NZE.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-KDDXLHN7.js → chunk-ATHU53C2.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-R7LF4XQV.js → chunk-B6T2526I.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PPN53PX3.js → chunk-BB7HBO56.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-ZM7HMBAJ.js → chunk-BDGNKRY4.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-VMZIAFVJ.js → chunk-BFRSYJUC.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-X42MJT2J.js → chunk-BJL7AGA5.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-VZTVR3JI.js → chunk-C2QUG7IP.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-IVKAFEPO.js → chunk-C34RLMAC.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-5O45KGW5.js → chunk-C5VUJOUQ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-LQDANF2B.js → chunk-CCNOZKAK.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-FEBTT5NH.js → chunk-CEHICGP6.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-SICTBSLW.js → chunk-CODJMTSA.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-LJ3UYESS.js → chunk-CP5EO5TT.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-45DKGZYO.js → chunk-CSS5KXQC.js} +329 -152
- package/dist/safe-bash/command-chunks/{chunk-6RLWPB44.js → chunk-CZSLXQU2.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3ZWFE4CK.js → chunk-D2ZT2UUT.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-WH624PKJ.js → chunk-D5XSGHXN.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-NDALIHKK.js → chunk-D7UFAIBS.js} +18 -18
- package/dist/safe-bash/command-chunks/{chunk-ISFGPCED.js → chunk-DCKAY6HV.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-LNAZ3E4Q.js → chunk-DGCJVZW6.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-LFSWLJPR.js → chunk-DJB5RB6U.js} +288 -32
- package/dist/safe-bash/command-chunks/{chunk-FGHSE3RZ.js → chunk-DZ4ELL34.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-LQX7RAF7.js → chunk-EBKKYRQJ.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-QNETPOMH.js → chunk-EDBNI7WE.js} +14 -14
- package/dist/safe-bash/command-chunks/{chunk-5GDF5FAS.js → chunk-EEJ3YXVO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-RTHYAGKI.js → chunk-ETN25WCR.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-ET6LMDEX.js → chunk-EV3DPRWE.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-3MUFXGA2.js → chunk-F2JUB7JI.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-345YBIHP.js → chunk-F42WV2YO.js} +19 -19
- package/dist/safe-bash/command-chunks/{chunk-FTZFCMVI.js → chunk-FAVWWMFW.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-XBWD6SI3.js → chunk-FDRE535F.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-WMV5224N.js → chunk-FILE5PBI.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-XPQUUFQD.js → chunk-FPOM47UA.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-QMBMZSJF.js → chunk-FQ2WRT4Q.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-H56BSMFQ.js → chunk-FVAFISPY.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-2QZUAZTH.js → chunk-GIQUIF6E.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2TWXRJPB.js → chunk-GNORF6RY.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-ABL2DPJI.js → chunk-GPLN6JV2.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-DZOKH5BL.js → chunk-GQ7BD75U.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-N4HWOLGZ.js → chunk-GY2C555A.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-N32AP43V.js → chunk-GZNX5SS4.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-YPG55QTP.js → chunk-HCJWEB6P.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4ABR3KGK.js → chunk-HNY7LZ5P.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-P462JTNT.js → chunk-HOBXZX23.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-5KZMR6AJ.js → chunk-HW3IOXT6.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-3VGQTLO6.js → chunk-HX7QQNWS.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-TXWDR2P4.js → chunk-IBT3OWXB.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-OHEZQ4QA.js → chunk-IFBLXBBM.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-HOJ7WDTS.js → chunk-IJZUUXLL.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-BZRWZ6GO.js → chunk-IKU7ZBF3.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-CKIXC7AO.js → chunk-IPKYPADE.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-IWVANZWH.js → chunk-JLPBGKVC.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-6M3JTPKE.js → chunk-JNRX5EFF.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-5YL453ZF.js → chunk-JSX5CFZY.js} +36 -36
- package/dist/safe-bash/command-chunks/{chunk-V6JPIZUW.js → chunk-JT656DKZ.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-DM5WURQL.js → chunk-JY2T3KV2.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-IZ3SD5S2.js → chunk-K2NV6H7E.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-62RG3GHF.js → chunk-K6E56LND.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-FLSXHLJG.js → chunk-KADQKXZE.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-URQSUMMJ.js → chunk-KFFV7HBL.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-ONQP4FNV.js → chunk-KZICRCQ7.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-N35IJXBK.js → chunk-L6X4EEN6.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-SHLT5R64.js → chunk-LF7YJ5VQ.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-GMBUOYTN.js → chunk-LNHTLWIL.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-A6OTPNNI.js → chunk-LPKMNCC5.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-MUTARE5I.js → chunk-LSKA4IR4.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-N3ZH4YYH.js → chunk-LTWX23FS.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JA36YOZI.js → chunk-LUJUYUOG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4X2MPZXW.js → chunk-M42GCI5F.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-AYQPJQJR.js → chunk-M5BFAMXD.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-OFDJJRAD.js → chunk-M7DZ7COK.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-E64ZI2YB.js → chunk-MMSKDYK6.js} +224 -115
- package/dist/safe-bash/command-chunks/{chunk-NKK76B4V.js → chunk-MN7EEK6Y.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-OBIXFO25.js → chunk-MOJQT6RW.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-HOKPYTHQ.js → chunk-MPRUGL4W.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-CORUUCS2.js → chunk-MRBX4KEP.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-MTWFSBNG.js +137 -0
- package/dist/safe-bash/command-chunks/{chunk-RRAQII52.js → chunk-MURNTGDL.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-KDBU5Q2N.js → chunk-MWVELMXZ.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-PRO7JOIH.js → chunk-N3MAYM6Y.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-E22EAYJN.js → chunk-NFWLZDMY.js} +177 -34
- package/dist/safe-bash/command-chunks/{chunk-GAROGIVU.js → chunk-NP2QXF2X.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-SNA2LVBX.js → chunk-NPVOYY2A.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ENMJHB2C.js → chunk-NTXRKJPZ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-3K5CVXUV.js → chunk-NZF56C25.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-5MNQTHED.js → chunk-OA4MEWTN.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-SWIF6BBY.js → chunk-OL75SBZL.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-LT2YCGC5.js → chunk-OVQSILY3.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-WDVPHDBH.js → chunk-P57V45F2.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-OWCBX5M2.js → chunk-PAY4ULWY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-CHZE6FNT.js → chunk-PFUZPAXQ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-NLCUQD7Y.js → chunk-PX6E5MHY.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-POGVOCOB.js → chunk-QCN7MRRU.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-ZZERSKAR.js → chunk-QLE6JUR7.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-LZY46GYY.js → chunk-QMWBKR4C.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-BIJW6QWB.js → chunk-QNLX3CZH.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-MDFNUNK5.js → chunk-QWX5IERU.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-WOL3LBXE.js → chunk-R2N3E267.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZNCPIZCN.js → chunk-R6X63VAO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-FGARVKAX.js → chunk-RNIFPFGC.js} +13 -11
- package/dist/safe-bash/command-chunks/{chunk-OIHQXURE.js → chunk-ROE6KD4C.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-BKK4MS3V.js → chunk-RR6XG2I6.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZHHALBM7.js → chunk-RYOHOS2I.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-U42WHQRH.js → chunk-TTTNFKT6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-EWC56JNI.js → chunk-TTVJJZOM.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-TY7JXEWI.js → chunk-UBX5I5HY.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-QOKFSYD5.js → chunk-UE34SQET.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-DXOXUKQB.js → chunk-UH4CQIU3.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-VNNNVT4C.js → chunk-UZZ2WJQV.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-QNX5LZBK.js → chunk-V6NZVM7C.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-KLAC2MIZ.js → chunk-VEZULAIA.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-OCV5ZU35.js → chunk-VSTAHYCV.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-UFLMOU3B.js → chunk-VUJCVXD4.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-5V7WIQ2D.js → chunk-VW67MA53.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-2IMIKROX.js → chunk-WI5NEHPD.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-SBXS4S6Y.js → chunk-WJSU2UVG.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-VVWHFNHD.js → chunk-WPEIOUJN.js} +415 -25
- package/dist/safe-bash/command-chunks/{chunk-YKODRSGT.js → chunk-WRCYZJNO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TID5TSQW.js → chunk-WRJV7OVO.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-T4SEQU66.js → chunk-X4TWJNW7.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-CKA7ZROU.js → chunk-X6KFCAWZ.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-ROQ3VNVX.js → chunk-X6KO7D6R.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-S5ER73EA.js → chunk-XB5ZZHFD.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FHQOFEQK.js → chunk-XLFOLLUZ.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-UJYXSLM6.js → chunk-XLPEPCQC.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-UT5X6QRU.js → chunk-XQFEP43Y.js} +5 -5
- package/dist/safe-bash/command-chunks/chunk-Y7XL6CWB.js +771 -0
- package/dist/safe-bash/command-chunks/{chunk-RVWIEXR7.js → chunk-YKEMSPJZ.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-ERWIJYCS.js → chunk-YN3OEJAZ.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-6YF2QADH.js → chunk-YOYK2I4N.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-26JE5JEB.js → chunk-YS5ZKMRJ.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-LMLBQSAM.js → chunk-YW7WU7W2.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-YXR4JE4U.js → chunk-Z33YS3DW.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-T2FRXSQT.js → chunk-ZBXUAM34.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-VVV45NLY.js → chunk-ZJUU5IAS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-7OCTMVYJ.js → chunk-ZNABMTV3.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-6JGICYHP.js → chunk-ZSF2T5D4.js} +1 -1
- package/dist/safe-bash/command-chunks/{command-engine-2QXVRRH3.js → command-engine-PFYHL7GS.js} +10 -4
- package/dist/safe-bash/command-chunks/{engine-T4GP6QOK-ECFKMR5V.js → engine-5AVSKFBI-D7Q5VPUN.js} +1 -1
- package/dist/safe-bash/command-chunks/model-store-IIWQHSEZ.js +54 -0
- package/dist/safe-bash-command-awk/awk-inspection.js +2 -2
- package/dist/safe-bash-command-awk/awk.js +5 -5
- package/dist/safe-bash-command-awk/index.js +5 -5
- package/dist/safe-bash-command-cp/index.js +4 -4
- package/dist/safe-bash-command-diff/diff.js +2 -2
- package/dist/safe-bash-command-diff/index.js +2 -2
- package/dist/safe-bash-command-ffmpeg/index.js +1 -1
- package/dist/safe-bash-command-ffprobe/index.js +2 -2
- package/dist/safe-bash-command-ffprobe/media.js +2 -2
- package/dist/safe-bash-command-node/commands/node/browser.js +6 -6
- package/dist/safe-bash-command-node/commands/node/default-runtime.js +6 -6
- package/dist/safe-bash-command-node/commands/node/filesystem.js +2 -2
- package/dist/safe-bash-command-node/commands/node/safejs.js +6 -6
- package/dist/safe-bash-command-node/commands/node/timers.js +2 -2
- package/dist/safe-bash-command-patch/index.js +3 -3
- package/dist/safe-bash-command-patch/patch-formats.js +2 -2
- package/dist/safe-bash-command-patch/patch.js +3 -3
- package/dist/safe-bash-command-patch/unified.js +1 -1
- package/dist/safe-bash-command-pdftoppm/index.js +89 -124
- package/dist/safe-bash-command-pdftotext/index.d.ts +1 -1
- package/dist/safe-bash-command-pdftotext/index.js +538 -379
- package/dist/safe-bash-command-playwright-cli/index.js +19 -19
- package/dist/safe-bash-command-playwright-cli/playwright/abilities.js +6 -6
- package/dist/safe-bash-command-playwright-cli/playwright/adapter.js +3 -3
- package/dist/safe-bash-command-playwright-cli/playwright/controller.js +13 -13
- package/dist/safe-bash-command-playwright-cli/playwright/index.js +19 -19
- package/dist/safe-bash-command-playwright-cli/playwright/native-storage-replacement.js +2 -2
- package/dist/safe-bash-command-playwright-cli/playwright/open-options.js +2 -2
- package/dist/safe-bash-command-playwright-cli/playwright/profile.js +5 -5
- package/dist/safe-bash-command-playwright-cli/playwright/standard-capabilities.js +4 -4
- package/dist/safe-bash-command-playwright-cli/playwright/storage-capabilities.js +3 -3
- package/dist/safe-bash-command-pptx/engine.js +1 -1
- package/dist/safe-bash-command-python/executor.js +10 -10
- package/dist/safe-bash-command-python/index.js +10 -10
- package/dist/safe-bash-command-python/jspi.js +2 -2
- package/dist/safe-bash-command-safejs/index.js +2 -2
- package/dist/safe-bash-command-safejs/runtime.js +2 -2
- package/dist/safe-bash-command-ssconvert/index.js +13 -13
- package/dist/safe-bash-command-unzip/index.js +4 -4
- package/dist/safe-bash-docx-engine/ancillary-resources.js +10 -10
- package/dist/safe-bash-docx-engine/batch-operations.js +67 -67
- package/dist/safe-bash-docx-engine/batch-result-schema.js +79 -79
- package/dist/safe-bash-docx-engine/batch.js +78 -78
- package/dist/safe-bash-docx-engine/bookmarks.js +18 -18
- package/dist/safe-bash-docx-engine/charts.js +11 -11
- package/dist/safe-bash-docx-engine/command-option-rules.js +6 -6
- package/dist/safe-bash-docx-engine/command-properties.js +3 -3
- package/dist/safe-bash-docx-engine/comments.js +26 -26
- package/dist/safe-bash-docx-engine/control-bindings.js +21 -21
- package/dist/safe-bash-docx-engine/control-repeat.js +21 -21
- package/dist/safe-bash-docx-engine/controls.js +19 -19
- package/dist/safe-bash-docx-engine/create.js +11 -11
- package/dist/safe-bash-docx-engine/diagrams.js +11 -11
- package/dist/safe-bash-docx-engine/diff.js +13 -13
- package/dist/safe-bash-docx-engine/document-properties.js +16 -16
- package/dist/safe-bash-docx-engine/equations.js +17 -17
- package/dist/safe-bash-docx-engine/extract.js +14 -14
- package/dist/safe-bash-docx-engine/fields.js +23 -23
- package/dist/safe-bash-docx-engine/font-inventory.js +18 -18
- package/dist/safe-bash-docx-engine/font-resources.js +6 -6
- package/dist/safe-bash-docx-engine/image-batch-operations.js +14 -14
- package/dist/safe-bash-docx-engine/image-insertion.js +21 -21
- package/dist/safe-bash-docx-engine/image-layout.js +19 -19
- package/dist/safe-bash-docx-engine/image-replacement.js +22 -22
- package/dist/safe-bash-docx-engine/images.js +19 -19
- package/dist/safe-bash-docx-engine/index.js +111 -111
- package/dist/safe-bash-docx-engine/inspection.js +20 -20
- package/dist/safe-bash-docx-engine/invocation.js +9 -9
- package/dist/safe-bash-docx-engine/io.js +9 -9
- package/dist/safe-bash-docx-engine/links.js +21 -21
- package/dist/safe-bash-docx-engine/lists.js +20 -20
- package/dist/safe-bash-docx-engine/locations.js +15 -15
- package/dist/safe-bash-docx-engine/notes.js +22 -22
- package/dist/safe-bash-docx-engine/objects.js +19 -19
- package/dist/safe-bash-docx-engine/operation-json-schema.js +3 -3
- package/dist/safe-bash-docx-engine/operation-schema.js +2 -2
- package/dist/safe-bash-docx-engine/pack.js +14 -14
- package/dist/safe-bash-docx-engine/package-view-batch-operations.js +22 -22
- package/dist/safe-bash-docx-engine/pandoc-adapter.js +29 -29
- package/dist/safe-bash-docx-engine/paragraph-edit.js +25 -25
- package/dist/safe-bash-docx-engine/part-provider.js +3 -3
- package/dist/safe-bash-docx-engine/property-values.js +3 -3
- package/dist/safe-bash-docx-engine/publication.js +9 -9
- package/dist/safe-bash-docx-engine/removal.js +21 -21
- package/dist/safe-bash-docx-engine/revision-decisions.js +22 -22
- package/dist/safe-bash-docx-engine/revision-edit.js +20 -20
- package/dist/safe-bash-docx-engine/revisions.js +18 -18
- package/dist/safe-bash-docx-engine/run-format.js +20 -20
- package/dist/safe-bash-docx-engine/sanitize.js +34 -34
- package/dist/safe-bash-docx-engine/sections.js +19 -19
- package/dist/safe-bash-docx-engine/settings.js +11 -11
- package/dist/safe-bash-docx-engine/shape-edit.js +21 -21
- package/dist/safe-bash-docx-engine/signatures.js +15 -15
- package/dist/safe-bash-docx-engine/stories.js +22 -22
- package/dist/safe-bash-docx-engine/structure-model-batch-operations.js +38 -38
- package/dist/safe-bash-docx-engine/style-model-batch-operations.js +27 -27
- package/dist/safe-bash-docx-engine/style-model-result-schema.js +44 -44
- package/dist/safe-bash-docx-engine/styles.js +18 -18
- package/dist/safe-bash-docx-engine/table-edit.js +27 -27
- package/dist/safe-bash-docx-engine/table-read.js +16 -16
- package/dist/safe-bash-docx-engine/template.js +22 -22
- package/dist/safe-bash-docx-engine/text-replace.js +20 -20
- package/dist/safe-bash-docx-engine/text-resource-read.js +16 -16
- package/dist/safe-bash-docx-engine/text.js +16 -16
- package/dist/safe-bash-docx-engine/validation.js +7 -7
- package/dist/safe-bash-docx-engine/xml-parts.js +22 -22
- package/dist/safe-bash-network-engine/index.js +4 -4
- package/dist/safe-bash-network-engine/transfer.js +12 -12
- package/dist/safe-bash-presentation-engine/accessibility.js +15 -15
- package/dist/safe-bash-presentation-engine/animation-editing.js +5 -5
- package/dist/safe-bash-presentation-engine/animations.js +5 -5
- package/dist/safe-bash-presentation-engine/backgrounds.js +6 -6
- package/dist/safe-bash-presentation-engine/chart-editing.js +18 -18
- package/dist/safe-bash-presentation-engine/chart-object-operations.js +12 -12
- package/dist/safe-bash-presentation-engine/charts.js +15 -15
- package/dist/safe-bash-presentation-engine/command-placeholder.js +39 -38
- package/dist/safe-bash-presentation-engine/comments.js +6 -6
- package/dist/safe-bash-presentation-engine/connector-operations.js +16 -16
- package/dist/safe-bash-presentation-engine/connectors.js +13 -13
- package/dist/safe-bash-presentation-engine/diff.js +21 -20
- package/dist/safe-bash-presentation-engine/drawing-format.js +7 -7
- package/dist/safe-bash-presentation-engine/drawing-operations.js +15 -15
- package/dist/safe-bash-presentation-engine/drawing-schema.js +8 -8
- package/dist/safe-bash-presentation-engine/equations.js +6 -6
- package/dist/safe-bash-presentation-engine/fields.js +6 -6
- package/dist/safe-bash-presentation-engine/image-extraction.js +7 -7
- package/dist/safe-bash-presentation-engine/image-formatting.js +16 -16
- package/dist/safe-bash-presentation-engine/image-insertion.js +6 -6
- package/dist/safe-bash-presentation-engine/image-replacement.js +7 -7
- package/dist/safe-bash-presentation-engine/images.js +6 -6
- package/dist/safe-bash-presentation-engine/index.js +96 -95
- package/dist/safe-bash-presentation-engine/layouts.js +5 -5
- package/dist/safe-bash-presentation-engine/links.js +5 -5
- package/dist/safe-bash-presentation-engine/masters.js +4 -4
- package/dist/safe-bash-presentation-engine/media-editing.js +10 -10
- package/dist/safe-bash-presentation-engine/media-extraction.js +6 -6
- package/dist/safe-bash-presentation-engine/media.js +5 -5
- package/dist/safe-bash-presentation-engine/memberships.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/memberships.js +12 -6
- package/dist/safe-bash-presentation-engine/notes.js +6 -6
- package/dist/safe-bash-presentation-engine/ole-insertion.js +6 -6
- package/dist/safe-bash-presentation-engine/opaque-objects.js +2 -2
- package/dist/safe-bash-presentation-engine/package-tools.js +6 -6
- package/dist/safe-bash-presentation-engine/presentation-model.js +38 -37
- package/dist/safe-bash-presentation-engine/presentation-settings.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/presentation-settings.js +12 -5
- package/dist/safe-bash-presentation-engine/properties.js +7 -6
- package/dist/safe-bash-presentation-engine/retained-inspection.js +3 -3
- package/dist/safe-bash-presentation-engine/retained-memberships.d.ts +25 -0
- package/dist/safe-bash-presentation-engine/retained-presentation-settings.d.ts +25 -0
- package/dist/safe-bash-presentation-engine/retained-text.d.ts +24 -4
- package/dist/safe-bash-presentation-engine/retained-text.js +17 -15
- package/dist/safe-bash-presentation-engine/sanitize.js +8 -7
- package/dist/safe-bash-presentation-engine/selectors.js +2 -2
- package/dist/safe-bash-presentation-engine/shape-groups.js +15 -15
- package/dist/safe-bash-presentation-engine/shape-operations.js +14 -14
- package/dist/safe-bash-presentation-engine/shape-path-operations.js +16 -16
- package/dist/safe-bash-presentation-engine/shape-paths.js +5 -5
- package/dist/safe-bash-presentation-engine/shape-selection.js +15 -15
- package/dist/safe-bash-presentation-engine/shape-transforms.js +5 -5
- package/dist/safe-bash-presentation-engine/shapes.js +11 -11
- package/dist/safe-bash-presentation-engine/slide-copy.js +7 -5
- package/dist/safe-bash-presentation-engine/slide-import.js +6 -6
- package/dist/safe-bash-presentation-engine/slide-merge-split.js +8 -8
- package/dist/safe-bash-presentation-engine/slide-model.js +24 -24
- package/dist/safe-bash-presentation-engine/slide-removal.js +7 -7
- package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +2 -2
- package/dist/safe-bash-presentation-engine/slides.js +5 -5
- package/dist/safe-bash-presentation-engine/table-operations.js +17 -17
- package/dist/safe-bash-presentation-engine/table-spans.js +16 -16
- package/dist/safe-bash-presentation-engine/tables.js +15 -15
- package/dist/safe-bash-presentation-engine/tags.js +6 -6
- package/dist/safe-bash-presentation-engine/template-bindings.js +16 -16
- package/dist/safe-bash-presentation-engine/template-repeat.js +24 -22
- package/dist/safe-bash-presentation-engine/text-fitting.js +11 -11
- package/dist/safe-bash-presentation-engine/text-frames.js +11 -11
- package/dist/safe-bash-presentation-engine/text-paragraphs.js +11 -11
- package/dist/safe-bash-presentation-engine/text-reading.js +3 -3
- package/dist/safe-bash-presentation-engine/text-replacement.js +6 -6
- package/dist/safe-bash-presentation-engine/text-runs.js +8 -8
- package/dist/safe-bash-presentation-engine/themes.js +5 -5
- package/dist/safe-bash-presentation-engine/transitions.js +5 -5
- package/dist/safe-bash-presentation-engine/validation.js +2 -2
- package/dist/safe-bash-presentation-engine/xml-parts.js +5 -5
- package/dist/safe-bash-xml-engine/document.js +2 -2
- package/dist/safe-bash-xml-engine/index.js +2 -2
- package/dist/safe-bash-xml-engine/recovery.d.ts +6 -2
- package/dist/safe-bash-xml-engine/stored-document.d.ts +2 -1
- package/dist/safe-bash-xml-engine/stored-document.js +1 -1
- package/dist/safe-bash-xml-engine/{stored-namespaces.d.ts → stored-map.d.ts} +6 -6
- package/dist/safe-bash-zip-engine/index.js +3 -3
- package/dist/safe-bash-zip-engine/zip/repair.js +3 -3
- package/dist/safe-bash-zip-engine/zip/sfx.js +3 -3
- package/dist/safe-bash-zip-engine/zip-format.js +3 -3
- package/dist/spreadsheet-engine/formatting/cell-text.js +1 -1
- package/dist/spreadsheet-engine/{rendering/print → formatting}/general-number.js +3 -3
- package/dist/spreadsheet-engine/formulas/functions/python-printf.js +9 -7
- package/dist/spreadsheet-engine/solver/program.js +3 -2
- package/dist/spreadsheet-engine/solver/run.js +8 -2
- package/dist/spreadsheet-engine/solver/sensitivity.d.ts +4 -2
- package/dist/spreadsheet-engine/solver/sensitivity.js +80 -42
- package/dist/spreadsheet-format-xls/biff-properties-merge.d.ts +2 -1
- package/dist/spreadsheet-format-xls/biff-properties-merge.js +35 -29
- package/dist/spreadsheet-format-xls/biff-properties-write.js +16 -7
- package/dist/spreadsheet-format-xls/biff-property-names.d.ts +3 -0
- package/dist/spreadsheet-format-xls/biff-property-names.js +44 -1
- package/dist/spreadsheet-format-xls/biff-property-observations.d.ts +33 -0
- package/dist/spreadsheet-format-xls/biff-property-observations.js +160 -0
- package/package.json +6 -4
- package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +15 -0
- package/third-party/pdf-ast/licenses/PYTHON-PSF.txt +254 -0
- package/third-party/pdf-ast/licenses/V8-BSD.txt +61 -0
- package/dist/safe-bash/command-chunks/biff-KLS4T7FP-UO3CXFFF.js +0 -5581
- package/dist/safe-bash/command-chunks/chunk-6EZWG56T.js +0 -455
- package/dist/safe-bash/command-chunks/model-store-I7YAWL5V.js +0 -54
- package/dist/safe-bash/command-chunks/{chunk-SRXARACJ.js → chunk-3TP4SSPS.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-NCNHJRIY.js → chunk-3W3HLPCX.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-P4OWVKMD.js → chunk-BQXKO3X7.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-OCOJMKDP.js → chunk-CVMHDJ7J.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-AV6N7DDA.js → chunk-DDYPQAXN.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-FEKECRJP.js → chunk-EBTKM7KX.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-WVD5WZXD.js → chunk-FPNUGKCX.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-6W4RMBFH.js → chunk-N6VNHC3B.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-M3OXQXCU.js → chunk-NBRXQUK7.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-LECGQSQW.js → chunk-SF56V6QK.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-2ANW3FXH.js → chunk-U33GIOUY.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-5QXRIZSS.js → chunk-V3NKL42J.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-OEKLEUUW.js → chunk-YZE7BKHC.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-WXW665TV.js → chunk-ZSHXZ3XG.js} +6 -6
- package/dist/safe-bash/command-chunks/{dif-BXKPQOCO-4KB3RC6G.js → dif-BXKPQOCO-FVJYYGYB.js} +4 -4
- package/dist/safe-bash/command-chunks/{pln-DFS7VLVS-OVOBS4QX.js → pln-DFS7VLVS-JATX6FS7.js} +3 -3
- package/dist/safe-bash/command-chunks/{psion-YBI6JEQI-GY4S6ZLC.js → psion-YBI6JEQI-6OMC2PGC.js} +3 -3
- package/dist/safe-bash/command-chunks/{sylk-25D7TL2Y-RU6ANKGT.js → sylk-25D7TL2Y-NJKBZZTF.js} +4 -4
- /package/dist/spreadsheet-engine/{rendering/print → formatting}/general-number.d.ts +0 -0
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
styleModelBatchActions,
|
|
5
5
|
styleModelBatchBootstrap,
|
|
6
6
|
styleModelBatchOperations
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MOJQT6RW.js";
|
|
8
8
|
import {
|
|
9
9
|
packageViewBatchActions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7ZEGARPB.js";
|
|
11
11
|
import {
|
|
12
12
|
structureModelBatchActions
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QLE6JUR7.js";
|
|
14
14
|
import {
|
|
15
15
|
imageBatchActions
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7NFICYRU.js";
|
|
17
17
|
import {
|
|
18
18
|
documentBatchActions
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JSX5CFZY.js";
|
|
20
20
|
import {
|
|
21
21
|
inspectDocumentParagraph,
|
|
22
22
|
inspectDocumentRun
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KFFV7HBL.js";
|
|
24
24
|
import {
|
|
25
25
|
DocumentSession
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-77WBFVZQ.js";
|
|
27
27
|
import {
|
|
28
28
|
Comment,
|
|
29
29
|
Comments,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
_Header,
|
|
48
48
|
_Row,
|
|
49
49
|
_Rows
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-F42WV2YO.js";
|
|
51
51
|
import {
|
|
52
52
|
BaseStyle,
|
|
53
53
|
CharacterStyle,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
TabStop,
|
|
63
63
|
TabStops,
|
|
64
64
|
TableStyle
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-EV3DPRWE.js";
|
|
66
66
|
import {
|
|
67
67
|
CommentsPart,
|
|
68
68
|
CoreProperties,
|
|
@@ -83,13 +83,13 @@ import {
|
|
|
83
83
|
XmlElementView,
|
|
84
84
|
XmlPartView,
|
|
85
85
|
_NumberingDefinitions
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-5RDS6CNQ.js";
|
|
87
87
|
import {
|
|
88
88
|
PackURI
|
|
89
89
|
} from "./chunk-QTC5YGNM.js";
|
|
90
90
|
import {
|
|
91
91
|
Image
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-K2NV6H7E.js";
|
|
93
93
|
import {
|
|
94
94
|
modelContext
|
|
95
95
|
} from "./chunk-DMAOMHJQ.js";
|
|
@@ -97,16 +97,16 @@ import {
|
|
|
97
97
|
docxBatchMutates,
|
|
98
98
|
validateDocxBatch,
|
|
99
99
|
validateDocxInvocation
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-BDGNKRY4.js";
|
|
101
101
|
import {
|
|
102
102
|
publishDocumentArchive
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-LTWX23FS.js";
|
|
104
104
|
import {
|
|
105
105
|
admittedXml
|
|
106
106
|
} from "./chunk-5BUL25DF.js";
|
|
107
107
|
import {
|
|
108
108
|
styleIds
|
|
109
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-QMWBKR4C.js";
|
|
110
110
|
import {
|
|
111
111
|
documentDialects
|
|
112
112
|
} from "./chunk-WLANDWNW.js";
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
docxOperationSchemas,
|
|
121
121
|
isLength,
|
|
122
122
|
plainLength
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-EBTKM7KX.js";
|
|
124
124
|
import {
|
|
125
125
|
closedRecord,
|
|
126
126
|
encodeGeneratedLocation
|
|
@@ -132,12 +132,12 @@ import {
|
|
|
132
132
|
UnsupportedProfileError,
|
|
133
133
|
parseDocumentXml
|
|
134
134
|
} from "./chunk-3A7KNHOR.js";
|
|
135
|
-
import {
|
|
136
|
-
BoundsError
|
|
137
|
-
} from "./chunk-OBK24KGM.js";
|
|
138
135
|
import {
|
|
139
136
|
DocxUsageError
|
|
140
137
|
} from "./chunk-WXMYTNWS.js";
|
|
138
|
+
import {
|
|
139
|
+
BoundsError
|
|
140
|
+
} from "./chunk-OBK24KGM.js";
|
|
141
141
|
import {
|
|
142
142
|
InputTypeError,
|
|
143
143
|
archiveSettings,
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-MZYQKH26.js";
|
|
4
4
|
import {
|
|
5
5
|
prepareCommentImport
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-F2JUB7JI.js";
|
|
7
7
|
import {
|
|
8
8
|
writePackageArchive
|
|
9
9
|
} from "./chunk-TG2RVQLP.js";
|
|
10
10
|
import {
|
|
11
11
|
diagramContentTypes,
|
|
12
12
|
diagramRelationshipKinds
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3W3HLPCX.js";
|
|
14
14
|
import {
|
|
15
15
|
readPackage
|
|
16
16
|
} from "./chunk-Q65GWGQR.js";
|
|
@@ -19,16 +19,16 @@ import {
|
|
|
19
19
|
} from "./chunk-FAU2KL6I.js";
|
|
20
20
|
import {
|
|
21
21
|
validatePresentation
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-N6VNHC3B.js";
|
|
23
23
|
import {
|
|
24
24
|
parseXmlPart
|
|
25
25
|
} from "./chunk-7PYDVQPB.js";
|
|
26
|
-
import {
|
|
27
|
-
parseContentTypes
|
|
28
|
-
} from "./chunk-XFIDOCYH.js";
|
|
29
26
|
import {
|
|
30
27
|
readRelationshipGraph
|
|
31
28
|
} from "./chunk-4YFTJS5U.js";
|
|
29
|
+
import {
|
|
30
|
+
parseContentTypes
|
|
31
|
+
} from "./chunk-XFIDOCYH.js";
|
|
32
32
|
import {
|
|
33
33
|
asciiKey,
|
|
34
34
|
relativePartReference
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
openRetainedPresentationIndex,
|
|
3
|
+
stageRetainedOutput,
|
|
4
|
+
streamJson
|
|
5
|
+
} from "./chunk-3ZGO24WG.js";
|
|
1
6
|
import {
|
|
2
7
|
writePackageArchive
|
|
3
8
|
} from "./chunk-TG2RVQLP.js";
|
|
@@ -8,22 +13,32 @@ import {
|
|
|
8
13
|
readBinary
|
|
9
14
|
} from "./chunk-FAU2KL6I.js";
|
|
10
15
|
import {
|
|
16
|
+
openRetainedPresentationValidation,
|
|
11
17
|
validatePresentation
|
|
12
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-N6VNHC3B.js";
|
|
19
|
+
import {
|
|
20
|
+
dialects,
|
|
21
|
+
openRetainedContentTypes
|
|
22
|
+
} from "./chunk-6KJDTKE4.js";
|
|
13
23
|
import {
|
|
14
24
|
parseXmlPart
|
|
15
25
|
} from "./chunk-7PYDVQPB.js";
|
|
16
|
-
import {
|
|
17
|
-
parseContentTypes
|
|
18
|
-
} from "./chunk-XFIDOCYH.js";
|
|
19
26
|
import {
|
|
20
27
|
readRelationshipGraph
|
|
21
28
|
} from "./chunk-4YFTJS5U.js";
|
|
29
|
+
import {
|
|
30
|
+
parseContentTypes
|
|
31
|
+
} from "./chunk-XFIDOCYH.js";
|
|
22
32
|
import {
|
|
23
33
|
relativePartReference
|
|
24
34
|
} from "./chunk-MOUCMZZP.js";
|
|
25
35
|
import {
|
|
26
|
-
OfficeError
|
|
36
|
+
OfficeError,
|
|
37
|
+
characters,
|
|
38
|
+
equal,
|
|
39
|
+
literal,
|
|
40
|
+
openRetainedXmlDocument,
|
|
41
|
+
resolveOfficeResources
|
|
27
42
|
} from "./chunk-KM2SMMXZ.js";
|
|
28
43
|
|
|
29
44
|
// packages/safe-bash-presentation-engine/src/settings-scaling.ts
|
|
@@ -76,7 +91,7 @@ function scaleDrawingCanvas(document, sx, sy) {
|
|
|
76
91
|
const node = child(transform, name, a);
|
|
77
92
|
for (const axis of name === "chOff" ? ["x", "y"] : ["cx", "cy"]) {
|
|
78
93
|
const value = node.attributes.find(
|
|
79
|
-
(
|
|
94
|
+
(attribute2) => attribute2.name.namespace === "" && attribute2.name.localName === axis
|
|
80
95
|
)?.value;
|
|
81
96
|
if (value === void 0 || !value.trim() || [...value.trim()].some(
|
|
82
97
|
(character, index2) => !(character >= "0" && character <= "9") && !(index2 === 0 && (character === "-" || character === "+"))
|
|
@@ -119,8 +134,247 @@ function scaleDrawingCanvas(document, sx, sy) {
|
|
|
119
134
|
return document;
|
|
120
135
|
}
|
|
121
136
|
|
|
137
|
+
// packages/safe-bash-presentation-engine/src/retained-presentation-settings.ts
|
|
138
|
+
var invalid = (message) => {
|
|
139
|
+
throw new OfficeError("invalid-opc", message, "index");
|
|
140
|
+
};
|
|
141
|
+
async function child2(document, parent, name) {
|
|
142
|
+
let found;
|
|
143
|
+
for await (const node of document.children(parent)) if (node.kind === "element" && await equal(document.raw(node.localName), literal(name)) && await equal(document.namespace(node), document.namespace(parent))) {
|
|
144
|
+
if (found) invalid("Duplicate presentation setting.");
|
|
145
|
+
found = node;
|
|
146
|
+
}
|
|
147
|
+
return found;
|
|
148
|
+
}
|
|
149
|
+
async function attribute(document, node, name) {
|
|
150
|
+
for await (const value of document.attributes(node)) if (await equal(document.raw(value.localName), literal(name)) && await equal(document.namespace(value), literal(""))) return value;
|
|
151
|
+
return void 0;
|
|
152
|
+
}
|
|
153
|
+
async function numeric(document, node, name) {
|
|
154
|
+
const value = node && await attribute(document, node, name);
|
|
155
|
+
if (!value) return null;
|
|
156
|
+
let started = false, ended = false, digits = false, negative = false, number = 0;
|
|
157
|
+
for await (const character of characters(document.text(value))) {
|
|
158
|
+
if (character.trim() === "") {
|
|
159
|
+
if (started) ended = true;
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if (ended) invalid("Invalid numeric presentation setting.");
|
|
163
|
+
if (!started && (character === "+" || character === "-")) {
|
|
164
|
+
negative = character === "-";
|
|
165
|
+
started = true;
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
started = true;
|
|
169
|
+
if (character < "0" || character > "9") invalid("Invalid numeric presentation setting.");
|
|
170
|
+
digits = true;
|
|
171
|
+
number = number * 10 + (character.charCodeAt(0) - 48);
|
|
172
|
+
if (!Number.isSafeInteger(number)) invalid("Invalid numeric presentation setting.");
|
|
173
|
+
}
|
|
174
|
+
if (!digits) invalid("Invalid numeric presentation setting.");
|
|
175
|
+
return negative ? -number : number;
|
|
176
|
+
}
|
|
177
|
+
async function* escaped(source) {
|
|
178
|
+
let buffer = "";
|
|
179
|
+
for await (const character of characters(source)) {
|
|
180
|
+
buffer += { "&": "&", "<": "<", '"': """, " ": "	", "\n": " ", "\r": " " }[character] ?? character;
|
|
181
|
+
if (buffer.length >= 2048) {
|
|
182
|
+
yield* literal(buffer);
|
|
183
|
+
buffer = "";
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
if (buffer) yield* literal(buffer);
|
|
187
|
+
}
|
|
188
|
+
async function* standalone(document, node, maxCharacters) {
|
|
189
|
+
async function* declarations() {
|
|
190
|
+
if (node === document.root) return;
|
|
191
|
+
for await (const inherited of document.declarations(document.root)) {
|
|
192
|
+
if (await equal(document.raw(inherited.name), literal("xmlns:xml"))) continue;
|
|
193
|
+
let local = false;
|
|
194
|
+
for await (const own of document.declarations(node)) if (await equal(document.raw(own.name), document.raw(inherited.name))) {
|
|
195
|
+
local = true;
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
if (local) continue;
|
|
199
|
+
yield* literal(" ");
|
|
200
|
+
yield* document.raw(inherited.name);
|
|
201
|
+
yield* literal('="');
|
|
202
|
+
yield* escaped(document.text(inherited));
|
|
203
|
+
yield* literal('"');
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
async function* markup() {
|
|
207
|
+
let remaining = node.name.length + 1;
|
|
208
|
+
for await (const bytes of document.markup(node)) {
|
|
209
|
+
if (remaining) {
|
|
210
|
+
const size = Math.min(remaining, bytes.length);
|
|
211
|
+
yield bytes.subarray(0, size);
|
|
212
|
+
remaining -= size;
|
|
213
|
+
if (!remaining) yield* declarations();
|
|
214
|
+
if (size < bytes.length) yield bytes.subarray(size);
|
|
215
|
+
} else yield bytes;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
let count = 0;
|
|
219
|
+
const decoder = new TextDecoder();
|
|
220
|
+
for await (const bytes of markup()) {
|
|
221
|
+
count += decoder.decode(bytes, { stream: true }).length;
|
|
222
|
+
if (count > maxCharacters) throw new OfficeError("resource-limit", "XML resource limit exceeded.", "parse");
|
|
223
|
+
yield bytes;
|
|
224
|
+
}
|
|
225
|
+
count += decoder.decode().length;
|
|
226
|
+
if (count > maxCharacters) throw new OfficeError("resource-limit", "XML resource limit exceeded.", "parse");
|
|
227
|
+
}
|
|
228
|
+
async function openRetainedPresentationSettings(archive, fingerprint, settings2) {
|
|
229
|
+
const context = { ...resolveOfficeResources(settings2), workingStorage: { ...settings2.workingStorage } };
|
|
230
|
+
const index = await openRetainedPresentationIndex(archive, fingerprint, context), owned = [index];
|
|
231
|
+
let closed = false, closing;
|
|
232
|
+
const close = () => {
|
|
233
|
+
closed = true;
|
|
234
|
+
return closing ??= (async () => {
|
|
235
|
+
const results = await Promise.allSettled(owned.map((item) => item.close()));
|
|
236
|
+
for (const result of results) if (result.status === "rejected") throw result.reason;
|
|
237
|
+
})();
|
|
238
|
+
};
|
|
239
|
+
const check = () => {
|
|
240
|
+
if (closed) throw new OfficeError("invalid-handle", "Settings are closed.", "index");
|
|
241
|
+
if (context.signal?.aborted) throw new OfficeError("cancelled", "Operation cancelled.", "index");
|
|
242
|
+
};
|
|
243
|
+
try {
|
|
244
|
+
const validation = await openRetainedPresentationValidation(archive, context, { ...context.xmlLimits, ...context.relationshipLimits, maxBytes: Math.min(context.xmlLimits.maxBytes, context.relationshipLimits.maxBytes), maxEntries: context.archiveLimits.maxMembers });
|
|
245
|
+
const valid = validation.valid;
|
|
246
|
+
try {
|
|
247
|
+
await validation.close();
|
|
248
|
+
} catch (error) {
|
|
249
|
+
if (valid) await Promise.reject(error);
|
|
250
|
+
}
|
|
251
|
+
if (!valid) throw new OfficeError("invalid-opc", "Settings require a valid presentation graph.", "validate-intent");
|
|
252
|
+
const types = await openRetainedContentTypes(archive.read("/[Content_Types].xml"), context);
|
|
253
|
+
owned.push(types);
|
|
254
|
+
const main = await openRetainedXmlDocument(archive.read(index.records.main), context);
|
|
255
|
+
owned.push(main);
|
|
256
|
+
let dialect = dialects[0];
|
|
257
|
+
for (const candidate of dialects) if (await equal(main.namespace(main.root), literal(candidate.p))) dialect = candidate;
|
|
258
|
+
async function related(kind) {
|
|
259
|
+
let count2 = 0, external = false, part;
|
|
260
|
+
for await (const edge of index.graph.outgoing(index.records.main)) if (await equal(edge.type(), literal(`${dialect.r}/${kind}`))) {
|
|
261
|
+
count2++;
|
|
262
|
+
external ||= edge.external;
|
|
263
|
+
if (edge.targetPart) {
|
|
264
|
+
const decoder = new TextDecoder();
|
|
265
|
+
part = "";
|
|
266
|
+
for await (const bytes of edge.targetPart()) part += decoder.decode(bytes, { stream: true });
|
|
267
|
+
part += decoder.decode();
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
const label = kind === "presProps" ? "presentation" : "view";
|
|
271
|
+
if (count2 > 1 || external) invalid(`Ambiguous ${label} properties.`);
|
|
272
|
+
if (!part) return void 0;
|
|
273
|
+
if (!await equal(await types.get(part), literal(`application/vnd.openxmlformats-officedocument.presentationml.${kind}+xml`))) invalid(`Invalid ${label} properties content type.`);
|
|
274
|
+
const document = await openRetainedXmlDocument(archive.read(part), context);
|
|
275
|
+
owned.push(document);
|
|
276
|
+
if (!await equal(document.namespace(document.root), literal(dialect.p)) || !await equal(document.raw(document.root.localName), literal(kind === "presProps" ? "presentationPr" : "viewPr"))) invalid(`Invalid ${label} properties root.`);
|
|
277
|
+
return { part, document };
|
|
278
|
+
}
|
|
279
|
+
const properties = await related("presProps"), view = await related("viewProps");
|
|
280
|
+
const viewXml = view ? () => standalone(view.document, view.document.root, context.xmlLimits.maxBytes) : void 0;
|
|
281
|
+
if (viewXml) for await (const ignored of viewXml()) check();
|
|
282
|
+
const print = properties && await child2(properties.document, properties.document.root, "prnPr");
|
|
283
|
+
const slide = await child2(main, main.root, "sldSz"), notes = await child2(main, main.root, "notesSz");
|
|
284
|
+
const width = await numeric(main, slide, "cx"), height = await numeric(main, slide, "cy"), notesWidth = await numeric(main, notes, "cx"), notesHeight = await numeric(main, notes, "cy");
|
|
285
|
+
const show = properties && await child2(properties.document, properties.document.root, "showPr");
|
|
286
|
+
const loopAttribute = show && await attribute(properties.document, show, "loop");
|
|
287
|
+
let loop = "";
|
|
288
|
+
if (loopAttribute) {
|
|
289
|
+
let trailing = false;
|
|
290
|
+
for await (const character of characters(properties.document.text(loopAttribute))) {
|
|
291
|
+
if (character.trim() === "") {
|
|
292
|
+
if (loop) trailing = true;
|
|
293
|
+
continue;
|
|
294
|
+
}
|
|
295
|
+
if (trailing || loop.length >= 5) invalid("Invalid slideshow loop setting.");
|
|
296
|
+
loop += character;
|
|
297
|
+
}
|
|
298
|
+
if (!["0", "1", "true", "false"].includes(loop)) invalid("Invalid slideshow loop setting.");
|
|
299
|
+
}
|
|
300
|
+
let mode = "", count = 0;
|
|
301
|
+
if (show) {
|
|
302
|
+
for (const name of ["present", "browse", "kiosk"]) if (await child2(properties.document, show, name)) {
|
|
303
|
+
mode = name;
|
|
304
|
+
count++;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
if (count > 1) invalid("Ambiguous slideshow mode.");
|
|
308
|
+
const slideNumberStart = await numeric(main, main.root, "firstSlideNum") ?? 1;
|
|
309
|
+
if (slideNumberStart < -2147483648 || slideNumberStart > 2147483647) invalid("Invalid slide numbering value.");
|
|
310
|
+
const printXml = print ? () => standalone(properties.document, print, context.xmlLimits.maxBytes) : void 0;
|
|
311
|
+
if (printXml) for await (const ignored of printXml()) check();
|
|
312
|
+
const value = {
|
|
313
|
+
width,
|
|
314
|
+
height,
|
|
315
|
+
orientation: width === null || height === null ? null : width >= height ? "landscape" : "portrait",
|
|
316
|
+
notesWidth,
|
|
317
|
+
notesHeight,
|
|
318
|
+
notesOrientation: notesWidth === null || notesHeight === null ? null : notesWidth >= notesHeight ? "landscape" : "portrait",
|
|
319
|
+
slideNumberStart,
|
|
320
|
+
loop: loop === "1" || loop === "true",
|
|
321
|
+
showType: mode === "browse" ? "window" : mode === "kiosk" ? "kiosk" : "speaker",
|
|
322
|
+
printProperties: printXml ? { part: properties.part, xml: printXml } : null,
|
|
323
|
+
viewProperties: viewXml ? { part: view.part, xml: viewXml } : null
|
|
324
|
+
};
|
|
325
|
+
check();
|
|
326
|
+
return Object.freeze({ close, settings() {
|
|
327
|
+
check();
|
|
328
|
+
return value;
|
|
329
|
+
}, async *locations() {
|
|
330
|
+
check();
|
|
331
|
+
for await (const record of index.records.records("part")) if (record.scope === "presentation") yield record.location;
|
|
332
|
+
check();
|
|
333
|
+
} });
|
|
334
|
+
} catch (error) {
|
|
335
|
+
await close().catch(() => {
|
|
336
|
+
});
|
|
337
|
+
throw error instanceof OfficeError ? error : new OfficeError(context.signal?.aborted ? "cancelled" : "io-failure", "Settings storage operation failed.", "index");
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
async function* pretty(value, depth = 0) {
|
|
341
|
+
if (value && typeof value === "object") {
|
|
342
|
+
const array = Array.isArray(value), entries = array ? value.map((item, i) => [String(i), item]) : Object.entries(value);
|
|
343
|
+
yield* literal(array ? "[\n" : "{\n");
|
|
344
|
+
let first = true;
|
|
345
|
+
for (const [key, item] of entries) {
|
|
346
|
+
if (!first) yield* literal(",\n");
|
|
347
|
+
first = false;
|
|
348
|
+
yield* literal(" ".repeat(depth + 1));
|
|
349
|
+
if (!array) yield* literal(JSON.stringify(key) + ": ");
|
|
350
|
+
yield* pretty(item, depth + 1);
|
|
351
|
+
}
|
|
352
|
+
yield* literal("\n" + " ".repeat(depth) + (array ? "]" : "}"));
|
|
353
|
+
} else yield* streamJson(value);
|
|
354
|
+
}
|
|
355
|
+
async function stageRetainedPresentationSettings(archive, fingerprint, settings2, output) {
|
|
356
|
+
const format = { ...output };
|
|
357
|
+
if (!["settings.list", "settings.get"].includes(format.operation)) throw new OfficeError("invalid-value", "Invalid settings read operation.", "usage");
|
|
358
|
+
const view = await openRetainedPresentationSettings(archive, fingerprint, settings2);
|
|
359
|
+
let staged;
|
|
360
|
+
try {
|
|
361
|
+
const data = { fingerprint, ...format.operation === "settings.list" ? { records: [view.settings()] } : { settings: view.settings() } };
|
|
362
|
+
async function* render() {
|
|
363
|
+
if (format.json) yield* streamJson({ version: 1, operation: format.operation, ok: true, data, warnings: [], errors: [], affected: 0, locations: view.locations() });
|
|
364
|
+
else yield* pretty(data);
|
|
365
|
+
yield* literal("\n");
|
|
366
|
+
}
|
|
367
|
+
staged = await stageRetainedOutput(render(), settings2, format.maxOutputBytes);
|
|
368
|
+
await view.close();
|
|
369
|
+
return staged;
|
|
370
|
+
} catch (error) {
|
|
371
|
+
await Promise.allSettled([view.close(), staged?.close()]);
|
|
372
|
+
throw error;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
|
|
122
376
|
// packages/safe-bash-presentation-engine/src/presentation-settings.ts
|
|
123
|
-
var
|
|
377
|
+
var dialects2 = [
|
|
124
378
|
{
|
|
125
379
|
p: "http://schemas.openxmlformats.org/presentationml/2006/main",
|
|
126
380
|
r: "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
@@ -133,7 +387,7 @@ var dialects = [
|
|
|
133
387
|
function escapeAttribute(value) {
|
|
134
388
|
return [...value].map((c) => ({ "&": "&", "<": "<", '"': """ })[c] ?? c).join("");
|
|
135
389
|
}
|
|
136
|
-
function
|
|
390
|
+
function invalid2(message) {
|
|
137
391
|
throw new OfficeError("invalid-value", message, "usage");
|
|
138
392
|
}
|
|
139
393
|
function unsupported2(message) {
|
|
@@ -142,7 +396,7 @@ function unsupported2(message) {
|
|
|
142
396
|
function attr(node, localName) {
|
|
143
397
|
return node.attributes.find((a) => a.name.namespace === "" && a.name.localName === localName)?.value;
|
|
144
398
|
}
|
|
145
|
-
function
|
|
399
|
+
function child3(node, name) {
|
|
146
400
|
const found = node.children.filter(
|
|
147
401
|
(c) => c.name.namespace === node.name.namespace && c.name.localName === name
|
|
148
402
|
);
|
|
@@ -150,7 +404,7 @@ function child2(node, name) {
|
|
|
150
404
|
throw new OfficeError("invalid-opc", "Duplicate presentation setting.", "index");
|
|
151
405
|
return found[0];
|
|
152
406
|
}
|
|
153
|
-
function
|
|
407
|
+
function numeric2(value) {
|
|
154
408
|
if (value === void 0) return null;
|
|
155
409
|
const text = value.trim();
|
|
156
410
|
if (!text || [...text].some((c, i) => !(c >= "0" && c <= "9") && !(i === 0 && (c === "-" || c === "+"))) || !Number.isSafeInteger(Number(text)))
|
|
@@ -159,7 +413,7 @@ function numeric(value) {
|
|
|
159
413
|
}
|
|
160
414
|
async function load(input, context) {
|
|
161
415
|
if (!context?.xmlLimits || !context.relationshipLimits)
|
|
162
|
-
|
|
416
|
+
invalid2("Explicit XML and relationship limits are required.");
|
|
163
417
|
const source = await readBinary(input, context);
|
|
164
418
|
const reader = await readPackage(source, context);
|
|
165
419
|
const limits = {
|
|
@@ -176,9 +430,9 @@ async function load(input, context) {
|
|
|
176
430
|
);
|
|
177
431
|
const types = parseContentTypes(reader.get("/[Content_Types].xml"), limits);
|
|
178
432
|
const graph = readRelationshipGraph(reader, context.relationshipLimits);
|
|
179
|
-
const main = graph.outgoing("/").find((e) =>
|
|
433
|
+
const main = graph.outgoing("/").find((e) => dialects2.some((d) => e.type === `${d.r}/officeDocument`)).targetPart;
|
|
180
434
|
const document = parseXmlPart(reader.get(main), context.xmlLimits);
|
|
181
|
-
const dialect =
|
|
435
|
+
const dialect = dialects2.find((d) => d.p === document.root.name.namespace);
|
|
182
436
|
const properties = graph.outgoing(main).filter((e) => e.type === `${dialect.r}/presProps`);
|
|
183
437
|
if (properties.length > 1 || properties.some((e) => e.external))
|
|
184
438
|
throw new OfficeError("invalid-opc", "Ambiguous presentation properties.", "index");
|
|
@@ -191,16 +445,16 @@ async function load(input, context) {
|
|
|
191
445
|
return { source, reader, limits, graph, main, document, dialect, propertyPart, propertyDocument };
|
|
192
446
|
}
|
|
193
447
|
function settings(document, properties) {
|
|
194
|
-
const slide =
|
|
195
|
-
const width = slide ?
|
|
196
|
-
const notesWidth = notes ?
|
|
197
|
-
const show = properties &&
|
|
448
|
+
const slide = child3(document, "sldSz"), notes = child3(document, "notesSz");
|
|
449
|
+
const width = slide ? numeric2(attr(slide, "cx")) : null, height = slide ? numeric2(attr(slide, "cy")) : null;
|
|
450
|
+
const notesWidth = notes ? numeric2(attr(notes, "cx")) : null, notesHeight = notes ? numeric2(attr(notes, "cy")) : null;
|
|
451
|
+
const show = properties && child3(properties, "showPr");
|
|
198
452
|
const loop = show && attr(show, "loop")?.trim();
|
|
199
453
|
if (loop !== void 0 && !["0", "1", "true", "false"].includes(loop.trim()))
|
|
200
454
|
throw new OfficeError("invalid-opc", "Invalid slideshow loop setting.", "index");
|
|
201
|
-
const modes = show ? ["present", "browse", "kiosk"].filter((n) =>
|
|
455
|
+
const modes = show ? ["present", "browse", "kiosk"].filter((n) => child3(show, n)) : [];
|
|
202
456
|
if (modes.length > 1) throw new OfficeError("invalid-opc", "Ambiguous slideshow mode.", "index");
|
|
203
|
-
const slideNumberStart =
|
|
457
|
+
const slideNumberStart = numeric2(attr(document, "firstSlideNum")) ?? 1;
|
|
204
458
|
if (slideNumberStart < -2147483648 || slideNumberStart > 2147483647)
|
|
205
459
|
throw new OfficeError("invalid-opc", "Invalid slide numbering value.", "index");
|
|
206
460
|
return {
|
|
@@ -232,7 +486,7 @@ async function readPresentationSettings(input, context) {
|
|
|
232
486
|
throw new OfficeError("invalid-opc", "Invalid view properties root.", "index");
|
|
233
487
|
viewProperties = { part: viewPart, xml: view.markup(view.root, true) };
|
|
234
488
|
}
|
|
235
|
-
const print = propertyDocument &&
|
|
489
|
+
const print = propertyDocument && child3(propertyDocument.root, "prnPr");
|
|
236
490
|
return {
|
|
237
491
|
...settings(loaded.document.root, propertyDocument?.root),
|
|
238
492
|
printProperties: print ? { part: propertyPart, xml: propertyDocument.markup(print, true) } : null,
|
|
@@ -264,19 +518,19 @@ function applyPresentationCanvasSettings(document, options, propertyDocument) {
|
|
|
264
518
|
if (w === void 0 && h === void 0 && o === void 0) continue;
|
|
265
519
|
let width = w ?? pw, height = h ?? ph;
|
|
266
520
|
if (width === null || height === null)
|
|
267
|
-
|
|
521
|
+
invalid2("Both dimensions are required when canvas dimensions are absent.");
|
|
268
522
|
if (o === "portrait" && width === height)
|
|
269
|
-
|
|
523
|
+
invalid2("Square dimensions have landscape orientation.");
|
|
270
524
|
if (o && (o === "landscape" ? width < height : width > height)) {
|
|
271
525
|
if (w !== void 0 || h !== void 0)
|
|
272
|
-
|
|
526
|
+
invalid2("Explicit dimensions contradict orientation.");
|
|
273
527
|
[width, height] = [height, width];
|
|
274
528
|
}
|
|
275
529
|
const slideSize = name === "sldSz";
|
|
276
530
|
if ([width, height].some(
|
|
277
531
|
(value) => !Number.isSafeInteger(value) || value < (slideSize ? 914400 : 0) || value > (slideSize ? 51206400 : 27273042316900)
|
|
278
532
|
))
|
|
279
|
-
|
|
533
|
+
invalid2("Resulting canvas dimensions are outside supported edit bounds.");
|
|
280
534
|
dimensions.push({
|
|
281
535
|
name: pn(name),
|
|
282
536
|
merge: {
|
|
@@ -329,24 +583,24 @@ async function mutatePresentationSettings(input, options, context) {
|
|
|
329
583
|
"scaleContent"
|
|
330
584
|
];
|
|
331
585
|
if (!options || typeof options !== "object" || ![Object.prototype, null].includes(Object.getPrototypeOf(options)) || Object.keys(options).some((k) => !keys.includes(k)))
|
|
332
|
-
|
|
586
|
+
invalid2("Invalid presentation settings object.");
|
|
333
587
|
if (!Object.entries(options).some(([key, value]) => key !== "scaleContent" && value !== void 0))
|
|
334
|
-
|
|
588
|
+
invalid2("At least one setting is required.");
|
|
335
589
|
for (const key of ["orientation", "notesOrientation"])
|
|
336
590
|
if (options[key] !== void 0 && !["portrait", "landscape"].includes(options[key]))
|
|
337
|
-
|
|
591
|
+
invalid2("Invalid orientation.");
|
|
338
592
|
for (const key of ["width", "height", "notesWidth", "notesHeight"]) {
|
|
339
593
|
const value = options[key];
|
|
340
594
|
const slide = key === "width" || key === "height";
|
|
341
595
|
if (value !== void 0 && (!Number.isSafeInteger(value) || value < (slide ? 914400 : 0) || value > (slide ? 51206400 : 27273042316900)))
|
|
342
|
-
|
|
596
|
+
invalid2("Invalid EMU dimensions.");
|
|
343
597
|
}
|
|
344
598
|
if (options.slideNumberStart !== void 0 && (!Number.isSafeInteger(options.slideNumberStart) || options.slideNumberStart < -2147483648 || options.slideNumberStart > 2147483647))
|
|
345
|
-
|
|
599
|
+
invalid2("Slide numbering requires a signed 32-bit integer.");
|
|
346
600
|
for (const value of [options.loop, options.scaleContent])
|
|
347
|
-
if (value !== void 0 && typeof value !== "boolean")
|
|
601
|
+
if (value !== void 0 && typeof value !== "boolean") invalid2("Expected a boolean setting.");
|
|
348
602
|
if (options.showType !== void 0 && !["speaker", "window", "kiosk"].includes(options.showType))
|
|
349
|
-
|
|
603
|
+
invalid2("Invalid slideshow type.");
|
|
350
604
|
const loaded = await load(input, context);
|
|
351
605
|
const { reader, graph, main, dialect, limits, source } = loaded;
|
|
352
606
|
const pn = (localName) => ({ namespace: dialect.p, localName });
|
|
@@ -369,7 +623,7 @@ async function mutatePresentationSettings(input, options, context) {
|
|
|
369
623
|
const changes = /* @__PURE__ */ new Map([[main, document.bytes()]]);
|
|
370
624
|
if (options.scaleContent) {
|
|
371
625
|
if (options.width === void 0 && options.height === void 0 && options.orientation === void 0)
|
|
372
|
-
|
|
626
|
+
invalid2("Content scaling requires a slide canvas change.");
|
|
373
627
|
const next = settings(document.root, loaded.propertyDocument?.root);
|
|
374
628
|
if (!previous.width || !previous.height || !next.width || !next.height)
|
|
375
629
|
unsupported2("Content scaling requires complete nonzero slide dimensions.");
|
|
@@ -475,6 +729,8 @@ async function mutatePresentationSettings(input, options, context) {
|
|
|
475
729
|
}
|
|
476
730
|
|
|
477
731
|
export {
|
|
732
|
+
openRetainedPresentationSettings,
|
|
733
|
+
stageRetainedPresentationSettings,
|
|
478
734
|
readPresentationSettings,
|
|
479
735
|
applyPresentationCanvasSettings,
|
|
480
736
|
mutatePresentationSettings
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
readShapePath,
|
|
4
4
|
shapePathXml,
|
|
5
5
|
validateShapePath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-R6X63VAO.js";
|
|
7
7
|
import {
|
|
8
8
|
addShape,
|
|
9
9
|
nodeFor,
|
|
10
10
|
selected,
|
|
11
11
|
validateSelection
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YW7WU7W2.js";
|
|
13
13
|
import {
|
|
14
14
|
validateShapeOptions
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NZF56C25.js";
|
|
16
16
|
import {
|
|
17
17
|
Length
|
|
18
18
|
} from "./chunk-B6XTAKKQ.js";
|
|
19
19
|
import {
|
|
20
20
|
loadShared,
|
|
21
21
|
required
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-A32PUWYE.js";
|
|
23
23
|
import {
|
|
24
24
|
SelectionError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-3W3HLPCX.js";
|
|
26
26
|
import {
|
|
27
27
|
OfficeError
|
|
28
28
|
} from "./chunk-KM2SMMXZ.js";
|