codex 1.6.0a12__py3-none-any.whl → 1.6.0rc1__py3-none-any.whl
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.
Potentially problematic release.
This version of codex might be problematic. Click here for more details.
- codex/static_root/assets/{VCheckbox-B3vCf1Vu.e1991f98ab6c.js → VCheckbox-BjSDxmSa.6b857082d8ff.js} +1 -1
- codex/static_root/assets/VCheckbox-BjSDxmSa.6b857082d8ff.js.br +0 -0
- codex/static_root/assets/VCheckbox-BjSDxmSa.6b857082d8ff.js.gz +0 -0
- codex/static_root/assets/{VCheckbox-B3vCf1Vu.js → VCheckbox-BjSDxmSa.js} +1 -1
- codex/static_root/assets/VCheckbox-BjSDxmSa.js.br +0 -0
- codex/static_root/assets/VCheckbox-BjSDxmSa.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-Cj6bUYmw.196cc43ca1c8.js → VCheckboxBtn-DgL9kXWT.15c0a674a416.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-DgL9kXWT.15c0a674a416.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-DgL9kXWT.15c0a674a416.js.gz +0 -0
- codex/static_root/assets/{VCheckboxBtn-Cj6bUYmw.js → VCheckboxBtn-DgL9kXWT.js} +1 -1
- codex/static_root/assets/VCheckboxBtn-DgL9kXWT.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-DgL9kXWT.js.gz +0 -0
- codex/static_root/assets/{VCombobox-wIqJY8no.3547ff73e91e.js → VCombobox-BtGhegdb.3ed82fdda521.js} +1 -1
- codex/static_root/assets/VCombobox-BtGhegdb.3ed82fdda521.js.br +0 -0
- codex/static_root/assets/VCombobox-BtGhegdb.3ed82fdda521.js.gz +0 -0
- codex/static_root/assets/{VCombobox-wIqJY8no.js → VCombobox-BtGhegdb.js} +1 -1
- codex/static_root/assets/VCombobox-BtGhegdb.js.br +0 -0
- codex/static_root/assets/VCombobox-BtGhegdb.js.gz +0 -0
- codex/static_root/assets/{VDialog-D6HUFV6a.ac71da510b3f.js → VDialog-DqQgZayw.fec39962de40.js} +1 -1
- codex/static_root/assets/VDialog-DqQgZayw.fec39962de40.js.br +0 -0
- codex/static_root/assets/VDialog-DqQgZayw.fec39962de40.js.gz +0 -0
- codex/static_root/assets/{VDialog-D6HUFV6a.js → VDialog-DqQgZayw.js} +1 -1
- codex/static_root/assets/VDialog-DqQgZayw.js.br +0 -0
- codex/static_root/assets/VDialog-DqQgZayw.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-BUJaYmzY.44e8a00a2ebe.js → VExpansionPanels-CH6E8s7q.47c91b41e26f.js} +1 -1
- codex/static_root/assets/VExpansionPanels-CH6E8s7q.47c91b41e26f.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-CH6E8s7q.47c91b41e26f.js.gz +0 -0
- codex/static_root/assets/{VExpansionPanels-BUJaYmzY.js → VExpansionPanels-CH6E8s7q.js} +1 -1
- codex/static_root/assets/VExpansionPanels-CH6E8s7q.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-CH6E8s7q.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-CayclHra.0a5b1c9a7b71.js → VRadioGroup-BC5CvPgU.d2a3d39934df.js} +1 -1
- codex/static_root/assets/VRadioGroup-BC5CvPgU.d2a3d39934df.js.br +0 -0
- codex/static_root/assets/VRadioGroup-BC5CvPgU.d2a3d39934df.js.gz +0 -0
- codex/static_root/assets/{VRadioGroup-CayclHra.js → VRadioGroup-BC5CvPgU.js} +1 -1
- codex/static_root/assets/VRadioGroup-BC5CvPgU.js.br +0 -0
- codex/static_root/assets/VRadioGroup-BC5CvPgU.js.gz +0 -0
- codex/static_root/assets/{VSelect-ou2Q9UaN.8ddd219784e1.js → VSelect-BNztcu1Z.48c0f0a0116e.js} +1 -1
- codex/static_root/assets/VSelect-BNztcu1Z.48c0f0a0116e.js.br +0 -0
- codex/static_root/assets/VSelect-BNztcu1Z.48c0f0a0116e.js.gz +0 -0
- codex/static_root/assets/{VSelect-ou2Q9UaN.js → VSelect-BNztcu1Z.js} +1 -1
- codex/static_root/assets/VSelect-BNztcu1Z.js.br +0 -0
- codex/static_root/assets/VSelect-BNztcu1Z.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-BOKIwNZb.js → VSelectionControl-BlKP2Bmf.e47daa76ddf4.js} +1 -1
- codex/static_root/assets/VSelectionControl-BlKP2Bmf.e47daa76ddf4.js.br +0 -0
- codex/static_root/assets/VSelectionControl-BlKP2Bmf.e47daa76ddf4.js.gz +0 -0
- codex/static_root/assets/{VSelectionControl-BOKIwNZb.16e0cdde978c.js → VSelectionControl-BlKP2Bmf.js} +1 -1
- codex/static_root/assets/VSelectionControl-BlKP2Bmf.js.br +0 -0
- codex/static_root/assets/VSelectionControl-BlKP2Bmf.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-C3XgVg2T.d2b0ee4f596c.js → VSlideGroup-psRbw8SA.fdcda702522d.js} +1 -1
- codex/static_root/assets/VSlideGroup-psRbw8SA.fdcda702522d.js.br +0 -0
- codex/static_root/assets/VSlideGroup-psRbw8SA.fdcda702522d.js.gz +0 -0
- codex/static_root/assets/{VSlideGroup-C3XgVg2T.js → VSlideGroup-psRbw8SA.js} +1 -1
- codex/static_root/assets/VSlideGroup-psRbw8SA.js.br +0 -0
- codex/static_root/assets/VSlideGroup-psRbw8SA.js.gz +0 -0
- codex/static_root/assets/{VTable-CrIiBr9q.b4669247af45.js → VTable-CmW-pZRU.ddb814d76c40.js} +1 -1
- codex/static_root/assets/VTable-CmW-pZRU.ddb814d76c40.js.br +0 -0
- codex/static_root/assets/VTable-CmW-pZRU.ddb814d76c40.js.gz +0 -0
- codex/static_root/assets/{VTable-CrIiBr9q.js → VTable-CmW-pZRU.js} +1 -1
- codex/static_root/assets/VTable-CmW-pZRU.js.br +0 -0
- codex/static_root/assets/VTable-CmW-pZRU.js.gz +0 -0
- codex/static_root/assets/{VTextField-HAAxrpNi.6f6dcb50079a.js → VTextField-CLXM8_Dv.ec4fd23f77e3.js} +1 -1
- codex/static_root/assets/VTextField-CLXM8_Dv.ec4fd23f77e3.js.br +0 -0
- codex/static_root/assets/VTextField-CLXM8_Dv.ec4fd23f77e3.js.gz +0 -0
- codex/static_root/assets/{VTextField-HAAxrpNi.js → VTextField-CLXM8_Dv.js} +1 -1
- codex/static_root/assets/VTextField-CLXM8_Dv.js.br +0 -0
- codex/static_root/assets/VTextField-CLXM8_Dv.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-aal6-Uv4.d178e2af20a7.js → VWindowItem--B3loLAX.94f86a20da0c.js} +1 -1
- codex/static_root/assets/VWindowItem--B3loLAX.94f86a20da0c.js.br +0 -0
- codex/static_root/assets/VWindowItem--B3loLAX.94f86a20da0c.js.gz +0 -0
- codex/static_root/assets/{VWindowItem-aal6-Uv4.js → VWindowItem--B3loLAX.js} +1 -1
- codex/static_root/assets/VWindowItem--B3loLAX.js.br +0 -0
- codex/static_root/assets/VWindowItem--B3loLAX.js.gz +0 -0
- codex/static_root/assets/{admin-D5JDmLDy.e4df3dd3a3fe.js → admin-C8tNLljO.7af46b89ca08.js} +1 -1
- codex/static_root/assets/admin-C8tNLljO.7af46b89ca08.js.br +0 -0
- codex/static_root/assets/admin-C8tNLljO.7af46b89ca08.js.gz +0 -0
- codex/static_root/assets/{admin-D5JDmLDy.js → admin-C8tNLljO.js} +1 -1
- codex/static_root/assets/admin-C8tNLljO.js.br +0 -0
- codex/static_root/assets/admin-C8tNLljO.js.gz +0 -0
- codex/static_root/assets/{admin-drawer-panel-BF-h3Wm0.1f372db8d08f.js → admin-drawer-panel-vQfT7tFo.133796b20536.js} +2 -2
- codex/static_root/assets/admin-drawer-panel-vQfT7tFo.133796b20536.js.br +0 -0
- codex/static_root/assets/{admin-drawer-panel-BF-h3Wm0.1f372db8d08f.js.gz → admin-drawer-panel-vQfT7tFo.133796b20536.js.gz} +0 -0
- codex/static_root/assets/{admin-drawer-panel-BF-h3Wm0.js → admin-drawer-panel-vQfT7tFo.js} +2 -2
- codex/static_root/assets/admin-drawer-panel-vQfT7tFo.js.br +0 -0
- codex/static_root/assets/{admin-drawer-panel-BF-h3Wm0.js.gz → admin-drawer-panel-vQfT7tFo.js.gz} +0 -0
- codex/static_root/assets/browser-B4FQ8Dry.00bb8157e899.js +1 -0
- codex/static_root/assets/browser-B4FQ8Dry.00bb8157e899.js.br +0 -0
- codex/static_root/assets/browser-B4FQ8Dry.00bb8157e899.js.gz +0 -0
- codex/static_root/assets/browser-B4FQ8Dry.js +1 -0
- codex/static_root/assets/browser-B4FQ8Dry.js.br +0 -0
- codex/static_root/assets/browser-B4FQ8Dry.js.gz +0 -0
- codex/static_root/assets/browser-BlycPHgZ.5842145b0e63.css +1 -0
- codex/static_root/assets/browser-BlycPHgZ.5842145b0e63.css.br +0 -0
- codex/static_root/assets/browser-BlycPHgZ.5842145b0e63.css.gz +0 -0
- codex/static_root/assets/browser-BlycPHgZ.css +1 -0
- codex/static_root/assets/browser-BlycPHgZ.css.br +0 -0
- codex/static_root/assets/browser-BlycPHgZ.css.gz +0 -0
- codex/static_root/assets/{change-password-dialog-BCYw5K7E.a8bae0450f20.js → change-password-dialog-onUsTVN5.eedc238a00c5.js} +1 -1
- codex/static_root/assets/change-password-dialog-onUsTVN5.eedc238a00c5.js.br +0 -0
- codex/static_root/assets/change-password-dialog-onUsTVN5.eedc238a00c5.js.gz +0 -0
- codex/static_root/assets/{change-password-dialog-BCYw5K7E.js → change-password-dialog-onUsTVN5.js} +1 -1
- codex/static_root/assets/change-password-dialog-onUsTVN5.js.br +0 -0
- codex/static_root/assets/change-password-dialog-onUsTVN5.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-c9JOSGSy.3c5788f95f47.js → confirm-dialog-VQ6k0w55.e38e1eba5340.js} +1 -1
- codex/static_root/assets/confirm-dialog-VQ6k0w55.e38e1eba5340.js.br +0 -0
- codex/static_root/assets/confirm-dialog-VQ6k0w55.e38e1eba5340.js.gz +0 -0
- codex/static_root/assets/{confirm-dialog-c9JOSGSy.js → confirm-dialog-VQ6k0w55.js} +1 -1
- codex/static_root/assets/confirm-dialog-VQ6k0w55.js.br +0 -0
- codex/static_root/assets/confirm-dialog-VQ6k0w55.js.gz +0 -0
- codex/static_root/assets/{datetime-column-D-6LPKdI.d46bbd8134df.js → datetime-column-BuZce4_W.0b4385717bd8.js} +1 -1
- codex/static_root/assets/datetime-column-BuZce4_W.0b4385717bd8.js.br +0 -0
- codex/static_root/assets/datetime-column-BuZce4_W.0b4385717bd8.js.gz +0 -0
- codex/static_root/assets/{datetime-column-D-6LPKdI.js → datetime-column-BuZce4_W.js} +1 -1
- codex/static_root/assets/datetime-column-BuZce4_W.js.br +0 -0
- codex/static_root/assets/datetime-column-BuZce4_W.js.gz +0 -0
- codex/static_root/assets/{filter-BOnVoHTU.93c3d0d0d3f6.js → filter-B_BZaRxz.3902c2895347.js} +1 -1
- codex/static_root/assets/filter-B_BZaRxz.3902c2895347.js.br +0 -0
- codex/static_root/assets/filter-B_BZaRxz.3902c2895347.js.gz +0 -0
- codex/static_root/assets/{filter-BOnVoHTU.js → filter-B_BZaRxz.js} +1 -1
- codex/static_root/assets/filter-B_BZaRxz.js.br +0 -0
- codex/static_root/assets/filter-B_BZaRxz.js.gz +0 -0
- codex/static_root/assets/{flag-tab-IniE-dLy.a02733e359aa.js → flag-tab-si72uDp0.4ffc9a6e889e.js} +1 -1
- codex/static_root/assets/flag-tab-si72uDp0.4ffc9a6e889e.js.br +0 -0
- codex/static_root/assets/flag-tab-si72uDp0.4ffc9a6e889e.js.gz +0 -0
- codex/static_root/assets/{flag-tab-IniE-dLy.js → flag-tab-si72uDp0.js} +1 -1
- codex/static_root/assets/flag-tab-si72uDp0.js.br +0 -0
- codex/static_root/assets/flag-tab-si72uDp0.js.gz +0 -0
- codex/static_root/assets/{group-tab-RPa8XC0J.3d483919ea92.js → group-tab-TVrz49Va.acd3436fa76a.js} +1 -1
- codex/static_root/assets/group-tab-TVrz49Va.acd3436fa76a.js.br +0 -0
- codex/static_root/assets/group-tab-TVrz49Va.acd3436fa76a.js.gz +0 -0
- codex/static_root/assets/{group-tab-RPa8XC0J.js → group-tab-TVrz49Va.js} +1 -1
- codex/static_root/assets/group-tab-TVrz49Va.js.br +0 -0
- codex/static_root/assets/group-tab-TVrz49Va.js.gz +0 -0
- codex/static_root/assets/{http-error-DBQycf8i.561cde2b4598.js → http-error-BqsBR3xn.3a9279e63f76.js} +1 -1
- codex/static_root/assets/http-error-BqsBR3xn.3a9279e63f76.js.br +0 -0
- codex/static_root/assets/http-error-BqsBR3xn.3a9279e63f76.js.gz +0 -0
- codex/static_root/assets/{http-error-DBQycf8i.js → http-error-BqsBR3xn.js} +1 -1
- codex/static_root/assets/http-error-BqsBR3xn.js.br +0 -0
- codex/static_root/assets/http-error-BqsBR3xn.js.gz +0 -0
- codex/static_root/assets/{library-tab-C5trLvkq.js → library-tab-DQSd78XW.751f06da5197.js} +1 -1
- codex/static_root/assets/library-tab-DQSd78XW.751f06da5197.js.br +0 -0
- codex/static_root/assets/library-tab-DQSd78XW.751f06da5197.js.gz +0 -0
- codex/static_root/assets/{library-tab-C5trLvkq.35c7a1b79c71.js → library-tab-DQSd78XW.js} +1 -1
- codex/static_root/assets/library-tab-DQSd78XW.js.br +0 -0
- codex/static_root/assets/library-tab-DQSd78XW.js.gz +0 -0
- codex/static_root/assets/{main-x0Pcl23A.js → main-D888wgNq.df3cf8bd55f4.js} +4 -4
- codex/static_root/assets/main-D888wgNq.df3cf8bd55f4.js.br +0 -0
- codex/static_root/assets/main-D888wgNq.df3cf8bd55f4.js.gz +0 -0
- codex/static_root/assets/{main-x0Pcl23A.364bfe447c9c.js → main-D888wgNq.js} +4 -4
- codex/static_root/assets/main-D888wgNq.js.br +0 -0
- codex/static_root/assets/main-D888wgNq.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-DEgDOzzp.71aa03f525e4.js → pagination-toolbar-BJg0iCY_.33d0bc0ed57b.js} +1 -1
- codex/static_root/assets/pagination-toolbar-BJg0iCY_.33d0bc0ed57b.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BJg0iCY_.33d0bc0ed57b.js.gz +0 -0
- codex/static_root/assets/{pagination-toolbar-DEgDOzzp.js → pagination-toolbar-BJg0iCY_.js} +1 -1
- codex/static_root/assets/pagination-toolbar-BJg0iCY_.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-BJg0iCY_.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-CkV-xfvG.35c1a6a19a41.js → pdf-doc-VIuFHQ5Z.d0be1b21de96.js} +1 -1
- codex/static_root/assets/pdf-doc-VIuFHQ5Z.d0be1b21de96.js.br +0 -0
- codex/static_root/assets/pdf-doc-VIuFHQ5Z.d0be1b21de96.js.gz +0 -0
- codex/static_root/assets/{pdf-doc-CkV-xfvG.js → pdf-doc-VIuFHQ5Z.js} +1 -1
- codex/static_root/assets/pdf-doc-VIuFHQ5Z.js.br +0 -0
- codex/static_root/assets/pdf-doc-VIuFHQ5Z.js.gz +0 -0
- codex/static_root/assets/{reader-ClcgSG93.6afe950e70ac.js → reader-Cq2tfA7k.69c9d5cea641.js} +2 -2
- codex/static_root/assets/reader-Cq2tfA7k.69c9d5cea641.js.br +0 -0
- codex/static_root/assets/reader-Cq2tfA7k.69c9d5cea641.js.gz +0 -0
- codex/static_root/assets/{reader-ClcgSG93.js → reader-Cq2tfA7k.js} +2 -2
- codex/static_root/assets/reader-Cq2tfA7k.js.br +0 -0
- codex/static_root/assets/reader-Cq2tfA7k.js.gz +0 -0
- codex/static_root/assets/{relation-chips-2vga5ApB.js → relation-chips-Diykkd29.3e5aa695fb99.js} +1 -1
- codex/static_root/assets/relation-chips-Diykkd29.3e5aa695fb99.js.br +0 -0
- codex/static_root/assets/relation-chips-Diykkd29.3e5aa695fb99.js.gz +0 -0
- codex/static_root/assets/{relation-chips-2vga5ApB.d94c344f909b.js → relation-chips-Diykkd29.js} +1 -1
- codex/static_root/assets/relation-chips-Diykkd29.js.br +0 -0
- codex/static_root/assets/relation-chips-Diykkd29.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-BOTI_tHr.03748f801e08.js → settings-drawer-B8NlM16d.1c5e5cd47147.js} +2 -2
- codex/static_root/assets/settings-drawer-B8NlM16d.1c5e5cd47147.js.br +0 -0
- codex/static_root/assets/settings-drawer-B8NlM16d.1c5e5cd47147.js.gz +0 -0
- codex/static_root/assets/{settings-drawer-BOTI_tHr.js → settings-drawer-B8NlM16d.js} +2 -2
- codex/static_root/assets/settings-drawer-B8NlM16d.js.br +0 -0
- codex/static_root/assets/settings-drawer-B8NlM16d.js.gz +0 -0
- codex/static_root/assets/{stats-tab-CBz_jhmH.9bdc41225f06.js → stats-tab-Ba1O22T5.1893c322b837.js} +1 -1
- codex/static_root/assets/stats-tab-Ba1O22T5.1893c322b837.js.br +0 -0
- codex/static_root/assets/stats-tab-Ba1O22T5.1893c322b837.js.gz +0 -0
- codex/static_root/assets/{stats-tab-CBz_jhmH.js → stats-tab-Ba1O22T5.js} +1 -1
- codex/static_root/assets/stats-tab-Ba1O22T5.js.br +0 -0
- codex/static_root/assets/stats-tab-Ba1O22T5.js.gz +0 -0
- codex/static_root/assets/{task-tab-B8sYV6Ia.90a8deec0214.js → task-tab-DpFvYIvj.9e11082f11e0.js} +1 -1
- codex/static_root/assets/task-tab-DpFvYIvj.9e11082f11e0.js.br +0 -0
- codex/static_root/assets/task-tab-DpFvYIvj.9e11082f11e0.js.gz +0 -0
- codex/static_root/assets/{task-tab-B8sYV6Ia.js → task-tab-DpFvYIvj.js} +1 -1
- codex/static_root/assets/task-tab-DpFvYIvj.js.br +0 -0
- codex/static_root/assets/task-tab-DpFvYIvj.js.gz +0 -0
- codex/static_root/assets/to-case-nry7wr4q.471d1d673876.js +1 -0
- codex/static_root/assets/to-case-nry7wr4q.js +1 -0
- codex/static_root/assets/{unauthorized-D5-FvA2_.61b1cd239b47.js → unauthorized-BEhuFi1m.b559e08ad1bb.js} +1 -1
- codex/static_root/assets/unauthorized-BEhuFi1m.b559e08ad1bb.js.br +0 -0
- codex/static_root/assets/unauthorized-BEhuFi1m.b559e08ad1bb.js.gz +0 -0
- codex/static_root/assets/{unauthorized-D5-FvA2_.js → unauthorized-BEhuFi1m.js} +1 -1
- codex/static_root/assets/unauthorized-BEhuFi1m.js.br +0 -0
- codex/static_root/assets/unauthorized-BEhuFi1m.js.gz +0 -0
- codex/static_root/assets/{user-tab-pzFjrggM.97c02ebee729.js → user-tab-BRKamNbm.33d87a0a3715.js} +1 -1
- codex/static_root/assets/user-tab-BRKamNbm.33d87a0a3715.js.br +0 -0
- codex/static_root/assets/user-tab-BRKamNbm.33d87a0a3715.js.gz +0 -0
- codex/static_root/assets/{user-tab-pzFjrggM.js → user-tab-BRKamNbm.js} +1 -1
- codex/static_root/assets/user-tab-BRKamNbm.js.br +0 -0
- codex/static_root/assets/user-tab-BRKamNbm.js.gz +0 -0
- codex/static_root/{manifest.a18726680d5f.json → manifest.40a7890feb17.json} +220 -220
- codex/static_root/manifest.40a7890feb17.json.br +0 -0
- codex/static_root/manifest.40a7890feb17.json.gz +0 -0
- codex/static_root/manifest.json +220 -220
- codex/static_root/manifest.json.br +0 -0
- codex/static_root/manifest.json.gz +0 -0
- codex/static_root/staticfiles.json +1 -1
- codex/views/browser/annotations.py +1 -1
- codex/views/browser/cover.py +4 -4
- codex/views/browser/filters/group.py +4 -3
- {codex-1.6.0a12.dist-info → codex-1.6.0rc1.dist-info}/METADATA +2 -1
- {codex-1.6.0a12.dist-info → codex-1.6.0rc1.dist-info}/RECORD +221 -221
- codex/static_root/assets/VCheckbox-B3vCf1Vu.e1991f98ab6c.js.br +0 -0
- codex/static_root/assets/VCheckbox-B3vCf1Vu.e1991f98ab6c.js.gz +0 -0
- codex/static_root/assets/VCheckbox-B3vCf1Vu.js.br +0 -0
- codex/static_root/assets/VCheckbox-B3vCf1Vu.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-Cj6bUYmw.196cc43ca1c8.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-Cj6bUYmw.196cc43ca1c8.js.gz +0 -0
- codex/static_root/assets/VCheckboxBtn-Cj6bUYmw.js.br +0 -0
- codex/static_root/assets/VCheckboxBtn-Cj6bUYmw.js.gz +0 -0
- codex/static_root/assets/VCombobox-wIqJY8no.3547ff73e91e.js.br +0 -0
- codex/static_root/assets/VCombobox-wIqJY8no.3547ff73e91e.js.gz +0 -0
- codex/static_root/assets/VCombobox-wIqJY8no.js.br +0 -0
- codex/static_root/assets/VCombobox-wIqJY8no.js.gz +0 -0
- codex/static_root/assets/VDialog-D6HUFV6a.ac71da510b3f.js.br +0 -0
- codex/static_root/assets/VDialog-D6HUFV6a.ac71da510b3f.js.gz +0 -0
- codex/static_root/assets/VDialog-D6HUFV6a.js.br +0 -0
- codex/static_root/assets/VDialog-D6HUFV6a.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-BUJaYmzY.44e8a00a2ebe.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-BUJaYmzY.44e8a00a2ebe.js.gz +0 -0
- codex/static_root/assets/VExpansionPanels-BUJaYmzY.js.br +0 -0
- codex/static_root/assets/VExpansionPanels-BUJaYmzY.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-CayclHra.0a5b1c9a7b71.js.br +0 -0
- codex/static_root/assets/VRadioGroup-CayclHra.0a5b1c9a7b71.js.gz +0 -0
- codex/static_root/assets/VRadioGroup-CayclHra.js.br +0 -0
- codex/static_root/assets/VRadioGroup-CayclHra.js.gz +0 -0
- codex/static_root/assets/VSelect-ou2Q9UaN.8ddd219784e1.js.br +0 -0
- codex/static_root/assets/VSelect-ou2Q9UaN.8ddd219784e1.js.gz +0 -0
- codex/static_root/assets/VSelect-ou2Q9UaN.js.br +0 -0
- codex/static_root/assets/VSelect-ou2Q9UaN.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-BOKIwNZb.16e0cdde978c.js.br +0 -0
- codex/static_root/assets/VSelectionControl-BOKIwNZb.16e0cdde978c.js.gz +0 -0
- codex/static_root/assets/VSelectionControl-BOKIwNZb.js.br +0 -0
- codex/static_root/assets/VSelectionControl-BOKIwNZb.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-C3XgVg2T.d2b0ee4f596c.js.br +0 -0
- codex/static_root/assets/VSlideGroup-C3XgVg2T.d2b0ee4f596c.js.gz +0 -0
- codex/static_root/assets/VSlideGroup-C3XgVg2T.js.br +0 -0
- codex/static_root/assets/VSlideGroup-C3XgVg2T.js.gz +0 -0
- codex/static_root/assets/VTable-CrIiBr9q.b4669247af45.js.br +0 -0
- codex/static_root/assets/VTable-CrIiBr9q.b4669247af45.js.gz +0 -0
- codex/static_root/assets/VTable-CrIiBr9q.js.br +0 -0
- codex/static_root/assets/VTable-CrIiBr9q.js.gz +0 -0
- codex/static_root/assets/VTextField-HAAxrpNi.6f6dcb50079a.js.br +0 -0
- codex/static_root/assets/VTextField-HAAxrpNi.6f6dcb50079a.js.gz +0 -0
- codex/static_root/assets/VTextField-HAAxrpNi.js.br +0 -0
- codex/static_root/assets/VTextField-HAAxrpNi.js.gz +0 -0
- codex/static_root/assets/VWindowItem-aal6-Uv4.d178e2af20a7.js.br +0 -0
- codex/static_root/assets/VWindowItem-aal6-Uv4.d178e2af20a7.js.gz +0 -0
- codex/static_root/assets/VWindowItem-aal6-Uv4.js.br +0 -0
- codex/static_root/assets/VWindowItem-aal6-Uv4.js.gz +0 -0
- codex/static_root/assets/admin-D5JDmLDy.e4df3dd3a3fe.js.br +0 -0
- codex/static_root/assets/admin-D5JDmLDy.e4df3dd3a3fe.js.gz +0 -0
- codex/static_root/assets/admin-D5JDmLDy.js.br +0 -0
- codex/static_root/assets/admin-D5JDmLDy.js.gz +0 -0
- codex/static_root/assets/admin-drawer-panel-BF-h3Wm0.1f372db8d08f.js.br +0 -0
- codex/static_root/assets/admin-drawer-panel-BF-h3Wm0.js.br +0 -0
- codex/static_root/assets/browser-B1-dPld9.0b3fa4fdbe22.css +0 -1
- codex/static_root/assets/browser-B1-dPld9.0b3fa4fdbe22.css.br +0 -0
- codex/static_root/assets/browser-B1-dPld9.0b3fa4fdbe22.css.gz +0 -0
- codex/static_root/assets/browser-B1-dPld9.css +0 -1
- codex/static_root/assets/browser-B1-dPld9.css.br +0 -0
- codex/static_root/assets/browser-B1-dPld9.css.gz +0 -0
- codex/static_root/assets/browser-VhFkImB_.9c3b2c746614.js +0 -1
- codex/static_root/assets/browser-VhFkImB_.9c3b2c746614.js.br +0 -0
- codex/static_root/assets/browser-VhFkImB_.9c3b2c746614.js.gz +0 -0
- codex/static_root/assets/browser-VhFkImB_.js +0 -1
- codex/static_root/assets/browser-VhFkImB_.js.br +0 -0
- codex/static_root/assets/browser-VhFkImB_.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-BCYw5K7E.a8bae0450f20.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BCYw5K7E.a8bae0450f20.js.gz +0 -0
- codex/static_root/assets/change-password-dialog-BCYw5K7E.js.br +0 -0
- codex/static_root/assets/change-password-dialog-BCYw5K7E.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-c9JOSGSy.3c5788f95f47.js.br +0 -3
- codex/static_root/assets/confirm-dialog-c9JOSGSy.3c5788f95f47.js.gz +0 -0
- codex/static_root/assets/confirm-dialog-c9JOSGSy.js.br +0 -3
- codex/static_root/assets/confirm-dialog-c9JOSGSy.js.gz +0 -0
- codex/static_root/assets/datetime-column-D-6LPKdI.d46bbd8134df.js.br +0 -0
- codex/static_root/assets/datetime-column-D-6LPKdI.d46bbd8134df.js.gz +0 -0
- codex/static_root/assets/datetime-column-D-6LPKdI.js.br +0 -0
- codex/static_root/assets/datetime-column-D-6LPKdI.js.gz +0 -0
- codex/static_root/assets/filter-BOnVoHTU.93c3d0d0d3f6.js.br +0 -0
- codex/static_root/assets/filter-BOnVoHTU.93c3d0d0d3f6.js.gz +0 -0
- codex/static_root/assets/filter-BOnVoHTU.js.br +0 -0
- codex/static_root/assets/filter-BOnVoHTU.js.gz +0 -0
- codex/static_root/assets/flag-tab-IniE-dLy.a02733e359aa.js.br +0 -0
- codex/static_root/assets/flag-tab-IniE-dLy.a02733e359aa.js.gz +0 -0
- codex/static_root/assets/flag-tab-IniE-dLy.js.br +0 -0
- codex/static_root/assets/flag-tab-IniE-dLy.js.gz +0 -0
- codex/static_root/assets/group-tab-RPa8XC0J.3d483919ea92.js.br +0 -0
- codex/static_root/assets/group-tab-RPa8XC0J.3d483919ea92.js.gz +0 -0
- codex/static_root/assets/group-tab-RPa8XC0J.js.br +0 -0
- codex/static_root/assets/group-tab-RPa8XC0J.js.gz +0 -0
- codex/static_root/assets/http-error-DBQycf8i.561cde2b4598.js.br +0 -0
- codex/static_root/assets/http-error-DBQycf8i.561cde2b4598.js.gz +0 -0
- codex/static_root/assets/http-error-DBQycf8i.js.br +0 -0
- codex/static_root/assets/http-error-DBQycf8i.js.gz +0 -0
- codex/static_root/assets/library-tab-C5trLvkq.35c7a1b79c71.js.br +0 -0
- codex/static_root/assets/library-tab-C5trLvkq.35c7a1b79c71.js.gz +0 -0
- codex/static_root/assets/library-tab-C5trLvkq.js.br +0 -0
- codex/static_root/assets/library-tab-C5trLvkq.js.gz +0 -0
- codex/static_root/assets/main-x0Pcl23A.364bfe447c9c.js.br +0 -0
- codex/static_root/assets/main-x0Pcl23A.364bfe447c9c.js.gz +0 -0
- codex/static_root/assets/main-x0Pcl23A.js.br +0 -0
- codex/static_root/assets/main-x0Pcl23A.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-DEgDOzzp.71aa03f525e4.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-DEgDOzzp.71aa03f525e4.js.gz +0 -0
- codex/static_root/assets/pagination-toolbar-DEgDOzzp.js.br +0 -0
- codex/static_root/assets/pagination-toolbar-DEgDOzzp.js.gz +0 -0
- codex/static_root/assets/pdf-doc-CkV-xfvG.35c1a6a19a41.js.br +0 -0
- codex/static_root/assets/pdf-doc-CkV-xfvG.35c1a6a19a41.js.gz +0 -0
- codex/static_root/assets/pdf-doc-CkV-xfvG.js.br +0 -0
- codex/static_root/assets/pdf-doc-CkV-xfvG.js.gz +0 -0
- codex/static_root/assets/reader-ClcgSG93.6afe950e70ac.js.br +0 -0
- codex/static_root/assets/reader-ClcgSG93.6afe950e70ac.js.gz +0 -0
- codex/static_root/assets/reader-ClcgSG93.js.br +0 -0
- codex/static_root/assets/reader-ClcgSG93.js.gz +0 -0
- codex/static_root/assets/relation-chips-2vga5ApB.d94c344f909b.js.br +0 -0
- codex/static_root/assets/relation-chips-2vga5ApB.d94c344f909b.js.gz +0 -0
- codex/static_root/assets/relation-chips-2vga5ApB.js.br +0 -0
- codex/static_root/assets/relation-chips-2vga5ApB.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BOTI_tHr.03748f801e08.js.br +0 -0
- codex/static_root/assets/settings-drawer-BOTI_tHr.03748f801e08.js.gz +0 -0
- codex/static_root/assets/settings-drawer-BOTI_tHr.js.br +0 -0
- codex/static_root/assets/settings-drawer-BOTI_tHr.js.gz +0 -0
- codex/static_root/assets/stats-tab-CBz_jhmH.9bdc41225f06.js.br +0 -0
- codex/static_root/assets/stats-tab-CBz_jhmH.9bdc41225f06.js.gz +0 -0
- codex/static_root/assets/stats-tab-CBz_jhmH.js.br +0 -0
- codex/static_root/assets/stats-tab-CBz_jhmH.js.gz +0 -0
- codex/static_root/assets/task-tab-B8sYV6Ia.90a8deec0214.js.br +0 -0
- codex/static_root/assets/task-tab-B8sYV6Ia.90a8deec0214.js.gz +0 -0
- codex/static_root/assets/task-tab-B8sYV6Ia.js.br +0 -0
- codex/static_root/assets/task-tab-B8sYV6Ia.js.gz +0 -0
- codex/static_root/assets/to-case-CnnzURtN.f0e4b42ddb89.js +0 -1
- codex/static_root/assets/to-case-CnnzURtN.js +0 -1
- codex/static_root/assets/unauthorized-D5-FvA2_.61b1cd239b47.js.br +0 -0
- codex/static_root/assets/unauthorized-D5-FvA2_.61b1cd239b47.js.gz +0 -0
- codex/static_root/assets/unauthorized-D5-FvA2_.js.br +0 -0
- codex/static_root/assets/unauthorized-D5-FvA2_.js.gz +0 -0
- codex/static_root/assets/user-tab-pzFjrggM.97c02ebee729.js.br +0 -0
- codex/static_root/assets/user-tab-pzFjrggM.97c02ebee729.js.gz +0 -0
- codex/static_root/assets/user-tab-pzFjrggM.js.br +0 -0
- codex/static_root/assets/user-tab-pzFjrggM.js.gz +0 -0
- codex/static_root/manifest.a18726680d5f.json.br +0 -0
- codex/static_root/manifest.a18726680d5f.json.gz +0 -0
- {codex-1.6.0a12.dist-info → codex-1.6.0rc1.dist-info}/LICENSE +0 -0
- {codex-1.6.0a12.dist-info → codex-1.6.0rc1.dist-info}/WHEEL +0 -0
- {codex-1.6.0a12.dist-info → codex-1.6.0rc1.dist-info}/entry_points.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as rW,w as bJ,dx as mJ,o as c2,e as eJ,r as MJ,aB as GJ,h as JJ,a as bR,Z as n0,aF as eW,U as TJ,aG as SJ,by as se,aO as W2,aJ as Qe,bF as XJ,_ as YJ,an as pJ,V as uJ,W as BJ,Y as oJ,X as yJ,ak as zJ}from"./admin-drawer-panel-BF-h3Wm0.js";import{b as mR}from"./main-x0Pcl23A.js";var LJ=Object.defineProperty,kJ=(a,t,Z)=>t in a?LJ(a,t,{enumerable:!0,configurable:!0,writable:!0,value:Z}):a[t]=Z,ml=(a,t,Z)=>(kJ(a,typeof t!="symbol"?t+"":t,Z),Z),Hh=(a,t,Z)=>{if(!t.has(a))throw TypeError("Cannot "+Z)},F=(a,t,Z)=>(Hh(a,t,"read from private field"),Z?Z.call(a):t.get(a)),h=(a,t,Z)=>{if(t.has(a))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(a):t.set(a,Z)},J=(a,t,Z,n)=>(Hh(a,t,"write to private field"),t.set(a,Z),Z),vU=(a,t,Z,n)=>({set _(i){J(a,t,i)},get _(){return F(a,t,n)}}),G=(a,t,Z)=>(Hh(a,t,"access private method"),Z),IJ={9306:(a,t,Z)=>{var n=Z(4901),i=Z(6823),N=TypeError;a.exports=function(b){if(n(b))return b;throw new N(i(b)+" is not a function")}},3506:(a,t,Z)=>{var n=Z(3925),i=String,N=TypeError;a.exports=function(b){if(n(b))return b;throw new N("Can't set "+i(b)+" as a prototype")}},7080:(a,t,Z)=>{var n=Z(4402).has;a.exports=function(i){return n(i),i}},679:(a,t,Z)=>{var n=Z(1625),i=TypeError;a.exports=function(N,b){if(n(b,N))return N;throw new i("Incorrect invocation")}},8551:(a,t,Z)=>{var n=Z(34),i=String,N=TypeError;a.exports=function(b){if(n(b))return b;throw new N(i(b)+" is not an object")}},7811:a=>{a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394:(a,t,Z)=>{var n=Z(6706),i=Z(4576),N=TypeError;a.exports=n(ArrayBuffer.prototype,"byteLength","get")||function(b){if(i(b)!=="ArrayBuffer")throw new N("ArrayBuffer expected");return b.byteLength}},3238:(a,t,Z)=>{var n=Z(9504),i=Z(7394),N=n(ArrayBuffer.prototype.slice);a.exports=function(b){if(i(b)!==0)return!1;try{return N(b,0,0),!1}catch{return!0}}},5636:(a,t,Z)=>{var n=Z(4475),i=Z(9504),N=Z(6706),b=Z(7696),M=Z(3238),T=Z(7394),X=Z(4483),u=Z(1548),o=n.structuredClone,y=n.ArrayBuffer,I=n.DataView,k=n.TypeError,w=Math.min,K=y.prototype,C=I.prototype,P=i(K.slice),r=N(K,"resizable","get"),_=N(K,"maxByteLength","get"),v=i(C.getInt8),j=i(C.setInt8);a.exports=(u||X)&&function(H,$,E){var O=T(H),A=$===void 0?O:b($),Zl=!r||!r(H),Vl;if(M(H))throw new k("ArrayBuffer is detached");if(u&&(H=o(H,{transfer:[H]}),O===A&&(E||Zl)))return H;if(O>=A&&(!E||Zl))Vl=P(H,0,A);else{var Nl=E&&!Zl&&_?{maxByteLength:_(H)}:void 0;Vl=new y(A,Nl);for(var nl=new I(H),g=new I(Vl),Yl=w(A,O),Gl=0;Gl<Yl;Gl++)j(g,Gl,v(nl,Gl))}return u||X(H),Vl}},4644:(a,t,Z)=>{var n=Z(7811),i=Z(3724),N=Z(4475),b=Z(4901),M=Z(34),T=Z(9297),X=Z(6955),u=Z(6823),o=Z(6699),y=Z(6840),I=Z(2106),k=Z(1625),w=Z(2787),K=Z(2967),C=Z(8227),P=Z(3392),r=Z(1181),_=r.enforce,v=r.get,j=N.Int8Array,H=j&&j.prototype,$=N.Uint8ClampedArray,E=$&&$.prototype,O=j&&w(j),A=H&&w(H),Zl=Object.prototype,Vl=N.TypeError,Nl=C("toStringTag"),nl=P("TYPED_ARRAY_TAG"),g="TypedArrayConstructor",Yl=n&&!!K&&X(N.opera)!=="Opera",Gl=!1,Ll,ZU,PU,YU={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Nd={BigInt64Array:8,BigUint64Array:8},tt=function(sl){if(!M(sl))return!1;var kl=X(sl);return kl==="DataView"||T(YU,kl)||T(Nd,kl)},Ft=function(sl){var kl=w(sl);if(M(kl)){var Cl=v(kl);return Cl&&T(Cl,g)?Cl[g]:Ft(kl)}},cl=function(sl){if(!M(sl))return!1;var kl=X(sl);return T(YU,kl)||T(Nd,kl)},Ul=function(sl){if(cl(sl))return sl;throw new Vl("Target is not a typed array")},Fl=function(sl){if(b(sl)&&(!K||k(O,sl)))return sl;throw new Vl(u(sl)+" is not a typed array constructor")},el=function(sl,kl,Cl,pU){if(i){if(Cl)for(var Al in YU){var _l=N[Al];if(_l&&T(_l.prototype,sl))try{delete _l.prototype[sl]}catch{try{_l.prototype[sl]=kl}catch{}}}(!A[sl]||Cl)&&y(A,sl,Cl?kl:Yl&&H[sl]||kl,pU)}},zl=function(sl,kl,Cl){var pU,Al;if(i){if(K){if(Cl){for(pU in YU)if(Al=N[pU],Al&&T(Al,sl))try{delete Al[sl]}catch{}}if(!O[sl]||Cl)try{return y(O,sl,Cl?kl:Yl&&O[sl]||kl)}catch{}else return}for(pU in YU)Al=N[pU],Al&&(!Al[sl]||Cl)&&y(Al,sl,kl)}};for(Ll in YU)ZU=N[Ll],PU=ZU&&ZU.prototype,PU?_(PU)[g]=ZU:Yl=!1;for(Ll in Nd)ZU=N[Ll],PU=ZU&&ZU.prototype,PU&&(_(PU)[g]=ZU);if((!Yl||!b(O)||O===Function.prototype)&&(O=function(){throw new Vl("Incorrect invocation")},Yl))for(Ll in YU)N[Ll]&&K(N[Ll],O);if((!Yl||!A||A===Zl)&&(A=O.prototype,Yl))for(Ll in YU)N[Ll]&&K(N[Ll].prototype,A);if(Yl&&w(E)!==A&&K(E,A),i&&!T(A,Nl)){Gl=!0,I(A,Nl,{configurable:!0,get:function(){return M(this)?this[nl]:void 0}});for(Ll in YU)N[Ll]&&o(N[Ll],nl,Ll)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:Yl,TYPED_ARRAY_TAG:Gl&&nl,aTypedArray:Ul,aTypedArrayConstructor:Fl,exportTypedArrayMethod:el,exportTypedArrayStaticMethod:zl,getTypedArrayConstructor:Ft,isView:tt,isTypedArray:cl,TypedArray:O,TypedArrayPrototype:A}},5370:(a,t,Z)=>{var n=Z(6198);a.exports=function(i,N,b){for(var M=0,T=arguments.length>2?b:n(N),X=new i(T);T>M;)X[M]=N[M++];return X}},9617:(a,t,Z)=>{var n=Z(5397),i=Z(5610),N=Z(6198),b=function(M){return function(T,X,u){var o=n(T),y=N(o);if(y===0)return!M&&-1;var I=i(u,y),k;if(M&&X!==X){for(;y>I;)if(k=o[I++],k!==k)return!0}else for(;y>I;I++)if((M||I in o)&&o[I]===X)return M||I||0;return!M&&-1}};a.exports={includes:b(!0),indexOf:b(!1)}},4527:(a,t,Z)=>{var n=Z(3724),i=Z(4376),N=TypeError,b=Object.getOwnPropertyDescriptor,M=n&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(T){return T instanceof TypeError}}();a.exports=M?function(T,X){if(i(T)&&!b(T,"length").writable)throw new N("Cannot set read only .length");return T.length=X}:function(T,X){return T.length=X}},7628:(a,t,Z)=>{var n=Z(6198);a.exports=function(i,N){for(var b=n(i),M=new N(b),T=0;T<b;T++)M[T]=i[b-T-1];return M}},9928:(a,t,Z)=>{var n=Z(6198),i=Z(1291),N=RangeError;a.exports=function(b,M,T,X){var u=n(b),o=i(T),y=o<0?u+o:o;if(y>=u||y<0)throw new N("Incorrect index");for(var I=new M(u),k=0;k<u;k++)I[k]=k===y?X:b[k];return I}},6319:(a,t,Z)=>{var n=Z(8551),i=Z(9539);a.exports=function(N,b,M,T){try{return T?b(n(M)[0],M[1]):b(M)}catch(X){i(N,"throw",X)}}},4576:(a,t,Z)=>{var n=Z(9504),i=n({}.toString),N=n("".slice);a.exports=function(b){return N(i(b),8,-1)}},6955:(a,t,Z)=>{var n=Z(2140),i=Z(4901),N=Z(4576),b=Z(8227),M=b("toStringTag"),T=Object,X=N(function(){return arguments}())==="Arguments",u=function(o,y){try{return o[y]}catch{}};a.exports=n?N:function(o){var y,I,k;return o===void 0?"Undefined":o===null?"Null":typeof(I=u(y=T(o),M))=="string"?I:X?N(y):(k=N(y))==="Object"&&i(y.callee)?"Arguments":k}},7740:(a,t,Z)=>{var n=Z(9297),i=Z(5031),N=Z(7347),b=Z(4913);a.exports=function(M,T,X){for(var u=i(T),o=b.f,y=N.f,I=0;I<u.length;I++){var k=u[I];!n(M,k)&&!(X&&n(X,k))&&o(M,k,y(T,k))}}},2211:(a,t,Z)=>{var n=Z(9039);a.exports=!n(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},2529:a=>{a.exports=function(t,Z){return{value:t,done:Z}}},6699:(a,t,Z)=>{var n=Z(3724),i=Z(4913),N=Z(6980);a.exports=n?function(b,M,T){return i.f(b,M,N(1,T))}:function(b,M,T){return b[M]=T,b}},6980:a=>{a.exports=function(t,Z){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:Z}}},4659:(a,t,Z)=>{var n=Z(3724),i=Z(4913),N=Z(6980);a.exports=function(b,M,T){n?i.f(b,M,N(0,T)):b[M]=T}},2106:(a,t,Z)=>{var n=Z(283),i=Z(4913);a.exports=function(N,b,M){return M.get&&n(M.get,b,{getter:!0}),M.set&&n(M.set,b,{setter:!0}),i.f(N,b,M)}},6840:(a,t,Z)=>{var n=Z(4901),i=Z(4913),N=Z(283),b=Z(9433);a.exports=function(M,T,X,u){u||(u={});var o=u.enumerable,y=u.name!==void 0?u.name:T;if(n(X)&&N(X,y,u),u.global)o?M[T]=X:b(T,X);else{try{u.unsafe?M[T]&&(o=!0):delete M[T]}catch{}o?M[T]=X:i.f(M,T,{value:X,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return M}},6279:(a,t,Z)=>{var n=Z(6840);a.exports=function(i,N,b){for(var M in N)n(i,M,N[M],b);return i}},9433:(a,t,Z)=>{var n=Z(4475),i=Object.defineProperty;a.exports=function(N,b){try{i(n,N,{value:b,configurable:!0,writable:!0})}catch{n[N]=b}return b}},3724:(a,t,Z)=>{var n=Z(9039);a.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483:(a,t,Z)=>{var n=Z(4475),i=Z(9714),N=Z(1548),b=n.structuredClone,M=n.ArrayBuffer,T=n.MessageChannel,X=!1,u,o,y,I;if(N)X=function(k){b(k,{transfer:[k]})};else if(M)try{T||(u=i("worker_threads"),u&&(T=u.MessageChannel)),T&&(o=new T,y=new M(2),I=function(k){o.port1.postMessage(null,[k])},y.byteLength===2&&(I(y),y.byteLength===0&&(X=I)))}catch{}a.exports=X},4055:(a,t,Z)=>{var n=Z(4475),i=Z(34),N=n.document,b=i(N)&&i(N.createElement);a.exports=function(M){return b?N.createElement(M):{}}},6837:a=>{var t=TypeError,Z=9007199254740991;a.exports=function(n){if(n>Z)throw t("Maximum allowed index exceeded");return n}},5002:a=>{a.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},7290:(a,t,Z)=>{var n=Z(516),i=Z(9088);a.exports=!n&&!i&&typeof window=="object"&&typeof document=="object"},516:a=>{a.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},9088:(a,t,Z)=>{var n=Z(4475),i=Z(4576);a.exports=i(n.process)==="process"},9392:a=>{a.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7388:(a,t,Z)=>{var n=Z(4475),i=Z(9392),N=n.process,b=n.Deno,M=N&&N.versions||b&&b.version,T=M&&M.v8,X,u;T&&(X=T.split("."),u=X[0]>0&&X[0]<4?1:+(X[0]+X[1])),!u&&i&&(X=i.match(/Edge\/(\d+)/),(!X||X[1]>=74)&&(X=i.match(/Chrome\/(\d+)/),X&&(u=+X[1]))),a.exports=u},8727:a=>{a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6193:(a,t,Z)=>{var n=Z(9504),i=Error,N=n("".replace),b=function(X){return String(new i(X).stack)}("zxcasd"),M=/\n\s*at [^:]*:[^\n]*/,T=M.test(b);a.exports=function(X,u){if(T&&typeof X=="string"&&!i.prepareStackTrace)for(;u--;)X=N(X,M,"");return X}},6518:(a,t,Z)=>{var n=Z(4475),i=Z(7347).f,N=Z(6699),b=Z(6840),M=Z(9433),T=Z(7740),X=Z(2796);a.exports=function(u,o){var y=u.target,I=u.global,k=u.stat,w,K,C,P,r,_;if(I?K=n:k?K=n[y]||M(y,{}):K=n[y]&&n[y].prototype,K)for(C in o){if(r=o[C],u.dontCallGetSet?(_=i(K,C),P=_&&_.value):P=K[C],w=X(I?C:y+(k?".":"#")+C,u.forced),!w&&P!==void 0){if(typeof r==typeof P)continue;T(r,P)}(u.sham||P&&P.sham)&&N(r,"sham",!0),b(K,C,r,u)}}},9039:a=>{a.exports=function(t){try{return!!t()}catch{return!0}}},6080:(a,t,Z)=>{var n=Z(7476),i=Z(9306),N=Z(616),b=n(n.bind);a.exports=function(M,T){return i(M),T===void 0?M:N?b(M,T):function(){return M.apply(T,arguments)}}},616:(a,t,Z)=>{var n=Z(9039);a.exports=!n(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},9565:(a,t,Z)=>{var n=Z(616),i=Function.prototype.call;a.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},350:(a,t,Z)=>{var n=Z(3724),i=Z(9297),N=Function.prototype,b=n&&Object.getOwnPropertyDescriptor,M=i(N,"name"),T=M&&(function(){}).name==="something",X=M&&(!n||n&&b(N,"name").configurable);a.exports={EXISTS:M,PROPER:T,CONFIGURABLE:X}},6706:(a,t,Z)=>{var n=Z(9504),i=Z(9306);a.exports=function(N,b,M){try{return n(i(Object.getOwnPropertyDescriptor(N,b)[M]))}catch{}}},7476:(a,t,Z)=>{var n=Z(4576),i=Z(9504);a.exports=function(N){if(n(N)==="Function")return i(N)}},9504:(a,t,Z)=>{var n=Z(616),i=Function.prototype,N=i.call,b=n&&i.bind.bind(N,N);a.exports=n?b:function(M){return function(){return N.apply(M,arguments)}}},7751:(a,t,Z)=>{var n=Z(4475),i=Z(4901),N=function(b){return i(b)?b:void 0};a.exports=function(b,M){return arguments.length<2?N(n[b]):n[b]&&n[b][M]}},1767:a=>{a.exports=function(t){return{iterator:t,next:t.next,done:!1}}},8646:(a,t,Z)=>{var n=Z(9565),i=Z(8551),N=Z(1767),b=Z(851);a.exports=function(M,T){(!T||typeof M!="string")&&i(M);var X=b(M);return N(i(X!==void 0?n(X,M):M))}},851:(a,t,Z)=>{var n=Z(6955),i=Z(5966),N=Z(4117),b=Z(6269),M=Z(8227),T=M("iterator");a.exports=function(X){if(!N(X))return i(X,T)||i(X,"@@iterator")||b[n(X)]}},81:(a,t,Z)=>{var n=Z(9565),i=Z(9306),N=Z(8551),b=Z(6823),M=Z(851),T=TypeError;a.exports=function(X,u){var o=arguments.length<2?M(X):u;if(i(o))return N(n(o,X));throw new T(b(X)+" is not iterable")}},5966:(a,t,Z)=>{var n=Z(9306),i=Z(4117);a.exports=function(N,b){var M=N[b];return i(M)?void 0:n(M)}},3789:(a,t,Z)=>{var n=Z(9306),i=Z(8551),N=Z(9565),b=Z(1291),M=Z(1767),T="Invalid size",X=RangeError,u=TypeError,o=Math.max,y=function(I,k){this.set=I,this.size=o(k,0),this.has=n(I.has),this.keys=n(I.keys)};y.prototype={getIterator:function(){return M(i(N(this.keys,this.set)))},includes:function(I){return N(this.has,this.set,I)}},a.exports=function(I){i(I);var k=+I.size;if(k!==k)throw new u(T);var w=b(k);if(w<0)throw new X(T);return new y(I,w)}},4475:function(a){var t=function(Z){return Z&&Z.Math===Math&&Z};a.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof global=="object"&&global)||t(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},9297:(a,t,Z)=>{var n=Z(9504),i=Z(8981),N=n({}.hasOwnProperty);a.exports=Object.hasOwn||function(b,M){return N(i(b),M)}},421:a=>{a.exports={}},397:(a,t,Z)=>{var n=Z(7751);a.exports=n("document","documentElement")},5917:(a,t,Z)=>{var n=Z(3724),i=Z(9039),N=Z(4055);a.exports=!n&&!i(function(){return Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a!==7})},7055:(a,t,Z)=>{var n=Z(9504),i=Z(9039),N=Z(4576),b=Object,M=n("".split);a.exports=i(function(){return!b("z").propertyIsEnumerable(0)})?function(T){return N(T)==="String"?M(T,""):b(T)}:b},3167:(a,t,Z)=>{var n=Z(4901),i=Z(34),N=Z(2967);a.exports=function(b,M,T){var X,u;return N&&n(X=M.constructor)&&X!==T&&i(u=X.prototype)&&u!==T.prototype&&N(b,u),b}},3706:(a,t,Z)=>{var n=Z(9504),i=Z(4901),N=Z(7629),b=n(Function.toString);i(N.inspectSource)||(N.inspectSource=function(M){return b(M)}),a.exports=N.inspectSource},1181:(a,t,Z)=>{var n=Z(8622),i=Z(4475),N=Z(34),b=Z(6699),M=Z(9297),T=Z(7629),X=Z(6119),u=Z(421),o="Object already initialized",y=i.TypeError,I=i.WeakMap,k,w,K,C=function(v){return K(v)?w(v):k(v,{})},P=function(v){return function(j){var H;if(!N(j)||(H=w(j)).type!==v)throw new y("Incompatible receiver, "+v+" required");return H}};if(n||T.state){var r=T.state||(T.state=new I);r.get=r.get,r.has=r.has,r.set=r.set,k=function(v,j){if(r.has(v))throw new y(o);return j.facade=v,r.set(v,j),j},w=function(v){return r.get(v)||{}},K=function(v){return r.has(v)}}else{var _=X("state");u[_]=!0,k=function(v,j){if(M(v,_))throw new y(o);return j.facade=v,b(v,_,j),j},w=function(v){return M(v,_)?v[_]:{}},K=function(v){return M(v,_)}}a.exports={set:k,get:w,has:K,enforce:C,getterFor:P}},4209:(a,t,Z)=>{var n=Z(8227),i=Z(6269),N=n("iterator"),b=Array.prototype;a.exports=function(M){return M!==void 0&&(i.Array===M||b[N]===M)}},4376:(a,t,Z)=>{var n=Z(4576);a.exports=Array.isArray||function(i){return n(i)==="Array"}},1108:(a,t,Z)=>{var n=Z(6955);a.exports=function(i){var N=n(i);return N==="BigInt64Array"||N==="BigUint64Array"}},4901:a=>{var t=typeof document=="object"&&document.all;a.exports=typeof t>"u"&&t!==void 0?function(Z){return typeof Z=="function"||Z===t}:function(Z){return typeof Z=="function"}},2796:(a,t,Z)=>{var n=Z(9039),i=Z(4901),N=/#|\.prototype\./,b=function(o,y){var I=T[M(o)];return I===u?!0:I===X?!1:i(y)?n(y):!!y},M=b.normalize=function(o){return String(o).replace(N,".").toLowerCase()},T=b.data={},X=b.NATIVE="N",u=b.POLYFILL="P";a.exports=b},4117:a=>{a.exports=function(t){return t==null}},34:(a,t,Z)=>{var n=Z(4901);a.exports=function(i){return typeof i=="object"?i!==null:n(i)}},3925:(a,t,Z)=>{var n=Z(34);a.exports=function(i){return n(i)||i===null}},6395:a=>{a.exports=!1},757:(a,t,Z)=>{var n=Z(7751),i=Z(4901),N=Z(1625),b=Z(7040),M=Object;a.exports=b?function(T){return typeof T=="symbol"}:function(T){var X=n("Symbol");return i(X)&&N(X.prototype,M(T))}},507:(a,t,Z)=>{var n=Z(9565);a.exports=function(i,N,b){for(var M=b?i:i.iterator,T=i.next,X,u;!(X=n(T,M)).done;)if(u=N(X.value),u!==void 0)return u}},2652:(a,t,Z)=>{var n=Z(6080),i=Z(9565),N=Z(8551),b=Z(6823),M=Z(4209),T=Z(6198),X=Z(1625),u=Z(81),o=Z(851),y=Z(9539),I=TypeError,k=function(K,C){this.stopped=K,this.result=C},w=k.prototype;a.exports=function(K,C,P){var r=P&&P.that,_=!!(P&&P.AS_ENTRIES),v=!!(P&&P.IS_RECORD),j=!!(P&&P.IS_ITERATOR),H=!!(P&&P.INTERRUPTED),$=n(C,r),E,O,A,Zl,Vl,Nl,nl,g=function(Gl){return E&&y(E,"normal",Gl),new k(!0,Gl)},Yl=function(Gl){return _?(N(Gl),H?$(Gl[0],Gl[1],g):$(Gl[0],Gl[1])):H?$(Gl,g):$(Gl)};if(v)E=K.iterator;else if(j)E=K;else{if(O=o(K),!O)throw new I(b(K)+" is not iterable");if(M(O)){for(A=0,Zl=T(K);Zl>A;A++)if(Vl=Yl(K[A]),Vl&&X(w,Vl))return Vl;return new k(!1)}E=u(K,O)}for(Nl=v?K.next:E.next;!(nl=i(Nl,E)).done;){try{Vl=Yl(nl.value)}catch(Gl){y(E,"throw",Gl)}if(typeof Vl=="object"&&Vl&&X(w,Vl))return Vl}return new k(!1)}},9539:(a,t,Z)=>{var n=Z(9565),i=Z(8551),N=Z(5966);a.exports=function(b,M,T){var X,u;i(b);try{if(X=N(b,"return"),!X){if(M==="throw")throw T;return T}X=n(X,b)}catch(o){u=!0,X=o}if(M==="throw")throw T;if(u)throw X;return i(X),T}},9462:(a,t,Z)=>{var n=Z(9565),i=Z(2360),N=Z(6699),b=Z(6279),M=Z(8227),T=Z(1181),X=Z(5966),u=Z(7657).IteratorPrototype,o=Z(2529),y=Z(9539),I=M("toStringTag"),k="IteratorHelper",w="WrapForValidIterator",K=T.set,C=function(_){var v=T.getterFor(_?w:k);return b(i(u),{next:function(){var j=v(this);if(_)return j.nextHandler();try{var H=j.done?void 0:j.nextHandler();return o(H,j.done)}catch($){throw j.done=!0,$}},return:function(){var j=v(this),H=j.iterator;if(j.done=!0,_){var $=X(H,"return");return $?n($,H):o(void 0,!0)}if(j.inner)try{y(j.inner.iterator,"normal")}catch(E){return y(H,"throw",E)}return y(H,"normal"),o(void 0,!0)}})},P=C(!0),r=C(!1);N(r,I,"Iterator Helper"),a.exports=function(_,v){var j=function(H,$){$?($.iterator=H.iterator,$.next=H.next):$=H,$.type=v?w:k,$.nextHandler=_,$.counter=0,$.done=!1,K(this,$)};return j.prototype=v?P:r,j}},713:(a,t,Z)=>{var n=Z(9565),i=Z(9306),N=Z(8551),b=Z(1767),M=Z(9462),T=Z(6319),X=M(function(){var u=this.iterator,o=N(n(this.next,u)),y=this.done=!!o.done;if(!y)return T(u,this.mapper,[o.value,this.counter++],!0)});a.exports=function(u){return N(this),i(u),new X(b(this),{mapper:u})}},7657:(a,t,Z)=>{var n=Z(9039),i=Z(4901),N=Z(34),b=Z(2360),M=Z(2787),T=Z(6840),X=Z(8227),u=Z(6395),o=X("iterator"),y=!1,I,k,w;[].keys&&(w=[].keys(),"next"in w?(k=M(M(w)),k!==Object.prototype&&(I=k)):y=!0);var K=!N(I)||n(function(){var C={};return I[o].call(C)!==C});K?I={}:u&&(I=b(I)),i(I[o])||T(I,o,function(){return this}),a.exports={IteratorPrototype:I,BUGGY_SAFARI_ITERATORS:y}},6269:a=>{a.exports={}},6198:(a,t,Z)=>{var n=Z(8014);a.exports=function(i){return n(i.length)}},283:(a,t,Z)=>{var n=Z(9504),i=Z(9039),N=Z(4901),b=Z(9297),M=Z(3724),T=Z(350).CONFIGURABLE,X=Z(3706),u=Z(1181),o=u.enforce,y=u.get,I=String,k=Object.defineProperty,w=n("".slice),K=n("".replace),C=n([].join),P=M&&!i(function(){return k(function(){},"length",{value:8}).length!==8}),r=String(String).split("String"),_=a.exports=function(v,j,H){w(I(j),0,7)==="Symbol("&&(j="["+K(I(j),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),H&&H.getter&&(j="get "+j),H&&H.setter&&(j="set "+j),(!b(v,"name")||T&&v.name!==j)&&(M?k(v,"name",{value:j,configurable:!0}):v.name=j),P&&H&&b(H,"arity")&&v.length!==H.arity&&k(v,"length",{value:H.arity});try{H&&b(H,"constructor")&&H.constructor?M&&k(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var $=o(v);return b($,"source")||($.source=C(r,typeof j=="string"?j:"")),v};Function.prototype.toString=_(function(){return N(this)&&y(this).source||X(this)},"toString")},741:a=>{var t=Math.ceil,Z=Math.floor;a.exports=Math.trunc||function(n){var i=+n;return(i>0?Z:t)(i)}},6043:(a,t,Z)=>{var n=Z(9306),i=TypeError,N=function(b){var M,T;this.promise=new b(function(X,u){if(M!==void 0||T!==void 0)throw new i("Bad Promise constructor");M=X,T=u}),this.resolve=n(M),this.reject=n(T)};a.exports.f=function(b){return new N(b)}},2603:(a,t,Z)=>{var n=Z(655);a.exports=function(i,N){return i===void 0?arguments.length<2?"":N:n(i)}},2360:(a,t,Z)=>{var n=Z(8551),i=Z(6801),N=Z(8727),b=Z(421),M=Z(397),T=Z(4055),X=Z(6119),u=">",o="<",y="prototype",I="script",k=X("IE_PROTO"),w=function(){},K=function(v){return o+I+u+v+o+"/"+I+u},C=function(v){v.write(K("")),v.close();var j=v.parentWindow.Object;return v=null,j},P=function(){var v=T("iframe"),j="java"+I+":",H;return v.style.display="none",M.appendChild(v),v.src=String(j),H=v.contentWindow.document,H.open(),H.write(K("document.F=Object")),H.close(),H.F},r,_=function(){try{r=new ActiveXObject("htmlfile")}catch{}_=typeof document<"u"?document.domain&&r?C(r):P():C(r);for(var v=N.length;v--;)delete _[y][N[v]];return _()};b[k]=!0,a.exports=Object.create||function(v,j){var H;return v!==null?(w[y]=n(v),H=new w,w[y]=null,H[k]=v):H=_(),j===void 0?H:i.f(H,j)}},6801:(a,t,Z)=>{var n=Z(3724),i=Z(8686),N=Z(4913),b=Z(8551),M=Z(5397),T=Z(1072);t.f=n&&!i?Object.defineProperties:function(X,u){b(X);for(var o=M(u),y=T(u),I=y.length,k=0,w;I>k;)N.f(X,w=y[k++],o[w]);return X}},4913:(a,t,Z)=>{var n=Z(3724),i=Z(5917),N=Z(8686),b=Z(8551),M=Z(6969),T=TypeError,X=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o="enumerable",y="configurable",I="writable";t.f=n?N?function(k,w,K){if(b(k),w=M(w),b(K),typeof k=="function"&&w==="prototype"&&"value"in K&&I in K&&!K[I]){var C=u(k,w);C&&C[I]&&(k[w]=K.value,K={configurable:y in K?K[y]:C[y],enumerable:o in K?K[o]:C[o],writable:!1})}return X(k,w,K)}:X:function(k,w,K){if(b(k),w=M(w),b(K),i)try{return X(k,w,K)}catch{}if("get"in K||"set"in K)throw new T("Accessors not supported");return"value"in K&&(k[w]=K.value),k}},7347:(a,t,Z)=>{var n=Z(3724),i=Z(9565),N=Z(8773),b=Z(6980),M=Z(5397),T=Z(6969),X=Z(9297),u=Z(5917),o=Object.getOwnPropertyDescriptor;t.f=n?o:function(y,I){if(y=M(y),I=T(I),u)try{return o(y,I)}catch{}if(X(y,I))return b(!i(N.f,y,I),y[I])}},8480:(a,t,Z)=>{var n=Z(1828),i=Z(8727),N=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(b){return n(b,N)}},3717:(a,t)=>{t.f=Object.getOwnPropertySymbols},2787:(a,t,Z)=>{var n=Z(9297),i=Z(4901),N=Z(8981),b=Z(6119),M=Z(2211),T=b("IE_PROTO"),X=Object,u=X.prototype;a.exports=M?X.getPrototypeOf:function(o){var y=N(o);if(n(y,T))return y[T];var I=y.constructor;return i(I)&&y instanceof I?I.prototype:y instanceof X?u:null}},1625:(a,t,Z)=>{var n=Z(9504);a.exports=n({}.isPrototypeOf)},1828:(a,t,Z)=>{var n=Z(9504),i=Z(9297),N=Z(5397),b=Z(9617).indexOf,M=Z(421),T=n([].push);a.exports=function(X,u){var o=N(X),y=0,I=[],k;for(k in o)!i(M,k)&&i(o,k)&&T(I,k);for(;u.length>y;)i(o,k=u[y++])&&(~b(I,k)||T(I,k));return I}},1072:(a,t,Z)=>{var n=Z(1828),i=Z(8727);a.exports=Object.keys||function(N){return n(N,i)}},8773:(a,t)=>{var Z={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!Z.call({1:2},1);t.f=i?function(N){var b=n(this,N);return!!b&&b.enumerable}:Z},2967:(a,t,Z)=>{var n=Z(6706),i=Z(34),N=Z(7750),b=Z(3506);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var M=!1,T={},X;try{X=n(Object.prototype,"__proto__","set"),X(T,[]),M=T instanceof Array}catch{}return function(u,o){return N(u),b(o),i(u)&&(M?X(u,o):u.__proto__=o),u}}():void 0)},4270:(a,t,Z)=>{var n=Z(9565),i=Z(4901),N=Z(34),b=TypeError;a.exports=function(M,T){var X,u;if(T==="string"&&i(X=M.toString)&&!N(u=n(X,M))||i(X=M.valueOf)&&!N(u=n(X,M))||T!=="string"&&i(X=M.toString)&&!N(u=n(X,M)))return u;throw new b("Can't convert object to primitive value")}},5031:(a,t,Z)=>{var n=Z(7751),i=Z(9504),N=Z(8480),b=Z(3717),M=Z(8551),T=i([].concat);a.exports=n("Reflect","ownKeys")||function(X){var u=N.f(M(X)),o=b.f;return o?T(u,o(X)):u}},8235:(a,t,Z)=>{var n=Z(9504),i=Z(9297),N=SyntaxError,b=parseInt,M=String.fromCharCode,T=n("".charAt),X=n("".slice),u=n(/./.exec),o={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
1
|
+
import{s as rW,w as bJ,dx as mJ,o as c2,e as eJ,r as MJ,aB as GJ,h as JJ,a as bR,Z as n0,aF as eW,U as TJ,aG as SJ,by as se,aO as W2,aJ as Qe,bF as XJ,_ as YJ,an as pJ,V as uJ,W as BJ,Y as oJ,X as yJ,ak as zJ}from"./admin-drawer-panel-vQfT7tFo.js";import{b as mR}from"./main-D888wgNq.js";var LJ=Object.defineProperty,kJ=(a,t,Z)=>t in a?LJ(a,t,{enumerable:!0,configurable:!0,writable:!0,value:Z}):a[t]=Z,ml=(a,t,Z)=>(kJ(a,typeof t!="symbol"?t+"":t,Z),Z),Hh=(a,t,Z)=>{if(!t.has(a))throw TypeError("Cannot "+Z)},F=(a,t,Z)=>(Hh(a,t,"read from private field"),Z?Z.call(a):t.get(a)),h=(a,t,Z)=>{if(t.has(a))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(a):t.set(a,Z)},J=(a,t,Z,n)=>(Hh(a,t,"write to private field"),t.set(a,Z),Z),vU=(a,t,Z,n)=>({set _(i){J(a,t,i)},get _(){return F(a,t,n)}}),G=(a,t,Z)=>(Hh(a,t,"access private method"),Z),IJ={9306:(a,t,Z)=>{var n=Z(4901),i=Z(6823),N=TypeError;a.exports=function(b){if(n(b))return b;throw new N(i(b)+" is not a function")}},3506:(a,t,Z)=>{var n=Z(3925),i=String,N=TypeError;a.exports=function(b){if(n(b))return b;throw new N("Can't set "+i(b)+" as a prototype")}},7080:(a,t,Z)=>{var n=Z(4402).has;a.exports=function(i){return n(i),i}},679:(a,t,Z)=>{var n=Z(1625),i=TypeError;a.exports=function(N,b){if(n(b,N))return N;throw new i("Incorrect invocation")}},8551:(a,t,Z)=>{var n=Z(34),i=String,N=TypeError;a.exports=function(b){if(n(b))return b;throw new N(i(b)+" is not an object")}},7811:a=>{a.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},7394:(a,t,Z)=>{var n=Z(6706),i=Z(4576),N=TypeError;a.exports=n(ArrayBuffer.prototype,"byteLength","get")||function(b){if(i(b)!=="ArrayBuffer")throw new N("ArrayBuffer expected");return b.byteLength}},3238:(a,t,Z)=>{var n=Z(9504),i=Z(7394),N=n(ArrayBuffer.prototype.slice);a.exports=function(b){if(i(b)!==0)return!1;try{return N(b,0,0),!1}catch{return!0}}},5636:(a,t,Z)=>{var n=Z(4475),i=Z(9504),N=Z(6706),b=Z(7696),M=Z(3238),T=Z(7394),X=Z(4483),u=Z(1548),o=n.structuredClone,y=n.ArrayBuffer,I=n.DataView,k=n.TypeError,w=Math.min,K=y.prototype,C=I.prototype,P=i(K.slice),r=N(K,"resizable","get"),_=N(K,"maxByteLength","get"),v=i(C.getInt8),j=i(C.setInt8);a.exports=(u||X)&&function(H,$,E){var O=T(H),A=$===void 0?O:b($),Zl=!r||!r(H),Vl;if(M(H))throw new k("ArrayBuffer is detached");if(u&&(H=o(H,{transfer:[H]}),O===A&&(E||Zl)))return H;if(O>=A&&(!E||Zl))Vl=P(H,0,A);else{var Nl=E&&!Zl&&_?{maxByteLength:_(H)}:void 0;Vl=new y(A,Nl);for(var nl=new I(H),g=new I(Vl),Yl=w(A,O),Gl=0;Gl<Yl;Gl++)j(g,Gl,v(nl,Gl))}return u||X(H),Vl}},4644:(a,t,Z)=>{var n=Z(7811),i=Z(3724),N=Z(4475),b=Z(4901),M=Z(34),T=Z(9297),X=Z(6955),u=Z(6823),o=Z(6699),y=Z(6840),I=Z(2106),k=Z(1625),w=Z(2787),K=Z(2967),C=Z(8227),P=Z(3392),r=Z(1181),_=r.enforce,v=r.get,j=N.Int8Array,H=j&&j.prototype,$=N.Uint8ClampedArray,E=$&&$.prototype,O=j&&w(j),A=H&&w(H),Zl=Object.prototype,Vl=N.TypeError,Nl=C("toStringTag"),nl=P("TYPED_ARRAY_TAG"),g="TypedArrayConstructor",Yl=n&&!!K&&X(N.opera)!=="Opera",Gl=!1,Ll,ZU,PU,YU={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Nd={BigInt64Array:8,BigUint64Array:8},tt=function(sl){if(!M(sl))return!1;var kl=X(sl);return kl==="DataView"||T(YU,kl)||T(Nd,kl)},Ft=function(sl){var kl=w(sl);if(M(kl)){var Cl=v(kl);return Cl&&T(Cl,g)?Cl[g]:Ft(kl)}},cl=function(sl){if(!M(sl))return!1;var kl=X(sl);return T(YU,kl)||T(Nd,kl)},Ul=function(sl){if(cl(sl))return sl;throw new Vl("Target is not a typed array")},Fl=function(sl){if(b(sl)&&(!K||k(O,sl)))return sl;throw new Vl(u(sl)+" is not a typed array constructor")},el=function(sl,kl,Cl,pU){if(i){if(Cl)for(var Al in YU){var _l=N[Al];if(_l&&T(_l.prototype,sl))try{delete _l.prototype[sl]}catch{try{_l.prototype[sl]=kl}catch{}}}(!A[sl]||Cl)&&y(A,sl,Cl?kl:Yl&&H[sl]||kl,pU)}},zl=function(sl,kl,Cl){var pU,Al;if(i){if(K){if(Cl){for(pU in YU)if(Al=N[pU],Al&&T(Al,sl))try{delete Al[sl]}catch{}}if(!O[sl]||Cl)try{return y(O,sl,Cl?kl:Yl&&O[sl]||kl)}catch{}else return}for(pU in YU)Al=N[pU],Al&&(!Al[sl]||Cl)&&y(Al,sl,kl)}};for(Ll in YU)ZU=N[Ll],PU=ZU&&ZU.prototype,PU?_(PU)[g]=ZU:Yl=!1;for(Ll in Nd)ZU=N[Ll],PU=ZU&&ZU.prototype,PU&&(_(PU)[g]=ZU);if((!Yl||!b(O)||O===Function.prototype)&&(O=function(){throw new Vl("Incorrect invocation")},Yl))for(Ll in YU)N[Ll]&&K(N[Ll],O);if((!Yl||!A||A===Zl)&&(A=O.prototype,Yl))for(Ll in YU)N[Ll]&&K(N[Ll].prototype,A);if(Yl&&w(E)!==A&&K(E,A),i&&!T(A,Nl)){Gl=!0,I(A,Nl,{configurable:!0,get:function(){return M(this)?this[nl]:void 0}});for(Ll in YU)N[Ll]&&o(N[Ll],nl,Ll)}a.exports={NATIVE_ARRAY_BUFFER_VIEWS:Yl,TYPED_ARRAY_TAG:Gl&&nl,aTypedArray:Ul,aTypedArrayConstructor:Fl,exportTypedArrayMethod:el,exportTypedArrayStaticMethod:zl,getTypedArrayConstructor:Ft,isView:tt,isTypedArray:cl,TypedArray:O,TypedArrayPrototype:A}},5370:(a,t,Z)=>{var n=Z(6198);a.exports=function(i,N,b){for(var M=0,T=arguments.length>2?b:n(N),X=new i(T);T>M;)X[M]=N[M++];return X}},9617:(a,t,Z)=>{var n=Z(5397),i=Z(5610),N=Z(6198),b=function(M){return function(T,X,u){var o=n(T),y=N(o);if(y===0)return!M&&-1;var I=i(u,y),k;if(M&&X!==X){for(;y>I;)if(k=o[I++],k!==k)return!0}else for(;y>I;I++)if((M||I in o)&&o[I]===X)return M||I||0;return!M&&-1}};a.exports={includes:b(!0),indexOf:b(!1)}},4527:(a,t,Z)=>{var n=Z(3724),i=Z(4376),N=TypeError,b=Object.getOwnPropertyDescriptor,M=n&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(T){return T instanceof TypeError}}();a.exports=M?function(T,X){if(i(T)&&!b(T,"length").writable)throw new N("Cannot set read only .length");return T.length=X}:function(T,X){return T.length=X}},7628:(a,t,Z)=>{var n=Z(6198);a.exports=function(i,N){for(var b=n(i),M=new N(b),T=0;T<b;T++)M[T]=i[b-T-1];return M}},9928:(a,t,Z)=>{var n=Z(6198),i=Z(1291),N=RangeError;a.exports=function(b,M,T,X){var u=n(b),o=i(T),y=o<0?u+o:o;if(y>=u||y<0)throw new N("Incorrect index");for(var I=new M(u),k=0;k<u;k++)I[k]=k===y?X:b[k];return I}},6319:(a,t,Z)=>{var n=Z(8551),i=Z(9539);a.exports=function(N,b,M,T){try{return T?b(n(M)[0],M[1]):b(M)}catch(X){i(N,"throw",X)}}},4576:(a,t,Z)=>{var n=Z(9504),i=n({}.toString),N=n("".slice);a.exports=function(b){return N(i(b),8,-1)}},6955:(a,t,Z)=>{var n=Z(2140),i=Z(4901),N=Z(4576),b=Z(8227),M=b("toStringTag"),T=Object,X=N(function(){return arguments}())==="Arguments",u=function(o,y){try{return o[y]}catch{}};a.exports=n?N:function(o){var y,I,k;return o===void 0?"Undefined":o===null?"Null":typeof(I=u(y=T(o),M))=="string"?I:X?N(y):(k=N(y))==="Object"&&i(y.callee)?"Arguments":k}},7740:(a,t,Z)=>{var n=Z(9297),i=Z(5031),N=Z(7347),b=Z(4913);a.exports=function(M,T,X){for(var u=i(T),o=b.f,y=N.f,I=0;I<u.length;I++){var k=u[I];!n(M,k)&&!(X&&n(X,k))&&o(M,k,y(T,k))}}},2211:(a,t,Z)=>{var n=Z(9039);a.exports=!n(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},2529:a=>{a.exports=function(t,Z){return{value:t,done:Z}}},6699:(a,t,Z)=>{var n=Z(3724),i=Z(4913),N=Z(6980);a.exports=n?function(b,M,T){return i.f(b,M,N(1,T))}:function(b,M,T){return b[M]=T,b}},6980:a=>{a.exports=function(t,Z){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:Z}}},4659:(a,t,Z)=>{var n=Z(3724),i=Z(4913),N=Z(6980);a.exports=function(b,M,T){n?i.f(b,M,N(0,T)):b[M]=T}},2106:(a,t,Z)=>{var n=Z(283),i=Z(4913);a.exports=function(N,b,M){return M.get&&n(M.get,b,{getter:!0}),M.set&&n(M.set,b,{setter:!0}),i.f(N,b,M)}},6840:(a,t,Z)=>{var n=Z(4901),i=Z(4913),N=Z(283),b=Z(9433);a.exports=function(M,T,X,u){u||(u={});var o=u.enumerable,y=u.name!==void 0?u.name:T;if(n(X)&&N(X,y,u),u.global)o?M[T]=X:b(T,X);else{try{u.unsafe?M[T]&&(o=!0):delete M[T]}catch{}o?M[T]=X:i.f(M,T,{value:X,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return M}},6279:(a,t,Z)=>{var n=Z(6840);a.exports=function(i,N,b){for(var M in N)n(i,M,N[M],b);return i}},9433:(a,t,Z)=>{var n=Z(4475),i=Object.defineProperty;a.exports=function(N,b){try{i(n,N,{value:b,configurable:!0,writable:!0})}catch{n[N]=b}return b}},3724:(a,t,Z)=>{var n=Z(9039);a.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},4483:(a,t,Z)=>{var n=Z(4475),i=Z(9714),N=Z(1548),b=n.structuredClone,M=n.ArrayBuffer,T=n.MessageChannel,X=!1,u,o,y,I;if(N)X=function(k){b(k,{transfer:[k]})};else if(M)try{T||(u=i("worker_threads"),u&&(T=u.MessageChannel)),T&&(o=new T,y=new M(2),I=function(k){o.port1.postMessage(null,[k])},y.byteLength===2&&(I(y),y.byteLength===0&&(X=I)))}catch{}a.exports=X},4055:(a,t,Z)=>{var n=Z(4475),i=Z(34),N=n.document,b=i(N)&&i(N.createElement);a.exports=function(M){return b?N.createElement(M):{}}},6837:a=>{var t=TypeError,Z=9007199254740991;a.exports=function(n){if(n>Z)throw t("Maximum allowed index exceeded");return n}},5002:a=>{a.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},7290:(a,t,Z)=>{var n=Z(516),i=Z(9088);a.exports=!n&&!i&&typeof window=="object"&&typeof document=="object"},516:a=>{a.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},9088:(a,t,Z)=>{var n=Z(4475),i=Z(4576);a.exports=i(n.process)==="process"},9392:a=>{a.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},7388:(a,t,Z)=>{var n=Z(4475),i=Z(9392),N=n.process,b=n.Deno,M=N&&N.versions||b&&b.version,T=M&&M.v8,X,u;T&&(X=T.split("."),u=X[0]>0&&X[0]<4?1:+(X[0]+X[1])),!u&&i&&(X=i.match(/Edge\/(\d+)/),(!X||X[1]>=74)&&(X=i.match(/Chrome\/(\d+)/),X&&(u=+X[1]))),a.exports=u},8727:a=>{a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6193:(a,t,Z)=>{var n=Z(9504),i=Error,N=n("".replace),b=function(X){return String(new i(X).stack)}("zxcasd"),M=/\n\s*at [^:]*:[^\n]*/,T=M.test(b);a.exports=function(X,u){if(T&&typeof X=="string"&&!i.prepareStackTrace)for(;u--;)X=N(X,M,"");return X}},6518:(a,t,Z)=>{var n=Z(4475),i=Z(7347).f,N=Z(6699),b=Z(6840),M=Z(9433),T=Z(7740),X=Z(2796);a.exports=function(u,o){var y=u.target,I=u.global,k=u.stat,w,K,C,P,r,_;if(I?K=n:k?K=n[y]||M(y,{}):K=n[y]&&n[y].prototype,K)for(C in o){if(r=o[C],u.dontCallGetSet?(_=i(K,C),P=_&&_.value):P=K[C],w=X(I?C:y+(k?".":"#")+C,u.forced),!w&&P!==void 0){if(typeof r==typeof P)continue;T(r,P)}(u.sham||P&&P.sham)&&N(r,"sham",!0),b(K,C,r,u)}}},9039:a=>{a.exports=function(t){try{return!!t()}catch{return!0}}},6080:(a,t,Z)=>{var n=Z(7476),i=Z(9306),N=Z(616),b=n(n.bind);a.exports=function(M,T){return i(M),T===void 0?M:N?b(M,T):function(){return M.apply(T,arguments)}}},616:(a,t,Z)=>{var n=Z(9039);a.exports=!n(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})},9565:(a,t,Z)=>{var n=Z(616),i=Function.prototype.call;a.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},350:(a,t,Z)=>{var n=Z(3724),i=Z(9297),N=Function.prototype,b=n&&Object.getOwnPropertyDescriptor,M=i(N,"name"),T=M&&(function(){}).name==="something",X=M&&(!n||n&&b(N,"name").configurable);a.exports={EXISTS:M,PROPER:T,CONFIGURABLE:X}},6706:(a,t,Z)=>{var n=Z(9504),i=Z(9306);a.exports=function(N,b,M){try{return n(i(Object.getOwnPropertyDescriptor(N,b)[M]))}catch{}}},7476:(a,t,Z)=>{var n=Z(4576),i=Z(9504);a.exports=function(N){if(n(N)==="Function")return i(N)}},9504:(a,t,Z)=>{var n=Z(616),i=Function.prototype,N=i.call,b=n&&i.bind.bind(N,N);a.exports=n?b:function(M){return function(){return N.apply(M,arguments)}}},7751:(a,t,Z)=>{var n=Z(4475),i=Z(4901),N=function(b){return i(b)?b:void 0};a.exports=function(b,M){return arguments.length<2?N(n[b]):n[b]&&n[b][M]}},1767:a=>{a.exports=function(t){return{iterator:t,next:t.next,done:!1}}},8646:(a,t,Z)=>{var n=Z(9565),i=Z(8551),N=Z(1767),b=Z(851);a.exports=function(M,T){(!T||typeof M!="string")&&i(M);var X=b(M);return N(i(X!==void 0?n(X,M):M))}},851:(a,t,Z)=>{var n=Z(6955),i=Z(5966),N=Z(4117),b=Z(6269),M=Z(8227),T=M("iterator");a.exports=function(X){if(!N(X))return i(X,T)||i(X,"@@iterator")||b[n(X)]}},81:(a,t,Z)=>{var n=Z(9565),i=Z(9306),N=Z(8551),b=Z(6823),M=Z(851),T=TypeError;a.exports=function(X,u){var o=arguments.length<2?M(X):u;if(i(o))return N(n(o,X));throw new T(b(X)+" is not iterable")}},5966:(a,t,Z)=>{var n=Z(9306),i=Z(4117);a.exports=function(N,b){var M=N[b];return i(M)?void 0:n(M)}},3789:(a,t,Z)=>{var n=Z(9306),i=Z(8551),N=Z(9565),b=Z(1291),M=Z(1767),T="Invalid size",X=RangeError,u=TypeError,o=Math.max,y=function(I,k){this.set=I,this.size=o(k,0),this.has=n(I.has),this.keys=n(I.keys)};y.prototype={getIterator:function(){return M(i(N(this.keys,this.set)))},includes:function(I){return N(this.has,this.set,I)}},a.exports=function(I){i(I);var k=+I.size;if(k!==k)throw new u(T);var w=b(k);if(w<0)throw new X(T);return new y(I,w)}},4475:function(a){var t=function(Z){return Z&&Z.Math===Math&&Z};a.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof global=="object"&&global)||t(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},9297:(a,t,Z)=>{var n=Z(9504),i=Z(8981),N=n({}.hasOwnProperty);a.exports=Object.hasOwn||function(b,M){return N(i(b),M)}},421:a=>{a.exports={}},397:(a,t,Z)=>{var n=Z(7751);a.exports=n("document","documentElement")},5917:(a,t,Z)=>{var n=Z(3724),i=Z(9039),N=Z(4055);a.exports=!n&&!i(function(){return Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a!==7})},7055:(a,t,Z)=>{var n=Z(9504),i=Z(9039),N=Z(4576),b=Object,M=n("".split);a.exports=i(function(){return!b("z").propertyIsEnumerable(0)})?function(T){return N(T)==="String"?M(T,""):b(T)}:b},3167:(a,t,Z)=>{var n=Z(4901),i=Z(34),N=Z(2967);a.exports=function(b,M,T){var X,u;return N&&n(X=M.constructor)&&X!==T&&i(u=X.prototype)&&u!==T.prototype&&N(b,u),b}},3706:(a,t,Z)=>{var n=Z(9504),i=Z(4901),N=Z(7629),b=n(Function.toString);i(N.inspectSource)||(N.inspectSource=function(M){return b(M)}),a.exports=N.inspectSource},1181:(a,t,Z)=>{var n=Z(8622),i=Z(4475),N=Z(34),b=Z(6699),M=Z(9297),T=Z(7629),X=Z(6119),u=Z(421),o="Object already initialized",y=i.TypeError,I=i.WeakMap,k,w,K,C=function(v){return K(v)?w(v):k(v,{})},P=function(v){return function(j){var H;if(!N(j)||(H=w(j)).type!==v)throw new y("Incompatible receiver, "+v+" required");return H}};if(n||T.state){var r=T.state||(T.state=new I);r.get=r.get,r.has=r.has,r.set=r.set,k=function(v,j){if(r.has(v))throw new y(o);return j.facade=v,r.set(v,j),j},w=function(v){return r.get(v)||{}},K=function(v){return r.has(v)}}else{var _=X("state");u[_]=!0,k=function(v,j){if(M(v,_))throw new y(o);return j.facade=v,b(v,_,j),j},w=function(v){return M(v,_)?v[_]:{}},K=function(v){return M(v,_)}}a.exports={set:k,get:w,has:K,enforce:C,getterFor:P}},4209:(a,t,Z)=>{var n=Z(8227),i=Z(6269),N=n("iterator"),b=Array.prototype;a.exports=function(M){return M!==void 0&&(i.Array===M||b[N]===M)}},4376:(a,t,Z)=>{var n=Z(4576);a.exports=Array.isArray||function(i){return n(i)==="Array"}},1108:(a,t,Z)=>{var n=Z(6955);a.exports=function(i){var N=n(i);return N==="BigInt64Array"||N==="BigUint64Array"}},4901:a=>{var t=typeof document=="object"&&document.all;a.exports=typeof t>"u"&&t!==void 0?function(Z){return typeof Z=="function"||Z===t}:function(Z){return typeof Z=="function"}},2796:(a,t,Z)=>{var n=Z(9039),i=Z(4901),N=/#|\.prototype\./,b=function(o,y){var I=T[M(o)];return I===u?!0:I===X?!1:i(y)?n(y):!!y},M=b.normalize=function(o){return String(o).replace(N,".").toLowerCase()},T=b.data={},X=b.NATIVE="N",u=b.POLYFILL="P";a.exports=b},4117:a=>{a.exports=function(t){return t==null}},34:(a,t,Z)=>{var n=Z(4901);a.exports=function(i){return typeof i=="object"?i!==null:n(i)}},3925:(a,t,Z)=>{var n=Z(34);a.exports=function(i){return n(i)||i===null}},6395:a=>{a.exports=!1},757:(a,t,Z)=>{var n=Z(7751),i=Z(4901),N=Z(1625),b=Z(7040),M=Object;a.exports=b?function(T){return typeof T=="symbol"}:function(T){var X=n("Symbol");return i(X)&&N(X.prototype,M(T))}},507:(a,t,Z)=>{var n=Z(9565);a.exports=function(i,N,b){for(var M=b?i:i.iterator,T=i.next,X,u;!(X=n(T,M)).done;)if(u=N(X.value),u!==void 0)return u}},2652:(a,t,Z)=>{var n=Z(6080),i=Z(9565),N=Z(8551),b=Z(6823),M=Z(4209),T=Z(6198),X=Z(1625),u=Z(81),o=Z(851),y=Z(9539),I=TypeError,k=function(K,C){this.stopped=K,this.result=C},w=k.prototype;a.exports=function(K,C,P){var r=P&&P.that,_=!!(P&&P.AS_ENTRIES),v=!!(P&&P.IS_RECORD),j=!!(P&&P.IS_ITERATOR),H=!!(P&&P.INTERRUPTED),$=n(C,r),E,O,A,Zl,Vl,Nl,nl,g=function(Gl){return E&&y(E,"normal",Gl),new k(!0,Gl)},Yl=function(Gl){return _?(N(Gl),H?$(Gl[0],Gl[1],g):$(Gl[0],Gl[1])):H?$(Gl,g):$(Gl)};if(v)E=K.iterator;else if(j)E=K;else{if(O=o(K),!O)throw new I(b(K)+" is not iterable");if(M(O)){for(A=0,Zl=T(K);Zl>A;A++)if(Vl=Yl(K[A]),Vl&&X(w,Vl))return Vl;return new k(!1)}E=u(K,O)}for(Nl=v?K.next:E.next;!(nl=i(Nl,E)).done;){try{Vl=Yl(nl.value)}catch(Gl){y(E,"throw",Gl)}if(typeof Vl=="object"&&Vl&&X(w,Vl))return Vl}return new k(!1)}},9539:(a,t,Z)=>{var n=Z(9565),i=Z(8551),N=Z(5966);a.exports=function(b,M,T){var X,u;i(b);try{if(X=N(b,"return"),!X){if(M==="throw")throw T;return T}X=n(X,b)}catch(o){u=!0,X=o}if(M==="throw")throw T;if(u)throw X;return i(X),T}},9462:(a,t,Z)=>{var n=Z(9565),i=Z(2360),N=Z(6699),b=Z(6279),M=Z(8227),T=Z(1181),X=Z(5966),u=Z(7657).IteratorPrototype,o=Z(2529),y=Z(9539),I=M("toStringTag"),k="IteratorHelper",w="WrapForValidIterator",K=T.set,C=function(_){var v=T.getterFor(_?w:k);return b(i(u),{next:function(){var j=v(this);if(_)return j.nextHandler();try{var H=j.done?void 0:j.nextHandler();return o(H,j.done)}catch($){throw j.done=!0,$}},return:function(){var j=v(this),H=j.iterator;if(j.done=!0,_){var $=X(H,"return");return $?n($,H):o(void 0,!0)}if(j.inner)try{y(j.inner.iterator,"normal")}catch(E){return y(H,"throw",E)}return y(H,"normal"),o(void 0,!0)}})},P=C(!0),r=C(!1);N(r,I,"Iterator Helper"),a.exports=function(_,v){var j=function(H,$){$?($.iterator=H.iterator,$.next=H.next):$=H,$.type=v?w:k,$.nextHandler=_,$.counter=0,$.done=!1,K(this,$)};return j.prototype=v?P:r,j}},713:(a,t,Z)=>{var n=Z(9565),i=Z(9306),N=Z(8551),b=Z(1767),M=Z(9462),T=Z(6319),X=M(function(){var u=this.iterator,o=N(n(this.next,u)),y=this.done=!!o.done;if(!y)return T(u,this.mapper,[o.value,this.counter++],!0)});a.exports=function(u){return N(this),i(u),new X(b(this),{mapper:u})}},7657:(a,t,Z)=>{var n=Z(9039),i=Z(4901),N=Z(34),b=Z(2360),M=Z(2787),T=Z(6840),X=Z(8227),u=Z(6395),o=X("iterator"),y=!1,I,k,w;[].keys&&(w=[].keys(),"next"in w?(k=M(M(w)),k!==Object.prototype&&(I=k)):y=!0);var K=!N(I)||n(function(){var C={};return I[o].call(C)!==C});K?I={}:u&&(I=b(I)),i(I[o])||T(I,o,function(){return this}),a.exports={IteratorPrototype:I,BUGGY_SAFARI_ITERATORS:y}},6269:a=>{a.exports={}},6198:(a,t,Z)=>{var n=Z(8014);a.exports=function(i){return n(i.length)}},283:(a,t,Z)=>{var n=Z(9504),i=Z(9039),N=Z(4901),b=Z(9297),M=Z(3724),T=Z(350).CONFIGURABLE,X=Z(3706),u=Z(1181),o=u.enforce,y=u.get,I=String,k=Object.defineProperty,w=n("".slice),K=n("".replace),C=n([].join),P=M&&!i(function(){return k(function(){},"length",{value:8}).length!==8}),r=String(String).split("String"),_=a.exports=function(v,j,H){w(I(j),0,7)==="Symbol("&&(j="["+K(I(j),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),H&&H.getter&&(j="get "+j),H&&H.setter&&(j="set "+j),(!b(v,"name")||T&&v.name!==j)&&(M?k(v,"name",{value:j,configurable:!0}):v.name=j),P&&H&&b(H,"arity")&&v.length!==H.arity&&k(v,"length",{value:H.arity});try{H&&b(H,"constructor")&&H.constructor?M&&k(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var $=o(v);return b($,"source")||($.source=C(r,typeof j=="string"?j:"")),v};Function.prototype.toString=_(function(){return N(this)&&y(this).source||X(this)},"toString")},741:a=>{var t=Math.ceil,Z=Math.floor;a.exports=Math.trunc||function(n){var i=+n;return(i>0?Z:t)(i)}},6043:(a,t,Z)=>{var n=Z(9306),i=TypeError,N=function(b){var M,T;this.promise=new b(function(X,u){if(M!==void 0||T!==void 0)throw new i("Bad Promise constructor");M=X,T=u}),this.resolve=n(M),this.reject=n(T)};a.exports.f=function(b){return new N(b)}},2603:(a,t,Z)=>{var n=Z(655);a.exports=function(i,N){return i===void 0?arguments.length<2?"":N:n(i)}},2360:(a,t,Z)=>{var n=Z(8551),i=Z(6801),N=Z(8727),b=Z(421),M=Z(397),T=Z(4055),X=Z(6119),u=">",o="<",y="prototype",I="script",k=X("IE_PROTO"),w=function(){},K=function(v){return o+I+u+v+o+"/"+I+u},C=function(v){v.write(K("")),v.close();var j=v.parentWindow.Object;return v=null,j},P=function(){var v=T("iframe"),j="java"+I+":",H;return v.style.display="none",M.appendChild(v),v.src=String(j),H=v.contentWindow.document,H.open(),H.write(K("document.F=Object")),H.close(),H.F},r,_=function(){try{r=new ActiveXObject("htmlfile")}catch{}_=typeof document<"u"?document.domain&&r?C(r):P():C(r);for(var v=N.length;v--;)delete _[y][N[v]];return _()};b[k]=!0,a.exports=Object.create||function(v,j){var H;return v!==null?(w[y]=n(v),H=new w,w[y]=null,H[k]=v):H=_(),j===void 0?H:i.f(H,j)}},6801:(a,t,Z)=>{var n=Z(3724),i=Z(8686),N=Z(4913),b=Z(8551),M=Z(5397),T=Z(1072);t.f=n&&!i?Object.defineProperties:function(X,u){b(X);for(var o=M(u),y=T(u),I=y.length,k=0,w;I>k;)N.f(X,w=y[k++],o[w]);return X}},4913:(a,t,Z)=>{var n=Z(3724),i=Z(5917),N=Z(8686),b=Z(8551),M=Z(6969),T=TypeError,X=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o="enumerable",y="configurable",I="writable";t.f=n?N?function(k,w,K){if(b(k),w=M(w),b(K),typeof k=="function"&&w==="prototype"&&"value"in K&&I in K&&!K[I]){var C=u(k,w);C&&C[I]&&(k[w]=K.value,K={configurable:y in K?K[y]:C[y],enumerable:o in K?K[o]:C[o],writable:!1})}return X(k,w,K)}:X:function(k,w,K){if(b(k),w=M(w),b(K),i)try{return X(k,w,K)}catch{}if("get"in K||"set"in K)throw new T("Accessors not supported");return"value"in K&&(k[w]=K.value),k}},7347:(a,t,Z)=>{var n=Z(3724),i=Z(9565),N=Z(8773),b=Z(6980),M=Z(5397),T=Z(6969),X=Z(9297),u=Z(5917),o=Object.getOwnPropertyDescriptor;t.f=n?o:function(y,I){if(y=M(y),I=T(I),u)try{return o(y,I)}catch{}if(X(y,I))return b(!i(N.f,y,I),y[I])}},8480:(a,t,Z)=>{var n=Z(1828),i=Z(8727),N=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(b){return n(b,N)}},3717:(a,t)=>{t.f=Object.getOwnPropertySymbols},2787:(a,t,Z)=>{var n=Z(9297),i=Z(4901),N=Z(8981),b=Z(6119),M=Z(2211),T=b("IE_PROTO"),X=Object,u=X.prototype;a.exports=M?X.getPrototypeOf:function(o){var y=N(o);if(n(y,T))return y[T];var I=y.constructor;return i(I)&&y instanceof I?I.prototype:y instanceof X?u:null}},1625:(a,t,Z)=>{var n=Z(9504);a.exports=n({}.isPrototypeOf)},1828:(a,t,Z)=>{var n=Z(9504),i=Z(9297),N=Z(5397),b=Z(9617).indexOf,M=Z(421),T=n([].push);a.exports=function(X,u){var o=N(X),y=0,I=[],k;for(k in o)!i(M,k)&&i(o,k)&&T(I,k);for(;u.length>y;)i(o,k=u[y++])&&(~b(I,k)||T(I,k));return I}},1072:(a,t,Z)=>{var n=Z(1828),i=Z(8727);a.exports=Object.keys||function(N){return n(N,i)}},8773:(a,t)=>{var Z={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!Z.call({1:2},1);t.f=i?function(N){var b=n(this,N);return!!b&&b.enumerable}:Z},2967:(a,t,Z)=>{var n=Z(6706),i=Z(34),N=Z(7750),b=Z(3506);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var M=!1,T={},X;try{X=n(Object.prototype,"__proto__","set"),X(T,[]),M=T instanceof Array}catch{}return function(u,o){return N(u),b(o),i(u)&&(M?X(u,o):u.__proto__=o),u}}():void 0)},4270:(a,t,Z)=>{var n=Z(9565),i=Z(4901),N=Z(34),b=TypeError;a.exports=function(M,T){var X,u;if(T==="string"&&i(X=M.toString)&&!N(u=n(X,M))||i(X=M.valueOf)&&!N(u=n(X,M))||T!=="string"&&i(X=M.toString)&&!N(u=n(X,M)))return u;throw new b("Can't convert object to primitive value")}},5031:(a,t,Z)=>{var n=Z(7751),i=Z(9504),N=Z(8480),b=Z(3717),M=Z(8551),T=i([].concat);a.exports=n("Reflect","ownKeys")||function(X){var u=N.f(M(X)),o=b.f;return o?T(u,o(X)):u}},8235:(a,t,Z)=>{var n=Z(9504),i=Z(9297),N=SyntaxError,b=parseInt,M=String.fromCharCode,T=n("".charAt),X=n("".slice),u=n(/./.exec),o={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":`
|
|
2
2
|
`,"\\r":"\r","\\t":" "},y=/^[\da-f]{4}$/i,I=/^[\u0000-\u001F]$/;a.exports=function(k,w){for(var K=!0,C="";w<k.length;){var P=T(k,w);if(P==="\\"){var r=X(k,w,w+2);if(i(o,r))C+=o[r],w+=2;else if(r==="\\u"){w+=2;var _=X(k,w,w+4);if(!u(y,_))throw new N("Bad Unicode escape at: "+w);C+=M(b(_,16)),w+=4}else throw new N('Unknown escape sequence: "'+r+'"')}else if(P==='"'){K=!1,w++;break}else{if(u(I,P))throw new N("Bad control character in string literal at: "+w);C+=P,w++}}if(K)throw new N("Unterminated string at: "+w);return{value:C,end:w}}},7750:(a,t,Z)=>{var n=Z(4117),i=TypeError;a.exports=function(N){if(n(N))throw new i("Can't call method on "+N);return N}},9286:(a,t,Z)=>{var n=Z(4402),i=Z(8469),N=n.Set,b=n.add;a.exports=function(M){var T=new N;return i(M,function(X){b(T,X)}),T}},3440:(a,t,Z)=>{var n=Z(7080),i=Z(4402),N=Z(9286),b=Z(5170),M=Z(3789),T=Z(8469),X=Z(507),u=i.has,o=i.remove;a.exports=function(y){var I=n(this),k=M(y),w=N(I);return b(I)<=k.size?T(I,function(K){k.includes(K)&&o(w,K)}):X(k.getIterator(),function(K){u(I,K)&&o(w,K)}),w}},4402:(a,t,Z)=>{var n=Z(9504),i=Set.prototype;a.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},8750:(a,t,Z)=>{var n=Z(7080),i=Z(4402),N=Z(5170),b=Z(3789),M=Z(8469),T=Z(507),X=i.Set,u=i.add,o=i.has;a.exports=function(y){var I=n(this),k=b(y),w=new X;return N(I)>k.size?T(k.getIterator(),function(K){o(I,K)&&u(w,K)}):M(I,function(K){k.includes(K)&&u(w,K)}),w}},4449:(a,t,Z)=>{var n=Z(7080),i=Z(4402).has,N=Z(5170),b=Z(3789),M=Z(8469),T=Z(507),X=Z(9539);a.exports=function(u){var o=n(this),y=b(u);if(N(o)<=y.size)return M(o,function(k){if(y.includes(k))return!1},!0)!==!1;var I=y.getIterator();return T(I,function(k){if(i(o,k))return X(I,"normal",!1)})!==!1}},3838:(a,t,Z)=>{var n=Z(7080),i=Z(5170),N=Z(8469),b=Z(3789);a.exports=function(M){var T=n(this),X=b(M);return i(T)>X.size?!1:N(T,function(u){if(!X.includes(u))return!1},!0)!==!1}},8527:(a,t,Z)=>{var n=Z(7080),i=Z(4402).has,N=Z(5170),b=Z(3789),M=Z(507),T=Z(9539);a.exports=function(X){var u=n(this),o=b(X);if(N(u)<o.size)return!1;var y=o.getIterator();return M(y,function(I){if(!i(u,I))return T(y,"normal",!1)})!==!1}},8469:(a,t,Z)=>{var n=Z(9504),i=Z(507),N=Z(4402),b=N.Set,M=N.proto,T=n(M.forEach),X=n(M.keys),u=X(new b).next;a.exports=function(o,y,I){return I?i({iterator:X(o),next:u},y):T(o,y)}},4916:(a,t,Z)=>{var n=Z(7751),i=function(N){return{size:N,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};a.exports=function(N){var b=n("Set");try{new b()[N](i(0));try{return new b()[N](i(-1)),!1}catch{return!0}}catch{return!1}}},5170:(a,t,Z)=>{var n=Z(6706),i=Z(4402);a.exports=n(i.proto,"size","get")||function(N){return N.size}},3650:(a,t,Z)=>{var n=Z(7080),i=Z(4402),N=Z(9286),b=Z(3789),M=Z(507),T=i.add,X=i.has,u=i.remove;a.exports=function(o){var y=n(this),I=b(o).getIterator(),k=N(y);return M(I,function(w){X(y,w)?u(k,w):T(k,w)}),k}},4204:(a,t,Z)=>{var n=Z(7080),i=Z(4402).add,N=Z(9286),b=Z(3789),M=Z(507);a.exports=function(T){var X=n(this),u=b(T).getIterator(),o=N(X);return M(u,function(y){i(o,y)}),o}},6119:(a,t,Z)=>{var n=Z(5745),i=Z(3392),N=n("keys");a.exports=function(b){return N[b]||(N[b]=i(b))}},7629:(a,t,Z)=>{var n=Z(6395),i=Z(4475),N=Z(9433),b="__core-js_shared__",M=a.exports=i[b]||N(b,{});(M.versions||(M.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:(a,t,Z)=>{var n=Z(7629);a.exports=function(i,N){return n[i]||(n[i]=N||{})}},1548:(a,t,Z)=>{var n=Z(4475),i=Z(9039),N=Z(7388),b=Z(7290),M=Z(516),T=Z(9088),X=n.structuredClone;a.exports=!!X&&!i(function(){if(M&&N>92||T&&N>94||b&&N>97)return!1;var u=new ArrayBuffer(8),o=X(u,{transfer:[u]});return u.byteLength!==0||o.byteLength!==8})},4495:(a,t,Z)=>{var n=Z(7388),i=Z(9039),N=Z(4475),b=N.String;a.exports=!!Object.getOwnPropertySymbols&&!i(function(){var M=Symbol("symbol detection");return!b(M)||!(Object(M)instanceof Symbol)||!Symbol.sham&&n&&n<41})},5610:(a,t,Z)=>{var n=Z(1291),i=Math.max,N=Math.min;a.exports=function(b,M){var T=n(b);return T<0?i(T+M,0):N(T,M)}},5854:(a,t,Z)=>{var n=Z(2777),i=TypeError;a.exports=function(N){var b=n(N,"number");if(typeof b=="number")throw new i("Can't convert number to bigint");return BigInt(b)}},7696:(a,t,Z)=>{var n=Z(1291),i=Z(8014),N=RangeError;a.exports=function(b){if(b===void 0)return 0;var M=n(b),T=i(M);if(M!==T)throw new N("Wrong length or index");return T}},5397:(a,t,Z)=>{var n=Z(7055),i=Z(7750);a.exports=function(N){return n(i(N))}},1291:(a,t,Z)=>{var n=Z(741);a.exports=function(i){var N=+i;return N!==N||N===0?0:n(N)}},8014:(a,t,Z)=>{var n=Z(1291),i=Math.min;a.exports=function(N){var b=n(N);return b>0?i(b,9007199254740991):0}},8981:(a,t,Z)=>{var n=Z(7750),i=Object;a.exports=function(N){return i(n(N))}},2777:(a,t,Z)=>{var n=Z(9565),i=Z(34),N=Z(757),b=Z(5966),M=Z(4270),T=Z(8227),X=TypeError,u=T("toPrimitive");a.exports=function(o,y){if(!i(o)||N(o))return o;var I=b(o,u),k;if(I){if(y===void 0&&(y="default"),k=n(I,o,y),!i(k)||N(k))return k;throw new X("Can't convert object to primitive value")}return y===void 0&&(y="number"),M(o,y)}},6969:(a,t,Z)=>{var n=Z(2777),i=Z(757);a.exports=function(N){var b=n(N,"string");return i(b)?b:b+""}},2140:(a,t,Z)=>{var n=Z(8227),i=n("toStringTag"),N={};N[i]="z",a.exports=String(N)==="[object z]"},655:(a,t,Z)=>{var n=Z(6955),i=String;a.exports=function(N){if(n(N)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(N)}},9714:(a,t,Z)=>{var n=Z(9088);a.exports=function(i){try{if(n)return Function('return require("'+i+'")')()}catch{}}},6823:a=>{var t=String;a.exports=function(Z){try{return t(Z)}catch{return"Object"}}},3392:(a,t,Z)=>{var n=Z(9504),i=0,N=Math.random(),b=n(1 .toString);a.exports=function(M){return"Symbol("+(M===void 0?"":M)+")_"+b(++i+N,36)}},7040:(a,t,Z)=>{var n=Z(4495);a.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},8686:(a,t,Z)=>{var n=Z(3724),i=Z(9039);a.exports=n&&i(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},2812:a=>{var t=TypeError;a.exports=function(Z,n){if(Z<n)throw new t("Not enough arguments");return Z}},8622:(a,t,Z)=>{var n=Z(4475),i=Z(4901),N=n.WeakMap;a.exports=i(N)&&/native code/.test(String(N))},8227:(a,t,Z)=>{var n=Z(4475),i=Z(5745),N=Z(9297),b=Z(3392),M=Z(4495),T=Z(7040),X=n.Symbol,u=i("wks"),o=T?X.for||X:X&&X.withoutSetter||b;a.exports=function(y){return N(u,y)||(u[y]=M&&N(X,y)?X[y]:o("Symbol."+y)),u[y]}},6573:(a,t,Z)=>{var n=Z(3724),i=Z(2106),N=Z(3238),b=ArrayBuffer.prototype;n&&!("detached"in b)&&i(b,"detached",{configurable:!0,get:function(){return N(this)}})},7936:(a,t,Z)=>{var n=Z(6518),i=Z(5636);i&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},8100:(a,t,Z)=>{var n=Z(6518),i=Z(5636);i&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},4114:(a,t,Z)=>{var n=Z(6518),i=Z(8981),N=Z(6198),b=Z(4527),M=Z(6837),T=Z(9039),X=T(function(){return[].push.call({length:4294967296},1)!==4294967297}),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(y){return y instanceof TypeError}},o=X||!u();n({target:"Array",proto:!0,arity:1,forced:o},{push:function(y){var I=i(this),k=N(I),w=arguments.length;M(k+w);for(var K=0;K<w;K++)I[k]=arguments[K],k++;return b(I,k),k}})},4628:(a,t,Z)=>{var n=Z(6518),i=Z(6043);n({target:"Promise",stat:!0},{withResolvers:function(){var N=i.f(this);return{promise:N.promise,resolve:N.resolve,reject:N.reject}}})},7642:(a,t,Z)=>{var n=Z(6518),i=Z(3440),N=Z(4916);n({target:"Set",proto:!0,real:!0,forced:!N("difference")},{difference:i})},8004:(a,t,Z)=>{var n=Z(6518),i=Z(9039),N=Z(8750),b=Z(4916),M=!b("intersection")||i(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});n({target:"Set",proto:!0,real:!0,forced:M},{intersection:N})},3853:(a,t,Z)=>{var n=Z(6518),i=Z(4449),N=Z(4916);n({target:"Set",proto:!0,real:!0,forced:!N("isDisjointFrom")},{isDisjointFrom:i})},5876:(a,t,Z)=>{var n=Z(6518),i=Z(3838),N=Z(4916);n({target:"Set",proto:!0,real:!0,forced:!N("isSubsetOf")},{isSubsetOf:i})},2475:(a,t,Z)=>{var n=Z(6518),i=Z(8527),N=Z(4916);n({target:"Set",proto:!0,real:!0,forced:!N("isSupersetOf")},{isSupersetOf:i})},5024:(a,t,Z)=>{var n=Z(6518),i=Z(3650),N=Z(4916);n({target:"Set",proto:!0,real:!0,forced:!N("symmetricDifference")},{symmetricDifference:i})},1698:(a,t,Z)=>{var n=Z(6518),i=Z(4204),N=Z(4916);n({target:"Set",proto:!0,real:!0,forced:!N("union")},{union:i})},7467:(a,t,Z)=>{var n=Z(7628),i=Z(4644),N=i.aTypedArray,b=i.exportTypedArrayMethod,M=i.getTypedArrayConstructor;b("toReversed",function(){return n(N(this),M(this))})},4732:(a,t,Z)=>{var n=Z(4644),i=Z(9504),N=Z(9306),b=Z(5370),M=n.aTypedArray,T=n.getTypedArrayConstructor,X=n.exportTypedArrayMethod,u=i(n.TypedArrayPrototype.sort);X("toSorted",function(o){o!==void 0&&N(o);var y=M(this),I=b(T(y),y);return u(I,o)})},9577:(a,t,Z)=>{var n=Z(9928),i=Z(4644),N=Z(1108),b=Z(1291),M=Z(5854),T=i.aTypedArray,X=i.getTypedArrayConstructor,u=i.exportTypedArrayMethod,o=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(y){return y===8}}();u("with",function(y,I){var k=T(this),w=b(y),K=N(k)?M(I):+I;return n(k,X(k),w,K)},!o)},8992:(a,t,Z)=>{var n=Z(6518),i=Z(4475),N=Z(679),b=Z(8551),M=Z(4901),T=Z(2787),X=Z(2106),u=Z(4659),o=Z(9039),y=Z(9297),I=Z(8227),k=Z(7657).IteratorPrototype,w=Z(3724),K=Z(6395),C="constructor",P="Iterator",r=I("toStringTag"),_=TypeError,v=i[P],j=K||!M(v)||v.prototype!==k||!o(function(){v({})}),H=function(){if(N(this,k),T(this)===k)throw new _("Abstract class Iterator not directly constructable")},$=function(E,O){w?X(k,E,{configurable:!0,get:function(){return O},set:function(A){if(b(this),this===k)throw new _("You can't redefine this property");y(this,E)?this[E]=A:u(this,E,A)}}):k[E]=O};y(k,r)||$(r,P),(j||!y(k,C)||k[C]===Object)&&$(C,H),H.prototype=k,n({global:!0,constructor:!0,forced:j},{Iterator:H})},3215:(a,t,Z)=>{var n=Z(6518),i=Z(2652),N=Z(9306),b=Z(8551),M=Z(1767);n({target:"Iterator",proto:!0,real:!0},{every:function(T){b(this),N(T);var X=M(this),u=0;return!i(X,function(o,y){if(!T(o,u++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},4520:(a,t,Z)=>{var n=Z(6518),i=Z(9565),N=Z(9306),b=Z(8551),M=Z(1767),T=Z(9462),X=Z(6319),u=Z(6395),o=T(function(){for(var y=this.iterator,I=this.predicate,k=this.next,w,K,C;;){if(w=b(i(k,y)),K=this.done=!!w.done,K)return;if(C=w.value,X(y,I,[C,this.counter++],!0))return C}});n({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(y){return b(this),N(y),new o(M(this),{predicate:y})}})},670:(a,t,Z)=>{var n=Z(6518),i=Z(9565),N=Z(9306),b=Z(8551),M=Z(1767),T=Z(8646),X=Z(9462),u=Z(9539),o=Z(6395),y=X(function(){for(var I=this.iterator,k=this.mapper,w,K;;){if(K=this.inner)try{if(w=b(i(K.next,K.iterator)),!w.done)return w.value;this.inner=null}catch(C){u(I,"throw",C)}if(w=b(i(this.next,I)),this.done=!!w.done)return;try{this.inner=T(k(w.value,this.counter++),!1)}catch(C){u(I,"throw",C)}}});n({target:"Iterator",proto:!0,real:!0,forced:o},{flatMap:function(I){return b(this),N(I),new y(M(this),{mapper:I,inner:null})}})},1454:(a,t,Z)=>{var n=Z(6518),i=Z(713),N=Z(6395);n({target:"Iterator",proto:!0,real:!0,forced:N},{map:i})},7550:(a,t,Z)=>{var n=Z(6518),i=Z(2652),N=Z(9306),b=Z(8551),M=Z(1767);n({target:"Iterator",proto:!0,real:!0},{some:function(T){b(this),N(T);var X=M(this),u=0;return i(X,function(o,y){if(T(o,u++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},8335:(a,t,Z)=>{var n=Z(6518),i=Z(3724),N=Z(4475),b=Z(7751),M=Z(9504),T=Z(9565),X=Z(4901),u=Z(34),o=Z(4376),y=Z(9297),I=Z(655),k=Z(6198),w=Z(4659),K=Z(9039),C=Z(8235),P=Z(4495),r=N.JSON,_=N.Number,v=N.SyntaxError,j=r&&r.parse,H=b("Object","keys"),$=Object.getOwnPropertyDescriptor,E=M("".charAt),O=M("".slice),A=M(/./.exec),Zl=M([].push),Vl=/^\d$/,Nl=/^[1-9]$/,nl=/^(?:-|\d)$/,g=/^[\t\n\r ]$/,Yl=0,Gl=1,Ll=function(cl,Ul){cl=I(cl);var Fl=new Nd(cl,0),el=Fl.parse(),zl=el.value,sl=Fl.skip(g,el.end);if(sl<cl.length)throw new v('Unexpected extra character: "'+E(cl,sl)+'" after the parsed data at: '+sl);return X(Ul)?ZU({"":zl},"",Ul,el):zl},ZU=function(cl,Ul,Fl,el){var zl=cl[Ul],sl=el&&zl===el.value,kl=sl&&typeof el.source=="string"?{source:el.source}:{},Cl,pU,Al,_l,Ld;if(u(zl)){var E0=o(zl),QZ=sl?el.nodes:E0?[]:{};if(E0)for(Cl=QZ.length,Al=k(zl),_l=0;_l<Al;_l++)PU(zl,_l,ZU(zl,""+_l,Fl,_l<Cl?QZ[_l]:void 0));else for(pU=H(zl),Al=k(pU),_l=0;_l<Al;_l++)Ld=pU[_l],PU(zl,Ld,ZU(zl,Ld,Fl,y(QZ,Ld)?QZ[Ld]:void 0))}return T(Fl,cl,Ul,zl,kl)},PU=function(cl,Ul,Fl){if(i){var el=$(cl,Ul);if(el&&!el.configurable)return}Fl===void 0?delete cl[Ul]:w(cl,Ul,Fl)},YU=function(cl,Ul,Fl,el){this.value=cl,this.end=Ul,this.source=Fl,this.nodes=el},Nd=function(cl,Ul){this.source=cl,this.index=Ul};Nd.prototype={fork:function(cl){return new Nd(this.source,cl)},parse:function(){var cl=this.source,Ul=this.skip(g,this.index),Fl=this.fork(Ul),el=E(cl,Ul);if(A(nl,el))return Fl.number();switch(el){case"{":return Fl.object();case"[":return Fl.array();case'"':return Fl.string();case"t":return Fl.keyword(!0);case"f":return Fl.keyword(!1);case"n":return Fl.keyword(null)}throw new v('Unexpected character: "'+el+'" at: '+Ul)},node:function(cl,Ul,Fl,el,zl){return new YU(Ul,el,cl?null:O(this.source,Fl,el),zl)},object:function(){for(var cl=this.source,Ul=this.index+1,Fl=!1,el={},zl={};Ul<cl.length;){if(Ul=this.until(['"',"}"],Ul),E(cl,Ul)==="}"&&!Fl){Ul++;break}var sl=this.fork(Ul).string(),kl=sl.value;Ul=sl.end,Ul=this.until([":"],Ul)+1,Ul=this.skip(g,Ul),sl=this.fork(Ul).parse(),w(zl,kl,sl),w(el,kl,sl.value),Ul=this.until([",","}"],sl.end);var Cl=E(cl,Ul);if(Cl===",")Fl=!0,Ul++;else if(Cl==="}"){Ul++;break}}return this.node(Gl,el,this.index,Ul,zl)},array:function(){for(var cl=this.source,Ul=this.index+1,Fl=!1,el=[],zl=[];Ul<cl.length;){if(Ul=this.skip(g,Ul),E(cl,Ul)==="]"&&!Fl){Ul++;break}var sl=this.fork(Ul).parse();if(Zl(zl,sl),Zl(el,sl.value),Ul=this.until([",","]"],sl.end),E(cl,Ul)===",")Fl=!0,Ul++;else if(E(cl,Ul)==="]"){Ul++;break}}return this.node(Gl,el,this.index,Ul,zl)},string:function(){var cl=this.index,Ul=C(this.source,this.index+1);return this.node(Yl,Ul.value,cl,Ul.end)},number:function(){var cl=this.source,Ul=this.index,Fl=Ul;if(E(cl,Fl)==="-"&&Fl++,E(cl,Fl)==="0")Fl++;else if(A(Nl,E(cl,Fl)))Fl=this.skip(Vl,++Fl);else throw new v("Failed to parse number at: "+Fl);if(E(cl,Fl)==="."&&(Fl=this.skip(Vl,++Fl)),E(cl,Fl)==="e"||E(cl,Fl)==="E"){Fl++,(E(cl,Fl)==="+"||E(cl,Fl)==="-")&&Fl++;var el=Fl;if(Fl=this.skip(Vl,Fl),el===Fl)throw new v("Failed to parse number's exponent value at: "+Fl)}return this.node(Yl,_(O(cl,Ul,Fl)),Ul,Fl)},keyword:function(cl){var Ul=""+cl,Fl=this.index,el=Fl+Ul.length;if(O(this.source,Fl,el)!==Ul)throw new v("Failed to parse value at: "+Fl);return this.node(Yl,cl,Fl,el)},skip:function(cl,Ul){for(var Fl=this.source;Ul<Fl.length&&A(cl,E(Fl,Ul));Ul++);return Ul},until:function(cl,Ul){Ul=this.skip(g,Ul);for(var Fl=E(this.source,Ul),el=0;el<cl.length;el++)if(cl[el]===Fl)return Ul;throw new v('Unexpected character: "'+Fl+'" at: '+Ul)}};var tt=K(function(){var cl="9007199254740993",Ul;return j(cl,function(Fl,el,zl){Ul=zl.source}),Ul!==cl}),Ft=P&&!K(function(){return 1/j("-0 ")!==-1/0});n({target:"JSON",stat:!0,forced:tt},{parse:function(cl,Ul){return Ft&&!X(Ul)?j(cl):Ll(cl,Ul)}})},3375:(a,t,Z)=>{Z(7642)},9225:(a,t,Z)=>{Z(8004)},3972:(a,t,Z)=>{Z(3853)},9209:(a,t,Z)=>{Z(5876)},5714:(a,t,Z)=>{Z(2475)},7561:(a,t,Z)=>{Z(5024)},6197:(a,t,Z)=>{Z(1698)},4979:(a,t,Z)=>{var n=Z(6518),i=Z(4475),N=Z(7751),b=Z(6980),M=Z(4913).f,T=Z(9297),X=Z(679),u=Z(3167),o=Z(2603),y=Z(5002),I=Z(6193),k=Z(3724),w=Z(6395),K="DOMException",C=N("Error"),P=N(K),r=function(){X(this,_);var nl=arguments.length,g=o(nl<1?void 0:arguments[0]),Yl=o(nl<2?void 0:arguments[1],"Error"),Gl=new P(g,Yl),Ll=new C(g);return Ll.name=K,M(Gl,"stack",b(1,I(Ll.stack,1))),u(Gl,this,r),Gl},_=r.prototype=P.prototype,v="stack"in new C(K),j="stack"in new P(1,2),H=P&&k&&Object.getOwnPropertyDescriptor(i,K),$=!!H&&!(H.writable&&H.configurable),E=v&&!$&&!j;n({global:!0,constructor:!0,forced:w||E},{DOMException:E?r:P});var O=N(K),A=O.prototype;if(A.constructor!==O){w||M(A,"constructor",b(1,O));for(var Zl in y)if(T(y,Zl)){var Vl=y[Zl],Nl=Vl.s;T(O,Nl)||M(O,Nl,b(6,Vl.c))}}},4603:(a,t,Z)=>{var n=Z(6840),i=Z(9504),N=Z(655),b=Z(2812),M=URLSearchParams,T=M.prototype,X=i(T.append),u=i(T.delete),o=i(T.forEach),y=i([].push),I=new M("a=1&a=2&b=3");I.delete("a",1),I.delete("b",void 0),I+""!="a=2"&&n(T,"delete",function(k){var w=arguments.length,K=w<2?void 0:arguments[1];if(w&&K===void 0)return u(this,k);var C=[];o(this,function(E,O){y(C,{key:O,value:E})}),b(w,1);for(var P=N(k),r=N(K),_=0,v=0,j=!1,H=C.length,$;_<H;)$=C[_++],j||$.key===P?(j=!0,u(this,$.key)):v++;for(;v<H;)$=C[v++],$.key===P&&$.value===r||X(this,$.key,$.value)},{enumerable:!0,unsafe:!0})},7566:(a,t,Z)=>{var n=Z(6840),i=Z(9504),N=Z(655),b=Z(2812),M=URLSearchParams,T=M.prototype,X=i(T.getAll),u=i(T.has),o=new M("a=1");(o.has("a",2)||!o.has("a",void 0))&&n(T,"has",function(y){var I=arguments.length,k=I<2?void 0:arguments[1];if(I&&k===void 0)return u(this,y);var w=X(this,y);b(I,1);for(var K=N(k),C=0;C<w.length;)if(w[C++]===K)return!0;return!1},{enumerable:!0,unsafe:!0})},8721:(a,t,Z)=>{var n=Z(3724),i=Z(9504),N=Z(2106),b=URLSearchParams.prototype,M=i(b.forEach);n&&!("size"in b)&&N(b,"size",{get:function(){var T=0;return M(this,function(){T++}),T},configurable:!0,enumerable:!0})}},ie={};function yl(a){var t=ie[a];if(t!==void 0)return t.exports;var Z=ie[a]={exports:{}};return IJ[a].call(Z.exports,Z,Z.exports,yl),Z.exports}yl.d=(a,t)=>{for(var Z in t)yl.o(t,Z)&&!yl.o(a,Z)&&Object.defineProperty(a,Z,{enumerable:!0,get:t[Z]})};yl.o=(a,t)=>Object.prototype.hasOwnProperty.call(a,t);var Rl=globalThis.pdfjsLib={};(()=>{var a,t,Z,n,i,N,b,M,T,X,u,o,y,I,k,w,K,C,P,r,_,v,j,H,$,E,O,A,Zl,Vl,Nl,nl,g,Yl,Gl,Ll,ZU,PU,YU,Nd,tt,Ft,cl,Ul,Fl,el,zl,sl,kl,Cl,pU,Al,_l,Ld,E0,QZ,Ah,pQ,FV,uQ,LU,cV,BQ,aU,ct,WV,ql,oQ,_h,fU,tU,iU,w0,iZ,FF,Rd,C0,cF,kd,NZ,WF,VV,aV,Id,x0,Wt,hd,yQ,Vt,nV,VF,sV,r0,NU,Il,RZ,aF,j0,QV,iV,NV,RV,hV,bV,mV,eV,MV,GV,JV,TV,SV,at,Dd,hZ,XV,O0,YV,zQ,qh,LQ,$h,g0,pV,kQ,lb,IQ,Ub,DQ,db,uV,EQ,BV,wQ,oV,CQ,yV,xQ,zV,rQ,RU,uU,Ed,bZ,jQ,Zb,OQ,tb,LV,gQ,KQ,Fb,nF,K0,kV,HQ,mZ,eZ,bd,MZ,md,H0,GZ,IV,vQ,ed,kU,v0,sF,hU,QF,P0,f0,BU,DV,iF,wd,EV,NF,JZ,Cd,A0,_0,AU,wV,PQ,CV,fQ,xV,AQ,rV,_Q,qQ,cb,$Q,Wb,jV,li,OV,Ui,gV,di,Zi,Vb,ti,ab,Fi,nb,ci,sb,KV,Wi,RF,q0,hF,bU,Vi,Qb,HV,$0,vV,ai,PV,ni,fV,AV,si,ib,Qi,Nb,lc,_V,bF,qV,$V,la,Ua,Uc,nt,El,dc,Zc,da,ii,Rb,st,OU,Za,ta,Qt,TZ,Fa,ca,mF,tc,Fc,it,cc,Wa,Wc,eF,Va,aa,MF,GF,Vc,Ni,hb,Ri,bb,na,hi,ac,sa,bi,mb,mi,Nt,SZ,Rt,JF,nc,Qa,TF,ei,ht,sc,ia,XZ,xd,Qc,ic,rd,SF,Nc,Md,Na,Mi,bt,XF,mt,Rc,hc,Ra,Gi,YZ,et,Ji,eb,Ti,Mb,bc,Si,Xi,mc,YF,gl,pZ,pF,ha,ba,ec,uZ,Gd,BZ,ma,oZ,ea,Mt,uF,Mc,Ma,Ga,Yi,pi,Gb,ui,Jb,Bi,Tb,oi,Sb,Gc,Ja,Jc,Ta,Sa,yi,Xa,Ya,pa,ua,Ba,oa,ya,zi,za,BF,Tc,Li,Xb,La,ki,ka,Ia,Da,Ea,wa,Jd,_U,Ca,qU,Sc,Ii,Yb,Di,pb,Ei,ub,Xc,xa,Yc,ra,pc,ja,wi,Bb,Oa,Ci,xi,ob,ga,Gt,Td,ri,yb,uc,Ka,ji,zb,Oi,Lb,Ha,gi,va,Bc,jd,yZ,oc,yc,Od,pl,oF,yF,Pa,fa,zc,Lc,Jt,Aa,Ki,Hi,_a,vi,kc,zF,zZ,qa,$U,$a,vl,LF,Ic,kF,Dc,Pi,kb,ln,Un,Sd,IF,Ec,FU,dn,wc,Zn,tn,Tt,Cc,Fn,fi,cn,Ai,_i,Ib,LZ,St,qi,Db,gd,kZ,xc,Wn,Xt,DF,rc,td,Vn,an,EF,Xd,IU,ld,$i,jc,wF,cU,Oc,Kd,nn,sn,lN,Qn,UN,dN,Eb,ZN,wb,tN,Cb,Nn,FN,CF,gc,Yt,xF,cN,xb,Kc,Rn,rF,Hc,WN,rb,VN,jb,aN,Ob,nN,gb,jF,OF,hn,bn,mn,gF,Hd,IZ,Fd,KF,HF,vF,PF,fF,pt,sN,Kb,QN,Hb,iN,vb,NN,Pb,en,RN,hN,fb,Mn,bN,mN,Ab,eN,_b,MN,qb,GN,$b,JN,lm,DZ,ut,Gn,TN,vc,Jn,Pc,Tn,Bt,AF,Sn,SN,fc,Xn,XN,Um,Yn,YN,pN,dm,uN,Zm,pn,BN,Ac,un,_F,_c,mU,eU,ot,EZ,yt,qc,vd,qF,Pd,Yd,Bn,$F,$c,l0,lW,UW,on,yn,oN,yN,tm,zN,Fm,zn,LN,dW,Ln,kN,cm,U0,ZW,fd,d0,wZ,CZ,xZ,Ud,zt,tW,FW,DU,Ql,Lt,IN,Wm,kn,DN,In,EN,Dn,wN,cW,En,Ad,wn,WU,kt,Cn,CN,xn,xN,rN,Vm;yl.d(Rl,{AbortException:()=>Dt,AnnotationEditorLayer:()=>NJ,AnnotationEditorParamsType:()=>bl,AnnotationEditorType:()=>ul,AnnotationEditorUIManager:()=>sW,AnnotationLayer:()=>aJ,AnnotationMode:()=>rZ,CMapCompressionType:()=>gN,ColorPicker:()=>ae,DOMSVGFactory:()=>_N,DrawLayer:()=>RJ,FeatureTest:()=>EU,GlobalWorkerOptions:()=>OZ,ImageKind:()=>rn,InvalidPDFException:()=>nm,MissingPDFException:()=>It,OPS:()=>cd,Outliner:()=>RR,PDFDataRangeTransport:()=>Pm,PDFDateString:()=>mm,PDFWorker:()=>Vs,PasswordResponses:()=>WM,PermissionFlag:()=>cM,PixelsPerInch:()=>t0,RenderingCancelledException:()=>qN,TextLayer:()=>Ws,UnexpectedResponseException:()=>Kn,Util:()=>al,VerbosityLevel:()=>jn,XfaLayer:()=>$m,build:()=>jG,createValidAbsoluteUrl:()=>sM,fetchData:()=>_n,getDocument:()=>yG,getFilenameFromUrl:()=>GM,getPdfFilenameFromUrl:()=>JM,getXfaPageViewport:()=>TM,isDataScheme:()=>$N,isPdfFile:()=>lR,noContextMenu:()=>wU,normalizeUnicode:()=>bM,renderTextLayer:()=>JG,setLayerDimensions:()=>Et,shadow:()=>ol,updateTextLayer:()=>TG,version:()=>rG}),yl(4114),yl(6573),yl(8100),yl(7936),yl(7467),yl(4732),yl(9577),yl(4603),yl(7566),yl(8721);const MU=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser"),am=[1,0,0,1,0,0],jN=[.001,0,0,.001,0,0],tM=1e7,ON=1.35,dd={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},rZ={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},FM="pdfjs_internal_editor_",ul={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15},bl={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23,HIGHLIGHT_COLOR:31,HIGHLIGHT_DEFAULT_COLOR:32,HIGHLIGHT_THICKNESS:33,HIGHLIGHT_FREE:34,HIGHLIGHT_SHOW_ALL:35},cM={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},GU={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},rn={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},$l={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},WW={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},jn={ERRORS:0,WARNINGS:1,INFOS:5},gN={NONE:0,BINARY:1},cd={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},WM={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let On=jn.WARNINGS;function VM(V){Number.isInteger(V)&&(On=V)}function aM(){return On}function gn(V){On>=jn.INFOS&&console.log(`Info: ${V}`)}function Jl(V){On>=jn.WARNINGS&&console.log(`Warning: ${V}`)}function Dl(V){throw new Error(V)}function lU(V,l){V||Dl(l)}function nM(V){switch(V==null?void 0:V.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function sM(V,l=null,U=null){if(!V)return null;try{if(U&&typeof V=="string"){if(U.addDefaultProtocol&&V.startsWith("www.")){const c=V.match(/\./g);(c==null?void 0:c.length)>=2&&(V=`http://${V}`)}if(U.tryConvertEncoding)try{V=hM(V)}catch{}}const d=l?new URL(V,l):new URL(V);if(nM(d))return d}catch{}return null}function ol(V,l,U,d=!1){return Object.defineProperty(V,l,{value:U,enumerable:!d,configurable:!0,writable:!1}),U}const jZ=function(){function V(l,U){this.constructor===V&&Dl("Cannot initialize BaseException."),this.message=l,this.name=U}return V.prototype=new Error,V.constructor=V,V}();class KN extends jZ{constructor(l,U){super(l,"PasswordException"),this.code=U}}class HN extends jZ{constructor(l,U){super(l,"UnknownErrorException"),this.details=U}}class nm extends jZ{constructor(l){super(l,"InvalidPDFException")}}class It extends jZ{constructor(l){super(l,"MissingPDFException")}}class Kn extends jZ{constructor(l,U){super(l,"UnexpectedResponseException"),this.status=U}}class QM extends jZ{constructor(l){super(l,"FormatError")}}class Dt extends jZ{constructor(l){super(l,"AbortException")}}function sm(V){(typeof V!="object"||(V==null?void 0:V.length)===void 0)&&Dl("Invalid argument for bytesToString");const l=V.length,U=8192;if(l<U)return String.fromCharCode.apply(null,V);const d=[];for(let c=0;c<l;c+=U){const W=Math.min(c+U,l),s=V.subarray(c,W);d.push(String.fromCharCode.apply(null,s))}return d.join("")}function Hn(V){typeof V!="string"&&Dl("Invalid argument for stringToBytes");const l=V.length,U=new Uint8Array(l);for(let d=0;d<l;++d)U[d]=V.charCodeAt(d)&255;return U}function iM(V){return String.fromCharCode(V>>24&255,V>>16&255,V>>8&255,V&255)}function vN(V){const l=Object.create(null);for(const[U,d]of V)l[U]=d;return l}function NM(){const V=new Uint8Array(4);return V[0]=1,new Uint32Array(V.buffer,0,1)[0]===1}function RM(){try{return new Function(""),!0}catch{return!1}}class EU{static get isLittleEndian(){return ol(this,"isLittleEndian",NM())}static get isEvalSupported(){return ol(this,"isEvalSupported",RM())}static get isOffscreenCanvasSupported(){return ol(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}static get platform(){return typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.platform)=="string"?ol(this,"platform",{isMac:navigator.platform.includes("Mac")}):ol(this,"platform",{isMac:!1})}static get isCSSRoundSupported(){var l,U;return ol(this,"isCSSRoundSupported",(U=(l=globalThis.CSS)==null?void 0:l.supports)==null?void 0:U.call(l,"width: round(1.5px, 1px)"))}}const PN=Array.from(Array(256).keys(),V=>V.toString(16).padStart(2,"0"));class al{static makeHexColor(l,U,d){return`#${PN[l]}${PN[U]}${PN[d]}`}static scaleMinMax(l,U){let d;l[0]?(l[0]<0&&(d=U[0],U[0]=U[2],U[2]=d),U[0]*=l[0],U[2]*=l[0],l[3]<0&&(d=U[1],U[1]=U[3],U[3]=d),U[1]*=l[3],U[3]*=l[3]):(d=U[0],U[0]=U[1],U[1]=d,d=U[2],U[2]=U[3],U[3]=d,l[1]<0&&(d=U[1],U[1]=U[3],U[3]=d),U[1]*=l[1],U[3]*=l[1],l[2]<0&&(d=U[0],U[0]=U[2],U[2]=d),U[0]*=l[2],U[2]*=l[2]),U[0]+=l[4],U[1]+=l[5],U[2]+=l[4],U[3]+=l[5]}static transform(l,U){return[l[0]*U[0]+l[2]*U[1],l[1]*U[0]+l[3]*U[1],l[0]*U[2]+l[2]*U[3],l[1]*U[2]+l[3]*U[3],l[0]*U[4]+l[2]*U[5]+l[4],l[1]*U[4]+l[3]*U[5]+l[5]]}static applyTransform(l,U){const d=l[0]*U[0]+l[1]*U[2]+U[4],c=l[0]*U[1]+l[1]*U[3]+U[5];return[d,c]}static applyInverseTransform(l,U){const d=U[0]*U[3]-U[1]*U[2],c=(l[0]*U[3]-l[1]*U[2]+U[2]*U[5]-U[4]*U[3])/d,W=(-l[0]*U[1]+l[1]*U[0]+U[4]*U[1]-U[5]*U[0])/d;return[c,W]}static getAxialAlignedBoundingBox(l,U){const d=this.applyTransform(l,U),c=this.applyTransform(l.slice(2,4),U),W=this.applyTransform([l[0],l[3]],U),s=this.applyTransform([l[2],l[1]],U);return[Math.min(d[0],c[0],W[0],s[0]),Math.min(d[1],c[1],W[1],s[1]),Math.max(d[0],c[0],W[0],s[0]),Math.max(d[1],c[1],W[1],s[1])]}static inverseTransform(l){const U=l[0]*l[3]-l[1]*l[2];return[l[3]/U,-l[1]/U,-l[2]/U,l[0]/U,(l[2]*l[5]-l[4]*l[3])/U,(l[4]*l[1]-l[5]*l[0])/U]}static singularValueDecompose2dScale(l){const U=[l[0],l[2],l[1],l[3]],d=l[0]*U[0]+l[1]*U[2],c=l[0]*U[1]+l[1]*U[3],W=l[2]*U[0]+l[3]*U[2],s=l[2]*U[1]+l[3]*U[3],Q=(d+s)/2,R=Math.sqrt((d+s)**2-4*(d*s-W*c))/2,m=Q+R||1,e=Q-R||1;return[Math.sqrt(m),Math.sqrt(e)]}static normalizeRect(l){const U=l.slice(0);return l[0]>l[2]&&(U[0]=l[2],U[2]=l[0]),l[1]>l[3]&&(U[1]=l[3],U[3]=l[1]),U}static intersect(l,U){const d=Math.max(Math.min(l[0],l[2]),Math.min(U[0],U[2])),c=Math.min(Math.max(l[0],l[2]),Math.max(U[0],U[2]));if(d>c)return null;const W=Math.max(Math.min(l[1],l[3]),Math.min(U[1],U[3])),s=Math.min(Math.max(l[1],l[3]),Math.max(U[1],U[3]));return W>s?null:[d,W,c,s]}static bezierBoundingBox(l,U,d,c,W,s,Q,R,m){return m?(m[0]=Math.min(m[0],l,Q),m[1]=Math.min(m[1],U,R),m[2]=Math.max(m[2],l,Q),m[3]=Math.max(m[3],U,R)):m=[Math.min(l,Q),Math.min(U,R),Math.max(l,Q),Math.max(U,R)],G(this,Z,n).call(this,l,d,W,Q,U,c,s,R,3*(-l+3*(d-W)+Q),6*(l-2*d+W),3*(d-l),m),G(this,Z,n).call(this,l,d,W,Q,U,c,s,R,3*(-U+3*(c-s)+R),6*(U-2*c+s),3*(c-U),m),m}}a=new WeakSet,t=function(V,l,U,d,c,W,s,Q,R,m){if(R<=0||R>=1)return;const e=1-R,S=R*R,Y=S*R,p=e*(e*(e*V+3*R*l)+3*S*U)+Y*d,B=e*(e*(e*c+3*R*W)+3*S*s)+Y*Q;m[0]=Math.min(m[0],p),m[1]=Math.min(m[1],B),m[2]=Math.max(m[2],p),m[3]=Math.max(m[3],B)},Z=new WeakSet,n=function(V,l,U,d,c,W,s,Q,R,m,e,S){if(Math.abs(R)<1e-12){Math.abs(m)>=1e-12&&G(this,a,t).call(this,V,l,U,d,c,W,s,Q,-e/m,S);return}const Y=m**2-4*e*R;if(Y<0)return;const p=Math.sqrt(Y),B=2*R;G(this,a,t).call(this,V,l,U,d,c,W,s,Q,(-m+p)/B,S),G(this,a,t).call(this,V,l,U,d,c,W,s,Q,(-m-p)/B,S)},h(al,a),h(al,Z);function hM(V){return decodeURIComponent(escape(V))}let fN=null,Qm=null;function bM(V){return fN||(fN=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,Qm=new Map([["ſt","ſt"]])),V.replaceAll(fN,(l,U,d)=>U?U.normalize("NFKC"):Qm.get(d))}function mM(){if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const V=new Uint8Array(32);if(typeof crypto<"u"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(V);else for(let l=0;l<32;l++)V[l]=Math.floor(Math.random()*255);return sm(V)}const im="pdfjs_internal_id_",_d={BEZIER_CURVE_TO:0,MOVE_TO:1,LINE_TO:2,QUADRATIC_CURVE_TO:3,RESTORE:4,SAVE:5,SCALE:6,TRANSFORM:7,TRANSLATE:8};yl(4628),yl(1454),yl(3375),yl(9225),yl(3972),yl(9209),yl(5714),yl(7561),yl(6197),yl(4979),yl(8992),yl(3215),yl(7550),yl(8335),yl(4520);class vn{constructor(){this.constructor===vn&&Dl("Cannot initialize BaseFilterFactory.")}addFilter(l){return"none"}addHCMFilter(l,U){return"none"}addAlphaFilter(l){return"none"}addLuminosityFilter(l){return"none"}addHighlightHCMFilter(l,U,d,c,W){return"none"}destroy(l=!1){}}class Pn{constructor(){this.constructor===Pn&&Dl("Cannot initialize BaseCanvasFactory.")}create(l,U){if(l<=0||U<=0)throw new Error("Invalid canvas size");const d=this._createCanvas(l,U);return{canvas:d,context:d.getContext("2d")}}reset(l,U,d){if(!l.canvas)throw new Error("Canvas is not specified");if(U<=0||d<=0)throw new Error("Invalid canvas size");l.canvas.width=U,l.canvas.height=d}destroy(l){if(!l.canvas)throw new Error("Canvas is not specified");l.canvas.width=0,l.canvas.height=0,l.canvas=null,l.context=null}_createCanvas(l,U){Dl("Abstract method `_createCanvas` called.")}}class fn{constructor({baseUrl:l=null,isCompressed:U=!0}){this.constructor===fn&&Dl("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=l,this.isCompressed=U}async fetch({name:l}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!l)throw new Error("CMap name must be specified.");const U=this.baseUrl+l+(this.isCompressed?".bcmap":""),d=this.isCompressed?gN.BINARY:gN.NONE;return this._fetchData(U,d).catch(c=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${U}`)})}_fetchData(l,U){Dl("Abstract method `_fetchData` called.")}}class An{constructor({baseUrl:l=null}){this.constructor===An&&Dl("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=l}async fetch({filename:l}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!l)throw new Error("Font filename must be specified.");const U=`${this.baseUrl}${l}`;return this._fetchData(U).catch(d=>{throw new Error(`Unable to load font data at: ${U}`)})}_fetchData(l){Dl("Abstract method `_fetchData` called.")}}class AN{constructor(){this.constructor===AN&&Dl("Cannot initialize BaseSVGFactory.")}create(l,U,d=!1){if(l<=0||U<=0)throw new Error("Invalid SVG dimensions");const c=this._createSVG("svg:svg");return c.setAttribute("version","1.1"),d||(c.setAttribute("width",`${l}px`),c.setAttribute("height",`${U}px`)),c.setAttribute("preserveAspectRatio","none"),c.setAttribute("viewBox",`0 0 ${l} ${U}`),c}createElement(l){if(typeof l!="string")throw new Error("Invalid SVG element type");return this._createSVG(l)}_createSVG(l){Dl("Abstract method `_createSVG` called.")}}const qd="http://www.w3.org/2000/svg",Z0=class{};ml(Z0,"CSS",96),ml(Z0,"PDF",72),ml(Z0,"PDF_TO_CSS_UNITS",Z0.CSS/Z0.PDF);let t0=Z0;class eM extends vn{constructor({docId:l,ownerDocument:U=globalThis.document}={}){super(),h(this,u),h(this,y),h(this,k),h(this,K),h(this,P),h(this,_),h(this,j),h(this,$),h(this,O),h(this,Zl),h(this,Nl),h(this,i,void 0),h(this,N,void 0),h(this,b,void 0),h(this,M,void 0),h(this,T,void 0),h(this,X,0),J(this,b,l),J(this,M,U)}addFilter(l){if(!l)return"none";let U=F(this,u,o).get(l);if(U)return U;const[d,c,W]=G(this,K,C).call(this,l),s=l.length===1?d:`${d}${c}${W}`;if(U=F(this,u,o).get(s),U)return F(this,u,o).set(l,U),U;const Q=`g_${F(this,b)}_transfer_map_${vU(this,X)._++}`,R=`url(#${Q})`;F(this,u,o).set(l,R),F(this,u,o).set(s,R);const m=G(this,j,H).call(this,Q);return G(this,O,A).call(this,d,c,W,m),R}addHCMFilter(l,U){var d;const c=`${l}-${U}`,W="base";let s=F(this,y,I).get(W);if((s==null?void 0:s.key)===c||(s?((d=s.filter)==null||d.remove(),s.key=c,s.url="none",s.filter=null):(s={key:c,url:"none",filter:null},F(this,y,I).set(W,s)),!l||!U))return s.url;const Q=G(this,Nl,nl).call(this,l);l=al.makeHexColor(...Q);const R=G(this,Nl,nl).call(this,U);if(U=al.makeHexColor(...R),F(this,k,w).style.color="",l==="#000000"&&U==="#ffffff"||l===U)return s.url;const m=new Array(256);for(let B=0;B<=255;B++){const z=B/255;m[B]=z<=.03928?z/12.92:((z+.055)/1.055)**2.4}const e=m.join(","),S=`g_${F(this,b)}_hcm_filter`,Y=s.filter=G(this,j,H).call(this,S);G(this,O,A).call(this,e,e,e,Y),G(this,_,v).call(this,Y);const p=(B,z)=>{const L=Q[B]/255,D=R[B]/255,x=new Array(z+1);for(let f=0;f<=z;f++)x[f]=L+f/z*(D-L);return x.join(",")};return G(this,O,A).call(this,p(0,5),p(1,5),p(2,5),Y),s.url=`url(#${S})`,s.url}addAlphaFilter(l){let U=F(this,u,o).get(l);if(U)return U;const[d]=G(this,K,C).call(this,[l]),c=`alpha_${d}`;if(U=F(this,u,o).get(c),U)return F(this,u,o).set(l,U),U;const W=`g_${F(this,b)}_alpha_map_${vU(this,X)._++}`,s=`url(#${W})`;F(this,u,o).set(l,s),F(this,u,o).set(c,s);const Q=G(this,j,H).call(this,W);return G(this,Zl,Vl).call(this,d,Q),s}addLuminosityFilter(l){let U=F(this,u,o).get(l||"luminosity");if(U)return U;let d,c;if(l?([d]=G(this,K,C).call(this,[l]),c=`luminosity_${d}`):c="luminosity",U=F(this,u,o).get(c),U)return F(this,u,o).set(l,U),U;const W=`g_${F(this,b)}_luminosity_map_${vU(this,X)._++}`,s=`url(#${W})`;F(this,u,o).set(l,s),F(this,u,o).set(c,s);const Q=G(this,j,H).call(this,W);return G(this,P,r).call(this,Q),l&&G(this,Zl,Vl).call(this,d,Q),s}addHighlightHCMFilter(l,U,d,c,W){var s;const Q=`${U}-${d}-${c}-${W}`;let R=F(this,y,I).get(l);if((R==null?void 0:R.key)===Q||(R?((s=R.filter)==null||s.remove(),R.key=Q,R.url="none",R.filter=null):(R={key:Q,url:"none",filter:null},F(this,y,I).set(l,R)),!U||!d))return R.url;const[m,e]=[U,d].map(G(this,Nl,nl).bind(this));let S=Math.round(.2126*m[0]+.7152*m[1]+.0722*m[2]),Y=Math.round(.2126*e[0]+.7152*e[1]+.0722*e[2]),[p,B]=[c,W].map(G(this,Nl,nl).bind(this));Y<S&&([S,Y,p,B]=[Y,S,B,p]),F(this,k,w).style.color="";const z=(x,f,q)=>{const dl=new Array(256),tl=(Y-S)/q,Wl=x/255,hl=(f-x)/(255*q);let Tl=0;for(let Xl=0;Xl<=q;Xl++){const Sl=Math.round(S+Xl*tl),Kl=Wl+Xl*hl;for(let xl=Tl;xl<=Sl;xl++)dl[xl]=Kl;Tl=Sl+1}for(let Xl=Tl;Xl<256;Xl++)dl[Xl]=dl[Tl-1];return dl.join(",")},L=`g_${F(this,b)}_hcm_${l}_filter`,D=R.filter=G(this,j,H).call(this,L);return G(this,_,v).call(this,D),G(this,O,A).call(this,z(p[0],B[0],5),z(p[1],B[1],5),z(p[2],B[2],5),D),R.url=`url(#${L})`,R.url}destroy(l=!1){l&&F(this,y,I).size!==0||(F(this,N)&&(F(this,N).parentNode.parentNode.remove(),J(this,N,null)),F(this,i)&&(F(this,i).clear(),J(this,i,null)),J(this,X,0))}}i=new WeakMap,N=new WeakMap,b=new WeakMap,M=new WeakMap,T=new WeakMap,X=new WeakMap,u=new WeakSet,o=function(){return F(this,i)||J(this,i,new Map)},y=new WeakSet,I=function(){return F(this,T)||J(this,T,new Map)},k=new WeakSet,w=function(){if(!F(this,N)){const V=F(this,M).createElement("div"),{style:l}=V;l.visibility="hidden",l.contain="strict",l.width=l.height=0,l.position="absolute",l.top=l.left=0,l.zIndex=-1;const U=F(this,M).createElementNS(qd,"svg");U.setAttribute("width",0),U.setAttribute("height",0),J(this,N,F(this,M).createElementNS(qd,"defs")),V.append(U),U.append(F(this,N)),F(this,M).body.append(V)}return F(this,N)},K=new WeakSet,C=function(V){if(V.length===1){const Q=V[0],R=new Array(256);for(let e=0;e<256;e++)R[e]=Q[e]/255;const m=R.join(",");return[m,m,m]}const[l,U,d]=V,c=new Array(256),W=new Array(256),s=new Array(256);for(let Q=0;Q<256;Q++)c[Q]=l[Q]/255,W[Q]=U[Q]/255,s[Q]=d[Q]/255;return[c.join(","),W.join(","),s.join(",")]},P=new WeakSet,r=function(V){const l=F(this,M).createElementNS(qd,"feColorMatrix");l.setAttribute("type","matrix"),l.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0.59 0.11 0 0"),V.append(l)},_=new WeakSet,v=function(V){const l=F(this,M).createElementNS(qd,"feColorMatrix");l.setAttribute("type","matrix"),l.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),V.append(l)},j=new WeakSet,H=function(V){const l=F(this,M).createElementNS(qd,"filter");return l.setAttribute("color-interpolation-filters","sRGB"),l.setAttribute("id",V),F(this,k,w).append(l),l},$=new WeakSet,E=function(V,l,U){const d=F(this,M).createElementNS(qd,l);d.setAttribute("type","discrete"),d.setAttribute("tableValues",U),V.append(d)},O=new WeakSet,A=function(V,l,U,d){const c=F(this,M).createElementNS(qd,"feComponentTransfer");d.append(c),G(this,$,E).call(this,c,"feFuncR",V),G(this,$,E).call(this,c,"feFuncG",l),G(this,$,E).call(this,c,"feFuncB",U)},Zl=new WeakSet,Vl=function(V,l){const U=F(this,M).createElementNS(qd,"feComponentTransfer");l.append(U),G(this,$,E).call(this,U,"feFuncA",V)},Nl=new WeakSet,nl=function(V){return F(this,k,w).style.color=V,dR(getComputedStyle(F(this,k,w)).getPropertyValue("color"))};class MM extends Pn{constructor({ownerDocument:l=globalThis.document}={}){super(),this._document=l}_createCanvas(l,U){const d=this._document.createElement("canvas");return d.width=l,d.height=U,d}}async function _n(V,l="text"){if(aW(V,document.baseURI)){const U=await fetch(V);if(!U.ok)throw new Error(U.statusText);switch(l){case"arraybuffer":return U.arrayBuffer();case"blob":return U.blob();case"json":return U.json()}return U.text()}return new Promise((U,d)=>{const c=new XMLHttpRequest;c.open("GET",V,!0),c.responseType=l,c.onreadystatechange=()=>{if(c.readyState===XMLHttpRequest.DONE){if(c.status===200||c.status===0){switch(l){case"arraybuffer":case"blob":case"json":U(c.response);return}U(c.responseText);return}d(new Error(c.statusText))}},c.send(null)})}class Nm extends fn{_fetchData(l,U){return _n(l,this.isCompressed?"arraybuffer":"text").then(d=>({cMapData:d instanceof ArrayBuffer?new Uint8Array(d):Hn(d),compressionType:U}))}}class Rm extends An{_fetchData(l){return _n(l,"arraybuffer").then(U=>new Uint8Array(U))}}class _N extends AN{_createSVG(l){return document.createElementNS(qd,l)}}class VW{constructor({viewBox:l,scale:U,rotation:d,offsetX:c=0,offsetY:W=0,dontFlip:s=!1}){this.viewBox=l,this.scale=U,this.rotation=d,this.offsetX=c,this.offsetY=W;const Q=(l[2]+l[0])/2,R=(l[3]+l[1])/2;let m,e,S,Y;switch(d%=360,d<0&&(d+=360),d){case 180:m=-1,e=0,S=0,Y=1;break;case 90:m=0,e=1,S=1,Y=0;break;case 270:m=0,e=-1,S=-1,Y=0;break;case 0:m=1,e=0,S=0,Y=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}s&&(S=-S,Y=-Y);let p,B,z,L;m===0?(p=Math.abs(R-l[1])*U+c,B=Math.abs(Q-l[0])*U+W,z=(l[3]-l[1])*U,L=(l[2]-l[0])*U):(p=Math.abs(Q-l[0])*U+c,B=Math.abs(R-l[1])*U+W,z=(l[2]-l[0])*U,L=(l[3]-l[1])*U),this.transform=[m*U,e*U,S*U,Y*U,p-m*U*Q-S*U*R,B-e*U*Q-Y*U*R],this.width=z,this.height=L}get rawDims(){const{viewBox:l}=this;return ol(this,"rawDims",{pageWidth:l[2]-l[0],pageHeight:l[3]-l[1],pageX:l[0],pageY:l[1]})}clone({scale:l=this.scale,rotation:U=this.rotation,offsetX:d=this.offsetX,offsetY:c=this.offsetY,dontFlip:W=!1}={}){return new VW({viewBox:this.viewBox.slice(),scale:l,rotation:U,offsetX:d,offsetY:c,dontFlip:W})}convertToViewportPoint(l,U){return al.applyTransform([l,U],this.transform)}convertToViewportRectangle(l){const U=al.applyTransform([l[0],l[1]],this.transform),d=al.applyTransform([l[2],l[3]],this.transform);return[U[0],U[1],d[0],d[1]]}convertToPdfPoint(l,U){return al.applyInverseTransform([l,U],this.transform)}}class qN extends jZ{constructor(l,U=0){super(l,"RenderingCancelledException"),this.extraDelay=U}}function $N(V){const l=V.length;let U=0;for(;U<l&&V[U].trim()==="";)U++;return V.substring(U,U+5).toLowerCase()==="data:"}function lR(V){return typeof V=="string"&&/\.pdf$/i.test(V)}function GM(V){return[V]=V.split(/[#?]/,1),V.substring(V.lastIndexOf("/")+1)}function JM(V,l="document.pdf"){if(typeof V!="string")return l;if($N(V))return Jl('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),l;const U=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,d=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,c=U.exec(V);let W=d.exec(c[1])||d.exec(c[2])||d.exec(c[3]);if(W&&(W=W[0],W.includes("%")))try{W=d.exec(decodeURIComponent(W))[0]}catch{}return W||l}class hm{constructor(){ml(this,"started",Object.create(null)),ml(this,"times",[])}time(l){l in this.started&&Jl(`Timer is already running for ${l}`),this.started[l]=Date.now()}timeEnd(l){l in this.started||Jl(`Timer has not been started for ${l}`),this.times.push({name:l,start:this.started[l],end:Date.now()}),delete this.started[l]}toString(){const l=[];let U=0;for(const{name:d}of this.times)U=Math.max(d.length,U);for(const{name:d,start:c,end:W}of this.times)l.push(`${d.padEnd(U)} ${W-c}ms
|
|
3
3
|
`);return l.join("")}}function aW(V,l){try{const{protocol:U}=l?new URL(V,l):new URL(V);return U==="http:"||U==="https:"}catch{return!1}}function wU(V){V.preventDefault()}function bm(V){console.log("Deprecated API usage: "+V)}let UR;class mm{static toDateObject(l){if(!l||typeof l!="string")return null;UR||(UR=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const U=UR.exec(l);if(!U)return null;const d=parseInt(U[1],10);let c=parseInt(U[2],10);c=c>=1&&c<=12?c-1:0;let W=parseInt(U[3],10);W=W>=1&&W<=31?W:1;let s=parseInt(U[4],10);s=s>=0&&s<=23?s:0;let Q=parseInt(U[5],10);Q=Q>=0&&Q<=59?Q:0;let R=parseInt(U[6],10);R=R>=0&&R<=59?R:0;const m=U[7]||"Z";let e=parseInt(U[8],10);e=e>=0&&e<=23?e:0;let S=parseInt(U[9],10)||0;return S=S>=0&&S<=59?S:0,m==="-"?(s+=e,Q+=S):m==="+"&&(s-=e,Q-=S),new Date(Date.UTC(d,c,W,s,Q,R))}}function TM(V,{scale:l=1,rotation:U=0}){const{width:d,height:c}=V.attributes.style,W=[0,0,parseInt(d),parseInt(c)];return new VW({viewBox:W,scale:l,rotation:U})}function dR(V){if(V.startsWith("#")){const l=parseInt(V.slice(1),16);return[(l&16711680)>>16,(l&65280)>>8,l&255]}return V.startsWith("rgb(")?V.slice(4,-1).split(",").map(l=>parseInt(l)):V.startsWith("rgba(")?V.slice(5,-1).split(",").map(l=>parseInt(l)).slice(0,3):(Jl(`Not a valid color format: "${V}"`),[0,0,0])}function SM(V){const l=document.createElement("span");l.style.visibility="hidden",document.body.append(l);for(const U of V.keys()){l.style.color=U;const d=window.getComputedStyle(l).color;V.set(U,dR(d))}l.remove()}function rl(V){const{a:l,b:U,c:d,d:c,e:W,f:s}=V.getTransform();return[l,U,d,c,W,s]}function $d(V){const{a:l,b:U,c:d,d:c,e:W,f:s}=V.getTransform().invertSelf();return[l,U,d,c,W,s]}function Et(V,l,U=!1,d=!0){if(l instanceof VW){const{pageWidth:c,pageHeight:W}=l.rawDims,{style:s}=V,Q=EU.isCSSRoundSupported,R=`var(--scale-factor) * ${c}px`,m=`var(--scale-factor) * ${W}px`,e=Q?`round(${R}, 1px)`:`calc(${R})`,S=Q?`round(${m}, 1px)`:`calc(${m})`;!U||l.rotation%180===0?(s.width=e,s.height=S):(s.width=S,s.height=e)}d&&V.setAttribute("data-main-rotation",l.rotation)}const em=class V2{constructor(l){h(this,YU),h(this,tt),h(this,cl),h(this,Fl),h(this,zl),h(this,g,null),h(this,Yl,null),h(this,Gl,void 0),h(this,Ll,null),J(this,Gl,l)}render(){const l=J(this,g,document.createElement("div"));l.className="editToolbar",l.setAttribute("role","toolbar"),l.addEventListener("contextmenu",wU),l.addEventListener("pointerdown",G(V2,ZU,PU));const U=J(this,Ll,document.createElement("div"));U.className="buttons",l.append(U);const d=F(this,Gl).toolbarPosition;if(d){const{style:c}=l,W=F(this,Gl)._uiManager.direction==="ltr"?1-d[0]:d[0];c.insetInlineEnd=`${100*W}%`,c.top=`calc(${100*d[1]}% + var(--editor-toolbar-vert-offset))`}return G(this,Fl,el).call(this),l}hide(){var l;F(this,g).classList.add("hidden"),(l=F(this,Yl))==null||l.hideDropdown()}show(){F(this,g).classList.remove("hidden")}addAltTextButton(l){G(this,cl,Ul).call(this,l),F(this,Ll).prepend(l,F(this,zl,sl))}addColorPicker(l){J(this,Yl,l);const U=l.renderButton();G(this,cl,Ul).call(this,U),F(this,Ll).prepend(U,F(this,zl,sl))}remove(){var l;F(this,g).remove(),(l=F(this,Yl))==null||l.destroy(),J(this,Yl,null)}};g=new WeakMap,Yl=new WeakMap,Gl=new WeakMap,Ll=new WeakMap,ZU=new WeakSet,PU=function(V){V.stopPropagation()},YU=new WeakSet,Nd=function(V){F(this,Gl)._focusEventsAllowed=!1,V.preventDefault(),V.stopPropagation()},tt=new WeakSet,Ft=function(V){F(this,Gl)._focusEventsAllowed=!0,V.preventDefault(),V.stopPropagation()},cl=new WeakSet,Ul=function(V){V.addEventListener("focusin",G(this,YU,Nd).bind(this),{capture:!0}),V.addEventListener("focusout",G(this,tt,Ft).bind(this),{capture:!0}),V.addEventListener("contextmenu",wU)},Fl=new WeakSet,el=function(){const V=document.createElement("button");V.className="delete",V.tabIndex=0,V.setAttribute("data-l10n-id",`pdfjs-editor-remove-${F(this,Gl).editorType}-button`),G(this,cl,Ul).call(this,V),V.addEventListener("click",l=>{F(this,Gl)._uiManager.delete()}),F(this,Ll).append(V)},zl=new WeakSet,sl=function(){const V=document.createElement("div");return V.className="divider",V},h(em,ZU);let XM=em;class YM{constructor(l){h(this,Al),h(this,Ld),h(this,QZ),h(this,kl,null),h(this,Cl,null),h(this,pU,void 0),J(this,pU,l)}show(l,U,d){const[c,W]=G(this,Ld,E0).call(this,U,d),{style:s}=F(this,Cl)||J(this,Cl,G(this,Al,_l).call(this));l.append(F(this,Cl)),s.insetInlineEnd=`${100*c}%`,s.top=`calc(${100*W}% + var(--editor-toolbar-vert-offset))`}hide(){F(this,Cl).remove()}}kl=new WeakMap,Cl=new WeakMap,pU=new WeakMap,Al=new WeakSet,_l=function(){const V=J(this,Cl,document.createElement("div"));V.className="editToolbar",V.setAttribute("role","toolbar"),V.addEventListener("contextmenu",wU);const l=J(this,kl,document.createElement("div"));return l.className="buttons",V.append(l),G(this,QZ,Ah).call(this),V},Ld=new WeakSet,E0=function(V,l){let U=0,d=0;for(const c of V){const W=c.y+c.height;if(W<U)continue;const s=c.x+(l?c.width:0);if(W>U){d=s,U=W;continue}l?s>d&&(d=s):s<d&&(d=s)}return[l?1-d:d,U]},QZ=new WeakSet,Ah=function(){const V=document.createElement("button");V.className="highlightButton",V.tabIndex=0,V.setAttribute("data-l10n-id","pdfjs-highlight-floating-button1");const l=document.createElement("span");V.append(l),l.className="visuallyHidden",l.setAttribute("data-l10n-id","pdfjs-highlight-floating-button-label"),V.addEventListener("contextmenu",wU),V.addEventListener("click",()=>{F(this,pU).highlightSelection("floating_button")}),F(this,kl).append(V)};function qn(V,l,U){for(const d of U)l.addEventListener(d,V[d].bind(V))}function pM(V){return Math.round(Math.min(255,Math.max(1,255*V))).toString(16).padStart(2,"0")}class uM{constructor(){h(this,pQ,0)}get id(){return`${FM}${vU(this,pQ)._++}`}}pQ=new WeakMap;const Mm=class{constructor(){h(this,cV),h(this,FV,mM()),h(this,uQ,0),h(this,LU,null)}static get _isSVGFittingCanvas(){const l='data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 1 1" width="1" height="1" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" style="fill:red;"/></svg>',U=new OffscreenCanvas(1,3).getContext("2d"),d=new Image;d.src=l;const c=d.decode().then(()=>(U.drawImage(d,0,0,1,1,0,0,1,3),new Uint32Array(U.getImageData(0,0,1,1).data.buffer)[0]===0));return ol(this,"_isSVGFittingCanvas",c)}async getFromFile(l){const{lastModified:U,name:d,size:c,type:W}=l;return G(this,cV,BQ).call(this,`${U}_${d}_${c}_${W}`,l)}async getFromUrl(l){return G(this,cV,BQ).call(this,l,l)}async getFromId(l){F(this,LU)||J(this,LU,new Map);const U=F(this,LU).get(l);return U?U.bitmap?(U.refCounter+=1,U):U.file?this.getFromFile(U.file):this.getFromUrl(U.url):null}getSvgUrl(l){const U=F(this,LU).get(l);return U!=null&&U.isSvg?U.svgUrl:null}deleteId(l){F(this,LU)||J(this,LU,new Map);const U=F(this,LU).get(l);U&&(U.refCounter-=1,U.refCounter===0&&(U.bitmap=null))}isValidId(l){return l.startsWith(`image_${F(this,FV)}_`)}};FV=new WeakMap,uQ=new WeakMap,LU=new WeakMap,cV=new WeakSet,BQ=async function(V,l){F(this,LU)||J(this,LU,new Map);let U=F(this,LU).get(V);if(U===null)return null;if(U!=null&&U.bitmap)return U.refCounter+=1,U;try{U||(U={bitmap:null,id:`image_${F(this,FV)}_${vU(this,uQ)._++}`,refCounter:0,isSvg:!1});let d;if(typeof l=="string"?(U.url=l,d=await _n(l,"blob")):d=U.file=l,d.type==="image/svg+xml"){const c=Mm._isSVGFittingCanvas,W=new FileReader,s=new Image,Q=new Promise((R,m)=>{s.onload=()=>{U.bitmap=s,U.isSvg=!0,R()},W.onload=async()=>{const e=U.svgUrl=W.result;s.src=await c?`${e}#svgView(preserveAspectRatio(none))`:e},s.onerror=W.onerror=m});W.readAsDataURL(d),await Q}else U.bitmap=await createImageBitmap(d);U.refCounter=1}catch(d){console.error(d),U=null}return F(this,LU).set(V,U),U&&F(this,LU).set(U.id,U),U};let BM=Mm;class oM{constructor(l=128){h(this,aU,[]),h(this,ct,!1),h(this,WV,void 0),h(this,ql,-1),J(this,WV,l)}add({cmd:l,undo:U,post:d,mustExec:c,type:W=NaN,overwriteIfSameType:s=!1,keepUndo:Q=!1}){if(c&&l(),F(this,ct))return;const R={cmd:l,undo:U,post:d,type:W};if(F(this,ql)===-1){F(this,aU).length>0&&(F(this,aU).length=0),J(this,ql,0),F(this,aU).push(R);return}if(s&&F(this,aU)[F(this,ql)].type===W){Q&&(R.undo=F(this,aU)[F(this,ql)].undo),F(this,aU)[F(this,ql)]=R;return}const m=F(this,ql)+1;m===F(this,WV)?F(this,aU).splice(0,1):(J(this,ql,m),m<F(this,aU).length&&F(this,aU).splice(m)),F(this,aU).push(R)}undo(){if(F(this,ql)===-1)return;J(this,ct,!0);const{undo:l,post:U}=F(this,aU)[F(this,ql)];l(),U==null||U(),J(this,ct,!1),J(this,ql,F(this,ql)-1)}redo(){if(F(this,ql)<F(this,aU).length-1){J(this,ql,F(this,ql)+1),J(this,ct,!0);const{cmd:l,post:U}=F(this,aU)[F(this,ql)];l(),U==null||U(),J(this,ct,!1)}}hasSomethingToUndo(){return F(this,ql)!==-1}hasSomethingToRedo(){return F(this,ql)<F(this,aU).length-1}destroy(){J(this,aU,null)}}aU=new WeakMap,ct=new WeakMap,WV=new WeakMap,ql=new WeakMap;class nW{constructor(l){h(this,oQ),this.buffer=[],this.callbacks=new Map,this.allKeys=new Set;const{isMac:U}=EU.platform;for(const[d,c,W={}]of l)for(const s of d){const Q=s.startsWith("mac+");U&&Q?(this.callbacks.set(s.slice(4),{callback:c,options:W}),this.allKeys.add(s.split("+").at(-1))):!U&&!Q&&(this.callbacks.set(s,{callback:c,options:W}),this.allKeys.add(s.split("+").at(-1)))}}exec(l,U){if(!this.allKeys.has(U.key))return;const d=this.callbacks.get(G(this,oQ,_h).call(this,U));if(!d)return;const{callback:c,options:{bubbles:W=!1,args:s=[],checker:Q=null}}=d;Q&&!Q(l,U)||(c.bind(l,...s,U)(),W||(U.stopPropagation(),U.preventDefault()))}}oQ=new WeakSet,_h=function(V){V.altKey&&this.buffer.push("alt"),V.ctrlKey&&this.buffer.push("ctrl"),V.metaKey&&this.buffer.push("meta"),V.shiftKey&&this.buffer.push("shift"),this.buffer.push(V.key);const l=this.buffer.join("+");return this.buffer.length=0,l};const Gm=class a2{get _colors(){const l=new Map([["CanvasText",null],["Canvas",null]]);return SM(l),ol(this,"_colors",l)}convert(l){const U=dR(l);if(!window.matchMedia("(forced-colors: active)").matches)return U;for(const[d,c]of this._colors)if(c.every((W,s)=>W===U[s]))return a2._colorsMapping.get(d);return U}getHexCode(l){const U=this._colors.get(l);return U?al.makeHexColor(...U):l}};ml(Gm,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));let yM=Gm;const ZR=class OR{constructor(l,U,d,c,W,s,Q,R,m){h(this,O0),h(this,zQ),h(this,LQ),h(this,g0),h(this,kQ),h(this,IQ),h(this,DQ),h(this,uV),h(this,BV),h(this,oV),h(this,yV),h(this,zV),h(this,RU),h(this,Ed),h(this,jQ),h(this,OQ),h(this,LV),h(this,KQ),h(this,nF),h(this,kV),h(this,fU,null),h(this,tU,new Map),h(this,iU,new Map),h(this,w0,null),h(this,iZ,null),h(this,FF,null),h(this,Rd,new oM),h(this,C0,0),h(this,cF,new Set),h(this,kd,null),h(this,NZ,null),h(this,WF,new Set),h(this,VV,!1),h(this,aV,null),h(this,Id,null),h(this,x0,null),h(this,Wt,!1),h(this,hd,null),h(this,yQ,new uM),h(this,Vt,!1),h(this,nV,!1),h(this,VF,null),h(this,sV,null),h(this,r0,null),h(this,NU,ul.NONE),h(this,Il,new Set),h(this,RZ,null),h(this,aF,null),h(this,j0,null),h(this,QV,this.blur.bind(this)),h(this,iV,this.focus.bind(this)),h(this,NV,this.copy.bind(this)),h(this,RV,this.cut.bind(this)),h(this,hV,this.paste.bind(this)),h(this,bV,this.keydown.bind(this)),h(this,mV,this.keyup.bind(this)),h(this,eV,this.onEditingAction.bind(this)),h(this,MV,this.onPageChanging.bind(this)),h(this,GV,this.onScaleChanging.bind(this)),h(this,JV,G(this,LQ,$h).bind(this)),h(this,TV,this.onRotationChanging.bind(this)),h(this,SV,{isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1,hasSelectedText:!1}),h(this,at,[0,0]),h(this,Dd,null),h(this,hZ,null),h(this,XV,null),J(this,hZ,l),J(this,XV,U),J(this,w0,d),this._eventBus=c,this._eventBus._on("editingaction",F(this,eV)),this._eventBus._on("pagechanging",F(this,MV)),this._eventBus._on("scalechanging",F(this,GV)),this._eventBus._on("rotationchanging",F(this,TV)),G(this,kQ,lb).call(this),G(this,BV,wQ).call(this),J(this,iZ,W.annotationStorage),J(this,aV,W.filterFactory),J(this,aF,s),J(this,x0,Q||null),J(this,VV,R),J(this,r0,m||null),this.viewParameters={realScale:t0.PDF_TO_CSS_UNITS,rotation:0},this.isShiftKeyDown=!1}static get _keyboardManager(){const l=OR.prototype,U=s=>F(s,hZ).contains(document.activeElement)&&document.activeElement.tagName!=="BUTTON"&&s.hasSomethingToControl(),d=(s,{target:Q})=>{if(Q instanceof HTMLInputElement){const{type:R}=Q;return R!=="text"&&R!=="number"}return!0},c=this.TRANSLATE_SMALL,W=this.TRANSLATE_BIG;return ol(this,"_keyboardManager",new nW([[["ctrl+a","mac+meta+a"],l.selectAll,{checker:d}],[["ctrl+z","mac+meta+z"],l.undo,{checker:d}],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],l.redo,{checker:d}],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],l.delete,{checker:d}],[["Enter","mac+Enter"],l.addNewEditorFromKeyboard,{checker:(s,{target:Q})=>!(Q instanceof HTMLButtonElement)&&F(s,hZ).contains(Q)&&!s.isEnterHandled}],[[" ","mac+ "],l.addNewEditorFromKeyboard,{checker:(s,{target:Q})=>!(Q instanceof HTMLButtonElement)&&F(s,hZ).contains(document.activeElement)}],[["Escape","mac+Escape"],l.unselectAll],[["ArrowLeft","mac+ArrowLeft"],l.translateSelectedEditors,{args:[-c,0],checker:U}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],l.translateSelectedEditors,{args:[-W,0],checker:U}],[["ArrowRight","mac+ArrowRight"],l.translateSelectedEditors,{args:[c,0],checker:U}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],l.translateSelectedEditors,{args:[W,0],checker:U}],[["ArrowUp","mac+ArrowUp"],l.translateSelectedEditors,{args:[0,-c],checker:U}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],l.translateSelectedEditors,{args:[0,-W],checker:U}],[["ArrowDown","mac+ArrowDown"],l.translateSelectedEditors,{args:[0,c],checker:U}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],l.translateSelectedEditors,{args:[0,W],checker:U}]]))}destroy(){var l,U;G(this,oV,CQ).call(this),G(this,uV,EQ).call(this),this._eventBus._off("editingaction",F(this,eV)),this._eventBus._off("pagechanging",F(this,MV)),this._eventBus._off("scalechanging",F(this,GV)),this._eventBus._off("rotationchanging",F(this,TV));for(const d of F(this,iU).values())d.destroy();F(this,iU).clear(),F(this,tU).clear(),F(this,WF).clear(),J(this,fU,null),F(this,Il).clear(),F(this,Rd).destroy(),(l=F(this,w0))==null||l.destroy(),(U=F(this,hd))==null||U.hide(),J(this,hd,null),F(this,Id)&&(clearTimeout(F(this,Id)),J(this,Id,null)),F(this,Dd)&&(clearTimeout(F(this,Dd)),J(this,Dd,null)),G(this,IQ,Ub).call(this)}async mlGuess(l){var U;return((U=F(this,r0))==null?void 0:U.guess(l))||null}get hasMLManager(){return!!F(this,r0)}get hcmFilter(){return ol(this,"hcmFilter",F(this,aF)?F(this,aV).addHCMFilter(F(this,aF).foreground,F(this,aF).background):"none")}get direction(){return ol(this,"direction",getComputedStyle(F(this,hZ)).direction)}get highlightColors(){return ol(this,"highlightColors",F(this,x0)?new Map(F(this,x0).split(",").map(l=>l.split("=").map(U=>U.trim()))):null)}get highlightColorNames(){return ol(this,"highlightColorNames",this.highlightColors?new Map(Array.from(this.highlightColors,l=>l.reverse())):null)}setMainHighlightColorPicker(l){J(this,sV,l)}editAltText(l){var U;(U=F(this,w0))==null||U.editAltText(this,l)}onPageChanging({pageNumber:l}){J(this,C0,l-1)}focusMainContainer(){F(this,hZ).focus()}findParent(l,U){for(const d of F(this,iU).values()){const{x:c,y:W,width:s,height:Q}=d.div.getBoundingClientRect();if(l>=c&&l<=c+s&&U>=W&&U<=W+Q)return d}return null}disableUserSelect(l=!1){F(this,XV).classList.toggle("noUserSelect",l)}addShouldRescale(l){F(this,WF).add(l)}removeShouldRescale(l){F(this,WF).delete(l)}onScaleChanging({scale:l}){this.commitOrRemove(),this.viewParameters.realScale=l*t0.PDF_TO_CSS_UNITS;for(const U of F(this,WF))U.onScaleChanging()}onRotationChanging({pagesRotation:l}){this.commitOrRemove(),this.viewParameters.rotation=l}highlightSelection(l=""){const U=document.getSelection();if(!U||U.isCollapsed)return;const{anchorNode:d,anchorOffset:c,focusNode:W,focusOffset:s}=U,Q=U.toString(),R=G(this,O0,YV).call(this,U).closest(".textLayer"),m=this.getSelectionBoxes(R);if(m){U.empty(),F(this,NU)===ul.NONE&&(this._eventBus.dispatch("showannotationeditorui",{source:this,mode:ul.HIGHLIGHT}),this.showAllEditors("highlight",!0,!0));for(const e of F(this,iU).values())if(e.hasTextLayer(R)){e.createAndAddNewEditor({x:0,y:0},!1,{methodOfCreation:l,boxes:m,anchorNode:d,anchorOffset:c,focusNode:W,focusOffset:s,text:Q});break}}}addToAnnotationStorage(l){!l.isEmpty()&&F(this,iZ)&&!F(this,iZ).has(l.id)&&F(this,iZ).setValue(l.id,l)}blur(){if(this.isShiftKeyDown=!1,F(this,Wt)&&(J(this,Wt,!1),G(this,g0,pV).call(this,"main_toolbar")),!this.hasSelection)return;const{activeElement:l}=document;for(const U of F(this,Il))if(U.div.contains(l)){J(this,VF,[U,l]),U._focusEventsAllowed=!1;break}}focus(){if(!F(this,VF))return;const[l,U]=F(this,VF);J(this,VF,null),U.addEventListener("focusin",()=>{l._focusEventsAllowed=!0},{once:!0}),U.focus()}addEditListeners(){G(this,BV,wQ).call(this),G(this,yV,xQ).call(this)}removeEditListeners(){G(this,oV,CQ).call(this),G(this,zV,rQ).call(this)}copy(l){var U;if(l.preventDefault(),(U=F(this,fU))==null||U.commitOrRemove(),!this.hasSelection)return;const d=[];for(const c of F(this,Il)){const W=c.serialize(!0);W&&d.push(W)}d.length!==0&&l.clipboardData.setData("application/pdfjs",JSON.stringify(d))}cut(l){this.copy(l),this.delete()}paste(l){l.preventDefault();const{clipboardData:U}=l;for(const W of U.items)for(const s of F(this,NZ))if(s.isHandlingMimeForPasting(W.type)){s.paste(W,this.currentLayer);return}let d=U.getData("application/pdfjs");if(!d)return;try{d=JSON.parse(d)}catch(W){Jl(`paste: "${W.message}".`);return}if(!Array.isArray(d))return;this.unselectAll();const c=this.currentLayer;try{const W=[];for(const R of d){const m=c.deserialize(R);if(!m)return;W.push(m)}const s=()=>{for(const R of W)G(this,LV,gQ).call(this,R);G(this,kV,HQ).call(this,W)},Q=()=>{for(const R of W)R.remove()};this.addCommands({cmd:s,undo:Q,mustExec:!0})}catch(W){Jl(`paste: "${W.message}".`)}}keydown(l){!this.isShiftKeyDown&&l.key==="Shift"&&(this.isShiftKeyDown=!0),F(this,NU)!==ul.NONE&&!this.isEditorHandlingKeyboard&&OR._keyboardManager.exec(this,l)}keyup(l){this.isShiftKeyDown&&l.key==="Shift"&&(this.isShiftKeyDown=!1,F(this,Wt)&&(J(this,Wt,!1),G(this,g0,pV).call(this,"main_toolbar")))}onEditingAction({name:l}){switch(l){case"undo":case"redo":case"delete":case"selectAll":this[l]();break;case"highlightSelection":this.highlightSelection("context_menu");break}}setEditingState(l){l?(G(this,DQ,db).call(this),G(this,yV,xQ).call(this),G(this,RU,uU).call(this,{isEditing:F(this,NU)!==ul.NONE,isEmpty:G(this,nF,K0).call(this),hasSomethingToUndo:F(this,Rd).hasSomethingToUndo(),hasSomethingToRedo:F(this,Rd).hasSomethingToRedo(),hasSelectedEditor:!1})):(G(this,uV,EQ).call(this),G(this,zV,rQ).call(this),G(this,RU,uU).call(this,{isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(l){if(!F(this,NZ)){J(this,NZ,l);for(const U of F(this,NZ))G(this,Ed,bZ).call(this,U.defaultPropertiesToUpdate)}}getId(){return F(this,yQ).id}get currentLayer(){return F(this,iU).get(F(this,C0))}getLayer(l){return F(this,iU).get(l)}get currentPageIndex(){return F(this,C0)}addLayer(l){F(this,iU).set(l.pageIndex,l),F(this,Vt)?l.enable():l.disable()}removeLayer(l){F(this,iU).delete(l.pageIndex)}updateMode(l,U=null,d=!1){if(F(this,NU)!==l){if(J(this,NU,l),l===ul.NONE){this.setEditingState(!1),G(this,OQ,tb).call(this);return}this.setEditingState(!0),G(this,jQ,Zb).call(this),this.unselectAll();for(const c of F(this,iU).values())c.updateMode(l);if(!U&&d){this.addNewEditorFromKeyboard();return}if(U){for(const c of F(this,tU).values())if(c.annotationElementId===U){this.setSelected(c),c.enterInEditMode();break}}}}addNewEditorFromKeyboard(){this.currentLayer.canCreateNewEmptyEditor()&&this.currentLayer.addNewEditor()}updateToolbar(l){l!==F(this,NU)&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:l})}updateParams(l,U){var d;if(F(this,NZ)){switch(l){case bl.CREATE:this.currentLayer.addNewEditor();return;case bl.HIGHLIGHT_DEFAULT_COLOR:(d=F(this,sV))==null||d.updateColor(U);break;case bl.HIGHLIGHT_SHOW_ALL:this._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:{type:"highlight",action:"toggle_visibility"}}}),(F(this,j0)||J(this,j0,new Map)).set(l,U),this.showAllEditors("highlight",U);break}for(const c of F(this,Il))c.updateParams(l,U);for(const c of F(this,NZ))c.updateDefaultParams(l,U)}}showAllEditors(l,U,d=!1){var c;for(const W of F(this,tU).values())W.editorType===l&&W.show(U);(((c=F(this,j0))==null?void 0:c.get(bl.HIGHLIGHT_SHOW_ALL))??!0)!==U&&G(this,Ed,bZ).call(this,[[bl.HIGHLIGHT_SHOW_ALL,U]])}enableWaiting(l=!1){if(F(this,nV)!==l){J(this,nV,l);for(const U of F(this,iU).values())l?U.disableClick():U.enableClick(),U.div.classList.toggle("waiting",l)}}getEditors(l){const U=[];for(const d of F(this,tU).values())d.pageIndex===l&&U.push(d);return U}getEditor(l){return F(this,tU).get(l)}addEditor(l){F(this,tU).set(l.id,l)}removeEditor(l){var U;l.div.contains(document.activeElement)&&(F(this,Id)&&clearTimeout(F(this,Id)),J(this,Id,setTimeout(()=>{this.focusMainContainer(),J(this,Id,null)},0))),F(this,tU).delete(l.id),this.unselect(l),(!l.annotationElementId||!F(this,cF).has(l.annotationElementId))&&((U=F(this,iZ))==null||U.remove(l.id))}addDeletedAnnotationElement(l){F(this,cF).add(l.annotationElementId),this.addChangedExistingAnnotation(l),l.deleted=!0}isDeletedAnnotationElement(l){return F(this,cF).has(l)}removeDeletedAnnotationElement(l){F(this,cF).delete(l.annotationElementId),this.removeChangedExistingAnnotation(l),l.deleted=!1}setActiveEditor(l){F(this,fU)!==l&&(J(this,fU,l),l&&G(this,Ed,bZ).call(this,l.propertiesToUpdate))}updateUI(l){F(this,KQ,Fb)===l&&G(this,Ed,bZ).call(this,l.propertiesToUpdate)}toggleSelected(l){if(F(this,Il).has(l)){F(this,Il).delete(l),l.unselect(),G(this,RU,uU).call(this,{hasSelectedEditor:this.hasSelection});return}F(this,Il).add(l),l.select(),G(this,Ed,bZ).call(this,l.propertiesToUpdate),G(this,RU,uU).call(this,{hasSelectedEditor:!0})}setSelected(l){for(const U of F(this,Il))U!==l&&U.unselect();F(this,Il).clear(),F(this,Il).add(l),l.select(),G(this,Ed,bZ).call(this,l.propertiesToUpdate),G(this,RU,uU).call(this,{hasSelectedEditor:!0})}isSelected(l){return F(this,Il).has(l)}get firstSelectedEditor(){return F(this,Il).values().next().value}unselect(l){l.unselect(),F(this,Il).delete(l),G(this,RU,uU).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return F(this,Il).size!==0}get isEnterHandled(){return F(this,Il).size===1&&this.firstSelectedEditor.isEnterHandled}undo(){F(this,Rd).undo(),G(this,RU,uU).call(this,{hasSomethingToUndo:F(this,Rd).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:G(this,nF,K0).call(this)})}redo(){F(this,Rd).redo(),G(this,RU,uU).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:F(this,Rd).hasSomethingToRedo(),isEmpty:G(this,nF,K0).call(this)})}addCommands(l){F(this,Rd).add(l),G(this,RU,uU).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:G(this,nF,K0).call(this)})}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const l=[...F(this,Il)],U=()=>{for(const c of l)c.remove()},d=()=>{for(const c of l)G(this,LV,gQ).call(this,c)};this.addCommands({cmd:U,undo:d,mustExec:!0})}commitOrRemove(){var l;(l=F(this,fU))==null||l.commitOrRemove()}hasSomethingToControl(){return F(this,fU)||this.hasSelection}selectAll(){for(const l of F(this,Il))l.commit();G(this,kV,HQ).call(this,F(this,tU).values())}unselectAll(){if(!(F(this,fU)&&(F(this,fU).commitOrRemove(),F(this,NU)!==ul.NONE))&&this.hasSelection){for(const l of F(this,Il))l.unselect();F(this,Il).clear(),G(this,RU,uU).call(this,{hasSelectedEditor:!1})}}translateSelectedEditors(l,U,d=!1){if(d||this.commitOrRemove(),!this.hasSelection)return;F(this,at)[0]+=l,F(this,at)[1]+=U;const[c,W]=F(this,at),s=[...F(this,Il)];F(this,Dd)&&clearTimeout(F(this,Dd)),J(this,Dd,setTimeout(()=>{J(this,Dd,null),F(this,at)[0]=F(this,at)[1]=0,this.addCommands({cmd:()=>{for(const R of s)F(this,tU).has(R.id)&&R.translateInPage(c,W)},undo:()=>{for(const R of s)F(this,tU).has(R.id)&&R.translateInPage(-c,-W)},mustExec:!1})},1e3));for(const R of s)R.translateInPage(l,U)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),J(this,kd,new Map);for(const l of F(this,Il))F(this,kd).set(l,{savedX:l.x,savedY:l.y,savedPageIndex:l.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!F(this,kd))return!1;this.disableUserSelect(!1);const l=F(this,kd);J(this,kd,null);let U=!1;for(const[{x:c,y:W,pageIndex:s},Q]of l)Q.newX=c,Q.newY=W,Q.newPageIndex=s,U||(U=c!==Q.savedX||W!==Q.savedY||s!==Q.savedPageIndex);if(!U)return!1;const d=(c,W,s,Q)=>{if(F(this,tU).has(c.id)){const R=F(this,iU).get(Q);R?c._setParentAndPosition(R,W,s):(c.pageIndex=Q,c.x=W,c.y=s)}};return this.addCommands({cmd:()=>{for(const[c,{newX:W,newY:s,newPageIndex:Q}]of l)d(c,W,s,Q)},undo:()=>{for(const[c,{savedX:W,savedY:s,savedPageIndex:Q}]of l)d(c,W,s,Q)},mustExec:!0}),!0}dragSelectedEditors(l,U){if(F(this,kd))for(const d of F(this,kd).keys())d.drag(l,U)}rebuild(l){if(l.parent===null){const U=this.getLayer(l.pageIndex);U?(U.changeParent(l),U.addOrRebuild(l)):(this.addEditor(l),this.addToAnnotationStorage(l),l.rebuild())}else l.parent.addOrRebuild(l)}get isEditorHandlingKeyboard(){var l;return((l=this.getActive())==null?void 0:l.shouldGetKeyboardEvents())||F(this,Il).size===1&&this.firstSelectedEditor.shouldGetKeyboardEvents()}isActive(l){return F(this,fU)===l}getActive(){return F(this,fU)}getMode(){return F(this,NU)}get imageManager(){return ol(this,"imageManager",new BM)}getSelectionBoxes(l){if(!l)return null;const U=document.getSelection();for(let m=0,e=U.rangeCount;m<e;m++)if(!l.contains(U.getRangeAt(m).commonAncestorContainer))return null;const{x:d,y:c,width:W,height:s}=l.getBoundingClientRect();let Q;switch(l.getAttribute("data-main-rotation")){case"90":Q=(m,e,S,Y)=>({x:(e-c)/s,y:1-(m+S-d)/W,width:Y/s,height:S/W});break;case"180":Q=(m,e,S,Y)=>({x:1-(m+S-d)/W,y:1-(e+Y-c)/s,width:S/W,height:Y/s});break;case"270":Q=(m,e,S,Y)=>({x:1-(e+Y-c)/s,y:(m-d)/W,width:Y/s,height:S/W});break;default:Q=(m,e,S,Y)=>({x:(m-d)/W,y:(e-c)/s,width:S/W,height:Y/s});break}const R=[];for(let m=0,e=U.rangeCount;m<e;m++){const S=U.getRangeAt(m);if(!S.collapsed)for(const{x:Y,y:p,width:B,height:z}of S.getClientRects())B===0||z===0||R.push(Q(Y,p,B,z))}return R.length===0?null:R}addChangedExistingAnnotation({annotationElementId:l,id:U}){(F(this,FF)||J(this,FF,new Map)).set(l,U)}removeChangedExistingAnnotation({annotationElementId:l}){var U;(U=F(this,FF))==null||U.delete(l)}renderAnnotationElement(l){var U;const d=(U=F(this,FF))==null?void 0:U.get(l.data.id);if(!d)return;const c=F(this,iZ).getRawValue(d);c&&(F(this,NU)===ul.NONE&&!c.hasBeenModified||c.renderAnnotationElement(l))}};fU=new WeakMap,tU=new WeakMap,iU=new WeakMap,w0=new WeakMap,iZ=new WeakMap,FF=new WeakMap,Rd=new WeakMap,C0=new WeakMap,cF=new WeakMap,kd=new WeakMap,NZ=new WeakMap,WF=new WeakMap,VV=new WeakMap,aV=new WeakMap,Id=new WeakMap,x0=new WeakMap,Wt=new WeakMap,hd=new WeakMap,yQ=new WeakMap,Vt=new WeakMap,nV=new WeakMap,VF=new WeakMap,sV=new WeakMap,r0=new WeakMap,NU=new WeakMap,Il=new WeakMap,RZ=new WeakMap,aF=new WeakMap,j0=new WeakMap,QV=new WeakMap,iV=new WeakMap,NV=new WeakMap,RV=new WeakMap,hV=new WeakMap,bV=new WeakMap,mV=new WeakMap,eV=new WeakMap,MV=new WeakMap,GV=new WeakMap,JV=new WeakMap,TV=new WeakMap,SV=new WeakMap,at=new WeakMap,Dd=new WeakMap,hZ=new WeakMap,XV=new WeakMap,O0=new WeakSet,YV=function({anchorNode:V}){return V.nodeType===Node.TEXT_NODE?V.parentElement:V},zQ=new WeakSet,qh=function(){const V=document.getSelection();if(!V||V.isCollapsed)return;const l=G(this,O0,YV).call(this,V).closest(".textLayer"),U=this.getSelectionBoxes(l);U&&(F(this,hd)||J(this,hd,new YM(this)),F(this,hd).show(l,U,this.direction==="ltr"))},LQ=new WeakSet,$h=function(){var V,l,U;const d=document.getSelection();if(!d||d.isCollapsed){F(this,RZ)&&((V=F(this,hd))==null||V.hide(),J(this,RZ,null),G(this,RU,uU).call(this,{hasSelectedText:!1}));return}const{anchorNode:c}=d;if(c!==F(this,RZ)){if(!G(this,O0,YV).call(this,d).closest(".textLayer")){F(this,RZ)&&((l=F(this,hd))==null||l.hide(),J(this,RZ,null),G(this,RU,uU).call(this,{hasSelectedText:!1}));return}if((U=F(this,hd))==null||U.hide(),J(this,RZ,c),G(this,RU,uU).call(this,{hasSelectedText:!0}),!(F(this,NU)!==ul.HIGHLIGHT&&F(this,NU)!==ul.NONE)&&(F(this,NU)===ul.HIGHLIGHT&&this.showAllEditors("highlight",!0,!0),J(this,Wt,this.isShiftKeyDown),!this.isShiftKeyDown)){const W=s=>{s.type==="pointerup"&&s.button!==0||(window.removeEventListener("pointerup",W),window.removeEventListener("blur",W),s.type==="pointerup"&&G(this,g0,pV).call(this,"main_toolbar"))};window.addEventListener("pointerup",W),window.addEventListener("blur",W)}}},g0=new WeakSet,pV=function(V=""){F(this,NU)===ul.HIGHLIGHT?this.highlightSelection(V):F(this,VV)&&G(this,zQ,qh).call(this)},kQ=new WeakSet,lb=function(){document.addEventListener("selectionchange",F(this,JV))},IQ=new WeakSet,Ub=function(){document.removeEventListener("selectionchange",F(this,JV))},DQ=new WeakSet,db=function(){window.addEventListener("focus",F(this,iV)),window.addEventListener("blur",F(this,QV))},uV=new WeakSet,EQ=function(){window.removeEventListener("focus",F(this,iV)),window.removeEventListener("blur",F(this,QV))},BV=new WeakSet,wQ=function(){window.addEventListener("keydown",F(this,bV)),window.addEventListener("keyup",F(this,mV))},oV=new WeakSet,CQ=function(){window.removeEventListener("keydown",F(this,bV)),window.removeEventListener("keyup",F(this,mV))},yV=new WeakSet,xQ=function(){document.addEventListener("copy",F(this,NV)),document.addEventListener("cut",F(this,RV)),document.addEventListener("paste",F(this,hV))},zV=new WeakSet,rQ=function(){document.removeEventListener("copy",F(this,NV)),document.removeEventListener("cut",F(this,RV)),document.removeEventListener("paste",F(this,hV))},RU=new WeakSet,uU=function(V){Object.entries(V).some(([l,U])=>F(this,SV)[l]!==U)&&(this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(F(this,SV),V)}),F(this,NU)===ul.HIGHLIGHT&&V.hasSelectedEditor===!1&&G(this,Ed,bZ).call(this,[[bl.HIGHLIGHT_FREE,!0]]))},Ed=new WeakSet,bZ=function(V){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:V})},jQ=new WeakSet,Zb=function(){if(!F(this,Vt)){J(this,Vt,!0);for(const V of F(this,iU).values())V.enable();for(const V of F(this,tU).values())V.enable()}},OQ=new WeakSet,tb=function(){if(this.unselectAll(),F(this,Vt)){J(this,Vt,!1);for(const V of F(this,iU).values())V.disable();for(const V of F(this,tU).values())V.disable()}},LV=new WeakSet,gQ=function(V){const l=F(this,iU).get(V.pageIndex);l?l.addOrRebuild(V):(this.addEditor(V),this.addToAnnotationStorage(V))},KQ=new WeakSet,Fb=function(){let V=null;for(V of F(this,Il));return V},nF=new WeakSet,K0=function(){if(F(this,tU).size===0)return!0;if(F(this,tU).size===1)for(const V of F(this,tU).values())return V.isEmpty();return!1},kV=new WeakSet,HQ=function(V){for(const l of F(this,Il))l.unselect();F(this,Il).clear();for(const l of V)l.isEmpty()||(F(this,Il).add(l),l.select());G(this,RU,uU).call(this,{hasSelectedEditor:this.hasSelection})},ml(ZR,"TRANSLATE_SMALL",1),ml(ZR,"TRANSLATE_BIG",10);let sW=ZR;const $n=class Ts{constructor(l){h(this,IV),h(this,mZ,""),h(this,eZ,!1),h(this,bd,null),h(this,MZ,null),h(this,md,null),h(this,H0,!1),h(this,GZ,null),J(this,GZ,l)}static initialize(l){Ts._l10nPromise||(Ts._l10nPromise=l)}async render(){const l=J(this,bd,document.createElement("button"));l.className="altText";const U=await Ts._l10nPromise.get("pdfjs-editor-alt-text-button-label");l.textContent=U,l.setAttribute("aria-label",U),l.tabIndex="0",l.addEventListener("contextmenu",wU),l.addEventListener("pointerdown",c=>c.stopPropagation());const d=c=>{c.preventDefault(),F(this,GZ)._uiManager.editAltText(F(this,GZ))};return l.addEventListener("click",d,{capture:!0}),l.addEventListener("keydown",c=>{c.target===l&&c.key==="Enter"&&(J(this,H0,!0),d(c))}),await G(this,IV,vQ).call(this),l}finish(){F(this,bd)&&(F(this,bd).focus({focusVisible:F(this,H0)}),J(this,H0,!1))}isEmpty(){return!F(this,mZ)&&!F(this,eZ)}get data(){return{altText:F(this,mZ),decorative:F(this,eZ)}}set data({altText:l,decorative:U}){F(this,mZ)===l&&F(this,eZ)===U||(J(this,mZ,l),J(this,eZ,U),G(this,IV,vQ).call(this))}toggle(l=!1){F(this,bd)&&(!l&&F(this,md)&&(clearTimeout(F(this,md)),J(this,md,null)),F(this,bd).disabled=!l)}destroy(){var l;(l=F(this,bd))==null||l.remove(),J(this,bd,null),J(this,MZ,null)}};mZ=new WeakMap,eZ=new WeakMap,bd=new WeakMap,MZ=new WeakMap,md=new WeakMap,H0=new WeakMap,GZ=new WeakMap,IV=new WeakSet,vQ=async function(){var V;const l=F(this,bd);if(!l)return;if(!F(this,mZ)&&!F(this,eZ)){l.classList.remove("done"),(V=F(this,MZ))==null||V.remove();return}l.classList.add("done"),$n._l10nPromise.get("pdfjs-editor-alt-text-edit-button-label").then(c=>{l.setAttribute("aria-label",c)});let U=F(this,MZ);if(!U){J(this,MZ,U=document.createElement("span")),U.className="tooltip",U.setAttribute("role","tooltip");const c=U.id=`alt-text-tooltip-${F(this,GZ).id}`;l.setAttribute("aria-describedby",c);const W=100;l.addEventListener("mouseenter",()=>{J(this,md,setTimeout(()=>{J(this,md,null),F(this,MZ).classList.add("show"),F(this,GZ)._reportTelemetry({action:"alt_text_tooltip"})},W))}),l.addEventListener("mouseleave",()=>{var s;F(this,md)&&(clearTimeout(F(this,md)),J(this,md,null)),(s=F(this,MZ))==null||s.classList.remove("show")})}U.innerText=F(this,eZ)?await $n._l10nPromise.get("pdfjs-editor-alt-text-decorative-tooltip"):F(this,mZ),U.parentNode||l.append(U);const d=F(this,GZ).getImageForAltText();d==null||d.setAttribute("aria-describedby",U.id)},ml($n,"_l10nPromise",null);let Jm=$n;const lZ=class sU{constructor(l){h(this,CV),h(this,rV),h(this,qQ),h(this,$Q),h(this,jV),h(this,OV),h(this,gV),h(this,Zi),h(this,ti),h(this,Fi),h(this,ci),h(this,KV),h(this,RF),h(this,ed,null),h(this,kU,null),h(this,v0,!1),h(this,sF,!1),h(this,hU,null),h(this,QF,null),h(this,P0,this.focusin.bind(this)),h(this,f0,this.focusout.bind(this)),h(this,BU,null),h(this,DV,""),h(this,iF,!1),h(this,wd,null),h(this,EV,!1),h(this,NF,!1),h(this,JZ,!1),h(this,Cd,null),h(this,A0,0),h(this,_0,0),h(this,AU,null),ml(this,"_initialOptions",Object.create(null)),ml(this,"_isVisible",!0),ml(this,"_uiManager",null),ml(this,"_focusEventsAllowed",!0),ml(this,"_l10nPromise",null),h(this,wV,!1),h(this,PQ,sU._zIndex++),this.constructor===sU&&Dl("Cannot initialize AnnotationEditor."),this.parent=l.parent,this.id=l.id,this.width=this.height=null,this.pageIndex=l.parent.pageIndex,this.name=l.name,this.div=null,this._uiManager=l.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=l.isCentered,this._structTreeParentId=null;const{rotation:U,rawDims:{pageWidth:d,pageHeight:c,pageX:W,pageY:s}}=this.parent.viewport;this.rotation=U,this.pageRotation=(360+U-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[d,c],this.pageTranslation=[W,s];const[Q,R]=this.parentDimensions;this.x=l.x/Q,this.y=l.y/R,this.isAttachedToDOM=!1,this.deleted=!1}static get _resizerKeyboardManager(){const l=sU.prototype._resizeWithKeyboard,U=sW.TRANSLATE_SMALL,d=sW.TRANSLATE_BIG;return ol(this,"_resizerKeyboardManager",new nW([[["ArrowLeft","mac+ArrowLeft"],l,{args:[-U,0]}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],l,{args:[-d,0]}],[["ArrowRight","mac+ArrowRight"],l,{args:[U,0]}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],l,{args:[d,0]}],[["ArrowUp","mac+ArrowUp"],l,{args:[0,-U]}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],l,{args:[0,-d]}],[["ArrowDown","mac+ArrowDown"],l,{args:[0,U]}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],l,{args:[0,d]}],[["Escape","mac+Escape"],sU.prototype._stopResizingWithKeyboard]]))}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return ol(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(l){const U=new zM({id:l.parent.getNextId(),parent:l.parent,uiManager:l._uiManager});U.annotationElementId=l.annotationElementId,U.deleted=!0,U._uiManager.addToAnnotationStorage(U)}static initialize(l,U,d){if(sU._l10nPromise||(sU._l10nPromise=new Map(["pdfjs-editor-alt-text-button-label","pdfjs-editor-alt-text-edit-button-label","pdfjs-editor-alt-text-decorative-tooltip","pdfjs-editor-resizer-label-topLeft","pdfjs-editor-resizer-label-topMiddle","pdfjs-editor-resizer-label-topRight","pdfjs-editor-resizer-label-middleRight","pdfjs-editor-resizer-label-bottomRight","pdfjs-editor-resizer-label-bottomMiddle","pdfjs-editor-resizer-label-bottomLeft","pdfjs-editor-resizer-label-middleLeft"].map(W=>[W,l.get(W.replaceAll(/([A-Z])/g,s=>`-${s.toLowerCase()}`))]))),d!=null&&d.strings)for(const W of d.strings)sU._l10nPromise.set(W,l.get(W));if(sU._borderLineWidth!==-1)return;const c=getComputedStyle(document.documentElement);sU._borderLineWidth=parseFloat(c.getPropertyValue("--outline-width"))||0}static updateDefaultParams(l,U){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(l){return!1}static paste(l,U){Dl("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return F(this,wV)}set _isDraggable(l){var U;J(this,wV,l),(U=this.div)==null||U.classList.toggle("draggable",l)}get isEnterHandled(){return!0}center(){const[l,U]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*U/(l*2),this.y+=this.width*l/(U*2);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*U/(l*2),this.y-=this.width*l/(U*2);break;default:this.x-=this.width/2,this.y-=this.height/2;break}this.fixAndSetPosition()}addCommands(l){this._uiManager.addCommands(l)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=F(this,PQ)}setParent(l){l!==null?(this.pageIndex=l.pageIndex,this.pageDimensions=l.pageDimensions):G(this,RF,q0).call(this),this.parent=l}focusin(l){this._focusEventsAllowed&&(F(this,iF)?J(this,iF,!1):this.parent.setSelected(this))}focusout(l){var U;if(!this._focusEventsAllowed||!this.isAttachedToDOM)return;const d=l.relatedTarget;d!=null&&d.closest(`#${this.id}`)||(l.preventDefault(),(U=this.parent)!=null&&U.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(l,U,d,c){const[W,s]=this.parentDimensions;[d,c]=this.screenToPageTranslation(d,c),this.x=(l+d)/W,this.y=(U+c)/s,this.fixAndSetPosition()}translate(l,U){G(this,CV,fQ).call(this,this.parentDimensions,l,U)}translateInPage(l,U){F(this,wd)||J(this,wd,[this.x,this.y]),G(this,CV,fQ).call(this,this.pageDimensions,l,U),this.div.scrollIntoView({block:"nearest"})}drag(l,U){F(this,wd)||J(this,wd,[this.x,this.y]);const[d,c]=this.parentDimensions;if(this.x+=l/d,this.y+=U/c,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:m,y:e}=this.div.getBoundingClientRect();this.parent.findNewParent(this,m,e)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:W,y:s}=this;const[Q,R]=this.getBaseTranslation();W+=Q,s+=R,this.div.style.left=`${(100*W).toFixed(2)}%`,this.div.style.top=`${(100*s).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}get _hasBeenMoved(){return!!F(this,wd)&&(F(this,wd)[0]!==this.x||F(this,wd)[1]!==this.y)}getBaseTranslation(){const[l,U]=this.parentDimensions,{_borderLineWidth:d}=sU,c=d/l,W=d/U;switch(this.rotation){case 90:return[-c,W];case 180:return[c,W];case 270:return[c,-W];default:return[-c,-W]}}get _mustFixPosition(){return!0}fixAndSetPosition(l=this.rotation){const[U,d]=this.pageDimensions;let{x:c,y:W,width:s,height:Q}=this;if(s*=U,Q*=d,c*=U,W*=d,this._mustFixPosition)switch(l){case 0:c=Math.max(0,Math.min(U-s,c)),W=Math.max(0,Math.min(d-Q,W));break;case 90:c=Math.max(0,Math.min(U-Q,c)),W=Math.min(d,Math.max(s,W));break;case 180:c=Math.min(U,Math.max(s,c)),W=Math.min(d,Math.max(Q,W));break;case 270:c=Math.min(U,Math.max(Q,c)),W=Math.max(0,Math.min(d-s,W));break}this.x=c/=U,this.y=W/=d;const[R,m]=this.getBaseTranslation();c+=R,W+=m;const{style:e}=this.div;e.left=`${(100*c).toFixed(2)}%`,e.top=`${(100*W).toFixed(2)}%`,this.moveInDOM()}screenToPageTranslation(l,U){var d;return G(d=sU,xV,AQ).call(d,l,U,this.parentRotation)}pageTranslationToScreen(l,U){var d;return G(d=sU,xV,AQ).call(d,l,U,360-this.parentRotation)}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:l,pageDimensions:[U,d]}=this,c=U*l,W=d*l;return EU.isCSSRoundSupported?[Math.round(c),Math.round(W)]:[c,W]}setDims(l,U){const[d,c]=this.parentDimensions;this.div.style.width=`${(100*l/d).toFixed(2)}%`,F(this,sF)||(this.div.style.height=`${(100*U/c).toFixed(2)}%`)}fixDims(){const{style:l}=this.div,{height:U,width:d}=l,c=d.endsWith("%"),W=!F(this,sF)&&U.endsWith("%");if(c&&W)return;const[s,Q]=this.parentDimensions;c||(l.width=`${(100*parseFloat(d)/s).toFixed(2)}%`),!F(this,sF)&&!W&&(l.height=`${(100*parseFloat(U)/Q).toFixed(2)}%`)}getInitialTranslation(){return[0,0]}altTextFinish(){var l;(l=F(this,kU))==null||l.finish()}async addEditToolbar(){return F(this,BU)||F(this,NF)?F(this,BU):(J(this,BU,new XM(this)),this.div.append(F(this,BU).render()),F(this,kU)&&F(this,BU).addAltTextButton(await F(this,kU).render()),F(this,BU))}removeEditToolbar(){var l;F(this,BU)&&(F(this,BU).remove(),J(this,BU,null),(l=F(this,kU))==null||l.destroy())}getClientDimensions(){return this.div.getBoundingClientRect()}async addAltTextButton(){F(this,kU)||(Jm.initialize(sU._l10nPromise),J(this,kU,new Jm(this)),await this.addEditToolbar())}get altTextData(){var l;return(l=F(this,kU))==null?void 0:l.data}set altTextData(l){F(this,kU)&&(F(this,kU).data=l)}hasAltText(){var l;return!((l=F(this,kU))!=null&&l.isEmpty())}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.tabIndex=F(this,v0)?-1:0,this._isVisible||this.div.classList.add("hidden"),this.setInForeground(),this.div.addEventListener("focusin",F(this,P0)),this.div.addEventListener("focusout",F(this,f0));const[l,U]=this.parentDimensions;this.parentRotation%180!==0&&(this.div.style.maxWidth=`${(100*U/l).toFixed(2)}%`,this.div.style.maxHeight=`${(100*l/U).toFixed(2)}%`);const[d,c]=this.getInitialTranslation();return this.translate(d,c),qn(this,this.div,["pointerdown"]),this.div}pointerdown(l){const{isMac:U}=EU.platform;if(l.button!==0||l.ctrlKey&&U){l.preventDefault();return}if(J(this,iF,!0),this._isDraggable){G(this,Zi,Vb).call(this,l);return}G(this,gV,di).call(this,l)}moveInDOM(){F(this,Cd)&&clearTimeout(F(this,Cd)),J(this,Cd,setTimeout(()=>{var l;J(this,Cd,null),(l=this.parent)==null||l.moveEditorInDOM(this)},0))}_setParentAndPosition(l,U,d){l.changeParent(this),this.x=U,this.y=d,this.fixAndSetPosition()}getRect(l,U,d=this.rotation){const c=this.parentScale,[W,s]=this.pageDimensions,[Q,R]=this.pageTranslation,m=l/c,e=U/c,S=this.x*W,Y=this.y*s,p=this.width*W,B=this.height*s;switch(d){case 0:return[S+m+Q,s-Y-e-B+R,S+m+p+Q,s-Y-e+R];case 90:return[S+e+Q,s-Y+m+R,S+e+B+Q,s-Y+m+p+R];case 180:return[S-m-p+Q,s-Y+e+R,S-m+Q,s-Y+e+B+R];case 270:return[S-e-B+Q,s-Y-m-p+R,S-e+Q,s-Y-m+R];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(l,U){const[d,c,W,s]=l,Q=W-d,R=s-c;switch(this.rotation){case 0:return[d,U-s,Q,R];case 90:return[d,U-c,R,Q];case 180:return[W,U-c,Q,R];case 270:return[W,U-s,R,Q];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){J(this,NF,!0)}disableEditMode(){J(this,NF,!1)}isInEditMode(){return F(this,NF)}shouldGetKeyboardEvents(){return F(this,JZ)}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var l,U;(l=this.div)==null||l.addEventListener("focusin",F(this,P0)),(U=this.div)==null||U.addEventListener("focusout",F(this,f0))}rotate(l){}serialize(l=!1,U=null){Dl("An editor must be serializable")}static deserialize(l,U,d){const c=new this.prototype.constructor({parent:U,id:U.getNextId(),uiManager:d});c.rotation=l.rotation;const[W,s]=c.pageDimensions,[Q,R,m,e]=c.getRectInCurrentCoords(l.rect,s);return c.x=Q/W,c.y=R/s,c.width=m/W,c.height=e/s,c}get hasBeenModified(){return!!this.annotationElementId&&(this.deleted||this.serialize()!==null)}remove(){if(this.div.removeEventListener("focusin",F(this,P0)),this.div.removeEventListener("focusout",F(this,f0)),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),F(this,Cd)&&(clearTimeout(F(this,Cd)),J(this,Cd,null)),G(this,RF,q0).call(this),this.removeEditToolbar(),F(this,AU)){for(const l of F(this,AU).values())clearTimeout(l);J(this,AU,null)}this.parent=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(G(this,qQ,cb).call(this),F(this,hU).classList.remove("hidden"),qn(this,this.div,["keydown"]))}get toolbarPosition(){return null}keydown(l){if(!this.isResizable||l.target!==this.div||l.key!=="Enter")return;this._uiManager.setSelected(this),J(this,QF,{savedX:this.x,savedY:this.y,savedWidth:this.width,savedHeight:this.height});const U=F(this,hU).children;if(!F(this,ed)){J(this,ed,Array.from(U));const s=G(this,ti,ab).bind(this),Q=G(this,Fi,nb).bind(this);for(const R of F(this,ed)){const m=R.getAttribute("data-resizer-name");R.setAttribute("role","spinbutton"),R.addEventListener("keydown",s),R.addEventListener("blur",Q),R.addEventListener("focus",G(this,ci,sb).bind(this,m)),sU._l10nPromise.get(`pdfjs-editor-resizer-label-${m}`).then(e=>R.setAttribute("aria-label",e))}}const d=F(this,ed)[0];let c=0;for(const s of U){if(s===d)break;c++}const W=(360-this.rotation+this.parentRotation)%360/90*(F(this,ed).length/4);if(W!==c){if(W<c)for(let Q=0;Q<c-W;Q++)F(this,hU).append(F(this,hU).firstChild);else if(W>c)for(let Q=0;Q<W-c;Q++)F(this,hU).firstChild.before(F(this,hU).lastChild);let s=0;for(const Q of U){const R=F(this,ed)[s++].getAttribute("data-resizer-name");sU._l10nPromise.get(`pdfjs-editor-resizer-label-${R}`).then(m=>Q.setAttribute("aria-label",m))}}G(this,KV,Wi).call(this,0),J(this,JZ,!0),F(this,hU).firstChild.focus({focusVisible:!0}),l.preventDefault(),l.stopImmediatePropagation()}_resizeWithKeyboard(l,U){F(this,JZ)&&G(this,OV,Ui).call(this,F(this,DV),{movementX:l,movementY:U})}_stopResizingWithKeyboard(){G(this,RF,q0).call(this),this.div.focus()}select(){var l,U;if(this.makeResizable(),(l=this.div)==null||l.classList.add("selectedEditor"),!F(this,BU)){this.addEditToolbar().then(()=>{var d,c;(d=this.div)!=null&&d.classList.contains("selectedEditor")&&((c=F(this,BU))==null||c.show())});return}(U=F(this,BU))==null||U.show()}unselect(){var l,U,d,c;(l=F(this,hU))==null||l.classList.add("hidden"),(U=this.div)==null||U.classList.remove("selectedEditor"),(d=this.div)!=null&&d.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus({preventScroll:!0}),(c=F(this,BU))==null||c.hide()}updateParams(l,U){}disableEditing(){}enableEditing(){}enterInEditMode(){}getImageForAltText(){return null}get contentDiv(){return this.div}get isEditing(){return F(this,EV)}set isEditing(l){J(this,EV,l),this.parent&&(l?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(l,U){J(this,sF,!0);const d=l/U,{style:c}=this.div;c.aspectRatio=d,c.height="auto"}static get MIN_SIZE(){return 16}static canCreateNewEmptyEditor(){return!0}get telemetryInitialData(){return{action:"added"}}get telemetryFinalData(){return null}_reportTelemetry(l,U=!1){if(U){F(this,AU)||J(this,AU,new Map);const{action:d}=l;let c=F(this,AU).get(d);c&&clearTimeout(c),c=setTimeout(()=>{this._reportTelemetry(l),F(this,AU).delete(d),F(this,AU).size===0&&J(this,AU,null)},sU._telemetryTimeout),F(this,AU).set(d,c);return}l.type||(l.type=this.editorType),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",data:l}})}show(l=this._isVisible){this.div.classList.toggle("hidden",!l),this._isVisible=l}enable(){this.div&&(this.div.tabIndex=0),J(this,v0,!1)}disable(){this.div&&(this.div.tabIndex=-1),J(this,v0,!0)}renderAnnotationElement(l){let U=l.container.querySelector(".annotationContent");if(!U)U=document.createElement("div"),U.classList.add("annotationContent",this.editorType),l.container.prepend(U);else if(U.nodeName==="CANVAS"){const d=U;U=document.createElement("div"),U.classList.add("annotationContent",this.editorType),d.before(U)}return U}resetAnnotationElement(l){const{firstChild:U}=l.container;U.nodeName==="DIV"&&U.classList.contains("annotationContent")&&U.remove()}};ed=new WeakMap,kU=new WeakMap,v0=new WeakMap,sF=new WeakMap,hU=new WeakMap,QF=new WeakMap,P0=new WeakMap,f0=new WeakMap,BU=new WeakMap,DV=new WeakMap,iF=new WeakMap,wd=new WeakMap,EV=new WeakMap,NF=new WeakMap,JZ=new WeakMap,Cd=new WeakMap,A0=new WeakMap,_0=new WeakMap,AU=new WeakMap,wV=new WeakMap,PQ=new WeakMap,CV=new WeakSet,fQ=function([V,l],U,d){[U,d]=this.screenToPageTranslation(U,d),this.x+=U/V,this.y+=d/l,this.fixAndSetPosition()},xV=new WeakSet,AQ=function(V,l,U){switch(U){case 90:return[l,-V];case 180:return[-V,-l];case 270:return[-l,V];default:return[V,l]}},rV=new WeakSet,_Q=function(V){switch(V){case 90:{const[l,U]=this.pageDimensions;return[0,-l/U,U/l,0]}case 180:return[-1,0,0,-1];case 270:{const[l,U]=this.pageDimensions;return[0,l/U,-U/l,0]}default:return[1,0,0,1]}},qQ=new WeakSet,cb=function(){if(F(this,hU))return;J(this,hU,document.createElement("div")),F(this,hU).classList.add("resizers");const V=this._willKeepAspectRatio?["topLeft","topRight","bottomRight","bottomLeft"]:["topLeft","topMiddle","topRight","middleRight","bottomRight","bottomMiddle","bottomLeft","middleLeft"];for(const l of V){const U=document.createElement("div");F(this,hU).append(U),U.classList.add("resizer",l),U.setAttribute("data-resizer-name",l),U.addEventListener("pointerdown",G(this,$Q,Wb).bind(this,l)),U.addEventListener("contextmenu",wU),U.tabIndex=-1}this.div.prepend(F(this,hU))},$Q=new WeakSet,Wb=function(V,l){var U;l.preventDefault();const{isMac:d}=EU.platform;if(l.button!==0||l.ctrlKey&&d)return;(U=F(this,kU))==null||U.toggle(!1);const c=G(this,OV,Ui).bind(this,V),W=this._isDraggable;this._isDraggable=!1;const s={passive:!0,capture:!0};this.parent.togglePointerEvents(!1),window.addEventListener("pointermove",c,s),window.addEventListener("contextmenu",wU);const Q=this.x,R=this.y,m=this.width,e=this.height,S=this.parent.div.style.cursor,Y=this.div.style.cursor;this.div.style.cursor=this.parent.div.style.cursor=window.getComputedStyle(l.target).cursor;const p=()=>{var B;this.parent.togglePointerEvents(!0),(B=F(this,kU))==null||B.toggle(!0),this._isDraggable=W,window.removeEventListener("pointerup",p),window.removeEventListener("blur",p),window.removeEventListener("pointermove",c,s),window.removeEventListener("contextmenu",wU),this.parent.div.style.cursor=S,this.div.style.cursor=Y,G(this,jV,li).call(this,Q,R,m,e)};window.addEventListener("pointerup",p),window.addEventListener("blur",p)},jV=new WeakSet,li=function(V,l,U,d){const c=this.x,W=this.y,s=this.width,Q=this.height;c===V&&W===l&&s===U&&Q===d||this.addCommands({cmd:()=>{this.width=s,this.height=Q,this.x=c,this.y=W;const[R,m]=this.parentDimensions;this.setDims(R*s,m*Q),this.fixAndSetPosition()},undo:()=>{this.width=U,this.height=d,this.x=V,this.y=l;const[R,m]=this.parentDimensions;this.setDims(R*U,m*d),this.fixAndSetPosition()},mustExec:!0})},OV=new WeakSet,Ui=function(V,l){const[U,d]=this.parentDimensions,c=this.x,W=this.y,s=this.width,Q=this.height,R=lZ.MIN_SIZE/U,m=lZ.MIN_SIZE/d,e=il=>Math.round(il*1e4)/1e4,S=G(this,rV,_Q).call(this,this.rotation),Y=(il,Ml)=>[S[0]*il+S[2]*Ml,S[1]*il+S[3]*Ml],p=G(this,rV,_Q).call(this,360-this.rotation),B=(il,Ml)=>[p[0]*il+p[2]*Ml,p[1]*il+p[3]*Ml];let z,L,D=!1,x=!1;switch(V){case"topLeft":D=!0,z=(il,Ml)=>[0,0],L=(il,Ml)=>[il,Ml];break;case"topMiddle":z=(il,Ml)=>[il/2,0],L=(il,Ml)=>[il/2,Ml];break;case"topRight":D=!0,z=(il,Ml)=>[il,0],L=(il,Ml)=>[0,Ml];break;case"middleRight":x=!0,z=(il,Ml)=>[il,Ml/2],L=(il,Ml)=>[0,Ml/2];break;case"bottomRight":D=!0,z=(il,Ml)=>[il,Ml],L=(il,Ml)=>[0,0];break;case"bottomMiddle":z=(il,Ml)=>[il/2,Ml],L=(il,Ml)=>[il/2,0];break;case"bottomLeft":D=!0,z=(il,Ml)=>[0,Ml],L=(il,Ml)=>[il,0];break;case"middleLeft":x=!0,z=(il,Ml)=>[0,Ml/2],L=(il,Ml)=>[il,Ml/2];break}const f=z(s,Q),q=L(s,Q);let dl=Y(...q);const tl=e(c+dl[0]),Wl=e(W+dl[1]);let hl=1,Tl=1,[Xl,Sl]=this.screenToPageTranslation(l.movementX,l.movementY);if([Xl,Sl]=B(Xl/U,Sl/d),D){const il=Math.hypot(s,Q);hl=Tl=Math.max(Math.min(Math.hypot(q[0]-f[0]-Xl,q[1]-f[1]-Sl)/il,1/s,1/Q),R/s,m/Q)}else x?hl=Math.max(R,Math.min(1,Math.abs(q[0]-f[0]-Xl)))/s:Tl=Math.max(m,Math.min(1,Math.abs(q[1]-f[1]-Sl)))/Q;const Kl=e(s*hl),xl=e(Q*Tl);dl=Y(...L(Kl,xl));const yU=tl-dl[0],Hl=Wl-dl[1];this.width=Kl,this.height=xl,this.x=yU,this.y=Hl,this.setDims(U*Kl,d*xl),this.fixAndSetPosition()},gV=new WeakSet,di=function(V){const{isMac:l}=EU.platform;V.ctrlKey&&!l||V.shiftKey||V.metaKey&&l?this.parent.toggleSelected(this):this.parent.setSelected(this)},Zi=new WeakSet,Vb=function(V){const l=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let U,d;l&&(this.div.classList.add("moving"),U={passive:!0,capture:!0},J(this,A0,V.clientX),J(this,_0,V.clientY),d=W=>{const{clientX:s,clientY:Q}=W,[R,m]=this.screenToPageTranslation(s-F(this,A0),Q-F(this,_0));J(this,A0,s),J(this,_0,Q),this._uiManager.dragSelectedEditors(R,m)},window.addEventListener("pointermove",d,U));const c=()=>{window.removeEventListener("pointerup",c),window.removeEventListener("blur",c),l&&(this.div.classList.remove("moving"),window.removeEventListener("pointermove",d,U)),J(this,iF,!1),this._uiManager.endDragSession()||G(this,gV,di).call(this,V)};window.addEventListener("pointerup",c),window.addEventListener("blur",c)},ti=new WeakSet,ab=function(V){lZ._resizerKeyboardManager.exec(this,V)},Fi=new WeakSet,nb=function(V){var l;F(this,JZ)&&((l=V.relatedTarget)==null?void 0:l.parentNode)!==F(this,hU)&&G(this,RF,q0).call(this)},ci=new WeakSet,sb=function(V){J(this,DV,F(this,JZ)?V:"")},KV=new WeakSet,Wi=function(V){if(F(this,ed))for(const l of F(this,ed))l.tabIndex=V},RF=new WeakSet,q0=function(){if(J(this,JZ,!1),G(this,KV,Wi).call(this,-1),F(this,QF)){const{savedX:V,savedY:l,savedWidth:U,savedHeight:d}=F(this,QF);G(this,jV,li).call(this,V,l,U,d),J(this,QF,null)}},h(lZ,xV),ml(lZ,"_borderLineWidth",-1),ml(lZ,"_colorManager",new yM),ml(lZ,"_zIndex",1),ml(lZ,"_telemetryTimeout",1e3);let wl=lZ;class zM extends wl{constructor(l){super(l),this.annotationElementId=l.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}const Tm=3285377520,Zd=4294901760,pd=65535;class Sm{constructor(l){this.h1=l?l&4294967295:Tm,this.h2=l?l&4294967295:Tm}update(l){let U,d;if(typeof l=="string"){U=new Uint8Array(l.length*2),d=0;for(let z=0,L=l.length;z<L;z++){const D=l.charCodeAt(z);D<=255?U[d++]=D:(U[d++]=D>>>8,U[d++]=D&255)}}else if(ArrayBuffer.isView(l))U=l.slice(),d=U.byteLength;else throw new Error("Invalid data format, must be a string or TypedArray.");const c=d>>2,W=d-c*4,s=new Uint32Array(U.buffer,0,c);let Q=0,R=0,m=this.h1,e=this.h2;const S=3432918353,Y=461845907,p=S&pd,B=Y&pd;for(let z=0;z<c;z++)z&1?(Q=s[z],Q=Q*S&Zd|Q*p&pd,Q=Q<<15|Q>>>17,Q=Q*Y&Zd|Q*B&pd,m^=Q,m=m<<13|m>>>19,m=m*5+3864292196):(R=s[z],R=R*S&Zd|R*p&pd,R=R<<15|R>>>17,R=R*Y&Zd|R*B&pd,e^=R,e=e<<13|e>>>19,e=e*5+3864292196);switch(Q=0,W){case 3:Q^=U[c*4+2]<<16;case 2:Q^=U[c*4+1]<<8;case 1:Q^=U[c*4],Q=Q*S&Zd|Q*p&pd,Q=Q<<15|Q>>>17,Q=Q*Y&Zd|Q*B&pd,c&1?m^=Q:e^=Q}this.h1=m,this.h2=e}hexdigest(){let l=this.h1,U=this.h2;return l^=U>>>1,l=l*3981806797&Zd|l*36045&pd,U=U*4283543511&Zd|((U<<16|l>>>16)*2950163797&Zd)>>>16,l^=U>>>1,l=l*444984403&Zd|l*60499&pd,U=U*3301882366&Zd|((U<<16|l>>>16)*3120437893&Zd)>>>16,l^=U>>>1,(l>>>0).toString(16).padStart(8,"0")+(U>>>0).toString(16).padStart(8,"0")}}const tR=Object.freeze({map:null,hash:"",transfer:void 0});class FR{constructor(){h(this,Vi),h(this,hF,!1),h(this,bU,new Map),this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(l,U){const d=F(this,bU).get(l);return d===void 0?U:Object.assign(U,d)}getRawValue(l){return F(this,bU).get(l)}remove(l){if(F(this,bU).delete(l),F(this,bU).size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const U of F(this,bU).values())if(U instanceof wl)return;this.onAnnotationEditor(null)}}setValue(l,U){const d=F(this,bU).get(l);let c=!1;if(d!==void 0)for(const[W,s]of Object.entries(U))d[W]!==s&&(c=!0,d[W]=s);else c=!0,F(this,bU).set(l,U);c&&G(this,Vi,Qb).call(this),U instanceof wl&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(U.constructor._type)}has(l){return F(this,bU).has(l)}getAll(){return F(this,bU).size>0?vN(F(this,bU)):null}setAll(l){for(const[U,d]of Object.entries(l))this.setValue(U,d)}get size(){return F(this,bU).size}resetModified(){F(this,hF)&&(J(this,hF,!1),typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new Xm(this)}get serializable(){if(F(this,bU).size===0)return tR;const l=new Map,U=new Sm,d=[],c=Object.create(null);let W=!1;for(const[s,Q]of F(this,bU)){const R=Q instanceof wl?Q.serialize(!1,c):Q;R&&(l.set(s,R),U.update(`${s}:${JSON.stringify(R)}`),W||(W=!!R.bitmap))}if(W)for(const s of l.values())s.bitmap&&d.push(s.bitmap);return l.size>0?{map:l,hash:U.hexdigest(),transfer:d}:tR}get editorStats(){let l=null;const U=new Map;for(const d of F(this,bU).values()){if(!(d instanceof wl))continue;const c=d.telemetryFinalData;if(!c)continue;const{type:W}=c;U.has(W)||U.set(W,Object.getPrototypeOf(d).constructor),l||(l=Object.create(null));const s=l[W]||(l[W]=new Map);for(const[Q,R]of Object.entries(c)){if(Q==="type")continue;let m=s.get(Q);m||(m=new Map,s.set(Q,m));const e=m.get(R)??0;m.set(R,e+1)}}for(const[d,c]of U)l[d]=c.computeTelemetryFinalData(l[d]);return l}}hF=new WeakMap,bU=new WeakMap,Vi=new WeakSet,Qb=function(){F(this,hF)||(J(this,hF,!0),typeof this.onSetModified=="function"&&this.onSetModified())};class Xm extends FR{constructor(l){super(),h(this,HV,void 0);const{map:U,hash:d,transfer:c}=l.serializable,W=structuredClone(U,c?{transfer:c}:null);J(this,HV,{map:W,hash:d,transfer:c})}get print(){Dl("Should not call PrintAnnotationStorage.print")}get serializable(){return F(this,HV)}}HV=new WeakMap;class LM{constructor({ownerDocument:l=globalThis.document,styleElement:U=null}){h(this,$0,new Set),this._document=l,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(l){this.nativeFontFaces.add(l),this._document.fonts.add(l)}removeNativeFontFace(l){this.nativeFontFaces.delete(l),this._document.fonts.delete(l)}insertRule(l){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const U=this.styleElement.sheet;U.insertRule(l,U.cssRules.length)}clear(){for(const l of this.nativeFontFaces)this._document.fonts.delete(l);this.nativeFontFaces.clear(),F(this,$0).clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont({systemFontInfo:l,_inspectFont:U}){if(!(!l||F(this,$0).has(l.loadedName))){if(lU(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:d,src:c,style:W}=l,s=new FontFace(d,c,W);this.addNativeFontFace(s);try{await s.load(),F(this,$0).add(d),U==null||U(l)}catch{Jl(`Cannot load system font: ${l.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(s)}return}Dl("Not implemented: loadSystemFont without the Font Loading API.")}}async bind(l){if(l.attached||l.missingFile&&!l.systemFontInfo)return;if(l.attached=!0,l.systemFontInfo){await this.loadSystemFont(l);return}if(this.isFontLoadingAPISupported){const d=l.createNativeFontFace();if(d){this.addNativeFontFace(d);try{await d.loaded}catch(c){throw Jl(`Failed to load font '${d.family}': '${c}'.`),l.disableFontFace=!0,c}}return}const U=l.createFontFaceRule();if(U){if(this.insertRule(U),this.isSyncFontLoadingSupported)return;await new Promise(d=>{const c=this._queueLoadingCallback(d);this._prepareFontLoadEvent(l,c)})}}get isFontLoadingAPISupported(){var l;const U=!!((l=this._document)!=null&&l.fonts);return ol(this,"isFontLoadingAPISupported",U)}get isSyncFontLoadingSupported(){let l=!1;return(MU||typeof navigator<"u"&&typeof(navigator==null?void 0:navigator.userAgent)=="string"&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(l=!0),ol(this,"isSyncFontLoadingSupported",l)}_queueLoadingCallback(l){function U(){for(lU(!c.done,"completeRequest() cannot be called twice."),c.done=!0;d.length>0&&d[0].done;){const W=d.shift();setTimeout(W.callback,0)}}const{loadingRequests:d}=this,c={done:!1,complete:U,callback:l};return d.push(c),c}get _loadTestFont(){const l=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return ol(this,"_loadTestFont",l)}_prepareFontLoadEvent(l,U){function d(f,q){return f.charCodeAt(q)<<24|f.charCodeAt(q+1)<<16|f.charCodeAt(q+2)<<8|f.charCodeAt(q+3)&255}function c(f,q,dl,tl){const Wl=f.substring(0,q),hl=f.substring(q+dl);return Wl+tl+hl}let W,s;const Q=this._document.createElement("canvas");Q.width=1,Q.height=1;const R=Q.getContext("2d");let m=0;function e(f,q){if(++m>30){Jl("Load test font never loaded."),q();return}if(R.font="30px "+f,R.fillText(".",0,20),R.getImageData(0,0,1,1).data[3]>0){q();return}setTimeout(e.bind(null,f,q))}const S=`lt${Date.now()}${this.loadTestFontId++}`;let Y=this._loadTestFont;Y=c(Y,976,S.length,S);const p=16,B=1482184792;let z=d(Y,p);for(W=0,s=S.length-3;W<s;W+=4)z=z-B+d(S,W)|0;W<S.length&&(z=z-B+d(S+"XXX",W)|0),Y=c(Y,p,4,iM(z));const L=`url(data:font/opentype;base64,${btoa(Y)});`,D=`@font-face {font-family:"${S}";src:${L}}`;this.insertRule(D);const x=this._document.createElement("div");x.style.visibility="hidden",x.style.width=x.style.height="10px",x.style.position="absolute",x.style.top=x.style.left="0px";for(const f of[l.loadedName,S]){const q=this._document.createElement("span");q.textContent="Hi",q.style.fontFamily=f,x.append(q)}this._document.body.append(x),e(S,()=>{x.remove(),U.complete()})}}$0=new WeakMap;class kM{constructor(l,{disableFontFace:U=!1,inspectFont:d=null}){this.compiledGlyphs=Object.create(null);for(const c in l)this[c]=l[c];this.disableFontFace=U===!0,this._inspectFont=d}createNativeFontFace(){var l;if(!this.data||this.disableFontFace)return null;let U;if(!this.cssFontInfo)U=new FontFace(this.loadedName,this.data,{});else{const d={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(d.style=`oblique ${this.cssFontInfo.italicAngle}deg`),U=new FontFace(this.cssFontInfo.fontFamily,this.data,d)}return(l=this._inspectFont)==null||l.call(this,this),U}createFontFaceRule(){var l;if(!this.data||this.disableFontFace)return null;const U=sm(this.data),d=`url(data:${this.mimetype};base64,${btoa(U)});`;let c;if(!this.cssFontInfo)c=`@font-face {font-family:"${this.loadedName}";src:${d}}`;else{let W=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(W+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),c=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${W}src:${d}}`}return(l=this._inspectFont)==null||l.call(this,this,d),c}getPathGenerator(l,U){if(this.compiledGlyphs[U]!==void 0)return this.compiledGlyphs[U];let d;try{d=l.get(this.loadedName+"_path_"+U)}catch(W){Jl(`getPathGenerator - ignoring character: "${W}".`)}if(!Array.isArray(d)||d.length===0)return this.compiledGlyphs[U]=function(W,s){};const c=[];for(let W=0,s=d.length;W<s;)switch(d[W++]){case _d.BEZIER_CURVE_TO:{const[Q,R,m,e,S,Y]=d.slice(W,W+6);c.push(p=>p.bezierCurveTo(Q,R,m,e,S,Y)),W+=6}break;case _d.MOVE_TO:{const[Q,R]=d.slice(W,W+2);c.push(m=>m.moveTo(Q,R)),W+=2}break;case _d.LINE_TO:{const[Q,R]=d.slice(W,W+2);c.push(m=>m.lineTo(Q,R)),W+=2}break;case _d.QUADRATIC_CURVE_TO:{const[Q,R,m,e]=d.slice(W,W+4);c.push(S=>S.quadraticCurveTo(Q,R,m,e)),W+=4}break;case _d.RESTORE:c.push(Q=>Q.restore());break;case _d.SAVE:c.push(Q=>Q.save());break;case _d.SCALE:lU(c.length===2,"Scale command is only valid at the third position.");break;case _d.TRANSFORM:{const[Q,R,m,e,S,Y]=d.slice(W,W+6);c.push(p=>p.transform(Q,R,m,e,S,Y)),W+=6}break;case _d.TRANSLATE:{const[Q,R]=d.slice(W,W+2);c.push(m=>m.translate(Q,R)),W+=2}break}return this.compiledGlyphs[U]=function(W,s){c[0](W),c[1](W),W.scale(s,-s);for(let Q=2,R=c.length;Q<R;Q++)c[Q](W)}}}if(MU){var cR=Promise.withResolvers(),ls=null;(async()=>{const V=await Promise.resolve().then(()=>SW),l=await Promise.resolve().then(()=>SW),U=await Promise.resolve().then(()=>SW),d=await Promise.resolve().then(()=>SW);let c,W;try{c=await Promise.resolve().then(()=>SW)}catch{}try{W=await Promise.resolve().then(()=>RX)}catch{}return new Map(Object.entries({fs:V,http:l,https:U,url:d,canvas:c,path2d:W}))})().then(V=>{var l,U,d,c;if(ls=V,cR.resolve(),!globalThis.DOMMatrix){const W=(l=V.get("canvas"))==null?void 0:l.DOMMatrix;W?globalThis.DOMMatrix=W:Jl("Cannot polyfill `DOMMatrix`, rendering may be broken.")}if(!globalThis.Path2D){const W=(U=V.get("canvas"))==null?void 0:U.CanvasRenderingContext2D,s=(d=V.get("path2d"))==null?void 0:d.applyPath2DToCanvasRenderingContext,Q=(c=V.get("path2d"))==null?void 0:c.Path2D;W&&s&&Q?(s(W),globalThis.Path2D=Q):Jl("Cannot polyfill `Path2D`, rendering may be broken.")}},V=>{Jl(`loadPackages: ${V}`),ls=new Map,cR.resolve()})}class ud{static get promise(){return cR.promise}static get(l){return ls==null?void 0:ls.get(l)}}const Ym=function(V){return ud.get("fs").promises.readFile(V).then(l=>new Uint8Array(l))};class IM extends vn{}class DM extends Pn{_createCanvas(l,U){return ud.get("canvas").createCanvas(l,U)}}class EM extends fn{_fetchData(l,U){return Ym(l).then(d=>({cMapData:d,compressionType:U}))}}class wM extends An{_fetchData(l){return Ym(l)}}const oU={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function WR(V,l){if(!l)return;const U=l[2]-l[0],d=l[3]-l[1],c=new Path2D;c.rect(l[0],l[1],U,d),V.clip(c)}class QW{constructor(){this.constructor===QW&&Dl("Cannot initialize BaseShadingPattern.")}getPattern(){Dl("Abstract method `getPattern` called.")}}class CM extends QW{constructor(l){super(),this._type=l[1],this._bbox=l[2],this._colorStops=l[3],this._p0=l[4],this._p1=l[5],this._r0=l[6],this._r1=l[7],this.matrix=null}_createGradient(l){let U;this._type==="axial"?U=l.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(U=l.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const d of this._colorStops)U.addColorStop(d[0],d[1]);return U}getPattern(l,U,d,c){let W;if(c===oU.STROKE||c===oU.FILL){const s=U.current.getClippedPathBoundingBox(c,rl(l))||[0,0,0,0],Q=Math.ceil(s[2]-s[0])||1,R=Math.ceil(s[3]-s[1])||1,m=U.cachedCanvases.getCanvas("pattern",Q,R,!0),e=m.context;e.clearRect(0,0,e.canvas.width,e.canvas.height),e.beginPath(),e.rect(0,0,e.canvas.width,e.canvas.height),e.translate(-s[0],-s[1]),d=al.transform(d,[1,0,0,1,s[0],s[1]]),e.transform(...U.baseTransform),this.matrix&&e.transform(...this.matrix),WR(e,this._bbox),e.fillStyle=this._createGradient(e),e.fill(),W=l.createPattern(m.canvas,"no-repeat");const S=new DOMMatrix(d);W.setTransform(S)}else WR(l,this._bbox),W=this._createGradient(l);return W}}function VR(V,l,U,d,c,W,s,Q){const R=l.coords,m=l.colors,e=V.data,S=V.width*4;let Y;R[U+1]>R[d+1]&&(Y=U,U=d,d=Y,Y=W,W=s,s=Y),R[d+1]>R[c+1]&&(Y=d,d=c,c=Y,Y=s,s=Q,Q=Y),R[U+1]>R[d+1]&&(Y=U,U=d,d=Y,Y=W,W=s,s=Y);const p=(R[U]+l.offsetX)*l.scaleX,B=(R[U+1]+l.offsetY)*l.scaleY,z=(R[d]+l.offsetX)*l.scaleX,L=(R[d+1]+l.offsetY)*l.scaleY,D=(R[c]+l.offsetX)*l.scaleX,x=(R[c+1]+l.offsetY)*l.scaleY;if(B>=x)return;const f=m[W],q=m[W+1],dl=m[W+2],tl=m[s],Wl=m[s+1],hl=m[s+2],Tl=m[Q],Xl=m[Q+1],Sl=m[Q+2],Kl=Math.round(B),xl=Math.round(x);let yU,Hl,il,Ml,W0,is,Ns,V0;for(let KU=Kl;KU<=xl;KU++){if(KU<L){const dU=KU<B?0:(B-KU)/(B-L);yU=p-(p-z)*dU,Hl=f-(f-tl)*dU,il=q-(q-Wl)*dU,Ml=dl-(dl-hl)*dU}else{let dU;KU>x?dU=1:L===x?dU=0:dU=(L-KU)/(L-x),yU=z-(z-D)*dU,Hl=tl-(tl-Tl)*dU,il=Wl-(Wl-Xl)*dU,Ml=hl-(hl-Sl)*dU}let nU;KU<B?nU=0:KU>x?nU=1:nU=(B-KU)/(B-x),W0=p-(p-D)*nU,is=f-(f-Tl)*nU,Ns=q-(q-Xl)*nU,V0=dl-(dl-Sl)*nU;const HZ=Math.round(Math.min(yU,W0)),mW=Math.round(Math.max(yU,W0));let HU=S*KU+HZ*4;for(let dU=HZ;dU<=mW;dU++)nU=(yU-dU)/(yU-W0),nU<0?nU=0:nU>1&&(nU=1),e[HU++]=Hl-(Hl-is)*nU|0,e[HU++]=il-(il-Ns)*nU|0,e[HU++]=Ml-(Ml-V0)*nU|0,e[HU++]=255}}function xM(V,l,U){const d=l.coords,c=l.colors;let W,s;switch(l.type){case"lattice":const Q=l.verticesPerRow,R=Math.floor(d.length/Q)-1,m=Q-1;for(W=0;W<R;W++){let e=W*Q;for(let S=0;S<m;S++,e++)VR(V,U,d[e],d[e+1],d[e+Q],c[e],c[e+1],c[e+Q]),VR(V,U,d[e+Q+1],d[e+1],d[e+Q],c[e+Q+1],c[e+1],c[e+Q])}break;case"triangles":for(W=0,s=d.length;W<s;W+=3)VR(V,U,d[W],d[W+1],d[W+2],c[W],c[W+1],c[W+2]);break;default:throw new Error("illegal figure")}}class rM extends QW{constructor(l){super(),this._coords=l[2],this._colors=l[3],this._figures=l[4],this._bounds=l[5],this._bbox=l[7],this._background=l[8],this.matrix=null}_createMeshCanvas(l,U,d){const c=Math.floor(this._bounds[0]),W=Math.floor(this._bounds[1]),s=Math.ceil(this._bounds[2])-c,Q=Math.ceil(this._bounds[3])-W,R=Math.min(Math.ceil(Math.abs(s*l[0]*1.1)),3e3),m=Math.min(Math.ceil(Math.abs(Q*l[1]*1.1)),3e3),e=s/R,S=Q/m,Y={coords:this._coords,colors:this._colors,offsetX:-c,offsetY:-W,scaleX:1/e,scaleY:1/S},p=R+2*2,B=m+2*2,z=d.getCanvas("mesh",p,B,!1),L=z.context,D=L.createImageData(R,m);if(U){const x=D.data;for(let f=0,q=x.length;f<q;f+=4)x[f]=U[0],x[f+1]=U[1],x[f+2]=U[2],x[f+3]=255}for(const x of this._figures)xM(D,x,Y);return L.putImageData(D,2,2),{canvas:z.canvas,offsetX:c-2*e,offsetY:W-2*S,scaleX:e,scaleY:S}}getPattern(l,U,d,c){WR(l,this._bbox);let W;if(c===oU.SHADING)W=al.singularValueDecompose2dScale(rl(l));else if(W=al.singularValueDecompose2dScale(U.baseTransform),this.matrix){const Q=al.singularValueDecompose2dScale(this.matrix);W=[W[0]*Q[0],W[1]*Q[1]]}const s=this._createMeshCanvas(W,c===oU.SHADING?null:this._background,U.cachedCanvases);return c!==oU.SHADING&&(l.setTransform(...U.baseTransform),this.matrix&&l.transform(...this.matrix)),l.translate(s.offsetX,s.offsetY),l.scale(s.scaleX,s.scaleY),l.createPattern(s.canvas,"no-repeat")}}class jM extends QW{getPattern(){return"hotpink"}}function OM(V){switch(V[0]){case"RadialAxial":return new CM(V);case"Mesh":return new rM(V);case"Dummy":return new jM}throw new Error(`Unknown IR type: ${V[0]}`)}const pm={COLORED:1,UNCOLORED:2},um=class n2{constructor(l,U,d,c,W){this.operatorList=l[2],this.matrix=l[3],this.bbox=l[4],this.xstep=l[5],this.ystep=l[6],this.paintType=l[7],this.tilingType=l[8],this.color=U,this.ctx=d,this.canvasGraphicsFactory=c,this.baseTransform=W}createPatternCanvas(l){const U=this.operatorList,d=this.bbox,c=this.xstep,W=this.ystep,s=this.paintType,Q=this.tilingType,R=this.color,m=this.canvasGraphicsFactory;gn("TilingType: "+Q);const e=d[0],S=d[1],Y=d[2],p=d[3],B=al.singularValueDecompose2dScale(this.matrix),z=al.singularValueDecompose2dScale(this.baseTransform),L=[B[0]*z[0],B[1]*z[1]],D=this.getSizeAndScale(c,this.ctx.canvas.width,L[0]),x=this.getSizeAndScale(W,this.ctx.canvas.height,L[1]),f=l.cachedCanvases.getCanvas("pattern",D.size,x.size,!0),q=f.context,dl=m.createCanvasGraphics(q);dl.groupLevel=l.groupLevel,this.setFillAndStrokeStyleToContext(dl,s,R);let tl=e,Wl=S,hl=Y,Tl=p;return e<0&&(tl=0,hl+=Math.abs(e)),S<0&&(Wl=0,Tl+=Math.abs(S)),q.translate(-(D.scale*tl),-(x.scale*Wl)),dl.transform(D.scale,0,0,x.scale,0,0),q.save(),this.clipBbox(dl,tl,Wl,hl,Tl),dl.baseTransform=rl(dl.ctx),dl.executeOperatorList(U),dl.endDrawing(),{canvas:f.canvas,scaleX:D.scale,scaleY:x.scale,offsetX:tl,offsetY:Wl}}getSizeAndScale(l,U,d){l=Math.abs(l);const c=Math.max(n2.MAX_PATTERN_SIZE,U);let W=Math.ceil(l*d);return W>=c?W=c:d=W/l,{scale:d,size:W}}clipBbox(l,U,d,c,W){const s=c-U,Q=W-d;l.ctx.rect(U,d,s,Q),l.current.updateRectMinMax(rl(l.ctx),[U,d,c,W]),l.clip(),l.endPath()}setFillAndStrokeStyleToContext(l,U,d){const c=l.ctx,W=l.current;switch(U){case pm.COLORED:const s=this.ctx;c.fillStyle=s.fillStyle,c.strokeStyle=s.strokeStyle,W.fillColor=s.fillStyle,W.strokeColor=s.strokeStyle;break;case pm.UNCOLORED:const Q=al.makeHexColor(d[0],d[1],d[2]);c.fillStyle=Q,c.strokeStyle=Q,W.fillColor=Q,W.strokeColor=Q;break;default:throw new QM(`Unsupported paint type: ${U}`)}}getPattern(l,U,d,c){let W=d;c!==oU.SHADING&&(W=al.transform(W,U.baseTransform),this.matrix&&(W=al.transform(W,this.matrix)));const s=this.createPatternCanvas(U);let Q=new DOMMatrix(W);Q=Q.translate(s.offsetX,s.offsetY),Q=Q.scale(1/s.scaleX,1/s.scaleY);const R=l.createPattern(s.canvas,"repeat");return R.setTransform(Q),R}};ml(um,"MAX_PATTERN_SIZE",3e3);let gM=um;function KM({src:V,srcPos:l=0,dest:U,width:d,height:c,nonBlackColor:W=4294967295,inverseDecode:s=!1}){const Q=EU.isLittleEndian?4278190080:255,[R,m]=s?[W,Q]:[Q,W],e=d>>3,S=d&7,Y=V.length;U=new Uint32Array(U.buffer);let p=0;for(let B=0;B<c;B++){for(const L=l+e;l<L;l++){const D=l<Y?V[l]:255;U[p++]=D&128?m:R,U[p++]=D&64?m:R,U[p++]=D&32?m:R,U[p++]=D&16?m:R,U[p++]=D&8?m:R,U[p++]=D&4?m:R,U[p++]=D&2?m:R,U[p++]=D&1?m:R}if(S===0)continue;const z=l<Y?V[l++]:255;for(let L=0;L<S;L++)U[p++]=z&1<<7-L?m:R}return{srcPos:l,destPos:p}}const Bm=16,om=100,HM=15,ym=10,zm=1e3,CU=16;function vM(V,l){if(V._removeMirroring)throw new Error("Context is already forwarding operations.");V.__originalSave=V.save,V.__originalRestore=V.restore,V.__originalRotate=V.rotate,V.__originalScale=V.scale,V.__originalTranslate=V.translate,V.__originalTransform=V.transform,V.__originalSetTransform=V.setTransform,V.__originalResetTransform=V.resetTransform,V.__originalClip=V.clip,V.__originalMoveTo=V.moveTo,V.__originalLineTo=V.lineTo,V.__originalBezierCurveTo=V.bezierCurveTo,V.__originalRect=V.rect,V.__originalClosePath=V.closePath,V.__originalBeginPath=V.beginPath,V._removeMirroring=()=>{V.save=V.__originalSave,V.restore=V.__originalRestore,V.rotate=V.__originalRotate,V.scale=V.__originalScale,V.translate=V.__originalTranslate,V.transform=V.__originalTransform,V.setTransform=V.__originalSetTransform,V.resetTransform=V.__originalResetTransform,V.clip=V.__originalClip,V.moveTo=V.__originalMoveTo,V.lineTo=V.__originalLineTo,V.bezierCurveTo=V.__originalBezierCurveTo,V.rect=V.__originalRect,V.closePath=V.__originalClosePath,V.beginPath=V.__originalBeginPath,delete V._removeMirroring},V.save=function(){l.save(),this.__originalSave()},V.restore=function(){l.restore(),this.__originalRestore()},V.translate=function(U,d){l.translate(U,d),this.__originalTranslate(U,d)},V.scale=function(U,d){l.scale(U,d),this.__originalScale(U,d)},V.transform=function(U,d,c,W,s,Q){l.transform(U,d,c,W,s,Q),this.__originalTransform(U,d,c,W,s,Q)},V.setTransform=function(U,d,c,W,s,Q){l.setTransform(U,d,c,W,s,Q),this.__originalSetTransform(U,d,c,W,s,Q)},V.resetTransform=function(){l.resetTransform(),this.__originalResetTransform()},V.rotate=function(U){l.rotate(U),this.__originalRotate(U)},V.clip=function(U){l.clip(U),this.__originalClip(U)},V.moveTo=function(U,d){l.moveTo(U,d),this.__originalMoveTo(U,d)},V.lineTo=function(U,d){l.lineTo(U,d),this.__originalLineTo(U,d)},V.bezierCurveTo=function(U,d,c,W,s,Q){l.bezierCurveTo(U,d,c,W,s,Q),this.__originalBezierCurveTo(U,d,c,W,s,Q)},V.rect=function(U,d,c,W){l.rect(U,d,c,W),this.__originalRect(U,d,c,W)},V.closePath=function(){l.closePath(),this.__originalClosePath()},V.beginPath=function(){l.beginPath(),this.__originalBeginPath()}}class PM{constructor(l){this.canvasFactory=l,this.cache=Object.create(null)}getCanvas(l,U,d){let c;return this.cache[l]!==void 0?(c=this.cache[l],this.canvasFactory.reset(c,U,d)):(c=this.canvasFactory.create(U,d),this.cache[l]=c),c}delete(l){delete this.cache[l]}clear(){for(const l in this.cache){const U=this.cache[l];this.canvasFactory.destroy(U),delete this.cache[l]}}}function Us(V,l,U,d,c,W,s,Q,R,m){const[e,S,Y,p,B,z]=rl(V);if(S===0&&Y===0){const x=s*e+B,f=Math.round(x),q=Q*p+z,dl=Math.round(q),tl=(s+R)*e+B,Wl=Math.abs(Math.round(tl)-f)||1,hl=(Q+m)*p+z,Tl=Math.abs(Math.round(hl)-dl)||1;return V.setTransform(Math.sign(e),0,0,Math.sign(p),f,dl),V.drawImage(l,U,d,c,W,0,0,Wl,Tl),V.setTransform(e,S,Y,p,B,z),[Wl,Tl]}if(e===0&&p===0){const x=Q*Y+B,f=Math.round(x),q=s*S+z,dl=Math.round(q),tl=(Q+m)*Y+B,Wl=Math.abs(Math.round(tl)-f)||1,hl=(s+R)*S+z,Tl=Math.abs(Math.round(hl)-dl)||1;return V.setTransform(0,Math.sign(S),Math.sign(Y),0,f,dl),V.drawImage(l,U,d,c,W,0,0,Tl,Wl),V.setTransform(e,S,Y,p,B,z),[Tl,Wl]}V.drawImage(l,U,d,c,W,s,Q,R,m);const L=Math.hypot(e,S),D=Math.hypot(Y,p);return[L*R,D*m]}function fM(V){const{width:l,height:U}=V;if(l>zm||U>zm)return null;const d=1e3,c=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),W=l+1;let s=new Uint8Array(W*(U+1)),Q,R,m;const e=l+7&-8;let S=new Uint8Array(e*U),Y=0;for(const L of V.data){let D=128;for(;D>0;)S[Y++]=L&D?0:255,D>>=1}let p=0;for(Y=0,S[Y]!==0&&(s[0]=1,++p),R=1;R<l;R++)S[Y]!==S[Y+1]&&(s[R]=S[Y]?2:1,++p),Y++;for(S[Y]!==0&&(s[R]=2,++p),Q=1;Q<U;Q++){Y=Q*e,m=Q*W,S[Y-e]!==S[Y]&&(s[m]=S[Y]?1:8,++p);let L=(S[Y]?4:0)+(S[Y-e]?8:0);for(R=1;R<l;R++)L=(L>>2)+(S[Y+1]?4:0)+(S[Y-e+1]?8:0),c[L]&&(s[m+R]=c[L],++p),Y++;if(S[Y-e]!==S[Y]&&(s[m+R]=S[Y]?2:4,++p),p>d)return null}for(Y=e*(U-1),m=Q*W,S[Y]!==0&&(s[m]=8,++p),R=1;R<l;R++)S[Y]!==S[Y+1]&&(s[m+R]=S[Y]?4:8,++p),Y++;if(S[Y]!==0&&(s[m+R]=4,++p),p>d)return null;const B=new Int32Array([0,W,-1,0,-W,0,0,0,1]),z=new Path2D;for(Q=0;p&&Q<=U;Q++){let L=Q*W;const D=L+l;for(;L<D&&!s[L];)L++;if(L===D)continue;z.moveTo(L%W,Q);const x=L;let f=s[L];do{const q=B[f];do L+=q;while(!s[L]);const dl=s[L];dl!==5&&dl!==10?(f=dl,s[L]=0):(f=dl&51*f>>4,s[L]&=f>>2|f<<2),z.lineTo(L%W,L/W|0),s[L]||--p}while(x!==L);--Q}return S=null,s=null,function(L){L.save(),L.scale(1/l,-1/U),L.translate(0,-U),L.fill(z),L.beginPath(),L.restore()}}class Lm{constructor(l,U){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=am,this.textMatrixScale=1,this.fontMatrix=jN,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=GU.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,l,U])}clone(){const l=Object.create(this);return l.clipBox=this.clipBox.slice(),l}setCurrentPoint(l,U){this.x=l,this.y=U}updatePathMinMax(l,U,d){[U,d]=al.applyTransform([U,d],l),this.minX=Math.min(this.minX,U),this.minY=Math.min(this.minY,d),this.maxX=Math.max(this.maxX,U),this.maxY=Math.max(this.maxY,d)}updateRectMinMax(l,U){const d=al.applyTransform(U,l),c=al.applyTransform(U.slice(2),l),W=al.applyTransform([U[0],U[3]],l),s=al.applyTransform([U[2],U[1]],l);this.minX=Math.min(this.minX,d[0],c[0],W[0],s[0]),this.minY=Math.min(this.minY,d[1],c[1],W[1],s[1]),this.maxX=Math.max(this.maxX,d[0],c[0],W[0],s[0]),this.maxY=Math.max(this.maxY,d[1],c[1],W[1],s[1])}updateScalingPathMinMax(l,U){al.scaleMinMax(l,U),this.minX=Math.min(this.minX,U[0]),this.minY=Math.min(this.minY,U[1]),this.maxX=Math.max(this.maxX,U[2]),this.maxY=Math.max(this.maxY,U[3])}updateCurvePathMinMax(l,U,d,c,W,s,Q,R,m,e){const S=al.bezierBoundingBox(U,d,c,W,s,Q,R,m,e);e||this.updateRectMinMax(l,S)}getPathBoundingBox(l=oU.FILL,U=null){const d=[this.minX,this.minY,this.maxX,this.maxY];if(l===oU.STROKE){U||Dl("Stroke bounding box must include transform.");const c=al.singularValueDecompose2dScale(U),W=c[0]*this.lineWidth/2,s=c[1]*this.lineWidth/2;d[0]-=W,d[1]-=s,d[2]+=W,d[3]+=s}return d}updateClipFromPath(){const l=al.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(l||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(l){this.clipBox=l,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(l=oU.FILL,U=null){return al.intersect(this.clipBox,this.getPathBoundingBox(l,U))}}function km(V,l){if(typeof ImageData<"u"&&l instanceof ImageData){V.putImageData(l,0,0);return}const U=l.height,d=l.width,c=U%CU,W=(U-c)/CU,s=c===0?W:W+1,Q=V.createImageData(d,CU);let R=0,m;const e=l.data,S=Q.data;let Y,p,B,z;if(l.kind===rn.GRAYSCALE_1BPP){const L=e.byteLength,D=new Uint32Array(S.buffer,0,S.byteLength>>2),x=D.length,f=d+7>>3,q=4294967295,dl=EU.isLittleEndian?4278190080:255;for(Y=0;Y<s;Y++){for(B=Y<W?CU:c,m=0,p=0;p<B;p++){const tl=L-R;let Wl=0;const hl=tl>f?d:tl*8-7,Tl=hl&-8;let Xl=0,Sl=0;for(;Wl<Tl;Wl+=8)Sl=e[R++],D[m++]=Sl&128?q:dl,D[m++]=Sl&64?q:dl,D[m++]=Sl&32?q:dl,D[m++]=Sl&16?q:dl,D[m++]=Sl&8?q:dl,D[m++]=Sl&4?q:dl,D[m++]=Sl&2?q:dl,D[m++]=Sl&1?q:dl;for(;Wl<hl;Wl++)Xl===0&&(Sl=e[R++],Xl=128),D[m++]=Sl&Xl?q:dl,Xl>>=1}for(;m<x;)D[m++]=0;V.putImageData(Q,0,Y*CU)}}else if(l.kind===rn.RGBA_32BPP){for(p=0,z=d*CU*4,Y=0;Y<W;Y++)S.set(e.subarray(R,R+z)),R+=z,V.putImageData(Q,0,p),p+=CU;Y<s&&(z=d*c*4,S.set(e.subarray(R,R+z)),V.putImageData(Q,0,p))}else if(l.kind===rn.RGB_24BPP)for(B=CU,z=d*B,Y=0;Y<s;Y++){for(Y>=W&&(B=c,z=d*B),m=0,p=z;p--;)S[m++]=e[R++],S[m++]=e[R++],S[m++]=e[R++],S[m++]=255;V.putImageData(Q,0,Y*CU)}else throw new Error(`bad image kind: ${l.kind}`)}function Im(V,l){if(l.bitmap){V.drawImage(l.bitmap,0,0);return}const U=l.height,d=l.width,c=U%CU,W=(U-c)/CU,s=c===0?W:W+1,Q=V.createImageData(d,CU);let R=0;const m=l.data,e=Q.data;for(let S=0;S<s;S++){const Y=S<W?CU:c;({srcPos:R}=KM({src:m,srcPos:R,dest:e,width:d,height:Y,nonBlackColor:0})),V.putImageData(Q,0,S*CU)}}function iW(V,l){const U=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font","filter"];for(const d of U)V[d]!==void 0&&(l[d]=V[d]);V.setLineDash!==void 0&&(l.setLineDash(V.getLineDash()),l.lineDashOffset=V.lineDashOffset)}function ds(V){if(V.strokeStyle=V.fillStyle="#000000",V.fillRule="nonzero",V.globalAlpha=1,V.lineWidth=1,V.lineCap="butt",V.lineJoin="miter",V.miterLimit=10,V.globalCompositeOperation="source-over",V.font="10px sans-serif",V.setLineDash!==void 0&&(V.setLineDash([]),V.lineDashOffset=0),!MU){const{filter:l}=V;l!=="none"&&l!==""&&(V.filter="none")}}function Dm(V,l){if(l)return!0;const U=al.singularValueDecompose2dScale(V);U[0]=Math.fround(U[0]),U[1]=Math.fround(U[1]);const d=Math.fround((globalThis.devicePixelRatio||1)*t0.PDF_TO_CSS_UNITS);return U[0]<=d&&U[1]<=d}const AM=["butt","round","square"],_M=["miter","round","bevel"],qM={},Em={},$M=class s2{constructor(l,U,d,c,W,{optionalContentConfig:s,markedContentStack:Q=null},R,m){h(this,vV),h(this,PV),this.ctx=l,this.current=new Lm(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=U,this.objs=d,this.canvasFactory=c,this.filterFactory=W,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=Q||[],this.optionalContentConfig=s,this.cachedCanvases=new PM(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=R,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=m,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(l,U=null){return typeof l=="string"?l.startsWith("g_")?this.commonObjs.get(l):this.objs.get(l):U}beginDrawing({transform:l,viewport:U,transparency:d=!1,background:c=null}){const W=this.ctx.canvas.width,s=this.ctx.canvas.height,Q=this.ctx.fillStyle;if(this.ctx.fillStyle=c||"#ffffff",this.ctx.fillRect(0,0,W,s),this.ctx.fillStyle=Q,d){const R=this.cachedCanvases.getCanvas("transparent",W,s);this.compositeCtx=this.ctx,this.transparentCanvas=R.canvas,this.ctx=R.context,this.ctx.save(),this.ctx.transform(...rl(this.compositeCtx))}this.ctx.save(),ds(this.ctx),l&&(this.ctx.transform(...l),this.outputScaleX=l[0],this.outputScaleY=l[0]),this.ctx.transform(...U.transform),this.viewportScale=U.scale,this.baseTransform=rl(this.ctx)}executeOperatorList(l,U,d,c){const W=l.argsArray,s=l.fnArray;let Q=U||0;const R=W.length;if(R===Q)return Q;const m=R-Q>ym&&typeof d=="function",e=m?Date.now()+HM:0;let S=0;const Y=this.commonObjs,p=this.objs;let B;for(;;){if(c!==void 0&&Q===c.nextBreakPoint)return c.breakIt(Q,d),Q;if(B=s[Q],B!==cd.dependency)this[B].apply(this,W[Q]);else for(const z of W[Q]){const L=z.startsWith("g_")?Y:p;if(!L.has(z))return L.get(z,d),Q}if(Q++,Q===R)return Q;if(m&&++S>ym){if(Date.now()>e)return d(),Q;S=0}}}endDrawing(){G(this,vV,ai).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const l of this._cachedBitmapsMap.values()){for(const U of l.values())typeof HTMLCanvasElement<"u"&&U instanceof HTMLCanvasElement&&(U.width=U.height=0);l.clear()}this._cachedBitmapsMap.clear(),G(this,PV,ni).call(this)}_scaleImage(l,U){const d=l.width,c=l.height;let W=Math.max(Math.hypot(U[0],U[1]),1),s=Math.max(Math.hypot(U[2],U[3]),1),Q=d,R=c,m="prescale1",e,S;for(;W>2&&Q>1||s>2&&R>1;){let Y=Q,p=R;W>2&&Q>1&&(Y=Q>=16384?Math.floor(Q/2)-1||1:Math.ceil(Q/2),W/=Q/Y),s>2&&R>1&&(p=R>=16384?Math.floor(R/2)-1||1:Math.ceil(R)/2,s/=R/p),e=this.cachedCanvases.getCanvas(m,Y,p),S=e.context,S.clearRect(0,0,Y,p),S.drawImage(l,0,0,Q,R,0,0,Y,p),l=e.canvas,Q=Y,R=p,m=m==="prescale1"?"prescale2":"prescale1"}return{img:l,paintWidth:Q,paintHeight:R}}_createMaskCanvas(l){const U=this.ctx,{width:d,height:c}=l,W=this.current.fillColor,s=this.current.patternFill,Q=rl(U);let R,m,e,S;if((l.bitmap||l.data)&&l.count>1){const hl=l.bitmap||l.data.buffer;m=JSON.stringify(s?Q:[Q.slice(0,4),W]),R=this._cachedBitmapsMap.get(hl),R||(R=new Map,this._cachedBitmapsMap.set(hl,R));const Tl=R.get(m);if(Tl&&!s){const Xl=Math.round(Math.min(Q[0],Q[2])+Q[4]),Sl=Math.round(Math.min(Q[1],Q[3])+Q[5]);return{canvas:Tl,offsetX:Xl,offsetY:Sl}}e=Tl}e||(S=this.cachedCanvases.getCanvas("maskCanvas",d,c),Im(S.context,l));let Y=al.transform(Q,[1/d,0,0,-1/c,0,0]);Y=al.transform(Y,[1,0,0,1,0,-c]);const[p,B,z,L]=al.getAxialAlignedBoundingBox([0,0,d,c],Y),D=Math.round(z-p)||1,x=Math.round(L-B)||1,f=this.cachedCanvases.getCanvas("fillCanvas",D,x),q=f.context,dl=p,tl=B;q.translate(-dl,-tl),q.transform(...Y),e||(e=this._scaleImage(S.canvas,$d(q)),e=e.img,R&&s&&R.set(m,e)),q.imageSmoothingEnabled=Dm(rl(q),l.interpolate),Us(q,e,0,0,e.width,e.height,0,0,d,c),q.globalCompositeOperation="source-in";const Wl=al.transform($d(q),[1,0,0,1,-dl,-tl]);return q.fillStyle=s?W.getPattern(U,this,Wl,oU.FILL):W,q.fillRect(0,0,d,c),R&&!s&&(this.cachedCanvases.delete("fillCanvas"),R.set(m,f.canvas)),{canvas:f.canvas,offsetX:Math.round(dl),offsetY:Math.round(tl)}}setLineWidth(l){l!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=l,this.ctx.lineWidth=l}setLineCap(l){this.ctx.lineCap=AM[l]}setLineJoin(l){this.ctx.lineJoin=_M[l]}setMiterLimit(l){this.ctx.miterLimit=l}setDash(l,U){const d=this.ctx;d.setLineDash!==void 0&&(d.setLineDash(l),d.lineDashOffset=U)}setRenderingIntent(l){}setFlatness(l){}setGState(l){for(const[U,d]of l)switch(U){case"LW":this.setLineWidth(d);break;case"LC":this.setLineCap(d);break;case"LJ":this.setLineJoin(d);break;case"ML":this.setMiterLimit(d);break;case"D":this.setDash(d[0],d[1]);break;case"RI":this.setRenderingIntent(d);break;case"FL":this.setFlatness(d);break;case"Font":this.setFont(d[0],d[1]);break;case"CA":this.current.strokeAlpha=d;break;case"ca":this.current.fillAlpha=d,this.ctx.globalAlpha=d;break;case"BM":this.ctx.globalCompositeOperation=d;break;case"SMask":this.current.activeSMask=d?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(d);break}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const l=this.inSMaskMode;this.current.activeSMask&&!l?this.beginSMaskMode():!this.current.activeSMask&&l&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const l=this.ctx.canvas.width,U=this.ctx.canvas.height,d="smaskGroupAt"+this.groupLevel,c=this.cachedCanvases.getCanvas(d,l,U);this.suspendedCtx=this.ctx,this.ctx=c.context;const W=this.ctx;W.setTransform(...rl(this.suspendedCtx)),iW(this.suspendedCtx,W),vM(W,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),iW(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(l){if(!this.current.activeSMask)return;l?(l[0]=Math.floor(l[0]),l[1]=Math.floor(l[1]),l[2]=Math.ceil(l[2]),l[3]=Math.ceil(l[3])):l=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const U=this.current.activeSMask,d=this.suspendedCtx;this.composeSMask(d,U,this.ctx,l),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}composeSMask(l,U,d,c){const W=c[0],s=c[1],Q=c[2]-W,R=c[3]-s;Q===0||R===0||(this.genericComposeSMask(U.context,d,Q,R,U.subtype,U.backdrop,U.transferMap,W,s,U.offsetX,U.offsetY),l.save(),l.globalAlpha=1,l.globalCompositeOperation="source-over",l.setTransform(1,0,0,1,0,0),l.drawImage(d.canvas,0,0),l.restore())}genericComposeSMask(l,U,d,c,W,s,Q,R,m,e,S){let Y=l.canvas,p=R-e,B=m-S;if(s){if(p<0||B<0||p+d>Y.width||B+c>Y.height){const L=this.cachedCanvases.getCanvas("maskExtension",d,c),D=L.context;D.drawImage(Y,-p,-B),s.some(x=>x!==0)&&(D.globalCompositeOperation="destination-atop",D.fillStyle=al.makeHexColor(...s),D.fillRect(0,0,d,c),D.globalCompositeOperation="source-over"),Y=L.canvas,p=B=0}else if(s.some(L=>L!==0)){l.save(),l.globalAlpha=1,l.setTransform(1,0,0,1,0,0);const L=new Path2D;L.rect(p,B,d,c),l.clip(L),l.globalCompositeOperation="destination-atop",l.fillStyle=al.makeHexColor(...s),l.fillRect(p,B,d,c),l.restore()}}U.save(),U.globalAlpha=1,U.setTransform(1,0,0,1,0,0),W==="Alpha"&&Q?U.filter=this.filterFactory.addAlphaFilter(Q):W==="Luminosity"&&(U.filter=this.filterFactory.addLuminosityFilter(Q));const z=new Path2D;z.rect(R,m,d,c),U.clip(z),U.globalCompositeOperation="destination-in",U.drawImage(Y,p,B,d,c,R,m,d,c),U.restore()}save(){this.inSMaskMode?(iW(this.ctx,this.suspendedCtx),this.suspendedCtx.save()):this.ctx.save();const l=this.current;this.stateStack.push(l),this.current=l.clone()}restore(){this.stateStack.length===0&&this.inSMaskMode&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),iW(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(l,U,d,c,W,s){this.ctx.transform(l,U,d,c,W,s),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(l,U,d){const c=this.ctx,W=this.current;let s=W.x,Q=W.y,R,m;const e=rl(c),S=e[0]===0&&e[3]===0||e[1]===0&&e[2]===0,Y=S?d.slice(0):null;for(let p=0,B=0,z=l.length;p<z;p++)switch(l[p]|0){case cd.rectangle:s=U[B++],Q=U[B++];const L=U[B++],D=U[B++],x=s+L,f=Q+D;c.moveTo(s,Q),L===0||D===0?c.lineTo(x,f):(c.lineTo(x,Q),c.lineTo(x,f),c.lineTo(s,f)),S||W.updateRectMinMax(e,[s,Q,x,f]),c.closePath();break;case cd.moveTo:s=U[B++],Q=U[B++],c.moveTo(s,Q),S||W.updatePathMinMax(e,s,Q);break;case cd.lineTo:s=U[B++],Q=U[B++],c.lineTo(s,Q),S||W.updatePathMinMax(e,s,Q);break;case cd.curveTo:R=s,m=Q,s=U[B+4],Q=U[B+5],c.bezierCurveTo(U[B],U[B+1],U[B+2],U[B+3],s,Q),W.updateCurvePathMinMax(e,R,m,U[B],U[B+1],U[B+2],U[B+3],s,Q,Y),B+=6;break;case cd.curveTo2:R=s,m=Q,c.bezierCurveTo(s,Q,U[B],U[B+1],U[B+2],U[B+3]),W.updateCurvePathMinMax(e,R,m,s,Q,U[B],U[B+1],U[B+2],U[B+3],Y),s=U[B+2],Q=U[B+3],B+=4;break;case cd.curveTo3:R=s,m=Q,s=U[B+2],Q=U[B+3],c.bezierCurveTo(U[B],U[B+1],s,Q,s,Q),W.updateCurvePathMinMax(e,R,m,U[B],U[B+1],s,Q,s,Q,Y),B+=4;break;case cd.closePath:c.closePath();break}S&&W.updateScalingPathMinMax(e,Y),W.setCurrentPoint(s,Q)}closePath(){this.ctx.closePath()}stroke(l=!0){const U=this.ctx,d=this.current.strokeColor;U.globalAlpha=this.current.strokeAlpha,this.contentVisible&&(typeof d=="object"&&d!=null&&d.getPattern?(U.save(),U.strokeStyle=d.getPattern(U,this,$d(U),oU.STROKE),this.rescaleAndStroke(!1),U.restore()):this.rescaleAndStroke(!0)),l&&this.consumePath(this.current.getClippedPathBoundingBox()),U.globalAlpha=this.current.fillAlpha}closeStroke(){this.closePath(),this.stroke()}fill(l=!0){const U=this.ctx,d=this.current.fillColor,c=this.current.patternFill;let W=!1;c&&(U.save(),U.fillStyle=d.getPattern(U,this,$d(U),oU.FILL),W=!0);const s=this.current.getClippedPathBoundingBox();this.contentVisible&&s!==null&&(this.pendingEOFill?(U.fill("evenodd"),this.pendingEOFill=!1):U.fill()),W&&U.restore(),l&&this.consumePath(s)}eoFill(){this.pendingEOFill=!0,this.fill()}fillStroke(){this.fill(!1),this.stroke(!1),this.consumePath()}eoFillStroke(){this.pendingEOFill=!0,this.fillStroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}endPath(){this.consumePath()}clip(){this.pendingClip=qM}eoClip(){this.pendingClip=Em}beginText(){this.current.textMatrix=am,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}endText(){const l=this.pendingTextPaths,U=this.ctx;if(l===void 0){U.beginPath();return}U.save(),U.beginPath();for(const d of l)U.setTransform(...d.transform),U.translate(d.x,d.y),d.addToPath(U,d.fontSize);U.restore(),U.clip(),U.beginPath(),delete this.pendingTextPaths}setCharSpacing(l){this.current.charSpacing=l}setWordSpacing(l){this.current.wordSpacing=l}setHScale(l){this.current.textHScale=l/100}setLeading(l){this.current.leading=-l}setFont(l,U){var d;const c=this.commonObjs.get(l),W=this.current;if(!c)throw new Error(`Can't find font for ${l}`);if(W.fontMatrix=c.fontMatrix||jN,(W.fontMatrix[0]===0||W.fontMatrix[3]===0)&&Jl("Invalid font matrix for font "+l),U<0?(U=-U,W.fontDirection=-1):W.fontDirection=1,this.current.font=c,this.current.fontSize=U,c.isType3Font)return;const s=c.loadedName||"sans-serif",Q=((d=c.systemFontInfo)==null?void 0:d.css)||`"${s}", ${c.fallbackName}`;let R="normal";c.black?R="900":c.bold&&(R="bold");const m=c.italic?"italic":"normal";let e=U;U<Bm?e=Bm:U>om&&(e=om),this.current.fontSizeScale=U/e,this.ctx.font=`${m} ${R} ${e}px ${Q}`}setTextRenderingMode(l){this.current.textRenderingMode=l}setTextRise(l){this.current.textRise=l}moveText(l,U){this.current.x=this.current.lineX+=l,this.current.y=this.current.lineY+=U}setLeadingMoveText(l,U){this.setLeading(-U),this.moveText(l,U)}setTextMatrix(l,U,d,c,W,s){this.current.textMatrix=[l,U,d,c,W,s],this.current.textMatrixScale=Math.hypot(l,U),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(l,U,d,c){const W=this.ctx,s=this.current,Q=s.font,R=s.textRenderingMode,m=s.fontSize/s.fontSizeScale,e=R&GU.FILL_STROKE_MASK,S=!!(R&GU.ADD_TO_PATH_FLAG),Y=s.patternFill&&!Q.missingFile;let p;(Q.disableFontFace||S||Y)&&(p=Q.getPathGenerator(this.commonObjs,l)),Q.disableFontFace||Y?(W.save(),W.translate(U,d),W.beginPath(),p(W,m),c&&W.setTransform(...c),(e===GU.FILL||e===GU.FILL_STROKE)&&W.fill(),(e===GU.STROKE||e===GU.FILL_STROKE)&&W.stroke(),W.restore()):((e===GU.FILL||e===GU.FILL_STROKE)&&W.fillText(l,U,d),(e===GU.STROKE||e===GU.FILL_STROKE)&&W.strokeText(l,U,d)),S&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:rl(W),x:U,y:d,fontSize:m,addToPath:p})}get isFontSubpixelAAEnabled(){const{context:l}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);l.scale(1.5,1),l.fillText("I",0,10);const U=l.getImageData(0,0,10,10).data;let d=!1;for(let c=3;c<U.length;c+=4)if(U[c]>0&&U[c]<255){d=!0;break}return ol(this,"isFontSubpixelAAEnabled",d)}showText(l){const U=this.current,d=U.font;if(d.isType3Font)return this.showType3Text(l);const c=U.fontSize;if(c===0)return;const W=this.ctx,s=U.fontSizeScale,Q=U.charSpacing,R=U.wordSpacing,m=U.fontDirection,e=U.textHScale*m,S=l.length,Y=d.vertical,p=Y?1:-1,B=d.defaultVMetrics,z=c*U.fontMatrix[0],L=U.textRenderingMode===GU.FILL&&!d.disableFontFace&&!U.patternFill;W.save(),W.transform(...U.textMatrix),W.translate(U.x,U.y+U.textRise),m>0?W.scale(e,-1):W.scale(e,1);let D;if(U.patternFill){W.save();const tl=U.fillColor.getPattern(W,this,$d(W),oU.FILL);D=rl(W),W.restore(),W.fillStyle=tl}let x=U.lineWidth;const f=U.textMatrixScale;if(f===0||x===0){const tl=U.textRenderingMode&GU.FILL_STROKE_MASK;(tl===GU.STROKE||tl===GU.FILL_STROKE)&&(x=this.getSinglePixelWidth())}else x/=f;if(s!==1&&(W.scale(s,s),x/=s),W.lineWidth=x,d.isInvalidPDFjsFont){const tl=[];let Wl=0;for(const hl of l)tl.push(hl.unicode),Wl+=hl.width;W.fillText(tl.join(""),0,0),U.x+=Wl*z*e,W.restore(),this.compose();return}let q=0,dl;for(dl=0;dl<S;++dl){const tl=l[dl];if(typeof tl=="number"){q+=p*tl*c/1e3;continue}let Wl=!1;const hl=(tl.isSpace?R:0)+Q,Tl=tl.fontChar,Xl=tl.accent;let Sl,Kl,xl=tl.width;if(Y){const Hl=tl.vmetric||B,il=-(tl.vmetric?Hl[1]:xl*.5)*z,Ml=Hl[2]*z;xl=Hl?-Hl[0]:xl,Sl=il/s,Kl=(q+Ml)/s}else Sl=q/s,Kl=0;if(d.remeasure&&xl>0){const Hl=W.measureText(Tl).width*1e3/c*s;if(xl<Hl&&this.isFontSubpixelAAEnabled){const il=xl/Hl;Wl=!0,W.save(),W.scale(il,1),Sl/=il}else xl!==Hl&&(Sl+=(xl-Hl)/2e3*c/s)}if(this.contentVisible&&(tl.isInFont||d.missingFile)){if(L&&!Xl)W.fillText(Tl,Sl,Kl);else if(this.paintChar(Tl,Sl,Kl,D),Xl){const Hl=Sl+c*Xl.offset.x/s,il=Kl-c*Xl.offset.y/s;this.paintChar(Xl.fontChar,Hl,il,D)}}const yU=Y?xl*z-hl*m:xl*z+hl*m;q+=yU,Wl&&W.restore()}Y?U.y-=q:U.x+=q*e,W.restore(),this.compose()}showType3Text(l){const U=this.ctx,d=this.current,c=d.font,W=d.fontSize,s=d.fontDirection,Q=c.vertical?1:-1,R=d.charSpacing,m=d.wordSpacing,e=d.textHScale*s,S=d.fontMatrix||jN,Y=l.length,p=d.textRenderingMode===GU.INVISIBLE;let B,z,L,D;if(!(p||W===0)){for(this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null,U.save(),U.transform(...d.textMatrix),U.translate(d.x,d.y),U.scale(e,s),B=0;B<Y;++B){if(z=l[B],typeof z=="number"){D=Q*z*W/1e3,this.ctx.translate(D,0),d.x+=D*e;continue}const x=(z.isSpace?m:0)+R,f=c.charProcOperatorList[z.operatorListId];if(!f){Jl(`Type3 character "${z.operatorListId}" is not available.`);continue}this.contentVisible&&(this.processingType3=z,this.save(),U.scale(W,W),U.transform(...S),this.executeOperatorList(f),this.restore()),L=al.applyTransform([z.width,0],S)[0]*W+x,U.translate(L,0),d.x+=L*e}U.restore(),this.processingType3=null}}setCharWidth(l,U){}setCharWidthAndBounds(l,U,d,c,W,s){this.ctx.rect(d,c,W-d,s-c),this.ctx.clip(),this.endPath()}getColorN_Pattern(l){let U;if(l[0]==="TilingPattern"){const d=l[1],c=this.baseTransform||rl(this.ctx),W={createCanvasGraphics:s=>new s2(s,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};U=new gM(l,d,this.ctx,W,c)}else U=this._getPattern(l[1],l[2]);return U}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(l,U,d){const c=al.makeHexColor(l,U,d);this.ctx.strokeStyle=c,this.current.strokeColor=c}setFillRGBColor(l,U,d){const c=al.makeHexColor(l,U,d);this.ctx.fillStyle=c,this.current.fillColor=c,this.current.patternFill=!1}_getPattern(l,U=null){let d;return this.cachedPatterns.has(l)?d=this.cachedPatterns.get(l):(d=OM(this.getObject(l)),this.cachedPatterns.set(l,d)),U&&(d.matrix=U),d}shadingFill(l){if(!this.contentVisible)return;const U=this.ctx;this.save();const d=this._getPattern(l);U.fillStyle=d.getPattern(U,this,$d(U),oU.SHADING);const c=$d(U);if(c){const{width:W,height:s}=U.canvas,[Q,R,m,e]=al.getAxialAlignedBoundingBox([0,0,W,s],c);this.ctx.fillRect(Q,R,m-Q,e-R)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){Dl("Should not call beginInlineImage")}beginImageData(){Dl("Should not call beginImageData")}paintFormXObjectBegin(l,U){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),l&&this.transform(...l),this.baseTransform=rl(this.ctx),U)){const d=U[2]-U[0],c=U[3]-U[1];this.ctx.rect(U[0],U[1],d,c),this.current.updateRectMinMax(rl(this.ctx),U),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(l){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const U=this.ctx;l.isolated||gn("TODO: Support non-isolated groups."),l.knockout&&Jl("Knockout groups not supported.");const d=rl(U);if(l.matrix&&U.transform(...l.matrix),!l.bbox)throw new Error("Bounding box is required.");let c=al.getAxialAlignedBoundingBox(l.bbox,rl(U));const W=[0,0,U.canvas.width,U.canvas.height];c=al.intersect(c,W)||[0,0,0,0];const s=Math.floor(c[0]),Q=Math.floor(c[1]),R=Math.max(Math.ceil(c[2])-s,1),m=Math.max(Math.ceil(c[3])-Q,1);this.current.startNewPathAndClipBox([0,0,R,m]);let e="groupAt"+this.groupLevel;l.smask&&(e+="_smask_"+this.smaskCounter++%2);const S=this.cachedCanvases.getCanvas(e,R,m),Y=S.context;Y.translate(-s,-Q),Y.transform(...d),l.smask?this.smaskStack.push({canvas:S.canvas,context:Y,offsetX:s,offsetY:Q,subtype:l.smask.subtype,backdrop:l.smask.backdrop,transferMap:l.smask.transferMap||null,startTransformInverse:null}):(U.setTransform(1,0,0,1,0,0),U.translate(s,Q),U.save()),iW(U,Y),this.ctx=Y,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(U),this.groupLevel++}endGroup(l){if(!this.contentVisible)return;this.groupLevel--;const U=this.ctx,d=this.groupStack.pop();if(this.ctx=d,this.ctx.imageSmoothingEnabled=!1,l.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const c=rl(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...c);const W=al.getAxialAlignedBoundingBox([0,0,U.canvas.width,U.canvas.height],c);this.ctx.drawImage(U.canvas,0,0),this.ctx.restore(),this.compose(W)}}beginAnnotation(l,U,d,c,W){if(G(this,vV,ai).call(this),ds(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),U){const s=U[2]-U[0],Q=U[3]-U[1];if(W&&this.annotationCanvasMap){d=d.slice(),d[4]-=U[0],d[5]-=U[1],U=U.slice(),U[0]=U[1]=0,U[2]=s,U[3]=Q;const[R,m]=al.singularValueDecompose2dScale(rl(this.ctx)),{viewportScale:e}=this,S=Math.ceil(s*this.outputScaleX*e),Y=Math.ceil(Q*this.outputScaleY*e);this.annotationCanvas=this.canvasFactory.create(S,Y);const{canvas:p,context:B}=this.annotationCanvas;this.annotationCanvasMap.set(l,p),this.annotationCanvas.savedCtx=this.ctx,this.ctx=B,this.ctx.save(),this.ctx.setTransform(R,0,0,-m,0,Q*m),ds(this.ctx)}else ds(this.ctx),this.ctx.rect(U[0],U[1],s,Q),this.ctx.clip(),this.endPath()}this.current=new Lm(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...d),this.transform(...c)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),G(this,PV,ni).call(this),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(l){if(!this.contentVisible)return;const U=l.count;l=this.getObject(l.data,l),l.count=U;const d=this.ctx,c=this.processingType3;if(c&&(c.compiled===void 0&&(c.compiled=fM(l)),c.compiled)){c.compiled(d);return}const W=this._createMaskCanvas(l),s=W.canvas;d.save(),d.setTransform(1,0,0,1,0,0),d.drawImage(s,W.offsetX,W.offsetY),d.restore(),this.compose()}paintImageMaskXObjectRepeat(l,U,d=0,c=0,W,s){if(!this.contentVisible)return;l=this.getObject(l.data,l);const Q=this.ctx;Q.save();const R=rl(Q);Q.transform(U,d,c,W,0,0);const m=this._createMaskCanvas(l);Q.setTransform(1,0,0,1,m.offsetX-R[4],m.offsetY-R[5]);for(let e=0,S=s.length;e<S;e+=2){const Y=al.transform(R,[U,d,c,W,s[e],s[e+1]]),[p,B]=al.applyTransform([0,0],Y);Q.drawImage(m.canvas,p,B)}Q.restore(),this.compose()}paintImageMaskXObjectGroup(l){if(!this.contentVisible)return;const U=this.ctx,d=this.current.fillColor,c=this.current.patternFill;for(const W of l){const{data:s,width:Q,height:R,transform:m}=W,e=this.cachedCanvases.getCanvas("maskCanvas",Q,R),S=e.context;S.save();const Y=this.getObject(s,W);Im(S,Y),S.globalCompositeOperation="source-in",S.fillStyle=c?d.getPattern(S,this,$d(U),oU.FILL):d,S.fillRect(0,0,Q,R),S.restore(),U.save(),U.transform(...m),U.scale(1,-1),Us(U,e.canvas,0,0,Q,R,0,-1,1,1),U.restore()}this.compose()}paintImageXObject(l){if(!this.contentVisible)return;const U=this.getObject(l);if(!U){Jl("Dependent image isn't ready yet");return}this.paintInlineImageXObject(U)}paintImageXObjectRepeat(l,U,d,c){if(!this.contentVisible)return;const W=this.getObject(l);if(!W){Jl("Dependent image isn't ready yet");return}const s=W.width,Q=W.height,R=[];for(let m=0,e=c.length;m<e;m+=2)R.push({transform:[U,0,0,d,c[m],c[m+1]],x:0,y:0,w:s,h:Q});this.paintInlineImageXObjectGroup(W,R)}applyTransferMapsToCanvas(l){return this.current.transferMaps!=="none"&&(l.filter=this.current.transferMaps,l.drawImage(l.canvas,0,0),l.filter="none"),l.canvas}applyTransferMapsToBitmap(l){if(this.current.transferMaps==="none")return l.bitmap;const{bitmap:U,width:d,height:c}=l,W=this.cachedCanvases.getCanvas("inlineImage",d,c),s=W.context;return s.filter=this.current.transferMaps,s.drawImage(U,0,0),s.filter="none",W.canvas}paintInlineImageXObject(l){if(!this.contentVisible)return;const U=l.width,d=l.height,c=this.ctx;if(this.save(),!MU){const{filter:Q}=c;Q!=="none"&&Q!==""&&(c.filter="none")}c.scale(1/U,-1/d);let W;if(l.bitmap)W=this.applyTransferMapsToBitmap(l);else if(typeof HTMLElement=="function"&&l instanceof HTMLElement||!l.data)W=l;else{const Q=this.cachedCanvases.getCanvas("inlineImage",U,d).context;km(Q,l),W=this.applyTransferMapsToCanvas(Q)}const s=this._scaleImage(W,$d(c));c.imageSmoothingEnabled=Dm(rl(c),l.interpolate),Us(c,s.img,0,0,s.paintWidth,s.paintHeight,0,-d,U,d),this.compose(),this.restore()}paintInlineImageXObjectGroup(l,U){if(!this.contentVisible)return;const d=this.ctx;let c;if(l.bitmap)c=l.bitmap;else{const W=l.width,s=l.height,Q=this.cachedCanvases.getCanvas("inlineImage",W,s).context;km(Q,l),c=this.applyTransferMapsToCanvas(Q)}for(const W of U)d.save(),d.transform(...W.transform),d.scale(1,-1),Us(d,c,W.x,W.y,W.w,W.h,0,-1,1,1),d.restore();this.compose()}paintSolidColorImageMask(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}markPoint(l){}markPointProps(l,U){}beginMarkedContent(l){this.markedContentStack.push({visible:!0})}beginMarkedContentProps(l,U){l==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(U)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}endMarkedContent(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}beginCompat(){}endCompat(){}consumePath(l){const U=this.current.isEmptyClip();this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(l);const d=this.ctx;this.pendingClip&&(U||(this.pendingClip===Em?d.clip("evenodd"):d.clip()),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),d.beginPath()}getSinglePixelWidth(){if(!this._cachedGetSinglePixelWidth){const l=rl(this.ctx);if(l[1]===0&&l[2]===0)this._cachedGetSinglePixelWidth=1/Math.min(Math.abs(l[0]),Math.abs(l[3]));else{const U=Math.abs(l[0]*l[3]-l[2]*l[1]),d=Math.hypot(l[0],l[2]),c=Math.hypot(l[1],l[3]);this._cachedGetSinglePixelWidth=Math.max(d,c)/U}}return this._cachedGetSinglePixelWidth}getScaleForStroking(){if(this._cachedScaleForStroking[0]===-1){const{lineWidth:l}=this.current,{a:U,b:d,c,d:W}=this.ctx.getTransform();let s,Q;if(d===0&&c===0){const R=Math.abs(U),m=Math.abs(W);if(R===m)if(l===0)s=Q=1/R;else{const e=R*l;s=Q=e<1?1/e:1}else if(l===0)s=1/R,Q=1/m;else{const e=R*l,S=m*l;s=e<1?1/e:1,Q=S<1?1/S:1}}else{const R=Math.abs(U*W-d*c),m=Math.hypot(U,d),e=Math.hypot(c,W);if(l===0)s=e/R,Q=m/R;else{const S=l*R;s=e>S?e/S:1,Q=m>S?m/S:1}}this._cachedScaleForStroking[0]=s,this._cachedScaleForStroking[1]=Q}return this._cachedScaleForStroking}rescaleAndStroke(l){const{ctx:U}=this,{lineWidth:d}=this.current,[c,W]=this.getScaleForStroking();if(U.lineWidth=d||1,c===1&&W===1){U.stroke();return}const s=U.getLineDash();if(l&&U.save(),U.scale(c,W),s.length>0){const Q=Math.max(c,W);U.setLineDash(s.map(R=>R/Q)),U.lineDashOffset/=Q}U.stroke(),l&&U.restore()}isContentVisible(){for(let l=this.markedContentStack.length-1;l>=0;l--)if(!this.markedContentStack[l].visible)return!1;return!0}};vV=new WeakSet,ai=function(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)},PV=new WeakSet,ni=function(){if(this.pageColors){const V=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if(V!=="none"){const l=this.ctx.filter;this.ctx.filter=V,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=l}}};let Zs=$M;for(const V in cd)Zs.prototype[V]!==void 0&&(Zs.prototype[cd[V]]=Zs.prototype[V]);class OZ{static get workerPort(){return F(this,fV)}static set workerPort(l){if(!(typeof Worker<"u"&&l instanceof Worker)&&l!==null)throw new Error("Invalid `workerPort` type.");J(this,fV,l)}static get workerSrc(){return F(this,AV)}static set workerSrc(l){if(typeof l!="string")throw new Error("Invalid `workerSrc` type.");J(this,AV,l)}}fV=new WeakMap,AV=new WeakMap,h(OZ,fV,null),h(OZ,AV,"");const ts={UNKNOWN:0,DATA:1,ERROR:2},Pl={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function gU(V){switch(V instanceof Error||typeof V=="object"&&V!==null||Dl('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),V.name){case"AbortException":return new Dt(V.message);case"MissingPDFException":return new It(V.message);case"PasswordException":return new KN(V.message,V.code);case"UnexpectedResponseException":return new Kn(V.message,V.status);case"UnknownErrorException":return new HN(V.message,V.details);default:return new HN(V.message,V.toString())}}class NW{constructor(l,U,d){h(this,si),h(this,Qi),h(this,lc),this.sourceName=l,this.targetName=U,this.comObj=d,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=c=>{const W=c.data;if(W.targetName!==this.sourceName)return;if(W.stream){G(this,Qi,Nb).call(this,W);return}if(W.callback){const Q=W.callbackId,R=this.callbackCapabilities[Q];if(!R)throw new Error(`Cannot resolve callback ${Q}`);if(delete this.callbackCapabilities[Q],W.callback===ts.DATA)R.resolve(W.data);else if(W.callback===ts.ERROR)R.reject(gU(W.reason));else throw new Error("Unexpected callback case");return}const s=this.actionHandler[W.action];if(!s)throw new Error(`Unknown action from worker: ${W.action}`);if(W.callbackId){const Q=this.sourceName,R=W.sourceName;new Promise(function(m){m(s(W.data))}).then(function(m){d.postMessage({sourceName:Q,targetName:R,callback:ts.DATA,callbackId:W.callbackId,data:m})},function(m){d.postMessage({sourceName:Q,targetName:R,callback:ts.ERROR,callbackId:W.callbackId,reason:gU(m)})});return}if(W.streamId){G(this,si,ib).call(this,W);return}s(W.data)},d.addEventListener("message",this._onComObjOnMessage)}on(l,U){const d=this.actionHandler;if(d[l])throw new Error(`There is already an actionName called "${l}"`);d[l]=U}send(l,U,d){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:l,data:U},d)}sendWithPromise(l,U,d){const c=this.callbackId++,W=Promise.withResolvers();this.callbackCapabilities[c]=W;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:l,callbackId:c,data:U},d)}catch(s){W.reject(s)}return W.promise}sendWithStream(l,U,d,c){const W=this.streamId++,s=this.sourceName,Q=this.targetName,R=this.comObj;return new ReadableStream({start:m=>{const e=Promise.withResolvers();return this.streamControllers[W]={controller:m,startCall:e,pullCall:null,cancelCall:null,isClosed:!1},R.postMessage({sourceName:s,targetName:Q,action:l,streamId:W,data:U,desiredSize:m.desiredSize},c),e.promise},pull:m=>{const e=Promise.withResolvers();return this.streamControllers[W].pullCall=e,R.postMessage({sourceName:s,targetName:Q,stream:Pl.PULL,streamId:W,desiredSize:m.desiredSize}),e.promise},cancel:m=>{lU(m instanceof Error,"cancel must have a valid reason");const e=Promise.withResolvers();return this.streamControllers[W].cancelCall=e,this.streamControllers[W].isClosed=!0,R.postMessage({sourceName:s,targetName:Q,stream:Pl.CANCEL,streamId:W,reason:gU(m)}),e.promise}},d)}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}si=new WeakSet,ib=function(V){const l=V.streamId,U=this.sourceName,d=V.sourceName,c=this.comObj,W=this,s=this.actionHandler[V.action],Q={enqueue(R,m=1,e){if(this.isCancelled)return;const S=this.desiredSize;this.desiredSize-=m,S>0&&this.desiredSize<=0&&(this.sinkCapability=Promise.withResolvers(),this.ready=this.sinkCapability.promise),c.postMessage({sourceName:U,targetName:d,stream:Pl.ENQUEUE,streamId:l,chunk:R},e)},close(){this.isCancelled||(this.isCancelled=!0,c.postMessage({sourceName:U,targetName:d,stream:Pl.CLOSE,streamId:l}),delete W.streamSinks[l])},error(R){lU(R instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,c.postMessage({sourceName:U,targetName:d,stream:Pl.ERROR,streamId:l,reason:gU(R)}))},sinkCapability:Promise.withResolvers(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:V.desiredSize,ready:null};Q.sinkCapability.resolve(),Q.ready=Q.sinkCapability.promise,this.streamSinks[l]=Q,new Promise(function(R){R(s(V.data,Q))}).then(function(){c.postMessage({sourceName:U,targetName:d,stream:Pl.START_COMPLETE,streamId:l,success:!0})},function(R){c.postMessage({sourceName:U,targetName:d,stream:Pl.START_COMPLETE,streamId:l,reason:gU(R)})})},Qi=new WeakSet,Nb=function(V){const l=V.streamId,U=this.sourceName,d=V.sourceName,c=this.comObj,W=this.streamControllers[l],s=this.streamSinks[l];switch(V.stream){case Pl.START_COMPLETE:V.success?W.startCall.resolve():W.startCall.reject(gU(V.reason));break;case Pl.PULL_COMPLETE:V.success?W.pullCall.resolve():W.pullCall.reject(gU(V.reason));break;case Pl.PULL:if(!s){c.postMessage({sourceName:U,targetName:d,stream:Pl.PULL_COMPLETE,streamId:l,success:!0});break}s.desiredSize<=0&&V.desiredSize>0&&s.sinkCapability.resolve(),s.desiredSize=V.desiredSize,new Promise(function(Q){var R;Q((R=s.onPull)==null?void 0:R.call(s))}).then(function(){c.postMessage({sourceName:U,targetName:d,stream:Pl.PULL_COMPLETE,streamId:l,success:!0})},function(Q){c.postMessage({sourceName:U,targetName:d,stream:Pl.PULL_COMPLETE,streamId:l,reason:gU(Q)})});break;case Pl.ENQUEUE:if(lU(W,"enqueue should have stream controller"),W.isClosed)break;W.controller.enqueue(V.chunk);break;case Pl.CLOSE:if(lU(W,"close should have stream controller"),W.isClosed)break;W.isClosed=!0,W.controller.close(),G(this,lc,_V).call(this,W,l);break;case Pl.ERROR:lU(W,"error should have stream controller"),W.controller.error(gU(V.reason)),G(this,lc,_V).call(this,W,l);break;case Pl.CANCEL_COMPLETE:V.success?W.cancelCall.resolve():W.cancelCall.reject(gU(V.reason)),G(this,lc,_V).call(this,W,l);break;case Pl.CANCEL:if(!s)break;new Promise(function(Q){var R;Q((R=s.onCancel)==null?void 0:R.call(s,gU(V.reason)))}).then(function(){c.postMessage({sourceName:U,targetName:d,stream:Pl.CANCEL_COMPLETE,streamId:l,success:!0})},function(Q){c.postMessage({sourceName:U,targetName:d,stream:Pl.CANCEL_COMPLETE,streamId:l,reason:gU(Q)})}),s.sinkCapability.reject(gU(V.reason)),s.isCancelled=!0,delete this.streamSinks[l];break;default:throw new Error("Unexpected stream case")}},lc=new WeakSet,_V=async function(V,l){var U,d,c;await Promise.allSettled([(U=V.startCall)==null?void 0:U.promise,(d=V.pullCall)==null?void 0:d.promise,(c=V.cancelCall)==null?void 0:c.promise]),delete this.streamControllers[l]};class lG{constructor({parsedData:l,rawData:U}){h(this,bF,void 0),h(this,qV,void 0),J(this,bF,l),J(this,qV,U)}getRaw(){return F(this,qV)}get(l){return F(this,bF).get(l)??null}getAll(){return vN(F(this,bF))}has(l){return F(this,bF).has(l)}}bF=new WeakMap,qV=new WeakMap;const gZ=Symbol("INTERNAL");class UG{constructor(l,{name:U,intent:d,usage:c}){h(this,$V,!1),h(this,la,!1),h(this,Ua,!1),h(this,Uc,!0),J(this,$V,!!(l&dd.DISPLAY)),J(this,la,!!(l&dd.PRINT)),this.name=U,this.intent=d,this.usage=c}get visible(){if(F(this,Ua))return F(this,Uc);if(!F(this,Uc))return!1;const{print:l,view:U}=this.usage;return F(this,$V)?(U==null?void 0:U.viewState)!=="OFF":F(this,la)?(l==null?void 0:l.printState)!=="OFF":!0}_setVisible(l,U,d=!1){l!==gZ&&Dl("Internal method `_setVisible` called."),J(this,Ua,d),J(this,Uc,U)}}$V=new WeakMap,la=new WeakMap,Ua=new WeakMap,Uc=new WeakMap;class dG{constructor(l,U=dd.DISPLAY){if(h(this,da),h(this,nt,null),h(this,El,new Map),h(this,dc,null),h(this,Zc,null),this.renderingIntent=U,this.name=null,this.creator=null,l!==null){this.name=l.name,this.creator=l.creator,J(this,Zc,l.order);for(const d of l.groups)F(this,El).set(d.id,new UG(U,d));if(l.baseState==="OFF")for(const d of F(this,El).values())d._setVisible(gZ,!1);for(const d of l.on)F(this,El).get(d)._setVisible(gZ,!0);for(const d of l.off)F(this,El).get(d)._setVisible(gZ,!1);J(this,dc,this.getHash())}}isVisible(l){if(F(this,El).size===0)return!0;if(!l)return gn("Optional content group not defined."),!0;if(l.type==="OCG")return F(this,El).has(l.id)?F(this,El).get(l.id).visible:(Jl(`Optional content group not found: ${l.id}`),!0);if(l.type==="OCMD"){if(l.expression)return G(this,da,ii).call(this,l.expression);if(!l.policy||l.policy==="AnyOn"){for(const U of l.ids){if(!F(this,El).has(U))return Jl(`Optional content group not found: ${U}`),!0;if(F(this,El).get(U).visible)return!0}return!1}else if(l.policy==="AllOn"){for(const U of l.ids){if(!F(this,El).has(U))return Jl(`Optional content group not found: ${U}`),!0;if(!F(this,El).get(U).visible)return!1}return!0}else if(l.policy==="AnyOff"){for(const U of l.ids){if(!F(this,El).has(U))return Jl(`Optional content group not found: ${U}`),!0;if(!F(this,El).get(U).visible)return!0}return!1}else if(l.policy==="AllOff"){for(const U of l.ids){if(!F(this,El).has(U))return Jl(`Optional content group not found: ${U}`),!0;if(F(this,El).get(U).visible)return!1}return!0}return Jl(`Unknown optional content policy ${l.policy}.`),!0}return Jl(`Unknown group type ${l.type}.`),!0}setVisibility(l,U=!0){const d=F(this,El).get(l);if(!d){Jl(`Optional content group not found: ${l}`);return}d._setVisible(gZ,!!U,!0),J(this,nt,null)}setOCGState({state:l,preserveRB:U}){let d;for(const c of l){switch(c){case"ON":case"OFF":case"Toggle":d=c;continue}const W=F(this,El).get(c);if(W)switch(d){case"ON":W._setVisible(gZ,!0);break;case"OFF":W._setVisible(gZ,!1);break;case"Toggle":W._setVisible(gZ,!W.visible);break}}J(this,nt,null)}get hasInitialVisibility(){return F(this,dc)===null||this.getHash()===F(this,dc)}getOrder(){return F(this,El).size?F(this,Zc)?F(this,Zc).slice():[...F(this,El).keys()]:null}getGroups(){return F(this,El).size>0?vN(F(this,El)):null}getGroup(l){return F(this,El).get(l)||null}getHash(){if(F(this,nt)!==null)return F(this,nt);const l=new Sm;for(const[U,d]of F(this,El))l.update(`${U}:${d.visible}`);return J(this,nt,l.hexdigest())}}nt=new WeakMap,El=new WeakMap,dc=new WeakMap,Zc=new WeakMap,da=new WeakSet,ii=function(V){const l=V.length;if(l<2)return!0;const U=V[0];for(let d=1;d<l;d++){const c=V[d];let W;if(Array.isArray(c))W=G(this,da,ii).call(this,c);else if(F(this,El).has(c))W=F(this,El).get(c).visible;else return Jl(`Optional content group not found: ${c}`),!0;switch(U){case"And":if(!W)return!1;break;case"Or":if(W)return!0;break;case"Not":return!W;default:return!0}}return U==="And"};class ZG{constructor(l,{disableRange:U=!1,disableStream:d=!1}){lU(l,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.');const{length:c,initialData:W,progressiveDone:s,contentDispositionFilename:Q}=l;if(this._queuedChunks=[],this._progressiveDone=s,this._contentDispositionFilename=Q,(W==null?void 0:W.length)>0){const R=W instanceof Uint8Array&&W.byteLength===W.buffer.byteLength?W.buffer:new Uint8Array(W).buffer;this._queuedChunks.push(R)}this._pdfDataRangeTransport=l,this._isStreamingSupported=!d,this._isRangeSupported=!U,this._contentLength=c,this._fullRequestReader=null,this._rangeReaders=[],l.addRangeListener((R,m)=>{this._onReceiveData({begin:R,chunk:m})}),l.addProgressListener((R,m)=>{this._onProgress({loaded:R,total:m})}),l.addProgressiveReadListener(R=>{this._onReceiveData({chunk:R})}),l.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),l.transportReady()}_onReceiveData({begin:l,chunk:U}){const d=U instanceof Uint8Array&&U.byteLength===U.buffer.byteLength?U.buffer:new Uint8Array(U).buffer;if(l===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(d):this._queuedChunks.push(d);else{const c=this._rangeReaders.some(function(W){return W._begin!==l?!1:(W._enqueue(d),!0)});lU(c,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var l;return((l=this._fullRequestReader)==null?void 0:l._loaded)??0}_onProgress(l){var U,d,c,W;l.total===void 0?(d=(U=this._rangeReaders[0])==null?void 0:U.onProgress)==null||d.call(U,{loaded:l.loaded}):(W=(c=this._fullRequestReader)==null?void 0:c.onProgress)==null||W.call(c,{loaded:l.loaded,total:l.total})}_onProgressiveDone(){var l;(l=this._fullRequestReader)==null||l.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(l){const U=this._rangeReaders.indexOf(l);U>=0&&this._rangeReaders.splice(U,1)}getFullReader(){lU(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const l=this._queuedChunks;return this._queuedChunks=null,new tG(this,l,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(l,U){if(U<=this._progressiveDataLength)return null;const d=new FG(this,l,U);return this._pdfDataRangeTransport.requestDataRange(l,U),this._rangeReaders.push(d),d}cancelAllRequests(l){var U;(U=this._fullRequestReader)==null||U.cancel(l);for(const d of this._rangeReaders.slice(0))d.cancel(l);this._pdfDataRangeTransport.abort()}}class tG{constructor(l,U,d=!1,c=null){this._stream=l,this._done=d||!1,this._filename=lR(c)?c:null,this._queuedChunks=U||[],this._loaded=0;for(const W of this._queuedChunks)this._loaded+=W.byteLength;this._requests=[],this._headersReady=Promise.resolve(),l._fullRequestReader=this,this.onProgress=null}_enqueue(l){this._done||(this._requests.length>0?this._requests.shift().resolve({value:l,done:!1}):this._queuedChunks.push(l),this._loaded+=l.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const l=Promise.withResolvers();return this._requests.push(l),l.promise}cancel(l){this._done=!0;for(const U of this._requests)U.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class FG{constructor(l,U,d){this._stream=l,this._begin=U,this._end=d,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(l){if(!this._done){if(this._requests.length===0)this._queuedChunk=l;else{this._requests.shift().resolve({value:l,done:!1});for(const U of this._requests)U.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const U=this._queuedChunk;return this._queuedChunk=null,{value:U,done:!1}}if(this._done)return{value:void 0,done:!0};const l=Promise.withResolvers();return this._requests.push(l),l.promise}cancel(l){this._done=!0;for(const U of this._requests)U.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}function cG(V){let l=!0,U=d("filename\\*","i").exec(V);if(U){U=U[1];let e=Q(U);return e=unescape(e),e=R(e),e=m(e),W(e)}if(U=s(V),U){const e=m(U);return W(e)}if(U=d("filename","i").exec(V),U){U=U[1];let e=Q(U);return e=m(e),W(e)}function d(e,S){return new RegExp("(?:^|;)\\s*"+e+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',S)}function c(e,S){if(e){if(!/^[\x00-\xFF]+$/.test(S))return S;try{const Y=new TextDecoder(e,{fatal:!0}),p=Hn(S);S=Y.decode(p),l=!1}catch{}}return S}function W(e){return l&&/[\x80-\xff]/.test(e)&&(e=c("utf-8",e),l&&(e=c("iso-8859-1",e))),e}function s(e){const S=[];let Y;const p=d("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(Y=p.exec(e))!==null;){let[,z,L,D]=Y;if(z=parseInt(z,10),z in S){if(z===0)break;continue}S[z]=[L,D]}const B=[];for(let z=0;z<S.length&&z in S;++z){let[L,D]=S[z];D=Q(D),L&&(D=unescape(D),z===0&&(D=R(D))),B.push(D)}return B.join("")}function Q(e){if(e.startsWith('"')){const S=e.slice(1).split('\\"');for(let Y=0;Y<S.length;++Y){const p=S[Y].indexOf('"');p!==-1&&(S[Y]=S[Y].slice(0,p),S.length=Y+1),S[Y]=S[Y].replaceAll(/\\(.)/g,"$1")}e=S.join('"')}return e}function R(e){const S=e.indexOf("'");if(S===-1)return e;const Y=e.slice(0,S),p=e.slice(S+1).replace(/^[^']*'/,"");return c(Y,p)}function m(e){return!e.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(e)?e:e.replaceAll(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(S,Y,p,B){if(p==="q"||p==="Q")return B=B.replaceAll("_"," "),B=B.replaceAll(/=([0-9a-fA-F]{2})/g,function(z,L){return String.fromCharCode(parseInt(L,16))}),c(Y,B);try{B=atob(B)}catch{}return c(Y,B)})}return""}function aR({getResponseHeader:V,isHttp:l,rangeChunkSize:U,disableRange:d}){const c={allowRangeRequests:!1,suggestedLength:void 0},W=parseInt(V("Content-Length"),10);return!Number.isInteger(W)||(c.suggestedLength=W,W<=2*U)||d||!l||V("Accept-Ranges")!=="bytes"||(V("Content-Encoding")||"identity")!=="identity"||(c.allowRangeRequests=!0),c}function nR(V){const l=V("Content-Disposition");if(l){let U=cG(l);if(U.includes("%"))try{U=decodeURIComponent(U)}catch{}if(lR(U))return U}return null}function Fs(V,l){return V===404||V===0&&l.startsWith("file:")?new It('Missing PDF "'+l+'".'):new Kn(`Unexpected server response (${V}) while retrieving PDF "${l}".`,V)}function wm(V){return V===200||V===206}function Cm(V,l,U){return{method:"GET",headers:V,signal:U.signal,mode:"cors",credentials:l?"include":"same-origin",redirect:"follow"}}function xm(V){const l=new Headers;for(const U in V){const d=V[U];d!==void 0&&l.append(U,d)}return l}function rm(V){return V instanceof Uint8Array?V.buffer:V instanceof ArrayBuffer?V:(Jl(`getArrayBuffer - unexpected data format: ${V}`),new Uint8Array(V).buffer)}class jm{constructor(l){this.source=l,this.isHttp=/^https?:/i.test(l.url),this.httpHeaders=this.isHttp&&l.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var l;return((l=this._fullRequestReader)==null?void 0:l._loaded)??0}getFullReader(){return lU(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new WG(this),this._fullRequestReader}getRangeReader(l,U){if(U<=this._progressiveDataLength)return null;const d=new VG(this,l,U);return this._rangeRequestReaders.push(d),d}cancelAllRequests(l){var U;(U=this._fullRequestReader)==null||U.cancel(l);for(const d of this._rangeRequestReaders.slice(0))d.cancel(l)}}class WG{constructor(l){this._stream=l,this._reader=null,this._loaded=0,this._filename=null;const U=l.source;this._withCredentials=U.withCredentials||!1,this._contentLength=U.length,this._headersCapability=Promise.withResolvers(),this._disableRange=U.disableRange||!1,this._rangeChunkSize=U.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!U.disableStream,this._isRangeSupported=!U.disableRange,this._headers=xm(this._stream.httpHeaders);const d=U.url;fetch(d,Cm(this._headers,this._withCredentials,this._abortController)).then(c=>{if(!wm(c.status))throw Fs(c.status,d);this._reader=c.body.getReader(),this._headersCapability.resolve();const W=R=>c.headers.get(R),{allowRangeRequests:s,suggestedLength:Q}=aR({getResponseHeader:W,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=s,this._contentLength=Q||this._contentLength,this._filename=nR(W),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new Dt("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var l;await this._headersCapability.promise;const{value:U,done:d}=await this._reader.read();return d?{value:U,done:d}:(this._loaded+=U.byteLength,(l=this.onProgress)==null||l.call(this,{loaded:this._loaded,total:this._contentLength}),{value:rm(U),done:!1})}cancel(l){var U;(U=this._reader)==null||U.cancel(l),this._abortController.abort()}}class VG{constructor(l,U,d){this._stream=l,this._reader=null,this._loaded=0;const c=l.source;this._withCredentials=c.withCredentials||!1,this._readCapability=Promise.withResolvers(),this._isStreamingSupported=!c.disableStream,this._abortController=new AbortController,this._headers=xm(this._stream.httpHeaders),this._headers.append("Range",`bytes=${U}-${d-1}`);const W=c.url;fetch(W,Cm(this._headers,this._withCredentials,this._abortController)).then(s=>{if(!wm(s.status))throw Fs(s.status,W);this._readCapability.resolve(),this._reader=s.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){var l;await this._readCapability.promise;const{value:U,done:d}=await this._reader.read();return d?{value:U,done:d}:(this._loaded+=U.byteLength,(l=this.onProgress)==null||l.call(this,{loaded:this._loaded}),{value:rm(U),done:!1})}cancel(l){var U;(U=this._reader)==null||U.cancel(l),this._abortController.abort()}}const sR=200,QR=206;function aG(V){const l=V.response;return typeof l!="string"?l:Hn(l).buffer}class nG{constructor(l,U={}){this.url=l,this.isHttp=/^https?:/i.test(l),this.httpHeaders=this.isHttp&&U.httpHeaders||Object.create(null),this.withCredentials=U.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(l,U,d){const c={begin:l,end:U};for(const W in d)c[W]=d[W];return this.request(c)}requestFull(l){return this.request(l)}request(l){const U=new XMLHttpRequest,d=this.currXhrId++,c=this.pendingRequests[d]={xhr:U};U.open("GET",this.url),U.withCredentials=this.withCredentials;for(const W in this.httpHeaders){const s=this.httpHeaders[W];s!==void 0&&U.setRequestHeader(W,s)}return this.isHttp&&"begin"in l&&"end"in l?(U.setRequestHeader("Range",`bytes=${l.begin}-${l.end-1}`),c.expectedStatus=QR):c.expectedStatus=sR,U.responseType="arraybuffer",l.onError&&(U.onerror=function(W){l.onError(U.status)}),U.onreadystatechange=this.onStateChange.bind(this,d),U.onprogress=this.onProgress.bind(this,d),c.onHeadersReceived=l.onHeadersReceived,c.onDone=l.onDone,c.onError=l.onError,c.onProgress=l.onProgress,U.send(null),d}onProgress(l,U){var d;const c=this.pendingRequests[l];c&&((d=c.onProgress)==null||d.call(c,U))}onStateChange(l,U){var d,c,W;const s=this.pendingRequests[l];if(!s)return;const Q=s.xhr;if(Q.readyState>=2&&s.onHeadersReceived&&(s.onHeadersReceived(),delete s.onHeadersReceived),Q.readyState!==4||!(l in this.pendingRequests))return;if(delete this.pendingRequests[l],Q.status===0&&this.isHttp){(d=s.onError)==null||d.call(s,Q.status);return}const R=Q.status||sR;if(!(R===sR&&s.expectedStatus===QR)&&R!==s.expectedStatus){(c=s.onError)==null||c.call(s,Q.status);return}const m=aG(Q);if(R===QR){const e=Q.getResponseHeader("Content-Range"),S=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);s.onDone({begin:parseInt(S[1],10),chunk:m})}else m?s.onDone({begin:0,chunk:m}):(W=s.onError)==null||W.call(s,Q.status)}getRequestXhr(l){return this.pendingRequests[l].xhr}isPendingRequest(l){return l in this.pendingRequests}abortRequest(l){const U=this.pendingRequests[l].xhr;delete this.pendingRequests[l],U.abort()}}class sG{constructor(l){this._source=l,this._manager=new nG(l.url,{httpHeaders:l.httpHeaders,withCredentials:l.withCredentials}),this._rangeChunkSize=l.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(l){const U=this._rangeRequestReaders.indexOf(l);U>=0&&this._rangeRequestReaders.splice(U,1)}getFullReader(){return lU(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new QG(this._manager,this._source),this._fullRequestReader}getRangeReader(l,U){const d=new iG(this._manager,l,U);return d.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(d),d}cancelAllRequests(l){var U;(U=this._fullRequestReader)==null||U.cancel(l);for(const d of this._rangeRequestReaders.slice(0))d.cancel(l)}}class QG{constructor(l,U){this._manager=l;const d={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=U.url,this._fullRequestId=l.requestFull(d),this._headersReceivedCapability=Promise.withResolvers(),this._disableRange=U.disableRange||!1,this._contentLength=U.length,this._rangeChunkSize=U.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const l=this._fullRequestId,U=this._manager.getRequestXhr(l),d=s=>U.getResponseHeader(s),{allowRangeRequests:c,suggestedLength:W}=aR({getResponseHeader:d,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});c&&(this._isRangeSupported=!0),this._contentLength=W||this._contentLength,this._filename=nR(d),this._isRangeSupported&&this._manager.abortRequest(l),this._headersReceivedCapability.resolve()}_onDone(l){if(l&&(this._requests.length>0?this._requests.shift().resolve({value:l.chunk,done:!1}):this._cachedChunks.push(l.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const U of this._requests)U.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(l){this._storedError=Fs(l,this._url),this._headersReceivedCapability.reject(this._storedError);for(const U of this._requests)U.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(l){var U;(U=this.onProgress)==null||U.call(this,{loaded:l.loaded,total:l.lengthComputable?l.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const l=Promise.withResolvers();return this._requests.push(l),l.promise}cancel(l){this._done=!0,this._headersReceivedCapability.reject(l);for(const U of this._requests)U.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class iG{constructor(l,U,d){this._manager=l;const c={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=l.url,this._requestId=l.requestRange(U,d,c),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var l;(l=this.onClosed)==null||l.call(this,this)}_onDone(l){const U=l.chunk;this._requests.length>0?this._requests.shift().resolve({value:U,done:!1}):this._queuedChunk=U,this._done=!0;for(const d of this._requests)d.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(l){this._storedError=Fs(l,this._url);for(const U of this._requests)U.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(l){var U;this.isStreamingSupported||(U=this.onProgress)==null||U.call(this,{loaded:l.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const U=this._queuedChunk;return this._queuedChunk=null,{value:U,done:!1}}if(this._done)return{value:void 0,done:!0};const l=Promise.withResolvers();return this._requests.push(l),l.promise}cancel(l){this._done=!0;for(const U of this._requests)U.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}const Om=/^file:\/\/\/[a-zA-Z]:\//;function NG(V){const l=ud.get("url"),U=l.parse(V);return U.protocol==="file:"||U.host?U:/^[a-z]:[/\\]/i.test(V)?l.parse(`file:///${V}`):(U.host||(U.protocol="file:"),U)}class RG{constructor(l){this.source=l,this.url=NG(l.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&l.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var l;return((l=this._fullRequestReader)==null?void 0:l._loaded)??0}getFullReader(){return lU(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new mG(this):new hG(this),this._fullRequestReader}getRangeReader(l,U){if(U<=this._progressiveDataLength)return null;const d=this.isFsUrl?new eG(this,l,U):new bG(this,l,U);return this._rangeRequestReaders.push(d),d}cancelAllRequests(l){var U;(U=this._fullRequestReader)==null||U.cancel(l);for(const d of this._rangeRequestReaders.slice(0))d.cancel(l)}}class gm{constructor(l){this._url=l.url,this._done=!1,this._storedError=null,this.onProgress=null;const U=l.source;this._contentLength=U.length,this._loaded=0,this._filename=null,this._disableRange=U.disableRange||!1,this._rangeChunkSize=U.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!U.disableStream,this._isRangeSupported=!U.disableRange,this._readableStream=null,this._readCapability=Promise.withResolvers(),this._headersCapability=Promise.withResolvers()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){var l;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const U=this._readableStream.read();return U===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=U.length,(l=this.onProgress)==null||l.call(this,{loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(U).buffer,done:!1})}cancel(l){if(!this._readableStream){this._error(l);return}this._readableStream.destroy(l)}_error(l){this._storedError=l,this._readCapability.resolve()}_setReadableStream(l){this._readableStream=l,l.on("readable",()=>{this._readCapability.resolve()}),l.on("end",()=>{l.destroy(),this._done=!0,this._readCapability.resolve()}),l.on("error",U=>{this._error(U)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new Dt("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class Km{constructor(l){this._url=l.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=Promise.withResolvers();const U=l.source;this._isStreamingSupported=!U.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){var l;if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const U=this._readableStream.read();return U===null?(this._readCapability=Promise.withResolvers(),this.read()):(this._loaded+=U.length,(l=this.onProgress)==null||l.call(this,{loaded:this._loaded}),{value:new Uint8Array(U).buffer,done:!1})}cancel(l){if(!this._readableStream){this._error(l);return}this._readableStream.destroy(l)}_error(l){this._storedError=l,this._readCapability.resolve()}_setReadableStream(l){this._readableStream=l,l.on("readable",()=>{this._readCapability.resolve()}),l.on("end",()=>{l.destroy(),this._done=!0,this._readCapability.resolve()}),l.on("error",U=>{this._error(U)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function cs(V,l){return{protocol:V.protocol,auth:V.auth,host:V.hostname,port:V.port,path:V.path,method:"GET",headers:l}}class hG extends gm{constructor(l){super(l);const U=d=>{if(d.statusCode===404){const Q=new It(`Missing PDF "${this._url}".`);this._storedError=Q,this._headersCapability.reject(Q);return}this._headersCapability.resolve(),this._setReadableStream(d);const c=Q=>this._readableStream.headers[Q.toLowerCase()],{allowRangeRequests:W,suggestedLength:s}=aR({getResponseHeader:c,isHttp:l.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=W,this._contentLength=s||this._contentLength,this._filename=nR(c)};if(this._request=null,this._url.protocol==="http:"){const d=ud.get("http");this._request=d.request(cs(this._url,l.httpHeaders),U)}else{const d=ud.get("https");this._request=d.request(cs(this._url,l.httpHeaders),U)}this._request.on("error",d=>{this._storedError=d,this._headersCapability.reject(d)}),this._request.end()}}class bG extends Km{constructor(l,U,d){super(l),this._httpHeaders={};for(const W in l.httpHeaders){const s=l.httpHeaders[W];s!==void 0&&(this._httpHeaders[W]=s)}this._httpHeaders.Range=`bytes=${U}-${d-1}`;const c=W=>{if(W.statusCode===404){const s=new It(`Missing PDF "${this._url}".`);this._storedError=s;return}this._setReadableStream(W)};if(this._request=null,this._url.protocol==="http:"){const W=ud.get("http");this._request=W.request(cs(this._url,this._httpHeaders),c)}else{const W=ud.get("https");this._request=W.request(cs(this._url,this._httpHeaders),c)}this._request.on("error",W=>{this._storedError=W}),this._request.end()}}class mG extends gm{constructor(l){super(l);let U=decodeURIComponent(this._url.path);Om.test(this._url.href)&&(U=U.replace(/^\//,""));const d=ud.get("fs");d.promises.lstat(U).then(c=>{this._contentLength=c.size,this._setReadableStream(d.createReadStream(U)),this._headersCapability.resolve()},c=>{c.code==="ENOENT"&&(c=new It(`Missing PDF "${U}".`)),this._storedError=c,this._headersCapability.reject(c)})}}class eG extends Km{constructor(l,U,d){super(l);let c=decodeURIComponent(this._url.path);Om.test(this._url.href)&&(c=c.replace(/^\//,""));const W=ud.get("fs");this._setReadableStream(W.createReadStream(c,{start:U,end:d-1}))}}const MG=1e5,xU=30,GG=.8,KZ=class Ss{constructor({textContentSource:l,container:U,viewport:d}){if(h(this,Ni),h(this,Ri),h(this,na),h(this,st,Promise.withResolvers()),h(this,OU,null),h(this,Za,!1),h(this,ta,!!((Rb=globalThis.FontInspector)!=null&&Rb.enabled)),h(this,Qt,null),h(this,TZ,null),h(this,Fa,0),h(this,ca,0),h(this,mF,null),h(this,tc,null),h(this,Fc,0),h(this,it,0),h(this,cc,Object.create(null)),h(this,Wa,[]),h(this,Wc,null),h(this,eF,[]),h(this,Va,new WeakMap),h(this,aa,null),l instanceof ReadableStream)J(this,Wc,l);else if(typeof l=="object")J(this,Wc,new ReadableStream({start(R){R.enqueue(l),R.close()}}));else throw new Error('No "textContentSource" parameter specified.');J(this,OU,J(this,tc,U)),J(this,it,d.scale*(globalThis.devicePixelRatio||1)),J(this,Fc,d.rotation),J(this,TZ,{prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:null});const{pageWidth:c,pageHeight:W,pageX:s,pageY:Q}=d.rawDims;J(this,aa,[1,0,0,-1,-s,Q+W]),J(this,ca,c),J(this,Fa,W),Et(U,d),F(this,st).promise.catch(()=>{}).then(()=>{F(Ss,Vc).delete(this),J(this,TZ,null),J(this,cc,null)})}render(){const l=()=>{F(this,mF).read().then(({value:U,done:d})=>{if(d){F(this,st).resolve();return}F(this,Qt)??J(this,Qt,U.lang),Object.assign(F(this,cc),U.styles),G(this,Ni,hb).call(this,U.items),l()},F(this,st).reject)};return J(this,mF,F(this,Wc).getReader()),F(Ss,Vc).add(this),l(),F(this,st).promise}update({viewport:l,onBefore:U=null}){var d;const c=l.scale*(globalThis.devicePixelRatio||1),W=l.rotation;if(W!==F(this,Fc)&&(U==null||U(),J(this,Fc,W),Et(F(this,tc),{rotation:W})),c!==F(this,it)){U==null||U(),J(this,it,c);const s={prevFontSize:null,prevFontFamily:null,div:null,properties:null,ctx:G(d=Ss,ac,sa).call(d,F(this,Qt))};for(const Q of F(this,eF))s.properties=F(this,Va).get(Q),s.div=Q,G(this,na,hi).call(this,s)}}cancel(){var l;const U=new Dt("TextLayer task cancelled.");(l=F(this,mF))==null||l.cancel(U).catch(()=>{}),J(this,mF,null),F(this,st).reject(U)}get textDivs(){return F(this,eF)}get textContentItemsStr(){return F(this,Wa)}static cleanup(){if(!(F(this,Vc).size>0)){F(this,MF).clear();for(const{canvas:l}of F(this,GF).values())l.remove();F(this,GF).clear()}}};st=new WeakMap,OU=new WeakMap,Za=new WeakMap,ta=new WeakMap,Qt=new WeakMap,TZ=new WeakMap,Fa=new WeakMap,ca=new WeakMap,mF=new WeakMap,tc=new WeakMap,Fc=new WeakMap,it=new WeakMap,cc=new WeakMap,Wa=new WeakMap,Wc=new WeakMap,eF=new WeakMap,Va=new WeakMap,aa=new WeakMap,MF=new WeakMap,GF=new WeakMap,Vc=new WeakMap,Ni=new WeakSet,hb=function(V){var l,U;if(F(this,Za))return;(U=F(this,TZ)).ctx||(U.ctx=G(l=KZ,ac,sa).call(l,F(this,Qt)));const d=F(this,eF),c=F(this,Wa);for(const W of V){if(d.length>MG){Jl("Ignoring additional textDivs for performance reasons."),J(this,Za,!0);return}if(W.str===void 0){if(W.type==="beginMarkedContentProps"||W.type==="beginMarkedContent"){const s=F(this,OU);J(this,OU,document.createElement("span")),F(this,OU).classList.add("markedContent"),W.id!==null&&F(this,OU).setAttribute("id",`${W.id}`),s.append(F(this,OU))}else W.type==="endMarkedContent"&&J(this,OU,F(this,OU).parentNode);continue}c.push(W.str),G(this,Ri,bb).call(this,W)}},Ri=new WeakSet,bb=function(V){var l;const U=document.createElement("span"),d={angle:0,canvasWidth:0,hasText:V.str!=="",hasEOL:V.hasEOL,fontSize:0};F(this,eF).push(U);const c=al.transform(F(this,aa),V.transform);let W=Math.atan2(c[1],c[0]);const s=F(this,cc)[V.fontName];s.vertical&&(W+=Math.PI/2);const Q=F(this,ta)&&s.fontSubstitution||s.fontFamily,R=Math.hypot(c[2],c[3]),m=R*G(l=KZ,bi,mb).call(l,Q,F(this,Qt));let e,S;W===0?(e=c[4],S=c[5]-m):(e=c[4]+m*Math.sin(W),S=c[5]-m*Math.cos(W));const Y="calc(var(--scale-factor)*",p=U.style;F(this,OU)===F(this,tc)?(p.left=`${(100*e/F(this,ca)).toFixed(2)}%`,p.top=`${(100*S/F(this,Fa)).toFixed(2)}%`):(p.left=`${Y}${e.toFixed(2)}px)`,p.top=`${Y}${S.toFixed(2)}px)`),p.fontSize=`${Y}${R.toFixed(2)}px)`,p.fontFamily=Q,d.fontSize=R,U.setAttribute("role","presentation"),U.textContent=V.str,U.dir=V.dir,F(this,ta)&&(U.dataset.fontName=s.fontSubstitutionLoadedName||V.fontName),W!==0&&(d.angle=W*(180/Math.PI));let B=!1;if(V.str.length>1)B=!0;else if(V.str!==" "&&V.transform[0]!==V.transform[3]){const z=Math.abs(V.transform[0]),L=Math.abs(V.transform[3]);z!==L&&Math.max(z,L)/Math.min(z,L)>1.5&&(B=!0)}if(B&&(d.canvasWidth=s.vertical?V.height:V.width),F(this,Va).set(U,d),F(this,TZ).div=U,F(this,TZ).properties=d,G(this,na,hi).call(this,F(this,TZ)),d.hasText&&F(this,OU).append(U),d.hasEOL){const z=document.createElement("br");z.setAttribute("role","presentation"),F(this,OU).append(z)}},na=new WeakSet,hi=function(V){const{div:l,properties:U,ctx:d,prevFontSize:c,prevFontFamily:W}=V,{style:s}=l;let Q="";if(U.canvasWidth!==0&&U.hasText){const{fontFamily:R}=s,{canvasWidth:m,fontSize:e}=U;(c!==e||W!==R)&&(d.font=`${e*F(this,it)}px ${R}`,V.prevFontSize=e,V.prevFontFamily=R);const{width:S}=d.measureText(l.textContent);S>0&&(Q=`scaleX(${m*F(this,it)/S})`)}U.angle!==0&&(Q=`rotate(${U.angle}deg) ${Q}`),Q.length>0&&(s.transform=Q)},ac=new WeakSet,sa=function(V=null){let l=F(this,GF).get(V||(V=""));if(!l){const U=document.createElement("canvas");U.className="hiddenCanvasElement",U.lang=V,document.body.append(U),l=U.getContext("2d",{alpha:!1}),F(this,GF).set(V,l)}return l},bi=new WeakSet,mb=function(V,l){const U=F(this,MF).get(V);if(U)return U;const d=G(this,ac,sa).call(this,l),c=d.font;d.canvas.width=d.canvas.height=xU,d.font=`${xU}px ${V}`;const W=d.measureText("");let s=W.fontBoundingBoxAscent,Q=Math.abs(W.fontBoundingBoxDescent);if(s){const e=s/(s+Q);return F(this,MF).set(V,e),d.canvas.width=d.canvas.height=0,d.font=c,e}d.strokeStyle="red",d.clearRect(0,0,xU,xU),d.strokeText("g",0,0);let R=d.getImageData(0,0,xU,xU).data;Q=0;for(let e=R.length-1-3;e>=0;e-=4)if(R[e]>0){Q=Math.ceil(e/4/xU);break}d.clearRect(0,0,xU,xU),d.strokeText("A",0,xU),R=d.getImageData(0,0,xU,xU).data,s=0;for(let e=0,S=R.length;e<S;e+=4)if(R[e]>0){s=xU-Math.floor(e/4/xU);break}d.canvas.width=d.canvas.height=0,d.font=c;const m=s?s/(s+Q):GG;return F(this,MF).set(V,m),m},h(KZ,ac),h(KZ,bi),h(KZ,MF,new Map),h(KZ,GF,new Map),h(KZ,Vc,new Set);let Ws=KZ;function JG(){bm("`renderTextLayer`, please use `TextLayer` instead.");const{textContentSource:V,container:l,viewport:U,...d}=arguments[0],c=Object.keys(d);c.length>0&&Jl("Ignoring `renderTextLayer` parameters: "+c.join(", "));const W=new Ws({textContentSource:V,container:l,viewport:U}),{textDivs:s,textContentItemsStr:Q}=W;return{promise:W.render(),textDivs:s,textContentItemsStr:Q}}function TG(){bm("`updateTextLayer`, please use `TextLayer` instead.")}class RW{static textContent(l){const U=[],d={items:U,styles:Object.create(null)};function c(W){var s;if(!W)return;let Q=null;const R=W.name;if(R==="#text")Q=W.value;else if(RW.shouldBuildText(R))(s=W==null?void 0:W.attributes)!=null&&s.textContent?Q=W.attributes.textContent:W.value&&(Q=W.value);else return;if(Q!==null&&U.push({str:Q}),!!W.children)for(const m of W.children)c(m)}return c(l),d}static shouldBuildText(l){return!(l==="textarea"||l==="input"||l==="option"||l==="select")}}const SG=65536,XG=100,YG=5e3,pG=MU?DM:MM,uG=MU?EM:Nm,BG=MU?IM:eM,oG=MU?wM:Rm;function yG(V){if(typeof V=="string"||V instanceof URL?V={url:V}:(V instanceof ArrayBuffer||ArrayBuffer.isView(V))&&(V={data:V}),typeof V!="object")throw new Error("Invalid parameter in getDocument, need parameter object.");if(!V.url&&!V.data&&!V.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const l=new kG,{docId:U}=l,d=V.url?zG(V.url):null,c=V.data?LG(V.data):null,W=V.httpHeaders||null,s=V.withCredentials===!0,Q=V.password??null,R=V.range instanceof Pm?V.range:null,m=Number.isInteger(V.rangeChunkSize)&&V.rangeChunkSize>0?V.rangeChunkSize:SG;let e=V.worker instanceof Vs?V.worker:null;const S=V.verbosity,Y=typeof V.docBaseUrl=="string"&&!$N(V.docBaseUrl)?V.docBaseUrl:null,p=typeof V.cMapUrl=="string"?V.cMapUrl:null,B=V.cMapPacked!==!1,z=V.CMapReaderFactory||uG,L=typeof V.standardFontDataUrl=="string"?V.standardFontDataUrl:null,D=V.StandardFontDataFactory||oG,x=V.stopAtErrors!==!0,f=Number.isInteger(V.maxImageSize)&&V.maxImageSize>-1?V.maxImageSize:-1,q=V.isEvalSupported!==!1,dl=typeof V.isOffscreenCanvasSupported=="boolean"?V.isOffscreenCanvasSupported:!MU,tl=Number.isInteger(V.canvasMaxAreaInBytes)?V.canvasMaxAreaInBytes:-1,Wl=typeof V.disableFontFace=="boolean"?V.disableFontFace:MU,hl=V.fontExtraProperties===!0,Tl=V.enableXfa===!0,Xl=V.ownerDocument||globalThis.document,Sl=V.disableRange===!0,Kl=V.disableStream===!0,xl=V.disableAutoFetch===!0,yU=V.pdfBug===!0,Hl=R?R.length:V.length??NaN,il=typeof V.useSystemFonts=="boolean"?V.useSystemFonts:!MU&&!Wl,Ml=typeof V.useWorkerFetch=="boolean"?V.useWorkerFetch:z===Nm&&D===Rm&&p&&L&&aW(p,document.baseURI)&&aW(L,document.baseURI),W0=V.canvasFactory||new pG({ownerDocument:Xl}),is=V.filterFactory||new BG({docId:U,ownerDocument:Xl}),Ns=null;VM(S);const V0={canvasFactory:W0,filterFactory:is};if(Ml||(V0.cMapReaderFactory=new z({baseUrl:p,isCompressed:B}),V0.standardFontDataFactory=new D({baseUrl:L})),!e){const HZ={verbosity:S,port:OZ.workerPort};e=HZ.port?Vs.fromPort(HZ):new Vs(HZ),l._worker=e}const KU={docId:U,apiVersion:"4.3.136",data:c,password:Q,disableAutoFetch:xl,rangeChunkSize:m,length:Hl,docBaseUrl:Y,enableXfa:Tl,evaluatorOptions:{maxImageSize:f,disableFontFace:Wl,ignoreErrors:x,isEvalSupported:q,isOffscreenCanvasSupported:dl,canvasMaxAreaInBytes:tl,fontExtraProperties:hl,useSystemFonts:il,cMapUrl:Ml?p:null,standardFontDataUrl:Ml?L:null}},nU={disableFontFace:Wl,fontExtraProperties:hl,ownerDocument:Xl,pdfBug:yU,styleElement:Ns,loadingParams:{disableAutoFetch:xl,enableXfa:Tl}};return e.promise.then(function(){if(l.destroyed)throw new Error("Loading aborted");if(e.destroyed)throw new Error("Worker was destroyed");const HZ=e.messageHandler.sendWithPromise("GetDocRequest",KU,c?[c.buffer]:null);let mW;return R?mW=new ZG(R,{disableRange:Sl,disableStream:Kl}):c||(mW=(HU=>MU?function(){return typeof fetch<"u"&&typeof Response<"u"&&"body"in Response.prototype}()&&aW(HU.url)?new jm(HU):new RG(HU):aW(HU.url)?new jm(HU):new sG(HU))({url:d,length:Hl,httpHeaders:W,withCredentials:s,rangeChunkSize:m,disableRange:Sl,disableStream:Kl})),HZ.then(HU=>{if(l.destroyed)throw new Error("Loading aborted");if(e.destroyed)throw new Error("Worker was destroyed");const dU=new NW(U,HU,e.port),hJ=new wG(dU,l,mW,nU,V0);l._transport=hJ,dU.send("Ready",null)})}).catch(l._capability.reject),l}function zG(V){if(V instanceof URL)return V.href;try{return new URL(V,window.location).href}catch{if(MU&&typeof V=="string")return V}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function LG(V){if(MU&&typeof Buffer<"u"&&V instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(V instanceof Uint8Array&&V.byteLength===V.buffer.byteLength)return V;if(typeof V=="string")return Hn(V);if(V instanceof ArrayBuffer||ArrayBuffer.isView(V)||typeof V=="object"&&!isNaN(V==null?void 0:V.length))return new Uint8Array(V);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}function Hm(V){return typeof V=="object"&&Number.isInteger(V==null?void 0:V.num)&&V.num>=0&&Number.isInteger(V==null?void 0:V.gen)&&V.gen>=0}const vm=class Q2{constructor(){this._capability=Promise.withResolvers(),this._transport=null,this._worker=null,this.docId=`d${vU(Q2,mi)._++}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){var l,U,d;this.destroyed=!0;try{(l=this._worker)!=null&&l.port&&(this._worker._pendingDestroy=!0),await((U=this._transport)==null?void 0:U.destroy())}catch(c){throw(d=this._worker)!=null&&d.port&&delete this._worker._pendingDestroy,c}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}};mi=new WeakMap,h(vm,mi,0);let kG=vm;class Pm{constructor(l,U,d=!1,c=null){this.length=l,this.initialData=U,this.progressiveDone=d,this.contentDispositionFilename=c,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=Promise.withResolvers()}addRangeListener(l){this._rangeListeners.push(l)}addProgressListener(l){this._progressListeners.push(l)}addProgressiveReadListener(l){this._progressiveReadListeners.push(l)}addProgressiveDoneListener(l){this._progressiveDoneListeners.push(l)}onDataRange(l,U){for(const d of this._rangeListeners)d(l,U)}onDataProgress(l,U){this._readyCapability.promise.then(()=>{for(const d of this._progressListeners)d(l,U)})}onDataProgressiveRead(l){this._readyCapability.promise.then(()=>{for(const U of this._progressiveReadListeners)U(l)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const l of this._progressiveDoneListeners)l()})}transportReady(){this._readyCapability.resolve()}requestDataRange(l,U){Dl("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}class IG{constructor(l,U){this._pdfInfo=l,this._transport=U}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return ol(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(l){return this._transport.getPage(l)}getPageIndex(l){return this._transport.getPageIndex(l)}getDestinations(){return this._transport.getDestinations()}getDestination(l){return this._transport.getDestination(l)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig({intent:l="display"}={}){const{renderingIntent:U}=this._transport.getRenderingIntent(l);return this._transport.getOptionalContentConfig(U)}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(l=!1){return this._transport.startCleanup(l||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}cachedPageNumber(l){return this._transport.cachedPageNumber(l)}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}class DG{constructor(l,U,d,c=!1){h(this,Rt),h(this,nc),h(this,Nt,null),h(this,SZ,!1),this._pageIndex=l,this._pageInfo=U,this._transport=d,this._stats=c?new hm:null,this._pdfBug=c,this.commonObjs=d.commonObjs,this.objs=new fm,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:l,rotation:U=this.rotate,offsetX:d=0,offsetY:c=0,dontFlip:W=!1}={}){return new VW({viewBox:this.view,scale:l,rotation:U,offsetX:d,offsetY:c,dontFlip:W})}getAnnotations({intent:l="display"}={}){const{renderingIntent:U}=this._transport.getRenderingIntent(l);return this._transport.getAnnotations(this._pageIndex,U)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return ol(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){var l;return((l=this._transport._htmlForXfa)==null?void 0:l.children[this._pageIndex])||null}render({canvasContext:l,viewport:U,intent:d="display",annotationMode:c=rZ.ENABLE,transform:W=null,background:s=null,optionalContentConfigPromise:Q=null,annotationCanvasMap:R=null,pageColors:m=null,printAnnotationStorage:e=null}){var S,Y;(S=this._stats)==null||S.time("Overall");const p=this._transport.getRenderingIntent(d,c,e),{renderingIntent:B,cacheKey:z}=p;J(this,SZ,!1),G(this,nc,Qa).call(this),Q||(Q=this._transport.getOptionalContentConfig(B));let L=this._intentStates.get(z);L||(L=Object.create(null),this._intentStates.set(z,L)),L.streamReaderCancelTimeout&&(clearTimeout(L.streamReaderCancelTimeout),L.streamReaderCancelTimeout=null);const D=!!(B&dd.PRINT);L.displayReadyCapability||(L.displayReadyCapability=Promise.withResolvers(),L.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(Y=this._stats)==null||Y.time("Page Request"),this._pumpOperatorList(p));const x=dl=>{var tl;L.renderTasks.delete(f),(this._maybeCleanupAfterRender||D)&&J(this,SZ,!0),G(this,Rt,JF).call(this,!D),dl?(f.capability.reject(dl),this._abortOperatorList({intentState:L,reason:dl instanceof Error?dl:new Error(dl)})):f.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"),(tl=globalThis.Stats)!=null&&tl.enabled&&globalThis.Stats.add(this.pageNumber,this._stats))},f=new xG({callback:x,params:{canvasContext:l,viewport:U,transform:W,background:s},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:R,operatorList:L.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!D,pdfBug:this._pdfBug,pageColors:m});(L.renderTasks||(L.renderTasks=new Set)).add(f);const q=f.task;return Promise.all([L.displayReadyCapability.promise,Q]).then(([dl,tl])=>{var Wl;if(this.destroyed){x();return}if((Wl=this._stats)==null||Wl.time("Rendering"),!(tl.renderingIntent&B))throw new Error("Must use the same `intent`-argument when calling the `PDFPageProxy.render` and `PDFDocumentProxy.getOptionalContentConfig` methods.");f.initializeGraphics({transparency:dl,optionalContentConfig:tl}),f.operatorListChanged()}).catch(x),q}getOperatorList({intent:l="display",annotationMode:U=rZ.ENABLE,printAnnotationStorage:d=null}={}){var c;function W(){Q.operatorList.lastChunk&&(Q.opListReadCapability.resolve(Q.operatorList),Q.renderTasks.delete(R))}const s=this._transport.getRenderingIntent(l,U,d,!0);let Q=this._intentStates.get(s.cacheKey);Q||(Q=Object.create(null),this._intentStates.set(s.cacheKey,Q));let R;return Q.opListReadCapability||(R=Object.create(null),R.operatorListChanged=W,Q.opListReadCapability=Promise.withResolvers(),(Q.renderTasks||(Q.renderTasks=new Set)).add(R),Q.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},(c=this._stats)==null||c.time("Page Request"),this._pumpOperatorList(s)),Q.opListReadCapability.promise}streamTextContent({includeMarkedContent:l=!1,disableNormalization:U=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:l===!0,disableNormalization:U===!0},{highWaterMark:100,size(d){return d.items.length}})}getTextContent(l={}){if(this._transport._htmlForXfa)return this.getXfa().then(d=>RW.textContent(d));const U=this.streamTextContent(l);return new Promise(function(d,c){function W(){s.read().then(function({value:R,done:m}){if(m){d(Q);return}Q.lang??(Q.lang=R.lang),Object.assign(Q.styles,R.styles),Q.items.push(...R.items),W()},c)}const s=U.getReader(),Q={items:[],styles:Object.create(null),lang:null};W()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const l=[];for(const U of this._intentStates.values())if(this._abortOperatorList({intentState:U,reason:new Error("Page was destroyed."),force:!0}),!U.opListReadCapability)for(const d of U.renderTasks)l.push(d.completed),d.cancel();return this.objs.clear(),J(this,SZ,!1),G(this,nc,Qa).call(this),Promise.all(l)}cleanup(l=!1){J(this,SZ,!0);const U=G(this,Rt,JF).call(this,!1);return l&&U&&this._stats&&(this._stats=new hm),U}_startRenderPage(l,U){var d,c;const W=this._intentStates.get(U);W&&((d=this._stats)==null||d.timeEnd("Page Request"),(c=W.displayReadyCapability)==null||c.resolve(l))}_renderPageChunk(l,U){for(let d=0,c=l.length;d<c;d++)U.operatorList.fnArray.push(l.fnArray[d]),U.operatorList.argsArray.push(l.argsArray[d]);U.operatorList.lastChunk=l.lastChunk,U.operatorList.separateAnnots=l.separateAnnots;for(const d of U.renderTasks)d.operatorListChanged();l.lastChunk&&G(this,Rt,JF).call(this,!0)}_pumpOperatorList({renderingIntent:l,cacheKey:U,annotationStorageSerializable:d}){const{map:c,transfer:W}=d,s=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:l,cacheKey:U,annotationStorage:c},W).getReader(),Q=this._intentStates.get(U);Q.streamReader=s;const R=()=>{s.read().then(({value:m,done:e})=>{if(e){Q.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(m,Q),R())},m=>{if(Q.streamReader=null,!this._transport.destroyed){if(Q.operatorList){Q.operatorList.lastChunk=!0;for(const e of Q.renderTasks)e.operatorListChanged();G(this,Rt,JF).call(this,!0)}if(Q.displayReadyCapability)Q.displayReadyCapability.reject(m);else if(Q.opListReadCapability)Q.opListReadCapability.reject(m);else throw m}})};R()}_abortOperatorList({intentState:l,reason:U,force:d=!1}){if(l.streamReader){if(l.streamReaderCancelTimeout&&(clearTimeout(l.streamReaderCancelTimeout),l.streamReaderCancelTimeout=null),!d){if(l.renderTasks.size>0)return;if(U instanceof qN){let c=XG;U.extraDelay>0&&U.extraDelay<1e3&&(c+=U.extraDelay),l.streamReaderCancelTimeout=setTimeout(()=>{l.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:l,reason:U,force:!0})},c);return}}if(l.streamReader.cancel(new Dt(U.message)).catch(()=>{}),l.streamReader=null,!this._transport.destroyed){for(const[c,W]of this._intentStates)if(W===l){this._intentStates.delete(c);break}this.cleanup()}}}get stats(){return this._stats}}Nt=new WeakMap,SZ=new WeakMap,Rt=new WeakSet,JF=function(V=!1){if(G(this,nc,Qa).call(this),!F(this,SZ)||this.destroyed)return!1;if(V)return J(this,Nt,setTimeout(()=>{J(this,Nt,null),G(this,Rt,JF).call(this,!1)},YG)),!1;for(const{renderTasks:l,operatorList:U}of this._intentStates.values())if(l.size>0||!U.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),J(this,SZ,!1),!0},nc=new WeakSet,Qa=function(){F(this,Nt)&&(clearTimeout(F(this,Nt)),J(this,Nt,null))};class EG{constructor(){h(this,TF,new Set),h(this,ei,Promise.resolve())}postMessage(l,U){const d={data:structuredClone(l,U?{transfer:U}:null)};F(this,ei).then(()=>{for(const c of F(this,TF))c.call(this,d)})}addEventListener(l,U){F(this,TF).add(U)}removeEventListener(l,U){F(this,TF).delete(U)}terminate(){F(this,TF).clear()}}TF=new WeakMap,ei=new WeakMap;const UZ={isWorkerDisabled:!1,fakeWorkerId:0};MU&&(UZ.isWorkerDisabled=!0,OZ.workerSrc||(OZ.workerSrc="./pdf.worker.mjs")),UZ.isSameOrigin=function(V,l){let U;try{if(U=new URL(V),!U.origin||U.origin==="null")return!1}catch{return!1}const d=new URL(l,U);return U.origin===d.origin},UZ.createCDNWrapper=function(V){const l=`await import("${V}");`;return URL.createObjectURL(new Blob([l],{type:"text/javascript"}))};const iR=class ZZ{constructor({name:l=null,port:U=null,verbosity:d=aM()}={}){var c;if(this.name=l,this.destroyed=!1,this.verbosity=d,this._readyCapability=Promise.withResolvers(),this._port=null,this._webWorker=null,this._messageHandler=null,U){if((c=F(ZZ,ht))!=null&&c.has(U))throw new Error("Cannot use more than one PDFWorker per port.");(F(ZZ,ht)||J(ZZ,ht,new WeakMap)).set(U,this),this._initializeFromPort(U);return}this._initialize()}get promise(){return MU?Promise.all([ud.promise,this._readyCapability.promise]):this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(l){this._port=l,this._messageHandler=new NW("main","worker",l),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!UZ.isWorkerDisabled&&!F(ZZ,sc,ia)){let{workerSrc:l}=ZZ;try{UZ.isSameOrigin(window.location.href,l)||(l=UZ.createCDNWrapper(new URL(l,window.location).href));const U=new Worker(l,{type:"module"}),d=new NW("main","worker",U),c=()=>{U.removeEventListener("error",W),d.destroy(),U.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},W=()=>{this._webWorker||c()};U.addEventListener("error",W),d.on("test",Q=>{if(U.removeEventListener("error",W),this.destroyed){c();return}Q?(this._messageHandler=d,this._port=U,this._webWorker=U,this._readyCapability.resolve(),d.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),d.destroy(),U.terminate())}),d.on("ready",Q=>{if(U.removeEventListener("error",W),this.destroyed){c();return}try{s()}catch{this._setupFakeWorker()}});const s=()=>{const Q=new Uint8Array;d.send("test",Q,[Q.buffer])};s();return}catch{gn("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){UZ.isWorkerDisabled||(Jl("Setting up fake worker."),UZ.isWorkerDisabled=!0),ZZ._setupFakeWorkerGlobal.then(l=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const U=new EG;this._port=U;const d=`fake${UZ.fakeWorkerId++}`,c=new NW(d+"_worker",d,U);l.setup(c,U);const W=new NW(d,d+"_worker",U);this._messageHandler=W,this._readyCapability.resolve(),W.send("configure",{verbosity:this.verbosity})}).catch(l=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${l.message}".`))})}destroy(){var l;this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),(l=F(ZZ,ht))==null||l.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(l){var U;if(!(l!=null&&l.port))throw new Error("PDFWorker.fromPort - invalid method signature.");const d=(U=F(this,ht))==null?void 0:U.get(l.port);if(d){if(d._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return d}return new ZZ(l)}static get workerSrc(){if(OZ.workerSrc)return OZ.workerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _setupFakeWorkerGlobal(){return ol(this,"_setupFakeWorkerGlobal",(async()=>F(this,sc,ia)?F(this,sc,ia):(await import(this.workerSrc)).WorkerMessageHandler)())}};ht=new WeakMap,sc=new WeakSet,ia=function(){var V;try{return((V=globalThis.pdfjsWorker)==null?void 0:V.WorkerMessageHandler)||null}catch{return null}},h(iR,sc),h(iR,ht,void 0);let Vs=iR;class wG{constructor(l,U,d,c,W){h(this,SF),h(this,XZ,new Map),h(this,xd,new Map),h(this,Qc,new Map),h(this,ic,new Map),h(this,rd,null),this.messageHandler=l,this.loadingTask=U,this.commonObjs=new fm,this.fontLoader=new LM({ownerDocument:c.ownerDocument,styleElement:c.styleElement}),this.loadingParams=c.loadingParams,this._params=c,this.canvasFactory=W.canvasFactory,this.filterFactory=W.filterFactory,this.cMapReaderFactory=W.cMapReaderFactory,this.standardFontDataFactory=W.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=d,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=Promise.withResolvers(),this.setupMessageHandler()}get annotationStorage(){return ol(this,"annotationStorage",new FR)}getRenderingIntent(l,U=rZ.ENABLE,d=null,c=!1){let W=dd.DISPLAY,s=tR;switch(l){case"any":W=dd.ANY;break;case"display":break;case"print":W=dd.PRINT;break;default:Jl(`getRenderingIntent - invalid intent: ${l}`)}switch(U){case rZ.DISABLE:W+=dd.ANNOTATIONS_DISABLE;break;case rZ.ENABLE:break;case rZ.ENABLE_FORMS:W+=dd.ANNOTATIONS_FORMS;break;case rZ.ENABLE_STORAGE:W+=dd.ANNOTATIONS_STORAGE,s=(W&dd.PRINT&&d instanceof Xm?d:this.annotationStorage).serializable;break;default:Jl(`getRenderingIntent - invalid annotationMode: ${U}`)}return c&&(W+=dd.OPLIST),{renderingIntent:W,cacheKey:`${W}_${s.hash}`,annotationStorageSerializable:s}}destroy(){var l;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=Promise.withResolvers(),(l=F(this,rd))==null||l.reject(new Error("Worker was destroyed during onPassword callback"));const U=[];for(const c of F(this,xd).values())U.push(c._destroy());F(this,xd).clear(),F(this,Qc).clear(),F(this,ic).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const d=this.messageHandler.sendWithPromise("Terminate",null);return U.push(d),Promise.all(U).then(()=>{var c;this.commonObjs.clear(),this.fontLoader.clear(),F(this,XZ).clear(),this.filterFactory.destroy(),Ws.cleanup(),(c=this._networkStream)==null||c.cancelAllRequests(new Dt("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:l,loadingTask:U}=this;l.on("GetReader",(d,c)=>{lU(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=W=>{this._lastProgress={loaded:W.loaded,total:W.total}},c.onPull=()=>{this._fullReader.read().then(function({value:W,done:s}){if(s){c.close();return}lU(W instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),c.enqueue(new Uint8Array(W),1,[W])}).catch(W=>{c.error(W)})},c.onCancel=W=>{this._fullReader.cancel(W),c.ready.catch(s=>{if(!this.destroyed)throw s})}}),l.on("ReaderHeadersReady",d=>{const c=Promise.withResolvers(),W=this._fullReader;return W.headersReady.then(()=>{var s;(!W.isStreamingSupported||!W.isRangeSupported)&&(this._lastProgress&&((s=U.onProgress)==null||s.call(U,this._lastProgress)),W.onProgress=Q=>{var R;(R=U.onProgress)==null||R.call(U,{loaded:Q.loaded,total:Q.total})}),c.resolve({isStreamingSupported:W.isStreamingSupported,isRangeSupported:W.isRangeSupported,contentLength:W.contentLength})},c.reject),c.promise}),l.on("GetRangeReader",(d,c)=>{lU(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const W=this._networkStream.getRangeReader(d.begin,d.end);if(!W){c.close();return}c.onPull=()=>{W.read().then(function({value:s,done:Q}){if(Q){c.close();return}lU(s instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),c.enqueue(new Uint8Array(s),1,[s])}).catch(s=>{c.error(s)})},c.onCancel=s=>{W.cancel(s),c.ready.catch(Q=>{if(!this.destroyed)throw Q})}}),l.on("GetDoc",({pdfInfo:d})=>{this._numPages=d.numPages,this._htmlForXfa=d.htmlForXfa,delete d.htmlForXfa,U._capability.resolve(new IG(d,this))}),l.on("DocException",function(d){let c;switch(d.name){case"PasswordException":c=new KN(d.message,d.code);break;case"InvalidPDFException":c=new nm(d.message);break;case"MissingPDFException":c=new It(d.message);break;case"UnexpectedResponseException":c=new Kn(d.message,d.status);break;case"UnknownErrorException":c=new HN(d.message,d.details);break;default:Dl("DocException - expected a valid Error.")}U._capability.reject(c)}),l.on("PasswordRequest",d=>{if(J(this,rd,Promise.withResolvers()),U.onPassword){const c=W=>{W instanceof Error?F(this,rd).reject(W):F(this,rd).resolve({password:W})};try{U.onPassword(c,d.code)}catch(W){F(this,rd).reject(W)}}else F(this,rd).reject(new KN(d.message,d.code));return F(this,rd).promise}),l.on("DataLoaded",d=>{var c;(c=U.onProgress)==null||c.call(U,{loaded:d.length,total:d.length}),this.downloadInfoCapability.resolve(d)}),l.on("StartRenderPage",d=>{this.destroyed||F(this,xd).get(d.pageIndex)._startRenderPage(d.transparency,d.cacheKey)}),l.on("commonobj",([d,c,W])=>{var s;if(this.destroyed||this.commonObjs.has(d))return null;switch(c){case"Font":const{disableFontFace:Q,fontExtraProperties:R,pdfBug:m}=this._params;if("error"in W){const p=W.error;Jl(`Error during font loading: ${p}`),this.commonObjs.resolve(d,p);break}const e=m&&(s=globalThis.FontInspector)!=null&&s.enabled?(p,B)=>globalThis.FontInspector.fontAdded(p,B):null,S=new kM(W,{disableFontFace:Q,inspectFont:e});this.fontLoader.bind(S).catch(()=>l.sendWithPromise("FontFallback",{id:d})).finally(()=>{!R&&S.data&&(S.data=null),this.commonObjs.resolve(d,S)});break;case"CopyLocalImage":const{imageRef:Y}=W;lU(Y,"The imageRef must be defined.");for(const p of F(this,xd).values())for(const[,B]of p.objs)if((B==null?void 0:B.ref)===Y)return B.dataLen?(this.commonObjs.resolve(d,structuredClone(B)),B.dataLen):null;break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(d,W);break;default:throw new Error(`Got unknown common object type ${c}`)}return null}),l.on("obj",([d,c,W,s])=>{var Q;if(this.destroyed)return;const R=F(this,xd).get(c);if(!R.objs.has(d)){if(R._intentStates.size===0){(Q=s==null?void 0:s.bitmap)==null||Q.close();return}switch(W){case"Image":R.objs.resolve(d,s),(s==null?void 0:s.dataLen)>tM&&(R._maybeCleanupAfterRender=!0);break;case"Pattern":R.objs.resolve(d,s);break;default:throw new Error(`Got unknown object type ${W}`)}}}),l.on("DocProgress",d=>{var c;this.destroyed||(c=U.onProgress)==null||c.call(U,{loaded:d.loaded,total:d.total})}),l.on("FetchBuiltInCMap",d=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(d):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),l.on("FetchStandardFontData",d=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(d):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){var l;this.annotationStorage.size<=0&&Jl("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:U,transfer:d}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:U,filename:((l=this._fullReader)==null?void 0:l.filename)??null},d).finally(()=>{this.annotationStorage.resetModified()})}getPage(l){if(!Number.isInteger(l)||l<=0||l>this._numPages)return Promise.reject(new Error("Invalid page request."));const U=l-1,d=F(this,Qc).get(U);if(d)return d;const c=this.messageHandler.sendWithPromise("GetPage",{pageIndex:U}).then(W=>{if(this.destroyed)throw new Error("Transport destroyed");W.refStr&&F(this,ic).set(W.refStr,l);const s=new DG(U,W,this,this._params.pdfBug);return F(this,xd).set(U,s),s});return F(this,Qc).set(U,c),c}getPageIndex(l){return Hm(l)?this.messageHandler.sendWithPromise("GetPageIndex",{num:l.num,gen:l.gen}):Promise.reject(new Error("Invalid pageIndex request."))}getAnnotations(l,U){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:l,intent:U})}getFieldObjects(){return G(this,SF,Nc).call(this,"GetFieldObjects")}hasJSActions(){return G(this,SF,Nc).call(this,"HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(l){return typeof l!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:l})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return G(this,SF,Nc).call(this,"GetDocJSActions")}getPageJSActions(l){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:l})}getStructTree(l){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:l})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(l){return G(this,SF,Nc).call(this,"GetOptionalContentConfig").then(U=>new dG(U,l))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const l="GetMetadata",U=F(this,XZ).get(l);if(U)return U;const d=this.messageHandler.sendWithPromise(l,null).then(c=>{var W,s;return{info:c[0],metadata:c[1]?new lG(c[1]):null,contentDispositionFilename:((W=this._fullReader)==null?void 0:W.filename)??null,contentLength:((s=this._fullReader)==null?void 0:s.contentLength)??null}});return F(this,XZ).set(l,d),d}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(l=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const U of F(this,xd).values())if(!U.cleanup())throw new Error(`startCleanup: Page ${U.pageNumber} is currently rendering.`);this.commonObjs.clear(),l||this.fontLoader.clear(),F(this,XZ).clear(),this.filterFactory.destroy(!0),Ws.cleanup()}}cachedPageNumber(l){if(!Hm(l))return null;const U=l.gen===0?`${l.num}R`:`${l.num}R${l.gen}`;return F(this,ic).get(U)??null}}XZ=new WeakMap,xd=new WeakMap,Qc=new WeakMap,ic=new WeakMap,rd=new WeakMap,SF=new WeakSet,Nc=function(V,l=null){const U=F(this,XZ).get(V);if(U)return U;const d=this.messageHandler.sendWithPromise(V,l);return F(this,XZ).set(V,d),d};const as=Symbol("INITIAL_DATA");class fm{constructor(){h(this,Na),h(this,Md,Object.create(null))}get(l,U=null){if(U){const c=G(this,Na,Mi).call(this,l);return c.promise.then(()=>U(c.data)),null}const d=F(this,Md)[l];if(!d||d.data===as)throw new Error(`Requesting object that isn't resolved yet ${l}.`);return d.data}has(l){const U=F(this,Md)[l];return!!U&&U.data!==as}resolve(l,U=null){const d=G(this,Na,Mi).call(this,l);d.data=U,d.resolve()}clear(){var l;for(const U in F(this,Md)){const{data:d}=F(this,Md)[U];(l=d==null?void 0:d.bitmap)==null||l.close()}J(this,Md,Object.create(null))}*[Symbol.iterator](){for(const l in F(this,Md)){const{data:U}=F(this,Md)[l];U!==as&&(yield[l,U])}}}Md=new WeakMap,Na=new WeakSet,Mi=function(V){var l;return(l=F(this,Md))[V]||(l[V]={...Promise.withResolvers(),data:as})};class CG{constructor(l){h(this,bt,null),J(this,bt,l),this.onContinue=null}get promise(){return F(this,bt).capability.promise}cancel(l=0){F(this,bt).cancel(null,l)}get separateAnnots(){const{separateAnnots:l}=F(this,bt).operatorList;if(!l)return!1;const{annotationCanvasMap:U}=F(this,bt);return l.form||l.canvas&&(U==null?void 0:U.size)>0}}bt=new WeakMap;const Am=class YW{constructor({callback:l,params:U,objs:d,commonObjs:c,annotationCanvasMap:W,operatorList:s,pageIndex:Q,canvasFactory:R,filterFactory:m,useRequestAnimationFrame:e=!1,pdfBug:S=!1,pageColors:Y=null}){this.callback=l,this.params=U,this.objs=d,this.commonObjs=c,this.annotationCanvasMap=W,this.operatorListIdx=null,this.operatorList=s,this._pageIndex=Q,this.canvasFactory=R,this.filterFactory=m,this._pdfBug=S,this.pageColors=Y,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=e===!0&&typeof window<"u",this.cancelled=!1,this.capability=Promise.withResolvers(),this.task=new CG(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=U.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics({transparency:l=!1,optionalContentConfig:U}){var d,c;if(this.cancelled)return;if(this._canvas){if(F(YW,XF).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");F(YW,XF).add(this._canvas)}this._pdfBug&&(d=globalThis.StepperManager)!=null&&d.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:W,viewport:s,transform:Q,background:R}=this.params;this.gfx=new Zs(W,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:U},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:Q,viewport:s,transparency:l,background:R}),this.operatorListIdx=0,this.graphicsReady=!0,(c=this.graphicsReadyCallback)==null||c.call(this)}cancel(l=null,U=0){var d;this.running=!1,this.cancelled=!0,(d=this.gfx)==null||d.endDrawing(),F(YW,XF).delete(this._canvas),this.callback(l||new qN(`Rendering cancelled, page ${this._pageIndex+1}`,U))}operatorListChanged(){var l;if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}(l=this.stepper)==null||l.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),F(YW,XF).delete(this._canvas),this.callback())))}};XF=new WeakMap,h(Am,XF,new WeakSet);let xG=Am;const rG="4.3.136",jG="0cec64437";yl(670);function _m(V){return Math.floor(Math.max(0,Math.min(1,V))*255).toString(16).padStart(2,"0")}function hW(V){return Math.max(0,Math.min(255,255*V))}class qm{static CMYK_G([l,U,d,c]){return["G",1-Math.min(1,.3*l+.59*d+.11*U+c)]}static G_CMYK([l]){return["CMYK",0,0,0,1-l]}static G_RGB([l]){return["RGB",l,l,l]}static G_rgb([l]){return l=hW(l),[l,l,l]}static G_HTML([l]){const U=_m(l);return`#${U}${U}${U}`}static RGB_G([l,U,d]){return["G",.3*l+.59*U+.11*d]}static RGB_rgb(l){return l.map(hW)}static RGB_HTML(l){return`#${l.map(_m).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([l,U,d,c]){return["RGB",1-Math.min(1,l+c),1-Math.min(1,d+c),1-Math.min(1,U+c)]}static CMYK_rgb([l,U,d,c]){return[hW(1-Math.min(1,l+c)),hW(1-Math.min(1,d+c)),hW(1-Math.min(1,U+c))]}static CMYK_HTML(l){const U=this.CMYK_RGB(l).slice(1);return this.RGB_HTML(U)}static RGB_CMYK([l,U,d]){const c=1-l,W=1-U,s=1-d,Q=Math.min(c,W,s);return["CMYK",c,W,s,Q]}}class $m{static setupStorage(l,U,d,c,W){const s=c.getValue(U,{value:null});switch(d.name){case"textarea":if(s.value!==null&&(l.textContent=s.value),W==="print")break;l.addEventListener("input",Q=>{c.setValue(U,{value:Q.target.value})});break;case"input":if(d.attributes.type==="radio"||d.attributes.type==="checkbox"){if(s.value===d.attributes.xfaOn?l.setAttribute("checked",!0):s.value===d.attributes.xfaOff&&l.removeAttribute("checked"),W==="print")break;l.addEventListener("change",Q=>{c.setValue(U,{value:Q.target.checked?Q.target.getAttribute("xfaOn"):Q.target.getAttribute("xfaOff")})})}else{if(s.value!==null&&l.setAttribute("value",s.value),W==="print")break;l.addEventListener("input",Q=>{c.setValue(U,{value:Q.target.value})})}break;case"select":if(s.value!==null){l.setAttribute("value",s.value);for(const Q of d.children)Q.attributes.value===s.value?Q.attributes.selected=!0:Q.attributes.hasOwnProperty("selected")&&delete Q.attributes.selected}l.addEventListener("input",Q=>{const R=Q.target.options,m=R.selectedIndex===-1?"":R[R.selectedIndex].value;c.setValue(U,{value:m})});break}}static setAttributes({html:l,element:U,storage:d=null,intent:c,linkService:W}){const{attributes:s}=U,Q=l instanceof HTMLAnchorElement;s.type==="radio"&&(s.name=`${s.name}-${c}`);for(const[R,m]of Object.entries(s))if(m!=null)switch(R){case"class":m.length&&l.setAttribute(R,m.join(" "));break;case"dataId":break;case"id":l.setAttribute("data-element-id",m);break;case"style":Object.assign(l.style,m);break;case"textContent":l.textContent=m;break;default:(!Q||R!=="href"&&R!=="newWindow")&&l.setAttribute(R,m)}Q&&W.addLinkAttributes(l,s.href,s.newWindow),d&&s.dataId&&this.setupStorage(l,s.dataId,U,d)}static render(l){var U,d;const c=l.annotationStorage,W=l.linkService,s=l.xfaHtml,Q=l.intent||"display",R=document.createElement(s.name);s.attributes&&this.setAttributes({html:R,element:s,intent:Q,linkService:W});const m=Q!=="richText",e=l.div;if(e.append(R),l.viewport){const p=`matrix(${l.viewport.transform.join(",")})`;e.style.transform=p}m&&e.setAttribute("class","xfaLayer xfaFont");const S=[];if(s.children.length===0){if(s.value){const p=document.createTextNode(s.value);R.append(p),m&&RW.shouldBuildText(s.name)&&S.push(p)}return{textDivs:S}}const Y=[[s,-1,R]];for(;Y.length>0;){const[p,B,z]=Y.at(-1);if(B+1===p.children.length){Y.pop();continue}const L=p.children[++Y.at(-1)[1]];if(L===null)continue;const{name:D}=L;if(D==="#text"){const f=document.createTextNode(L.value);S.push(f),z.append(f);continue}const x=(U=L==null?void 0:L.attributes)!=null&&U.xmlns?document.createElementNS(L.attributes.xmlns,D):document.createElement(D);if(z.append(x),L.attributes&&this.setAttributes({html:x,element:L,storage:c,intent:Q,linkService:W}),((d=L.children)==null?void 0:d.length)>0)Y.push([L,-1,x]);else if(L.value){const f=document.createTextNode(L.value);m&&RW.shouldBuildText(D)&&S.push(f),x.append(f)}}for(const p of e.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))p.setAttribute("readOnly",!0);return{textDivs:S}}static update(l){const U=`matrix(${l.viewport.transform.join(",")})`;l.div.style.transform=U,l.div.hidden=!1}}const bW=1e3,OG=9,wt=new WeakSet;function dZ(V){return{width:V[2]-V[0],height:V[3]-V[1]}}class gG{static create(l){switch(l.data.annotationType){case $l.LINK:return new le(l);case $l.TEXT:return new HG(l);case $l.WIDGET:switch(l.data.fieldType){case"Tx":return new vG(l);case"Btn":return l.data.radioButton?new Ue(l):l.data.checkBox?new fG(l):new AG(l);case"Ch":return new _G(l);case"Sig":return new PG(l)}return new Ct(l);case $l.POPUP:return new NR(l);case $l.FREETEXT:return new de(l);case $l.LINE:return new $G(l);case $l.SQUARE:return new lJ(l);case $l.CIRCLE:return new UJ(l);case $l.POLYLINE:return new Ze(l);case $l.CARET:return new ZJ(l);case $l.INK:return new te(l);case $l.POLYGON:return new dJ(l);case $l.HIGHLIGHT:return new tJ(l);case $l.UNDERLINE:return new FJ(l);case $l.SQUIGGLY:return new cJ(l);case $l.STRIKEOUT:return new WJ(l);case $l.STAMP:return new Fe(l);case $l.FILEATTACHMENT:return new VJ(l);default:return new UU(l)}}}const KG=class i2{constructor(l,{isRenderable:U=!1,ignoreBorder:d=!1,createQuadrilaterals:c=!1}={}){h(this,Ra),h(this,mt,null),h(this,Rc,!1),h(this,hc,null),this.isRenderable=U,this.data=l.data,this.layer=l.layer,this.linkService=l.linkService,this.downloadManager=l.downloadManager,this.imageResourcesPath=l.imageResourcesPath,this.renderForms=l.renderForms,this.svgFactory=l.svgFactory,this.annotationStorage=l.annotationStorage,this.enableScripting=l.enableScripting,this.hasJSActions=l.hasJSActions,this._fieldObjects=l.fieldObjects,this.parent=l.parent,U&&(this.container=this._createContainer(d)),c&&this._createQuadrilaterals()}static _hasPopupData({titleObj:l,contentsObj:U,richText:d}){return!!(l!=null&&l.str||U!=null&&U.str||d!=null&&d.str)}get hasPopupData(){return i2._hasPopupData(this.data)}updateEdited(l){var U;if(!this.container)return;F(this,mt)||J(this,mt,{rect:this.data.rect.slice(0)});const{rect:d}=l;d&&G(this,Ra,Gi).call(this,d),(U=F(this,hc))==null||U.popup.updateEdited(l)}resetEdited(){var l;F(this,mt)&&(G(this,Ra,Gi).call(this,F(this,mt).rect),(l=F(this,hc))==null||l.popup.resetEdited(),J(this,mt,null))}_createContainer(l){const{data:U,parent:{page:d,viewport:c}}=this,W=document.createElement("section");W.setAttribute("data-annotation-id",U.id),this instanceof Ct||(W.tabIndex=bW);const{style:s}=W;if(s.zIndex=this.parent.zIndex++,U.popupRef&&W.setAttribute("aria-haspopup","dialog"),U.alternativeText&&(W.title=U.alternativeText),U.noRotate&&W.classList.add("norotate"),!U.rect||this instanceof NR){const{rotation:z}=U;return!U.hasOwnCanvas&&z!==0&&this.setRotation(z,W),W}const{width:Q,height:R}=dZ(U.rect);if(!l&&U.borderStyle.width>0){s.borderWidth=`${U.borderStyle.width}px`;const z=U.borderStyle.horizontalCornerRadius,L=U.borderStyle.verticalCornerRadius;if(z>0||L>0){const x=`calc(${z}px * var(--scale-factor)) / calc(${L}px * var(--scale-factor))`;s.borderRadius=x}else if(this instanceof Ue){const x=`calc(${Q}px * var(--scale-factor)) / calc(${R}px * var(--scale-factor))`;s.borderRadius=x}switch(U.borderStyle.style){case WW.SOLID:s.borderStyle="solid";break;case WW.DASHED:s.borderStyle="dashed";break;case WW.BEVELED:Jl("Unimplemented border style: beveled");break;case WW.INSET:Jl("Unimplemented border style: inset");break;case WW.UNDERLINE:s.borderBottomStyle="solid";break}const D=U.borderColor||null;D?(J(this,Rc,!0),s.borderColor=al.makeHexColor(D[0]|0,D[1]|0,D[2]|0)):s.borderWidth=0}const m=al.normalizeRect([U.rect[0],d.view[3]-U.rect[1]+d.view[1],U.rect[2],d.view[3]-U.rect[3]+d.view[1]]),{pageWidth:e,pageHeight:S,pageX:Y,pageY:p}=c.rawDims;s.left=`${100*(m[0]-Y)/e}%`,s.top=`${100*(m[1]-p)/S}%`;const{rotation:B}=U;return U.hasOwnCanvas||B===0?(s.width=`${100*Q/e}%`,s.height=`${100*R/S}%`):this.setRotation(B,W),W}setRotation(l,U=this.container){if(!this.data.rect)return;const{pageWidth:d,pageHeight:c}=this.parent.viewport.rawDims,{width:W,height:s}=dZ(this.data.rect);let Q,R;l%180===0?(Q=100*W/d,R=100*s/c):(Q=100*s/d,R=100*W/c),U.style.width=`${Q}%`,U.style.height=`${R}%`,U.setAttribute("data-main-rotation",(360-l)%360)}get _commonActions(){const l=(U,d,c)=>{const W=c.detail[U],s=W[0],Q=W.slice(1);c.target.style[d]=qm[`${s}_HTML`](Q),this.annotationStorage.setValue(this.data.id,{[d]:qm[`${s}_rgb`](Q)})};return ol(this,"_commonActions",{display:U=>{const{display:d}=U.detail,c=d%2===1;this.container.style.visibility=c?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:c,noPrint:d===1||d===2})},print:U=>{this.annotationStorage.setValue(this.data.id,{noPrint:!U.detail.print})},hidden:U=>{const{hidden:d}=U.detail;this.container.style.visibility=d?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:d,noView:d})},focus:U=>{setTimeout(()=>U.target.focus({preventScroll:!1}),0)},userName:U=>{U.target.title=U.detail.userName},readonly:U=>{U.target.disabled=U.detail.readonly},required:U=>{this._setRequired(U.target,U.detail.required)},bgColor:U=>{l("bgColor","backgroundColor",U)},fillColor:U=>{l("fillColor","backgroundColor",U)},fgColor:U=>{l("fgColor","color",U)},textColor:U=>{l("textColor","color",U)},borderColor:U=>{l("borderColor","borderColor",U)},strokeColor:U=>{l("strokeColor","borderColor",U)},rotation:U=>{const d=U.detail.rotation;this.setRotation(d),this.annotationStorage.setValue(this.data.id,{rotation:d})}})}_dispatchEventFromSandbox(l,U){const d=this._commonActions;for(const c of Object.keys(U.detail)){const W=l[c]||d[c];W==null||W(U)}}_setDefaultPropertiesFromJS(l){if(!this.enableScripting)return;const U=this.annotationStorage.getRawValue(this.data.id);if(!U)return;const d=this._commonActions;for(const[c,W]of Object.entries(U)){const s=d[c];if(s){const Q={detail:{[c]:W},target:l};s(Q),delete U[c]}}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:l}=this.data;if(!l)return;const[U,d,c,W]=this.data.rect;if(l.length===1){const[,{x:z,y:L},{x:D,y:x}]=l[0];if(c===z&&W===L&&U===D&&d===x)return}const{style:s}=this.container;let Q;if(F(this,Rc)){const{borderColor:z,borderWidth:L}=s;s.borderWidth=0,Q=["url('data:image/svg+xml;utf8,",'<svg xmlns="http://www.w3.org/2000/svg"',' preserveAspectRatio="none" viewBox="0 0 1 1">',`<g fill="transparent" stroke="${z}" stroke-width="${L}">`],this.container.classList.add("hasBorder")}const R=c-U,m=W-d,{svgFactory:e}=this,S=e.createElement("svg");S.classList.add("quadrilateralsContainer"),S.setAttribute("width",0),S.setAttribute("height",0);const Y=e.createElement("defs");S.append(Y);const p=e.createElement("clipPath"),B=`clippath_${this.data.id}`;p.setAttribute("id",B),p.setAttribute("clipPathUnits","objectBoundingBox"),Y.append(p);for(const[,{x:z,y:L},{x:D,y:x}]of l){const f=e.createElement("rect"),q=(D-U)/R,dl=(W-L)/m,tl=(z-D)/R,Wl=(L-x)/m;f.setAttribute("x",q),f.setAttribute("y",dl),f.setAttribute("width",tl),f.setAttribute("height",Wl),p.append(f),Q==null||Q.push(`<rect vector-effect="non-scaling-stroke" x="${q}" y="${dl}" width="${tl}" height="${Wl}"/>`)}F(this,Rc)&&(Q.push("</g></svg>')"),s.backgroundImage=Q.join("")),this.container.append(S),this.container.style.clipPath=`url(#${B})`}_createPopup(){const{container:l,data:U}=this;l.setAttribute("aria-haspopup","dialog");const d=J(this,hc,new NR({data:{color:U.color,titleObj:U.titleObj,modificationDate:U.modificationDate,contentsObj:U.contentsObj,richText:U.richText,parentRect:U.rect,borderStyle:0,id:`popup_${U.id}`,rotation:U.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(d.render())}render(){Dl("Abstract method `AnnotationElement.render` called")}_getElementsByName(l,U=null){const d=[];if(this._fieldObjects){const c=this._fieldObjects[l];if(c)for(const{page:W,id:s,exportValues:Q}of c){if(W===-1||s===U)continue;const R=typeof Q=="string"?Q:null,m=document.querySelector(`[data-element-id="${s}"]`);if(m&&!wt.has(m)){Jl(`_getElementsByName - element not allowed: ${s}`);continue}d.push({id:s,exportValue:R,domElement:m})}return d}for(const c of document.getElementsByName(l)){const{exportValue:W}=c,s=c.getAttribute("data-element-id");s!==U&&wt.has(c)&&d.push({id:s,exportValue:W,domElement:c})}return d}show(){var l;this.container&&(this.container.hidden=!1),(l=this.popup)==null||l.maybeShow()}hide(){var l;this.container&&(this.container.hidden=!0),(l=this.popup)==null||l.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const l=this.getElementsToTriggerPopup();if(Array.isArray(l))for(const U of l)U.classList.add("highlightArea");else l.classList.add("highlightArea")}get _isEditable(){return!1}_editOnDoubleClick(){if(!this._isEditable)return;const{annotationEditorType:l,data:{id:U}}=this;this.container.addEventListener("dblclick",()=>{var d;(d=this.linkService.eventBus)==null||d.dispatch("switchannotationeditormode",{source:this,mode:l,editId:U})})}};mt=new WeakMap,Rc=new WeakMap,hc=new WeakMap,Ra=new WeakSet,Gi=function(V){const{container:{style:l},data:{rect:U,rotation:d},parent:{viewport:{rawDims:{pageWidth:c,pageHeight:W,pageX:s,pageY:Q}}}}=this;U==null||U.splice(0,4,...V);const{width:R,height:m}=dZ(V);l.left=`${100*(V[0]-s)/c}%`,l.top=`${100*(W-V[3]+Q)/W}%`,d===0?(l.width=`${100*R/c}%`,l.height=`${100*m/W}%`):this.setRotation(d)};let UU=KG;class le extends UU{constructor(l,U=null){super(l,{isRenderable:!0,ignoreBorder:!!(U!=null&&U.ignoreBorder),createQuadrilaterals:!0}),h(this,YZ),h(this,Ji),h(this,Ti),this.isTooltipOnly=l.data.isTooltipOnly}render(){const{data:l,linkService:U}=this,d=document.createElement("a");d.setAttribute("data-element-id",l.id);let c=!1;return l.url?(U.addLinkAttributes(d,l.url,l.newWindow),c=!0):l.action?(this._bindNamedAction(d,l.action),c=!0):l.attachment?(G(this,Ji,eb).call(this,d,l.attachment,l.attachmentDest),c=!0):l.setOCGState?(G(this,Ti,Mb).call(this,d,l.setOCGState),c=!0):l.dest?(this._bindLink(d,l.dest),c=!0):(l.actions&&(l.actions.Action||l.actions["Mouse Up"]||l.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(d,l),c=!0),l.resetForm?(this._bindResetFormAction(d,l.resetForm),c=!0):this.isTooltipOnly&&!c&&(this._bindLink(d,""),c=!0)),this.container.classList.add("linkAnnotation"),c&&this.container.append(d),this.container}_bindLink(l,U){l.href=this.linkService.getDestinationHash(U),l.onclick=()=>(U&&this.linkService.goToDestination(U),!1),(U||U==="")&&G(this,YZ,et).call(this)}_bindNamedAction(l,U){l.href=this.linkService.getAnchorUrl(""),l.onclick=()=>(this.linkService.executeNamedAction(U),!1),G(this,YZ,et).call(this)}_bindJSAction(l,U){l.href=this.linkService.getAnchorUrl("");const d=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const c of Object.keys(U.actions)){const W=d.get(c);W&&(l[W]=()=>{var s;return(s=this.linkService.eventBus)==null||s.dispatch("dispatcheventinsandbox",{source:this,detail:{id:U.id,name:c}}),!1})}l.onclick||(l.onclick=()=>!1),G(this,YZ,et).call(this)}_bindResetFormAction(l,U){const d=l.onclick;if(d||(l.href=this.linkService.getAnchorUrl("")),G(this,YZ,et).call(this),!this._fieldObjects){Jl('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),d||(l.onclick=()=>!1);return}l.onclick=()=>{var c;d==null||d();const{fields:W,refs:s,include:Q}=U,R=[];if(W.length!==0||s.length!==0){const S=new Set(s);for(const Y of W){const p=this._fieldObjects[Y]||[];for(const{id:B}of p)S.add(B)}for(const Y of Object.values(this._fieldObjects))for(const p of Y)S.has(p.id)===Q&&R.push(p)}else for(const S of Object.values(this._fieldObjects))R.push(...S);const m=this.annotationStorage,e=[];for(const S of R){const{id:Y}=S;switch(e.push(Y),S.type){case"text":{const B=S.defaultValue||"";m.setValue(Y,{value:B});break}case"checkbox":case"radiobutton":{const B=S.defaultValue===S.exportValues;m.setValue(Y,{value:B});break}case"combobox":case"listbox":{const B=S.defaultValue||"";m.setValue(Y,{value:B});break}default:continue}const p=document.querySelector(`[data-element-id="${Y}"]`);if(p){if(!wt.has(p)){Jl(`_bindResetFormAction - element not allowed: ${Y}`);continue}}else continue;p.dispatchEvent(new Event("resetform"))}return this.enableScripting&&((c=this.linkService.eventBus)==null||c.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:e,name:"ResetForm"}})),!1}}}YZ=new WeakSet,et=function(){this.container.setAttribute("data-internal-link","")},Ji=new WeakSet,eb=function(V,l,U=null){V.href=this.linkService.getAnchorUrl(""),l.description&&(V.title=l.description),V.onclick=()=>{var d;return(d=this.downloadManager)==null||d.openOrDownloadData(l.content,l.filename,U),!1},G(this,YZ,et).call(this)},Ti=new WeakSet,Mb=function(V,l){V.href=this.linkService.getAnchorUrl(""),V.onclick=()=>(this.linkService.executeSetOCGState(l),!1),G(this,YZ,et).call(this)};class HG extends UU{constructor(l){super(l,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const l=document.createElement("img");return l.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",l.setAttribute("data-l10n-id","pdfjs-text-annotation-type"),l.setAttribute("data-l10n-args",JSON.stringify({type:this.data.name})),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(l),this.container}}class Ct extends UU{render(){return this.container}showElementAndHideCanvas(l){var U;this.data.hasOwnCanvas&&(((U=l.previousSibling)==null?void 0:U.nodeName)==="CANVAS"&&(l.previousSibling.hidden=!0),l.hidden=!1)}_getKeyModifier(l){return EU.platform.isMac?l.metaKey:l.ctrlKey}_setEventListener(l,U,d,c,W){d.includes("mouse")?l.addEventListener(d,s=>{var Q;(Q=this.linkService.eventBus)==null||Q.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:c,value:W(s),shift:s.shiftKey,modifier:this._getKeyModifier(s)}})}):l.addEventListener(d,s=>{var Q;if(d==="blur"){if(!U.focused||!s.relatedTarget)return;U.focused=!1}else if(d==="focus"){if(U.focused)return;U.focused=!0}W&&((Q=this.linkService.eventBus)==null||Q.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:c,value:W(s)}}))})}_setEventListeners(l,U,d,c){var W,s,Q;for(const[R,m]of d)(m==="Action"||(W=this.data.actions)!=null&&W[m])&&((m==="Focus"||m==="Blur")&&(U||(U={focused:!1})),this._setEventListener(l,U,R,m,c),m==="Focus"&&!((s=this.data.actions)!=null&&s.Blur)?this._setEventListener(l,U,"blur","Blur",null):m==="Blur"&&!((Q=this.data.actions)!=null&&Q.Focus)&&this._setEventListener(l,U,"focus","Focus",null))}_setBackgroundColor(l){const U=this.data.backgroundColor||null;l.style.backgroundColor=U===null?"transparent":al.makeHexColor(U[0],U[1],U[2])}_setTextStyle(l){const U=["left","center","right"],{fontColor:d}=this.data.defaultAppearanceData,c=this.data.defaultAppearanceData.fontSize||OG,W=l.style;let s;const Q=2,R=m=>Math.round(10*m)/10;if(this.data.multiLine){const m=Math.abs(this.data.rect[3]-this.data.rect[1]-Q),e=Math.round(m/(ON*c))||1,S=m/e;s=Math.min(c,R(S/ON))}else{const m=Math.abs(this.data.rect[3]-this.data.rect[1]-Q);s=Math.min(c,R(m/ON))}W.fontSize=`calc(${s}px * var(--scale-factor))`,W.color=al.makeHexColor(d[0],d[1],d[2]),this.data.textAlignment!==null&&(W.textAlign=U[this.data.textAlignment])}_setRequired(l,U){U?l.setAttribute("required",!0):l.removeAttribute("required"),l.setAttribute("aria-required",U)}}class vG extends Ct{constructor(l){const U=l.renderForms||l.data.hasOwnCanvas||!l.data.hasAppearance&&!!l.data.fieldValue;super(l,{isRenderable:U})}setPropertyOnSiblings(l,U,d,c){const W=this.annotationStorage;for(const s of this._getElementsByName(l.name,l.id))s.domElement&&(s.domElement[U]=d),W.setValue(s.id,{[c]:d})}render(){var l,U;const d=this.annotationStorage,c=this.data.id;this.container.classList.add("textWidgetAnnotation");let W=null;if(this.renderForms){const s=d.getValue(c,{value:this.data.fieldValue});let Q=s.value||"";const R=d.getValue(c,{charLimit:this.data.maxLen}).charLimit;R&&Q.length>R&&(Q=Q.slice(0,R));let m=s.formattedValue||((l=this.data.textContent)==null?void 0:l.join(`
|
|
4
4
|
`))||null;m&&this.data.comb&&(m=m.replaceAll(/\s+/g,""));const e={userValue:Q,formattedValue:m,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(W=document.createElement("textarea"),W.textContent=m??Q,this.data.doNotScroll&&(W.style.overflowY="hidden")):(W=document.createElement("input"),W.type="text",W.setAttribute("value",m??Q),this.data.doNotScroll&&(W.style.overflowX="hidden")),this.data.hasOwnCanvas&&(W.hidden=!0),wt.add(W),W.setAttribute("data-element-id",c),W.disabled=this.data.readOnly,W.name=this.data.fieldName,W.tabIndex=bW,this._setRequired(W,this.data.required),R&&(W.maxLength=R),W.addEventListener("input",Y=>{d.setValue(c,{value:Y.target.value}),this.setPropertyOnSiblings(W,"value",Y.target.value,"value"),e.formattedValue=null}),W.addEventListener("resetform",Y=>{const p=this.data.defaultFieldValue??"";W.value=e.userValue=p,e.formattedValue=null});let S=Y=>{const{formattedValue:p}=e;p!=null&&(Y.target.value=p),Y.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){W.addEventListener("focus",p=>{var B;if(e.focused)return;const{target:z}=p;e.userValue&&(z.value=e.userValue),e.lastCommittedValue=z.value,e.commitKey=1,(B=this.data.actions)!=null&&B.Focus||(e.focused=!0)}),W.addEventListener("updatefromsandbox",p=>{this.showElementAndHideCanvas(p.target);const B={value(z){e.userValue=z.detail.value??"",d.setValue(c,{value:e.userValue.toString()}),z.target.value=e.userValue},formattedValue(z){const{formattedValue:L}=z.detail;e.formattedValue=L,L!=null&&z.target!==document.activeElement&&(z.target.value=L),d.setValue(c,{formattedValue:L})},selRange(z){z.target.setSelectionRange(...z.detail.selRange)},charLimit:z=>{var L;const{charLimit:D}=z.detail,{target:x}=z;if(D===0){x.removeAttribute("maxLength");return}x.setAttribute("maxLength",D);let f=e.userValue;!f||f.length<=D||(f=f.slice(0,D),x.value=e.userValue=f,d.setValue(c,{value:f}),(L=this.linkService.eventBus)==null||L.dispatch("dispatcheventinsandbox",{source:this,detail:{id:c,name:"Keystroke",value:f,willCommit:!0,commitKey:1,selStart:x.selectionStart,selEnd:x.selectionEnd}}))}};this._dispatchEventFromSandbox(B,p)}),W.addEventListener("keydown",p=>{var B;e.commitKey=1;let z=-1;if(p.key==="Escape"?z=0:p.key==="Enter"&&!this.data.multiLine?z=2:p.key==="Tab"&&(e.commitKey=3),z===-1)return;const{value:L}=p.target;e.lastCommittedValue!==L&&(e.lastCommittedValue=L,e.userValue=L,(B=this.linkService.eventBus)==null||B.dispatch("dispatcheventinsandbox",{source:this,detail:{id:c,name:"Keystroke",value:L,willCommit:!0,commitKey:z,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}}))});const Y=S;S=null,W.addEventListener("blur",p=>{var B,z;if(!e.focused||!p.relatedTarget)return;(B=this.data.actions)!=null&&B.Blur||(e.focused=!1);const{value:L}=p.target;e.userValue=L,e.lastCommittedValue!==L&&((z=this.linkService.eventBus)==null||z.dispatch("dispatcheventinsandbox",{source:this,detail:{id:c,name:"Keystroke",value:L,willCommit:!0,commitKey:e.commitKey,selStart:p.target.selectionStart,selEnd:p.target.selectionEnd}})),Y(p)}),(U=this.data.actions)!=null&&U.Keystroke&&W.addEventListener("beforeinput",p=>{var B;e.lastCommittedValue=null;const{data:z,target:L}=p,{value:D,selectionStart:x,selectionEnd:f}=L;let q=x,dl=f;switch(p.inputType){case"deleteWordBackward":{const tl=D.substring(0,x).match(/\w*[^\w]*$/);tl&&(q-=tl[0].length);break}case"deleteWordForward":{const tl=D.substring(x).match(/^[^\w]*\w*/);tl&&(dl+=tl[0].length);break}case"deleteContentBackward":x===f&&(q-=1);break;case"deleteContentForward":x===f&&(dl+=1);break}p.preventDefault(),(B=this.linkService.eventBus)==null||B.dispatch("dispatcheventinsandbox",{source:this,detail:{id:c,name:"Keystroke",value:D,change:z||"",willCommit:!1,selStart:q,selEnd:dl}})}),this._setEventListeners(W,e,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],p=>p.target.value)}if(S&&W.addEventListener("blur",S),this.data.comb){const Y=(this.data.rect[2]-this.data.rect[0])/R;W.classList.add("comb"),W.style.letterSpacing=`calc(${Y}px * var(--scale-factor) - 1ch)`}}else W=document.createElement("div"),W.textContent=this.data.fieldValue,W.style.verticalAlign="middle",W.style.display="table-cell",this.data.hasOwnCanvas&&(W.hidden=!0);return this._setTextStyle(W),this._setBackgroundColor(W),this._setDefaultPropertiesFromJS(W),this.container.append(W),this.container}}class PG extends Ct{constructor(l){super(l,{isRenderable:!!l.data.hasOwnCanvas})}}class fG extends Ct{constructor(l){super(l,{isRenderable:l.renderForms})}render(){const l=this.annotationStorage,U=this.data,d=U.id;let c=l.getValue(d,{value:U.exportValue===U.fieldValue}).value;typeof c=="string"&&(c=c!=="Off",l.setValue(d,{value:c})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const W=document.createElement("input");return wt.add(W),W.setAttribute("data-element-id",d),W.disabled=U.readOnly,this._setRequired(W,this.data.required),W.type="checkbox",W.name=U.fieldName,c&&W.setAttribute("checked",!0),W.setAttribute("exportValue",U.exportValue),W.tabIndex=bW,W.addEventListener("change",s=>{const{name:Q,checked:R}=s.target;for(const m of this._getElementsByName(Q,d)){const e=R&&m.exportValue===U.exportValue;m.domElement&&(m.domElement.checked=e),l.setValue(m.id,{value:e})}l.setValue(d,{value:R})}),W.addEventListener("resetform",s=>{const Q=U.defaultFieldValue||"Off";s.target.checked=Q===U.exportValue}),this.enableScripting&&this.hasJSActions&&(W.addEventListener("updatefromsandbox",s=>{const Q={value(R){R.target.checked=R.detail.value!=="Off",l.setValue(d,{value:R.target.checked})}};this._dispatchEventFromSandbox(Q,s)}),this._setEventListeners(W,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],s=>s.target.checked)),this._setBackgroundColor(W),this._setDefaultPropertiesFromJS(W),this.container.append(W),this.container}}class Ue extends Ct{constructor(l){super(l,{isRenderable:l.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const l=this.annotationStorage,U=this.data,d=U.id;let c=l.getValue(d,{value:U.fieldValue===U.buttonValue}).value;if(typeof c=="string"&&(c=c!==U.buttonValue,l.setValue(d,{value:c})),c)for(const s of this._getElementsByName(U.fieldName,d))l.setValue(s.id,{value:!1});const W=document.createElement("input");if(wt.add(W),W.setAttribute("data-element-id",d),W.disabled=U.readOnly,this._setRequired(W,this.data.required),W.type="radio",W.name=U.fieldName,c&&W.setAttribute("checked",!0),W.tabIndex=bW,W.addEventListener("change",s=>{const{name:Q,checked:R}=s.target;for(const m of this._getElementsByName(Q,d))l.setValue(m.id,{value:!1});l.setValue(d,{value:R})}),W.addEventListener("resetform",s=>{const Q=U.defaultFieldValue;s.target.checked=Q!=null&&Q===U.buttonValue}),this.enableScripting&&this.hasJSActions){const s=U.buttonValue;W.addEventListener("updatefromsandbox",Q=>{const R={value:m=>{const e=s===m.detail.value;for(const S of this._getElementsByName(m.target.name)){const Y=e&&S.id===d;S.domElement&&(S.domElement.checked=Y),l.setValue(S.id,{value:Y})}}};this._dispatchEventFromSandbox(R,Q)}),this._setEventListeners(W,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Q=>Q.target.checked)}return this._setBackgroundColor(W),this._setDefaultPropertiesFromJS(W),this.container.append(W),this.container}}class AG extends le{constructor(l){super(l,{ignoreBorder:l.data.hasAppearance})}render(){const l=super.render();l.classList.add("buttonWidgetAnnotation","pushButton");const U=l.lastChild;return this.enableScripting&&this.hasJSActions&&U&&(this._setDefaultPropertiesFromJS(U),U.addEventListener("updatefromsandbox",d=>{this._dispatchEventFromSandbox({},d)})),l}}class _G extends Ct{constructor(l){super(l,{isRenderable:l.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const l=this.annotationStorage,U=this.data.id,d=l.getValue(U,{value:this.data.fieldValue}),c=document.createElement("select");wt.add(c),c.setAttribute("data-element-id",U),c.disabled=this.data.readOnly,this._setRequired(c,this.data.required),c.name=this.data.fieldName,c.tabIndex=bW;let W=this.data.combo&&this.data.options.length>0;this.data.combo||(c.size=this.data.options.length,this.data.multiSelect&&(c.multiple=!0)),c.addEventListener("resetform",e=>{const S=this.data.defaultFieldValue;for(const Y of c.options)Y.selected=Y.value===S});for(const e of this.data.options){const S=document.createElement("option");S.textContent=e.displayValue,S.value=e.exportValue,d.value.includes(e.exportValue)&&(S.setAttribute("selected",!0),W=!1),c.append(S)}let s=null;if(W){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),c.prepend(e),s=()=>{e.remove(),c.removeEventListener("input",s),s=null},c.addEventListener("input",s)}const Q=e=>{const S=e?"value":"textContent",{options:Y,multiple:p}=c;return p?Array.prototype.filter.call(Y,B=>B.selected).map(B=>B[S]):Y.selectedIndex===-1?null:Y[Y.selectedIndex][S]};let R=Q(!1);const m=e=>{const S=e.target.options;return Array.prototype.map.call(S,Y=>({displayValue:Y.textContent,exportValue:Y.value}))};return this.enableScripting&&this.hasJSActions?(c.addEventListener("updatefromsandbox",e=>{const S={value(Y){s==null||s();const p=Y.detail.value,B=new Set(Array.isArray(p)?p:[p]);for(const z of c.options)z.selected=B.has(z.value);l.setValue(U,{value:Q(!0)}),R=Q(!1)},multipleSelection(Y){c.multiple=!0},remove(Y){const p=c.options,B=Y.detail.remove;p[B].selected=!1,c.remove(B),p.length>0&&Array.prototype.findIndex.call(p,z=>z.selected)===-1&&(p[0].selected=!0),l.setValue(U,{value:Q(!0),items:m(Y)}),R=Q(!1)},clear(Y){for(;c.length!==0;)c.remove(0);l.setValue(U,{value:null,items:[]}),R=Q(!1)},insert(Y){const{index:p,displayValue:B,exportValue:z}=Y.detail.insert,L=c.children[p],D=document.createElement("option");D.textContent=B,D.value=z,L?L.before(D):c.append(D),l.setValue(U,{value:Q(!0),items:m(Y)}),R=Q(!1)},items(Y){const{items:p}=Y.detail;for(;c.length!==0;)c.remove(0);for(const B of p){const{displayValue:z,exportValue:L}=B,D=document.createElement("option");D.textContent=z,D.value=L,c.append(D)}c.options.length>0&&(c.options[0].selected=!0),l.setValue(U,{value:Q(!0),items:m(Y)}),R=Q(!1)},indices(Y){const p=new Set(Y.detail.indices);for(const B of Y.target.options)B.selected=p.has(B.index);l.setValue(U,{value:Q(!0)}),R=Q(!1)},editable(Y){Y.target.disabled=!Y.detail.editable}};this._dispatchEventFromSandbox(S,e)}),c.addEventListener("input",e=>{var S;const Y=Q(!0),p=Q(!1);l.setValue(U,{value:Y}),e.preventDefault(),(S=this.linkService.eventBus)==null||S.dispatch("dispatcheventinsandbox",{source:this,detail:{id:U,name:"Keystroke",value:R,change:p,changeEx:Y,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(c,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],e=>e.target.value)):c.addEventListener("input",function(e){l.setValue(U,{value:Q(!0)})}),this.data.combo&&this._setTextStyle(c),this._setBackgroundColor(c),this._setDefaultPropertiesFromJS(c),this.container.append(c),this.container}}class NR extends UU{constructor(l){const{data:U,elements:d}=l;super(l,{isRenderable:UU._hasPopupData(U)}),this.elements=d,this.popup=null}render(){this.container.classList.add("popupAnnotation");const l=this.popup=new qG({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),U=[];for(const d of this.elements)d.popup=l,U.push(d.data.id),d.addHighlightArea();return this.container.setAttribute("aria-controls",U.map(d=>`${im}${d}`).join(",")),this.container}}class qG{constructor({container:l,color:U,elements:d,titleObj:c,modificationDate:W,contentsObj:s,richText:Q,parent:R,rect:m,parentRect:e,open:S}){h(this,Mc),h(this,Ga),h(this,pi),h(this,ui),h(this,Bi),h(this,oi),h(this,Gc),h(this,Jc),h(this,Sa),h(this,bc,G(this,Bi,Tb).bind(this)),h(this,Si,G(this,Sa,yi).bind(this)),h(this,Xi,G(this,Jc,Ta).bind(this)),h(this,mc,G(this,Gc,Ja).bind(this)),h(this,YF,null),h(this,gl,null),h(this,pZ,null),h(this,pF,null),h(this,ha,null),h(this,ba,null),h(this,ec,null),h(this,uZ,!1),h(this,Gd,null),h(this,BZ,null),h(this,ma,null),h(this,oZ,null),h(this,ea,null),h(this,Mt,null),h(this,uF,!1);var Y;J(this,gl,l),J(this,ea,c),J(this,pZ,s),J(this,oZ,Q),J(this,ba,R),J(this,YF,U),J(this,ma,m),J(this,ec,e),J(this,ha,d),J(this,pF,mm.toDateObject(W)),this.trigger=d.flatMap(p=>p.getElementsToTriggerPopup());for(const p of this.trigger)p.addEventListener("click",F(this,mc)),p.addEventListener("mouseenter",F(this,Xi)),p.addEventListener("mouseleave",F(this,Si)),p.classList.add("popupTriggerArea");for(const p of d)(Y=p.container)==null||Y.addEventListener("keydown",F(this,bc));F(this,gl).hidden=!0,S&&G(this,Gc,Ja).call(this)}render(){if(F(this,Gd))return;const l=J(this,Gd,document.createElement("div"));if(l.className="popup",F(this,YF)){const W=l.style.outlineColor=al.makeHexColor(...F(this,YF));CSS.supports("background-color","color-mix(in srgb, red 30%, white)")?l.style.backgroundColor=`color-mix(in srgb, ${W} 30%, white)`:l.style.backgroundColor=al.makeHexColor(...F(this,YF).map(s=>Math.floor(.7*(255-s)+s)))}const U=document.createElement("span");U.className="header";const d=document.createElement("h1");if(U.append(d),{dir:d.dir,str:d.textContent}=F(this,ea),l.append(U),F(this,pF)){const W=document.createElement("span");W.classList.add("popupDate"),W.setAttribute("data-l10n-id","pdfjs-annotation-date-string"),W.setAttribute("data-l10n-args",JSON.stringify({date:F(this,pF).toLocaleDateString(),time:F(this,pF).toLocaleTimeString()})),U.append(W)}const c=F(this,Mc,Ma);if(c)$m.render({xfaHtml:c,intent:"richText",div:l}),l.lastChild.classList.add("richText","popupContent");else{const W=this._formatContents(F(this,pZ));l.append(W)}F(this,gl).append(l)}_formatContents({str:l,dir:U}){const d=document.createElement("p");d.classList.add("popupContent"),d.dir=U;const c=l.split(/(?:\r\n?|\n)/);for(let W=0,s=c.length;W<s;++W){const Q=c[W];d.append(document.createTextNode(Q)),W<s-1&&d.append(document.createElement("br"))}return d}updateEdited({rect:l,popupContent:U}){var d;F(this,Mt)||J(this,Mt,{contentsObj:F(this,pZ),richText:F(this,oZ)}),l&&J(this,BZ,null),U&&(J(this,oZ,G(this,ui,Jb).call(this,U)),J(this,pZ,null)),(d=F(this,Gd))==null||d.remove(),J(this,Gd,null)}resetEdited(){var l;F(this,Mt)&&({contentsObj:vU(this,pZ)._,richText:vU(this,oZ)._}=F(this,Mt),J(this,Mt,null),(l=F(this,Gd))==null||l.remove(),J(this,Gd,null),J(this,BZ,null))}forceHide(){J(this,uF,this.isVisible),F(this,uF)&&(F(this,gl).hidden=!0)}maybeShow(){F(this,uF)&&(F(this,Gd)||G(this,Jc,Ta).call(this),J(this,uF,!1),F(this,gl).hidden=!1)}get isVisible(){return F(this,gl).hidden===!1}}bc=new WeakMap,Si=new WeakMap,Xi=new WeakMap,mc=new WeakMap,YF=new WeakMap,gl=new WeakMap,pZ=new WeakMap,pF=new WeakMap,ha=new WeakMap,ba=new WeakMap,ec=new WeakMap,uZ=new WeakMap,Gd=new WeakMap,BZ=new WeakMap,ma=new WeakMap,oZ=new WeakMap,ea=new WeakMap,Mt=new WeakMap,uF=new WeakMap,Mc=new WeakSet,Ma=function(){const V=F(this,oZ),l=F(this,pZ);return V!=null&&V.str&&(!(l!=null&&l.str)||l.str===V.str)&&F(this,oZ).html||null},Ga=new WeakSet,Yi=function(){var V,l,U;return((U=(l=(V=F(this,Mc,Ma))==null?void 0:V.attributes)==null?void 0:l.style)==null?void 0:U.fontSize)||0},pi=new WeakSet,Gb=function(){var V,l,U;return((U=(l=(V=F(this,Mc,Ma))==null?void 0:V.attributes)==null?void 0:l.style)==null?void 0:U.color)||null},ui=new WeakSet,Jb=function(V){const l=[],U={str:V,html:{name:"div",attributes:{dir:"auto"},children:[{name:"p",children:l}]}},d={style:{color:F(this,pi,Gb),fontSize:F(this,Ga,Yi)?`calc(${F(this,Ga,Yi)}px * var(--scale-factor))`:""}};for(const c of V.split(`
|