@archipelagolab/lobi 1.0.5 → 1.0.6
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/APEv2Parser-FYYGMFPI.js +15 -0
- package/dist/APEv2Parser-FYYGMFPI.js.map +7 -0
- package/dist/AiffParser-JHSDQA7T.js +194 -0
- package/dist/AiffParser-JHSDQA7T.js.map +7 -0
- package/dist/AsfParser-TPCQDEJB.js +620 -0
- package/dist/AsfParser-TPCQDEJB.js.map +7 -0
- package/dist/DsdiffParser-CGD3C3TL.js +192 -0
- package/dist/DsdiffParser-CGD3C3TL.js.map +7 -0
- package/dist/DsfParser-3UTIJVNF.js +114 -0
- package/dist/DsfParser-3UTIJVNF.js.map +7 -0
- package/dist/FlacParser-HLLYPJ76.js +16 -0
- package/dist/FlacParser-HLLYPJ76.js.map +7 -0
- package/dist/MP4Parser-SM7HYL3Z.js +1145 -0
- package/dist/MP4Parser-SM7HYL3Z.js.map +7 -0
- package/dist/MatroskaParser-X7WRZ6D4.js +662 -0
- package/dist/MatroskaParser-X7WRZ6D4.js.map +7 -0
- package/dist/MpegParser-KXQEC6KD.js +652 -0
- package/dist/MpegParser-KXQEC6KD.js.map +7 -0
- package/dist/MusepackParser-NURI46TG.js +331 -0
- package/dist/MusepackParser-NURI46TG.js.map +7 -0
- package/dist/OggParser-5IYVBXPS.js +448 -0
- package/dist/OggParser-5IYVBXPS.js.map +7 -0
- package/dist/WavPackParser-RTEHKSJH.js +209 -0
- package/dist/WavPackParser-RTEHKSJH.js.map +7 -0
- package/dist/WaveParser-3R2NLXGP.js +300 -0
- package/dist/WaveParser-3R2NLXGP.js.map +7 -0
- package/dist/auth-presence.js +2 -2
- package/dist/channel-plugin-api.js +68 -68
- package/dist/chunk-2GFROLI2.js +261 -0
- package/dist/chunk-2GFROLI2.js.map +7 -0
- package/dist/chunk-2IQWKATM.js +127 -0
- package/dist/chunk-2IQWKATM.js.map +7 -0
- package/dist/chunk-2V6Y4CAN.js +25 -0
- package/dist/chunk-2V6Y4CAN.js.map +7 -0
- package/dist/chunk-2WHRUMOM.js +321 -0
- package/dist/chunk-2WHRUMOM.js.map +7 -0
- package/dist/chunk-3GIK7SAA.js +109 -0
- package/dist/chunk-3GIK7SAA.js.map +7 -0
- package/dist/chunk-3OXOEMBS.js +123 -0
- package/dist/chunk-3OXOEMBS.js.map +7 -0
- package/dist/chunk-3R4ATE4Q.js +176 -0
- package/dist/chunk-3R4ATE4Q.js.map +7 -0
- package/dist/chunk-4CFQNJ7F.js +7 -0
- package/dist/chunk-4CFQNJ7F.js.map +7 -0
- package/dist/chunk-4COI4L2Y.js +31 -0
- package/dist/chunk-4COI4L2Y.js.map +7 -0
- package/dist/chunk-4EKKDVG3.js +1662 -0
- package/dist/chunk-4EKKDVG3.js.map +7 -0
- package/dist/chunk-4L2QI6AY.js +71 -0
- package/dist/chunk-4L2QI6AY.js.map +7 -0
- package/dist/chunk-4OXPPDV6.js +676 -0
- package/dist/chunk-4OXPPDV6.js.map +7 -0
- package/dist/chunk-4QTZHELX.js +51 -0
- package/dist/chunk-4QTZHELX.js.map +7 -0
- package/dist/chunk-4U42OJMK.js +217 -0
- package/dist/chunk-4U42OJMK.js.map +7 -0
- package/dist/chunk-4WCKVGQ5.js +193 -0
- package/dist/chunk-4WCKVGQ5.js.map +7 -0
- package/dist/chunk-4XXERLFH.js +95 -0
- package/dist/chunk-4XXERLFH.js.map +7 -0
- package/dist/chunk-4ZY2BOQ4.js +123 -0
- package/dist/chunk-4ZY2BOQ4.js.map +7 -0
- package/dist/chunk-57ROEOHB.js +183 -0
- package/dist/chunk-57ROEOHB.js.map +7 -0
- package/dist/chunk-5BQ6LLNU.js +39 -0
- package/dist/chunk-5BQ6LLNU.js.map +7 -0
- package/dist/chunk-63QTHDJL.js +52 -0
- package/dist/chunk-63QTHDJL.js.map +7 -0
- package/dist/chunk-65UUVZ6B.js +151 -0
- package/dist/chunk-65UUVZ6B.js.map +7 -0
- package/dist/chunk-6COVTMAO.js +3586 -0
- package/dist/chunk-6COVTMAO.js.map +7 -0
- package/dist/chunk-6EYPDJUD.js +34 -0
- package/dist/chunk-6EYPDJUD.js.map +7 -0
- package/dist/chunk-6HDYPVA4.js +15 -0
- package/dist/chunk-6HDYPVA4.js.map +7 -0
- package/dist/chunk-6OP3FK5F.js +266 -0
- package/dist/chunk-6OP3FK5F.js.map +7 -0
- package/dist/chunk-6RBDFNSX.js +88 -0
- package/dist/chunk-6RBDFNSX.js.map +7 -0
- package/dist/chunk-6TWWCETB.js +70 -0
- package/dist/chunk-6TWWCETB.js.map +7 -0
- package/dist/chunk-6WFHPMUF.js +17 -0
- package/dist/chunk-6WFHPMUF.js.map +7 -0
- package/dist/chunk-77BEEAPD.js +86 -0
- package/dist/chunk-77BEEAPD.js.map +7 -0
- package/dist/chunk-77JJ6QJK.js +50 -0
- package/dist/chunk-77JJ6QJK.js.map +7 -0
- package/dist/chunk-7BIUNV33.js +62 -0
- package/dist/chunk-7BIUNV33.js.map +7 -0
- package/dist/chunk-7L37R42D.js +52 -0
- package/dist/chunk-7L37R42D.js.map +7 -0
- package/dist/chunk-7ZP3KYVO.js +104 -0
- package/dist/chunk-7ZP3KYVO.js.map +7 -0
- package/dist/chunk-ARGF232V.js +32 -0
- package/dist/chunk-ARGF232V.js.map +7 -0
- package/dist/chunk-ATCJOK3K.js +24 -0
- package/dist/chunk-ATCJOK3K.js.map +7 -0
- package/dist/chunk-AUUABFHL.js +124 -0
- package/dist/chunk-AUUABFHL.js.map +7 -0
- package/dist/chunk-B3NTODO7.js +57 -0
- package/dist/chunk-B3NTODO7.js.map +7 -0
- package/dist/chunk-BM7J2W36.js +86 -0
- package/dist/chunk-BM7J2W36.js.map +7 -0
- package/dist/chunk-CEB5S2Z5.js +127 -0
- package/dist/chunk-CEB5S2Z5.js.map +7 -0
- package/dist/chunk-CEKNTCJD.js +177 -0
- package/dist/chunk-CEKNTCJD.js.map +7 -0
- package/dist/chunk-CGFDIH77.js +94 -0
- package/dist/chunk-CGFDIH77.js.map +7 -0
- package/dist/chunk-CPLEC5LJ.js +26 -0
- package/dist/chunk-CPLEC5LJ.js.map +7 -0
- package/dist/chunk-D4GYYYMW.js +155 -0
- package/dist/chunk-D4GYYYMW.js.map +7 -0
- package/dist/chunk-D64CZG54.js +78 -0
- package/dist/chunk-D64CZG54.js.map +7 -0
- package/dist/chunk-DSGPDHF2.js +737 -0
- package/dist/chunk-DSGPDHF2.js.map +7 -0
- package/dist/chunk-EBXHW7ZO.js +108 -0
- package/dist/chunk-EBXHW7ZO.js.map +7 -0
- package/dist/chunk-EO35SCFP.js +7 -0
- package/dist/chunk-EO35SCFP.js.map +7 -0
- package/dist/chunk-ER2XTD2S.js +271 -0
- package/dist/chunk-ER2XTD2S.js.map +7 -0
- package/dist/chunk-ERXO3674.js +54 -0
- package/dist/chunk-ERXO3674.js.map +7 -0
- package/dist/chunk-F43CC2X2.js +49 -0
- package/dist/chunk-F43CC2X2.js.map +7 -0
- package/dist/chunk-F64TXVJJ.js +158 -0
- package/dist/chunk-F64TXVJJ.js.map +7 -0
- package/dist/chunk-F6APWSAA.js +51 -0
- package/dist/chunk-F6APWSAA.js.map +7 -0
- package/dist/chunk-F7LNS7G3.js +235 -0
- package/dist/chunk-F7LNS7G3.js.map +7 -0
- package/dist/chunk-FCNWR7ZX.js +16352 -0
- package/dist/chunk-FCNWR7ZX.js.map +7 -0
- package/dist/chunk-FFCG5NRU.js +87 -0
- package/dist/chunk-FFCG5NRU.js.map +7 -0
- package/dist/chunk-FJFC6CRR.js +446 -0
- package/dist/chunk-FJFC6CRR.js.map +7 -0
- package/dist/chunk-FK6RGYBB.js +46 -0
- package/dist/chunk-FK6RGYBB.js.map +7 -0
- package/dist/chunk-FMY6KXK6.js +251 -0
- package/dist/chunk-FMY6KXK6.js.map +7 -0
- package/dist/chunk-FPH56SCM.js +21 -0
- package/dist/chunk-FPH56SCM.js.map +7 -0
- package/dist/chunk-FVSH4Z6T.js +173 -0
- package/dist/chunk-FVSH4Z6T.js.map +7 -0
- package/dist/chunk-FVWBLEAD.js +44 -0
- package/dist/chunk-FVWBLEAD.js.map +7 -0
- package/dist/chunk-FYSARMGS.js +93 -0
- package/dist/chunk-FYSARMGS.js.map +7 -0
- package/dist/chunk-FZJOJ6P4.js +28 -0
- package/dist/chunk-FZJOJ6P4.js.map +7 -0
- package/dist/chunk-G46GHNDU.js +4890 -0
- package/dist/chunk-G46GHNDU.js.map +7 -0
- package/dist/chunk-G4TIS2SC.js +56 -0
- package/dist/chunk-G4TIS2SC.js.map +7 -0
- package/dist/chunk-GGWS7NQP.js +247 -0
- package/dist/chunk-GGWS7NQP.js.map +7 -0
- package/dist/chunk-GRBJYAYF.js +129 -0
- package/dist/chunk-GRBJYAYF.js.map +7 -0
- package/dist/chunk-GXDQGBA2.js +106 -0
- package/dist/chunk-GXDQGBA2.js.map +7 -0
- package/dist/chunk-H2HY73I6.js +122 -0
- package/dist/chunk-H2HY73I6.js.map +7 -0
- package/dist/chunk-H5MLA6PA.js +29 -0
- package/dist/chunk-H5MLA6PA.js.map +7 -0
- package/dist/chunk-H7KAUMBC.js +635 -0
- package/dist/chunk-H7KAUMBC.js.map +7 -0
- package/dist/chunk-HGHU3TVL.js +174 -0
- package/dist/chunk-HGHU3TVL.js.map +7 -0
- package/dist/chunk-HJ5E2JRL.js +88 -0
- package/dist/chunk-HJ5E2JRL.js.map +7 -0
- package/dist/chunk-HJW3CKZL.js +94 -0
- package/dist/chunk-HJW3CKZL.js.map +7 -0
- package/dist/chunk-HKF5EBER.js +418 -0
- package/dist/chunk-HKF5EBER.js.map +7 -0
- package/dist/chunk-HLUR35G5.js +30 -0
- package/dist/chunk-HLUR35G5.js.map +7 -0
- package/dist/chunk-HNIW2NZU.js +120 -0
- package/dist/chunk-HNIW2NZU.js.map +7 -0
- package/dist/chunk-HSXRCP25.js +171 -0
- package/dist/chunk-HSXRCP25.js.map +7 -0
- package/dist/chunk-I26OPZLO.js +28 -0
- package/dist/chunk-I26OPZLO.js.map +7 -0
- package/dist/chunk-I7JJQ4BQ.js +30 -0
- package/dist/chunk-I7JJQ4BQ.js.map +7 -0
- package/dist/chunk-IJ6Y4W7F.js +392 -0
- package/dist/chunk-IJ6Y4W7F.js.map +7 -0
- package/dist/chunk-IJH4NOQ4.js +18 -0
- package/dist/chunk-IJH4NOQ4.js.map +7 -0
- package/dist/chunk-IMHRZQRH.js +76 -0
- package/dist/chunk-IMHRZQRH.js.map +7 -0
- package/dist/chunk-JB6ZQEVR.js +465 -0
- package/dist/chunk-JB6ZQEVR.js.map +7 -0
- package/dist/chunk-JCWNMWNY.js +102 -0
- package/dist/chunk-JCWNMWNY.js.map +7 -0
- package/dist/chunk-JGIZPU2Y.js +39 -0
- package/dist/chunk-JGIZPU2Y.js.map +7 -0
- package/dist/chunk-JIU4FXA7.js +485 -0
- package/dist/chunk-JIU4FXA7.js.map +7 -0
- package/dist/chunk-JU2Y33DB.js +60 -0
- package/dist/chunk-JU2Y33DB.js.map +7 -0
- package/dist/chunk-JVLRI4RU.js +62 -0
- package/dist/chunk-JVLRI4RU.js.map +7 -0
- package/dist/chunk-JZ3AVNZC.js +44117 -0
- package/dist/chunk-JZ3AVNZC.js.map +7 -0
- package/dist/chunk-K3HEWOHN.js +30 -0
- package/dist/chunk-K3HEWOHN.js.map +7 -0
- package/dist/chunk-K5EK4WZV.js +7 -0
- package/dist/chunk-K5EK4WZV.js.map +7 -0
- package/dist/chunk-KAWXMSYC.js +58 -0
- package/dist/chunk-KAWXMSYC.js.map +7 -0
- package/dist/chunk-KEGPHS4C.js +80 -0
- package/dist/chunk-KEGPHS4C.js.map +7 -0
- package/dist/chunk-KXXVR3DC.js +244 -0
- package/dist/chunk-KXXVR3DC.js.map +7 -0
- package/dist/chunk-L5T6XUDP.js +412 -0
- package/dist/chunk-L5T6XUDP.js.map +7 -0
- package/dist/chunk-LIFXTQ4U.js +7287 -0
- package/dist/chunk-LIFXTQ4U.js.map +7 -0
- package/dist/chunk-LMD5UTKM.js +169 -0
- package/dist/chunk-LMD5UTKM.js.map +7 -0
- package/dist/chunk-LTXNC6JX.js +27 -0
- package/dist/chunk-LTXNC6JX.js.map +7 -0
- package/dist/chunk-LUGTGPT6.js +138 -0
- package/dist/chunk-LUGTGPT6.js.map +7 -0
- package/dist/chunk-LZQFDJNW.js +300 -0
- package/dist/chunk-LZQFDJNW.js.map +7 -0
- package/dist/chunk-M4VQPIF4.js +5853 -0
- package/dist/chunk-M4VQPIF4.js.map +7 -0
- package/dist/chunk-M64QE4QC.js +64 -0
- package/dist/chunk-M64QE4QC.js.map +7 -0
- package/dist/chunk-MJ2GW6SU.js +163 -0
- package/dist/chunk-MJ2GW6SU.js.map +7 -0
- package/dist/chunk-MYSK3SIM.js +55 -0
- package/dist/chunk-MYSK3SIM.js.map +7 -0
- package/dist/chunk-N46MIZXB.js +154 -0
- package/dist/chunk-N46MIZXB.js.map +7 -0
- package/dist/chunk-N53537P6.js +31 -0
- package/dist/chunk-N53537P6.js.map +7 -0
- package/dist/chunk-N5CTFOLX.js +40 -0
- package/dist/chunk-N5CTFOLX.js.map +7 -0
- package/dist/chunk-NIFG55CE.js +52 -0
- package/dist/chunk-NIFG55CE.js.map +7 -0
- package/dist/chunk-NJ63ALPX.js +7 -0
- package/dist/chunk-NJ63ALPX.js.map +7 -0
- package/dist/chunk-NZVHE4IT.js +3101 -0
- package/dist/chunk-NZVHE4IT.js.map +7 -0
- package/dist/chunk-O7ORICEC.js +82 -0
- package/dist/chunk-O7ORICEC.js.map +7 -0
- package/dist/chunk-OBMBAM3N.js +73 -0
- package/dist/chunk-OBMBAM3N.js.map +7 -0
- package/dist/chunk-OJJBD5K3.js +45 -0
- package/dist/chunk-OJJBD5K3.js.map +7 -0
- package/dist/chunk-OKDOVX4B.js +699 -0
- package/dist/chunk-OKDOVX4B.js.map +7 -0
- package/dist/chunk-OVMDMCZ5.js +241 -0
- package/dist/chunk-OVMDMCZ5.js.map +7 -0
- package/dist/chunk-OVU43GJK.js +63 -0
- package/dist/chunk-OVU43GJK.js.map +7 -0
- package/dist/chunk-P3TMARA6.js +18 -0
- package/dist/chunk-P3TMARA6.js.map +7 -0
- package/dist/chunk-PLMOTQ42.js +335 -0
- package/dist/chunk-PLMOTQ42.js.map +7 -0
- package/dist/chunk-Q6H5OV2R.js +180 -0
- package/dist/chunk-Q6H5OV2R.js.map +7 -0
- package/dist/chunk-QAR5POXD.js +472 -0
- package/dist/chunk-QAR5POXD.js.map +7 -0
- package/dist/chunk-R5S76YR5.js +12 -0
- package/dist/chunk-R5S76YR5.js.map +7 -0
- package/dist/chunk-R7ZBOXPS.js +163 -0
- package/dist/chunk-R7ZBOXPS.js.map +7 -0
- package/dist/chunk-RAL3KX76.js +239 -0
- package/dist/chunk-RAL3KX76.js.map +7 -0
- package/dist/chunk-RHITG64O.js +50 -0
- package/dist/chunk-RHITG64O.js.map +7 -0
- package/dist/chunk-RK5HZFP6.js +111 -0
- package/dist/chunk-RK5HZFP6.js.map +7 -0
- package/dist/chunk-RQ26XXFS.js +45 -0
- package/dist/chunk-RQ26XXFS.js.map +7 -0
- package/dist/chunk-RSA7PKZH.js +187 -0
- package/dist/chunk-RSA7PKZH.js.map +7 -0
- package/dist/chunk-RTSINQ4T.js +78 -0
- package/dist/chunk-RTSINQ4T.js.map +7 -0
- package/dist/chunk-SH6Y4CGQ.js +175 -0
- package/dist/chunk-SH6Y4CGQ.js.map +7 -0
- package/dist/chunk-SHBAAFFH.js +74 -0
- package/dist/chunk-SHBAAFFH.js.map +7 -0
- package/dist/chunk-SPNSM6SB.js +36 -0
- package/dist/chunk-SPNSM6SB.js.map +7 -0
- package/dist/chunk-SQUHLLK5.js +125 -0
- package/dist/chunk-SQUHLLK5.js.map +7 -0
- package/dist/chunk-SWWK35VQ.js +84 -0
- package/dist/chunk-SWWK35VQ.js.map +7 -0
- package/dist/chunk-TC5ZVFV6.js +292 -0
- package/dist/chunk-TC5ZVFV6.js.map +7 -0
- package/dist/chunk-TFD7ZIYD.js +105 -0
- package/dist/chunk-TFD7ZIYD.js.map +7 -0
- package/dist/chunk-TH6ONRWT.js +516 -0
- package/dist/chunk-TH6ONRWT.js.map +7 -0
- package/dist/chunk-TMQMQ67T.js +81 -0
- package/dist/chunk-TMQMQ67T.js.map +7 -0
- package/dist/chunk-TPYWUZOR.js +178 -0
- package/dist/chunk-TPYWUZOR.js.map +7 -0
- package/dist/chunk-U2O4LE6S.js +22 -0
- package/dist/chunk-U2O4LE6S.js.map +7 -0
- package/dist/chunk-U44IVNP2.js +91 -0
- package/dist/chunk-U44IVNP2.js.map +7 -0
- package/dist/chunk-UDDWLWKZ.js +82 -0
- package/dist/chunk-UDDWLWKZ.js.map +7 -0
- package/dist/chunk-UMMPB6FL.js +506 -0
- package/dist/chunk-UMMPB6FL.js.map +7 -0
- package/dist/chunk-UP42ACP7.js +27 -0
- package/dist/chunk-UP42ACP7.js.map +7 -0
- package/dist/chunk-UPEF7ETP.js +92 -0
- package/dist/chunk-UPEF7ETP.js.map +7 -0
- package/dist/chunk-VBDLTKI2.js +130 -0
- package/dist/chunk-VBDLTKI2.js.map +7 -0
- package/dist/chunk-VCWIKEJ7.js +7 -0
- package/dist/chunk-VCWIKEJ7.js.map +7 -0
- package/dist/chunk-VPQICZQR.js +93 -0
- package/dist/chunk-VPQICZQR.js.map +7 -0
- package/dist/chunk-VRBJNFPL.js +114 -0
- package/dist/chunk-VRBJNFPL.js.map +7 -0
- package/dist/chunk-VUU5KFH3.js +38 -0
- package/dist/chunk-VUU5KFH3.js.map +7 -0
- package/dist/chunk-VVBL5CFF.js +7 -0
- package/dist/chunk-VVBL5CFF.js.map +7 -0
- package/dist/chunk-VYZEQ6KY.js +22 -0
- package/dist/chunk-VYZEQ6KY.js.map +7 -0
- package/dist/chunk-WBPQVWSU.js +198 -0
- package/dist/chunk-WBPQVWSU.js.map +7 -0
- package/dist/chunk-WS6HWBKT.js +30 -0
- package/dist/chunk-WS6HWBKT.js.map +7 -0
- package/dist/chunk-XOZPOHLG.js +233 -0
- package/dist/chunk-XOZPOHLG.js.map +7 -0
- package/dist/chunk-XR7DPSNX.js +195 -0
- package/dist/chunk-XR7DPSNX.js.map +7 -0
- package/dist/chunk-XYH4JC3U.js +7 -0
- package/dist/chunk-XYH4JC3U.js.map +7 -0
- package/dist/chunk-YB5UCHLN.js +314 -0
- package/dist/chunk-YB5UCHLN.js.map +7 -0
- package/dist/chunk-YF5DYD3X.js +97 -0
- package/dist/chunk-YF5DYD3X.js.map +7 -0
- package/dist/chunk-YGVQZCE7.js +30 -0
- package/dist/chunk-YGVQZCE7.js.map +7 -0
- package/dist/chunk-YNHADHHS.js +138 -0
- package/dist/chunk-YNHADHHS.js.map +7 -0
- package/dist/chunk-YOAMBAM2.js +70 -0
- package/dist/chunk-YOAMBAM2.js.map +7 -0
- package/dist/chunk-YWE5AQPZ.js +258 -0
- package/dist/chunk-YWE5AQPZ.js.map +7 -0
- package/dist/chunk-YWHH3MB6.js +1405 -0
- package/dist/chunk-YWHH3MB6.js.map +7 -0
- package/dist/chunk-YZ6F5N7R.js +455 -0
- package/dist/chunk-YZ6F5N7R.js.map +7 -0
- package/dist/chunk-ZFGRQIB6.js +38 -0
- package/dist/chunk-ZFGRQIB6.js.map +7 -0
- package/dist/chunk-ZGAUVPAB.js +14 -0
- package/dist/chunk-ZGAUVPAB.js.map +7 -0
- package/dist/chunk-ZGCATLM5.js +18 -0
- package/dist/chunk-ZGCATLM5.js.map +7 -0
- package/dist/chunk-ZSOPE7DO.js +92 -0
- package/dist/chunk-ZSOPE7DO.js.map +7 -0
- package/dist/chunk-ZY247PXY.js +135 -0
- package/dist/chunk-ZY247PXY.js.map +7 -0
- package/dist/cli-metadata.js +3 -3
- package/dist/contract-api.js +64 -64
- package/dist/dist-DVBXHDB4.js +549 -0
- package/dist/dist-DVBXHDB4.js.map +7 -0
- package/dist/helper-api.js +6 -6
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/magic-string.es-ITIPPYGW.js +1315 -0
- package/dist/magic-string.es-ITIPPYGW.js.map +7 -0
- package/dist/package.json +1 -1
- package/dist/plugin-entry.handlers.runtime-JLRK5XTV.js +20 -0
- package/dist/plugin-entry.handlers.runtime-JLRK5XTV.js.map +7 -0
- package/dist/runtime-api.js +9 -9
- package/dist/rust-crypto-7KS7OJ3F.js +5323 -0
- package/dist/rust-crypto-7KS7OJ3F.js.map +7 -0
- package/dist/secret-contract-api.js +3 -3
- package/dist/setup-entry.js +2 -3
- package/dist/setup-entry.js.map +1 -1
- package/dist/src/account-selection.js +5 -5
- package/dist/src/actions.js +18 -18
- package/dist/src/approval-auth.js +19 -19
- package/dist/src/approval-handler.runtime.js +55 -55
- package/dist/src/approval-ids.js +3 -3
- package/dist/src/approval-native.js +22 -22
- package/dist/src/approval-reactions.js +2 -2
- package/dist/src/auth-precedence.js +2 -2
- package/dist/src/channel-account-paths.js +3 -3
- package/dist/src/channel.js +68 -68
- package/dist/src/channel.runtime.js +51 -51
- package/dist/src/cli-metadata.js +2 -2
- package/dist/src/cli.js +63 -63
- package/dist/src/config-adapter.js +18 -18
- package/dist/src/config-schema.js +2 -2
- package/dist/src/directory-live.js +27 -27
- package/dist/src/doctor-contract.js +3 -3
- package/dist/src/doctor.js +24 -24
- package/dist/src/env-vars.js +2 -2
- package/dist/src/exec-approval-resolver.js +2 -2
- package/dist/src/exec-approvals.js +20 -20
- package/dist/src/group-mentions.js +20 -20
- package/dist/src/legacy-crypto-inspector-availability.js +2 -2
- package/dist/src/legacy-crypto.js +18 -18
- package/dist/src/legacy-state.js +16 -16
- package/dist/src/matrix/account-config.js +2 -2
- package/dist/src/matrix/accounts.js +16 -16
- package/dist/src/matrix/actions/client.js +30 -30
- package/dist/src/matrix/actions/devices.js +32 -32
- package/dist/src/matrix/actions/limits.js +2 -2
- package/dist/src/matrix/actions/messages.js +37 -37
- package/dist/src/matrix/actions/pins.js +36 -36
- package/dist/src/matrix/actions/polls.js +31 -31
- package/dist/src/matrix/actions/profile.js +32 -32
- package/dist/src/matrix/actions/reactions.js +32 -32
- package/dist/src/matrix/actions/room.js +32 -32
- package/dist/src/matrix/actions/summary.js +9 -9
- package/dist/src/matrix/actions/types.js +3 -3
- package/dist/src/matrix/actions/verification.js +37 -37
- package/dist/src/matrix/actions.js +51 -51
- package/dist/src/matrix/active-client.js +2 -2
- package/dist/src/matrix/async-lock.js +2 -2
- package/dist/src/matrix/backup-health.js +2 -2
- package/dist/src/matrix/client/config-runtime-api.js +3 -3
- package/dist/src/matrix/client/config-secret-input.runtime.js +1 -1
- package/dist/src/matrix/client/config.js +13 -13
- package/dist/src/matrix/client/create-client.js +14 -14
- package/dist/src/matrix/client/env-auth.js +14 -14
- package/dist/src/matrix/client/file-sync-store.js +17 -17
- package/dist/src/matrix/client/logging.js +5 -5
- package/dist/src/matrix/client/migration-snapshot.runtime.js +2 -2
- package/dist/src/matrix/client/private-network-host.js +2 -2
- package/dist/src/matrix/client/runtime.js +2 -2
- package/dist/src/matrix/client/shared.js +16 -16
- package/dist/src/matrix/client/storage.js +8 -8
- package/dist/src/matrix/client/types.js +1 -1
- package/dist/src/matrix/client-bootstrap.js +5 -5
- package/dist/src/matrix/client-resolver.test-helpers.js +2 -2
- package/dist/src/matrix/client.js +19 -19
- package/dist/src/matrix/config-paths.js +2 -2
- package/dist/src/matrix/config-update.js +4 -4
- package/dist/src/matrix/credentials-read.js +8 -8
- package/dist/src/matrix/credentials-write.runtime.js +1 -1
- package/dist/src/matrix/credentials.js +10 -10
- package/dist/src/matrix/deps.js +2 -2
- package/dist/src/matrix/device-health.js +2 -2
- package/dist/src/matrix/direct-management.js +6 -6
- package/dist/src/matrix/direct-room.js +2 -2
- package/dist/src/matrix/draft-stream.js +27 -27
- package/dist/src/matrix/encryption-guidance.js +7 -7
- package/dist/src/matrix/errors.js +2 -2
- package/dist/src/matrix/format.js +3 -3
- package/dist/src/matrix/legacy-crypto-inspector.js +3 -4
- package/dist/src/matrix/legacy-crypto-inspector.js.map +1 -1
- package/dist/src/matrix/media-errors.js +2 -2
- package/dist/src/matrix/media-text.js +2 -2
- package/dist/src/matrix/monitor/access-state.js +3 -3
- package/dist/src/matrix/monitor/ack-config.js +4 -4
- package/dist/src/matrix/monitor/allowlist.js +2 -2
- package/dist/src/matrix/monitor/auto-join.js +3 -3
- package/dist/src/matrix/monitor/config.js +31 -31
- package/dist/src/matrix/monitor/context-summary.js +5 -5
- package/dist/src/matrix/monitor/direct.js +7 -7
- package/dist/src/matrix/monitor/events.js +14 -14
- package/dist/src/matrix/monitor/handler.js +70 -70
- package/dist/src/matrix/monitor/handler.test-helpers.js +71 -71
- package/dist/src/matrix/monitor/inbound-dedupe.js +11 -11
- package/dist/src/matrix/monitor/index.js +100 -100
- package/dist/src/matrix/monitor/legacy-crypto-restore.js +8 -8
- package/dist/src/matrix/monitor/location.js +5 -5
- package/dist/src/matrix/monitor/media.js +4 -4
- package/dist/src/matrix/monitor/mentions.js +3 -3
- package/dist/src/matrix/monitor/reaction-events.js +30 -30
- package/dist/src/matrix/monitor/recent-invite.js +4 -4
- package/dist/src/matrix/monitor/replies.js +27 -27
- package/dist/src/matrix/monitor/reply-context.js +6 -6
- package/dist/src/matrix/monitor/room-history.js +2 -2
- package/dist/src/matrix/monitor/room-info.js +3 -3
- package/dist/src/matrix/monitor/rooms.js +3 -3
- package/dist/src/matrix/monitor/route.js +6 -6
- package/dist/src/matrix/monitor/runtime-api.js +2 -2
- package/dist/src/matrix/monitor/startup-verification.js +9 -9
- package/dist/src/matrix/monitor/startup.js +3 -3
- package/dist/src/matrix/monitor/status.js +4 -4
- package/dist/src/matrix/monitor/sync-lifecycle.js +3 -3
- package/dist/src/matrix/monitor/task-runner.js +2 -2
- package/dist/src/matrix/monitor/thread-context.js +6 -6
- package/dist/src/matrix/monitor/threads.js +4 -4
- package/dist/src/matrix/monitor/types.js +3 -3
- package/dist/src/matrix/monitor/verification-events.js +7 -7
- package/dist/src/matrix/monitor/verification-utils.js +2 -2
- package/dist/src/matrix/outbound-media-runtime.js +3 -3
- package/dist/src/matrix/poll-summary.js +4 -4
- package/dist/src/matrix/poll-types.js +3 -3
- package/dist/src/matrix/probe.js +3 -3
- package/dist/src/matrix/probe.runtime.js +19 -19
- package/dist/src/matrix/profile.js +2 -2
- package/dist/src/matrix/reaction-common.js +2 -2
- package/dist/src/matrix/sdk/crypto-bootstrap.js +9 -9
- package/dist/src/matrix/sdk/crypto-facade.js +2 -2
- package/dist/src/matrix/sdk/crypto-node.runtime.js +2 -3
- package/dist/src/matrix/sdk/crypto-node.runtime.js.map +1 -1
- package/dist/src/matrix/sdk/crypto-runtime.js +16 -16
- package/dist/src/matrix/sdk/decrypt-bridge.js +5 -5
- package/dist/src/matrix/sdk/event-helpers.js +2 -2
- package/dist/src/matrix/sdk/http-client.js +7 -7
- package/dist/src/matrix/sdk/idb-persistence-lock.js +2 -2
- package/dist/src/matrix/sdk/idb-persistence.js +5 -5
- package/dist/src/matrix/sdk/idb-persistence.test-helpers.js +1 -1
- package/dist/src/matrix/sdk/logger.js +3 -3
- package/dist/src/matrix/sdk/read-response-with-limit.js +2 -2
- package/dist/src/matrix/sdk/recovery-key-store.js +6 -6
- package/dist/src/matrix/sdk/transport.js +5 -5
- package/dist/src/matrix/sdk/types.js +1 -1
- package/dist/src/matrix/sdk/verification-manager.js +5 -5
- package/dist/src/matrix/sdk/verification-status.js +2 -2
- package/dist/src/matrix/sdk.js +31 -31
- package/dist/src/matrix/send/client.js +4 -4
- package/dist/src/matrix/send/formatting.js +7 -7
- package/dist/src/matrix/send/media.js +12 -12
- package/dist/src/matrix/send/targets.js +7 -7
- package/dist/src/matrix/send/types.js +3 -3
- package/dist/src/matrix/send.js +26 -26
- package/dist/src/matrix/session-store-metadata.js +3 -3
- package/dist/src/matrix/startup-abort.js +2 -2
- package/dist/src/matrix/sync-state.js +2 -2
- package/dist/src/matrix/target-ids.js +2 -2
- package/dist/src/matrix/thread-bindings-shared.js +2 -2
- package/dist/src/matrix/thread-bindings.js +34 -34
- package/dist/src/matrix-migration.runtime.js +22 -22
- package/dist/src/migration-config.js +15 -15
- package/dist/src/migration-snapshot-backup.js +2 -2
- package/dist/src/migration-snapshot.js +21 -21
- package/dist/src/onboarding.js +37 -37
- package/dist/src/onboarding.test-harness.js +2 -2
- package/dist/src/outbound.js +27 -27
- package/dist/src/plugin-entry.runtime.js +3 -3
- package/dist/src/profile-update.js +35 -35
- package/dist/src/record-shared.js +2 -2
- package/dist/src/resolve-targets.js +28 -28
- package/dist/src/resolver.js +2 -2
- package/dist/src/runtime-api.js +2 -2
- package/dist/src/runtime.js +2 -2
- package/dist/src/secret-contract.js +3 -3
- package/dist/src/session-route.js +19 -19
- package/dist/src/setup-bootstrap.js +46 -46
- package/dist/src/setup-config.js +18 -18
- package/dist/src/setup-contract.js +2 -2
- package/dist/src/setup-core.js +19 -19
- package/dist/src/setup-surface.js +38 -38
- package/dist/src/startup-maintenance.js +23 -23
- package/dist/src/storage-paths.js +2 -2
- package/dist/src/test-helpers.js +1 -1
- package/dist/src/test-mocks.js +2 -2
- package/dist/src/test-runtime.js +3 -3
- package/dist/src/tool-actions.js +62 -62
- package/dist/src/tool-actions.runtime.js +62 -62
- package/dist/src/types.js +1 -1
- package/dist/test-api.js +68 -68
- package/dist/thread-bindings-runtime.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_shims
|
|
3
|
+
} from "./chunk-G4TIS2SC.js";
|
|
4
|
+
|
|
5
|
+
// ../../node_modules/strtok3/lib/stream/Errors.js
|
|
6
|
+
init_shims();
|
|
7
|
+
var defaultMessages = "End-Of-Stream";
|
|
8
|
+
var EndOfStreamError = class extends Error {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(defaultMessages);
|
|
11
|
+
this.name = "EndOfStreamError";
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
var AbortError = class extends Error {
|
|
15
|
+
constructor(message = "The operation was aborted") {
|
|
16
|
+
super(message);
|
|
17
|
+
this.name = "AbortError";
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// ../../node_modules/strtok3/lib/stream/index.js
|
|
22
|
+
init_shims();
|
|
23
|
+
|
|
24
|
+
// ../../node_modules/strtok3/lib/stream/StreamReader.js
|
|
25
|
+
init_shims();
|
|
26
|
+
|
|
27
|
+
// ../../node_modules/strtok3/lib/stream/Deferred.js
|
|
28
|
+
init_shims();
|
|
29
|
+
|
|
30
|
+
// ../../node_modules/strtok3/lib/stream/AbstractStreamReader.js
|
|
31
|
+
init_shims();
|
|
32
|
+
var AbstractStreamReader = class {
|
|
33
|
+
constructor() {
|
|
34
|
+
this.endOfStream = false;
|
|
35
|
+
this.interrupted = false;
|
|
36
|
+
this.peekQueue = [];
|
|
37
|
+
}
|
|
38
|
+
async peek(uint8Array, mayBeLess = false) {
|
|
39
|
+
const bytesRead = await this.read(uint8Array, mayBeLess);
|
|
40
|
+
this.peekQueue.push(uint8Array.subarray(0, bytesRead));
|
|
41
|
+
return bytesRead;
|
|
42
|
+
}
|
|
43
|
+
async read(buffer, mayBeLess = false) {
|
|
44
|
+
if (buffer.length === 0) {
|
|
45
|
+
return 0;
|
|
46
|
+
}
|
|
47
|
+
let bytesRead = this.readFromPeekBuffer(buffer);
|
|
48
|
+
if (!this.endOfStream) {
|
|
49
|
+
bytesRead += await this.readRemainderFromStream(buffer.subarray(bytesRead), mayBeLess);
|
|
50
|
+
}
|
|
51
|
+
if (bytesRead === 0 && !mayBeLess) {
|
|
52
|
+
throw new EndOfStreamError();
|
|
53
|
+
}
|
|
54
|
+
return bytesRead;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Read chunk from stream
|
|
58
|
+
* @param buffer - Target Uint8Array (or Buffer) to store data read from stream in
|
|
59
|
+
* @returns Number of bytes read
|
|
60
|
+
*/
|
|
61
|
+
readFromPeekBuffer(buffer) {
|
|
62
|
+
let remaining = buffer.length;
|
|
63
|
+
let bytesRead = 0;
|
|
64
|
+
while (this.peekQueue.length > 0 && remaining > 0) {
|
|
65
|
+
const peekData = this.peekQueue.pop();
|
|
66
|
+
if (!peekData)
|
|
67
|
+
throw new Error("peekData should be defined");
|
|
68
|
+
const lenCopy = Math.min(peekData.length, remaining);
|
|
69
|
+
buffer.set(peekData.subarray(0, lenCopy), bytesRead);
|
|
70
|
+
bytesRead += lenCopy;
|
|
71
|
+
remaining -= lenCopy;
|
|
72
|
+
if (lenCopy < peekData.length) {
|
|
73
|
+
this.peekQueue.push(peekData.subarray(lenCopy));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return bytesRead;
|
|
77
|
+
}
|
|
78
|
+
async readRemainderFromStream(buffer, mayBeLess) {
|
|
79
|
+
let bytesRead = 0;
|
|
80
|
+
while (bytesRead < buffer.length && !this.endOfStream) {
|
|
81
|
+
if (this.interrupted) {
|
|
82
|
+
throw new AbortError();
|
|
83
|
+
}
|
|
84
|
+
const chunkLen = await this.readFromStream(buffer.subarray(bytesRead), mayBeLess);
|
|
85
|
+
if (chunkLen === 0)
|
|
86
|
+
break;
|
|
87
|
+
bytesRead += chunkLen;
|
|
88
|
+
}
|
|
89
|
+
if (!mayBeLess && bytesRead < buffer.length) {
|
|
90
|
+
throw new EndOfStreamError();
|
|
91
|
+
}
|
|
92
|
+
return bytesRead;
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// ../../node_modules/strtok3/lib/stream/WebStreamByobReader.js
|
|
97
|
+
init_shims();
|
|
98
|
+
|
|
99
|
+
// ../../node_modules/strtok3/lib/stream/WebStreamReader.js
|
|
100
|
+
init_shims();
|
|
101
|
+
var WebStreamReader = class extends AbstractStreamReader {
|
|
102
|
+
constructor(reader) {
|
|
103
|
+
super();
|
|
104
|
+
this.reader = reader;
|
|
105
|
+
}
|
|
106
|
+
async abort() {
|
|
107
|
+
return this.close();
|
|
108
|
+
}
|
|
109
|
+
async close() {
|
|
110
|
+
this.reader.releaseLock();
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
// ../../node_modules/strtok3/lib/stream/WebStreamByobReader.js
|
|
115
|
+
var WebStreamByobReader = class extends WebStreamReader {
|
|
116
|
+
/**
|
|
117
|
+
* Read from stream
|
|
118
|
+
* @param buffer - Target Uint8Array (or Buffer) to store data read from stream in
|
|
119
|
+
* @param mayBeLess - If true, may fill the buffer partially
|
|
120
|
+
* @protected Bytes read
|
|
121
|
+
*/
|
|
122
|
+
async readFromStream(buffer, mayBeLess) {
|
|
123
|
+
if (buffer.length === 0)
|
|
124
|
+
return 0;
|
|
125
|
+
const result = await this.reader.read(new Uint8Array(buffer.length), { min: mayBeLess ? void 0 : buffer.length });
|
|
126
|
+
if (result.done) {
|
|
127
|
+
this.endOfStream = result.done;
|
|
128
|
+
}
|
|
129
|
+
if (result.value) {
|
|
130
|
+
buffer.set(result.value);
|
|
131
|
+
return result.value.length;
|
|
132
|
+
}
|
|
133
|
+
return 0;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
// ../../node_modules/strtok3/lib/stream/WebStreamDefaultReader.js
|
|
138
|
+
init_shims();
|
|
139
|
+
var WebStreamDefaultReader = class extends AbstractStreamReader {
|
|
140
|
+
constructor(reader) {
|
|
141
|
+
super();
|
|
142
|
+
this.reader = reader;
|
|
143
|
+
this.buffer = null;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Copy chunk to target, and store the remainder in this.buffer
|
|
147
|
+
*/
|
|
148
|
+
writeChunk(target, chunk) {
|
|
149
|
+
const written = Math.min(chunk.length, target.length);
|
|
150
|
+
target.set(chunk.subarray(0, written));
|
|
151
|
+
if (written < chunk.length) {
|
|
152
|
+
this.buffer = chunk.subarray(written);
|
|
153
|
+
} else {
|
|
154
|
+
this.buffer = null;
|
|
155
|
+
}
|
|
156
|
+
return written;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Read from stream
|
|
160
|
+
* @param buffer - Target Uint8Array (or Buffer) to store data read from stream in
|
|
161
|
+
* @param mayBeLess - If true, may fill the buffer partially
|
|
162
|
+
* @protected Bytes read
|
|
163
|
+
*/
|
|
164
|
+
async readFromStream(buffer, mayBeLess) {
|
|
165
|
+
if (buffer.length === 0)
|
|
166
|
+
return 0;
|
|
167
|
+
let totalBytesRead = 0;
|
|
168
|
+
if (this.buffer) {
|
|
169
|
+
totalBytesRead += this.writeChunk(buffer, this.buffer);
|
|
170
|
+
}
|
|
171
|
+
while (totalBytesRead < buffer.length && !this.endOfStream) {
|
|
172
|
+
const result = await this.reader.read();
|
|
173
|
+
if (result.done) {
|
|
174
|
+
this.endOfStream = true;
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
if (result.value) {
|
|
178
|
+
totalBytesRead += this.writeChunk(buffer.subarray(totalBytesRead), result.value);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (!mayBeLess && totalBytesRead === 0 && this.endOfStream) {
|
|
182
|
+
throw new EndOfStreamError();
|
|
183
|
+
}
|
|
184
|
+
return totalBytesRead;
|
|
185
|
+
}
|
|
186
|
+
abort() {
|
|
187
|
+
this.interrupted = true;
|
|
188
|
+
return this.reader.cancel();
|
|
189
|
+
}
|
|
190
|
+
async close() {
|
|
191
|
+
await this.abort();
|
|
192
|
+
this.reader.releaseLock();
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
// ../../node_modules/strtok3/lib/stream/WebStreamReaderFactory.js
|
|
197
|
+
init_shims();
|
|
198
|
+
function makeWebStreamReader(stream) {
|
|
199
|
+
try {
|
|
200
|
+
const reader = stream.getReader({ mode: "byob" });
|
|
201
|
+
if (reader instanceof ReadableStreamDefaultReader) {
|
|
202
|
+
return new WebStreamDefaultReader(reader);
|
|
203
|
+
}
|
|
204
|
+
return new WebStreamByobReader(reader);
|
|
205
|
+
} catch (error) {
|
|
206
|
+
if (error instanceof TypeError) {
|
|
207
|
+
return new WebStreamDefaultReader(stream.getReader());
|
|
208
|
+
}
|
|
209
|
+
throw error;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// ../../node_modules/strtok3/lib/core.js
|
|
214
|
+
init_shims();
|
|
215
|
+
|
|
216
|
+
// ../../node_modules/strtok3/lib/ReadStreamTokenizer.js
|
|
217
|
+
init_shims();
|
|
218
|
+
|
|
219
|
+
// ../../node_modules/strtok3/lib/AbstractTokenizer.js
|
|
220
|
+
init_shims();
|
|
221
|
+
var AbstractTokenizer = class {
|
|
222
|
+
/**
|
|
223
|
+
* Constructor
|
|
224
|
+
* @param options Tokenizer options
|
|
225
|
+
* @protected
|
|
226
|
+
*/
|
|
227
|
+
constructor(options) {
|
|
228
|
+
this.numBuffer = new Uint8Array(8);
|
|
229
|
+
this.position = 0;
|
|
230
|
+
this.onClose = options?.onClose;
|
|
231
|
+
if (options?.abortSignal) {
|
|
232
|
+
options.abortSignal.addEventListener("abort", () => {
|
|
233
|
+
this.abort();
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Read a token from the tokenizer-stream
|
|
239
|
+
* @param token - The token to read
|
|
240
|
+
* @param position - If provided, the desired position in the tokenizer-stream
|
|
241
|
+
* @returns Promise with token data
|
|
242
|
+
*/
|
|
243
|
+
async readToken(token, position = this.position) {
|
|
244
|
+
const uint8Array = new Uint8Array(token.len);
|
|
245
|
+
const len = await this.readBuffer(uint8Array, { position });
|
|
246
|
+
if (len < token.len)
|
|
247
|
+
throw new EndOfStreamError();
|
|
248
|
+
return token.get(uint8Array, 0);
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Peek a token from the tokenizer-stream.
|
|
252
|
+
* @param token - Token to peek from the tokenizer-stream.
|
|
253
|
+
* @param position - Offset where to begin reading within the file. If position is null, data will be read from the current file position.
|
|
254
|
+
* @returns Promise with token data
|
|
255
|
+
*/
|
|
256
|
+
async peekToken(token, position = this.position) {
|
|
257
|
+
const uint8Array = new Uint8Array(token.len);
|
|
258
|
+
const len = await this.peekBuffer(uint8Array, { position });
|
|
259
|
+
if (len < token.len)
|
|
260
|
+
throw new EndOfStreamError();
|
|
261
|
+
return token.get(uint8Array, 0);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Read a numeric token from the stream
|
|
265
|
+
* @param token - Numeric token
|
|
266
|
+
* @returns Promise with number
|
|
267
|
+
*/
|
|
268
|
+
async readNumber(token) {
|
|
269
|
+
const len = await this.readBuffer(this.numBuffer, { length: token.len });
|
|
270
|
+
if (len < token.len)
|
|
271
|
+
throw new EndOfStreamError();
|
|
272
|
+
return token.get(this.numBuffer, 0);
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Read a numeric token from the stream
|
|
276
|
+
* @param token - Numeric token
|
|
277
|
+
* @returns Promise with number
|
|
278
|
+
*/
|
|
279
|
+
async peekNumber(token) {
|
|
280
|
+
const len = await this.peekBuffer(this.numBuffer, { length: token.len });
|
|
281
|
+
if (len < token.len)
|
|
282
|
+
throw new EndOfStreamError();
|
|
283
|
+
return token.get(this.numBuffer, 0);
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Ignore number of bytes, advances the pointer in under tokenizer-stream.
|
|
287
|
+
* @param length - Number of bytes to ignore. Must be ≥ 0.
|
|
288
|
+
* @return resolves the number of bytes ignored, equals length if this available, otherwise the number of bytes available
|
|
289
|
+
*/
|
|
290
|
+
async ignore(length) {
|
|
291
|
+
if (length < 0) {
|
|
292
|
+
throw new RangeError("ignore length must be \u2265 0 bytes");
|
|
293
|
+
}
|
|
294
|
+
if (this.fileInfo.size !== void 0) {
|
|
295
|
+
const bytesLeft = this.fileInfo.size - this.position;
|
|
296
|
+
if (length > bytesLeft) {
|
|
297
|
+
this.position += bytesLeft;
|
|
298
|
+
return bytesLeft;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
this.position += length;
|
|
302
|
+
return length;
|
|
303
|
+
}
|
|
304
|
+
async close() {
|
|
305
|
+
await this.abort();
|
|
306
|
+
await this.onClose?.();
|
|
307
|
+
}
|
|
308
|
+
normalizeOptions(uint8Array, options) {
|
|
309
|
+
if (!this.supportsRandomAccess() && options && options.position !== void 0 && options.position < this.position) {
|
|
310
|
+
throw new Error("`options.position` must be equal or greater than `tokenizer.position`");
|
|
311
|
+
}
|
|
312
|
+
return {
|
|
313
|
+
...{
|
|
314
|
+
mayBeLess: false,
|
|
315
|
+
offset: 0,
|
|
316
|
+
length: uint8Array.length,
|
|
317
|
+
position: this.position
|
|
318
|
+
},
|
|
319
|
+
...options
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
abort() {
|
|
323
|
+
return Promise.resolve();
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
// ../../node_modules/strtok3/lib/ReadStreamTokenizer.js
|
|
328
|
+
var maxBufferSize = 256e3;
|
|
329
|
+
var ReadStreamTokenizer = class extends AbstractTokenizer {
|
|
330
|
+
/**
|
|
331
|
+
* Constructor
|
|
332
|
+
* @param streamReader stream-reader to read from
|
|
333
|
+
* @param options Tokenizer options
|
|
334
|
+
*/
|
|
335
|
+
constructor(streamReader, options) {
|
|
336
|
+
super(options);
|
|
337
|
+
this.streamReader = streamReader;
|
|
338
|
+
this.fileInfo = options?.fileInfo ?? {};
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Read buffer from tokenizer
|
|
342
|
+
* @param uint8Array - Target Uint8Array to fill with data read from the tokenizer-stream
|
|
343
|
+
* @param options - Read behaviour options
|
|
344
|
+
* @returns Promise with number of bytes read
|
|
345
|
+
*/
|
|
346
|
+
async readBuffer(uint8Array, options) {
|
|
347
|
+
const normOptions = this.normalizeOptions(uint8Array, options);
|
|
348
|
+
const skipBytes = normOptions.position - this.position;
|
|
349
|
+
if (skipBytes > 0) {
|
|
350
|
+
await this.ignore(skipBytes);
|
|
351
|
+
return this.readBuffer(uint8Array, options);
|
|
352
|
+
}
|
|
353
|
+
if (skipBytes < 0) {
|
|
354
|
+
throw new Error("`options.position` must be equal or greater than `tokenizer.position`");
|
|
355
|
+
}
|
|
356
|
+
if (normOptions.length === 0) {
|
|
357
|
+
return 0;
|
|
358
|
+
}
|
|
359
|
+
const bytesRead = await this.streamReader.read(uint8Array.subarray(0, normOptions.length), normOptions.mayBeLess);
|
|
360
|
+
this.position += bytesRead;
|
|
361
|
+
if ((!options || !options.mayBeLess) && bytesRead < normOptions.length) {
|
|
362
|
+
throw new EndOfStreamError();
|
|
363
|
+
}
|
|
364
|
+
return bytesRead;
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Peek (read ahead) buffer from tokenizer
|
|
368
|
+
* @param uint8Array - Uint8Array (or Buffer) to write data to
|
|
369
|
+
* @param options - Read behaviour options
|
|
370
|
+
* @returns Promise with number of bytes peeked
|
|
371
|
+
*/
|
|
372
|
+
async peekBuffer(uint8Array, options) {
|
|
373
|
+
const normOptions = this.normalizeOptions(uint8Array, options);
|
|
374
|
+
let bytesRead = 0;
|
|
375
|
+
if (normOptions.position) {
|
|
376
|
+
const skipBytes = normOptions.position - this.position;
|
|
377
|
+
if (skipBytes > 0) {
|
|
378
|
+
const skipBuffer = new Uint8Array(normOptions.length + skipBytes);
|
|
379
|
+
bytesRead = await this.peekBuffer(skipBuffer, { mayBeLess: normOptions.mayBeLess });
|
|
380
|
+
uint8Array.set(skipBuffer.subarray(skipBytes));
|
|
381
|
+
return bytesRead - skipBytes;
|
|
382
|
+
}
|
|
383
|
+
if (skipBytes < 0) {
|
|
384
|
+
throw new Error("Cannot peek from a negative offset in a stream");
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if (normOptions.length > 0) {
|
|
388
|
+
try {
|
|
389
|
+
bytesRead = await this.streamReader.peek(uint8Array.subarray(0, normOptions.length), normOptions.mayBeLess);
|
|
390
|
+
} catch (err) {
|
|
391
|
+
if (options?.mayBeLess && err instanceof EndOfStreamError) {
|
|
392
|
+
return 0;
|
|
393
|
+
}
|
|
394
|
+
throw err;
|
|
395
|
+
}
|
|
396
|
+
if (!normOptions.mayBeLess && bytesRead < normOptions.length) {
|
|
397
|
+
throw new EndOfStreamError();
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
return bytesRead;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @param length Number of bytes to ignore. Must be ≥ 0.
|
|
404
|
+
*/
|
|
405
|
+
async ignore(length) {
|
|
406
|
+
if (length < 0) {
|
|
407
|
+
throw new RangeError("ignore length must be \u2265 0 bytes");
|
|
408
|
+
}
|
|
409
|
+
const bufSize = Math.min(maxBufferSize, length);
|
|
410
|
+
const buf = new Uint8Array(bufSize);
|
|
411
|
+
let totBytesRead = 0;
|
|
412
|
+
while (totBytesRead < length) {
|
|
413
|
+
const remaining = length - totBytesRead;
|
|
414
|
+
const bytesRead = await this.readBuffer(buf, { length: Math.min(bufSize, remaining) });
|
|
415
|
+
if (bytesRead < 0) {
|
|
416
|
+
return bytesRead;
|
|
417
|
+
}
|
|
418
|
+
totBytesRead += bytesRead;
|
|
419
|
+
}
|
|
420
|
+
return totBytesRead;
|
|
421
|
+
}
|
|
422
|
+
abort() {
|
|
423
|
+
return this.streamReader.abort();
|
|
424
|
+
}
|
|
425
|
+
async close() {
|
|
426
|
+
return this.streamReader.close();
|
|
427
|
+
}
|
|
428
|
+
supportsRandomAccess() {
|
|
429
|
+
return false;
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
// ../../node_modules/strtok3/lib/BufferTokenizer.js
|
|
434
|
+
init_shims();
|
|
435
|
+
var BufferTokenizer = class extends AbstractTokenizer {
|
|
436
|
+
/**
|
|
437
|
+
* Construct BufferTokenizer
|
|
438
|
+
* @param uint8Array - Uint8Array to tokenize
|
|
439
|
+
* @param options Tokenizer options
|
|
440
|
+
*/
|
|
441
|
+
constructor(uint8Array, options) {
|
|
442
|
+
super(options);
|
|
443
|
+
this.uint8Array = uint8Array;
|
|
444
|
+
this.fileInfo = { ...options?.fileInfo ?? {}, ...{ size: uint8Array.length } };
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Read buffer from tokenizer
|
|
448
|
+
* @param uint8Array - Uint8Array to tokenize
|
|
449
|
+
* @param options - Read behaviour options
|
|
450
|
+
* @returns {Promise<number>}
|
|
451
|
+
*/
|
|
452
|
+
async readBuffer(uint8Array, options) {
|
|
453
|
+
if (options?.position) {
|
|
454
|
+
this.position = options.position;
|
|
455
|
+
}
|
|
456
|
+
const bytesRead = await this.peekBuffer(uint8Array, options);
|
|
457
|
+
this.position += bytesRead;
|
|
458
|
+
return bytesRead;
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Peek (read ahead) buffer from tokenizer
|
|
462
|
+
* @param uint8Array
|
|
463
|
+
* @param options - Read behaviour options
|
|
464
|
+
* @returns {Promise<number>}
|
|
465
|
+
*/
|
|
466
|
+
async peekBuffer(uint8Array, options) {
|
|
467
|
+
const normOptions = this.normalizeOptions(uint8Array, options);
|
|
468
|
+
const bytes2read = Math.min(this.uint8Array.length - normOptions.position, normOptions.length);
|
|
469
|
+
if (!normOptions.mayBeLess && bytes2read < normOptions.length) {
|
|
470
|
+
throw new EndOfStreamError();
|
|
471
|
+
}
|
|
472
|
+
uint8Array.set(this.uint8Array.subarray(normOptions.position, normOptions.position + bytes2read));
|
|
473
|
+
return bytes2read;
|
|
474
|
+
}
|
|
475
|
+
close() {
|
|
476
|
+
return super.close();
|
|
477
|
+
}
|
|
478
|
+
supportsRandomAccess() {
|
|
479
|
+
return true;
|
|
480
|
+
}
|
|
481
|
+
setPosition(position) {
|
|
482
|
+
this.position = position;
|
|
483
|
+
}
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
// ../../node_modules/strtok3/lib/BlobTokenizer.js
|
|
487
|
+
init_shims();
|
|
488
|
+
var BlobTokenizer = class extends AbstractTokenizer {
|
|
489
|
+
/**
|
|
490
|
+
* Construct BufferTokenizer
|
|
491
|
+
* @param blob - Uint8Array to tokenize
|
|
492
|
+
* @param options Tokenizer options
|
|
493
|
+
*/
|
|
494
|
+
constructor(blob, options) {
|
|
495
|
+
super(options);
|
|
496
|
+
this.blob = blob;
|
|
497
|
+
this.fileInfo = { ...options?.fileInfo ?? {}, ...{ size: blob.size, mimeType: blob.type } };
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Read buffer from tokenizer
|
|
501
|
+
* @param uint8Array - Uint8Array to tokenize
|
|
502
|
+
* @param options - Read behaviour options
|
|
503
|
+
* @returns {Promise<number>}
|
|
504
|
+
*/
|
|
505
|
+
async readBuffer(uint8Array, options) {
|
|
506
|
+
if (options?.position) {
|
|
507
|
+
this.position = options.position;
|
|
508
|
+
}
|
|
509
|
+
const bytesRead = await this.peekBuffer(uint8Array, options);
|
|
510
|
+
this.position += bytesRead;
|
|
511
|
+
return bytesRead;
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Peek (read ahead) buffer from tokenizer
|
|
515
|
+
* @param buffer
|
|
516
|
+
* @param options - Read behaviour options
|
|
517
|
+
* @returns {Promise<number>}
|
|
518
|
+
*/
|
|
519
|
+
async peekBuffer(buffer, options) {
|
|
520
|
+
const normOptions = this.normalizeOptions(buffer, options);
|
|
521
|
+
const bytes2read = Math.min(this.blob.size - normOptions.position, normOptions.length);
|
|
522
|
+
if (!normOptions.mayBeLess && bytes2read < normOptions.length) {
|
|
523
|
+
throw new EndOfStreamError();
|
|
524
|
+
}
|
|
525
|
+
const arrayBuffer = await this.blob.slice(normOptions.position, normOptions.position + bytes2read).arrayBuffer();
|
|
526
|
+
buffer.set(new Uint8Array(arrayBuffer));
|
|
527
|
+
return bytes2read;
|
|
528
|
+
}
|
|
529
|
+
close() {
|
|
530
|
+
return super.close();
|
|
531
|
+
}
|
|
532
|
+
supportsRandomAccess() {
|
|
533
|
+
return true;
|
|
534
|
+
}
|
|
535
|
+
setPosition(position) {
|
|
536
|
+
this.position = position;
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
// ../../node_modules/strtok3/lib/core.js
|
|
541
|
+
function fromWebStream(webStream, options) {
|
|
542
|
+
const webStreamReader = makeWebStreamReader(webStream);
|
|
543
|
+
const _options = options ?? {};
|
|
544
|
+
const chainedClose = _options.onClose;
|
|
545
|
+
_options.onClose = async () => {
|
|
546
|
+
await webStreamReader.close();
|
|
547
|
+
if (chainedClose) {
|
|
548
|
+
return chainedClose();
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
return new ReadStreamTokenizer(webStreamReader, _options);
|
|
552
|
+
}
|
|
553
|
+
function fromBuffer(uint8Array, options) {
|
|
554
|
+
return new BufferTokenizer(uint8Array, options);
|
|
555
|
+
}
|
|
556
|
+
function fromBlob(blob, options) {
|
|
557
|
+
return new BlobTokenizer(blob, options);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
// ../../node_modules/strtok3/lib/index.js
|
|
561
|
+
init_shims();
|
|
562
|
+
import { stat as fsStat } from "node:fs/promises";
|
|
563
|
+
|
|
564
|
+
// ../../node_modules/strtok3/lib/FileTokenizer.js
|
|
565
|
+
init_shims();
|
|
566
|
+
import { open as fsOpen } from "node:fs/promises";
|
|
567
|
+
var FileTokenizer = class _FileTokenizer extends AbstractTokenizer {
|
|
568
|
+
/**
|
|
569
|
+
* Create tokenizer from provided file path
|
|
570
|
+
* @param sourceFilePath File path
|
|
571
|
+
*/
|
|
572
|
+
static async fromFile(sourceFilePath) {
|
|
573
|
+
const fileHandle = await fsOpen(sourceFilePath, "r");
|
|
574
|
+
const stat = await fileHandle.stat();
|
|
575
|
+
return new _FileTokenizer(fileHandle, { fileInfo: { path: sourceFilePath, size: stat.size } });
|
|
576
|
+
}
|
|
577
|
+
constructor(fileHandle, options) {
|
|
578
|
+
super(options);
|
|
579
|
+
this.fileHandle = fileHandle;
|
|
580
|
+
this.fileInfo = options.fileInfo;
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* Read buffer from file
|
|
584
|
+
* @param uint8Array - Uint8Array to write result to
|
|
585
|
+
* @param options - Read behaviour options
|
|
586
|
+
* @returns Promise number of bytes read
|
|
587
|
+
*/
|
|
588
|
+
async readBuffer(uint8Array, options) {
|
|
589
|
+
const normOptions = this.normalizeOptions(uint8Array, options);
|
|
590
|
+
this.position = normOptions.position;
|
|
591
|
+
if (normOptions.length === 0)
|
|
592
|
+
return 0;
|
|
593
|
+
const res = await this.fileHandle.read(uint8Array, 0, normOptions.length, normOptions.position);
|
|
594
|
+
this.position += res.bytesRead;
|
|
595
|
+
if (res.bytesRead < normOptions.length && (!options || !options.mayBeLess)) {
|
|
596
|
+
throw new EndOfStreamError();
|
|
597
|
+
}
|
|
598
|
+
return res.bytesRead;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* Peek buffer from file
|
|
602
|
+
* @param uint8Array - Uint8Array (or Buffer) to write data to
|
|
603
|
+
* @param options - Read behaviour options
|
|
604
|
+
* @returns Promise number of bytes read
|
|
605
|
+
*/
|
|
606
|
+
async peekBuffer(uint8Array, options) {
|
|
607
|
+
const normOptions = this.normalizeOptions(uint8Array, options);
|
|
608
|
+
const res = await this.fileHandle.read(uint8Array, 0, normOptions.length, normOptions.position);
|
|
609
|
+
if (!normOptions.mayBeLess && res.bytesRead < normOptions.length) {
|
|
610
|
+
throw new EndOfStreamError();
|
|
611
|
+
}
|
|
612
|
+
return res.bytesRead;
|
|
613
|
+
}
|
|
614
|
+
async close() {
|
|
615
|
+
await this.fileHandle.close();
|
|
616
|
+
return super.close();
|
|
617
|
+
}
|
|
618
|
+
setPosition(position) {
|
|
619
|
+
this.position = position;
|
|
620
|
+
}
|
|
621
|
+
supportsRandomAccess() {
|
|
622
|
+
return true;
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
|
|
626
|
+
// ../../node_modules/strtok3/lib/index.js
|
|
627
|
+
var fromFile = FileTokenizer.fromFile;
|
|
628
|
+
|
|
629
|
+
export {
|
|
630
|
+
EndOfStreamError,
|
|
631
|
+
fromWebStream,
|
|
632
|
+
fromBuffer,
|
|
633
|
+
fromBlob
|
|
634
|
+
};
|
|
635
|
+
//# sourceMappingURL=chunk-H7KAUMBC.js.map
|