@getflip/swirl-components-react 0.300.1 → 0.300.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{file-manager.entry.ce12d42c.js → file-manager.entry.3ea0f6e2.js} +1 -1
- package/dist/{index.9a9fa403.js → index.125b00c7.js} +332 -332
- package/dist/{swirl-accordion-item.entry.5dcab4c8.js → swirl-accordion-item.entry.72e502ee.js} +1 -1
- package/dist/{swirl-accordion.entry.853e152d.js → swirl-accordion.entry.eb4466ec.js} +1 -1
- package/dist/{swirl-action-list-section.entry.a06eb606.js → swirl-action-list-section.entry.73cceb7b.js} +1 -1
- package/dist/{swirl-action-list_2.entry.4c67eb27.js → swirl-action-list_2.entry.537fc6cc.js} +1 -1
- package/dist/{swirl-app-bar.entry.49c0be00.js → swirl-app-bar.entry.4884279a.js} +1 -1
- package/dist/swirl-app-icon.entry.02eee298.js +30 -0
- package/dist/{swirl-app-layout_5.entry.79846f37.js → swirl-app-layout_5.entry.096ab881.js} +1 -1
- package/dist/{swirl-autocomplete.entry.e26394c6.js → swirl-autocomplete.entry.47930445.js} +1 -1
- package/dist/{swirl-avatar-group.entry.2b440840.js → swirl-avatar-group.entry.2458af98.js} +1 -1
- package/dist/{swirl-avatar.entry.1b89074c.js → swirl-avatar.entry.cf2611a1.js} +18 -15
- package/dist/{swirl-badge.entry.67536723.js → swirl-badge.entry.30ac2984.js} +1 -1
- package/dist/{swirl-banner.entry.86988597.js → swirl-banner.entry.3c4bd2ee.js} +1 -1
- package/dist/{swirl-box.entry.62b63a0d.js → swirl-box.entry.2ea40c97.js} +7 -5
- package/dist/{swirl-button-group.entry.5a77c5e5.js → swirl-button-group.entry.70d94069.js} +1 -1
- package/dist/{swirl-button.entry.c016a24b.js → swirl-button.entry.806f9f67.js} +1 -1
- package/dist/{swirl-card.entry.e44051d9.js → swirl-card.entry.8cb50ea4.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.984f0efc.js → swirl-carousel-slide.entry.4c848b66.js} +1 -1
- package/dist/{swirl-carousel.entry.e3c8c2df.js → swirl-carousel.entry.e67e14fa.js} +1 -1
- package/dist/{swirl-checkbox.entry.396094bd.js → swirl-checkbox.entry.51efe86d.js} +1 -1
- package/dist/{swirl-chip.entry.5e0bc688.js → swirl-chip.entry.9616a142.js} +1 -1
- package/dist/{swirl-color-input.entry.2b9f432e.js → swirl-color-input.entry.6c183bf0.js} +1 -1
- package/dist/{swirl-columns.entry.27070d05.js → swirl-columns.entry.7cd7d597.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +6 -6
- package/dist/{swirl-console-layout.entry.bebe36cb.js → swirl-console-layout.entry.e7f19ca9.js} +1 -1
- package/dist/{swirl-date-input.entry.d07bc67c.js → swirl-date-input.entry.8ac882dd.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.b8633c29.js → swirl-date-picker_2.entry.259364f3.js} +1 -1
- package/dist/{swirl-description-list-item.entry.1b83e49d.js → swirl-description-list-item.entry.f2c20836.js} +1 -1
- package/dist/{swirl-description-list.entry.581c0095.js → swirl-description-list.entry.4cacd2fc.js} +1 -1
- package/dist/{swirl-dialog.entry.fb4ec387.js → swirl-dialog.entry.e665fdb0.js} +1 -1
- package/dist/{swirl-emoji-clap.entry.ad28f9da.js → swirl-emoji-clap.entry.5f0bbca7.js} +1 -1
- package/dist/{swirl-emoji-happy.entry.dac1c301.js → swirl-emoji-happy.entry.587d1fe0.js} +1 -1
- package/dist/{swirl-emoji-idea.entry.d085153a.js → swirl-emoji-idea.entry.52214303.js} +1 -1
- package/dist/{swirl-emoji-love.entry.9fa5aa73.js → swirl-emoji-love.entry.5659c5c1.js} +1 -1
- package/dist/{swirl-emoji-sad.entry.14fc6213.js → swirl-emoji-sad.entry.945ff923.js} +1 -1
- package/dist/{swirl-emoji-thumbs-up.entry.885242b1.js → swirl-emoji-thumbs-up.entry.5ffc0064.js} +1 -1
- package/dist/{swirl-emoji.entry.eb160a69.js → swirl-emoji.entry.0f223ad3.js} +1 -1
- package/dist/{swirl-file-uploader.entry.8977fd72.js → swirl-file-uploader.entry.d67fa5fa.js} +1 -1
- package/dist/{swirl-file-viewer_8.entry.a23dea01.js → swirl-file-viewer_8.entry.1177b549.js} +497 -490
- package/dist/{swirl-form-control.entry.49253dc5.js → swirl-form-control.entry.a2568535.js} +1 -1
- package/dist/{swirl-form-group.entry.9a10c639.js → swirl-form-group.entry.4ee12a1a.js} +1 -1
- package/dist/{swirl-heading.entry.9674f414.js → swirl-heading.entry.a4437cad.js} +1 -1
- package/dist/{swirl-icon-add-moderator.entry.c968813d.js → swirl-icon-add-moderator.entry.68444084.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.7af10efc.js → swirl-icon-add-photo.entry.e6bb7636.js} +1 -1
- package/dist/{swirl-icon-add-reaction.entry.93ac6714.js → swirl-icon-add-reaction.entry.b96e0356.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.a786d097.js → swirl-icon-add_6.entry.469d9bc9.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.2eb44fec.js → swirl-icon-admin-panel-settings.entry.9f213e47.js} +1 -1
- package/dist/{swirl-icon-ai-filled.entry.0236951c.js → swirl-icon-ai-filled.entry.8db2ab78.js} +1 -1
- package/dist/{swirl-icon-ai.entry.c4d36558.js → swirl-icon-ai.entry.bbd26787.js} +1 -1
- package/dist/{swirl-icon-apps.entry.6b8bc0db.js → swirl-icon-apps.entry.76860bfe.js} +1 -1
- package/dist/{swirl-icon-arrow-back_5.entry.a8d788d6.js → swirl-icon-arrow-back_5.entry.372c7a71.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.9e9424eb.js → swirl-icon-arrow-downward_2.entry.51e2b3a9.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.1ed8efb5.js → swirl-icon-arrow-left_4.entry.de3d814c.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.c8771b3b.js → swirl-icon-arrow-right-small.entry.ae2bc5f0.js} +1 -1
- package/dist/{swirl-icon-aspect-ratio.entry.f43b9b55.js → swirl-icon-aspect-ratio.entry.5b35c216.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.74a5e284.js → swirl-icon-attachment.entry.0a08d912.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.061391d7.js → swirl-icon-bar-chart.entry.61c2954a.js} +1 -1
- package/dist/{swirl-icon-block.entry.527e95d0.js → swirl-icon-block.entry.e164c9be.js} +1 -1
- package/dist/{swirl-icon-bookmark-filled.entry.f4143540.js → swirl-icon-bookmark-filled.entry.6bed0e4e.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.239ebd56.js → swirl-icon-bookmark.entry.976973ad.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.ad8b6119.js → swirl-icon-cancel_4.entry.240e3d7b.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.82e0e69c.js → swirl-icon-chat-bubble.entry.ee7f474b.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.cda1e446.js → swirl-icon-chats-filled.entry.2e14703b.js} +1 -1
- package/dist/{swirl-icon-chats.entry.3a72f785.js → swirl-icon-chats.entry.166e6f5d.js} +1 -1
- package/dist/{swirl-icon-check-circle_2.entry.24f37941.js → swirl-icon-check-circle_2.entry.ec7eea09.js} +1 -1
- package/dist/{swirl-icon-check-small_2.entry.4969edb0.js → swirl-icon-check-small_2.entry.d2c5a7f3.js} +1 -1
- package/dist/{swirl-icon-check-strong_2.entry.3901ec6f.js → swirl-icon-check-strong_2.entry.5498f5c8.js} +1 -1
- package/dist/{swirl-icon-check.entry.fda9eb60.js → swirl-icon-check.entry.1d5e2bab.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.cd3e7148.js → swirl-icon-chevron-left.entry.5ffbcdcd.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.a816a5a3.js → swirl-icon-chevron-right.entry.9f517128.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.635ff10d.js → swirl-icon-close-small.entry.8eba19f0.js} +1 -1
- package/dist/{swirl-icon-close.entry.18329ed9.js → swirl-icon-close.entry.ba3e4b2c.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.95d7afd1.js → swirl-icon-cloud-upload.entry.5e7df454.js} +1 -1
- package/dist/{swirl-icon-column.entry.6f98c2c4.js → swirl-icon-column.entry.50f68c4d.js} +1 -1
- package/dist/{swirl-icon-comment.entry.9ffb5300.js → swirl-icon-comment.entry.7ff27e85.js} +1 -1
- package/dist/{swirl-icon-contrast.entry.07f09d6d.js → swirl-icon-contrast.entry.e4359212.js} +1 -1
- package/dist/{swirl-icon-copy.entry.2bf34b12.js → swirl-icon-copy.entry.19ebb3d0.js} +1 -1
- package/dist/{swirl-icon-crop.entry.5167072f.js → swirl-icon-crop.entry.d7b9298a.js} +1 -1
- package/dist/{swirl-icon-dark-mode.entry.b1ade5dc.js → swirl-icon-dark-mode.entry.0992f632.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.8a3450e9.js → swirl-icon-date-range.entry.b885a7c5.js} +1 -1
- package/dist/{swirl-icon-delete.entry.43cd2d62.js → swirl-icon-delete.entry.d3f10999.js} +1 -1
- package/dist/{swirl-icon-deployed-code.entry.4f2c6402.js → swirl-icon-deployed-code.entry.66ad3a60.js} +1 -1
- package/dist/{swirl-icon-description.entry.801f8810.js → swirl-icon-description.entry.7dd195ae.js} +1 -1
- package/dist/{swirl-icon-desktop.entry.d87f8223.js → swirl-icon-desktop.entry.d6553122.js} +1 -1
- package/dist/{swirl-icon-directory-filled.entry.2e29c447.js → swirl-icon-directory-filled.entry.e18043dd.js} +1 -1
- package/dist/{swirl-icon-directory.entry.0129119b.js → swirl-icon-directory.entry.761d445c.js} +1 -1
- package/dist/{swirl-icon-discover.entry.827db26e.js → swirl-icon-discover.entry.a751c43b.js} +1 -1
- package/dist/{swirl-icon-dock-left.entry.6e047faf.js → swirl-icon-dock-left.entry.a08e517e.js} +1 -1
- package/dist/{swirl-icon-door-open.entry.20521bf9.js → swirl-icon-door-open.entry.8090ec8a.js} +1 -1
- package/dist/{swirl-icon-dot.entry.f59be403.js → swirl-icon-dot.entry.b1601998.js} +1 -1
- package/dist/{swirl-icon-double-arrow-right.entry.f6fc7605.js → swirl-icon-double-arrow-right.entry.8240a0a5.js} +1 -1
- package/dist/{swirl-icon-download.entry.34b1f7f9.js → swirl-icon-download.entry.da8548d3.js} +1 -1
- package/dist/{swirl-icon-edit.entry.7ae336ac.js → swirl-icon-edit.entry.12cc8516.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.458469a0.js → swirl-icon-emoji-mood.entry.b54b417a.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.e28dc233.js → swirl-icon-emoji-satisfied.entry.f9529506.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.0266a5e8.js → swirl-icon-error_3.entry.d37bcd24.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.bd1fdd58.js → swirl-icon-expand-more.entry.3eb7ac0a.js} +1 -1
- package/dist/{swirl-icon-experiment.entry.01642f19.js → swirl-icon-experiment.entry.459c6a8a.js} +1 -1
- package/dist/{swirl-icon-file.entry.eb06074f.js → swirl-icon-file.entry.65ef013c.js} +1 -1
- package/dist/{swirl-icon-filter.entry.a7756f00.js → swirl-icon-filter.entry.70929f01.js} +1 -1
- package/dist/{swirl-icon-folder.entry.b8410ac7.js → swirl-icon-folder.entry.654eb98d.js} +1 -1
- package/dist/{swirl-icon-format-h-one.entry.11178a7b.js → swirl-icon-format-h-one.entry.dd6aa675.js} +1 -1
- package/dist/{swirl-icon-gif_3.entry.5a7ca4f7.js → swirl-icon-gif_3.entry.06f6712c.js} +1 -1
- package/dist/{swirl-icon-group-add.entry.8944a555.js → swirl-icon-group-add.entry.df7efab8.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.ab2bb1bb.js → swirl-icon-group-assign.entry.15ed453b.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.9faa7560.js → swirl-icon-groups-filled.entry.76c449b0.js} +1 -1
- package/dist/{swirl-icon-groups.entry.b93d306b.js → swirl-icon-groups.entry.4ddb2fdd.js} +1 -1
- package/dist/{swirl-icon-hamburger-menu.entry.52dd05a4.js → swirl-icon-hamburger-menu.entry.f55a5d5f.js} +1 -1
- package/dist/{swirl-icon-help.entry.b9a85c26.js → swirl-icon-help.entry.34ea0941.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.b0fa2575.js → swirl-icon-highlight.entry.7ff1bb11.js} +1 -1
- package/dist/{swirl-icon-history.entry.e1083c84.js → swirl-icon-history.entry.c6b2c383.js} +1 -1
- package/dist/{swirl-icon-home.entry.f4e64d25.js → swirl-icon-home.entry.a8ce3a02.js} +1 -1
- package/dist/{swirl-icon-image.entry.3482e9b8.js → swirl-icon-image.entry.38b4b3c5.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.515484a7.js → swirl-icon-improve-text.entry.fe2a8fa1.js} +1 -1
- package/dist/{swirl-icon-info.entry.41112ed8.js → swirl-icon-info.entry.2d4451ae.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.b3996f91.js → swirl-icon-insert-below.entry.0f003302.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.5c14ac4f.js → swirl-icon-insert-on-top.entry.91539994.js} +1 -1
- package/dist/{swirl-icon-inventory-off.entry.5afde118.js → swirl-icon-inventory-off.entry.bee1c5f5.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.8380b8b8.js → swirl-icon-inventory.entry.23b5ff41.js} +1 -1
- package/dist/{swirl-icon-key.entry.f1001fdf.js → swirl-icon-key.entry.3c35ad05.js} +1 -1
- package/dist/{swirl-icon-keyboard-hide.entry.edcda479.js → swirl-icon-keyboard-hide.entry.732c4adb.js} +1 -1
- package/dist/{swirl-icon-keyboard.entry.0ecd210c.js → swirl-icon-keyboard.entry.38c7028e.js} +1 -1
- package/dist/{swirl-icon-light-mode.entry.b0601b8e.js → swirl-icon-light-mode.entry.363d4291.js} +1 -1
- package/dist/{swirl-icon-like.entry.f0cc6f5c.js → swirl-icon-like.entry.293761cc.js} +1 -1
- package/dist/{swirl-icon-link.entry.6c4ae7ad.js → swirl-icon-link.entry.e58453c0.js} +1 -1
- package/dist/{swirl-icon-live.entry.75cab586.js → swirl-icon-live.entry.633022a2.js} +1 -1
- package/dist/{swirl-icon-load.entry.f1ae794b.js → swirl-icon-load.entry.de59ef27.js} +1 -1
- package/dist/{swirl-icon-lock-open.entry.e365a0e2.js → swirl-icon-lock-open.entry.f3fd04d6.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.b8f5a359.js → swirl-icon-lock-person.entry.012aca2e.js} +1 -1
- package/dist/{swirl-icon-lock.entry.79f534cf.js → swirl-icon-lock.entry.545ce208.js} +1 -1
- package/dist/{swirl-icon-login.entry.8868e4ab.js → swirl-icon-login.entry.cbc8a246.js} +1 -1
- package/dist/{swirl-icon-logout.entry.9ac43f18.js → swirl-icon-logout.entry.cf37f9c3.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.fe280358.js → swirl-icon-long-text.entry.6cc78dc1.js} +1 -1
- package/dist/{swirl-icon-mail.entry.81b93a1c.js → swirl-icon-mail.entry.bffe2591.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.1149baa7.js → swirl-icon-manage-accounts.entry.b6c9c743.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.2c3a7d15.js → swirl-icon-mark-chat-read.entry.8903a224.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.323849c3.js → swirl-icon-mark-chat-unread.entry.d1458575.js} +1 -1
- package/dist/{swirl-icon-mention.entry.b46b4afa.js → swirl-icon-mention.entry.a8224266.js} +1 -1
- package/dist/{swirl-icon-menu-book-filled.entry.2ce3bfbf.js → swirl-icon-menu-book-filled.entry.5688c939.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.f1f5c0b8.js → swirl-icon-menu-filled.entry.d0b72e67.js} +1 -1
- package/dist/{swirl-icon-menu.entry.ce16f2b0.js → swirl-icon-menu.entry.23776a35.js} +1 -1
- package/dist/{swirl-icon-message.entry.6a633a29.js → swirl-icon-message.entry.317a9582.js} +1 -1
- package/dist/{swirl-icon-mic-off.entry.7f145e82.js → swirl-icon-mic-off.entry.3916937f.js} +1 -1
- package/dist/{swirl-icon-mic.entry.b9bea04e.js → swirl-icon-mic.entry.5d1b1dbf.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.eb143edb.js → swirl-icon-more-horizontal.entry.98b9fcb7.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.35dbc2ff.js → swirl-icon-news-filled.entry.8b1f210b.js} +1 -1
- package/dist/{swirl-icon-news-off.entry.1d4eeb08.js → swirl-icon-news-off.entry.969a6d41.js} +1 -1
- package/dist/{swirl-icon-news.entry.2a6b4feb.js → swirl-icon-news.entry.db14b5b9.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.0f6188b9.js → swirl-icon-notifications-active.entry.d89111af.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.94be19ee.js → swirl-icon-notifications-off.entry.72a61d2e.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.bfa71ddc.js → swirl-icon-notifications.entry.54767c77.js} +1 -1
- package/dist/{swirl-icon-open-in-full.entry.5034737e.js → swirl-icon-open-in-full.entry.dc512043.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.2d5baae8.js → swirl-icon-open-in-new.entry.e543ec44.js} +1 -1
- package/dist/{swirl-icon-pause-circle.entry.27fd1ea6.js → swirl-icon-pause-circle.entry.c0a60fec.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.afdbde5c.js → swirl-icon-people-alt.entry.ab641757.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.53131093.js → swirl-icon-person-off.entry.31f37caf.js} +1 -1
- package/dist/{swirl-icon-person.entry.b3c57b8c.js → swirl-icon-person.entry.08480f38.js} +1 -1
- package/dist/{swirl-icon-phone.entry.181de988.js → swirl-icon-phone.entry.c2c9487d.js} +1 -1
- package/dist/{swirl-icon-photo-camera.entry.f61a1180.js → swirl-icon-photo-camera.entry.ad5a38d0.js} +1 -1
- package/dist/{swirl-icon-pin-off.entry.d1999b68.js → swirl-icon-pin-off.entry.e74f9b68.js} +1 -1
- package/dist/{swirl-icon-pin.entry.41d77e06.js → swirl-icon-pin.entry.140c7686.js} +1 -1
- package/dist/{swirl-icon-place.entry.fe12aba7.js → swirl-icon-place.entry.12f90a8a.js} +1 -1
- package/dist/{swirl-icon-poll.entry.7273771c.js → swirl-icon-poll.entry.b8e172a3.js} +1 -1
- package/dist/{swirl-icon-post-approval.entry.69f2e216.js → swirl-icon-post-approval.entry.ef6998d1.js} +1 -1
- package/dist/{swirl-icon-present.entry.d60ae8e6.js → swirl-icon-present.entry.71195624.js} +1 -1
- package/dist/{swirl-icon-print.entry.e7d71503.js → swirl-icon-print.entry.59b9fed6.js} +1 -1
- package/dist/{swirl-icon-public-off.entry.5c063ffb.js → swirl-icon-public-off.entry.0940a120.js} +1 -1
- package/dist/{swirl-icon-public.entry.e139de85.js → swirl-icon-public.entry.380d4216.js} +1 -1
- package/dist/{swirl-icon-ratio-four-to-three.entry.81873833.js → swirl-icon-ratio-four-to-three.entry.1c238e09.js} +1 -1
- package/dist/{swirl-icon-ratio-freeform.entry.e3fc6ca2.js → swirl-icon-ratio-freeform.entry.85c20eea.js} +1 -1
- package/dist/{swirl-icon-ratio-sixteen-to-nine.entry.29ffb18e.js → swirl-icon-ratio-sixteen-to-nine.entry.2f8cbe2f.js} +1 -1
- package/dist/{swirl-icon-ratio-square.entry.febbd90a.js → swirl-icon-ratio-square.entry.ebc4cd80.js} +1 -1
- package/dist/{swirl-icon-ratio-three-to-four.entry.a5644a47.js → swirl-icon-ratio-three-to-four.entry.dab85065.js} +1 -1
- package/dist/{swirl-icon-ratio-three-to-two.entry.b5a80c56.js → swirl-icon-ratio-three-to-two.entry.a5a5d50a.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.f910997e.js → swirl-icon-recieved.entry.bac042cc.js} +1 -1
- package/dist/{swirl-icon-remove-circle.entry.6c63a6e4.js → swirl-icon-remove-circle.entry.225149fa.js} +1 -1
- package/dist/{swirl-icon-remove-moderator.entry.2cd7f054.js → swirl-icon-remove-moderator.entry.964df518.js} +1 -1
- package/dist/{swirl-icon-reply.entry.df3a6a95.js → swirl-icon-reply.entry.cdb490e3.js} +1 -1
- package/dist/{swirl-icon-report.entry.bf6b0875.js → swirl-icon-report.entry.ef8e006b.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.466f44cb.js → swirl-icon-roadmap.entry.ee147152.js} +1 -1
- package/dist/{swirl-icon-rotate-left.entry.a19f3b13.js → swirl-icon-rotate-left.entry.1431d090.js} +1 -1
- package/dist/{swirl-icon-rotate-right.entry.5cda6a22.js → swirl-icon-rotate-right.entry.1781f3b6.js} +1 -1
- package/dist/{swirl-icon-screenshare-off.entry.f85ae88b.js → swirl-icon-screenshare-off.entry.87a02f41.js} +1 -1
- package/dist/{swirl-icon-screenshare.entry.1a171a43.js → swirl-icon-screenshare.entry.c413bac0.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.47dc4d25.js → swirl-icon-search-strong.entry.0e915ea1.js} +1 -1
- package/dist/{swirl-icon-search.entry.2952fc2d.js → swirl-icon-search.entry.9aff327a.js} +1 -1
- package/dist/{swirl-icon-secure.entry.4ea1659e.js → swirl-icon-secure.entry.6d015e40.js} +1 -1
- package/dist/{swirl-icon-send.entry.38fa0256.js → swirl-icon-send.entry.80a4adf7.js} +1 -1
- package/dist/{swirl-icon-settings.entry.68372bcf.js → swirl-icon-settings.entry.81d4fe6c.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.48251eb4.js → swirl-icon-short-text.entry.735322ab.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.8363606d.js → swirl-icon-simplify.entry.f95d2779.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.1fc9e344.js → swirl-icon-spellcheck.entry.42ac4e20.js} +1 -1
- package/dist/{swirl-icon-stars.entry.94877b6b.js → swirl-icon-stars.entry.d25767e7.js} +1 -1
- package/dist/{swirl-icon-stop-circle.entry.426c8b22.js → swirl-icon-stop-circle.entry.5e3cf41f.js} +1 -1
- package/dist/{swirl-icon-stop.entry.113b8645.js → swirl-icon-stop.entry.72030a26.js} +1 -1
- package/dist/{swirl-icon-sync.entry.524c56eb.js → swirl-icon-sync.entry.2b230dc0.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.7351e45d.js → swirl-icon-tasks-filled.entry.76ed137d.js} +1 -1
- package/dist/{swirl-icon-tasks.entry.c1d98ec4.js → swirl-icon-tasks.entry.278aa0f6.js} +1 -1
- package/dist/{swirl-icon-terminal.entry.e3bfae0b.js → swirl-icon-terminal.entry.24ac4216.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.6e620d3f.js → swirl-icon-time-filled.entry.8d60fca4.js} +1 -1
- package/dist/{swirl-icon-time.entry.96cce9d0.js → swirl-icon-time.entry.64f7f661.js} +1 -1
- package/dist/{swirl-icon-today-filled.entry.5700209d.js → swirl-icon-today-filled.entry.05869cf2.js} +1 -1
- package/dist/{swirl-icon-translate.entry.67f0e5ac.js → swirl-icon-translate.entry.2f056a8d.js} +1 -1
- package/dist/{swirl-icon-tree-structure.entry.09ce4cd5.js → swirl-icon-tree-structure.entry.fafe41b4.js} +1 -1
- package/dist/{swirl-icon-undo.entry.e8272f8f.js → swirl-icon-undo.entry.fa67ab8a.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.01654f7c.js → swirl-icon-unlock-person.entry.1e3c468a.js} +1 -1
- package/dist/{swirl-icon-user-add.entry.0a13cb30.js → swirl-icon-user-add.entry.e90df649.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.eda91d6e.js → swirl-icon-user-assign.entry.503341cd.js} +1 -1
- package/dist/{swirl-icon-video-camera-off.entry.f1a4ad15.js → swirl-icon-video-camera-off.entry.7aba4c4d.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.70970911.js → swirl-icon-video-camera.entry.581e5603.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.5d448d37.js → swirl-icon-video-library.entry.a174d8f6.js} +1 -1
- package/dist/{swirl-icon-video-player.entry.9eb20ae3.js → swirl-icon-video-player.entry.37e9c897.js} +1 -1
- package/dist/{swirl-icon-voice.entry.15d4aca2.js → swirl-icon-voice.entry.d265dc30.js} +1 -1
- package/dist/{swirl-icon-web-asset-off.entry.067bbfa3.js → swirl-icon-web-asset-off.entry.b53362fc.js} +1 -1
- package/dist/{swirl-icon-web-asset.entry.8abc1d23.js → swirl-icon-web-asset.entry.1d9a5045.js} +1 -1
- package/dist/{swirl-icon-work.entry.830acd03.js → swirl-icon-work.entry.6bf23110.js} +1 -1
- package/dist/{swirl-icon.entry.69d35b07.js → swirl-icon.entry.86891568.js} +1 -1
- package/dist/{swirl-image-grid-item.entry.c87412f1.js → swirl-image-grid-item.entry.fa73cd1f.js} +19 -16
- package/dist/{swirl-image-grid.entry.ddbc0304.js → swirl-image-grid.entry.772315e2.js} +1 -1
- package/dist/{swirl-inline-notification.entry.06ee2e64.js → swirl-inline-notification.entry.08f9d3bb.js} +1 -1
- package/dist/{swirl-inline-status.entry.34dd215b.js → swirl-inline-status.entry.462211df.js} +1 -1
- package/dist/{swirl-lightbox.entry.e835f215.js → swirl-lightbox.entry.b8d17401.js} +1 -1
- package/dist/{swirl-link.entry.7f8c0fba.js → swirl-link.entry.75fa44fd.js} +1 -1
- package/dist/{swirl-list.entry.06f39fd7.js → swirl-list.entry.24eb4169.js} +1 -1
- package/dist/{swirl-menu-item.entry.53f732f7.js → swirl-menu-item.entry.5ea90c41.js} +1 -1
- package/dist/{swirl-menu.entry.fe700f2a.js → swirl-menu.entry.01fd6740.js} +1 -1
- package/dist/{swirl-modal.entry.ec0d7fea.js → swirl-modal.entry.2fd01892.js} +1 -1
- package/dist/{swirl-option-list-section.entry.174c3f21.js → swirl-option-list-section.entry.c99bbfe6.js} +1 -1
- package/dist/{swirl-option-list_2.entry.b42a67c5.js → swirl-option-list_2.entry.4ecc8a9a.js} +1 -1
- package/dist/{swirl-pagination.entry.49f3a64b.js → swirl-pagination.entry.b62a740e.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.91bc7ba0.js → swirl-pdf-reader.entry.97cd6e64.js} +1 -1
- package/dist/{swirl-popover_2.entry.e3992f01.js → swirl-popover_2.entry.902228d3.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.4b5909d8.js → swirl-progress-indicator.entry.b45589f1.js} +1 -1
- package/dist/{swirl-radio-group.entry.6814c000.js → swirl-radio-group.entry.7352be1f.js} +1 -1
- package/dist/{swirl-radio.entry.010f49ba.js → swirl-radio.entry.423e71ee.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.bce4b6ac.js → swirl-resource-list-file-item.entry.6b7a6bb1.js} +1 -1
- package/dist/{swirl-resource-list-section.entry.03624cca.js → swirl-resource-list-section.entry.78d78272.js} +1 -1
- package/dist/{swirl-search.entry.a7e8db28.js → swirl-search.entry.2bc9e6dd.js} +1 -1
- package/dist/{swirl-select.entry.0245bb03.js → swirl-select.entry.7878a67d.js} +1 -1
- package/dist/{swirl-separator.entry.5cf1fd37.js → swirl-separator.entry.27aa574b.js} +1 -1
- package/dist/{swirl-shell-layout.entry.1bd09b0b.js → swirl-shell-layout.entry.2428df58.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.c8235398.js → swirl-shell-navigation-item.entry.da28421e.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.cfc4a7cb.js → swirl-skeleton-box.entry.d8c2300e.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.50d4828f.js → swirl-skeleton-text.entry.88a3fc77.js} +1 -1
- package/dist/{swirl-stack.entry.4e6b1a39.js → swirl-stack.entry.72b340b5.js} +1 -1
- package/dist/{swirl-status-indicator.entry.f0056b36.js → swirl-status-indicator.entry.ffc26326.js} +1 -1
- package/dist/{swirl-switch.entry.0cf17657.js → swirl-switch.entry.4ec31a79.js} +1 -1
- package/dist/{swirl-symbol-account-circle.entry.c6533b63.js → swirl-symbol-account-circle.entry.ea1f53bc.js} +1 -1
- package/dist/{swirl-symbol-alternate-email.entry.ecc6719c.js → swirl-symbol-alternate-email.entry.2261e12f.js} +1 -1
- package/dist/{swirl-symbol-android.entry.e225bf95.js → swirl-symbol-android.entry.4f468a96.js} +1 -1
- package/dist/{swirl-symbol-announcement.entry.39d16b4c.js → swirl-symbol-announcement.entry.367bf8f8.js} +1 -1
- package/dist/{swirl-symbol-backup.entry.b98e3450.js → swirl-symbol-backup.entry.5e257a81.js} +1 -1
- package/dist/{swirl-symbol-beach-access.entry.4478f616.js → swirl-symbol-beach-access.entry.e011ad0e.js} +1 -1
- package/dist/{swirl-symbol-bookmark.entry.bcfb31f3.js → swirl-symbol-bookmark.entry.34a412cb.js} +1 -1
- package/dist/{swirl-symbol-cloud.entry.05b248e1.js → swirl-symbol-cloud.entry.632ecdee.js} +1 -1
- package/dist/{swirl-symbol-coronavirus.entry.51d043ee.js → swirl-symbol-coronavirus.entry.3deffa2f.js} +1 -1
- package/dist/{swirl-symbol-desktop-windows.entry.cf555053.js → swirl-symbol-desktop-windows.entry.081839f3.js} +1 -1
- package/dist/{swirl-symbol-directions-car-filled.entry.2e1acc13.js → swirl-symbol-directions-car-filled.entry.2744cc1c.js} +1 -1
- package/dist/{swirl-symbol-edit-calendar.entry.076c5190.js → swirl-symbol-edit-calendar.entry.3331d459.js} +1 -1
- package/dist/{swirl-symbol-email.entry.1b650828.js → swirl-symbol-email.entry.8d133c7c.js} +1 -1
- package/dist/{swirl-symbol-emoji-food-beverage.entry.fe6132cd.js → swirl-symbol-emoji-food-beverage.entry.af465a12.js} +1 -1
- package/dist/{swirl-symbol-event-menu.entry.44a9b2fc.js → swirl-symbol-event-menu.entry.9dd12052.js} +1 -1
- package/dist/{swirl-symbol-facebook.entry.e8c48e92.js → swirl-symbol-facebook.entry.1737dd2e.js} +1 -1
- package/dist/{swirl-symbol-favorite.entry.9ddc0cf2.js → swirl-symbol-favorite.entry.6ec4765e.js} +1 -1
- package/dist/{swirl-symbol-fitness-center.entry.2a2cb0d9.js → swirl-symbol-fitness-center.entry.d01e6d89.js} +1 -1
- package/dist/{swirl-symbol-flag.entry.1e928776.js → swirl-symbol-flag.entry.36f9828c.js} +1 -1
- package/dist/{swirl-symbol-folder.entry.8c9df075.js → swirl-symbol-folder.entry.12248d67.js} +1 -1
- package/dist/{swirl-symbol-globe.entry.ac9e38ba.js → swirl-symbol-globe.entry.6ab33ebd.js} +1 -1
- package/dist/{swirl-symbol-groups.entry.279c8669.js → swirl-symbol-groups.entry.9aac1f8c.js} +1 -1
- package/dist/{swirl-symbol-help.entry.4ff20a5c.js → swirl-symbol-help.entry.2bb77797.js} +1 -1
- package/dist/{swirl-symbol-image.entry.8cf1226a.js → swirl-symbol-image.entry.e9a32c99.js} +1 -1
- package/dist/{swirl-symbol-info-menu.entry.b0087b76.js → swirl-symbol-info-menu.entry.88e1e251.js} +1 -1
- package/dist/{swirl-symbol-instagram.entry.322d845f.js → swirl-symbol-instagram.entry.f39cf5f3.js} +1 -1
- package/dist/{swirl-symbol-ios.entry.d29e18b7.js → swirl-symbol-ios.entry.29b284f9.js} +1 -1
- package/dist/{swirl-symbol-language.entry.e338ffa1.js → swirl-symbol-language.entry.d556dd57.js} +1 -1
- package/dist/{swirl-symbol-leaderboard.entry.cc4a8cae.js → swirl-symbol-leaderboard.entry.2eb2e1d0.js} +1 -1
- package/dist/{swirl-symbol-lightbulb.entry.248a5d25.js → swirl-symbol-lightbulb.entry.9ade46a4.js} +1 -1
- package/dist/{swirl-symbol-linkedin.entry.774aaab1.js → swirl-symbol-linkedin.entry.c6a3c5de.js} +1 -1
- package/dist/{swirl-symbol-location-on.entry.c9914890.js → swirl-symbol-location-on.entry.647199ca.js} +1 -1
- package/dist/{swirl-symbol-loyalty.entry.5c60a550.js → swirl-symbol-loyalty.entry.f2c7e2a3.js} +1 -1
- package/dist/{swirl-symbol-maps-home-work.entry.e0fd795e.js → swirl-symbol-maps-home-work.entry.be2c6f18.js} +1 -1
- package/dist/{swirl-symbol-notifications.entry.e4a3cc3a.js → swirl-symbol-notifications.entry.53597a28.js} +1 -1
- package/dist/{swirl-symbol-open-in-new.entry.640f2a0b.js → swirl-symbol-open-in-new.entry.e044c643.js} +1 -1
- package/dist/{swirl-symbol-pedal-bike.entry.9b86ec85.js → swirl-symbol-pedal-bike.entry.1ece2aff.js} +1 -1
- package/dist/{swirl-symbol-pinterest.entry.795a2b83.js → swirl-symbol-pinterest.entry.2916dfcf.js} +1 -1
- package/dist/{swirl-symbol-policy.entry.da1eaf40.js → swirl-symbol-policy.entry.15dba03e.js} +1 -1
- package/dist/{swirl-symbol-push-pin.entry.37f20b49.js → swirl-symbol-push-pin.entry.def059d0.js} +1 -1
- package/dist/{swirl-symbol-redeem.entry.a719cf6a.js → swirl-symbol-redeem.entry.092c1ab2.js} +1 -1
- package/dist/{swirl-symbol-report-problem.entry.bc60465f.js → swirl-symbol-report-problem.entry.a2ff62ee.js} +1 -1
- package/dist/{swirl-symbol-restaurant.entry.3067edd6.js → swirl-symbol-restaurant.entry.72f8f734.js} +1 -1
- package/dist/{swirl-symbol-roadmap.entry.42dbd319.js → swirl-symbol-roadmap.entry.512d3e40.js} +1 -1
- package/dist/{swirl-symbol-room.entry.97a4cbb6.js → swirl-symbol-room.entry.feb21515.js} +1 -1
- package/dist/{swirl-symbol-savings.entry.fd7668de.js → swirl-symbol-savings.entry.2722ab1e.js} +1 -1
- package/dist/{swirl-symbol-settings-voice.entry.16f145d8.js → swirl-symbol-settings-voice.entry.a596aaa3.js} +1 -1
- package/dist/{swirl-symbol-shopping-cart.entry.bc23de6c.js → swirl-symbol-shopping-cart.entry.70dbe742.js} +1 -1
- package/dist/{swirl-symbol-smartphone.entry.2ba781ab.js → swirl-symbol-smartphone.entry.3b03b3bc.js} +1 -1
- package/dist/{swirl-symbol-star.entry.de8d036d.js → swirl-symbol-star.entry.d3871865.js} +1 -1
- package/dist/{swirl-symbol-supervisor-account.entry.f52bc9ea.js → swirl-symbol-supervisor-account.entry.278db502.js} +1 -1
- package/dist/{swirl-symbol-thumbs-up-down.entry.f0973639.js → swirl-symbol-thumbs-up-down.entry.eeecb032.js} +1 -1
- package/dist/{swirl-symbol-twitter.entry.e51119f3.js → swirl-symbol-twitter.entry.ad47e9ed.js} +1 -1
- package/dist/{swirl-symbol-wb-sunny.entry.6b4045d6.js → swirl-symbol-wb-sunny.entry.5212d3d2.js} +1 -1
- package/dist/{swirl-symbol-wechat.entry.a449375f.js → swirl-symbol-wechat.entry.ef32256c.js} +1 -1
- package/dist/{swirl-symbol-weibo.entry.6777f304.js → swirl-symbol-weibo.entry.bfd1d984.js} +1 -1
- package/dist/{swirl-symbol-work.entry.f465c3c0.js → swirl-symbol-work.entry.c5f5d4e8.js} +1 -1
- package/dist/{swirl-symbol-xing.entry.9da0c24a.js → swirl-symbol-xing.entry.29ff203e.js} +1 -1
- package/dist/{swirl-symbol-youtube.entry.a9f0ad4b.js → swirl-symbol-youtube.entry.836920af.js} +1 -1
- package/dist/{swirl-symbol.entry.a70e30f1.js → swirl-symbol.entry.83fb89f5.js} +1 -1
- package/dist/{swirl-tab-bar.entry.57a224c5.js → swirl-tab-bar.entry.d67caa25.js} +1 -1
- package/dist/{swirl-tab.entry.29c91c44.js → swirl-tab.entry.cae70bf0.js} +1 -1
- package/dist/{swirl-table-cell.entry.d25f19cc.js → swirl-table-cell.entry.64815b3b.js} +1 -1
- package/dist/{swirl-table-column.entry.55221d07.js → swirl-table-column.entry.f3202461.js} +1 -1
- package/dist/{swirl-table-row-group.entry.7d3aa9ff.js → swirl-table-row-group.entry.7c217965.js} +1 -1
- package/dist/{swirl-table-row.entry.e7d980fd.js → swirl-table-row.entry.652d7df8.js} +1 -1
- package/dist/{swirl-table.entry.ec960bca.js → swirl-table.entry.4918d70d.js} +1 -1
- package/dist/{swirl-tabs.entry.c73e7ff6.js → swirl-tabs.entry.0f58b8a7.js} +1 -1
- package/dist/{swirl-text-input.entry.6d2fe38d.js → swirl-text-input.entry.ea7d1150.js} +1 -1
- package/dist/{swirl-text.entry.2b9b426d.js → swirl-text.entry.68904a95.js} +1 -1
- package/dist/{swirl-theme-provider.entry.e3e650f6.js → swirl-theme-provider.entry.298eb465.js} +1 -1
- package/dist/{swirl-time-input.entry.d52b0c23.js → swirl-time-input.entry.aa157ec9.js} +1 -1
- package/dist/{swirl-toast-provider.entry.c830f29e.js → swirl-toast-provider.entry.a445a7b4.js} +1 -1
- package/dist/{swirl-toast.entry.39174c2d.js → swirl-toast.entry.bac1a150.js} +1 -1
- package/dist/{swirl-toggle-button.entry.c6323b5d.js → swirl-toggle-button.entry.7ccd8305.js} +1 -1
- package/dist/{swirl-toggle-group.entry.f5ee367a.js → swirl-toggle-group.entry.d511e003.js} +1 -1
- package/dist/{swirl-toolbar.entry.9949bf0d.js → swirl-toolbar.entry.28c966fb.js} +1 -1
- package/dist/{swirl-tooltip.entry.f4011127.js → swirl-tooltip.entry.55be9750.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.aca5763a.js → swirl-tree-navigation-item.entry.5f2acf5f.js} +1 -1
- package/dist/{swirl-tree-navigation.entry.a91f21a0.js → swirl-tree-navigation.entry.6894e353.js} +1 -1
- package/dist/{swirl-tree-view-item.entry.fdd9f0e2.js → swirl-tree-view-item.entry.447df46c.js} +1 -1
- package/dist/{swirl-tree-view.entry.71fbd2ca.js → swirl-tree-view.entry.e720c7fe.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.8fc47169.js → swirl-video-thumbnail.entry.6375cf9f.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.9427183b.js → swirl-visually-hidden.entry.e8b58062.js} +1 -1
- package/dist/{wc-datepicker.entry.aad1fe97.js → wc-datepicker.entry.38fc6013.js} +1 -1
- package/package.json +2 -2
- package/dist/swirl-app-icon.entry.10acfcea.js +0 -23
package/dist/{swirl-file-viewer_8.entry.a23dea01.js → swirl-file-viewer_8.entry.1177b549.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r as Lt, c as Pt, h as Xe, H as Nt, g as $t } from "./index.
|
|
1
|
+
import { r as Lt, c as Pt, h as Xe, H as Nt, g as $t } from "./index.125b00c7.js";
|
|
2
2
|
import { c as vt, g as ea, a as qr, b as ta } from "./_commonjsHelpers-d20b9603.2d9b8855.js";
|
|
3
3
|
import { c as ra } from "./index-267776a4.6beb4f4b.js";
|
|
4
4
|
import { d as na, k as ia, i as aa } from "./utils-877a768f.c277f897.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
var Qr = { exports: {} };
|
|
8
|
-
(function(De,
|
|
9
|
-
(function(Ie,
|
|
10
|
-
|
|
8
|
+
(function(De, _e) {
|
|
9
|
+
(function(Ie, Ae) {
|
|
10
|
+
Ae();
|
|
11
11
|
})(vt, function() {
|
|
12
12
|
function Ie(o, c) {
|
|
13
13
|
return typeof c > "u" ? c = { autoBom: !1 } : typeof c != "object" && (console.warn("Deprecated: Expected third argument to be a object"), c = { autoBom: !c }), c.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(o.type) ? new Blob(["\uFEFF", o], { type: o.type }) : o;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Ae(o, c, T) {
|
|
16
16
|
var x = new XMLHttpRequest();
|
|
17
17
|
x.open("GET", o), x.responseType = "blob", x.onload = function() {
|
|
18
18
|
n(x.response, c, T);
|
|
@@ -40,7 +40,7 @@ var Qr = { exports: {} };
|
|
|
40
40
|
var D = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof vt == "object" && vt.global === vt ? vt : void 0, m = D.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), n = D.saveAs || (typeof window != "object" || window !== D ? function() {
|
|
41
41
|
} : "download" in HTMLAnchorElement.prototype && !m ? function(o, c, T) {
|
|
42
42
|
var x = D.URL || D.webkitURL, O = document.createElement("a");
|
|
43
|
-
c = c || o.name || "download", O.download = c, O.rel = "noopener", typeof o == "string" ? (O.href = o, O.origin === location.origin ? qe(O) : ze(O.href) ?
|
|
43
|
+
c = c || o.name || "download", O.download = c, O.rel = "noopener", typeof o == "string" ? (O.href = o, O.origin === location.origin ? qe(O) : ze(O.href) ? Ae(o, c, T) : qe(O, O.target = "_blank")) : (O.href = x.createObjectURL(o), setTimeout(function() {
|
|
44
44
|
x.revokeObjectURL(O.href);
|
|
45
45
|
}, 4e4), setTimeout(function() {
|
|
46
46
|
qe(O);
|
|
@@ -49,7 +49,7 @@ var Qr = { exports: {} };
|
|
|
49
49
|
if (c = c || o.name || "download", typeof o != "string")
|
|
50
50
|
navigator.msSaveOrOpenBlob(Ie(o, T), c);
|
|
51
51
|
else if (ze(o))
|
|
52
|
-
|
|
52
|
+
Ae(o, c, T);
|
|
53
53
|
else {
|
|
54
54
|
var x = document.createElement("a");
|
|
55
55
|
x.href = o, x.target = "_blank", setTimeout(function() {
|
|
@@ -58,7 +58,7 @@ var Qr = { exports: {} };
|
|
|
58
58
|
}
|
|
59
59
|
} : function(o, c, T, x) {
|
|
60
60
|
if (x = x || open("", "_blank"), x && (x.document.title = x.document.body.innerText = "downloading..."), typeof o == "string")
|
|
61
|
-
return
|
|
61
|
+
return Ae(o, c, T);
|
|
62
62
|
var O = o.type === "application/octet-stream", P = /constructor/i.test(D.HTMLElement) || D.safari, v = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
63
63
|
if ((v || O && P || m) && typeof FileReader < "u") {
|
|
64
64
|
var y = new FileReader();
|
|
@@ -78,22 +78,22 @@ var Qr = { exports: {} };
|
|
|
78
78
|
})(Qr);
|
|
79
79
|
const sa = ":host{display:block;width:100%;height:100%;pointer-events:none}:host *{box-sizing:border-box}.file-viewer{display:flex;width:100%;height:100%;justify-content:center;align-items:center}.file-viewer__file{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}", oa = sa, la = class {
|
|
80
80
|
constructor(De) {
|
|
81
|
-
Lt(this, De), this.activate = Pt(this, "activate", 7), this.visiblePagesChange = Pt(this, "visiblePagesChange", 7), this.onActivate = (
|
|
82
|
-
this.activate.emit(
|
|
83
|
-
}, this.onVisiblePagesChange = (
|
|
84
|
-
this.visiblePagesChange.emit(
|
|
81
|
+
Lt(this, De), this.activate = Pt(this, "activate", 7), this.visiblePagesChange = Pt(this, "visiblePagesChange", 7), this.onActivate = (_e) => {
|
|
82
|
+
this.activate.emit(_e.detail);
|
|
83
|
+
}, this.onVisiblePagesChange = (_e) => {
|
|
84
|
+
this.visiblePagesChange.emit(_e.detail);
|
|
85
85
|
}, this.active = !0, this.autoplay = void 0, this.description = void 0, this.disableDownload = void 0, this.errorMessage = "File could not be loaded.", this.file = void 0, this.fileName = void 0, this.pdfWorkerSrc = void 0, this.thumbnailUrl = void 0, this.type = void 0, this.typeUnsupportedMessage = "File type is not supported.", this.viewMode = "single", this.zoom = 1;
|
|
86
86
|
}
|
|
87
87
|
async download() {
|
|
88
|
-
const De = this.fileName || this.file.split("/").pop(),
|
|
89
|
-
Qr.exports.saveAs(await
|
|
88
|
+
const De = this.fileName || this.file.split("/").pop(), _e = await fetch(this.file);
|
|
89
|
+
Qr.exports.saveAs(await _e.blob(), De);
|
|
90
90
|
}
|
|
91
91
|
async print() {
|
|
92
92
|
this.type === "application/pdf" && this.viewer.print();
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
95
|
const De = !Boolean(this.type) || !this.type.startsWith("image/") && !this.type.startsWith("video/") && !this.type.startsWith("audio/") && this.type !== "text/plain" && this.type !== "text/csv" && this.type !== "application/pdf";
|
|
96
|
-
return Xe(Nt, { key: "112157441f7a950b2ec171663b3b129a31131abf" }, Xe("div", { key: "97572b69c7f0060291572df11c8545eb863d11e4", class: "file-viewer" }, this.type && this.active && Xe("div", { key: "7334787268ac80c12c0992b0722bfb2d5b0ad81b", class: "file-viewer__file" }, this.type.startsWith("image/") && Xe("swirl-file-viewer-image", { key: "e44d79c93046e2b02e73de8e040102f8c175f495", description: this.description, errorMessage: this.errorMessage, file: this.file, ref: (
|
|
96
|
+
return Xe(Nt, { key: "112157441f7a950b2ec171663b3b129a31131abf" }, Xe("div", { key: "97572b69c7f0060291572df11c8545eb863d11e4", class: "file-viewer" }, this.type && this.active && Xe("div", { key: "7334787268ac80c12c0992b0722bfb2d5b0ad81b", class: "file-viewer__file" }, this.type.startsWith("image/") && Xe("swirl-file-viewer-image", { key: "e44d79c93046e2b02e73de8e040102f8c175f495", description: this.description, errorMessage: this.errorMessage, file: this.file, ref: (_e) => this.viewer = _e }), this.type === "text/plain" && Xe("swirl-file-viewer-text", { key: "52914479a9f72c52b099e72db2c4ad2b25778e50", errorMessage: this.errorMessage, file: this.file, ref: (_e) => this.viewer = _e }), this.type === "text/csv" && Xe("swirl-file-viewer-csv", { key: "884dfee98e90395735f002c628f869f01d405338", errorMessage: this.errorMessage, file: this.file, ref: (_e) => this.viewer = _e }), this.type === "application/pdf" && Xe("swirl-file-viewer-pdf", { key: "614d72e129bee9ca0e16834026e41c2073d64a68", errorMessage: this.errorMessage, file: this.file, onActivate: this.onActivate, onVisiblePagesChange: this.onVisiblePagesChange, ref: (_e) => this.viewer = _e, viewMode: this.viewMode, workerSrc: this.pdfWorkerSrc, zoom: this.zoom }), this.type.startsWith("video/") && Xe("swirl-file-viewer-video", { key: "5c22b9a7eaedf1641ab0fc244964d92271545df2", autoplay: this.autoplay, disableDownload: this.disableDownload, file: this.file, ref: (_e) => this.viewer = _e, type: this.type }), this.type.startsWith("audio/") && Xe("swirl-file-viewer-audio", { key: "4bc1987aa68276af5bf697016a371e726e1c3616", autoplay: this.autoplay, file: this.file, ref: (_e) => this.viewer = _e, type: this.type }), De && Xe("swirl-file-viewer-fallback", { key: "9a8d2e9723db484517b7a51b8fd09d9e3d7de679", disableDownload: this.disableDownload, file: this.file, fileName: this.fileName }))));
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
la.style = oa;
|
|
@@ -119,23 +119,23 @@ v5.3.2
|
|
|
119
119
|
https://github.com/mholt/PapaParse
|
|
120
120
|
License: MIT
|
|
121
121
|
*/
|
|
122
|
-
(function(De,
|
|
123
|
-
(function(Ie,
|
|
124
|
-
De.exports =
|
|
122
|
+
(function(De, _e) {
|
|
123
|
+
(function(Ie, Ae) {
|
|
124
|
+
De.exports = Ae();
|
|
125
125
|
})(vt, function Ie() {
|
|
126
|
-
var
|
|
126
|
+
var Ae = typeof self < "u" ? self : typeof window < "u" ? window : Ae !== void 0 ? Ae : {}, ze = !Ae.document && !!Ae.postMessage, qe = ze && /blob:/i.test((Ae.location || {}).protocol), D = {}, m = 0, n = { parse: function(p, b) {
|
|
127
127
|
var u = (b = b || {}).dynamicTyping || !1;
|
|
128
128
|
if (F(u) && (b.dynamicTypingFunction = u, u = {}), b.dynamicTyping = u, b.transform = !!F(b.transform) && b.transform, b.worker && n.WORKERS_SUPPORTED) {
|
|
129
129
|
var t = function() {
|
|
130
130
|
if (!n.WORKERS_SUPPORTED)
|
|
131
131
|
return !1;
|
|
132
|
-
var f = (E =
|
|
132
|
+
var f = (E = Ae.URL || Ae.webkitURL || null, W = Ie.toString(), n.BLOB_URL || (n.BLOB_URL = E.createObjectURL(new Blob(["(", W, ")();"], { type: "text/javascript" })))), g = new Ae.Worker(f), E, W;
|
|
133
133
|
return g.onmessage = r, g.id = m++, D[g.id] = g;
|
|
134
134
|
}();
|
|
135
135
|
return t.userStep = b.step, t.userChunk = b.chunk, t.userComplete = b.complete, t.userError = b.error, b.step = F(b.step), b.chunk = F(b.chunk), b.complete = F(b.complete), b.error = F(b.error), delete b.worker, void t.postMessage({ input: p, config: b, workerId: t.id });
|
|
136
136
|
}
|
|
137
137
|
var a = null;
|
|
138
|
-
return typeof p == "string" ? a = b.download ? new T(b) : new O(b) : p.readable === !0 && F(p.read) && F(p.on) ? a = new P(b) : (
|
|
138
|
+
return typeof p == "string" ? a = b.download ? new T(b) : new O(b) : p.readable === !0 && F(p.read) && F(p.on) ? a = new P(b) : (Ae.File && p instanceof File || p instanceof Object) && (a = new x(b)), a.stream(p);
|
|
139
139
|
}, unparse: function(p, b) {
|
|
140
140
|
var u = !1, t = !0, a = ",", f = `\r
|
|
141
141
|
`, g = '"', E = g + g, W = !1, k = null, ne = !1;
|
|
@@ -206,12 +206,12 @@ License: MIT
|
|
|
206
206
|
}
|
|
207
207
|
} };
|
|
208
208
|
if (n.RECORD_SEP = String.fromCharCode(30), n.UNIT_SEP = String.fromCharCode(31), n.BYTE_ORDER_MARK = "\uFEFF", n.BAD_DELIMITERS = ["\r", `
|
|
209
|
-
`, '"', n.BYTE_ORDER_MARK], n.WORKERS_SUPPORTED = !ze && !!
|
|
210
|
-
var o =
|
|
209
|
+
`, '"', n.BYTE_ORDER_MARK], n.WORKERS_SUPPORTED = !ze && !!Ae.Worker, n.NODE_STREAM_INPUT = 1, n.LocalChunkSize = 10485760, n.RemoteChunkSize = 5242880, n.DefaultDelimiter = ",", n.Parser = L, n.ParserHandle = v, n.NetworkStreamer = T, n.FileStreamer = x, n.StringStreamer = O, n.ReadableStreamStreamer = P, Ae.jQuery) {
|
|
210
|
+
var o = Ae.jQuery;
|
|
211
211
|
o.fn.parse = function(p) {
|
|
212
212
|
var b = p.config || {}, u = [];
|
|
213
213
|
return this.each(function(f) {
|
|
214
|
-
if (!(o(this).prop("tagName").toUpperCase() === "INPUT" && o(this).attr("type").toLowerCase() === "file" &&
|
|
214
|
+
if (!(o(this).prop("tagName").toUpperCase() === "INPUT" && o(this).attr("type").toLowerCase() === "file" && Ae.FileReader) || !this.files || this.files.length === 0)
|
|
215
215
|
return !0;
|
|
216
216
|
for (var g = 0; g < this.files.length; g++)
|
|
217
217
|
u.push({ file: this.files[g], inputElem: this, instanceConfig: o.extend({}, b) });
|
|
@@ -260,7 +260,7 @@ License: MIT
|
|
|
260
260
|
this._finished || (this._partialLine = a.substring(g - this._baseIndex), this._baseIndex = g), f && f.data && (this._rowCount += f.data.length);
|
|
261
261
|
var E = this._finished || this._config.preview && this._rowCount >= this._config.preview;
|
|
262
262
|
if (qe)
|
|
263
|
-
|
|
263
|
+
Ae.postMessage({ results: f, workerId: n.WORKER_ID, finished: E });
|
|
264
264
|
else if (F(this._config.chunk) && !u) {
|
|
265
265
|
if (this._config.chunk(f, this._handle), this._handle.paused() || this._handle.aborted())
|
|
266
266
|
return void (this._halted = !0);
|
|
@@ -270,7 +270,7 @@ License: MIT
|
|
|
270
270
|
}
|
|
271
271
|
this._halted = !0;
|
|
272
272
|
}, this._sendError = function(b) {
|
|
273
|
-
F(this._config.error) ? this._config.error(b) : qe && this._config.error &&
|
|
273
|
+
F(this._config.error) ? this._config.error(b) : qe && this._config.error && Ae.postMessage({ workerId: n.WORKER_ID, error: b, finished: !1 });
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
function T(p) {
|
|
@@ -457,16 +457,16 @@ License: MIT
|
|
|
457
457
|
var X, J, ie, se;
|
|
458
458
|
N = N || [",", " ", "|", ";", n.RECORD_SEP, n.UNIT_SEP];
|
|
459
459
|
for (var he = 0; he < N.length; he++) {
|
|
460
|
-
var le = N[he], fe = 0, ve = 0,
|
|
460
|
+
var le = N[he], fe = 0, ve = 0, Ee = 0;
|
|
461
461
|
ie = void 0;
|
|
462
|
-
for (var
|
|
463
|
-
if (_ && U(
|
|
464
|
-
|
|
462
|
+
for (var Te = new L({ comments: M, delimiter: le, newline: d, preview: 10 }).parse(s), Oe = 0; Oe < Te.data.length; Oe++)
|
|
463
|
+
if (_ && U(Te.data[Oe]))
|
|
464
|
+
Ee++;
|
|
465
465
|
else {
|
|
466
|
-
var Ue =
|
|
466
|
+
var Ue = Te.data[Oe].length;
|
|
467
467
|
ve += Ue, ie !== void 0 ? 0 < Ue && (fe += Math.abs(Ue - ie), ie = Ue) : ie = Ue;
|
|
468
468
|
}
|
|
469
|
-
0 <
|
|
469
|
+
0 < Te.data.length && (ve /= Te.data.length - Ee), (J === void 0 || fe <= J) && (se === void 0 || se < ve) && 1.99 < ve && (J = fe, X = le, se = ve);
|
|
470
470
|
}
|
|
471
471
|
return { successful: !!(p.delimiter = X), bestDelimiter: X };
|
|
472
472
|
}(Se, p.newline, p.skipEmptyLines, p.comments, p.delimitersToGuess);
|
|
@@ -635,13 +635,13 @@ License: MIT
|
|
|
635
635
|
function F(p) {
|
|
636
636
|
return typeof p == "function";
|
|
637
637
|
}
|
|
638
|
-
return qe && (
|
|
638
|
+
return qe && (Ae.onmessage = function(p) {
|
|
639
639
|
var b = p.data;
|
|
640
640
|
if (n.WORKER_ID === void 0 && b && (n.WORKER_ID = b.workerId), typeof b.input == "string")
|
|
641
|
-
|
|
642
|
-
else if (
|
|
641
|
+
Ae.postMessage({ workerId: n.WORKER_ID, results: n.parse(b.input, b.config), finished: !0 });
|
|
642
|
+
else if (Ae.File && b.input instanceof File || b.input instanceof Object) {
|
|
643
643
|
var u = n.parse(b.input, b.config);
|
|
644
|
-
u &&
|
|
644
|
+
u && Ae.postMessage({ workerId: n.WORKER_ID, results: u, finished: !0 });
|
|
645
645
|
}
|
|
646
646
|
}), (T.prototype = Object.create(c.prototype)).constructor = T, (x.prototype = Object.create(c.prototype)).constructor = x, (O.prototype = Object.create(O.prototype)).constructor = O, (P.prototype = Object.create(c.prototype)).constructor = P, n;
|
|
647
647
|
});
|
|
@@ -660,7 +660,7 @@ const ha = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
660
660
|
var De;
|
|
661
661
|
this.error = !1, this.loading = !0;
|
|
662
662
|
try {
|
|
663
|
-
const
|
|
663
|
+
const _e = await fetch(this.file), Ie = Un.exports.parse(await _e.text(), {
|
|
664
664
|
dynamicTyping: !0,
|
|
665
665
|
fastMode: !1,
|
|
666
666
|
skipEmptyLines: !0
|
|
@@ -676,7 +676,7 @@ const ha = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
676
676
|
}
|
|
677
677
|
render() {
|
|
678
678
|
var De;
|
|
679
|
-
return Xe(Nt, { key: "5adccf403f3cc1ca2eb80460133d76ee4493e4aa", class: "file-viewer-csv", exportparts: "file-viewer-csv__table" }, this.error && Xe("swirl-inline-error", { key: "8a7f39e6fdb2c0a58af476394f3d180a51c89a80", class: "file-viewer-csv__error", message: this.errorMessage }), Xe("div", { key: "8e42febba781f9817019683797a89d99b5d06d25", class: "file-viewer-csv__csv", tabIndex: 0 }, Xe("table", { key: "6c7f62aa0bbdec136a6cce0c8a39956722e54b03", class: "file-viewer-csv__table", part: "file-viewer-csv__table" }, Xe("tbody", { key: "3c72c9011156ed54afcb3839ff3c200c19ce91c3" }, (De = this.data) == null ? void 0 : De.map((
|
|
679
|
+
return Xe(Nt, { key: "5adccf403f3cc1ca2eb80460133d76ee4493e4aa", class: "file-viewer-csv", exportparts: "file-viewer-csv__table" }, this.error && Xe("swirl-inline-error", { key: "8a7f39e6fdb2c0a58af476394f3d180a51c89a80", class: "file-viewer-csv__error", message: this.errorMessage }), Xe("div", { key: "8e42febba781f9817019683797a89d99b5d06d25", class: "file-viewer-csv__csv", tabIndex: 0 }, Xe("table", { key: "6c7f62aa0bbdec136a6cce0c8a39956722e54b03", class: "file-viewer-csv__table", part: "file-viewer-csv__table" }, Xe("tbody", { key: "3c72c9011156ed54afcb3839ff3c200c19ce91c3" }, (De = this.data) == null ? void 0 : De.map((_e, Ie) => Xe("tr", { class: "file-viewer-csv__row", key: `row-${Ie}` }, _e.map((Ae, ze) => Xe("td", { class: "file-viewer-csv__cell", key: `cell-${Ie}-${ze}` }, Ae))))))), this.loading && Xe("div", { key: "56c808c875538d9829d8d7521084639d42ab052c", class: "file-viewer-csv__spinner" }, Xe("swirl-spinner", { key: "20581f28e7ae18a94df50680100682a5d46bd78b" })));
|
|
680
680
|
}
|
|
681
681
|
get el() {
|
|
682
682
|
return $t(this);
|
|
@@ -690,10 +690,10 @@ const ha = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
690
690
|
pa.style = fa;
|
|
691
691
|
const ga = ":host{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-fallback__icon::part(icon){height:2.875rem;width:2.875rem}", ma = ga, va = class {
|
|
692
692
|
constructor(De) {
|
|
693
|
-
Lt(this, De), this.activate = Pt(this, "activate", 7), this.download = async (
|
|
694
|
-
|
|
695
|
-
const Ie = this.fileName || this.file.split("/").pop(),
|
|
696
|
-
Qr.exports.saveAs(await
|
|
693
|
+
Lt(this, De), this.activate = Pt(this, "activate", 7), this.download = async (_e) => {
|
|
694
|
+
_e.preventDefault();
|
|
695
|
+
const Ie = this.fileName || this.file.split("/").pop(), Ae = await fetch(this.file);
|
|
696
|
+
Qr.exports.saveAs(await Ae.blob(), Ie);
|
|
697
697
|
}, this.disableDownload = void 0, this.downloadButtonLabel = "Download", this.fileName = void 0, this.file = void 0;
|
|
698
698
|
}
|
|
699
699
|
componentDidLoad() {
|
|
@@ -713,64 +713,71 @@ const ba = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
713
713
|
this.error = !0, this.loading = !1;
|
|
714
714
|
}, this.onLoad = () => {
|
|
715
715
|
this.error = !1, this.loading = !1;
|
|
716
|
-
}, this.onDblClick = (
|
|
717
|
-
this.clickToZoom(
|
|
718
|
-
}, this.onWheel = (
|
|
719
|
-
|
|
720
|
-
const Ie = Math.min(Math.max(1, this.zoom + -1 *
|
|
716
|
+
}, this.onDblClick = (_e) => {
|
|
717
|
+
this.clickToZoom(_e);
|
|
718
|
+
}, this.onWheel = (_e) => {
|
|
719
|
+
_e.preventDefault();
|
|
720
|
+
const Ie = Math.min(Math.max(1, this.zoom + -1 * _e.deltaY / 100), this.maxZoom);
|
|
721
721
|
if (Ie === this.zoom)
|
|
722
722
|
return;
|
|
723
|
-
const
|
|
724
|
-
this.updateTransformOrigin(
|
|
725
|
-
}, this.onPointerDown = (
|
|
726
|
-
this.startPan(
|
|
727
|
-
}, this.onPointerMove = (
|
|
728
|
-
this.pan(
|
|
723
|
+
const Ae = _e.offsetX, ze = _e.offsetY;
|
|
724
|
+
this.updateTransformOrigin(Ae, ze), this.updateZoomAndPan(Ie, 0, 0);
|
|
725
|
+
}, this.onPointerDown = (_e) => {
|
|
726
|
+
this.startPan(_e);
|
|
727
|
+
}, this.onPointerMove = (_e) => {
|
|
728
|
+
this.pan(_e);
|
|
729
729
|
}, this.onPointerUp = () => {
|
|
730
730
|
this.endPan();
|
|
731
|
-
}, this.onTouchStart = (
|
|
732
|
-
|
|
733
|
-
}, this.onTouchMove = (
|
|
734
|
-
|
|
735
|
-
}, this.onTouchEnd = (
|
|
736
|
-
|
|
737
|
-
}, this.startPinchToZoom = (
|
|
738
|
-
!Boolean(this.imageEl) || (this.pinchDistance = this.getPinchDistance(
|
|
739
|
-
}, this.pinchToZoom = (
|
|
740
|
-
const Ie = this.getPinchDistance(
|
|
741
|
-
this.zoom !==
|
|
731
|
+
}, this.onTouchStart = (_e) => {
|
|
732
|
+
_e.preventDefault(), _e.touches.length === 2 && this.startPinchToZoom(_e);
|
|
733
|
+
}, this.onTouchMove = (_e) => {
|
|
734
|
+
_e.preventDefault(), this.pinching && this.pinchToZoom(_e);
|
|
735
|
+
}, this.onTouchEnd = (_e) => {
|
|
736
|
+
_e.preventDefault(), this.pinching && this.endPinchToZoom();
|
|
737
|
+
}, this.startPinchToZoom = (_e) => {
|
|
738
|
+
!Boolean(this.imageEl) || (this.pinchDistance = this.getPinchDistance(_e), this.pinching = !0);
|
|
739
|
+
}, this.pinchToZoom = (_e) => {
|
|
740
|
+
const Ie = this.getPinchDistance(_e) - this.pinchDistance, Ae = Math.min(Math.max(1, this.zoom + Ie / 100), this.maxZoom);
|
|
741
|
+
this.zoom !== Ae && (this.pinchDistance = this.getPinchDistance(_e), this.updateZoomAndPan(Ae));
|
|
742
742
|
}, this.endPinchToZoom = () => {
|
|
743
743
|
this.pinching = !1, Math.abs(this.zoom - 1) < 0.2 && (this.zoom = 1, this.imageEl.style.transform = "");
|
|
744
|
-
}, this.getPinchDistance = (
|
|
744
|
+
}, this.getPinchDistance = (_e) => Math.hypot(_e.touches[0].pageX - _e.touches[1].pageX, _e.touches[0].pageY - _e.touches[1].pageY), this.clickToZoom = (_e) => {
|
|
745
745
|
if (!(navigator.maxTouchPoints > 1))
|
|
746
746
|
if (this.zoom === 1) {
|
|
747
|
-
const
|
|
748
|
-
this.updateTransformOrigin(
|
|
747
|
+
const Ae = _e.pageX - this.el.getBoundingClientRect().x, ze = _e.pageY - this.el.getBoundingClientRect().y;
|
|
748
|
+
this.updateTransformOrigin(Ae, ze), this.updateZoomAndPan(2);
|
|
749
749
|
} else
|
|
750
750
|
this.updateZoomAndPan(1);
|
|
751
|
-
}, this.updateZoomAndPan = (
|
|
752
|
-
const ze =
|
|
751
|
+
}, this.updateZoomAndPan = (_e, Ie, Ae) => {
|
|
752
|
+
const ze = _e === void 0 ? this.zoom : _e, qe = ze - this.zoom, D = Ie === void 0 ? this.panX + this.panX * qe : Ie, m = Ie === void 0 ? this.panY + this.panY * qe : Ae, n = this.panX, o = this.panY;
|
|
753
753
|
this.zoom = ze, this.panX = D, this.panY = m;
|
|
754
754
|
const c = (this.el.parentElement || this.el).getBoundingClientRect(), T = this.imageEl.getBoundingClientRect(), x = T.right < c.right && D < n || T.left > c.left && D > n, O = T.bottom < c.bottom && m < o || T.top > c.top && m > o;
|
|
755
755
|
x && (this.panX = n), O && (this.panY = o), this.zoom === 1 && (this.panX = 0, this.panY = 0), this.imageEl.style.transform = `matrix(${this.zoom}, 0, 0, ${this.zoom}, ${this.panX}, ${this.panY})`;
|
|
756
|
-
}, this.updateTransformOrigin = (
|
|
757
|
-
this.transformOriginX =
|
|
758
|
-
}, this.startPan = (
|
|
759
|
-
this.panning = !0, this.previousScreenX =
|
|
760
|
-
}, this.pan = (
|
|
761
|
-
const Ie = this.previousScreenX || 0,
|
|
762
|
-
if (this.previousScreenX =
|
|
756
|
+
}, this.updateTransformOrigin = (_e, Ie) => {
|
|
757
|
+
this.transformOriginX = _e, this.transformOriginY = Ie, this.imageEl.style.transformOrigin = `${this.transformOriginX}px ${this.transformOriginY}px`;
|
|
758
|
+
}, this.startPan = (_e) => {
|
|
759
|
+
this.panning = !0, this.previousScreenX = _e.screenX, this.previousScreenY = _e.screenY;
|
|
760
|
+
}, this.pan = (_e) => {
|
|
761
|
+
const Ie = this.previousScreenX || 0, Ae = this.previousScreenY || 0;
|
|
762
|
+
if (this.previousScreenX = _e.screenX, this.previousScreenY = _e.screenY, !this.panning || this.pinching)
|
|
763
763
|
return;
|
|
764
|
-
|
|
765
|
-
const ze = this.panX +
|
|
764
|
+
_e.preventDefault();
|
|
765
|
+
const ze = this.panX + _e.screenX - Ie, qe = this.panY + _e.screenY - Ae;
|
|
766
766
|
this.updateZoomAndPan(this.zoom, ze, qe);
|
|
767
767
|
}, this.endPan = () => {
|
|
768
768
|
this.panning = !1;
|
|
769
|
+
}, this.onImageElementUpdate = (_e) => {
|
|
770
|
+
var Ie, Ae;
|
|
771
|
+
(Ie = this.imageEl) == null || Ie.removeEventListener("load", this.onLoad), (Ae = this.imageEl) == null || Ae.removeEventListener("error", this.onError), this.imageEl = _e, this.imageEl && (this.imageEl.addEventListener("load", this.onLoad), this.imageEl.addEventListener("error", this.onError));
|
|
769
772
|
}, this.description = "", this.errorMessage = "File could not be loaded.", this.file = void 0, this.maxZoom = 3, this.error = void 0, this.loading = !0;
|
|
770
773
|
}
|
|
771
774
|
componentDidLoad() {
|
|
772
775
|
this.activate.emit(this.el);
|
|
773
776
|
}
|
|
777
|
+
disconnectedCallback() {
|
|
778
|
+
var De, _e;
|
|
779
|
+
(De = this.imageEl) == null || De.removeEventListener("load", this.onLoad), (_e = this.imageEl) == null || _e.removeEventListener("error", this.onError);
|
|
780
|
+
}
|
|
774
781
|
watchFile() {
|
|
775
782
|
this.error = !1, this.loading = !0;
|
|
776
783
|
}
|
|
@@ -781,7 +788,7 @@ const ba = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
781
788
|
return this.updateZoomAndPan(1);
|
|
782
789
|
}
|
|
783
790
|
render() {
|
|
784
|
-
return Xe(Nt, { key: "
|
|
791
|
+
return Xe(Nt, { key: "dee1710566cedea2b677f25cf816d879a9de66f4", class: "file-viewer-image", onDblClick: this.onDblClick, onWheel: this.onWheel, onPointerDown: this.onPointerDown, onPointerMove: this.onPointerMove, onPointerUp: this.onPointerUp, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onTouchEnd: this.onTouchEnd }, this.error && Xe("swirl-inline-error", { key: "d29984d319144f8d4ff276a9f5502e14e6b0fdaf", class: "file-viewer-image__error", message: this.errorMessage }), Xe("img", { key: "d303129a6ba1f537c02b39b3fd0dfa63b82c85f3", alt: this.description, class: "file-viewer-image__image", ref: this.onImageElementUpdate, src: this.file }), this.loading && Xe("div", { key: "d96bf98483c7e71bfeca5636547b2bddbe7463fe", class: "file-viewer-image__spinner" }, Xe("swirl-spinner", { key: "a6cf23493fc08e24cfd0e4c5cd2e42f06866a3b4" })));
|
|
785
792
|
}
|
|
786
793
|
get el() {
|
|
787
794
|
return $t(this);
|
|
@@ -799,9 +806,9 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
799
806
|
* Copyright 2022 © thednp
|
|
800
807
|
* Licensed under MIT (https://github.com/thednp/DOMMatrix/blob/master/LICENSE)
|
|
801
808
|
*/
|
|
802
|
-
(function(De,
|
|
803
|
-
(function(Ie,
|
|
804
|
-
De.exports =
|
|
809
|
+
(function(De, _e) {
|
|
810
|
+
(function(Ie, Ae) {
|
|
811
|
+
De.exports = Ae();
|
|
805
812
|
})(vt, function() {
|
|
806
813
|
function Ie(r) {
|
|
807
814
|
var l = new P(), A = Array.from(r);
|
|
@@ -819,7 +826,7 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
819
826
|
throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");
|
|
820
827
|
return l;
|
|
821
828
|
}
|
|
822
|
-
function
|
|
829
|
+
function Ae(r) {
|
|
823
830
|
var l = Object.keys(new P());
|
|
824
831
|
if (typeof r == "object" && l.every(function(A) {
|
|
825
832
|
return A in r;
|
|
@@ -1028,7 +1035,7 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
1028
1035
|
return l instanceof h;
|
|
1029
1036
|
}) ? Ie(l) : [P, DOMMatrix, Object].some(function(h) {
|
|
1030
1037
|
return l instanceof h;
|
|
1031
|
-
}) ?
|
|
1038
|
+
}) ? Ae(l) : A;
|
|
1032
1039
|
}, P.prototype.toFloat32Array = function(l) {
|
|
1033
1040
|
return Float32Array.from(qe(this, l));
|
|
1034
1041
|
}, P.prototype.toFloat64Array = function(l) {
|
|
@@ -1080,7 +1087,7 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
1080
1087
|
Skew: c,
|
|
1081
1088
|
Multiply: O,
|
|
1082
1089
|
fromArray: Ie,
|
|
1083
|
-
fromMatrix:
|
|
1090
|
+
fromMatrix: Ae,
|
|
1084
1091
|
fromString: ze,
|
|
1085
1092
|
toArray: qe
|
|
1086
1093
|
});
|
|
@@ -1089,11 +1096,11 @@ var Or = { exports: {} }, zn = { exports: {} };
|
|
|
1089
1096
|
});
|
|
1090
1097
|
})(zn);
|
|
1091
1098
|
var Kr = { exports: {} };
|
|
1092
|
-
(function(De,
|
|
1093
|
-
(function(Ie,
|
|
1094
|
-
|
|
1099
|
+
(function(De, _e) {
|
|
1100
|
+
(function(Ie, Ae) {
|
|
1101
|
+
Ae(_e);
|
|
1095
1102
|
})(vt, function(Ie) {
|
|
1096
|
-
var
|
|
1103
|
+
var Ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol : function(e) {
|
|
1097
1104
|
return "Symbol(" + e + ")";
|
|
1098
1105
|
};
|
|
1099
1106
|
function ze() {
|
|
@@ -1179,8 +1186,8 @@ var Kr = { exports: {} };
|
|
|
1179
1186
|
_next: void 0
|
|
1180
1187
|
}), R._elements.push(i), K !== R && (this._back = K, R._next = K), ++this._size;
|
|
1181
1188
|
}, e.prototype.shift = function() {
|
|
1182
|
-
var i = this._front, R = i, K = this._cursor, pe = K + 1,
|
|
1183
|
-
return pe === b && (R = i._next, pe = 0), --this._size, this._cursor = pe, i !== R && (this._front = R),
|
|
1189
|
+
var i = this._front, R = i, K = this._cursor, pe = K + 1, we = i._elements, Me = we[K];
|
|
1190
|
+
return pe === b && (R = i._next, pe = 0), --this._size, this._cursor = pe, i !== R && (this._front = R), we[K] = void 0, Me;
|
|
1184
1191
|
}, e.prototype.forEach = function(i) {
|
|
1185
1192
|
for (var R = this._cursor, K = this._front, pe = K._elements; (R !== pe.length || K._next !== void 0) && !(R === pe.length && (K = K._next, pe = K._elements, R = 0, pe.length === 0)); )
|
|
1186
1193
|
i(pe[R]), ++R;
|
|
@@ -1222,7 +1229,7 @@ var Kr = { exports: {} };
|
|
|
1222
1229
|
function re(e) {
|
|
1223
1230
|
e._closedPromise_resolve !== void 0 && (e._closedPromise_resolve(void 0), e._closedPromise_resolve = void 0, e._closedPromise_reject = void 0);
|
|
1224
1231
|
}
|
|
1225
|
-
var Z =
|
|
1232
|
+
var Z = Ae("[[AbortSteps]]"), z = Ae("[[ErrorSteps]]"), $ = Ae("[[CancelSteps]]"), U = Ae("[[PullSteps]]"), I = Number.isFinite || function(e) {
|
|
1226
1233
|
return typeof e == "number" && isFinite(e);
|
|
1227
1234
|
}, ee = Math.trunc || function(e) {
|
|
1228
1235
|
return e < 0 ? Math.ceil(e) : Math.floor(e);
|
|
@@ -1310,17 +1317,17 @@ var Kr = { exports: {} };
|
|
|
1310
1317
|
return v(ve("read"));
|
|
1311
1318
|
if (this._ownerReadableStream === void 0)
|
|
1312
1319
|
return v(g("read from"));
|
|
1313
|
-
var i, R, K = O(function(
|
|
1314
|
-
i =
|
|
1320
|
+
var i, R, K = O(function(we, Me) {
|
|
1321
|
+
i = we, R = Me;
|
|
1315
1322
|
}), pe = {
|
|
1316
|
-
_chunkSteps: function(
|
|
1317
|
-
return i({ value:
|
|
1323
|
+
_chunkSteps: function(we) {
|
|
1324
|
+
return i({ value: we, done: !1 });
|
|
1318
1325
|
},
|
|
1319
1326
|
_closeSteps: function() {
|
|
1320
1327
|
return i({ value: void 0, done: !0 });
|
|
1321
1328
|
},
|
|
1322
|
-
_errorSteps: function(
|
|
1323
|
-
return R(
|
|
1329
|
+
_errorSteps: function(we) {
|
|
1330
|
+
return R(we);
|
|
1324
1331
|
}
|
|
1325
1332
|
};
|
|
1326
1333
|
return fe(this, pe), K;
|
|
@@ -1339,7 +1346,7 @@ var Kr = { exports: {} };
|
|
|
1339
1346
|
read: { enumerable: !0 },
|
|
1340
1347
|
releaseLock: { enumerable: !0 },
|
|
1341
1348
|
closed: { enumerable: !0 }
|
|
1342
|
-
}), typeof
|
|
1349
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(he.prototype, Ae.toStringTag, {
|
|
1343
1350
|
value: "ReadableStreamDefaultReader",
|
|
1344
1351
|
configurable: !0
|
|
1345
1352
|
});
|
|
@@ -1353,10 +1360,10 @@ var Kr = { exports: {} };
|
|
|
1353
1360
|
function ve(e) {
|
|
1354
1361
|
return new TypeError("ReadableStreamDefaultReader.prototype." + e + " can only be used on a ReadableStreamDefaultReader");
|
|
1355
1362
|
}
|
|
1356
|
-
var
|
|
1357
|
-
typeof
|
|
1363
|
+
var Ee, Te;
|
|
1364
|
+
typeof Ae.asyncIterator == "symbol" && (Te = (Ee = {}, Ee[Ae.asyncIterator] = function() {
|
|
1358
1365
|
return this;
|
|
1359
|
-
},
|
|
1366
|
+
}, Ee), Object.defineProperty(Te, Ae.asyncIterator, { enumerable: !1 }));
|
|
1360
1367
|
var Oe = function() {
|
|
1361
1368
|
function e(i, R) {
|
|
1362
1369
|
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = i, this._preventCancel = R;
|
|
@@ -1378,7 +1385,7 @@ var Kr = { exports: {} };
|
|
|
1378
1385
|
var R = this._reader;
|
|
1379
1386
|
if (R._ownerReadableStream === void 0)
|
|
1380
1387
|
return v(g("iterate"));
|
|
1381
|
-
var K, pe,
|
|
1388
|
+
var K, pe, we = O(function(We, Qe) {
|
|
1382
1389
|
K = We, pe = Qe;
|
|
1383
1390
|
}), Me = {
|
|
1384
1391
|
_chunkSteps: function(We) {
|
|
@@ -1393,7 +1400,7 @@ var Kr = { exports: {} };
|
|
|
1393
1400
|
i._ongoingPromise = void 0, i._isFinished = !0, f(R), pe(We);
|
|
1394
1401
|
}
|
|
1395
1402
|
};
|
|
1396
|
-
return fe(R, Me),
|
|
1403
|
+
return fe(R, Me), we;
|
|
1397
1404
|
}, e.prototype._returnSteps = function(i) {
|
|
1398
1405
|
if (this._isFinished)
|
|
1399
1406
|
return Promise.resolve({ value: i, done: !0 });
|
|
@@ -1417,7 +1424,7 @@ var Kr = { exports: {} };
|
|
|
1417
1424
|
return Pe(this) ? this._asyncIteratorImpl.return(e) : v(H("return"));
|
|
1418
1425
|
}
|
|
1419
1426
|
};
|
|
1420
|
-
|
|
1427
|
+
Te !== void 0 && Object.setPrototypeOf(Ue, Te);
|
|
1421
1428
|
function Fe(e, i) {
|
|
1422
1429
|
var R = N(e), K = new Oe(R, i), pe = Object.create(Ue);
|
|
1423
1430
|
return pe._asyncIteratorImpl = K, pe;
|
|
@@ -1446,7 +1453,7 @@ var Kr = { exports: {} };
|
|
|
1446
1453
|
function oe(e) {
|
|
1447
1454
|
return e;
|
|
1448
1455
|
}
|
|
1449
|
-
function
|
|
1456
|
+
function Ce(e, i, R) {
|
|
1450
1457
|
if (e.slice)
|
|
1451
1458
|
return e.slice(i, R);
|
|
1452
1459
|
var K = R - i, pe = new ArrayBuffer(K);
|
|
@@ -1456,7 +1463,7 @@ var Kr = { exports: {} };
|
|
|
1456
1463
|
return !(typeof e != "number" || Q(e) || e < 0);
|
|
1457
1464
|
}
|
|
1458
1465
|
function ce(e) {
|
|
1459
|
-
var i =
|
|
1466
|
+
var i = Ce(e.buffer, e.byteOffset, e.byteOffset + e.byteLength);
|
|
1460
1467
|
return new Uint8Array(i);
|
|
1461
1468
|
}
|
|
1462
1469
|
function xe(e) {
|
|
@@ -1507,7 +1514,7 @@ var Kr = { exports: {} };
|
|
|
1507
1514
|
respond: { enumerable: !0 },
|
|
1508
1515
|
respondWithNewView: { enumerable: !0 },
|
|
1509
1516
|
view: { enumerable: !0 }
|
|
1510
|
-
}), typeof
|
|
1517
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(ae.prototype, Ae.toStringTag, {
|
|
1511
1518
|
value: "ReadableStreamBYOBRequest",
|
|
1512
1519
|
configurable: !0
|
|
1513
1520
|
});
|
|
@@ -1572,20 +1579,20 @@ var Kr = { exports: {} };
|
|
|
1572
1579
|
i._chunkSteps(pe);
|
|
1573
1580
|
return;
|
|
1574
1581
|
}
|
|
1575
|
-
var
|
|
1576
|
-
if (
|
|
1582
|
+
var we = this._autoAllocateChunkSize;
|
|
1583
|
+
if (we !== void 0) {
|
|
1577
1584
|
var Me = void 0;
|
|
1578
1585
|
try {
|
|
1579
|
-
Me = new ArrayBuffer(
|
|
1586
|
+
Me = new ArrayBuffer(we);
|
|
1580
1587
|
} catch (Qe) {
|
|
1581
1588
|
i._errorSteps(Qe);
|
|
1582
1589
|
return;
|
|
1583
1590
|
}
|
|
1584
1591
|
var We = {
|
|
1585
1592
|
buffer: Me,
|
|
1586
|
-
bufferByteLength:
|
|
1593
|
+
bufferByteLength: we,
|
|
1587
1594
|
byteOffset: 0,
|
|
1588
|
-
byteLength:
|
|
1595
|
+
byteLength: we,
|
|
1589
1596
|
bytesFilled: 0,
|
|
1590
1597
|
elementSize: 1,
|
|
1591
1598
|
viewConstructor: Uint8Array,
|
|
@@ -1602,7 +1609,7 @@ var Kr = { exports: {} };
|
|
|
1602
1609
|
error: { enumerable: !0 },
|
|
1603
1610
|
byobRequest: { enumerable: !0 },
|
|
1604
1611
|
desiredSize: { enumerable: !0 }
|
|
1605
|
-
}), typeof
|
|
1612
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(be.prototype, Ae.toStringTag, {
|
|
1606
1613
|
value: "ReadableByteStreamController",
|
|
1607
1614
|
configurable: !0
|
|
1608
1615
|
});
|
|
@@ -1645,7 +1652,7 @@ var Kr = { exports: {} };
|
|
|
1645
1652
|
e._queue.push({ buffer: i, byteOffset: R, byteLength: K }), e._queueTotalSize += K;
|
|
1646
1653
|
}
|
|
1647
1654
|
function Ge(e, i) {
|
|
1648
|
-
var R = i.elementSize, K = i.bytesFilled - i.bytesFilled % R, pe = Math.min(e._queueTotalSize, i.byteLength - i.bytesFilled),
|
|
1655
|
+
var R = i.elementSize, K = i.bytesFilled - i.bytesFilled % R, pe = Math.min(e._queueTotalSize, i.byteLength - i.bytesFilled), we = i.bytesFilled + pe, Me = we - we % R, We = pe, Qe = !1;
|
|
1649
1656
|
Me > K && (We = Me - i.bytesFilled, Qe = !0);
|
|
1650
1657
|
for (var Je = e._queue; We > 0; ) {
|
|
1651
1658
|
var et = Je.peek(), rt = Math.min(We, et.byteLength), dt = i.byteOffset + i.bytesFilled;
|
|
@@ -1673,14 +1680,14 @@ var Kr = { exports: {} };
|
|
|
1673
1680
|
function ct(e, i, R) {
|
|
1674
1681
|
var K = e._controlledReadableByteStream, pe = 1;
|
|
1675
1682
|
i.constructor !== DataView && (pe = i.constructor.BYTES_PER_ELEMENT);
|
|
1676
|
-
var
|
|
1683
|
+
var we = i.constructor, Me = i.buffer, We = {
|
|
1677
1684
|
buffer: Me,
|
|
1678
1685
|
bufferByteLength: Me.byteLength,
|
|
1679
1686
|
byteOffset: i.byteOffset,
|
|
1680
1687
|
byteLength: i.byteLength,
|
|
1681
1688
|
bytesFilled: 0,
|
|
1682
1689
|
elementSize: pe,
|
|
1683
|
-
viewConstructor:
|
|
1690
|
+
viewConstructor: we,
|
|
1684
1691
|
readerType: "byob"
|
|
1685
1692
|
};
|
|
1686
1693
|
if (e._pendingPullIntos.length > 0) {
|
|
@@ -1688,7 +1695,7 @@ var Kr = { exports: {} };
|
|
|
1688
1695
|
return;
|
|
1689
1696
|
}
|
|
1690
1697
|
if (K._state === "closed") {
|
|
1691
|
-
var Qe = new
|
|
1698
|
+
var Qe = new we(We.buffer, We.byteOffset, 0);
|
|
1692
1699
|
R._closeSteps(Qe);
|
|
1693
1700
|
return;
|
|
1694
1701
|
}
|
|
@@ -1719,8 +1726,8 @@ var Kr = { exports: {} };
|
|
|
1719
1726
|
nt(e);
|
|
1720
1727
|
var K = R.bytesFilled % R.elementSize;
|
|
1721
1728
|
if (K > 0) {
|
|
1722
|
-
var pe = R.byteOffset + R.bytesFilled,
|
|
1723
|
-
$e(e,
|
|
1729
|
+
var pe = R.byteOffset + R.bytesFilled, we = Ce(R.buffer, pe - K, pe);
|
|
1730
|
+
$e(e, we, 0, we.byteLength);
|
|
1724
1731
|
}
|
|
1725
1732
|
R.bytesFilled -= K, Re(e._controlledReadableByteStream, R), Ze(e);
|
|
1726
1733
|
}
|
|
@@ -1767,21 +1774,21 @@ var Kr = { exports: {} };
|
|
|
1767
1774
|
function bt(e, i) {
|
|
1768
1775
|
var R = e._controlledReadableByteStream;
|
|
1769
1776
|
if (!(e._closeRequested || R._state !== "readable")) {
|
|
1770
|
-
var K = i.buffer, pe = i.byteOffset,
|
|
1777
|
+
var K = i.buffer, pe = i.byteOffset, we = i.byteLength, Me = K;
|
|
1771
1778
|
if (e._pendingPullIntos.length > 0) {
|
|
1772
1779
|
var We = e._pendingPullIntos.peek();
|
|
1773
1780
|
We.buffer = We.buffer;
|
|
1774
1781
|
}
|
|
1775
1782
|
if (je(e), se(R))
|
|
1776
1783
|
if (ie(R) === 0)
|
|
1777
|
-
$e(e, Me, pe,
|
|
1784
|
+
$e(e, Me, pe, we);
|
|
1778
1785
|
else {
|
|
1779
1786
|
e._pendingPullIntos.length > 0 && nt(e);
|
|
1780
|
-
var Qe = new Uint8Array(Me, pe,
|
|
1787
|
+
var Qe = new Uint8Array(Me, pe, we);
|
|
1781
1788
|
J(R, Qe, !1);
|
|
1782
1789
|
}
|
|
1783
1790
|
else
|
|
1784
|
-
Fr(R) ? ($e(e, Me, pe,
|
|
1791
|
+
Fr(R) ? ($e(e, Me, pe, we), Ze(e)) : $e(e, Me, pe, we);
|
|
1785
1792
|
me(e);
|
|
1786
1793
|
}
|
|
1787
1794
|
}
|
|
@@ -1829,8 +1836,8 @@ var Kr = { exports: {} };
|
|
|
1829
1836
|
var pe = i.byteLength;
|
|
1830
1837
|
R.buffer = i.buffer, ut(e, pe);
|
|
1831
1838
|
}
|
|
1832
|
-
function Jr(e, i, R, K, pe,
|
|
1833
|
-
i._controlledReadableByteStream = e, i._pullAgain = !1, i._pulling = !1, i._byobRequest = null, i._queue = i._queueTotalSize = void 0, te(i), i._closeRequested = !1, i._started = !1, i._strategyHWM =
|
|
1839
|
+
function Jr(e, i, R, K, pe, we, Me) {
|
|
1840
|
+
i._controlledReadableByteStream = e, i._pullAgain = !1, i._pulling = !1, i._byobRequest = null, i._queue = i._queueTotalSize = void 0, te(i), i._closeRequested = !1, i._started = !1, i._strategyHWM = we, i._pullAlgorithm = K, i._cancelAlgorithm = pe, i._autoAllocateChunkSize = Me, i._pendingPullIntos = new u(), e._readableStreamController = i;
|
|
1834
1841
|
var We = R();
|
|
1835
1842
|
L(P(We), function() {
|
|
1836
1843
|
i._started = !0, me(i);
|
|
@@ -1840,14 +1847,14 @@ var Kr = { exports: {} };
|
|
|
1840
1847
|
}
|
|
1841
1848
|
function jn(e, i, R) {
|
|
1842
1849
|
var K = Object.create(be.prototype), pe = function() {
|
|
1843
|
-
},
|
|
1850
|
+
}, we = function() {
|
|
1844
1851
|
return P(void 0);
|
|
1845
1852
|
}, Me = function() {
|
|
1846
1853
|
return P(void 0);
|
|
1847
1854
|
};
|
|
1848
1855
|
i.start !== void 0 && (pe = function() {
|
|
1849
1856
|
return i.start(K);
|
|
1850
|
-
}), i.pull !== void 0 && (
|
|
1857
|
+
}), i.pull !== void 0 && (we = function() {
|
|
1851
1858
|
return i.pull(K);
|
|
1852
1859
|
}), i.cancel !== void 0 && (Me = function(Qe) {
|
|
1853
1860
|
return i.cancel(Qe);
|
|
@@ -1855,7 +1862,7 @@ var Kr = { exports: {} };
|
|
|
1855
1862
|
var We = i.autoAllocateChunkSize;
|
|
1856
1863
|
if (We === 0)
|
|
1857
1864
|
throw new TypeError("autoAllocateChunkSize must be greater than 0");
|
|
1858
|
-
Jr(e, K, pe,
|
|
1865
|
+
Jr(e, K, pe, we, Me, R, We);
|
|
1859
1866
|
}
|
|
1860
1867
|
function $n(e, i, R) {
|
|
1861
1868
|
e._associatedReadableByteStreamController = i, e._view = R;
|
|
@@ -1912,7 +1919,7 @@ var Kr = { exports: {} };
|
|
|
1912
1919
|
return v(g("read from"));
|
|
1913
1920
|
var R, K, pe = O(function(Me, We) {
|
|
1914
1921
|
R = Me, K = We;
|
|
1915
|
-
}),
|
|
1922
|
+
}), we = {
|
|
1916
1923
|
_chunkSteps: function(Me) {
|
|
1917
1924
|
return R({ value: Me, done: !1 });
|
|
1918
1925
|
},
|
|
@@ -1923,7 +1930,7 @@ var Kr = { exports: {} };
|
|
|
1923
1930
|
return K(Me);
|
|
1924
1931
|
}
|
|
1925
1932
|
};
|
|
1926
|
-
return rn(this, i,
|
|
1933
|
+
return rn(this, i, we), pe;
|
|
1927
1934
|
}, e.prototype.releaseLock = function() {
|
|
1928
1935
|
if (!Wt(this))
|
|
1929
1936
|
throw cr("releaseLock");
|
|
@@ -1939,7 +1946,7 @@ var Kr = { exports: {} };
|
|
|
1939
1946
|
read: { enumerable: !0 },
|
|
1940
1947
|
releaseLock: { enumerable: !0 },
|
|
1941
1948
|
closed: { enumerable: !0 }
|
|
1942
|
-
}), typeof
|
|
1949
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(Zt.prototype, Ae.toStringTag, {
|
|
1943
1950
|
value: "ReadableStreamBYOBReader",
|
|
1944
1951
|
configurable: !0
|
|
1945
1952
|
});
|
|
@@ -1982,13 +1989,13 @@ var Kr = { exports: {} };
|
|
|
1982
1989
|
}
|
|
1983
1990
|
function Hn(e, i) {
|
|
1984
1991
|
ye(e, i);
|
|
1985
|
-
var R = e == null ? void 0 : e.abort, K = e == null ? void 0 : e.close, pe = e == null ? void 0 : e.start,
|
|
1992
|
+
var R = e == null ? void 0 : e.abort, K = e == null ? void 0 : e.close, pe = e == null ? void 0 : e.start, we = e == null ? void 0 : e.type, Me = e == null ? void 0 : e.write;
|
|
1986
1993
|
return {
|
|
1987
1994
|
abort: R === void 0 ? void 0 : Xn(R, e, i + " has member 'abort' that"),
|
|
1988
1995
|
close: K === void 0 ? void 0 : Yn(K, e, i + " has member 'close' that"),
|
|
1989
1996
|
start: pe === void 0 ? void 0 : qn(pe, e, i + " has member 'start' that"),
|
|
1990
1997
|
write: Me === void 0 ? void 0 : Kn(Me, e, i + " has member 'write' that"),
|
|
1991
|
-
type:
|
|
1998
|
+
type: we
|
|
1992
1999
|
};
|
|
1993
2000
|
}
|
|
1994
2001
|
function Xn(e, i, R) {
|
|
@@ -2034,8 +2041,8 @@ var Kr = { exports: {} };
|
|
|
2034
2041
|
i === void 0 && (i = {}), R === void 0 && (R = {}), i === void 0 ? i = null : C(i, "First parameter");
|
|
2035
2042
|
var K = dr(R, "Second parameter"), pe = Hn(i, "First parameter");
|
|
2036
2043
|
sn(this);
|
|
2037
|
-
var
|
|
2038
|
-
if (
|
|
2044
|
+
var we = pe.type;
|
|
2045
|
+
if (we !== void 0)
|
|
2039
2046
|
throw new RangeError("Invalid type is specified");
|
|
2040
2047
|
var Me = ur(K), We = er(K, 1);
|
|
2041
2048
|
fi(this, pe, We, Me);
|
|
@@ -2063,21 +2070,21 @@ var Kr = { exports: {} };
|
|
|
2063
2070
|
close: { enumerable: !0 },
|
|
2064
2071
|
getWriter: { enumerable: !0 },
|
|
2065
2072
|
locked: { enumerable: !0 }
|
|
2066
|
-
}), typeof
|
|
2073
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(tr.prototype, Ae.toStringTag, {
|
|
2067
2074
|
value: "WritableStream",
|
|
2068
2075
|
configurable: !0
|
|
2069
2076
|
});
|
|
2070
2077
|
function an(e) {
|
|
2071
2078
|
return new rr(e);
|
|
2072
2079
|
}
|
|
2073
|
-
function ei(e, i, R, K, pe,
|
|
2074
|
-
pe === void 0 && (pe = 1),
|
|
2080
|
+
function ei(e, i, R, K, pe, we) {
|
|
2081
|
+
pe === void 0 && (pe = 1), we === void 0 && (we = function() {
|
|
2075
2082
|
return 1;
|
|
2076
2083
|
});
|
|
2077
2084
|
var Me = Object.create(tr.prototype);
|
|
2078
2085
|
sn(Me);
|
|
2079
2086
|
var We = Object.create(Ht.prototype);
|
|
2080
|
-
return fn(Me, We, e, i, R, K, pe,
|
|
2087
|
+
return fn(Me, We, e, i, R, K, pe, we), Me;
|
|
2081
2088
|
}
|
|
2082
2089
|
function sn(e) {
|
|
2083
2090
|
e._state = "writable", e._storedError = void 0, e._writer = void 0, e._writableStreamController = void 0, e._writeRequests = new u(), e._inFlightWriteRequest = void 0, e._closeRequest = void 0, e._inFlightCloseRequest = void 0, e._pendingAbortRequest = void 0, e._backpressure = !1;
|
|
@@ -2100,7 +2107,7 @@ var Kr = { exports: {} };
|
|
|
2100
2107
|
return e._pendingAbortRequest._promise;
|
|
2101
2108
|
var pe = !1;
|
|
2102
2109
|
K === "erroring" && (pe = !0, i = void 0);
|
|
2103
|
-
var
|
|
2110
|
+
var we = O(function(Me, We) {
|
|
2104
2111
|
e._pendingAbortRequest = {
|
|
2105
2112
|
_promise: void 0,
|
|
2106
2113
|
_resolve: Me,
|
|
@@ -2109,16 +2116,16 @@ var Kr = { exports: {} };
|
|
|
2109
2116
|
_wasAlreadyErroring: pe
|
|
2110
2117
|
};
|
|
2111
2118
|
});
|
|
2112
|
-
return e._pendingAbortRequest._promise =
|
|
2119
|
+
return e._pendingAbortRequest._promise = we, pe || Dr(e, i), we;
|
|
2113
2120
|
}
|
|
2114
2121
|
function on(e) {
|
|
2115
2122
|
var i = e._state;
|
|
2116
2123
|
if (i === "closed" || i === "errored")
|
|
2117
2124
|
return v(new TypeError("The stream (in " + i + " state) is not in the writable state and cannot be closed"));
|
|
2118
|
-
var R = O(function(pe,
|
|
2125
|
+
var R = O(function(pe, we) {
|
|
2119
2126
|
var Me = {
|
|
2120
2127
|
_resolve: pe,
|
|
2121
|
-
_reject:
|
|
2128
|
+
_reject: we
|
|
2122
2129
|
};
|
|
2123
2130
|
e._closeRequest = Me;
|
|
2124
2131
|
}), K = e._writer;
|
|
@@ -2269,7 +2276,7 @@ var Kr = { exports: {} };
|
|
|
2269
2276
|
closed: { enumerable: !0 },
|
|
2270
2277
|
desiredSize: { enumerable: !0 },
|
|
2271
2278
|
ready: { enumerable: !0 }
|
|
2272
|
-
}), typeof
|
|
2279
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(rr.prototype, Ae.toStringTag, {
|
|
2273
2280
|
value: "WritableStreamDefaultWriter",
|
|
2274
2281
|
configurable: !0
|
|
2275
2282
|
});
|
|
@@ -2306,12 +2313,12 @@ var Kr = { exports: {} };
|
|
|
2306
2313
|
var R = e._ownerWritableStream, K = R._writableStreamController, pe = gi(K, i);
|
|
2307
2314
|
if (R !== e._ownerWritableStream)
|
|
2308
2315
|
return v(nr("write to"));
|
|
2309
|
-
var
|
|
2310
|
-
if (
|
|
2316
|
+
var we = R._state;
|
|
2317
|
+
if (we === "errored")
|
|
2311
2318
|
return v(R._storedError);
|
|
2312
|
-
if (_t(R) ||
|
|
2319
|
+
if (_t(R) || we === "closed")
|
|
2313
2320
|
return v(new TypeError("The stream is closing or closed and cannot be written to"));
|
|
2314
|
-
if (
|
|
2321
|
+
if (we === "erroring")
|
|
2315
2322
|
return v(R._storedError);
|
|
2316
2323
|
var Me = ti(R);
|
|
2317
2324
|
return mi(K, i, pe), Me;
|
|
@@ -2354,15 +2361,15 @@ var Kr = { exports: {} };
|
|
|
2354
2361
|
abortReason: { enumerable: !0 },
|
|
2355
2362
|
signal: { enumerable: !0 },
|
|
2356
2363
|
error: { enumerable: !0 }
|
|
2357
|
-
}), typeof
|
|
2364
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(Ht.prototype, Ae.toStringTag, {
|
|
2358
2365
|
value: "WritableStreamDefaultController",
|
|
2359
2366
|
configurable: !0
|
|
2360
2367
|
});
|
|
2361
2368
|
function Br(e) {
|
|
2362
2369
|
return !m(e) || !Object.prototype.hasOwnProperty.call(e, "_controlledWritableStream") ? !1 : e instanceof Ht;
|
|
2363
2370
|
}
|
|
2364
|
-
function fn(e, i, R, K, pe,
|
|
2365
|
-
i._controlledWritableStream = e, e._writableStreamController = i, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._abortReason = void 0, i._abortController = Zn(), i._started = !1, i._strategySizeAlgorithm = We, i._strategyHWM = Me, i._writeAlgorithm = K, i._closeAlgorithm = pe, i._abortAlgorithm =
|
|
2371
|
+
function fn(e, i, R, K, pe, we, Me, We) {
|
|
2372
|
+
i._controlledWritableStream = e, e._writableStreamController = i, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._abortReason = void 0, i._abortController = Zn(), i._started = !1, i._strategySizeAlgorithm = We, i._strategyHWM = Me, i._writeAlgorithm = K, i._closeAlgorithm = pe, i._abortAlgorithm = we;
|
|
2366
2373
|
var Qe = Ur(i);
|
|
2367
2374
|
Nr(e, Qe);
|
|
2368
2375
|
var Je = R(), et = P(Je);
|
|
@@ -2373,7 +2380,7 @@ var Kr = { exports: {} };
|
|
|
2373
2380
|
});
|
|
2374
2381
|
}
|
|
2375
2382
|
function fi(e, i, R, K) {
|
|
2376
|
-
var pe = Object.create(Ht.prototype),
|
|
2383
|
+
var pe = Object.create(Ht.prototype), we = function() {
|
|
2377
2384
|
}, Me = function() {
|
|
2378
2385
|
return P(void 0);
|
|
2379
2386
|
}, We = function() {
|
|
@@ -2381,7 +2388,7 @@ var Kr = { exports: {} };
|
|
|
2381
2388
|
}, Qe = function() {
|
|
2382
2389
|
return P(void 0);
|
|
2383
2390
|
};
|
|
2384
|
-
i.start !== void 0 && (
|
|
2391
|
+
i.start !== void 0 && (we = function() {
|
|
2385
2392
|
return i.start(pe);
|
|
2386
2393
|
}), i.write !== void 0 && (Me = function(Je) {
|
|
2387
2394
|
return i.write(Je, pe);
|
|
@@ -2389,7 +2396,7 @@ var Kr = { exports: {} };
|
|
|
2389
2396
|
return i.close();
|
|
2390
2397
|
}), i.abort !== void 0 && (Qe = function(Je) {
|
|
2391
2398
|
return i.abort(Je);
|
|
2392
|
-
}), fn(e, pe,
|
|
2399
|
+
}), fn(e, pe, we, Me, We, Qe, R, K);
|
|
2393
2400
|
}
|
|
2394
2401
|
function pr(e) {
|
|
2395
2402
|
e._writeAlgorithm = void 0, e._closeAlgorithm = void 0, e._abortAlgorithm = void 0, e._strategySizeAlgorithm = void 0;
|
|
@@ -2410,8 +2417,8 @@ var Kr = { exports: {} };
|
|
|
2410
2417
|
function mi(e, i, R) {
|
|
2411
2418
|
try {
|
|
2412
2419
|
Ne(e, i, R);
|
|
2413
|
-
} catch (
|
|
2414
|
-
Wr(e,
|
|
2420
|
+
} catch (we) {
|
|
2421
|
+
Wr(e, we);
|
|
2415
2422
|
return;
|
|
2416
2423
|
}
|
|
2417
2424
|
var K = e._controlledWritableStream;
|
|
@@ -2456,8 +2463,8 @@ var Kr = { exports: {} };
|
|
|
2456
2463
|
ri(R);
|
|
2457
2464
|
var pe = R._state;
|
|
2458
2465
|
if (xe(e), !_t(R) && pe === "writable") {
|
|
2459
|
-
var
|
|
2460
|
-
Nr(R,
|
|
2466
|
+
var we = Ur(e);
|
|
2467
|
+
Nr(R, we);
|
|
2461
2468
|
}
|
|
2462
2469
|
gr(e);
|
|
2463
2470
|
}, function(pe) {
|
|
@@ -2544,13 +2551,13 @@ var Kr = { exports: {} };
|
|
|
2544
2551
|
return e.prototype = Object.create(Error.prototype), Object.defineProperty(e.prototype, "constructor", { value: e, writable: !0, configurable: !0 }), e;
|
|
2545
2552
|
}
|
|
2546
2553
|
var Ci = _i(Sn) ? Sn : Ei();
|
|
2547
|
-
function An(e, i, R, K, pe,
|
|
2554
|
+
function An(e, i, R, K, pe, we) {
|
|
2548
2555
|
var Me = N(e), We = an(i);
|
|
2549
2556
|
e._disturbed = !0;
|
|
2550
2557
|
var Qe = !1, Je = P(void 0);
|
|
2551
2558
|
return O(function(et, rt) {
|
|
2552
2559
|
var dt;
|
|
2553
|
-
if (
|
|
2560
|
+
if (we !== void 0) {
|
|
2554
2561
|
if (dt = function() {
|
|
2555
2562
|
var Ke = new Ci("Aborted", "AbortError"), it = [];
|
|
2556
2563
|
K || it.push(function() {
|
|
@@ -2562,11 +2569,11 @@ var Kr = { exports: {} };
|
|
|
2562
2569
|
return lt();
|
|
2563
2570
|
}));
|
|
2564
2571
|
}, !0, Ke);
|
|
2565
|
-
},
|
|
2572
|
+
}, we.aborted) {
|
|
2566
2573
|
dt();
|
|
2567
2574
|
return;
|
|
2568
2575
|
}
|
|
2569
|
-
|
|
2576
|
+
we.addEventListener("abort", dt);
|
|
2570
2577
|
}
|
|
2571
2578
|
function St() {
|
|
2572
2579
|
return O(function(Ke, it) {
|
|
@@ -2640,7 +2647,7 @@ var Kr = { exports: {} };
|
|
|
2640
2647
|
}) : ot(Ke, it));
|
|
2641
2648
|
}
|
|
2642
2649
|
function ot(Ke, it) {
|
|
2643
|
-
un(We), f(Me),
|
|
2650
|
+
un(We), f(Me), we !== void 0 && we.removeEventListener("abort", dt), Ke ? rt(it) : et(void 0);
|
|
2644
2651
|
}
|
|
2645
2652
|
});
|
|
2646
2653
|
}
|
|
@@ -2690,7 +2697,7 @@ var Kr = { exports: {} };
|
|
|
2690
2697
|
enqueue: { enumerable: !0 },
|
|
2691
2698
|
error: { enumerable: !0 },
|
|
2692
2699
|
desiredSize: { enumerable: !0 }
|
|
2693
|
-
}), typeof
|
|
2700
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(Xt.prototype, Ae.toStringTag, {
|
|
2694
2701
|
value: "ReadableStreamDefaultController",
|
|
2695
2702
|
configurable: !0
|
|
2696
2703
|
});
|
|
@@ -2767,8 +2774,8 @@ var Kr = { exports: {} };
|
|
|
2767
2774
|
var i = e._controlledReadableStream._state;
|
|
2768
2775
|
return !e._closeRequested && i === "readable";
|
|
2769
2776
|
}
|
|
2770
|
-
function _n(e, i, R, K, pe,
|
|
2771
|
-
i._controlledReadableStream = e, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._started = !1, i._closeRequested = !1, i._pullAgain = !1, i._pulling = !1, i._strategySizeAlgorithm = Me, i._strategyHWM =
|
|
2777
|
+
function _n(e, i, R, K, pe, we, Me) {
|
|
2778
|
+
i._controlledReadableStream = e, i._queue = void 0, i._queueTotalSize = void 0, te(i), i._started = !1, i._closeRequested = !1, i._pullAgain = !1, i._pulling = !1, i._strategySizeAlgorithm = Me, i._strategyHWM = we, i._pullAlgorithm = K, i._cancelAlgorithm = pe, e._readableStreamController = i;
|
|
2772
2779
|
var We = R();
|
|
2773
2780
|
L(P(We), function() {
|
|
2774
2781
|
i._started = !0, ir(i);
|
|
@@ -2777,19 +2784,19 @@ var Kr = { exports: {} };
|
|
|
2777
2784
|
});
|
|
2778
2785
|
}
|
|
2779
2786
|
function Pi(e, i, R, K) {
|
|
2780
|
-
var pe = Object.create(Xt.prototype),
|
|
2787
|
+
var pe = Object.create(Xt.prototype), we = function() {
|
|
2781
2788
|
}, Me = function() {
|
|
2782
2789
|
return P(void 0);
|
|
2783
2790
|
}, We = function() {
|
|
2784
2791
|
return P(void 0);
|
|
2785
2792
|
};
|
|
2786
|
-
i.start !== void 0 && (
|
|
2793
|
+
i.start !== void 0 && (we = function() {
|
|
2787
2794
|
return i.start(pe);
|
|
2788
2795
|
}), i.pull !== void 0 && (Me = function() {
|
|
2789
2796
|
return i.pull(pe);
|
|
2790
2797
|
}), i.cancel !== void 0 && (We = function(Qe) {
|
|
2791
2798
|
return i.cancel(Qe);
|
|
2792
|
-
}), _n(e, pe,
|
|
2799
|
+
}), _n(e, pe, we, Me, We, R, K);
|
|
2793
2800
|
}
|
|
2794
2801
|
function wr(e) {
|
|
2795
2802
|
return new TypeError("ReadableStreamDefaultController.prototype." + e + " can only be used on a ReadableStreamDefaultController");
|
|
@@ -2798,7 +2805,7 @@ var Kr = { exports: {} };
|
|
|
2798
2805
|
return Be(e._readableStreamController) ? ki(e) : Ri(e);
|
|
2799
2806
|
}
|
|
2800
2807
|
function Ri(e, i) {
|
|
2801
|
-
var R = N(e), K = !1, pe = !1,
|
|
2808
|
+
var R = N(e), K = !1, pe = !1, we = !1, Me = !1, We, Qe, Je, et, rt, dt = O(function(ft) {
|
|
2802
2809
|
rt = ft;
|
|
2803
2810
|
});
|
|
2804
2811
|
function St() {
|
|
@@ -2810,11 +2817,11 @@ var Kr = { exports: {} };
|
|
|
2810
2817
|
w(function() {
|
|
2811
2818
|
pe = !1;
|
|
2812
2819
|
var mt = Ct, xt = Ct;
|
|
2813
|
-
|
|
2820
|
+
we || Ar(Je._readableStreamController, mt), Me || Ar(et._readableStreamController, xt), K = !1, pe && St();
|
|
2814
2821
|
});
|
|
2815
2822
|
},
|
|
2816
2823
|
_closeSteps: function() {
|
|
2817
|
-
K = !1,
|
|
2824
|
+
K = !1, we || ar(Je._readableStreamController), Me || ar(et._readableStreamController), (!we || !Me) && rt(void 0);
|
|
2818
2825
|
},
|
|
2819
2826
|
_errorSteps: function() {
|
|
2820
2827
|
K = !1;
|
|
@@ -2823,14 +2830,14 @@ var Kr = { exports: {} };
|
|
|
2823
2830
|
return fe(R, ft), P(void 0);
|
|
2824
2831
|
}
|
|
2825
2832
|
function qt(ft) {
|
|
2826
|
-
if (
|
|
2833
|
+
if (we = !0, We = ft, Me) {
|
|
2827
2834
|
var Ct = G([We, Qe]), mt = yt(e, Ct);
|
|
2828
2835
|
rt(mt);
|
|
2829
2836
|
}
|
|
2830
2837
|
return dt;
|
|
2831
2838
|
}
|
|
2832
2839
|
function It(ft) {
|
|
2833
|
-
if (Me = !0, Qe = ft,
|
|
2840
|
+
if (Me = !0, Qe = ft, we) {
|
|
2834
2841
|
var Ct = G([We, Qe]), mt = yt(e, Ct);
|
|
2835
2842
|
rt(mt);
|
|
2836
2843
|
}
|
|
@@ -2839,16 +2846,16 @@ var Kr = { exports: {} };
|
|
|
2839
2846
|
function Et() {
|
|
2840
2847
|
}
|
|
2841
2848
|
return Je = Hr(Et, St, qt), et = Hr(Et, St, It), l(R._closedPromise, function(ft) {
|
|
2842
|
-
kt(Je._readableStreamController, ft), kt(et._readableStreamController, ft), (!
|
|
2849
|
+
kt(Je._readableStreamController, ft), kt(et._readableStreamController, ft), (!we || !Me) && rt(void 0);
|
|
2843
2850
|
}), [Je, et];
|
|
2844
2851
|
}
|
|
2845
2852
|
function ki(e) {
|
|
2846
|
-
var i = N(e), R = !1, K = !1, pe = !1,
|
|
2853
|
+
var i = N(e), R = !1, K = !1, pe = !1, we = !1, Me = !1, We, Qe, Je, et, rt, dt = O(function(ot) {
|
|
2847
2854
|
rt = ot;
|
|
2848
2855
|
});
|
|
2849
2856
|
function St(ot) {
|
|
2850
2857
|
l(ot._closedPromise, function(Ke) {
|
|
2851
|
-
ot === i && (pt(Je._readableStreamController, Ke), pt(et._readableStreamController, Ke), (!
|
|
2858
|
+
ot === i && (pt(Je._readableStreamController, Ke), pt(et._readableStreamController, Ke), (!we || !Me) && rt(void 0));
|
|
2852
2859
|
});
|
|
2853
2860
|
}
|
|
2854
2861
|
function qt() {
|
|
@@ -2858,18 +2865,18 @@ var Kr = { exports: {} };
|
|
|
2858
2865
|
w(function() {
|
|
2859
2866
|
K = !1, pe = !1;
|
|
2860
2867
|
var it = Ke, lt = Ke;
|
|
2861
|
-
if (!
|
|
2868
|
+
if (!we && !Me)
|
|
2862
2869
|
try {
|
|
2863
2870
|
lt = ce(Ke);
|
|
2864
2871
|
} catch (Tt) {
|
|
2865
2872
|
pt(Je._readableStreamController, Tt), pt(et._readableStreamController, Tt), rt(yt(e, Tt));
|
|
2866
2873
|
return;
|
|
2867
2874
|
}
|
|
2868
|
-
|
|
2875
|
+
we || bt(Je._readableStreamController, it), Me || bt(et._readableStreamController, lt), R = !1, K ? Et() : pe && ft();
|
|
2869
2876
|
});
|
|
2870
2877
|
},
|
|
2871
2878
|
_closeSteps: function() {
|
|
2872
|
-
R = !1,
|
|
2879
|
+
R = !1, we || gt(Je._readableStreamController), Me || gt(et._readableStreamController), Je._readableStreamController._pendingPullIntos.length > 0 && At(Je._readableStreamController, 0), et._readableStreamController._pendingPullIntos.length > 0 && At(et._readableStreamController, 0), (!we || !Me) && rt(void 0);
|
|
2873
2880
|
},
|
|
2874
2881
|
_errorSteps: function() {
|
|
2875
2882
|
R = !1;
|
|
@@ -2883,7 +2890,7 @@ var Kr = { exports: {} };
|
|
|
2883
2890
|
_chunkSteps: function(Dt) {
|
|
2884
2891
|
w(function() {
|
|
2885
2892
|
K = !1, pe = !1;
|
|
2886
|
-
var Kt = Ke ? Me :
|
|
2893
|
+
var Kt = Ke ? Me : we, lr = Ke ? we : Me;
|
|
2887
2894
|
if (lr)
|
|
2888
2895
|
Kt || wt(it._readableStreamController, Dt);
|
|
2889
2896
|
else {
|
|
@@ -2901,7 +2908,7 @@ var Kr = { exports: {} };
|
|
|
2901
2908
|
},
|
|
2902
2909
|
_closeSteps: function(Dt) {
|
|
2903
2910
|
R = !1;
|
|
2904
|
-
var Kt = Ke ? Me :
|
|
2911
|
+
var Kt = Ke ? Me : we, lr = Ke ? we : Me;
|
|
2905
2912
|
Kt || gt(it._readableStreamController), lr || gt(lt._readableStreamController), Dt !== void 0 && (Kt || wt(it._readableStreamController, Dt), !lr && lt._readableStreamController._pendingPullIntos.length > 0 && At(lt._readableStreamController, 0)), (!Kt || !lr) && rt(void 0);
|
|
2906
2913
|
},
|
|
2907
2914
|
_errorSteps: function() {
|
|
@@ -2925,14 +2932,14 @@ var Kr = { exports: {} };
|
|
|
2925
2932
|
return ot === null ? qt() : It(ot._view, !0), P(void 0);
|
|
2926
2933
|
}
|
|
2927
2934
|
function Ct(ot) {
|
|
2928
|
-
if (
|
|
2935
|
+
if (we = !0, We = ot, Me) {
|
|
2929
2936
|
var Ke = G([We, Qe]), it = yt(e, Ke);
|
|
2930
2937
|
rt(it);
|
|
2931
2938
|
}
|
|
2932
2939
|
return dt;
|
|
2933
2940
|
}
|
|
2934
2941
|
function mt(ot) {
|
|
2935
|
-
if (Me = !0, Qe = ot,
|
|
2942
|
+
if (Me = !0, Qe = ot, we) {
|
|
2936
2943
|
var Ke = G([We, Qe]), it = yt(e, Ke);
|
|
2937
2944
|
rt(it);
|
|
2938
2945
|
}
|
|
@@ -2944,11 +2951,11 @@ var Kr = { exports: {} };
|
|
|
2944
2951
|
}
|
|
2945
2952
|
function Oi(e, i) {
|
|
2946
2953
|
ye(e, i);
|
|
2947
|
-
var R = e, K = R == null ? void 0 : R.autoAllocateChunkSize, pe = R == null ? void 0 : R.cancel,
|
|
2954
|
+
var R = e, K = R == null ? void 0 : R.autoAllocateChunkSize, pe = R == null ? void 0 : R.cancel, we = R == null ? void 0 : R.pull, Me = R == null ? void 0 : R.start, We = R == null ? void 0 : R.type;
|
|
2948
2955
|
return {
|
|
2949
2956
|
autoAllocateChunkSize: K === void 0 ? void 0 : _(K, i + " has member 'autoAllocateChunkSize' that"),
|
|
2950
2957
|
cancel: pe === void 0 ? void 0 : Mi(pe, R, i + " has member 'cancel' that"),
|
|
2951
|
-
pull:
|
|
2958
|
+
pull: we === void 0 ? void 0 : Fi(we, R, i + " has member 'pull' that"),
|
|
2952
2959
|
start: Me === void 0 ? void 0 : Ii(Me, R, i + " has member 'start' that"),
|
|
2953
2960
|
type: We === void 0 ? void 0 : Di(We, i + " has member 'type' that")
|
|
2954
2961
|
};
|
|
@@ -2992,12 +2999,12 @@ var Kr = { exports: {} };
|
|
|
2992
2999
|
}
|
|
2993
3000
|
function En(e, i) {
|
|
2994
3001
|
ye(e, i);
|
|
2995
|
-
var R = e == null ? void 0 : e.preventAbort, K = e == null ? void 0 : e.preventCancel, pe = e == null ? void 0 : e.preventClose,
|
|
2996
|
-
return
|
|
3002
|
+
var R = e == null ? void 0 : e.preventAbort, K = e == null ? void 0 : e.preventCancel, pe = e == null ? void 0 : e.preventClose, we = e == null ? void 0 : e.signal;
|
|
3003
|
+
return we !== void 0 && Wi(we, i + " has member 'signal' that"), {
|
|
2997
3004
|
preventAbort: Boolean(R),
|
|
2998
3005
|
preventCancel: Boolean(K),
|
|
2999
3006
|
preventClose: Boolean(pe),
|
|
3000
|
-
signal:
|
|
3007
|
+
signal: we
|
|
3001
3008
|
};
|
|
3002
3009
|
}
|
|
3003
3010
|
function Wi(e, i) {
|
|
@@ -3018,11 +3025,11 @@ var Kr = { exports: {} };
|
|
|
3018
3025
|
if (Xr(this), pe.type === "bytes") {
|
|
3019
3026
|
if (K.size !== void 0)
|
|
3020
3027
|
throw new RangeError("The strategy for a byte stream cannot have a size function");
|
|
3021
|
-
var
|
|
3022
|
-
jn(this, pe,
|
|
3028
|
+
var we = er(K, 0);
|
|
3029
|
+
jn(this, pe, we);
|
|
3023
3030
|
} else {
|
|
3024
|
-
var Me = ur(K),
|
|
3025
|
-
Pi(this, pe,
|
|
3031
|
+
var Me = ur(K), we = er(K, 1);
|
|
3032
|
+
Pi(this, pe, we, Me);
|
|
3026
3033
|
}
|
|
3027
3034
|
}
|
|
3028
3035
|
return Object.defineProperty(e.prototype, "locked", {
|
|
@@ -3049,8 +3056,8 @@ var Kr = { exports: {} };
|
|
|
3049
3056
|
throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");
|
|
3050
3057
|
if (Vt(K.writable))
|
|
3051
3058
|
throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");
|
|
3052
|
-
var
|
|
3053
|
-
return h(
|
|
3059
|
+
var we = An(this, K.writable, pe.preventClose, pe.preventAbort, pe.preventCancel, pe.signal);
|
|
3060
|
+
return h(we), K.readable;
|
|
3054
3061
|
}, e.prototype.pipeTo = function(i, R) {
|
|
3055
3062
|
if (R === void 0 && (R = {}), !Mt(this))
|
|
3056
3063
|
return v(jt("pipeTo"));
|
|
@@ -3085,10 +3092,10 @@ var Kr = { exports: {} };
|
|
|
3085
3092
|
tee: { enumerable: !0 },
|
|
3086
3093
|
values: { enumerable: !0 },
|
|
3087
3094
|
locked: { enumerable: !0 }
|
|
3088
|
-
}), typeof
|
|
3095
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(Ot.prototype, Ae.toStringTag, {
|
|
3089
3096
|
value: "ReadableStream",
|
|
3090
3097
|
configurable: !0
|
|
3091
|
-
}), typeof
|
|
3098
|
+
}), typeof Ae.asyncIterator == "symbol" && Object.defineProperty(Ot.prototype, Ae.asyncIterator, {
|
|
3092
3099
|
value: Ot.prototype.values,
|
|
3093
3100
|
writable: !0,
|
|
3094
3101
|
configurable: !0
|
|
@@ -3097,10 +3104,10 @@ var Kr = { exports: {} };
|
|
|
3097
3104
|
K === void 0 && (K = 1), pe === void 0 && (pe = function() {
|
|
3098
3105
|
return 1;
|
|
3099
3106
|
});
|
|
3100
|
-
var
|
|
3101
|
-
Xr(
|
|
3107
|
+
var we = Object.create(Ot.prototype);
|
|
3108
|
+
Xr(we);
|
|
3102
3109
|
var Me = Object.create(Xt.prototype);
|
|
3103
|
-
return _n(
|
|
3110
|
+
return _n(we, Me, e, i, R, K, pe), we;
|
|
3104
3111
|
}
|
|
3105
3112
|
function Cn(e, i, R) {
|
|
3106
3113
|
var K = Object.create(Ot.prototype);
|
|
@@ -3191,7 +3198,7 @@ var Kr = { exports: {} };
|
|
|
3191
3198
|
Object.defineProperties(_r.prototype, {
|
|
3192
3199
|
highWaterMark: { enumerable: !0 },
|
|
3193
3200
|
size: { enumerable: !0 }
|
|
3194
|
-
}), typeof
|
|
3201
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(_r.prototype, Ae.toStringTag, {
|
|
3195
3202
|
value: "ByteLengthQueuingStrategy",
|
|
3196
3203
|
configurable: !0
|
|
3197
3204
|
});
|
|
@@ -3236,7 +3243,7 @@ var Kr = { exports: {} };
|
|
|
3236
3243
|
Object.defineProperties(Er.prototype, {
|
|
3237
3244
|
highWaterMark: { enumerable: !0 },
|
|
3238
3245
|
size: { enumerable: !0 }
|
|
3239
|
-
}), typeof
|
|
3246
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(Er.prototype, Ae.toStringTag, {
|
|
3240
3247
|
value: "CountQueuingStrategy",
|
|
3241
3248
|
configurable: !0
|
|
3242
3249
|
});
|
|
@@ -3248,12 +3255,12 @@ var Kr = { exports: {} };
|
|
|
3248
3255
|
}
|
|
3249
3256
|
function zi(e, i) {
|
|
3250
3257
|
ye(e, i);
|
|
3251
|
-
var R = e == null ? void 0 : e.flush, K = e == null ? void 0 : e.readableType, pe = e == null ? void 0 : e.start,
|
|
3258
|
+
var R = e == null ? void 0 : e.flush, K = e == null ? void 0 : e.readableType, pe = e == null ? void 0 : e.start, we = e == null ? void 0 : e.transform, Me = e == null ? void 0 : e.writableType;
|
|
3252
3259
|
return {
|
|
3253
3260
|
flush: R === void 0 ? void 0 : ji(R, e, i + " has member 'flush' that"),
|
|
3254
3261
|
readableType: K,
|
|
3255
3262
|
start: pe === void 0 ? void 0 : $i(pe, e, i + " has member 'start' that"),
|
|
3256
|
-
transform:
|
|
3263
|
+
transform: we === void 0 ? void 0 : Gi(we, e, i + " has member 'transform' that"),
|
|
3257
3264
|
writableType: Me
|
|
3258
3265
|
};
|
|
3259
3266
|
}
|
|
@@ -3275,12 +3282,12 @@ var Kr = { exports: {} };
|
|
|
3275
3282
|
var Cr = function() {
|
|
3276
3283
|
function e(i, R, K) {
|
|
3277
3284
|
i === void 0 && (i = {}), R === void 0 && (R = {}), K === void 0 && (K = {}), i === void 0 && (i = null);
|
|
3278
|
-
var pe = dr(R, "Second parameter"),
|
|
3285
|
+
var pe = dr(R, "Second parameter"), we = dr(K, "Third parameter"), Me = zi(i, "First parameter");
|
|
3279
3286
|
if (Me.readableType !== void 0)
|
|
3280
3287
|
throw new RangeError("Invalid readableType specified");
|
|
3281
3288
|
if (Me.writableType !== void 0)
|
|
3282
3289
|
throw new RangeError("Invalid writableType specified");
|
|
3283
|
-
var We = er(
|
|
3290
|
+
var We = er(we, 0), Qe = ur(we), Je = er(pe, 1), et = ur(pe), rt, dt = O(function(St) {
|
|
3284
3291
|
rt = St;
|
|
3285
3292
|
});
|
|
3286
3293
|
Vi(this, dt, Je, et, We, Qe), Xi(this, Me), Me.start !== void 0 ? rt(Me.start(this._transformStreamController)) : rt(void 0);
|
|
@@ -3306,11 +3313,11 @@ var Kr = { exports: {} };
|
|
|
3306
3313
|
Object.defineProperties(Cr.prototype, {
|
|
3307
3314
|
readable: { enumerable: !0 },
|
|
3308
3315
|
writable: { enumerable: !0 }
|
|
3309
|
-
}), typeof
|
|
3316
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(Cr.prototype, Ae.toStringTag, {
|
|
3310
3317
|
value: "TransformStream",
|
|
3311
3318
|
configurable: !0
|
|
3312
3319
|
});
|
|
3313
|
-
function Vi(e, i, R, K, pe,
|
|
3320
|
+
function Vi(e, i, R, K, pe, we) {
|
|
3314
3321
|
function Me() {
|
|
3315
3322
|
return i;
|
|
3316
3323
|
}
|
|
@@ -3330,7 +3337,7 @@ var Kr = { exports: {} };
|
|
|
3330
3337
|
function rt(dt) {
|
|
3331
3338
|
return Pr(e, dt), P(void 0);
|
|
3332
3339
|
}
|
|
3333
|
-
e._readable = Hr(Me, et, rt, pe,
|
|
3340
|
+
e._readable = Hr(Me, et, rt, pe, we), e._backpressure = void 0, e._backpressureChangePromise = void 0, e._backpressureChangePromise_resolve = void 0, xr(e, !0), e._transformStreamController = void 0;
|
|
3334
3341
|
}
|
|
3335
3342
|
function In(e) {
|
|
3336
3343
|
return !m(e) || !Object.prototype.hasOwnProperty.call(e, "_transformStreamController") ? !1 : e instanceof Cr;
|
|
@@ -3378,7 +3385,7 @@ var Kr = { exports: {} };
|
|
|
3378
3385
|
error: { enumerable: !0 },
|
|
3379
3386
|
terminate: { enumerable: !0 },
|
|
3380
3387
|
desiredSize: { enumerable: !0 }
|
|
3381
|
-
}), typeof
|
|
3388
|
+
}), typeof Ae.toStringTag == "symbol" && Object.defineProperty(or.prototype, Ae.toStringTag, {
|
|
3382
3389
|
value: "TransformStreamDefaultController",
|
|
3383
3390
|
configurable: !0
|
|
3384
3391
|
});
|
|
@@ -3389,17 +3396,17 @@ var Kr = { exports: {} };
|
|
|
3389
3396
|
i._controlledTransformStream = e, e._transformStreamController = i, i._transformAlgorithm = R, i._flushAlgorithm = K;
|
|
3390
3397
|
}
|
|
3391
3398
|
function Xi(e, i) {
|
|
3392
|
-
var R = Object.create(or.prototype), K = function(
|
|
3399
|
+
var R = Object.create(or.prototype), K = function(we) {
|
|
3393
3400
|
try {
|
|
3394
|
-
return Ln(R,
|
|
3401
|
+
return Ln(R, we), P(void 0);
|
|
3395
3402
|
} catch (Me) {
|
|
3396
3403
|
return v(Me);
|
|
3397
3404
|
}
|
|
3398
3405
|
}, pe = function() {
|
|
3399
3406
|
return P(void 0);
|
|
3400
3407
|
};
|
|
3401
|
-
i.transform !== void 0 && (K = function(
|
|
3402
|
-
return i.transform(
|
|
3408
|
+
i.transform !== void 0 && (K = function(we) {
|
|
3409
|
+
return i.transform(we, R);
|
|
3403
3410
|
}), i.flush !== void 0 && (pe = function() {
|
|
3404
3411
|
return i.flush(R);
|
|
3405
3412
|
}), Hi(e, R, K, pe);
|
|
@@ -3413,8 +3420,8 @@ var Kr = { exports: {} };
|
|
|
3413
3420
|
throw new TypeError("Readable side is not in a state that permits enqueue");
|
|
3414
3421
|
try {
|
|
3415
3422
|
Ar(K, i);
|
|
3416
|
-
} catch (
|
|
3417
|
-
throw Pr(R,
|
|
3423
|
+
} catch (we) {
|
|
3424
|
+
throw Pr(R, we), R._readable._storedError;
|
|
3418
3425
|
}
|
|
3419
3426
|
var pe = Ti(K);
|
|
3420
3427
|
pe !== R._backpressure && xr(R, !0);
|
|
@@ -3439,8 +3446,8 @@ var Kr = { exports: {} };
|
|
|
3439
3446
|
if (e._backpressure) {
|
|
3440
3447
|
var K = e._backpressureChangePromise;
|
|
3441
3448
|
return A(K, function() {
|
|
3442
|
-
var pe = e._writable,
|
|
3443
|
-
if (
|
|
3449
|
+
var pe = e._writable, we = pe._state;
|
|
3450
|
+
if (we === "erroring")
|
|
3444
3451
|
throw pe._storedError;
|
|
3445
3452
|
return Nn(R, i);
|
|
3446
3453
|
});
|
|
@@ -3476,8 +3483,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
3476
3483
|
__proto__: null,
|
|
3477
3484
|
default: Aa
|
|
3478
3485
|
}), Qt = /* @__PURE__ */ ta(wa);
|
|
3479
|
-
(function(De,
|
|
3480
|
-
(function(
|
|
3486
|
+
(function(De, _e) {
|
|
3487
|
+
(function(Ae, ze) {
|
|
3481
3488
|
De.exports = ze();
|
|
3482
3489
|
})(globalThis, () => (() => {
|
|
3483
3490
|
var Ie = [
|
|
@@ -3485,7 +3492,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
3485
3492
|
(D, m, n) => {
|
|
3486
3493
|
Object.defineProperty(m, "__esModule", {
|
|
3487
3494
|
value: !0
|
|
3488
|
-
}), m.VerbosityLevel = m.Util = m.UnknownErrorException = m.UnexpectedResponseException = m.UNSUPPORTED_FEATURES = m.TextRenderingMode = m.StreamType = m.RenderingIntentFlag = m.PermissionFlag = m.PasswordResponses = m.PasswordException = m.PageActionEventType = m.OPS = m.MissingPDFException = m.LINE_FACTOR = m.LINE_DESCENT_FACTOR = m.InvalidPDFException = m.ImageKind = m.IDENTITY_MATRIX = m.FormatError = m.FontType = m.FeatureTest = m.FONT_IDENTITY_MATRIX = m.DocumentActionEventType = m.CMapCompressionType = m.BaseException = m.AnnotationType = m.AnnotationStateModelType = m.AnnotationReviewState = m.AnnotationReplyType = m.AnnotationMode = m.AnnotationMarkedState = m.AnnotationFlag = m.AnnotationFieldFlag = m.AnnotationEditorType = m.AnnotationEditorPrefix = m.AnnotationEditorParamsType = m.AnnotationBorderStyleType = m.AnnotationActionEventType = m.AbortException = void 0, m.arrayByteLength = se, m.arraysToBytes = he, m.assert = Se, m.bytesToString = J, m.createPromiseCapability = Ne, m.createValidAbsoluteUrl = C, m.escapeString = Q, m.getModificationDate = xe, m.getVerbosityLevel = I, m.info = ee, m.isArrayBuffer = ke, m.isArrayEqual = ce, m.isAscii = G, m.objectFromMap = ve, m.objectSize = fe, m.setVerbosityLevel = U, m.shadow = S, m.string32 = le, m.stringToBytes = ie, m.stringToPDFString = H, m.stringToUTF16BEString = V, m.stringToUTF8String = oe, m.unreachable = ye, m.utf8StringToString =
|
|
3495
|
+
}), m.VerbosityLevel = m.Util = m.UnknownErrorException = m.UnexpectedResponseException = m.UNSUPPORTED_FEATURES = m.TextRenderingMode = m.StreamType = m.RenderingIntentFlag = m.PermissionFlag = m.PasswordResponses = m.PasswordException = m.PageActionEventType = m.OPS = m.MissingPDFException = m.LINE_FACTOR = m.LINE_DESCENT_FACTOR = m.InvalidPDFException = m.ImageKind = m.IDENTITY_MATRIX = m.FormatError = m.FontType = m.FeatureTest = m.FONT_IDENTITY_MATRIX = m.DocumentActionEventType = m.CMapCompressionType = m.BaseException = m.AnnotationType = m.AnnotationStateModelType = m.AnnotationReviewState = m.AnnotationReplyType = m.AnnotationMode = m.AnnotationMarkedState = m.AnnotationFlag = m.AnnotationFieldFlag = m.AnnotationEditorType = m.AnnotationEditorPrefix = m.AnnotationEditorParamsType = m.AnnotationBorderStyleType = m.AnnotationActionEventType = m.AbortException = void 0, m.arrayByteLength = se, m.arraysToBytes = he, m.assert = Se, m.bytesToString = J, m.createPromiseCapability = Ne, m.createValidAbsoluteUrl = C, m.escapeString = Q, m.getModificationDate = xe, m.getVerbosityLevel = I, m.info = ee, m.isArrayBuffer = ke, m.isArrayEqual = ce, m.isAscii = G, m.objectFromMap = ve, m.objectSize = fe, m.setVerbosityLevel = U, m.shadow = S, m.string32 = le, m.stringToBytes = ie, m.stringToPDFString = H, m.stringToUTF16BEString = V, m.stringToUTF8String = oe, m.unreachable = ye, m.utf8StringToString = Ce, m.warn = de, n(2);
|
|
3489
3496
|
const o = [1, 0, 0, 1, 0, 0];
|
|
3490
3497
|
m.IDENTITY_MATRIX = o;
|
|
3491
3498
|
const c = [1e-3, 0, 0, 1e-3, 0, 0];
|
|
@@ -4016,19 +4023,19 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
4016
4023
|
te[ae] = be;
|
|
4017
4024
|
return te;
|
|
4018
4025
|
}
|
|
4019
|
-
function
|
|
4026
|
+
function Ee() {
|
|
4020
4027
|
const ge = new Uint8Array(4);
|
|
4021
4028
|
return ge[0] = 1, new Uint32Array(ge.buffer, 0, 1)[0] === 1;
|
|
4022
4029
|
}
|
|
4023
|
-
function
|
|
4030
|
+
function Te() {
|
|
4024
4031
|
return !1;
|
|
4025
4032
|
}
|
|
4026
4033
|
class Oe {
|
|
4027
4034
|
static get isLittleEndian() {
|
|
4028
|
-
return S(this, "isLittleEndian",
|
|
4035
|
+
return S(this, "isLittleEndian", Ee());
|
|
4029
4036
|
}
|
|
4030
4037
|
static get isEvalSupported() {
|
|
4031
|
-
return S(this, "isEvalSupported",
|
|
4038
|
+
return S(this, "isEvalSupported", Te());
|
|
4032
4039
|
}
|
|
4033
4040
|
static get isOffscreenCanvasSupported() {
|
|
4034
4041
|
return S(this, "isOffscreenCanvasSupported", typeof OffscreenCanvas < "u");
|
|
@@ -4140,7 +4147,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
4140
4147
|
function oe(ge) {
|
|
4141
4148
|
return decodeURIComponent(escape(ge));
|
|
4142
4149
|
}
|
|
4143
|
-
function
|
|
4150
|
+
function Ce(ge) {
|
|
4144
4151
|
return unescape(encodeURIComponent(ge));
|
|
4145
4152
|
}
|
|
4146
4153
|
function ke(ge) {
|
|
@@ -5613,7 +5620,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
5613
5620
|
}, c);
|
|
5614
5621
|
},
|
|
5615
5622
|
(D, m, n) => {
|
|
5616
|
-
var o = n(37), c = n(6), T = n(7), x = n(25), O = n(17), P = n(10), v = n(42), y = n(23), L = n(120), r = n(22), l = n(24), A = n(105), h = n(48), w = n(80), F = n(40), p = n(101), b = n(45), u = n(65), t = n(121), a = n(122), f = n(124), g = n(29), E = n(125), W = n(126), k = n(127), ne = T.Object, q = T.Date, re = T.Error, Z = T.EvalError, z = T.RangeError, $ = T.ReferenceError, U = T.SyntaxError, I = T.TypeError, ee = T.URIError, de = T.PerformanceMark, ye = T.WebAssembly, Se = ye && ye.CompileError || re, Y = ye && ye.LinkError || re, C = ye && ye.RuntimeError || re, S = x("DOMException"), B = x("Set"), j = x("Map"), s = j.prototype, d = O(s.has), _ = O(s.get), M = O(s.set), N = O(B.prototype.add), X = x("Object", "keys"), J = O([].push), ie = O((!0).valueOf), se = O(1 .valueOf), he = O("".valueOf), le = O(q.prototype.getTime), fe = v("structuredClone"), ve = "DataCloneError",
|
|
5623
|
+
var o = n(37), c = n(6), T = n(7), x = n(25), O = n(17), P = n(10), v = n(42), y = n(23), L = n(120), r = n(22), l = n(24), A = n(105), h = n(48), w = n(80), F = n(40), p = n(101), b = n(45), u = n(65), t = n(121), a = n(122), f = n(124), g = n(29), E = n(125), W = n(126), k = n(127), ne = T.Object, q = T.Date, re = T.Error, Z = T.EvalError, z = T.RangeError, $ = T.ReferenceError, U = T.SyntaxError, I = T.TypeError, ee = T.URIError, de = T.PerformanceMark, ye = T.WebAssembly, Se = ye && ye.CompileError || re, Y = ye && ye.LinkError || re, C = ye && ye.RuntimeError || re, S = x("DOMException"), B = x("Set"), j = x("Map"), s = j.prototype, d = O(s.has), _ = O(s.get), M = O(s.set), N = O(B.prototype.add), X = x("Object", "keys"), J = O([].push), ie = O((!0).valueOf), se = O(1 .valueOf), he = O("".valueOf), le = O(q.prototype.getTime), fe = v("structuredClone"), ve = "DataCloneError", Ee = "Transferring", Te = function(ce) {
|
|
5617
5624
|
return !P(function() {
|
|
5618
5625
|
var xe = new T.Set([7]), Ne = ce(xe), ge = ce(ne(7));
|
|
5619
5626
|
return Ne == xe || !Ne.has(7) || typeof ge != "object" || ge != 7;
|
|
@@ -5631,9 +5638,9 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
5631
5638
|
var xe = ce(new T.AggregateError([1], fe, { cause: 3 }));
|
|
5632
5639
|
return xe.name != "AggregateError" || xe.errors[0] != 1 || xe.message != fe || xe.cause != 3;
|
|
5633
5640
|
});
|
|
5634
|
-
}, Fe = T.structuredClone, Pe = o || !Oe(Fe, re) || !Oe(Fe, S) || !Ue(Fe), H = !Fe &&
|
|
5641
|
+
}, Fe = T.structuredClone, Pe = o || !Oe(Fe, re) || !Oe(Fe, S) || !Ue(Fe), H = !Fe && Te(function(ce) {
|
|
5635
5642
|
return new de(fe, { detail: ce }).detail;
|
|
5636
|
-
}), Q =
|
|
5643
|
+
}), Q = Te(Fe) || H, G = function(ce) {
|
|
5637
5644
|
throw new S("Uncloneable type: " + ce, ve);
|
|
5638
5645
|
}, V = function(ce, xe) {
|
|
5639
5646
|
throw new S((xe || "Cloning") + " of " + ce + " cannot be properly polyfilled in this engine", ve);
|
|
@@ -5857,7 +5864,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
5857
5864
|
f && b(be, "stack", oe(ce.stack, xe));
|
|
5858
5865
|
}
|
|
5859
5866
|
return be;
|
|
5860
|
-
},
|
|
5867
|
+
}, Ce = Fe && !P(function() {
|
|
5861
5868
|
if (W && g > 92 || k && g > 94 || E && g > 97)
|
|
5862
5869
|
return !1;
|
|
5863
5870
|
var ce = new ArrayBuffer(8), xe = Fe(ce, { transfer: [ce] });
|
|
@@ -5870,7 +5877,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
5870
5877
|
J(Ne, h(Le));
|
|
5871
5878
|
});
|
|
5872
5879
|
var ge = 0, te = u(Ne), ae, be, Be, Ve, me, ue, Re;
|
|
5873
|
-
if (
|
|
5880
|
+
if (Ce)
|
|
5874
5881
|
for (Ve = Fe(Ne, { transfer: Ne }); ge < te; )
|
|
5875
5882
|
M(xe, Ne[ge], Ve[ge++]);
|
|
5876
5883
|
else
|
|
@@ -5879,7 +5886,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
5879
5886
|
throw new S("Duplicate transferable", ve);
|
|
5880
5887
|
switch (be = w(ae), be) {
|
|
5881
5888
|
case "ImageBitmap":
|
|
5882
|
-
Be = T.OffscreenCanvas, L(Be) || V(be,
|
|
5889
|
+
Be = T.OffscreenCanvas, L(Be) || V(be, Ee);
|
|
5883
5890
|
try {
|
|
5884
5891
|
ue = new Be(ae.width, ae.height), Re = ue.getContext("bitmaprenderer"), Re.transferFromImageBitmap(ae), me = ue.transferToImageBitmap();
|
|
5885
5892
|
} catch {
|
|
@@ -5887,7 +5894,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
5887
5894
|
break;
|
|
5888
5895
|
case "AudioData":
|
|
5889
5896
|
case "VideoFrame":
|
|
5890
|
-
(!y(ae.clone) || !y(ae.close)) && V(be,
|
|
5897
|
+
(!y(ae.clone) || !y(ae.close)) && V(be, Ee);
|
|
5891
5898
|
try {
|
|
5892
5899
|
me = ae.clone(), ae.close();
|
|
5893
5900
|
} catch {
|
|
@@ -5899,7 +5906,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
5899
5906
|
case "ReadableStream":
|
|
5900
5907
|
case "TransformStream":
|
|
5901
5908
|
case "WritableStream":
|
|
5902
|
-
V(be,
|
|
5909
|
+
V(be, Ee);
|
|
5903
5910
|
}
|
|
5904
5911
|
if (me === void 0)
|
|
5905
5912
|
throw new S("This object cannot be transferred: " + be, ve);
|
|
@@ -5909,7 +5916,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
5909
5916
|
c({
|
|
5910
5917
|
global: !0,
|
|
5911
5918
|
enumerable: !0,
|
|
5912
|
-
sham: !
|
|
5919
|
+
sham: !Ce,
|
|
5913
5920
|
forced: Pe
|
|
5914
5921
|
}, {
|
|
5915
5922
|
structuredClone: function(xe) {
|
|
@@ -6143,11 +6150,11 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6143
6150
|
};
|
|
6144
6151
|
oe = ke.port ? d.fromPort(ke) : new d(ke), H._worker = oe;
|
|
6145
6152
|
}
|
|
6146
|
-
const
|
|
6153
|
+
const Ce = H.docId;
|
|
6147
6154
|
return oe.promise.then(function() {
|
|
6148
6155
|
if (H.destroyed)
|
|
6149
6156
|
throw new Error("Loading aborted");
|
|
6150
|
-
const ke = ee(oe, G, V,
|
|
6157
|
+
const ke = ee(oe, G, V, Ce), ce = new Promise(function(xe) {
|
|
6151
6158
|
let Ne;
|
|
6152
6159
|
V ? Ne = new l.PDFDataTransportStream({
|
|
6153
6160
|
length: G.length,
|
|
@@ -6170,7 +6177,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6170
6177
|
let [Ne, ge] = xe;
|
|
6171
6178
|
if (H.destroyed)
|
|
6172
6179
|
throw new Error("Loading aborted");
|
|
6173
|
-
const te = new y.MessageHandler(
|
|
6180
|
+
const te = new y.MessageHandler(Ce, Ne, oe.port), ae = new ie(te, H, ge, G);
|
|
6174
6181
|
H._transport = ae, te.send("Ready", null);
|
|
6175
6182
|
});
|
|
6176
6183
|
}).catch(H._capability.reject), H;
|
|
@@ -6455,7 +6462,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6455
6462
|
var Q, G, V;
|
|
6456
6463
|
let {
|
|
6457
6464
|
canvasContext: oe,
|
|
6458
|
-
viewport:
|
|
6465
|
+
viewport: Ce,
|
|
6459
6466
|
intent: ke = "display",
|
|
6460
6467
|
annotationMode: ce = o.AnnotationMode.ENABLE,
|
|
6461
6468
|
transform: xe = null,
|
|
@@ -6486,11 +6493,11 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6486
6493
|
intentState: ue,
|
|
6487
6494
|
reason: He instanceof Error ? He : new Error(He)
|
|
6488
6495
|
})) : Ge.capability.resolve(), this._stats && (this._stats.timeEnd("Rendering"), this._stats.timeEnd("Overall"));
|
|
6489
|
-
}, Ge = new
|
|
6496
|
+
}, Ge = new Te({
|
|
6490
6497
|
callback: $e,
|
|
6491
6498
|
params: {
|
|
6492
6499
|
canvasContext: oe,
|
|
6493
|
-
viewport:
|
|
6500
|
+
viewport: Ce,
|
|
6494
6501
|
transform: xe,
|
|
6495
6502
|
imageLayer: Ne,
|
|
6496
6503
|
background: te
|
|
@@ -6526,22 +6533,22 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6526
6533
|
printAnnotationStorage: G = null
|
|
6527
6534
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
6528
6535
|
function V() {
|
|
6529
|
-
|
|
6536
|
+
Ce.operatorList.lastChunk && (Ce.opListReadCapability.resolve(Ce.operatorList), Ce.renderTasks.delete(ke));
|
|
6530
6537
|
}
|
|
6531
6538
|
const oe = this._transport.getRenderingIntent(H, Q, G, !0);
|
|
6532
|
-
let
|
|
6533
|
-
|
|
6539
|
+
let Ce = this._intentStates.get(oe.cacheKey);
|
|
6540
|
+
Ce || (Ce = /* @__PURE__ */ Object.create(null), this._intentStates.set(oe.cacheKey, Ce));
|
|
6534
6541
|
let ke;
|
|
6535
|
-
if (!
|
|
6542
|
+
if (!Ce.opListReadCapability) {
|
|
6536
6543
|
var ce;
|
|
6537
|
-
ke = /* @__PURE__ */ Object.create(null), ke.operatorListChanged = V,
|
|
6544
|
+
ke = /* @__PURE__ */ Object.create(null), ke.operatorListChanged = V, Ce.opListReadCapability = (0, o.createPromiseCapability)(), ((ce = Ce).renderTasks || (ce.renderTasks = /* @__PURE__ */ new Set())).add(ke), Ce.operatorList = {
|
|
6538
6545
|
fnArray: [],
|
|
6539
6546
|
argsArray: [],
|
|
6540
6547
|
lastChunk: !1,
|
|
6541
6548
|
separateAnnots: null
|
|
6542
6549
|
}, this._stats && this._stats.time("Page Request"), this._pumpOperatorList(oe);
|
|
6543
6550
|
}
|
|
6544
|
-
return
|
|
6551
|
+
return Ce.opListReadCapability.promise;
|
|
6545
6552
|
}
|
|
6546
6553
|
streamTextContent() {
|
|
6547
6554
|
let {
|
|
@@ -6567,7 +6574,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6567
6574
|
const Q = this.streamTextContent(H);
|
|
6568
6575
|
return new Promise(function(G, V) {
|
|
6569
6576
|
function oe() {
|
|
6570
|
-
|
|
6577
|
+
Ce.read().then(function(ce) {
|
|
6571
6578
|
let {
|
|
6572
6579
|
value: xe,
|
|
6573
6580
|
done: Ne
|
|
@@ -6579,7 +6586,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6579
6586
|
Object.assign(ke.styles, xe.styles), ke.items.push(...xe.items), oe();
|
|
6580
6587
|
}, V);
|
|
6581
6588
|
}
|
|
6582
|
-
const
|
|
6589
|
+
const Ce = Q.getReader(), ke = {
|
|
6583
6590
|
items: [],
|
|
6584
6591
|
styles: /* @__PURE__ */ Object.create(null)
|
|
6585
6592
|
};
|
|
@@ -6642,15 +6649,15 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6642
6649
|
cacheKey: G,
|
|
6643
6650
|
annotationStorageMap: V
|
|
6644
6651
|
} = H;
|
|
6645
|
-
const
|
|
6652
|
+
const Ce = this._transport.messageHandler.sendWithStream("GetOperatorList", {
|
|
6646
6653
|
pageIndex: this._pageIndex,
|
|
6647
6654
|
intent: Q,
|
|
6648
6655
|
cacheKey: G,
|
|
6649
6656
|
annotationStorage: V
|
|
6650
6657
|
}).getReader(), ke = this._intentStates.get(G);
|
|
6651
|
-
ke.streamReader =
|
|
6658
|
+
ke.streamReader = Ce;
|
|
6652
6659
|
const ce = () => {
|
|
6653
|
-
|
|
6660
|
+
Ce.read().then((xe) => {
|
|
6654
6661
|
let {
|
|
6655
6662
|
value: Ne,
|
|
6656
6663
|
done: ge
|
|
@@ -6702,8 +6709,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6702
6709
|
}
|
|
6703
6710
|
if (Q.streamReader.cancel(new o.AbortException(G.message)).catch(() => {
|
|
6704
6711
|
}), Q.streamReader = null, !this._transport.destroyed) {
|
|
6705
|
-
for (const [oe,
|
|
6706
|
-
if (
|
|
6712
|
+
for (const [oe, Ce] of this._intentStates)
|
|
6713
|
+
if (Ce === Q) {
|
|
6707
6714
|
this._intentStates.delete(oe);
|
|
6708
6715
|
break;
|
|
6709
6716
|
}
|
|
@@ -6824,16 +6831,16 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6824
6831
|
return;
|
|
6825
6832
|
}
|
|
6826
6833
|
try {
|
|
6827
|
-
|
|
6834
|
+
Ce();
|
|
6828
6835
|
} catch {
|
|
6829
6836
|
this._setupFakeWorker();
|
|
6830
6837
|
}
|
|
6831
6838
|
});
|
|
6832
|
-
const
|
|
6839
|
+
const Ce = () => {
|
|
6833
6840
|
const ke = new Uint8Array();
|
|
6834
6841
|
G.send("test", ke, [ke.buffer]);
|
|
6835
6842
|
};
|
|
6836
|
-
|
|
6843
|
+
Ce();
|
|
6837
6844
|
return;
|
|
6838
6845
|
} catch {
|
|
6839
6846
|
(0, o.info)("The worker has been disabled.");
|
|
@@ -6932,7 +6939,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6932
6939
|
return u(this, M);
|
|
6933
6940
|
}
|
|
6934
6941
|
getRenderingIntent(H) {
|
|
6935
|
-
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o.AnnotationMode.ENABLE, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, V = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, oe = o.RenderingIntentFlag.DISPLAY,
|
|
6942
|
+
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : o.AnnotationMode.ENABLE, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null, V = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1, oe = o.RenderingIntentFlag.DISPLAY, Ce = null;
|
|
6936
6943
|
switch (H) {
|
|
6937
6944
|
case "any":
|
|
6938
6945
|
oe = o.RenderingIntentFlag.ANY;
|
|
@@ -6955,15 +6962,15 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6955
6962
|
oe += o.RenderingIntentFlag.ANNOTATIONS_FORMS;
|
|
6956
6963
|
break;
|
|
6957
6964
|
case o.AnnotationMode.ENABLE_STORAGE:
|
|
6958
|
-
oe += o.RenderingIntentFlag.ANNOTATIONS_STORAGE,
|
|
6965
|
+
oe += o.RenderingIntentFlag.ANNOTATIONS_STORAGE, Ce = (oe & o.RenderingIntentFlag.PRINT && G instanceof c.PrintAnnotationStorage ? G : this.annotationStorage).serializable;
|
|
6959
6966
|
break;
|
|
6960
6967
|
default:
|
|
6961
6968
|
(0, o.warn)(`getRenderingIntent - invalid annotationMode: ${Q}`);
|
|
6962
6969
|
}
|
|
6963
6970
|
return V && (oe += o.RenderingIntentFlag.OPLIST), {
|
|
6964
6971
|
renderingIntent: oe,
|
|
6965
|
-
cacheKey: `${oe}_${c.AnnotationStorage.getHash(
|
|
6966
|
-
annotationStorageMap:
|
|
6972
|
+
cacheKey: `${oe}_${c.AnnotationStorage.getHash(Ce)}`,
|
|
6973
|
+
annotationStorageMap: Ce
|
|
6967
6974
|
};
|
|
6968
6975
|
}
|
|
6969
6976
|
destroy() {
|
|
@@ -6993,21 +7000,21 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
6993
7000
|
}, V.onPull = () => {
|
|
6994
7001
|
this._fullReader.read().then(function(oe) {
|
|
6995
7002
|
let {
|
|
6996
|
-
value:
|
|
7003
|
+
value: Ce,
|
|
6997
7004
|
done: ke
|
|
6998
7005
|
} = oe;
|
|
6999
7006
|
if (ke) {
|
|
7000
7007
|
V.close();
|
|
7001
7008
|
return;
|
|
7002
7009
|
}
|
|
7003
|
-
(0, o.assert)((0, o.isArrayBuffer)(
|
|
7010
|
+
(0, o.assert)((0, o.isArrayBuffer)(Ce), "GetReader - expected an ArrayBuffer."), V.enqueue(new Uint8Array(Ce), 1, [Ce]);
|
|
7004
7011
|
}).catch((oe) => {
|
|
7005
7012
|
V.error(oe);
|
|
7006
7013
|
});
|
|
7007
7014
|
}, V.onCancel = (oe) => {
|
|
7008
|
-
this._fullReader.cancel(oe), V.ready.catch((
|
|
7015
|
+
this._fullReader.cancel(oe), V.ready.catch((Ce) => {
|
|
7009
7016
|
if (!this.destroyed)
|
|
7010
|
-
throw
|
|
7017
|
+
throw Ce;
|
|
7011
7018
|
});
|
|
7012
7019
|
};
|
|
7013
7020
|
}), H.on("ReaderHeadersReady", (G) => {
|
|
@@ -7015,8 +7022,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7015
7022
|
return oe.headersReady.then(() => {
|
|
7016
7023
|
if (!oe.isStreamingSupported || !oe.isRangeSupported) {
|
|
7017
7024
|
if (this._lastProgress) {
|
|
7018
|
-
var
|
|
7019
|
-
(
|
|
7025
|
+
var Ce;
|
|
7026
|
+
(Ce = Q.onProgress) === null || Ce === void 0 || Ce.call(Q, this._lastProgress);
|
|
7020
7027
|
}
|
|
7021
7028
|
oe.onProgress = (ke) => {
|
|
7022
7029
|
var ce;
|
|
@@ -7040,21 +7047,21 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7040
7047
|
return;
|
|
7041
7048
|
}
|
|
7042
7049
|
V.onPull = () => {
|
|
7043
|
-
oe.read().then(function(
|
|
7050
|
+
oe.read().then(function(Ce) {
|
|
7044
7051
|
let {
|
|
7045
7052
|
value: ke,
|
|
7046
7053
|
done: ce
|
|
7047
|
-
} =
|
|
7054
|
+
} = Ce;
|
|
7048
7055
|
if (ce) {
|
|
7049
7056
|
V.close();
|
|
7050
7057
|
return;
|
|
7051
7058
|
}
|
|
7052
7059
|
(0, o.assert)((0, o.isArrayBuffer)(ke), "GetRangeReader - expected an ArrayBuffer."), V.enqueue(new Uint8Array(ke), 1, [ke]);
|
|
7053
|
-
}).catch((
|
|
7054
|
-
V.error(
|
|
7060
|
+
}).catch((Ce) => {
|
|
7061
|
+
V.error(Ce);
|
|
7055
7062
|
});
|
|
7056
|
-
}, V.onCancel = (
|
|
7057
|
-
oe.cancel(
|
|
7063
|
+
}, V.onCancel = (Ce) => {
|
|
7064
|
+
oe.cancel(Ce), V.ready.catch((ke) => {
|
|
7058
7065
|
if (!this.destroyed)
|
|
7059
7066
|
throw ke;
|
|
7060
7067
|
});
|
|
@@ -7113,9 +7120,9 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7113
7120
|
u(this, N).get(G.pageIndex)._startRenderPage(G.transparency, G.cacheKey);
|
|
7114
7121
|
}), H.on("commonobj", (G) => {
|
|
7115
7122
|
var V;
|
|
7116
|
-
let [oe,
|
|
7123
|
+
let [oe, Ce, ke] = G;
|
|
7117
7124
|
if (!this.destroyed && !this.commonObjs.has(oe))
|
|
7118
|
-
switch (
|
|
7125
|
+
switch (Ce) {
|
|
7119
7126
|
case "Font":
|
|
7120
7127
|
const ce = this._params;
|
|
7121
7128
|
if ("error" in ke) {
|
|
@@ -7147,15 +7154,15 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7147
7154
|
this.commonObjs.resolve(oe, ke);
|
|
7148
7155
|
break;
|
|
7149
7156
|
default:
|
|
7150
|
-
throw new Error(`Got unknown common object type ${
|
|
7157
|
+
throw new Error(`Got unknown common object type ${Ce}`);
|
|
7151
7158
|
}
|
|
7152
7159
|
}), H.on("obj", (G) => {
|
|
7153
|
-
let [V, oe,
|
|
7160
|
+
let [V, oe, Ce, ke] = G;
|
|
7154
7161
|
if (this.destroyed)
|
|
7155
7162
|
return;
|
|
7156
7163
|
const ce = u(this, N).get(oe);
|
|
7157
7164
|
if (!ce.objs.has(V))
|
|
7158
|
-
switch (
|
|
7165
|
+
switch (Ce) {
|
|
7159
7166
|
case "Image":
|
|
7160
7167
|
ce.objs.resolve(V, ke);
|
|
7161
7168
|
const Ne = 8e6;
|
|
@@ -7179,7 +7186,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7179
7186
|
ce.objs.resolve(V, ke);
|
|
7180
7187
|
break;
|
|
7181
7188
|
default:
|
|
7182
|
-
throw new Error(`Got unknown object type ${
|
|
7189
|
+
throw new Error(`Got unknown object type ${Ce}`);
|
|
7183
7190
|
}
|
|
7184
7191
|
}), H.on("DocProgress", (G) => {
|
|
7185
7192
|
var V;
|
|
@@ -7215,8 +7222,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7215
7222
|
}).then((oe) => {
|
|
7216
7223
|
if (this.destroyed)
|
|
7217
7224
|
throw new Error("Transport destroyed");
|
|
7218
|
-
const
|
|
7219
|
-
return u(this, N).set(Q,
|
|
7225
|
+
const Ce = new C(Q, oe, this, this._params.ownerDocument, this._params.pdfBug);
|
|
7226
|
+
return u(this, N).set(Q, Ce), Ce;
|
|
7220
7227
|
});
|
|
7221
7228
|
return u(this, X).set(Q, V), V;
|
|
7222
7229
|
}
|
|
@@ -7374,7 +7381,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7374
7381
|
});
|
|
7375
7382
|
}
|
|
7376
7383
|
var ve = /* @__PURE__ */ new WeakMap();
|
|
7377
|
-
class
|
|
7384
|
+
class Ee {
|
|
7378
7385
|
constructor(H) {
|
|
7379
7386
|
F(this, ve, {
|
|
7380
7387
|
writable: !0,
|
|
@@ -7399,15 +7406,15 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7399
7406
|
return H.form || H.canvas && (Q == null ? void 0 : Q.size) > 0;
|
|
7400
7407
|
}
|
|
7401
7408
|
}
|
|
7402
|
-
m.RenderTask =
|
|
7403
|
-
class
|
|
7409
|
+
m.RenderTask = Ee;
|
|
7410
|
+
class Te {
|
|
7404
7411
|
constructor(H) {
|
|
7405
7412
|
let {
|
|
7406
7413
|
callback: Q,
|
|
7407
7414
|
params: G,
|
|
7408
7415
|
objs: V,
|
|
7409
7416
|
commonObjs: oe,
|
|
7410
|
-
annotationCanvasMap:
|
|
7417
|
+
annotationCanvasMap: Ce,
|
|
7411
7418
|
operatorList: ke,
|
|
7412
7419
|
pageIndex: ce,
|
|
7413
7420
|
canvasFactory: xe,
|
|
@@ -7415,7 +7422,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7415
7422
|
pdfBug: ge = !1,
|
|
7416
7423
|
pageColors: te = null
|
|
7417
7424
|
} = H;
|
|
7418
|
-
this.callback = Q, this.params = G, this.objs = V, this.commonObjs = oe, this.annotationCanvasMap =
|
|
7425
|
+
this.callback = Q, this.params = G, this.objs = V, this.commonObjs = oe, this.annotationCanvasMap = Ce, this.operatorListIdx = null, this.operatorList = ke, this._pageIndex = ce, this.canvasFactory = xe, this._pdfBug = ge, this.pageColors = te, this.running = !1, this.graphicsReadyCallback = null, this.graphicsReady = !1, this._useRequestAnimationFrame = Ne === !0 && typeof window < "u", this.cancelled = !1, this.capability = (0, o.createPromiseCapability)(), this.task = new Ee(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 = G.canvasContext.canvas;
|
|
7419
7426
|
}
|
|
7420
7427
|
get completed() {
|
|
7421
7428
|
return this.capability.promise.catch(function() {
|
|
@@ -7430,28 +7437,28 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7430
7437
|
if (this.cancelled)
|
|
7431
7438
|
return;
|
|
7432
7439
|
if (this._canvas) {
|
|
7433
|
-
if (g(
|
|
7440
|
+
if (g(Te, Te, Oe).has(this._canvas))
|
|
7434
7441
|
throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");
|
|
7435
|
-
g(
|
|
7442
|
+
g(Te, Te, Oe).add(this._canvas);
|
|
7436
7443
|
}
|
|
7437
7444
|
this._pdfBug && (Q = globalThis.StepperManager) !== null && Q !== void 0 && Q.enabled && (this.stepper = globalThis.StepperManager.create(this._pageIndex), this.stepper.init(this.operatorList), this.stepper.nextBreakPoint = this.stepper.getNextBreakPoint());
|
|
7438
7445
|
const {
|
|
7439
7446
|
canvasContext: oe,
|
|
7440
|
-
viewport:
|
|
7447
|
+
viewport: Ce,
|
|
7441
7448
|
transform: ke,
|
|
7442
7449
|
imageLayer: ce,
|
|
7443
7450
|
background: xe
|
|
7444
7451
|
} = this.params;
|
|
7445
7452
|
this.gfx = new O.CanvasGraphics(oe, this.commonObjs, this.objs, this.canvasFactory, ce, V, this.annotationCanvasMap, this.pageColors), this.gfx.beginDrawing({
|
|
7446
7453
|
transform: ke,
|
|
7447
|
-
viewport:
|
|
7454
|
+
viewport: Ce,
|
|
7448
7455
|
transparency: G,
|
|
7449
7456
|
background: xe
|
|
7450
7457
|
}), this.operatorListIdx = 0, this.graphicsReady = !0, this.graphicsReadyCallback && this.graphicsReadyCallback();
|
|
7451
7458
|
}
|
|
7452
7459
|
cancel() {
|
|
7453
7460
|
let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
7454
|
-
this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(
|
|
7461
|
+
this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(Te, Te, Oe).delete(this._canvas), this.callback(H || new T.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex + 1}`, "canvas"));
|
|
7455
7462
|
}
|
|
7456
7463
|
operatorListChanged() {
|
|
7457
7464
|
if (!this.graphicsReady) {
|
|
@@ -7469,7 +7476,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7469
7476
|
}) : Promise.resolve().then(this._nextBound).catch(this._cancelBound);
|
|
7470
7477
|
}
|
|
7471
7478
|
async _next() {
|
|
7472
|
-
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(), this._canvas && g(
|
|
7479
|
+
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(), this._canvas && g(Te, Te, Oe).delete(this._canvas), this.callback())));
|
|
7473
7480
|
}
|
|
7474
7481
|
}
|
|
7475
7482
|
var Oe = {
|
|
@@ -7869,8 +7876,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7869
7876
|
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
7870
7877
|
}
|
|
7871
7878
|
function y(G, V, oe) {
|
|
7872
|
-
var
|
|
7873
|
-
return L(G,
|
|
7879
|
+
var Ce = l(G, V, "set");
|
|
7880
|
+
return L(G, Ce, oe), oe;
|
|
7874
7881
|
}
|
|
7875
7882
|
function L(G, V, oe) {
|
|
7876
7883
|
if (V.set)
|
|
@@ -7894,8 +7901,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7894
7901
|
return V.get ? V.get.call(G) : V.value;
|
|
7895
7902
|
}
|
|
7896
7903
|
function h(G, V, oe) {
|
|
7897
|
-
for (const
|
|
7898
|
-
V.addEventListener(
|
|
7904
|
+
for (const Ce of oe)
|
|
7905
|
+
V.addEventListener(Ce, G[Ce].bind(G));
|
|
7899
7906
|
}
|
|
7900
7907
|
function w(G) {
|
|
7901
7908
|
return Math.round(Math.min(255, Math.max(1, 255 * G))).toString(16).padStart(2, "0");
|
|
@@ -7934,7 +7941,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7934
7941
|
add(V) {
|
|
7935
7942
|
let {
|
|
7936
7943
|
cmd: oe,
|
|
7937
|
-
undo:
|
|
7944
|
+
undo: Ce,
|
|
7938
7945
|
mustExec: ke,
|
|
7939
7946
|
type: ce = NaN,
|
|
7940
7947
|
overwriteIfSameType: xe = !1,
|
|
@@ -7944,7 +7951,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7944
7951
|
return;
|
|
7945
7952
|
const ge = {
|
|
7946
7953
|
cmd: oe,
|
|
7947
|
-
undo:
|
|
7954
|
+
undo: Ce,
|
|
7948
7955
|
type: ce
|
|
7949
7956
|
};
|
|
7950
7957
|
if (r(this, a) === -1) {
|
|
@@ -7980,8 +7987,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7980
7987
|
constructor(V) {
|
|
7981
7988
|
x(this, g), this.buffer = [], this.callbacks = /* @__PURE__ */ new Map(), this.allKeys = /* @__PURE__ */ new Set();
|
|
7982
7989
|
const oe = E.platform.isMac;
|
|
7983
|
-
for (const [
|
|
7984
|
-
for (const ce of
|
|
7990
|
+
for (const [Ce, ke] of V)
|
|
7991
|
+
for (const ce of Ce) {
|
|
7985
7992
|
const xe = ce.startsWith("mac+");
|
|
7986
7993
|
oe && xe ? (this.callbacks.set(ce.slice(4), ke), this.allKeys.add(ce.split("+").at(-1))) : !oe && !xe && (this.callbacks.set(ce, ke), this.allKeys.add(ce.split("+").at(-1)));
|
|
7987
7994
|
}
|
|
@@ -7996,8 +8003,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
7996
8003
|
exec(V, oe) {
|
|
7997
8004
|
if (!this.allKeys.has(oe.key))
|
|
7998
8005
|
return;
|
|
7999
|
-
const
|
|
8000
|
-
!
|
|
8006
|
+
const Ce = this.callbacks.get(O(this, g, W).call(this, oe));
|
|
8007
|
+
!Ce || (Ce.bind(V)(), oe.stopPropagation(), oe.preventDefault());
|
|
8001
8008
|
}
|
|
8002
8009
|
}
|
|
8003
8010
|
m.KeyboardManager = E;
|
|
@@ -8036,9 +8043,9 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8036
8043
|
const oe = (0, c.getRGB)(V);
|
|
8037
8044
|
if (!window.matchMedia("(forced-colors: active)").matches)
|
|
8038
8045
|
return oe;
|
|
8039
|
-
for (const [
|
|
8046
|
+
for (const [Ce, ke] of this._colors)
|
|
8040
8047
|
if (ke.every((ce, xe) => ce === oe[xe]))
|
|
8041
|
-
return q._colorsMapping.get(
|
|
8048
|
+
return q._colorsMapping.get(Ce);
|
|
8042
8049
|
return oe;
|
|
8043
8050
|
}
|
|
8044
8051
|
getHexCode(V) {
|
|
@@ -8111,7 +8118,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8111
8118
|
}), y(this, d, V), y(this, de, oe), r(this, de)._on("editingaction", r(this, B)), r(this, de)._on("pagechanging", r(this, j));
|
|
8112
8119
|
}
|
|
8113
8120
|
destroy() {
|
|
8114
|
-
O(this, M,
|
|
8121
|
+
O(this, M, Ee).call(this), r(this, de)._off("editingaction", r(this, B)), r(this, de)._off("pagechanging", r(this, j));
|
|
8115
8122
|
for (const V of r(this, z).values())
|
|
8116
8123
|
V.destroy();
|
|
8117
8124
|
r(this, z).clear(), r(this, Z).clear(), y(this, re, null), r(this, C).clear(), r(this, $).destroy(), r(this, U).destroy();
|
|
@@ -8133,14 +8140,14 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8133
8140
|
["undo", "redo", "cut", "copy", "paste", "delete", "selectAll"].includes(V.name) && this[V.name]();
|
|
8134
8141
|
}
|
|
8135
8142
|
setEditingState(V) {
|
|
8136
|
-
V ? (O(this, _, ve).call(this), O(this, N,
|
|
8143
|
+
V ? (O(this, _, ve).call(this), O(this, N, Te).call(this, {
|
|
8137
8144
|
isEditing: r(this, Y) !== o.AnnotationEditorType.NONE,
|
|
8138
8145
|
isEmpty: O(this, he, H).call(this),
|
|
8139
8146
|
hasSomethingToUndo: r(this, U).hasSomethingToUndo(),
|
|
8140
8147
|
hasSomethingToRedo: r(this, U).hasSomethingToRedo(),
|
|
8141
8148
|
hasSelectedEditor: !1,
|
|
8142
8149
|
hasEmptyClipboard: r(this, $).isEmpty()
|
|
8143
|
-
})) : (O(this, M,
|
|
8150
|
+
})) : (O(this, M, Ee).call(this), O(this, N, Te).call(this, {
|
|
8144
8151
|
isEditing: !1
|
|
8145
8152
|
}));
|
|
8146
8153
|
}
|
|
@@ -8174,15 +8181,15 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8174
8181
|
});
|
|
8175
8182
|
}
|
|
8176
8183
|
updateParams(V, oe) {
|
|
8177
|
-
for (const
|
|
8178
|
-
|
|
8179
|
-
for (const
|
|
8180
|
-
|
|
8184
|
+
for (const Ce of r(this, C))
|
|
8185
|
+
Ce.updateParams(V, oe);
|
|
8186
|
+
for (const Ce of r(this, ee))
|
|
8187
|
+
Ce.updateDefaultParams(V, oe);
|
|
8181
8188
|
}
|
|
8182
8189
|
getEditors(V) {
|
|
8183
8190
|
const oe = [];
|
|
8184
|
-
for (const
|
|
8185
|
-
|
|
8191
|
+
for (const Ce of r(this, Z).values())
|
|
8192
|
+
Ce.pageIndex === V && oe.push(Ce);
|
|
8186
8193
|
return oe;
|
|
8187
8194
|
}
|
|
8188
8195
|
getEditor(V) {
|
|
@@ -8199,19 +8206,19 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8199
8206
|
}
|
|
8200
8207
|
toggleSelected(V) {
|
|
8201
8208
|
if (r(this, C).has(V)) {
|
|
8202
|
-
r(this, C).delete(V), V.unselect(), O(this, N,
|
|
8209
|
+
r(this, C).delete(V), V.unselect(), O(this, N, Te).call(this, {
|
|
8203
8210
|
hasSelectedEditor: this.hasSelection
|
|
8204
8211
|
});
|
|
8205
8212
|
return;
|
|
8206
8213
|
}
|
|
8207
|
-
r(this, C).add(V), V.select(), O(this, X, Oe).call(this, V.propertiesToUpdate), O(this, N,
|
|
8214
|
+
r(this, C).add(V), V.select(), O(this, X, Oe).call(this, V.propertiesToUpdate), O(this, N, Te).call(this, {
|
|
8208
8215
|
hasSelectedEditor: !0
|
|
8209
8216
|
});
|
|
8210
8217
|
}
|
|
8211
8218
|
setSelected(V) {
|
|
8212
8219
|
for (const oe of r(this, C))
|
|
8213
8220
|
oe !== V && oe.unselect();
|
|
8214
|
-
r(this, C).clear(), r(this, C).add(V), V.select(), O(this, X, Oe).call(this, V.propertiesToUpdate), O(this, N,
|
|
8221
|
+
r(this, C).clear(), r(this, C).add(V), V.select(), O(this, X, Oe).call(this, V.propertiesToUpdate), O(this, N, Te).call(this, {
|
|
8215
8222
|
hasSelectedEditor: !0
|
|
8216
8223
|
});
|
|
8217
8224
|
}
|
|
@@ -8219,7 +8226,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8219
8226
|
return r(this, C).has(V);
|
|
8220
8227
|
}
|
|
8221
8228
|
unselect(V) {
|
|
8222
|
-
V.unselect(), r(this, C).delete(V), O(this, N,
|
|
8229
|
+
V.unselect(), r(this, C).delete(V), O(this, N, Te).call(this, {
|
|
8223
8230
|
hasSelectedEditor: this.hasSelection
|
|
8224
8231
|
});
|
|
8225
8232
|
}
|
|
@@ -8227,21 +8234,21 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8227
8234
|
return r(this, C).size !== 0;
|
|
8228
8235
|
}
|
|
8229
8236
|
undo() {
|
|
8230
|
-
r(this, U).undo(), O(this, N,
|
|
8237
|
+
r(this, U).undo(), O(this, N, Te).call(this, {
|
|
8231
8238
|
hasSomethingToUndo: r(this, U).hasSomethingToUndo(),
|
|
8232
8239
|
hasSomethingToRedo: !0,
|
|
8233
8240
|
isEmpty: O(this, he, H).call(this)
|
|
8234
8241
|
});
|
|
8235
8242
|
}
|
|
8236
8243
|
redo() {
|
|
8237
|
-
r(this, U).redo(), O(this, N,
|
|
8244
|
+
r(this, U).redo(), O(this, N, Te).call(this, {
|
|
8238
8245
|
hasSomethingToUndo: !0,
|
|
8239
8246
|
hasSomethingToRedo: r(this, U).hasSomethingToRedo(),
|
|
8240
8247
|
isEmpty: O(this, he, H).call(this)
|
|
8241
8248
|
});
|
|
8242
8249
|
}
|
|
8243
8250
|
addCommands(V) {
|
|
8244
|
-
r(this, U).add(V), O(this, N,
|
|
8251
|
+
r(this, U).add(V), O(this, N, Te).call(this, {
|
|
8245
8252
|
hasSomethingToUndo: !0,
|
|
8246
8253
|
hasSomethingToRedo: !1,
|
|
8247
8254
|
isEmpty: O(this, he, H).call(this)
|
|
@@ -8253,13 +8260,13 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8253
8260
|
const V = [...r(this, C)], oe = () => {
|
|
8254
8261
|
for (const ke of V)
|
|
8255
8262
|
ke.remove();
|
|
8256
|
-
},
|
|
8263
|
+
}, Ce = () => {
|
|
8257
8264
|
for (const ke of V)
|
|
8258
8265
|
O(this, se, Pe).call(this, ke);
|
|
8259
8266
|
};
|
|
8260
8267
|
this.addCommands({
|
|
8261
8268
|
cmd: oe,
|
|
8262
|
-
undo:
|
|
8269
|
+
undo: Ce,
|
|
8263
8270
|
mustExec: !0
|
|
8264
8271
|
});
|
|
8265
8272
|
}
|
|
@@ -8270,7 +8277,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8270
8277
|
oe.isEmpty() || V.push(oe);
|
|
8271
8278
|
if (V.length === 0)
|
|
8272
8279
|
return;
|
|
8273
|
-
r(this, $).copy(V), O(this, N,
|
|
8280
|
+
r(this, $).copy(V), O(this, N, Te).call(this, {
|
|
8274
8281
|
hasEmptyClipboard: !1
|
|
8275
8282
|
});
|
|
8276
8283
|
}
|
|
@@ -8282,7 +8289,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8282
8289
|
if (r(this, $).isEmpty())
|
|
8283
8290
|
return;
|
|
8284
8291
|
this.unselectAll();
|
|
8285
|
-
const V = r(this, z).get(r(this, I)), oe = r(this, $).paste().map((ce) => V.deserialize(ce)),
|
|
8292
|
+
const V = r(this, z).get(r(this, I)), oe = r(this, $).paste().map((ce) => V.deserialize(ce)), Ce = () => {
|
|
8286
8293
|
for (const ce of oe)
|
|
8287
8294
|
O(this, se, Pe).call(this, ce);
|
|
8288
8295
|
O(this, le, Q).call(this, oe);
|
|
@@ -8291,7 +8298,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8291
8298
|
ce.remove();
|
|
8292
8299
|
};
|
|
8293
8300
|
this.addCommands({
|
|
8294
|
-
cmd:
|
|
8301
|
+
cmd: Ce,
|
|
8295
8302
|
undo: ke,
|
|
8296
8303
|
mustExec: !0
|
|
8297
8304
|
});
|
|
@@ -8309,7 +8316,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8309
8316
|
if (O(this, le, Q).size !== 0) {
|
|
8310
8317
|
for (const V of r(this, C))
|
|
8311
8318
|
V.unselect();
|
|
8312
|
-
r(this, C).clear(), O(this, N,
|
|
8319
|
+
r(this, C).clear(), O(this, N, Te).call(this, {
|
|
8313
8320
|
hasSelectedEditor: !1
|
|
8314
8321
|
});
|
|
8315
8322
|
}
|
|
@@ -8328,13 +8335,13 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8328
8335
|
function ve() {
|
|
8329
8336
|
r(this, d).addEventListener("keydown", r(this, S));
|
|
8330
8337
|
}
|
|
8331
|
-
function
|
|
8338
|
+
function Ee() {
|
|
8332
8339
|
r(this, d).removeEventListener("keydown", r(this, S));
|
|
8333
8340
|
}
|
|
8334
|
-
function
|
|
8341
|
+
function Te(G) {
|
|
8335
8342
|
Object.entries(G).some((oe) => {
|
|
8336
|
-
let [
|
|
8337
|
-
return r(this, s)[
|
|
8343
|
+
let [Ce, ke] = oe;
|
|
8344
|
+
return r(this, s)[Ce] !== ke;
|
|
8338
8345
|
}) && r(this, de).dispatch("annotationeditorstateschanged", {
|
|
8339
8346
|
source: this,
|
|
8340
8347
|
details: Object.assign(r(this, s), G)
|
|
@@ -8376,7 +8383,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
8376
8383
|
r(this, C).clear();
|
|
8377
8384
|
for (const V of G)
|
|
8378
8385
|
V.isEmpty() || (r(this, C).add(V), V.select());
|
|
8379
|
-
O(this, N,
|
|
8386
|
+
O(this, N, Te).call(this, {
|
|
8380
8387
|
hasSelectedEditor: !0
|
|
8381
8388
|
});
|
|
8382
8389
|
}
|
|
@@ -9142,12 +9149,12 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9142
9149
|
function u(Y, C, S, B, j, s, d, _, M, N) {
|
|
9143
9150
|
const [X, J, ie, se, he, le] = (0, o.getCurrentTransform)(Y);
|
|
9144
9151
|
if (J === 0 && ie === 0) {
|
|
9145
|
-
const
|
|
9146
|
-
return Y.setTransform(Math.sign(X), 0, 0, Math.sign(se),
|
|
9152
|
+
const Ee = d * X + he, Te = Math.round(Ee), Oe = _ * se + le, Ue = Math.round(Oe), Fe = (d + M) * X + he, Pe = Math.abs(Math.round(Fe) - Te) || 1, H = (_ + N) * se + le, Q = Math.abs(Math.round(H) - Ue) || 1;
|
|
9153
|
+
return Y.setTransform(Math.sign(X), 0, 0, Math.sign(se), Te, Ue), Y.drawImage(C, S, B, j, s, 0, 0, Pe, Q), Y.setTransform(X, J, ie, se, he, le), [Pe, Q];
|
|
9147
9154
|
}
|
|
9148
9155
|
if (X === 0 && se === 0) {
|
|
9149
|
-
const
|
|
9150
|
-
return Y.setTransform(0, Math.sign(J), Math.sign(ie), 0,
|
|
9156
|
+
const Ee = _ * ie + he, Te = Math.round(Ee), Oe = d * J + le, Ue = Math.round(Oe), Fe = (_ + N) * ie + he, Pe = Math.abs(Math.round(Fe) - Te) || 1, H = (d + M) * J + le, Q = Math.abs(Math.round(H) - Ue) || 1;
|
|
9157
|
+
return Y.setTransform(0, Math.sign(J), Math.sign(ie), 0, Te, Ue), Y.drawImage(C, S, B, j, s, 0, 0, Q, Pe), Y.setTransform(X, J, ie, se, he, le), [Q, Pe];
|
|
9151
9158
|
}
|
|
9152
9159
|
Y.drawImage(C, S, B, j, s, d, _, M, N);
|
|
9153
9160
|
const fe = Math.hypot(X, J), ve = Math.hypot(ie, se);
|
|
@@ -9165,9 +9172,9 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9165
9172
|
const X = C + 7 & -8;
|
|
9166
9173
|
let J = new Uint8Array(X * S), ie = 0;
|
|
9167
9174
|
for (const ve of Y.data) {
|
|
9168
|
-
let
|
|
9169
|
-
for (;
|
|
9170
|
-
J[ie++] = ve &
|
|
9175
|
+
let Ee = 128;
|
|
9176
|
+
for (; Ee > 0; )
|
|
9177
|
+
J[ie++] = ve & Ee ? 0 : 255, Ee >>= 1;
|
|
9171
9178
|
}
|
|
9172
9179
|
let se = 0;
|
|
9173
9180
|
for (ie = 0, J[ie] !== 0 && (d[0] = 1, ++se), M = 1; M < C; M++)
|
|
@@ -9187,13 +9194,13 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9187
9194
|
const he = new Int32Array([0, s, -1, 0, -s, 0, 0, 0, 1]), le = new Path2D();
|
|
9188
9195
|
for (_ = 0; se && _ <= S; _++) {
|
|
9189
9196
|
let ve = _ * s;
|
|
9190
|
-
const
|
|
9191
|
-
for (; ve <
|
|
9197
|
+
const Ee = ve + C;
|
|
9198
|
+
for (; ve < Ee && !d[ve]; )
|
|
9192
9199
|
ve++;
|
|
9193
|
-
if (ve ===
|
|
9200
|
+
if (ve === Ee)
|
|
9194
9201
|
continue;
|
|
9195
9202
|
le.moveTo(ve % s, _);
|
|
9196
|
-
const
|
|
9203
|
+
const Te = ve;
|
|
9197
9204
|
let Oe = d[ve];
|
|
9198
9205
|
do {
|
|
9199
9206
|
const Ue = he[Oe];
|
|
@@ -9202,7 +9209,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9202
9209
|
while (!d[ve]);
|
|
9203
9210
|
const Fe = d[ve];
|
|
9204
9211
|
Fe !== 5 && Fe !== 10 ? (Oe = Fe, d[ve] = 0) : (Oe = Fe & 51 * Oe >> 4, d[ve] &= Oe >> 2 | Oe << 2), le.lineTo(ve % s, ve / s | 0), d[ve] || --se;
|
|
9205
|
-
} while (
|
|
9212
|
+
} while (Te !== ve);
|
|
9206
9213
|
--_;
|
|
9207
9214
|
}
|
|
9208
9215
|
return J = null, d = null, function(ve) {
|
|
@@ -9272,14 +9279,14 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9272
9279
|
const B = C.height, j = C.width, s = B % F, d = (B - s) / F, _ = s === 0 ? d : d + 1, M = Y.createImageData(j, F);
|
|
9273
9280
|
let N = 0, X;
|
|
9274
9281
|
const J = C.data, ie = M.data;
|
|
9275
|
-
let se, he, le, fe, ve,
|
|
9282
|
+
let se, he, le, fe, ve, Ee, Te, Oe;
|
|
9276
9283
|
if (S)
|
|
9277
9284
|
switch (S.length) {
|
|
9278
9285
|
case 1:
|
|
9279
|
-
ve = S[0],
|
|
9286
|
+
ve = S[0], Ee = S[0], Te = S[0], Oe = S[0];
|
|
9280
9287
|
break;
|
|
9281
9288
|
case 4:
|
|
9282
|
-
ve = S[0],
|
|
9289
|
+
ve = S[0], Ee = S[1], Te = S[2], Oe = S[3];
|
|
9283
9290
|
break;
|
|
9284
9291
|
}
|
|
9285
9292
|
if (C.kind === c.ImageKind.GRAYSCALE_1BPP) {
|
|
@@ -9289,11 +9296,11 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9289
9296
|
for (le = se < d ? F : s, X = 0, he = 0; he < le; he++) {
|
|
9290
9297
|
const V = Ue - N;
|
|
9291
9298
|
let oe = 0;
|
|
9292
|
-
const
|
|
9299
|
+
const Ce = V > H ? j : V * 8 - 7, ke = Ce & -8;
|
|
9293
9300
|
let ce = 0, xe = 0;
|
|
9294
9301
|
for (; oe < ke; oe += 8)
|
|
9295
9302
|
xe = J[N++], Fe[X++] = xe & 128 ? Q : G, Fe[X++] = xe & 64 ? Q : G, Fe[X++] = xe & 32 ? Q : G, Fe[X++] = xe & 16 ? Q : G, Fe[X++] = xe & 8 ? Q : G, Fe[X++] = xe & 4 ? Q : G, Fe[X++] = xe & 2 ? Q : G, Fe[X++] = xe & 1 ? Q : G;
|
|
9296
|
-
for (; oe <
|
|
9303
|
+
for (; oe < Ce; oe++)
|
|
9297
9304
|
ce === 0 && (xe = J[N++], ce = 128), Fe[X++] = xe & ce ? Q : G, ce >>= 1;
|
|
9298
9305
|
}
|
|
9299
9306
|
for (; X < Pe; )
|
|
@@ -9301,27 +9308,27 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9301
9308
|
Y.putImageData(M, 0, se * F);
|
|
9302
9309
|
}
|
|
9303
9310
|
} else if (C.kind === c.ImageKind.RGBA_32BPP) {
|
|
9304
|
-
const Ue = !!(ve ||
|
|
9311
|
+
const Ue = !!(ve || Ee || Te);
|
|
9305
9312
|
for (he = 0, fe = j * F * 4, se = 0; se < d; se++) {
|
|
9306
9313
|
if (ie.set(J.subarray(N, N + fe)), N += fe, Ue)
|
|
9307
9314
|
for (let Fe = 0; Fe < fe; Fe += 4)
|
|
9308
|
-
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]),
|
|
9315
|
+
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), Ee && (ie[Fe + 1] = Ee[ie[Fe + 1]]), Te && (ie[Fe + 2] = Te[ie[Fe + 2]]);
|
|
9309
9316
|
Y.putImageData(M, 0, he), he += F;
|
|
9310
9317
|
}
|
|
9311
9318
|
if (se < _) {
|
|
9312
9319
|
if (fe = j * s * 4, ie.set(J.subarray(N, N + fe)), Ue)
|
|
9313
9320
|
for (let Fe = 0; Fe < fe; Fe += 4)
|
|
9314
|
-
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]),
|
|
9321
|
+
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), Ee && (ie[Fe + 1] = Ee[ie[Fe + 1]]), Te && (ie[Fe + 2] = Te[ie[Fe + 2]]);
|
|
9315
9322
|
Y.putImageData(M, 0, he);
|
|
9316
9323
|
}
|
|
9317
9324
|
} else if (C.kind === c.ImageKind.RGB_24BPP) {
|
|
9318
|
-
const Ue = !!(ve ||
|
|
9325
|
+
const Ue = !!(ve || Ee || Te);
|
|
9319
9326
|
for (le = F, fe = j * le, se = 0; se < _; se++) {
|
|
9320
9327
|
for (se >= d && (le = s, fe = j * le), X = 0, he = fe; he--; )
|
|
9321
9328
|
ie[X++] = J[N++], ie[X++] = J[N++], ie[X++] = J[N++], ie[X++] = 255;
|
|
9322
9329
|
if (Ue)
|
|
9323
9330
|
for (let Fe = 0; Fe < X; Fe += 4)
|
|
9324
|
-
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]),
|
|
9331
|
+
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), Ee && (ie[Fe + 1] = Ee[ie[Fe + 1]]), Te && (ie[Fe + 2] = Te[ie[Fe + 2]]);
|
|
9325
9332
|
Y.putImageData(M, 0, se * F);
|
|
9326
9333
|
}
|
|
9327
9334
|
} else
|
|
@@ -9390,9 +9397,9 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9390
9397
|
let le;
|
|
9391
9398
|
j === "Luminosity" ? le = q : le = ne;
|
|
9392
9399
|
const ve = Math.min(B, Math.ceil(1048576 / S));
|
|
9393
|
-
for (let
|
|
9394
|
-
const
|
|
9395
|
-
J && k(Oe.data, ie, se, he), le(Oe.data, Ue.data, d), C.putImageData(Ue, _,
|
|
9400
|
+
for (let Ee = 0; Ee < B; Ee += ve) {
|
|
9401
|
+
const Te = Math.min(ve, B - Ee), Oe = Y.getImageData(_ - N, Ee + (M - X), S, Te), Ue = C.getImageData(_, Ee + M, S, Te);
|
|
9402
|
+
J && k(Oe.data, ie, se, he), le(Oe.data, Ue.data, d), C.putImageData(Ue, _, Ee + M);
|
|
9396
9403
|
}
|
|
9397
9404
|
}
|
|
9398
9405
|
function Z(Y, C, S, B) {
|
|
@@ -9432,9 +9439,9 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9432
9439
|
if (this.ctx.fillStyle = M, ie = this.ctx.fillStyle, J = typeof ie == "string" && /^#[0-9A-Fa-f]{6}$/.test(ie), N === "#000000" && X === "#ffffff" || N === X || !J)
|
|
9433
9440
|
this.foregroundColor = this.backgroundColor = null;
|
|
9434
9441
|
else {
|
|
9435
|
-
const [se, he, le] = (0, o.getRGB)(ie), fe = (
|
|
9436
|
-
this.selectColor = (
|
|
9437
|
-
const Ue = 0.2126 * fe(
|
|
9442
|
+
const [se, he, le] = (0, o.getRGB)(ie), fe = (Ee) => (Ee /= 255, Ee <= 0.03928 ? Ee / 12.92 : ((Ee + 0.055) / 1.055) ** 2.4), ve = Math.round(0.2126 * fe(se) + 0.7152 * fe(he) + 0.0722 * fe(le));
|
|
9443
|
+
this.selectColor = (Ee, Te, Oe) => {
|
|
9444
|
+
const Ue = 0.2126 * fe(Ee) + 0.7152 * fe(Te) + 0.0722 * fe(Oe);
|
|
9438
9445
|
return Math.round(Ue) === ve ? X : N;
|
|
9439
9446
|
};
|
|
9440
9447
|
}
|
|
@@ -9520,11 +9527,11 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9520
9527
|
X || (J = this.cachedCanvases.getCanvas("maskCanvas", B, j), g(J.context, C));
|
|
9521
9528
|
let ie = c.Util.transform(_, [1 / B, 0, 0, -1 / j, 0, 0]);
|
|
9522
9529
|
ie = c.Util.transform(ie, [1, 0, 0, 1, 0, -j]);
|
|
9523
|
-
const se = c.Util.applyTransform([0, 0], ie), he = c.Util.applyTransform([B, j], ie), le = c.Util.normalizeRect([se[0], se[1], he[0], he[1]]), fe = Math.round(le[2] - le[0]) || 1, ve = Math.round(le[3] - le[1]) || 1,
|
|
9524
|
-
|
|
9525
|
-
const Fe = c.Util.transform((0, o.getCurrentTransformInverse)(
|
|
9526
|
-
return
|
|
9527
|
-
canvas:
|
|
9530
|
+
const se = c.Util.applyTransform([0, 0], ie), he = c.Util.applyTransform([B, j], ie), le = c.Util.normalizeRect([se[0], se[1], he[0], he[1]]), fe = Math.round(le[2] - le[0]) || 1, ve = Math.round(le[3] - le[1]) || 1, Ee = this.cachedCanvases.getCanvas("fillCanvas", fe, ve), Te = Ee.context, Oe = Math.min(se[0], he[0]), Ue = Math.min(se[1], he[1]);
|
|
9531
|
+
Te.translate(-Oe, -Ue), Te.transform(...ie), X || (X = this._scaleImage(J.canvas, (0, o.getCurrentTransformInverse)(Te)), X = X.img, M && d && M.set(N, X)), Te.imageSmoothingEnabled = z((0, o.getCurrentTransform)(Te), C.interpolate), u(Te, X, 0, 0, X.width, X.height, 0, 0, B, j), Te.globalCompositeOperation = "source-in";
|
|
9532
|
+
const Fe = c.Util.transform((0, o.getCurrentTransformInverse)(Te), [1, 0, 0, 1, -Oe, -Ue]);
|
|
9533
|
+
return Te.fillStyle = d ? s.getPattern(S, this, Fe, T.PathType.FILL) : s, Te.fillRect(0, 0, B, j), M && !d && (this.cachedCanvases.delete("fillCanvas"), M.set(N, Ee.canvas)), {
|
|
9534
|
+
canvas: Ee.canvas,
|
|
9528
9535
|
offsetX: Math.round(Oe),
|
|
9529
9536
|
offsetY: Math.round(Ue)
|
|
9530
9537
|
};
|
|
@@ -9640,8 +9647,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9640
9647
|
switch (C[se] | 0) {
|
|
9641
9648
|
case c.OPS.rectangle:
|
|
9642
9649
|
d = S[he++], _ = S[he++];
|
|
9643
|
-
const fe = S[he++], ve = S[he++],
|
|
9644
|
-
j.moveTo(d, _), fe === 0 || ve === 0 ? j.lineTo(
|
|
9650
|
+
const fe = S[he++], ve = S[he++], Ee = d + fe, Te = _ + ve;
|
|
9651
|
+
j.moveTo(d, _), fe === 0 || ve === 0 ? j.lineTo(Ee, Te) : (j.lineTo(Ee, _), j.lineTo(Ee, Te), j.lineTo(d, Te)), J || s.updateRectMinMax(X, [d, _, Ee, Te]), j.closePath();
|
|
9645
9652
|
break;
|
|
9646
9653
|
case c.OPS.moveTo:
|
|
9647
9654
|
d = S[he++], _ = S[he++], j.moveTo(d, _), J || s.updatePathMinMax(X, d, _);
|
|
@@ -9804,14 +9811,14 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9804
9811
|
const Fe = S.fillColor.getPattern(s, this, (0, o.getCurrentTransformInverse)(s), T.PathType.FILL);
|
|
9805
9812
|
ve = (0, o.getCurrentTransform)(s), s.restore(), s.fillStyle = Fe;
|
|
9806
9813
|
}
|
|
9807
|
-
let
|
|
9808
|
-
const
|
|
9809
|
-
if (
|
|
9814
|
+
let Ee = S.lineWidth;
|
|
9815
|
+
const Te = S.textMatrixScale;
|
|
9816
|
+
if (Te === 0 || Ee === 0) {
|
|
9810
9817
|
const Fe = S.textRenderingMode & c.TextRenderingMode.FILL_STROKE_MASK;
|
|
9811
|
-
(Fe === c.TextRenderingMode.STROKE || Fe === c.TextRenderingMode.FILL_STROKE) && (
|
|
9818
|
+
(Fe === c.TextRenderingMode.STROKE || Fe === c.TextRenderingMode.FILL_STROKE) && (Ee = this.getSinglePixelWidth());
|
|
9812
9819
|
} else
|
|
9813
|
-
|
|
9814
|
-
d !== 1 && (s.scale(d, d),
|
|
9820
|
+
Ee /= Te;
|
|
9821
|
+
d !== 1 && (s.scale(d, d), Ee /= d), s.lineWidth = Ee;
|
|
9815
9822
|
let Oe = 0, Ue;
|
|
9816
9823
|
for (Ue = 0; Ue < J; ++Ue) {
|
|
9817
9824
|
const Fe = C[Ue];
|
|
@@ -9821,19 +9828,19 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9821
9828
|
}
|
|
9822
9829
|
let Pe = !1;
|
|
9823
9830
|
const H = (Fe.isSpace ? M : 0) + _, Q = Fe.fontChar, G = Fe.accent;
|
|
9824
|
-
let V, oe,
|
|
9831
|
+
let V, oe, Ce = Fe.width;
|
|
9825
9832
|
if (ie) {
|
|
9826
|
-
const ce = Fe.vmetric || he, xe = -(Fe.vmetric ? ce[1] :
|
|
9827
|
-
|
|
9833
|
+
const ce = Fe.vmetric || he, xe = -(Fe.vmetric ? ce[1] : Ce * 0.5) * le, Ne = ce[2] * le;
|
|
9834
|
+
Ce = ce ? -ce[0] : Ce, V = xe / d, oe = (Oe + Ne) / d;
|
|
9828
9835
|
} else
|
|
9829
9836
|
V = Oe / d, oe = 0;
|
|
9830
|
-
if (B.remeasure &&
|
|
9837
|
+
if (B.remeasure && Ce > 0) {
|
|
9831
9838
|
const ce = s.measureText(Q).width * 1e3 / j * d;
|
|
9832
|
-
if (
|
|
9833
|
-
const xe =
|
|
9839
|
+
if (Ce < ce && this.isFontSubpixelAAEnabled) {
|
|
9840
|
+
const xe = Ce / ce;
|
|
9834
9841
|
Pe = !0, s.save(), s.scale(xe, 1), V /= xe;
|
|
9835
9842
|
} else
|
|
9836
|
-
|
|
9843
|
+
Ce !== ce && (V += (Ce - ce) / 2e3 * j / d);
|
|
9837
9844
|
}
|
|
9838
9845
|
if (this.contentVisible && (Fe.isInFont || B.missingFile)) {
|
|
9839
9846
|
if (fe && !G)
|
|
@@ -9844,7 +9851,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9844
9851
|
}
|
|
9845
9852
|
}
|
|
9846
9853
|
let ke;
|
|
9847
|
-
ie ? ke =
|
|
9854
|
+
ie ? ke = Ce * le - H * N : ke = Ce * le + H * N, Oe += ke, Pe && s.restore();
|
|
9848
9855
|
}
|
|
9849
9856
|
ie ? S.y -= Oe : S.x += Oe * X, s.restore(), this.compose();
|
|
9850
9857
|
}
|
|
@@ -9857,12 +9864,12 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
9857
9864
|
ve = _ * le * s / 1e3, this.ctx.translate(ve, 0), B.x += ve * X;
|
|
9858
9865
|
continue;
|
|
9859
9866
|
}
|
|
9860
|
-
const
|
|
9861
|
-
if (!
|
|
9867
|
+
const Ee = (le.isSpace ? N : 0) + M, Te = j.charProcOperatorList[le.operatorListId];
|
|
9868
|
+
if (!Te) {
|
|
9862
9869
|
(0, c.warn)(`Type3 character "${le.operatorListId}" is not available.`);
|
|
9863
9870
|
continue;
|
|
9864
9871
|
}
|
|
9865
|
-
this.contentVisible && (this.processingType3 = le, this.save(), S.scale(s, s), S.transform(...J), this.executeOperatorList(
|
|
9872
|
+
this.contentVisible && (this.processingType3 = le, this.save(), S.scale(s, s), S.transform(...J), this.executeOperatorList(Te), this.restore()), fe = c.Util.applyTransform([le.width, 0], J)[0] * s + Ee, S.translate(fe, 0), B.x += fe * X;
|
|
9866
9873
|
}
|
|
9867
9874
|
S.restore(), this.processingType3 = null;
|
|
9868
9875
|
}
|
|
@@ -10297,10 +10304,10 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
10297
10304
|
}
|
|
10298
10305
|
let fe;
|
|
10299
10306
|
le < Z ? fe = 0 : le > I ? fe = 1 : fe = (Z - le) / (Z - I), J = re - (re - U) * fe, ie = ee - (ee - S) * fe, se = de - (de - B) * fe, he = ye - (ye - j) * fe;
|
|
10300
|
-
const ve = Math.round(Math.min(_, J)),
|
|
10301
|
-
let
|
|
10302
|
-
for (let Oe = ve; Oe <=
|
|
10303
|
-
fe = (_ - Oe) / (_ - J), fe < 0 ? fe = 0 : fe > 1 && (fe = 1), k[
|
|
10307
|
+
const ve = Math.round(Math.min(_, J)), Ee = Math.round(Math.max(_, J));
|
|
10308
|
+
let Te = ne * le + ve * 4;
|
|
10309
|
+
for (let Oe = ve; Oe <= Ee; Oe++)
|
|
10310
|
+
fe = (_ - Oe) / (_ - J), fe < 0 ? fe = 0 : fe > 1 && (fe = 1), k[Te++] = M - (M - ie) * fe | 0, k[Te++] = N - (N - se) * fe | 0, k[Te++] = X - (X - he) * fe | 0, k[Te++] = 255;
|
|
10304
10311
|
}
|
|
10305
10312
|
}
|
|
10306
10313
|
function L(F, p, b) {
|
|
@@ -12038,10 +12045,10 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12038
12045
|
p(this, U, ve).call(this, Re);
|
|
12039
12046
|
break;
|
|
12040
12047
|
case o.AnnotationEditorParamsType.INK_COLOR:
|
|
12041
|
-
p(this, I,
|
|
12048
|
+
p(this, I, Ee).call(this, Re);
|
|
12042
12049
|
break;
|
|
12043
12050
|
case o.AnnotationEditorParamsType.INK_OPACITY:
|
|
12044
|
-
p(this, ee,
|
|
12051
|
+
p(this, ee, Te).call(this, Re);
|
|
12045
12052
|
break;
|
|
12046
12053
|
}
|
|
12047
12054
|
}
|
|
@@ -12053,7 +12060,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12053
12060
|
return [[o.AnnotationEditorParamsType.INK_THICKNESS, this.thickness || fe._defaultThickness], [o.AnnotationEditorParamsType.INK_COLOR, this.color || fe._defaultColor || c.AnnotationEditor._defaultLineColor], [o.AnnotationEditorParamsType.INK_OPACITY, Math.round(100 * ((ue = this.opacity) !== null && ue !== void 0 ? ue : fe._defaultOpacity))]];
|
|
12054
12061
|
}
|
|
12055
12062
|
rebuild() {
|
|
12056
|
-
super.rebuild(), this.div !== null && (this.canvas || (p(this, j, V).call(this), p(this, s, oe).call(this)), this.isAttachedToDOM || (this.parent.add(this), p(this, d,
|
|
12063
|
+
super.rebuild(), this.div !== null && (this.canvas || (p(this, j, V).call(this), p(this, s, oe).call(this)), this.isAttachedToDOM || (this.parent.add(this), p(this, d, Ce).call(this)), p(this, he, Be).call(this));
|
|
12057
12064
|
}
|
|
12058
12065
|
remove() {
|
|
12059
12066
|
this.canvas !== null && (this.isEmpty() || this.commit(), this.canvas.width = this.canvas.height = 0, this.canvas.remove(), this.canvas = null, h(this, re).disconnect(), l(this, re, null), super.remove());
|
|
@@ -12099,7 +12106,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12099
12106
|
const [Le, $e, Ge, Ye] = p(this, de, Oe).call(this);
|
|
12100
12107
|
if (this.setAt(Le, $e, 0, 0), this.setDims(Ge, Ye), p(this, j, V).call(this), this.width) {
|
|
12101
12108
|
const [He, je] = this.parent.viewportBaseDimensions;
|
|
12102
|
-
this.setAt(ue * He, Re * je, this.width * He, this.height * je), l(this, ne, !0), p(this, d,
|
|
12109
|
+
this.setAt(ue * He, Re * je, this.width * He, this.height * je), l(this, ne, !0), p(this, d, Ce).call(this), this.setDims(this.width * He, this.height * je), p(this, S, Q).call(this), p(this, le, Ve).call(this), this.div.classList.add("disabled");
|
|
12103
12110
|
} else
|
|
12104
12111
|
this.div.classList.add("editing"), this.enableEditMode();
|
|
12105
12112
|
return p(this, s, oe).call(this), this.div;
|
|
@@ -12110,7 +12117,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12110
12117
|
return;
|
|
12111
12118
|
l(this, Z, Le), l(this, z, $e), this.canvas.style.visibility = "hidden", h(this, u) && Math.abs(h(this, u) - ue / Re) > 0.01 && (Re = Math.ceil(ue / h(this, u)), this.setDims(ue, Re));
|
|
12112
12119
|
const [Ge, Ye] = this.parent.viewportBaseDimensions;
|
|
12113
|
-
this.width = ue / Ge, this.height = Re / Ye, h(this, k) && p(this, _, ke).call(this, ue, Re), p(this, d,
|
|
12120
|
+
this.width = ue / Ge, this.height = Re / Ye, h(this, k) && p(this, _, ke).call(this, ue, Re), p(this, d, Ce).call(this), p(this, S, Q).call(this), this.canvas.style.visibility = "visible";
|
|
12114
12121
|
}
|
|
12115
12122
|
static deserialize(ue, Re) {
|
|
12116
12123
|
const Le = super.deserialize(ue, Re);
|
|
@@ -12165,7 +12172,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12165
12172
|
keepUndo: !0
|
|
12166
12173
|
});
|
|
12167
12174
|
}
|
|
12168
|
-
function
|
|
12175
|
+
function Ee(me) {
|
|
12169
12176
|
const ue = this.color;
|
|
12170
12177
|
this.parent.addCommands({
|
|
12171
12178
|
cmd: () => {
|
|
@@ -12180,7 +12187,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12180
12187
|
keepUndo: !0
|
|
12181
12188
|
});
|
|
12182
12189
|
}
|
|
12183
|
-
function
|
|
12190
|
+
function Te(me) {
|
|
12184
12191
|
me /= 100;
|
|
12185
12192
|
const ue = this.opacity;
|
|
12186
12193
|
this.parent.addCommands({
|
|
@@ -12219,7 +12226,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12219
12226
|
function Fe(me, ue) {
|
|
12220
12227
|
if (this.isEditing = !0, !h(this, ne)) {
|
|
12221
12228
|
var Re;
|
|
12222
|
-
l(this, ne, !0), p(this, d,
|
|
12229
|
+
l(this, ne, !0), p(this, d, Ce).call(this), this.thickness || (this.thickness = fe._defaultThickness), this.color || (this.color = fe._defaultColor || c.AnnotationEditor._defaultLineColor), (Re = this.opacity) !== null && Re !== void 0 || (this.opacity = fe._defaultOpacity);
|
|
12223
12230
|
}
|
|
12224
12231
|
this.currentPath.push([me, ue]), l(this, q, null), p(this, ye, Ue).call(this), this.ctx.beginPath(), this.ctx.moveTo(me, ue), l(this, $, () => {
|
|
12225
12232
|
!h(this, $) || (h(this, q) && (this.isEmpty() ? (this.ctx.setTransform(1, 0, 0, 1, 0, 0), this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height)) : p(this, S, Q).call(this), this.ctx.lineTo(...h(this, q)), l(this, q, null), this.ctx.stroke()), window.requestAnimationFrame(h(this, $)));
|
|
@@ -12282,7 +12289,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12282
12289
|
ue.width && ue.height && this.setDimensions(ue.width, ue.height);
|
|
12283
12290
|
})), h(this, re).observe(this.div);
|
|
12284
12291
|
}
|
|
12285
|
-
function
|
|
12292
|
+
function Ce() {
|
|
12286
12293
|
if (!h(this, ne))
|
|
12287
12294
|
return;
|
|
12288
12295
|
const [me, ue] = this.parent.viewportBaseDimensions;
|
|
@@ -12362,7 +12369,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12362
12369
|
const Le = Math.ceil(Re + h(this, a) * this.scaleFactor), $e = Math.ceil(Re + h(this, t) * this.scaleFactor), [Ge, Ye] = this.parent.viewportBaseDimensions;
|
|
12363
12370
|
this.width = Le / Ge, this.height = $e / Ye, l(this, u, Le / $e), p(this, le, Ve).call(this);
|
|
12364
12371
|
const He = this.translationX, je = this.translationY;
|
|
12365
|
-
this.translationX = -ue[0], this.translationY = -ue[1], p(this, d,
|
|
12372
|
+
this.translationX = -ue[0], this.translationY = -ue[1], p(this, d, Ce).call(this), p(this, S, Q).call(this), l(this, Z, Le), l(this, z, $e), this.setDims(Le, $e);
|
|
12366
12373
|
const Ze = me ? Re / this.scaleFactor / 2 : 0;
|
|
12367
12374
|
this.translate(He - this.translationX - Ze, je - this.translationY - Ze);
|
|
12368
12375
|
}
|
|
@@ -12613,7 +12620,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12613
12620
|
height: J
|
|
12614
12621
|
} = l(d.rect), [ie, se, he, le] = M.viewBox, fe = he - ie, ve = le - se;
|
|
12615
12622
|
N.setAttribute("data-annotation-id", d.id);
|
|
12616
|
-
const
|
|
12623
|
+
const Ee = o.Util.normalizeRect([d.rect[0], _.view[3] - d.rect[1] + _.view[1], d.rect[2], _.view[3] - d.rect[3] + _.view[1]]);
|
|
12617
12624
|
if (!s && d.borderStyle.width > 0) {
|
|
12618
12625
|
N.style.borderWidth = `${d.borderStyle.width}px`;
|
|
12619
12626
|
const Oe = d.borderStyle.horizontalCornerRadius, Ue = d.borderStyle.verticalCornerRadius;
|
|
@@ -12644,11 +12651,11 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12644
12651
|
const Fe = d.borderColor || null;
|
|
12645
12652
|
Fe ? N.style.borderColor = o.Util.makeHexColor(Fe[0] | 0, Fe[1] | 0, Fe[2] | 0) : N.style.borderWidth = 0;
|
|
12646
12653
|
}
|
|
12647
|
-
N.style.left = `${100 * (
|
|
12654
|
+
N.style.left = `${100 * (Ee[0] - ie) / fe}%`, N.style.top = `${100 * (Ee[1] - se) / ve}%`;
|
|
12648
12655
|
const {
|
|
12649
|
-
rotation:
|
|
12656
|
+
rotation: Te
|
|
12650
12657
|
} = d;
|
|
12651
|
-
return d.hasOwnCanvas ||
|
|
12658
|
+
return d.hasOwnCanvas || Te === 0 ? (N.style.width = `${100 * X / fe}%`, N.style.height = `${100 * J / ve}%`) : this.setRotation(Te, N), N;
|
|
12652
12659
|
}
|
|
12653
12660
|
setRotation(s) {
|
|
12654
12661
|
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.container;
|
|
@@ -12891,9 +12898,9 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12891
12898
|
for (const fe of M) {
|
|
12892
12899
|
const ve = this._fieldObjects[fe] || [];
|
|
12893
12900
|
for (const {
|
|
12894
|
-
id:
|
|
12901
|
+
id: Ee
|
|
12895
12902
|
} of ve)
|
|
12896
|
-
le.add(
|
|
12903
|
+
le.add(Ee);
|
|
12897
12904
|
}
|
|
12898
12905
|
for (const fe of Object.values(this._fieldObjects))
|
|
12899
12906
|
for (const ve of fe)
|
|
@@ -12908,25 +12915,25 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
12908
12915
|
} = le;
|
|
12909
12916
|
switch (se.push(fe), le.type) {
|
|
12910
12917
|
case "text": {
|
|
12911
|
-
const
|
|
12918
|
+
const Ee = le.defaultValue || "";
|
|
12912
12919
|
ie.setValue(fe, {
|
|
12913
|
-
value:
|
|
12920
|
+
value: Ee
|
|
12914
12921
|
});
|
|
12915
12922
|
break;
|
|
12916
12923
|
}
|
|
12917
12924
|
case "checkbox":
|
|
12918
12925
|
case "radiobutton": {
|
|
12919
|
-
const
|
|
12926
|
+
const Ee = le.defaultValue === le.exportValues;
|
|
12920
12927
|
ie.setValue(fe, {
|
|
12921
|
-
value:
|
|
12928
|
+
value: Ee
|
|
12922
12929
|
});
|
|
12923
12930
|
break;
|
|
12924
12931
|
}
|
|
12925
12932
|
case "combobox":
|
|
12926
12933
|
case "listbox": {
|
|
12927
|
-
const
|
|
12934
|
+
const Ee = le.defaultValue || "";
|
|
12928
12935
|
ie.setValue(fe, {
|
|
12929
|
-
value:
|
|
12936
|
+
value: Ee
|
|
12930
12937
|
});
|
|
12931
12938
|
break;
|
|
12932
12939
|
}
|
|
@@ -13092,38 +13099,38 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
13092
13099
|
}), _.addEventListener("updatefromsandbox", (le) => {
|
|
13093
13100
|
const fe = {
|
|
13094
13101
|
value(ve) {
|
|
13095
|
-
var
|
|
13096
|
-
ie.userValue = (
|
|
13102
|
+
var Ee;
|
|
13103
|
+
ie.userValue = (Ee = ve.detail.value) !== null && Ee !== void 0 ? Ee : "", s.setValue(d, {
|
|
13097
13104
|
value: ie.userValue.toString()
|
|
13098
13105
|
}), ve.target.value = ie.userValue;
|
|
13099
13106
|
},
|
|
13100
13107
|
formattedValue(ve) {
|
|
13101
13108
|
const {
|
|
13102
|
-
formattedValue:
|
|
13109
|
+
formattedValue: Ee
|
|
13103
13110
|
} = ve.detail;
|
|
13104
|
-
ie.formattedValue =
|
|
13105
|
-
formattedValue:
|
|
13111
|
+
ie.formattedValue = Ee, Ee != null && ve.target !== document.activeElement && (ve.target.value = Ee), s.setValue(d, {
|
|
13112
|
+
formattedValue: Ee
|
|
13106
13113
|
});
|
|
13107
13114
|
},
|
|
13108
13115
|
selRange(ve) {
|
|
13109
13116
|
ve.target.setSelectionRange(...ve.detail.selRange);
|
|
13110
13117
|
},
|
|
13111
13118
|
charLimit: (ve) => {
|
|
13112
|
-
var
|
|
13119
|
+
var Ee;
|
|
13113
13120
|
const {
|
|
13114
|
-
charLimit:
|
|
13121
|
+
charLimit: Te
|
|
13115
13122
|
} = ve.detail, {
|
|
13116
13123
|
target: Oe
|
|
13117
13124
|
} = ve;
|
|
13118
|
-
if (
|
|
13125
|
+
if (Te === 0) {
|
|
13119
13126
|
Oe.removeAttribute("maxLength");
|
|
13120
13127
|
return;
|
|
13121
13128
|
}
|
|
13122
|
-
Oe.setAttribute("maxLength",
|
|
13129
|
+
Oe.setAttribute("maxLength", Te);
|
|
13123
13130
|
let Ue = ie.userValue;
|
|
13124
|
-
!Ue || Ue.length <=
|
|
13131
|
+
!Ue || Ue.length <= Te || (Ue = Ue.slice(0, Te), Oe.value = ie.userValue = Ue, s.setValue(d, {
|
|
13125
13132
|
value: Ue
|
|
13126
|
-
}), (
|
|
13133
|
+
}), (Ee = this.linkService.eventBus) === null || Ee === void 0 || Ee.dispatch("dispatcheventinsandbox", {
|
|
13127
13134
|
source: this,
|
|
13128
13135
|
detail: {
|
|
13129
13136
|
id: d,
|
|
@@ -13144,14 +13151,14 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
13144
13151
|
if (le.key === "Escape" ? ve = 0 : le.key === "Enter" ? ve = 2 : le.key === "Tab" && (ve = 3), ve === -1)
|
|
13145
13152
|
return;
|
|
13146
13153
|
const {
|
|
13147
|
-
value:
|
|
13154
|
+
value: Ee
|
|
13148
13155
|
} = le.target;
|
|
13149
|
-
ie.valueOnFocus !==
|
|
13156
|
+
ie.valueOnFocus !== Ee && (ie.userValue = Ee, (fe = this.linkService.eventBus) === null || fe === void 0 || fe.dispatch("dispatcheventinsandbox", {
|
|
13150
13157
|
source: this,
|
|
13151
13158
|
detail: {
|
|
13152
13159
|
id: d,
|
|
13153
13160
|
name: "Keystroke",
|
|
13154
|
-
value:
|
|
13161
|
+
value: Ee,
|
|
13155
13162
|
willCommit: !0,
|
|
13156
13163
|
commitKey: ve,
|
|
13157
13164
|
selStart: le.target.selectionStart,
|
|
@@ -13184,21 +13191,21 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
13184
13191
|
var fe;
|
|
13185
13192
|
const {
|
|
13186
13193
|
data: ve,
|
|
13187
|
-
target:
|
|
13194
|
+
target: Ee
|
|
13188
13195
|
} = le, {
|
|
13189
|
-
value:
|
|
13196
|
+
value: Te,
|
|
13190
13197
|
selectionStart: Oe,
|
|
13191
13198
|
selectionEnd: Ue
|
|
13192
|
-
} =
|
|
13199
|
+
} = Ee;
|
|
13193
13200
|
let Fe = Oe, Pe = Ue;
|
|
13194
13201
|
switch (le.inputType) {
|
|
13195
13202
|
case "deleteWordBackward": {
|
|
13196
|
-
const H =
|
|
13203
|
+
const H = Te.substring(0, Oe).match(/\w*[^\w]*$/);
|
|
13197
13204
|
H && (Fe -= H[0].length);
|
|
13198
13205
|
break;
|
|
13199
13206
|
}
|
|
13200
13207
|
case "deleteWordForward": {
|
|
13201
|
-
const H =
|
|
13208
|
+
const H = Te.substring(Oe).match(/^[^\w]*\w*/);
|
|
13202
13209
|
H && (Pe += H[0].length);
|
|
13203
13210
|
break;
|
|
13204
13211
|
}
|
|
@@ -13214,7 +13221,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
13214
13221
|
detail: {
|
|
13215
13222
|
id: d,
|
|
13216
13223
|
name: "Keystroke",
|
|
13217
|
-
value:
|
|
13224
|
+
value: Te,
|
|
13218
13225
|
change: ve || "",
|
|
13219
13226
|
willCommit: !1,
|
|
13220
13227
|
selStart: Fe,
|
|
@@ -13386,9 +13393,9 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
13386
13393
|
value(le) {
|
|
13387
13394
|
var fe;
|
|
13388
13395
|
(fe = X) === null || fe === void 0 || fe();
|
|
13389
|
-
const ve = le.detail.value,
|
|
13390
|
-
for (const
|
|
13391
|
-
|
|
13396
|
+
const ve = le.detail.value, Ee = new Set(Array.isArray(ve) ? ve : [ve]);
|
|
13397
|
+
for (const Te of M.options)
|
|
13398
|
+
Te.selected = Ee.has(Te.value);
|
|
13392
13399
|
s.setValue(d, {
|
|
13393
13400
|
value: J(le, !0)
|
|
13394
13401
|
});
|
|
@@ -13398,7 +13405,7 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
13398
13405
|
},
|
|
13399
13406
|
remove(le) {
|
|
13400
13407
|
const fe = M.options, ve = le.detail.remove;
|
|
13401
|
-
fe[ve].selected = !1, M.remove(ve), fe.length > 0 && Array.prototype.findIndex.call(fe, (
|
|
13408
|
+
fe[ve].selected = !1, M.remove(ve), fe.length > 0 && Array.prototype.findIndex.call(fe, (Te) => Te.selected) === -1 && (fe[0].selected = !0), s.setValue(d, {
|
|
13402
13409
|
value: J(le, !0),
|
|
13403
13410
|
items: ie(le)
|
|
13404
13411
|
});
|
|
@@ -13415,9 +13422,9 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
13415
13422
|
const {
|
|
13416
13423
|
index: fe,
|
|
13417
13424
|
displayValue: ve,
|
|
13418
|
-
exportValue:
|
|
13419
|
-
} = le.detail.insert,
|
|
13420
|
-
Oe.textContent = ve, Oe.value =
|
|
13425
|
+
exportValue: Ee
|
|
13426
|
+
} = le.detail.insert, Te = M.children[fe], Oe = document.createElement("option");
|
|
13427
|
+
Oe.textContent = ve, Oe.value = Ee, Te ? Te.before(Oe) : M.append(Oe), s.setValue(d, {
|
|
13421
13428
|
value: J(le, !0),
|
|
13422
13429
|
items: ie(le)
|
|
13423
13430
|
});
|
|
@@ -13430,10 +13437,10 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
13430
13437
|
M.remove(0);
|
|
13431
13438
|
for (const ve of fe) {
|
|
13432
13439
|
const {
|
|
13433
|
-
displayValue:
|
|
13434
|
-
exportValue:
|
|
13440
|
+
displayValue: Ee,
|
|
13441
|
+
exportValue: Te
|
|
13435
13442
|
} = ve, Oe = document.createElement("option");
|
|
13436
|
-
Oe.textContent =
|
|
13443
|
+
Oe.textContent = Ee, Oe.value = Te, M.append(Oe);
|
|
13437
13444
|
}
|
|
13438
13445
|
M.options.length > 0 && (M.options[0].selected = !0), s.setValue(d, {
|
|
13439
13446
|
value: J(le, !0),
|
|
@@ -13500,8 +13507,8 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
13500
13507
|
modificationDate: this.data.modificationDate,
|
|
13501
13508
|
contentsObj: this.data.contentsObj,
|
|
13502
13509
|
richText: this.data.richText
|
|
13503
|
-
}), N = this.page, X = o.Util.normalizeRect([this.data.parentRect[0], N.view[3] - this.data.parentRect[1] + N.view[1], this.data.parentRect[2], N.view[3] - this.data.parentRect[3] + N.view[1]]), J = X[0] + this.data.parentRect[2] - this.data.parentRect[0], ie = X[1], [se, he, le, fe] = this.viewport.viewBox, ve = le - se,
|
|
13504
|
-
return this.container.style.left = `${100 * (J - se) / ve}%`, this.container.style.top = `${100 * (ie - he) /
|
|
13510
|
+
}), N = this.page, X = o.Util.normalizeRect([this.data.parentRect[0], N.view[3] - this.data.parentRect[1] + N.view[1], this.data.parentRect[2], N.view[3] - this.data.parentRect[3] + N.view[1]]), J = X[0] + this.data.parentRect[2] - this.data.parentRect[0], ie = X[1], [se, he, le, fe] = this.viewport.viewBox, ve = le - se, Ee = fe - he;
|
|
13511
|
+
return this.container.style.left = `${100 * (J - se) / ve}%`, this.container.style.top = `${100 * (ie - he) / Ee}%`, this.container.append(M.render()), this.container;
|
|
13505
13512
|
}
|
|
13506
13513
|
}
|
|
13507
13514
|
class E {
|
|
@@ -15970,12 +15977,12 @@ const Aa = {}, wa = /* @__PURE__ */ Object.freeze({
|
|
|
15970
15977
|
}
|
|
15971
15978
|
}
|
|
15972
15979
|
}
|
|
15973
|
-
],
|
|
15980
|
+
], Ae = {};
|
|
15974
15981
|
function ze(D) {
|
|
15975
|
-
var m =
|
|
15982
|
+
var m = Ae[D];
|
|
15976
15983
|
if (m !== void 0)
|
|
15977
15984
|
return m.exports;
|
|
15978
|
-
var n =
|
|
15985
|
+
var n = Ae[D] = {
|
|
15979
15986
|
exports: {}
|
|
15980
15987
|
};
|
|
15981
15988
|
return Ie[D](n, n.exports, ze), n.exports;
|
|
@@ -16193,10 +16200,10 @@ window.pdf = _a;
|
|
|
16193
16200
|
const Ta = class {
|
|
16194
16201
|
constructor(De) {
|
|
16195
16202
|
Lt(this, De), this.activate = Pt(this, "activate", 7), this.visiblePagesChange = Pt(this, "visiblePagesChange", 7), this.pages = [], this.renderingPageNumbers = [], this.recentScrollPosition = { x: 0, y: 0 }, this.storeRecentScrollPosition = () => {
|
|
16196
|
-
var
|
|
16203
|
+
var _e, Ie, Ae, ze;
|
|
16197
16204
|
this.recentScrollPosition = {
|
|
16198
|
-
x: Math.round(((
|
|
16199
|
-
y: Math.round(((
|
|
16205
|
+
x: Math.round(((_e = this.scrollContainer) == null ? void 0 : _e.scrollLeft) / ((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollWidth) * 100) / 100,
|
|
16206
|
+
y: Math.round(((Ae = this.scrollContainer) == null ? void 0 : Ae.scrollTop) / ((ze = this.scrollContainer) == null ? void 0 : ze.scrollHeight) * 100) / 100
|
|
16200
16207
|
};
|
|
16201
16208
|
}, this.onScroll = na(() => {
|
|
16202
16209
|
this.updateVisiblePages(), this.storeRecentScrollPosition();
|
|
@@ -16233,12 +16240,12 @@ const Ta = class {
|
|
|
16233
16240
|
}
|
|
16234
16241
|
async getThumbnails() {
|
|
16235
16242
|
return await Promise.all(this.pages.filter(Boolean).map((De) => {
|
|
16236
|
-
const
|
|
16237
|
-
Ie.width =
|
|
16238
|
-
const
|
|
16243
|
+
const _e = De.getViewport({ scale: 1 }), Ie = document.createElement("canvas");
|
|
16244
|
+
Ie.width = _e.width, Ie.height = _e.height;
|
|
16245
|
+
const Ae = Math.min(Ie.width / _e.width, Ie.height / _e.height);
|
|
16239
16246
|
return De.render({
|
|
16240
16247
|
canvasContext: Ie.getContext("2d"),
|
|
16241
|
-
viewport: De.getViewport({ scale:
|
|
16248
|
+
viewport: De.getViewport({ scale: Ae })
|
|
16242
16249
|
}).promise.then(function() {
|
|
16243
16250
|
return Ie;
|
|
16244
16251
|
});
|
|
@@ -16261,17 +16268,17 @@ const Ta = class {
|
|
|
16261
16268
|
try {
|
|
16262
16269
|
Boolean(this.doc) && this.doc.destroy(), this.doc = await Or.exports.getDocument({ isEvalSupported: !1, url: this.file }).promise;
|
|
16263
16270
|
const De = [];
|
|
16264
|
-
for (let
|
|
16265
|
-
De.push(this.doc.getPage(
|
|
16271
|
+
for (let _e = 1; _e <= this.doc.numPages; _e++)
|
|
16272
|
+
De.push(this.doc.getPage(_e));
|
|
16266
16273
|
this.pages = await Promise.all(De), this.loading = !1;
|
|
16267
16274
|
} catch {
|
|
16268
16275
|
this.error = !0, this.loading = !1;
|
|
16269
16276
|
}
|
|
16270
16277
|
}
|
|
16271
16278
|
async renderVisiblePages(De) {
|
|
16272
|
-
const
|
|
16273
|
-
for (const
|
|
16274
|
-
const ze =
|
|
16279
|
+
const _e = Array.from(this.el.shadowRoot.querySelectorAll("canvas")), Ie = [];
|
|
16280
|
+
for (const Ae of _e) {
|
|
16281
|
+
const ze = Ae.closest(".file-viewer-pdf__page"), qe = this.pages.find((D) => (D == null ? void 0 : D.pageNumber) === +(ze == null ? void 0 : ze.dataset.pageNumber));
|
|
16275
16282
|
if (!(!Boolean(qe) || this.renderingPageNumbers.includes(qe.pageNumber))) {
|
|
16276
16283
|
if (!this.visiblePages.includes(qe.pageNumber) && !De) {
|
|
16277
16284
|
this.destroyPage(qe);
|
|
@@ -16281,16 +16288,16 @@ const Ta = class {
|
|
|
16281
16288
|
Ie.push(qe.pageNumber);
|
|
16282
16289
|
continue;
|
|
16283
16290
|
}
|
|
16284
|
-
await this.renderPage(qe,
|
|
16291
|
+
await this.renderPage(qe, Ae, De), Ie.push(qe.pageNumber);
|
|
16285
16292
|
}
|
|
16286
16293
|
}
|
|
16287
16294
|
this.renderedPages = Ie;
|
|
16288
16295
|
}
|
|
16289
|
-
async renderPage(De,
|
|
16290
|
-
const
|
|
16296
|
+
async renderPage(De, _e, Ie) {
|
|
16297
|
+
const Ae = _e.closest(".file-viewer-pdf__page"), ze = Ae == null ? void 0 : Ae.querySelector(".file-viewer-pdf__text-container");
|
|
16291
16298
|
this.renderingPageNumbers = [...this.renderingPageNumbers, De.pageNumber];
|
|
16292
|
-
const qe = Ie ? 2 : this.getScale(De), D = window.devicePixelRatio || 1, m = D !== 1 ? [D, 0, 0, D, 0, 0] : null, n = De.getViewport({ scale: qe }), o =
|
|
16293
|
-
|
|
16299
|
+
const qe = Ie ? 2 : this.getScale(De), D = window.devicePixelRatio || 1, m = D !== 1 ? [D, 0, 0, D, 0, 0] : null, n = De.getViewport({ scale: qe }), o = _e.getContext("2d");
|
|
16300
|
+
_e.height = Math.floor(n.height * D), _e.width = Math.floor(n.width * D);
|
|
16294
16301
|
const c = {
|
|
16295
16302
|
canvasContext: o,
|
|
16296
16303
|
transform: m,
|
|
@@ -16302,28 +16309,28 @@ const Ta = class {
|
|
|
16302
16309
|
}
|
|
16303
16310
|
}
|
|
16304
16311
|
destroyPage(De) {
|
|
16305
|
-
const
|
|
16306
|
-
Ie.width = 1, Ie.height = 1, Ie.getContext("2d").clearRect(0, 0, Ie.width, Ie.height),
|
|
16312
|
+
const _e = this.el.shadowRoot.querySelector(`[data-page-number="${De.pageNumber}"]`), Ie = _e.querySelector("canvas"), Ae = _e.querySelector(".file-viewer-pdf__text-container");
|
|
16313
|
+
Ie.width = 1, Ie.height = 1, Ie.getContext("2d").clearRect(0, 0, Ie.width, Ie.height), Ae.innerHTML = "";
|
|
16307
16314
|
}
|
|
16308
16315
|
async updateVisiblePages(De) {
|
|
16309
|
-
const
|
|
16310
|
-
let Ie = [],
|
|
16316
|
+
const _e = Array.from(this.el.shadowRoot.querySelectorAll(".file-viewer-pdf__page"));
|
|
16317
|
+
let Ie = [], Ae = null;
|
|
16311
16318
|
if (this.singlePageMode)
|
|
16312
|
-
Ie = [this.singlePageModePage],
|
|
16319
|
+
Ie = [this.singlePageModePage], Ae = this.singlePageModePage;
|
|
16313
16320
|
else if (De)
|
|
16314
|
-
Ie =
|
|
16321
|
+
Ie = _e.map((qe) => +qe.dataset.pageNumber);
|
|
16315
16322
|
else {
|
|
16316
|
-
const qe =
|
|
16323
|
+
const qe = _e.map((D) => ({
|
|
16317
16324
|
pageNumber: +D.dataset.pageNumber,
|
|
16318
16325
|
visibleHeight: ia(D, this.scrollContainer)
|
|
16319
16326
|
})).filter(({ visibleHeight: D }) => D > 0);
|
|
16320
|
-
Ie = qe.map((D) => D.pageNumber), qe.length > 0 && (
|
|
16327
|
+
Ie = qe.map((D) => D.pageNumber), qe.length > 0 && (Ae = qe.reduce((m, n) => n.visibleHeight > m.visibleHeight ? n : m, qe[0]).pageNumber);
|
|
16321
16328
|
}
|
|
16322
|
-
this.visiblePages.length === Ie.length && this.visiblePages.every((qe) => Ie.includes(qe)) && this.currentPage ===
|
|
16329
|
+
this.visiblePages.length === Ie.length && this.visiblePages.every((qe) => Ie.includes(qe)) && this.currentPage === Ae || (this.visiblePages = Ie, this.currentPage = Ae, await this.renderVisiblePages(De), this.visiblePagesChange.emit(this.visiblePages));
|
|
16323
16330
|
}
|
|
16324
|
-
async renderTextLayer(De,
|
|
16331
|
+
async renderTextLayer(De, _e) {
|
|
16325
16332
|
Or.exports.renderTextLayer({
|
|
16326
|
-
container:
|
|
16333
|
+
container: _e,
|
|
16327
16334
|
textContent: await De.getTextContent(),
|
|
16328
16335
|
viewport: De.getViewport({
|
|
16329
16336
|
scale: this.getScale(De)
|
|
@@ -16332,7 +16339,7 @@ const Ta = class {
|
|
|
16332
16339
|
}
|
|
16333
16340
|
async openPrintDialog() {
|
|
16334
16341
|
const De = Array.from(this.scrollContainer.querySelectorAll("canvas"));
|
|
16335
|
-
let
|
|
16342
|
+
let _e = `
|
|
16336
16343
|
*, *:before, *:after {
|
|
16337
16344
|
margin: 0;
|
|
16338
16345
|
padding: 0;
|
|
@@ -16364,7 +16371,7 @@ const Ta = class {
|
|
|
16364
16371
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
16365
16372
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
16366
16373
|
<title>${this.file}</title>
|
|
16367
|
-
<style>${
|
|
16374
|
+
<style>${_e}</style>
|
|
16368
16375
|
</head>
|
|
16369
16376
|
<body>
|
|
16370
16377
|
`;
|
|
@@ -16374,31 +16381,31 @@ const Ta = class {
|
|
|
16374
16381
|
</body>
|
|
16375
16382
|
</html>
|
|
16376
16383
|
`;
|
|
16377
|
-
const
|
|
16378
|
-
this.el.append(
|
|
16379
|
-
const ze =
|
|
16380
|
-
ze.document.write(Ie), ze.focus(), await new Promise((qe) => setTimeout(qe, 100)), ze.print(),
|
|
16384
|
+
const Ae = document.createElement("iframe");
|
|
16385
|
+
this.el.append(Ae);
|
|
16386
|
+
const ze = Ae.contentWindow;
|
|
16387
|
+
ze.document.write(Ie), ze.focus(), await new Promise((qe) => setTimeout(qe, 100)), ze.print(), Ae.remove();
|
|
16381
16388
|
}
|
|
16382
16389
|
getScale(De) {
|
|
16383
16390
|
var Ie;
|
|
16384
|
-
const
|
|
16385
|
-
return this.zoom === "auto" ? (((Ie = this.scrollContainer) == null ? void 0 : Ie.clientWidth) -
|
|
16391
|
+
const _e = aa() ? 0 : 32;
|
|
16392
|
+
return this.zoom === "auto" ? (((Ie = this.scrollContainer) == null ? void 0 : Ie.clientWidth) - _e) / De.view[2] : isNaN(this.zoom) ? 1 : this.zoom;
|
|
16386
16393
|
}
|
|
16387
16394
|
restoreScrollPosition() {
|
|
16388
|
-
var De,
|
|
16389
|
-
this.scrollContainer.scrollTop = this.recentScrollPosition.y * ((De = this.scrollContainer) == null ? void 0 : De.scrollHeight), this.scrollContainer.scrollLeft = this.recentScrollPosition.x * ((
|
|
16395
|
+
var De, _e;
|
|
16396
|
+
this.scrollContainer.scrollTop = this.recentScrollPosition.y * ((De = this.scrollContainer) == null ? void 0 : De.scrollHeight), this.scrollContainer.scrollLeft = this.recentScrollPosition.x * ((_e = this.scrollContainer) == null ? void 0 : _e.scrollWidth);
|
|
16390
16397
|
}
|
|
16391
16398
|
render() {
|
|
16392
|
-
const De = !this.error && !this.loading && this.visiblePages.length > 0,
|
|
16393
|
-
return Xe(Nt, { key: "fc44bde6b49ee1fcf3283f03cd92a0ca2df2fd89", class: Ie, exportparts: "file-viewer-pdf__pagination" }, this.error && Xe("swirl-inline-error", { key: "51731c3e8a10fc9c23f617948af158eef59a7c71", class: "file-viewer-pdf__error", message: this.errorMessage }), Xe("div", { key: "f3a1c104d2bd73bd9271310b53c333f9a69695e3", "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (
|
|
16394
|
-
const ze =
|
|
16395
|
-
scale: this.getScale(
|
|
16396
|
-
}), qe = ze.height, D = ze.width, m = this.renderedPages.includes(
|
|
16397
|
-
return Xe("div", { "aria-label":
|
|
16399
|
+
const De = !this.error && !this.loading && this.visiblePages.length > 0, _e = this.loading, Ie = ra("file-viewer-pdf", `file-viewer-pdf--view-mode-${this.viewMode}`);
|
|
16400
|
+
return Xe(Nt, { key: "fc44bde6b49ee1fcf3283f03cd92a0ca2df2fd89", class: Ie, exportparts: "file-viewer-pdf__pagination" }, this.error && Xe("swirl-inline-error", { key: "51731c3e8a10fc9c23f617948af158eef59a7c71", class: "file-viewer-pdf__error", message: this.errorMessage }), Xe("div", { key: "f3a1c104d2bd73bd9271310b53c333f9a69695e3", "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (Ae) => this.scrollContainer = Ae }, this.pages.map((Ae) => {
|
|
16401
|
+
const ze = Ae.getViewport({
|
|
16402
|
+
scale: this.getScale(Ae)
|
|
16403
|
+
}), qe = ze.height, D = ze.width, m = this.renderedPages.includes(Ae.pageNumber);
|
|
16404
|
+
return Xe("div", { "aria-label": Ae.pageNumber, class: "file-viewer-pdf__page", "data-page-number": Ae.pageNumber, hidden: !this.singlePageMode || Ae.pageNumber === this.singlePageModePage ? void 0 : !0, id: `page-${Ae.pageNumber}`, key: Ae.pageNumber, role: "region", style: {
|
|
16398
16405
|
width: `${D}px`,
|
|
16399
16406
|
height: `${qe}px`
|
|
16400
16407
|
}, tabIndex: 0 }, !m && Xe("swirl-spinner", { class: "file-viewer-pdf__page-spinner" }), Xe("canvas", { class: "file-viewer-pdf__canvas", style: { opacity: m ? "1" : "0" } }), Xe("div", { class: "file-viewer-pdf__text-container" }));
|
|
16401
|
-
})), De && Xe("span", { key: "6c21f44b36b998d10beb38b9c758b1931c3f0bab", class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, Xe("span", { key: "3629ad2f2da41395d4089a20174ec815ffb45c1d", "aria-current": "page" }, this.currentPage), " /", " ", this.doc.numPages),
|
|
16408
|
+
})), De && Xe("span", { key: "6c21f44b36b998d10beb38b9c758b1931c3f0bab", class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, Xe("span", { key: "3629ad2f2da41395d4089a20174ec815ffb45c1d", "aria-current": "page" }, this.currentPage), " /", " ", this.doc.numPages), _e && Xe("div", { key: "4e41abc8439c59dcc389a6bdd47538b4592c7915", class: "file-viewer-pdf__spinner" }, Xe("swirl-spinner", { key: "a391c38d897af60076a0d30977a2c82434a88c71" })));
|
|
16402
16409
|
}
|
|
16403
16410
|
get el() {
|
|
16404
16411
|
return $t(this);
|