@getflip/swirl-components-react 0.174.0 → 0.174.2
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.249cb62f.js → file-manager.entry.f41b5f99.js} +1 -1
- package/dist/{index.6cdd373b.js → index.173cb64e.js} +285 -285
- package/dist/{swirl-accordion-item.entry.10b3f82b.js → swirl-accordion-item.entry.175a1270.js} +1 -1
- package/dist/{swirl-accordion.entry.f446b525.js → swirl-accordion.entry.aeb5e6f5.js} +1 -1
- package/dist/{swirl-action-list-section.entry.e6ac02a8.js → swirl-action-list-section.entry.db5029c5.js} +1 -1
- package/dist/{swirl-action-list_3.entry.5511bfdc.js → swirl-action-list_3.entry.6bafe0a3.js} +1 -1
- package/dist/{swirl-app-bar.entry.966d60a0.js → swirl-app-bar.entry.dc78ee35.js} +1 -1
- package/dist/{swirl-app-icon.entry.af92b3c8.js → swirl-app-icon.entry.d9b73c17.js} +1 -1
- package/dist/{swirl-app-layout_6.entry.8761ad35.js → swirl-app-layout_6.entry.d6490f95.js} +1 -1
- package/dist/{swirl-autocomplete.entry.6c957206.js → swirl-autocomplete.entry.4e54e638.js} +1 -1
- package/dist/{swirl-avatar-group.entry.0eb54d36.js → swirl-avatar-group.entry.d6e79423.js} +1 -1
- package/dist/{swirl-avatar.entry.0a3e0620.js → swirl-avatar.entry.26b013b6.js} +1 -1
- package/dist/{swirl-badge.entry.628e58d5.js → swirl-badge.entry.7c4d2cac.js} +1 -1
- package/dist/{swirl-banner.entry.41cc6ea1.js → swirl-banner.entry.715b2fbe.js} +1 -1
- package/dist/{swirl-box.entry.081ebca1.js → swirl-box.entry.4b414bad.js} +1 -1
- package/dist/{swirl-button-group.entry.517a63ed.js → swirl-button-group.entry.a0581399.js} +1 -1
- package/dist/{swirl-button.entry.d11a47a6.js → swirl-button.entry.2d3e1b17.js} +1 -1
- package/dist/{swirl-card.entry.9f356820.js → swirl-card.entry.0e016bf8.js} +1 -1
- package/dist/{swirl-carousel-slide.entry.282cc828.js → swirl-carousel-slide.entry.032e95db.js} +1 -1
- package/dist/{swirl-carousel.entry.0695593c.js → swirl-carousel.entry.4c806efb.js} +1 -1
- package/dist/{swirl-checkbox.entry.94f80280.js → swirl-checkbox.entry.ab4a5cdc.js} +1 -1
- package/dist/{swirl-chip.entry.3bf3a51b.js → swirl-chip.entry.10825ded.js} +1 -1
- package/dist/{swirl-color-input.entry.370859dc.js → swirl-color-input.entry.f87f74e1.js} +1 -1
- package/dist/{swirl-columns.entry.877c8726.js → swirl-columns.entry.4b69024a.js} +1 -1
- package/dist/swirl-components-react.js +1 -1
- package/dist/swirl-components-react.umd.cjs +2 -2
- package/dist/{swirl-console-layout.entry.9804d57d.js → swirl-console-layout.entry.9dc1a97f.js} +1 -1
- package/dist/{swirl-date-input.entry.6f372b21.js → swirl-date-input.entry.c987e797.js} +1 -1
- package/dist/{swirl-date-picker_2.entry.3dac28bc.js → swirl-date-picker_2.entry.34aef685.js} +1 -1
- package/dist/{swirl-description-list-item.entry.16a9b45e.js → swirl-description-list-item.entry.21edfffe.js} +1 -1
- package/dist/{swirl-description-list.entry.10e6fe24.js → swirl-description-list.entry.c0a3cc8f.js} +1 -1
- package/dist/{swirl-dialog.entry.f74f0915.js → swirl-dialog.entry.77044eb0.js} +1 -1
- package/dist/{swirl-emoji-clap.entry.70f00ba3.js → swirl-emoji-clap.entry.7e1df810.js} +1 -1
- package/dist/{swirl-emoji-happy.entry.0f566805.js → swirl-emoji-happy.entry.240ed565.js} +1 -1
- package/dist/{swirl-emoji-idea.entry.c2076dd5.js → swirl-emoji-idea.entry.069ed69e.js} +1 -1
- package/dist/{swirl-emoji-love.entry.0be36de5.js → swirl-emoji-love.entry.0f74a4e8.js} +1 -1
- package/dist/{swirl-emoji-sad.entry.2e048c42.js → swirl-emoji-sad.entry.7155cf70.js} +1 -1
- package/dist/{swirl-emoji-thumbs-up.entry.e860a8fe.js → swirl-emoji-thumbs-up.entry.15707102.js} +1 -1
- package/dist/{swirl-emoji.entry.b85b7eaa.js → swirl-emoji.entry.d9f4fd85.js} +1 -1
- package/dist/{swirl-file-uploader.entry.5bf2e6f6.js → swirl-file-uploader.entry.0d4fdeb8.js} +1 -1
- package/dist/{swirl-file-viewer_7.entry.bfcf6fec.js → swirl-file-viewer_7.entry.0bd843d8.js} +247 -245
- package/dist/{swirl-form-control.entry.ceb833dc.js → swirl-form-control.entry.03901fd6.js} +1 -1
- package/dist/{swirl-form-group.entry.fe2c486f.js → swirl-form-group.entry.ed7ddc01.js} +1 -1
- package/dist/{swirl-heading.entry.84340aac.js → swirl-heading.entry.38f6944a.js} +1 -1
- package/dist/{swirl-icon-add-moderator.entry.a6938bfa.js → swirl-icon-add-moderator.entry.b011bdc7.js} +1 -1
- package/dist/{swirl-icon-add-photo.entry.9deca4a9.js → swirl-icon-add-photo.entry.5b5c7ecf.js} +1 -1
- package/dist/{swirl-icon-add-reaction.entry.d6cefd96.js → swirl-icon-add-reaction.entry.c6b64db7.js} +1 -1
- package/dist/{swirl-icon-add_6.entry.1f377a14.js → swirl-icon-add_6.entry.e196d9f4.js} +1 -1
- package/dist/{swirl-icon-admin-panel-settings.entry.ecfc0e3f.js → swirl-icon-admin-panel-settings.entry.4de286ff.js} +1 -1
- package/dist/{swirl-icon-ai.entry.28610e02.js → swirl-icon-ai.entry.73762447.js} +1 -1
- package/dist/{swirl-icon-apps.entry.3a7871f9.js → swirl-icon-apps.entry.3dad0229.js} +1 -1
- package/dist/{swirl-icon-arrow-back_5.entry.78526b57.js → swirl-icon-arrow-back_5.entry.347b459b.js} +1 -1
- package/dist/{swirl-icon-arrow-downward_2.entry.cf6e1699.js → swirl-icon-arrow-downward_2.entry.7867e8cf.js} +1 -1
- package/dist/{swirl-icon-arrow-left_4.entry.3c258395.js → swirl-icon-arrow-left_4.entry.6d6d4500.js} +1 -1
- package/dist/{swirl-icon-arrow-right-small.entry.45e3631b.js → swirl-icon-arrow-right-small.entry.bc9f759a.js} +1 -1
- package/dist/{swirl-icon-attachment.entry.510567fa.js → swirl-icon-attachment.entry.a98d1139.js} +1 -1
- package/dist/{swirl-icon-bar-chart.entry.bc2a973e.js → swirl-icon-bar-chart.entry.8b6bda41.js} +1 -1
- package/dist/{swirl-icon-block.entry.248486e4.js → swirl-icon-block.entry.e9751bd1.js} +1 -1
- package/dist/{swirl-icon-bookmark-filled.entry.ebcccc61.js → swirl-icon-bookmark-filled.entry.34280a75.js} +1 -1
- package/dist/{swirl-icon-bookmark.entry.f4e7c808.js → swirl-icon-bookmark.entry.5cb54373.js} +1 -1
- package/dist/{swirl-icon-cancel_4.entry.eef84f79.js → swirl-icon-cancel_4.entry.5427bd93.js} +1 -1
- package/dist/{swirl-icon-chat-bubble.entry.d655ebd0.js → swirl-icon-chat-bubble.entry.005fb11c.js} +1 -1
- package/dist/{swirl-icon-chats-filled.entry.4d4f3024.js → swirl-icon-chats-filled.entry.c34dba09.js} +1 -1
- package/dist/{swirl-icon-chats.entry.270cb676.js → swirl-icon-chats.entry.cdee0a90.js} +1 -1
- package/dist/{swirl-icon-check-circle_2.entry.a5a5eda5.js → swirl-icon-check-circle_2.entry.6fdec335.js} +1 -1
- package/dist/{swirl-icon-check-small_3.entry.ea108c93.js → swirl-icon-check-small_3.entry.b1bbb31a.js} +1 -1
- package/dist/{swirl-icon-check-strong.entry.a428afb0.js → swirl-icon-check-strong.entry.0c06ecab.js} +1 -1
- package/dist/{swirl-icon-check.entry.56247ae0.js → swirl-icon-check.entry.d3b5b871.js} +1 -1
- package/dist/{swirl-icon-chevron-left.entry.69fe29c1.js → swirl-icon-chevron-left.entry.1bbada77.js} +1 -1
- package/dist/{swirl-icon-chevron-right.entry.cd03e6a0.js → swirl-icon-chevron-right.entry.5d0edcc9.js} +1 -1
- package/dist/{swirl-icon-close-small.entry.f001afcb.js → swirl-icon-close-small.entry.66e02778.js} +1 -1
- package/dist/{swirl-icon-close.entry.fccee0c7.js → swirl-icon-close.entry.366980d1.js} +1 -1
- package/dist/{swirl-icon-cloud-upload.entry.3ef5a8a3.js → swirl-icon-cloud-upload.entry.956f9524.js} +1 -1
- package/dist/{swirl-icon-column.entry.8452bc0c.js → swirl-icon-column.entry.adafcc8a.js} +1 -1
- package/dist/{swirl-icon-comment.entry.49a038d7.js → swirl-icon-comment.entry.6eb2a4f3.js} +1 -1
- package/dist/{swirl-icon-copy.entry.cb7cee8d.js → swirl-icon-copy.entry.6b63d427.js} +1 -1
- package/dist/{swirl-icon-dark-mode.entry.a94c86fd.js → swirl-icon-dark-mode.entry.1cba4783.js} +1 -1
- package/dist/{swirl-icon-date-range.entry.e80ebdf7.js → swirl-icon-date-range.entry.9112adc4.js} +1 -1
- package/dist/{swirl-icon-delete.entry.b8d84a67.js → swirl-icon-delete.entry.142d7d77.js} +1 -1
- package/dist/{swirl-icon-description.entry.cf79d091.js → swirl-icon-description.entry.733c0c98.js} +1 -1
- package/dist/{swirl-icon-desktop.entry.20edcb35.js → swirl-icon-desktop.entry.253c4dc0.js} +1 -1
- package/dist/{swirl-icon-directory-filled.entry.d3241e38.js → swirl-icon-directory-filled.entry.164988e2.js} +1 -1
- package/dist/{swirl-icon-directory.entry.6aeb8a8e.js → swirl-icon-directory.entry.5fefd388.js} +1 -1
- package/dist/{swirl-icon-discover.entry.cd0ed36b.js → swirl-icon-discover.entry.e17ee150.js} +1 -1
- package/dist/{swirl-icon-dock-left.entry.bff24708.js → swirl-icon-dock-left.entry.ed26d8c3.js} +1 -1
- package/dist/{swirl-icon-dot.entry.6579f32e.js → swirl-icon-dot.entry.e338effb.js} +1 -1
- package/dist/{swirl-icon-download.entry.0e3e237c.js → swirl-icon-download.entry.66d827c4.js} +1 -1
- package/dist/{swirl-icon-edit.entry.016957b8.js → swirl-icon-edit.entry.3a06cdbf.js} +1 -1
- package/dist/{swirl-icon-emoji-mood.entry.1020265b.js → swirl-icon-emoji-mood.entry.aab9238a.js} +1 -1
- package/dist/{swirl-icon-emoji-satisfied.entry.1a8ddaa6.js → swirl-icon-emoji-satisfied.entry.b3188e64.js} +1 -1
- package/dist/{swirl-icon-error_3.entry.85f9af6e.js → swirl-icon-error_3.entry.8bc9b4ea.js} +1 -1
- package/dist/{swirl-icon-expand-more.entry.89e0dc61.js → swirl-icon-expand-more.entry.dfda3b42.js} +1 -1
- package/dist/{swirl-icon-filter.entry.a6082936.js → swirl-icon-filter.entry.d8fba60d.js} +1 -1
- package/dist/{swirl-icon-folder.entry.3c789ef8.js → swirl-icon-folder.entry.0df6f910.js} +1 -1
- package/dist/{swirl-icon-format-h-one.entry.825defda.js → swirl-icon-format-h-one.entry.46274bd3.js} +1 -1
- package/dist/{swirl-icon-gif.entry.04347ac2.js → swirl-icon-gif.entry.beb83325.js} +1 -1
- package/dist/{swirl-icon-group-add.entry.99c2a5d3.js → swirl-icon-group-add.entry.6795982f.js} +1 -1
- package/dist/{swirl-icon-group-assign.entry.57c9db70.js → swirl-icon-group-assign.entry.000166c5.js} +1 -1
- package/dist/{swirl-icon-groups-filled.entry.eb213457.js → swirl-icon-groups-filled.entry.5379c5b6.js} +1 -1
- package/dist/{swirl-icon-groups.entry.cd4fd996.js → swirl-icon-groups.entry.6792483e.js} +1 -1
- package/dist/{swirl-icon-help.entry.c895012f.js → swirl-icon-help.entry.dc1ba805.js} +1 -1
- package/dist/{swirl-icon-highlight.entry.be695a8a.js → swirl-icon-highlight.entry.29dd4b22.js} +1 -1
- package/dist/{swirl-icon-home.entry.80cf2657.js → swirl-icon-home.entry.6f74d773.js} +1 -1
- package/dist/{swirl-icon-image.entry.f25ce315.js → swirl-icon-image.entry.a6b34280.js} +1 -1
- package/dist/{swirl-icon-improve-text.entry.1b7a8ed2.js → swirl-icon-improve-text.entry.5ce309d4.js} +1 -1
- package/dist/{swirl-icon-info_2.entry.f2cfda78.js → swirl-icon-info_2.entry.bb5d23cd.js} +1 -1
- package/dist/{swirl-icon-insert-below.entry.b8524763.js → swirl-icon-insert-below.entry.46b19c5d.js} +1 -1
- package/dist/{swirl-icon-insert-on-top.entry.400c719c.js → swirl-icon-insert-on-top.entry.67dc1f16.js} +1 -1
- package/dist/{swirl-icon-inventory.entry.4082861a.js → swirl-icon-inventory.entry.9fbb456c.js} +1 -1
- package/dist/{swirl-icon-keyboard-hide.entry.abbf04f6.js → swirl-icon-keyboard-hide.entry.df8c947f.js} +1 -1
- package/dist/{swirl-icon-light-mode.entry.3d7e0acc.js → swirl-icon-light-mode.entry.2631fb3a.js} +1 -1
- package/dist/{swirl-icon-like.entry.8750e9a2.js → swirl-icon-like.entry.f5eeb2bc.js} +1 -1
- package/dist/{swirl-icon-link.entry.0d067f80.js → swirl-icon-link.entry.299a2f37.js} +1 -1
- package/dist/{swirl-icon-load.entry.5e1f9dd1.js → swirl-icon-load.entry.19221d21.js} +1 -1
- package/dist/{swirl-icon-lock-open.entry.c0e69b38.js → swirl-icon-lock-open.entry.9a7b607a.js} +1 -1
- package/dist/{swirl-icon-lock-person.entry.b8a31871.js → swirl-icon-lock-person.entry.2c963ce8.js} +1 -1
- package/dist/{swirl-icon-lock.entry.94a5a52c.js → swirl-icon-lock.entry.8748fdc4.js} +1 -1
- package/dist/{swirl-icon-login.entry.429f06c0.js → swirl-icon-login.entry.21539650.js} +1 -1
- package/dist/{swirl-icon-logout.entry.540c8297.js → swirl-icon-logout.entry.f811f1ea.js} +1 -1
- package/dist/{swirl-icon-long-text.entry.7c4780ac.js → swirl-icon-long-text.entry.48f9ece4.js} +1 -1
- package/dist/{swirl-icon-mail.entry.999dadd7.js → swirl-icon-mail.entry.7c404bc1.js} +1 -1
- package/dist/{swirl-icon-manage-accounts.entry.eddeab69.js → swirl-icon-manage-accounts.entry.a5d7ce18.js} +1 -1
- package/dist/{swirl-icon-mark-chat-read.entry.30679815.js → swirl-icon-mark-chat-read.entry.bef1bfea.js} +1 -1
- package/dist/{swirl-icon-mark-chat-unread.entry.4d3c6418.js → swirl-icon-mark-chat-unread.entry.0b0aec8c.js} +1 -1
- package/dist/{swirl-icon-mention.entry.eea3cdf2.js → swirl-icon-mention.entry.0b6f235f.js} +1 -1
- package/dist/{swirl-icon-menu-filled.entry.c6ec4c15.js → swirl-icon-menu-filled.entry.0fdf33d6.js} +1 -1
- package/dist/{swirl-icon-menu.entry.4224feb4.js → swirl-icon-menu.entry.faebea23.js} +1 -1
- package/dist/{swirl-icon-message.entry.f35adf47.js → swirl-icon-message.entry.835a68d3.js} +1 -1
- package/dist/{swirl-icon-mic.entry.66138fd5.js → swirl-icon-mic.entry.d9812d2b.js} +1 -1
- package/dist/{swirl-icon-more-horizontal.entry.2e1b6eb0.js → swirl-icon-more-horizontal.entry.7ea065c3.js} +1 -1
- package/dist/{swirl-icon-news-filled.entry.8762d74d.js → swirl-icon-news-filled.entry.80a51bbc.js} +1 -1
- package/dist/{swirl-icon-news.entry.a5c1c0ac.js → swirl-icon-news.entry.d7c1f549.js} +1 -1
- package/dist/{swirl-icon-notifications-active.entry.8d8926cb.js → swirl-icon-notifications-active.entry.f30bd45c.js} +1 -1
- package/dist/{swirl-icon-notifications-off.entry.a415cba5.js → swirl-icon-notifications-off.entry.2e2f10dc.js} +1 -1
- package/dist/{swirl-icon-notifications.entry.327e2117.js → swirl-icon-notifications.entry.91fd4182.js} +1 -1
- package/dist/{swirl-icon-open-in-full.entry.7f6dec83.js → swirl-icon-open-in-full.entry.21ea1157.js} +1 -1
- package/dist/{swirl-icon-open-in-new.entry.18293fcf.js → swirl-icon-open-in-new.entry.e9d711ca.js} +1 -1
- package/dist/{swirl-icon-pause-circle.entry.84ab82d9.js → swirl-icon-pause-circle.entry.1bf67196.js} +1 -1
- package/dist/{swirl-icon-pause.entry.921e2a5a.js → swirl-icon-pause.entry.78986ea0.js} +1 -1
- package/dist/{swirl-icon-people-alt.entry.92469faa.js → swirl-icon-people-alt.entry.3b9f01d3.js} +1 -1
- package/dist/{swirl-icon-person-off.entry.e63109e3.js → swirl-icon-person-off.entry.cc25f2f1.js} +1 -1
- package/dist/{swirl-icon-person.entry.c4985917.js → swirl-icon-person.entry.4d1675dc.js} +1 -1
- package/dist/{swirl-icon-phone.entry.98d3c15a.js → swirl-icon-phone.entry.6cb2e6b6.js} +1 -1
- package/dist/{swirl-icon-photo-camera.entry.b834777e.js → swirl-icon-photo-camera.entry.c54f4f96.js} +1 -1
- package/dist/{swirl-icon-place.entry.03f1e84e.js → swirl-icon-place.entry.78602048.js} +1 -1
- package/dist/{swirl-icon-play-arrow.entry.b47ae385.js → swirl-icon-play-arrow.entry.1854ddba.js} +1 -1
- package/dist/{swirl-icon-poll.entry.7841a4ab.js → swirl-icon-poll.entry.6f3d30d7.js} +1 -1
- package/dist/{swirl-icon-print.entry.e7908437.js → swirl-icon-print.entry.49faa7ca.js} +1 -1
- package/dist/{swirl-icon-recieved.entry.96f69488.js → swirl-icon-recieved.entry.f6ba353b.js} +1 -1
- package/dist/{swirl-icon-remove-moderator.entry.bcaa3000.js → swirl-icon-remove-moderator.entry.1081e98b.js} +1 -1
- package/dist/{swirl-icon-reply.entry.687a9bc2.js → swirl-icon-reply.entry.98aefb0a.js} +1 -1
- package/dist/{swirl-icon-report.entry.413fdf88.js → swirl-icon-report.entry.abfc5c94.js} +1 -1
- package/dist/{swirl-icon-roadmap.entry.fcbfe689.js → swirl-icon-roadmap.entry.d8622239.js} +1 -1
- package/dist/{swirl-icon-search-strong.entry.86d84640.js → swirl-icon-search-strong.entry.0002f5df.js} +1 -1
- package/dist/{swirl-icon-search.entry.ad00073b.js → swirl-icon-search.entry.f6340f48.js} +1 -1
- package/dist/{swirl-icon-secure.entry.83bfaba3.js → swirl-icon-secure.entry.cc0955e8.js} +1 -1
- package/dist/{swirl-icon-send.entry.f81f5ab5.js → swirl-icon-send.entry.9711ee35.js} +1 -1
- package/dist/{swirl-icon-settings.entry.a265eb03.js → swirl-icon-settings.entry.56f9f56a.js} +1 -1
- package/dist/{swirl-icon-short-text.entry.e6b43fa3.js → swirl-icon-short-text.entry.f8cdc97f.js} +1 -1
- package/dist/{swirl-icon-simplify.entry.6c3b49c2.js → swirl-icon-simplify.entry.87b41af5.js} +1 -1
- package/dist/{swirl-icon-spellcheck.entry.0e9115c0.js → swirl-icon-spellcheck.entry.78623b86.js} +1 -1
- package/dist/{swirl-icon-stop.entry.788eada6.js → swirl-icon-stop.entry.9411498d.js} +1 -1
- package/dist/{swirl-icon-sync.entry.437563d9.js → swirl-icon-sync.entry.4441f166.js} +1 -1
- package/dist/{swirl-icon-tasks-filled.entry.65009bf9.js → swirl-icon-tasks-filled.entry.7377e63c.js} +1 -1
- package/dist/{swirl-icon-tasks.entry.ad81711c.js → swirl-icon-tasks.entry.4abb62cc.js} +1 -1
- package/dist/{swirl-icon-terminal.entry.057d31b2.js → swirl-icon-terminal.entry.a1d5dc6f.js} +1 -1
- package/dist/{swirl-icon-time-filled.entry.9ea8e890.js → swirl-icon-time-filled.entry.a5fc2180.js} +1 -1
- package/dist/{swirl-icon-time.entry.a0299509.js → swirl-icon-time.entry.a17a94e2.js} +1 -1
- package/dist/{swirl-icon-today-filled.entry.752c99f3.js → swirl-icon-today-filled.entry.50b98979.js} +1 -1
- package/dist/{swirl-icon-translate.entry.4697ea65.js → swirl-icon-translate.entry.41d7b952.js} +1 -1
- package/dist/{swirl-icon-tree-structure.entry.0691ae6c.js → swirl-icon-tree-structure.entry.4576a3e5.js} +1 -1
- package/dist/{swirl-icon-undo.entry.1fd3b8a9.js → swirl-icon-undo.entry.2353db86.js} +1 -1
- package/dist/{swirl-icon-unlock-person.entry.02f39d61.js → swirl-icon-unlock-person.entry.9699ecfd.js} +1 -1
- package/dist/{swirl-icon-user-add.entry.9284f106.js → swirl-icon-user-add.entry.838365ef.js} +1 -1
- package/dist/{swirl-icon-user-assign.entry.7956dc82.js → swirl-icon-user-assign.entry.38998463.js} +1 -1
- package/dist/{swirl-icon-video-camera.entry.e083f90b.js → swirl-icon-video-camera.entry.b7a41baa.js} +1 -1
- package/dist/{swirl-icon-video-library.entry.65408098.js → swirl-icon-video-library.entry.4f7ca502.js} +1 -1
- package/dist/{swirl-icon-voice.entry.db3a452c.js → swirl-icon-voice.entry.b7ae2857.js} +1 -1
- package/dist/{swirl-icon-work.entry.07343d03.js → swirl-icon-work.entry.1f5d1d22.js} +1 -1
- package/dist/{swirl-icon.entry.462f606a.js → swirl-icon.entry.9f814012.js} +1 -1
- package/dist/{swirl-image-grid-item.entry.bd95b7a3.js → swirl-image-grid-item.entry.76fc265e.js} +1 -1
- package/dist/{swirl-image-grid.entry.f9146977.js → swirl-image-grid.entry.d4083137.js} +1 -1
- package/dist/{swirl-inline-notification.entry.7ded73e7.js → swirl-inline-notification.entry.5e055477.js} +1 -1
- package/dist/{swirl-inline-status.entry.7ba5f768.js → swirl-inline-status.entry.b9f68a92.js} +1 -1
- package/dist/{swirl-lightbox.entry.62b49dc3.js → swirl-lightbox.entry.8e233ae3.js} +7 -8
- package/dist/{swirl-link.entry.d8a91f73.js → swirl-link.entry.ae761c5b.js} +1 -1
- package/dist/{swirl-list.entry.be33b8ba.js → swirl-list.entry.f463b810.js} +1 -1
- package/dist/{swirl-menu-item.entry.217df533.js → swirl-menu-item.entry.974aac1b.js} +1 -1
- package/dist/{swirl-menu.entry.d554fa75.js → swirl-menu.entry.48a3ab08.js} +1 -1
- package/dist/{swirl-modal.entry.89c00997.js → swirl-modal.entry.cc4ff119.js} +1 -1
- package/dist/{swirl-option-list-section.entry.296013ef.js → swirl-option-list-section.entry.aea56437.js} +1 -1
- package/dist/{swirl-option-list_2.entry.9a10d3d6.js → swirl-option-list_2.entry.dc22867a.js} +1 -1
- package/dist/{swirl-pagination.entry.88164a68.js → swirl-pagination.entry.d6638cce.js} +1 -1
- package/dist/{swirl-pdf-reader.entry.790ae16b.js → swirl-pdf-reader.entry.b8a91b14.js} +1 -1
- package/dist/{swirl-popover_2.entry.f7dcc13f.js → swirl-popover_2.entry.ae3df2f1.js} +1 -1
- package/dist/{swirl-progress-indicator.entry.67f88fe9.js → swirl-progress-indicator.entry.6ae5747c.js} +1 -1
- package/dist/{swirl-radio-group.entry.30c1bdc4.js → swirl-radio-group.entry.1beaadad.js} +1 -1
- package/dist/{swirl-radio.entry.a1dec25b.js → swirl-radio.entry.fb5a3e1b.js} +1 -1
- package/dist/{swirl-resource-list-file-item.entry.c9832471.js → swirl-resource-list-file-item.entry.43ecf8bd.js} +1 -1
- package/dist/{swirl-search.entry.a0559ecd.js → swirl-search.entry.ef0d9d62.js} +1 -1
- package/dist/{swirl-select.entry.a0d4f06f.js → swirl-select.entry.5909f18f.js} +1 -1
- package/dist/{swirl-shell-layout.entry.0a65da20.js → swirl-shell-layout.entry.45276ca2.js} +1 -1
- package/dist/{swirl-shell-navigation-item.entry.557eebff.js → swirl-shell-navigation-item.entry.eedcecde.js} +1 -1
- package/dist/{swirl-skeleton-box.entry.b1c612aa.js → swirl-skeleton-box.entry.90702066.js} +1 -1
- package/dist/{swirl-skeleton-text.entry.6df267c1.js → swirl-skeleton-text.entry.446f8207.js} +1 -1
- package/dist/{swirl-stack.entry.7590bbbf.js → swirl-stack.entry.e9837f32.js} +1 -1
- package/dist/{swirl-status-indicator.entry.413a3db0.js → swirl-status-indicator.entry.94ecb915.js} +1 -1
- package/dist/{swirl-switch.entry.5bbcc779.js → swirl-switch.entry.5ab8deed.js} +1 -1
- package/dist/{swirl-symbol-account-circle.entry.f9d3ba86.js → swirl-symbol-account-circle.entry.65fc6b03.js} +1 -1
- package/dist/{swirl-symbol-alternate-email.entry.cfd613b3.js → swirl-symbol-alternate-email.entry.e9d2b202.js} +1 -1
- package/dist/{swirl-symbol-android.entry.55013c41.js → swirl-symbol-android.entry.4b9226d7.js} +1 -1
- package/dist/{swirl-symbol-announcement.entry.87a499f6.js → swirl-symbol-announcement.entry.7df1b262.js} +1 -1
- package/dist/{swirl-symbol-backup.entry.395b63e0.js → swirl-symbol-backup.entry.d8539156.js} +1 -1
- package/dist/{swirl-symbol-beach-access.entry.cb2e845e.js → swirl-symbol-beach-access.entry.3ecd75ee.js} +1 -1
- package/dist/{swirl-symbol-bookmark.entry.20f0f663.js → swirl-symbol-bookmark.entry.a7232add.js} +1 -1
- package/dist/{swirl-symbol-cloud.entry.c1354cef.js → swirl-symbol-cloud.entry.60c38f0e.js} +1 -1
- package/dist/{swirl-symbol-coronavirus.entry.83f1a56c.js → swirl-symbol-coronavirus.entry.bf0a72ca.js} +1 -1
- package/dist/{swirl-symbol-desktop-windows.entry.f872f82a.js → swirl-symbol-desktop-windows.entry.2a7d6048.js} +1 -1
- package/dist/{swirl-symbol-directions-car-filled.entry.0f517bc3.js → swirl-symbol-directions-car-filled.entry.f1b98ded.js} +1 -1
- package/dist/{swirl-symbol-edit-calendar.entry.c82d3dc4.js → swirl-symbol-edit-calendar.entry.1e880829.js} +1 -1
- package/dist/{swirl-symbol-email.entry.b44f741a.js → swirl-symbol-email.entry.8a95550c.js} +1 -1
- package/dist/{swirl-symbol-emoji-food-beverage.entry.1a4ea75c.js → swirl-symbol-emoji-food-beverage.entry.930323f5.js} +1 -1
- package/dist/{swirl-symbol-event-menu.entry.d46538b0.js → swirl-symbol-event-menu.entry.dfb23027.js} +1 -1
- package/dist/{swirl-symbol-facebook.entry.f7ad1b46.js → swirl-symbol-facebook.entry.f9c00b8a.js} +1 -1
- package/dist/{swirl-symbol-favorite.entry.4572bf98.js → swirl-symbol-favorite.entry.e685bfae.js} +1 -1
- package/dist/{swirl-symbol-fitness-center.entry.fdbd4fde.js → swirl-symbol-fitness-center.entry.fe4b7595.js} +1 -1
- package/dist/{swirl-symbol-flag.entry.d3430381.js → swirl-symbol-flag.entry.7b39a2d7.js} +1 -1
- package/dist/{swirl-symbol-folder.entry.e8e1a8ee.js → swirl-symbol-folder.entry.f63de491.js} +1 -1
- package/dist/{swirl-symbol-globe.entry.11c3e2d8.js → swirl-symbol-globe.entry.496d6f3b.js} +1 -1
- package/dist/{swirl-symbol-groups.entry.f80c4e4d.js → swirl-symbol-groups.entry.ad029c2c.js} +1 -1
- package/dist/{swirl-symbol-help.entry.a53b3633.js → swirl-symbol-help.entry.8f889fc9.js} +1 -1
- package/dist/{swirl-symbol-image.entry.e1a20f96.js → swirl-symbol-image.entry.b9fb0c4f.js} +1 -1
- package/dist/{swirl-symbol-info-menu.entry.dc8e3c23.js → swirl-symbol-info-menu.entry.38a5727b.js} +1 -1
- package/dist/{swirl-symbol-instagram.entry.8205e747.js → swirl-symbol-instagram.entry.d3fedfa1.js} +1 -1
- package/dist/{swirl-symbol-ios.entry.9054a8b0.js → swirl-symbol-ios.entry.3c91c1e9.js} +1 -1
- package/dist/{swirl-symbol-language.entry.791d6360.js → swirl-symbol-language.entry.793a374d.js} +1 -1
- package/dist/{swirl-symbol-leaderboard.entry.13cfebb6.js → swirl-symbol-leaderboard.entry.c43791b6.js} +1 -1
- package/dist/{swirl-symbol-lightbulb.entry.d91b10ca.js → swirl-symbol-lightbulb.entry.1eb862b3.js} +1 -1
- package/dist/{swirl-symbol-linkedin.entry.92f84ee3.js → swirl-symbol-linkedin.entry.9fe39ba3.js} +1 -1
- package/dist/{swirl-symbol-location-on.entry.90c8e264.js → swirl-symbol-location-on.entry.17b88d36.js} +1 -1
- package/dist/{swirl-symbol-loyalty.entry.52827ffb.js → swirl-symbol-loyalty.entry.336050f5.js} +1 -1
- package/dist/{swirl-symbol-maps-home-work.entry.14d55749.js → swirl-symbol-maps-home-work.entry.29e61254.js} +1 -1
- package/dist/{swirl-symbol-notifications.entry.4902946e.js → swirl-symbol-notifications.entry.b0750314.js} +1 -1
- package/dist/{swirl-symbol-open-in-new.entry.1785c68b.js → swirl-symbol-open-in-new.entry.1f4608ea.js} +1 -1
- package/dist/{swirl-symbol-pedal-bike.entry.2cd718ca.js → swirl-symbol-pedal-bike.entry.961d1755.js} +1 -1
- package/dist/{swirl-symbol-pinterest.entry.00486950.js → swirl-symbol-pinterest.entry.1bac7901.js} +1 -1
- package/dist/{swirl-symbol-policy.entry.888f0e22.js → swirl-symbol-policy.entry.bbb88dc8.js} +1 -1
- package/dist/{swirl-symbol-push-pin.entry.f6831d6f.js → swirl-symbol-push-pin.entry.89451b07.js} +1 -1
- package/dist/{swirl-symbol-redeem.entry.443d943e.js → swirl-symbol-redeem.entry.2902363e.js} +1 -1
- package/dist/{swirl-symbol-report-problem.entry.a1f31bfa.js → swirl-symbol-report-problem.entry.f64f3ccf.js} +1 -1
- package/dist/{swirl-symbol-restaurant.entry.261914b8.js → swirl-symbol-restaurant.entry.cf4decbf.js} +1 -1
- package/dist/{swirl-symbol-roadmap.entry.9138af4f.js → swirl-symbol-roadmap.entry.bde199aa.js} +1 -1
- package/dist/{swirl-symbol-room.entry.b40b56e8.js → swirl-symbol-room.entry.bd79e185.js} +1 -1
- package/dist/{swirl-symbol-savings.entry.3350f18e.js → swirl-symbol-savings.entry.be27ea9b.js} +1 -1
- package/dist/{swirl-symbol-settings-voice.entry.4008eb04.js → swirl-symbol-settings-voice.entry.53cf60f0.js} +1 -1
- package/dist/{swirl-symbol-shopping-cart.entry.7463e84f.js → swirl-symbol-shopping-cart.entry.9f689186.js} +1 -1
- package/dist/{swirl-symbol-smartphone.entry.b22fdefd.js → swirl-symbol-smartphone.entry.ae5410aa.js} +1 -1
- package/dist/{swirl-symbol-star.entry.e9ce9190.js → swirl-symbol-star.entry.ed675c81.js} +1 -1
- package/dist/{swirl-symbol-supervisor-account.entry.90ab93aa.js → swirl-symbol-supervisor-account.entry.1abba96e.js} +1 -1
- package/dist/{swirl-symbol-thumbs-up-down.entry.a9a38338.js → swirl-symbol-thumbs-up-down.entry.f7500d68.js} +1 -1
- package/dist/{swirl-symbol-twitter.entry.b55e08ce.js → swirl-symbol-twitter.entry.5460b130.js} +1 -1
- package/dist/{swirl-symbol-wb-sunny.entry.615bcc63.js → swirl-symbol-wb-sunny.entry.e9e93ff3.js} +1 -1
- package/dist/{swirl-symbol-wechat.entry.1517a804.js → swirl-symbol-wechat.entry.29922a4b.js} +1 -1
- package/dist/{swirl-symbol-weibo.entry.318dbfe9.js → swirl-symbol-weibo.entry.94e4ca37.js} +1 -1
- package/dist/{swirl-symbol-work.entry.3ea41fe8.js → swirl-symbol-work.entry.52c31d00.js} +1 -1
- package/dist/{swirl-symbol-xing.entry.e2722406.js → swirl-symbol-xing.entry.5d84ff8d.js} +1 -1
- package/dist/{swirl-symbol-youtube.entry.9b8b3a4d.js → swirl-symbol-youtube.entry.77dfe311.js} +1 -1
- package/dist/{swirl-symbol.entry.3a7385df.js → swirl-symbol.entry.2ddfaa95.js} +1 -1
- package/dist/{swirl-tab-bar.entry.817d4b46.js → swirl-tab-bar.entry.42d714bb.js} +1 -1
- package/dist/{swirl-tab.entry.1e7a6068.js → swirl-tab.entry.58a35011.js} +1 -1
- package/dist/{swirl-table-cell.entry.868c117f.js → swirl-table-cell.entry.5673bbe7.js} +1 -1
- package/dist/{swirl-table-column.entry.718f197e.js → swirl-table-column.entry.3ce517ba.js} +1 -1
- package/dist/{swirl-table-row-group.entry.252901d3.js → swirl-table-row-group.entry.81b73310.js} +1 -1
- package/dist/{swirl-table-row.entry.5787fa50.js → swirl-table-row.entry.927aac10.js} +1 -1
- package/dist/{swirl-table.entry.c40977de.js → swirl-table.entry.38171be4.js} +1 -1
- package/dist/{swirl-tabs.entry.2aa76ed4.js → swirl-tabs.entry.7357c2a0.js} +1 -1
- package/dist/{swirl-text-input.entry.37514397.js → swirl-text-input.entry.be60a314.js} +1 -1
- package/dist/{swirl-text.entry.dfa0362d.js → swirl-text.entry.6871aeb1.js} +1 -1
- package/dist/{swirl-theme-provider.entry.4c44b04d.js → swirl-theme-provider.entry.2e99fc28.js} +1 -1
- package/dist/{swirl-time-input.entry.0286a3ce.js → swirl-time-input.entry.937add75.js} +1 -1
- package/dist/{swirl-toast-provider.entry.ef2e856c.js → swirl-toast-provider.entry.a8ad6fe0.js} +1 -1
- package/dist/{swirl-toast.entry.d613094c.js → swirl-toast.entry.62d48d55.js} +1 -1
- package/dist/{swirl-toolbar.entry.5a892faf.js → swirl-toolbar.entry.2f497411.js} +1 -1
- package/dist/{swirl-tree-navigation-item.entry.7202f7d2.js → swirl-tree-navigation-item.entry.c7be21ab.js} +1 -1
- package/dist/{swirl-video-thumbnail.entry.c8824cfd.js → swirl-video-thumbnail.entry.20983fc1.js} +1 -1
- package/dist/{swirl-visually-hidden.entry.f2193c84.js → swirl-visually-hidden.entry.1fe0a00e.js} +1 -1
- package/dist/{wc-datepicker.entry.97dfbb3a.js → wc-datepicker.entry.56761ee4.js} +1 -1
- package/package.json +2 -2
package/dist/{swirl-file-viewer_7.entry.bfcf6fec.js → swirl-file-viewer_7.entry.0bd843d8.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as jt, c as Rt, h as qe, H as $t, g as Qt } from "./index.
|
|
1
|
+
import { r as jt, c as Rt, h as qe, H as $t, g as Qt } from "./index.173cb64e.js";
|
|
2
2
|
import { a as cr, c as Qi, b as vt, g as Ji, d as qr, e as Zi } from "./index-d280dafb.186cdb0e.js";
|
|
3
3
|
import { d as ea, e as ta, i as ra } from "./utils-c5f2f98f.af14538a.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
var na = cr(function(
|
|
6
|
+
var na = cr(function(Le, Ee) {
|
|
7
7
|
(function(Ie, Te) {
|
|
8
8
|
Te();
|
|
9
9
|
})(vt, function() {
|
|
@@ -18,7 +18,7 @@ var na = cr(function(De, Ce) {
|
|
|
18
18
|
console.error("could not download file");
|
|
19
19
|
}, R.send();
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function De(o) {
|
|
22
22
|
var c = new XMLHttpRequest();
|
|
23
23
|
c.open("HEAD", o, !1);
|
|
24
24
|
try {
|
|
@@ -38,7 +38,7 @@ var na = cr(function(De, Ce) {
|
|
|
38
38
|
var B = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof vt == "object" && vt.global === vt ? vt : void 0, v = B.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), n = B.saveAs || (typeof window != "object" || window !== B ? function() {
|
|
39
39
|
} : "download" in HTMLAnchorElement.prototype && !v ? function(o, c, T) {
|
|
40
40
|
var R = B.URL || B.webkitURL, O = document.createElement("a");
|
|
41
|
-
c = c || o.name || "download", O.download = c, O.rel = "noopener", typeof o == "string" ? (O.href = o, O.origin === location.origin ? Qe(O) :
|
|
41
|
+
c = c || o.name || "download", O.download = c, O.rel = "noopener", typeof o == "string" ? (O.href = o, O.origin === location.origin ? Qe(O) : De(O.href) ? Te(o, c, T) : Qe(O, O.target = "_blank")) : (O.href = R.createObjectURL(o), setTimeout(function() {
|
|
42
42
|
R.revokeObjectURL(O.href);
|
|
43
43
|
}, 4e4), setTimeout(function() {
|
|
44
44
|
Qe(O);
|
|
@@ -46,7 +46,7 @@ var na = cr(function(De, Ce) {
|
|
|
46
46
|
} : "msSaveOrOpenBlob" in navigator ? function(o, c, T) {
|
|
47
47
|
if (c = c || o.name || "download", typeof o != "string")
|
|
48
48
|
navigator.msSaveOrOpenBlob(Ie(o, T), c);
|
|
49
|
-
else if (
|
|
49
|
+
else if (De(o))
|
|
50
50
|
Te(o, c, T);
|
|
51
51
|
else {
|
|
52
52
|
var R = document.createElement("a");
|
|
@@ -71,33 +71,33 @@ var na = cr(function(De, Ce) {
|
|
|
71
71
|
}, 4e4);
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
|
-
B.saveAs = n.saveAs = n,
|
|
74
|
+
B.saveAs = n.saveAs = n, Le.exports = n;
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
const ia = ":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}", aa = class {
|
|
78
|
-
constructor(
|
|
79
|
-
jt(this,
|
|
80
|
-
this.activate.emit(
|
|
81
|
-
}, this.onVisiblePagesChange = (
|
|
82
|
-
this.visiblePagesChange.emit(
|
|
78
|
+
constructor(Le) {
|
|
79
|
+
jt(this, Le), this.activate = Rt(this, "activate", 7), this.visiblePagesChange = Rt(this, "visiblePagesChange", 7), this.onActivate = (Ee) => {
|
|
80
|
+
this.activate.emit(Ee.detail);
|
|
81
|
+
}, this.onVisiblePagesChange = (Ee) => {
|
|
82
|
+
this.visiblePagesChange.emit(Ee.detail);
|
|
83
83
|
}, this.active = !0, this.autoplay = void 0, this.description = void 0, this.errorMessage = "File could not be loaded.", this.file = 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;
|
|
84
84
|
}
|
|
85
85
|
async download() {
|
|
86
|
-
const
|
|
87
|
-
na.saveAs(await
|
|
86
|
+
const Le = this.file.split("/").pop(), Ee = await fetch(this.file);
|
|
87
|
+
na.saveAs(await Ee.blob(), Le);
|
|
88
88
|
}
|
|
89
89
|
async print() {
|
|
90
90
|
this.type === "application/pdf" && this.viewer.print();
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
const
|
|
94
|
-
return qe($t, null, qe("div", { class: "file-viewer" }, this.type && this.active && qe("div", { class: "file-viewer__file" }, this.type.startsWith("image/") && qe("swirl-file-viewer-image", { description: this.description, errorMessage: this.errorMessage, file: this.file, ref: (
|
|
93
|
+
const Le = !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";
|
|
94
|
+
return qe($t, null, qe("div", { class: "file-viewer" }, this.type && this.active && qe("div", { class: "file-viewer__file" }, this.type.startsWith("image/") && qe("swirl-file-viewer-image", { description: this.description, errorMessage: this.errorMessage, file: this.file, ref: (Ee) => this.viewer = Ee }), this.type === "text/plain" && qe("swirl-file-viewer-text", { errorMessage: this.errorMessage, file: this.file, ref: (Ee) => this.viewer = Ee }), this.type === "text/csv" && qe("swirl-file-viewer-csv", { errorMessage: this.errorMessage, file: this.file, ref: (Ee) => this.viewer = Ee }), this.type === "application/pdf" && qe("swirl-file-viewer-pdf", { errorMessage: this.errorMessage, file: this.file, onActivate: this.onActivate, onVisiblePagesChange: this.onVisiblePagesChange, ref: (Ee) => this.viewer = Ee, viewMode: this.viewMode, workerSrc: this.pdfWorkerSrc, zoom: this.zoom }), this.type.startsWith("video/") && qe("swirl-file-viewer-video", { autoplay: this.autoplay, file: this.file, ref: (Ee) => this.viewer = Ee, type: this.type }), this.type.startsWith("audio/") && qe("swirl-file-viewer-audio", { autoplay: this.autoplay, file: this.file, ref: (Ee) => this.viewer = Ee, type: this.type }), Le && qe("swirl-inline-error", { message: this.typeUnsupportedMessage }))));
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
aa.style = ia;
|
|
98
98
|
const sa = ":host{display:inline-flex;width:100%;height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-audio__audio{width:100%;height:100%}", oa = class {
|
|
99
|
-
constructor(
|
|
100
|
-
jt(this,
|
|
99
|
+
constructor(Le) {
|
|
100
|
+
jt(this, Le), this.activate = Rt(this, "activate", 7), this.autoplay = void 0, this.file = void 0, this.type = void 0;
|
|
101
101
|
}
|
|
102
102
|
componentDidLoad() {
|
|
103
103
|
this.activate.emit(this.el);
|
|
@@ -110,7 +110,7 @@ const sa = ":host{display:inline-flex;width:100%;height:100%;pointer-events:auto
|
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
112
|
oa.style = sa;
|
|
113
|
-
var la = cr(function(
|
|
113
|
+
var la = cr(function(Le, Ee) {
|
|
114
114
|
/* @license
|
|
115
115
|
Papa Parse
|
|
116
116
|
v5.3.2
|
|
@@ -118,9 +118,9 @@ var la = cr(function(De, Ce) {
|
|
|
118
118
|
License: MIT
|
|
119
119
|
*/
|
|
120
120
|
(function(Ie, Te) {
|
|
121
|
-
|
|
121
|
+
Le.exports = Te();
|
|
122
122
|
})(vt, function Ie() {
|
|
123
|
-
var Te = typeof self < "u" ? self : typeof window < "u" ? window : Te !== void 0 ? Te : {},
|
|
123
|
+
var Te = typeof self < "u" ? self : typeof window < "u" ? window : Te !== void 0 ? Te : {}, De = !Te.document && !!Te.postMessage, Qe = De && /blob:/i.test((Te.location || {}).protocol), B = {}, v = 0, n = { parse: function(p, b) {
|
|
124
124
|
var u = (b = b || {}).dynamicTyping || !1;
|
|
125
125
|
if (F(u) && (b.dynamicTypingFunction = u, u = {}), b.dynamicTyping = u, b.transform = !!F(b.transform) && b.transform, b.worker && n.WORKERS_SUPPORTED) {
|
|
126
126
|
var t = function() {
|
|
@@ -203,7 +203,7 @@ var la = cr(function(De, Ce) {
|
|
|
203
203
|
}
|
|
204
204
|
} };
|
|
205
205
|
if (n.RECORD_SEP = String.fromCharCode(30), n.UNIT_SEP = String.fromCharCode(31), n.BYTE_ORDER_MARK = "\uFEFF", n.BAD_DELIMITERS = ["\r", `
|
|
206
|
-
`, '"', n.BYTE_ORDER_MARK], n.WORKERS_SUPPORTED = !
|
|
206
|
+
`, '"', n.BYTE_ORDER_MARK], n.WORKERS_SUPPORTED = !De && !!Te.Worker, n.NODE_STREAM_INPUT = 1, n.LocalChunkSize = 10485760, n.RemoteChunkSize = 5242880, n.DefaultDelimiter = ",", n.Parser = D, n.ParserHandle = m, n.NetworkStreamer = T, n.FileStreamer = R, n.StringStreamer = O, n.ReadableStreamStreamer = P, Te.jQuery) {
|
|
207
207
|
var o = Te.jQuery;
|
|
208
208
|
o.fn.parse = function(p) {
|
|
209
209
|
var b = p.config || {}, u = [];
|
|
@@ -272,7 +272,7 @@ var la = cr(function(De, Ce) {
|
|
|
272
272
|
}
|
|
273
273
|
function T(p) {
|
|
274
274
|
var b;
|
|
275
|
-
(p = p || {}).chunkSize || (p.chunkSize = n.RemoteChunkSize), c.call(this, p), this._nextChunk =
|
|
275
|
+
(p = p || {}).chunkSize || (p.chunkSize = n.RemoteChunkSize), c.call(this, p), this._nextChunk = De ? function() {
|
|
276
276
|
this._readChunk(), this._chunkLoaded();
|
|
277
277
|
} : function() {
|
|
278
278
|
this._readChunk();
|
|
@@ -282,7 +282,7 @@ var la = cr(function(De, Ce) {
|
|
|
282
282
|
if (this._finished)
|
|
283
283
|
this._chunkLoaded();
|
|
284
284
|
else {
|
|
285
|
-
if (b = new XMLHttpRequest(), this._config.withCredentials && (b.withCredentials = this._config.withCredentials),
|
|
285
|
+
if (b = new XMLHttpRequest(), this._config.withCredentials && (b.withCredentials = this._config.withCredentials), De || (b.onload = w(this._chunkLoaded, this), b.onerror = w(this._chunkError, this)), b.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !De), this._config.downloadRequestHeaders) {
|
|
286
286
|
var u = this._config.downloadRequestHeaders;
|
|
287
287
|
for (var t in u)
|
|
288
288
|
b.setRequestHeader(t, u[t]);
|
|
@@ -296,7 +296,7 @@ var la = cr(function(De, Ce) {
|
|
|
296
296
|
} catch (f) {
|
|
297
297
|
this._chunkError(f.message);
|
|
298
298
|
}
|
|
299
|
-
|
|
299
|
+
De && b.status === 0 && this._chunkError();
|
|
300
300
|
}
|
|
301
301
|
}, this._chunkLoaded = function() {
|
|
302
302
|
b.readyState === 4 && (b.status < 200 || 400 <= b.status ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : b.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(u) {
|
|
@@ -456,14 +456,14 @@ var la = cr(function(De, Ce) {
|
|
|
456
456
|
for (var he = 0; he < L.length; he++) {
|
|
457
457
|
var le = L[he], fe = 0, ve = 0, we = 0;
|
|
458
458
|
ie = void 0;
|
|
459
|
-
for (var
|
|
460
|
-
if (_ && U(
|
|
459
|
+
for (var Ce = new D({ comments: M, delimiter: le, newline: d, preview: 10 }).parse(s), Oe = 0; Oe < Ce.data.length; Oe++)
|
|
460
|
+
if (_ && U(Ce.data[Oe]))
|
|
461
461
|
we++;
|
|
462
462
|
else {
|
|
463
|
-
var ze =
|
|
463
|
+
var ze = Ce.data[Oe].length;
|
|
464
464
|
ve += ze, ie !== void 0 ? 0 < ze && (fe += Math.abs(ze - ie), ie = ze) : ie = ze;
|
|
465
465
|
}
|
|
466
|
-
0 <
|
|
466
|
+
0 < Ce.data.length && (ve /= Ce.data.length - we), (J === void 0 || fe <= J) && (se === void 0 || se < ve) && 1.99 < ve && (J = fe, X = le, se = ve);
|
|
467
467
|
}
|
|
468
468
|
return { successful: !!(p.delimiter = X), bestDelimiter: X };
|
|
469
469
|
}(Se, p.newline, p.skipEmptyLines, p.comments, p.delimitersToGuess);
|
|
@@ -644,8 +644,8 @@ var la = cr(function(De, Ce) {
|
|
|
644
644
|
});
|
|
645
645
|
});
|
|
646
646
|
const ca = ":host{position:relative;display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-csv__csv{overflow:auto;width:100%;max-height:100%;padding:var(--s-space-16);background-color:var(--s-background-default)}.file-viewer-csv__table{margin-right:auto;margin-left:auto;border-collapse:collapse;line-height:var(--s-line-height-base)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-viewer-csv__table{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.file-viewer-csv__cell{padding:var(--s-space-8);border:var(--s-border-width-default) solid var(--s-border-default)}.file-viewer-csv__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-csv__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", ua = class {
|
|
647
|
-
constructor(
|
|
648
|
-
jt(this,
|
|
647
|
+
constructor(Le) {
|
|
648
|
+
jt(this, Le), this.activate = Rt(this, "activate", 7), this.errorMessage = "File could not be loaded.", this.file = void 0, this.data = void 0, this.error = void 0, this.loading = void 0;
|
|
649
649
|
}
|
|
650
650
|
componentWillLoad() {
|
|
651
651
|
this.updateTable();
|
|
@@ -654,15 +654,15 @@ const ca = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
654
654
|
this.activate.emit(this.el);
|
|
655
655
|
}
|
|
656
656
|
async updateTable() {
|
|
657
|
-
var
|
|
657
|
+
var Le;
|
|
658
658
|
this.error = !1, this.loading = !0;
|
|
659
659
|
try {
|
|
660
|
-
const
|
|
660
|
+
const Ee = await fetch(this.file), Ie = la.parse(await Ee.text(), {
|
|
661
661
|
dynamicTyping: !0,
|
|
662
662
|
fastMode: !1,
|
|
663
663
|
skipEmptyLines: !0
|
|
664
664
|
});
|
|
665
|
-
if (((
|
|
665
|
+
if (((Le = Ie.errors) == null ? void 0 : Le.length) > 0) {
|
|
666
666
|
this.error = !0, this.loading = !1;
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
@@ -672,8 +672,8 @@ const ca = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
render() {
|
|
675
|
-
var
|
|
676
|
-
return qe($t, { class: "file-viewer-csv", exportparts: "file-viewer-csv__table" }, this.error && qe("swirl-inline-error", { class: "file-viewer-csv__error", message: this.errorMessage }), qe("div", { class: "file-viewer-csv__csv", tabIndex: 0 }, qe("table", { class: "file-viewer-csv__table", part: "file-viewer-csv__table" }, qe("tbody", null, (
|
|
675
|
+
var Le;
|
|
676
|
+
return qe($t, { class: "file-viewer-csv", exportparts: "file-viewer-csv__table" }, this.error && qe("swirl-inline-error", { class: "file-viewer-csv__error", message: this.errorMessage }), qe("div", { class: "file-viewer-csv__csv", tabIndex: 0 }, qe("table", { class: "file-viewer-csv__table", part: "file-viewer-csv__table" }, qe("tbody", null, (Le = this.data) == null ? void 0 : Le.map((Ee, Ie) => qe("tr", { class: "file-viewer-csv__row", key: `row-${Ie}` }, Ee.map((Te, De) => qe("td", { class: "file-viewer-csv__cell", key: `cell-${Ie}-${De}` }, Te))))))), this.loading && qe("div", { class: "file-viewer-csv__spinner" }, qe("swirl-spinner", null)));
|
|
677
677
|
}
|
|
678
678
|
get el() {
|
|
679
679
|
return Qt(this);
|
|
@@ -686,62 +686,62 @@ const ca = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
686
686
|
};
|
|
687
687
|
ua.style = ca;
|
|
688
688
|
const da = ":host{position:relative;display:inline-flex;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-image__image{max-width:100%;-o-object-fit:contain;object-fit:contain}.file-viewer-image__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-image__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", ha = class {
|
|
689
|
-
constructor(
|
|
690
|
-
jt(this,
|
|
689
|
+
constructor(Le) {
|
|
690
|
+
jt(this, Le), this.activate = Rt(this, "activate", 7), this.panX = 0, this.panY = 0, this.zoom = 1, this.onError = () => {
|
|
691
691
|
this.error = !0, this.loading = !1;
|
|
692
692
|
}, this.onLoad = () => {
|
|
693
693
|
this.error = !1, this.loading = !1;
|
|
694
|
-
}, this.onDblClick = (
|
|
695
|
-
this.clickToZoom(
|
|
696
|
-
}, this.onWheel = (
|
|
697
|
-
|
|
698
|
-
const Ie = Math.min(Math.max(1, this.zoom + -1 *
|
|
694
|
+
}, this.onDblClick = (Ee) => {
|
|
695
|
+
this.clickToZoom(Ee);
|
|
696
|
+
}, this.onWheel = (Ee) => {
|
|
697
|
+
Ee.preventDefault();
|
|
698
|
+
const Ie = Math.min(Math.max(1, this.zoom + -1 * Ee.deltaY / 100), this.maxZoom);
|
|
699
699
|
if (Ie === this.zoom)
|
|
700
700
|
return;
|
|
701
|
-
const Te =
|
|
702
|
-
this.updateTransformOrigin(Te,
|
|
703
|
-
}, this.onPointerDown = (
|
|
704
|
-
this.startPan(
|
|
705
|
-
}, this.onPointerMove = (
|
|
706
|
-
this.pan(
|
|
701
|
+
const Te = Ee.offsetX, De = Ee.offsetY;
|
|
702
|
+
this.updateTransformOrigin(Te, De), this.updateZoomAndPan(Ie, 0, 0);
|
|
703
|
+
}, this.onPointerDown = (Ee) => {
|
|
704
|
+
this.startPan(Ee);
|
|
705
|
+
}, this.onPointerMove = (Ee) => {
|
|
706
|
+
this.pan(Ee);
|
|
707
707
|
}, this.onPointerUp = () => {
|
|
708
708
|
this.endPan();
|
|
709
|
-
}, this.onTouchStart = (
|
|
710
|
-
|
|
711
|
-
}, this.onTouchMove = (
|
|
712
|
-
|
|
713
|
-
}, this.onTouchEnd = (
|
|
714
|
-
|
|
715
|
-
}, this.startPinchToZoom = (
|
|
716
|
-
!Boolean(this.imageEl) || (this.pinchDistance = this.getPinchDistance(
|
|
717
|
-
}, this.pinchToZoom = (
|
|
718
|
-
const Ie = this.getPinchDistance(
|
|
719
|
-
this.zoom !== Te && (this.pinchDistance = this.getPinchDistance(
|
|
709
|
+
}, this.onTouchStart = (Ee) => {
|
|
710
|
+
Ee.preventDefault(), Ee.touches.length === 2 && this.startPinchToZoom(Ee);
|
|
711
|
+
}, this.onTouchMove = (Ee) => {
|
|
712
|
+
Ee.preventDefault(), this.pinching && this.pinchToZoom(Ee);
|
|
713
|
+
}, this.onTouchEnd = (Ee) => {
|
|
714
|
+
Ee.preventDefault(), this.pinching && this.endPinchToZoom();
|
|
715
|
+
}, this.startPinchToZoom = (Ee) => {
|
|
716
|
+
!Boolean(this.imageEl) || (this.pinchDistance = this.getPinchDistance(Ee), this.pinching = !0);
|
|
717
|
+
}, this.pinchToZoom = (Ee) => {
|
|
718
|
+
const Ie = this.getPinchDistance(Ee) - this.pinchDistance, Te = Math.min(Math.max(1, this.zoom + Ie / 100), this.maxZoom);
|
|
719
|
+
this.zoom !== Te && (this.pinchDistance = this.getPinchDistance(Ee), this.updateZoomAndPan(Te));
|
|
720
720
|
}, this.endPinchToZoom = () => {
|
|
721
721
|
this.pinching = !1, Math.abs(this.zoom - 1) < 0.2 && (this.zoom = 1, this.imageEl.style.transform = "");
|
|
722
|
-
}, this.getPinchDistance = (
|
|
722
|
+
}, this.getPinchDistance = (Ee) => Math.hypot(Ee.touches[0].pageX - Ee.touches[1].pageX, Ee.touches[0].pageY - Ee.touches[1].pageY), this.clickToZoom = (Ee) => {
|
|
723
723
|
if (!(navigator.maxTouchPoints > 1))
|
|
724
724
|
if (this.zoom === 1) {
|
|
725
|
-
const Te =
|
|
726
|
-
this.updateTransformOrigin(Te,
|
|
725
|
+
const Te = Ee.pageX - this.el.getBoundingClientRect().x, De = Ee.pageY - this.el.getBoundingClientRect().y;
|
|
726
|
+
this.updateTransformOrigin(Te, De), this.updateZoomAndPan(2);
|
|
727
727
|
} else
|
|
728
728
|
this.updateZoomAndPan(1);
|
|
729
|
-
}, this.updateZoomAndPan = (
|
|
730
|
-
const
|
|
731
|
-
this.zoom =
|
|
729
|
+
}, this.updateZoomAndPan = (Ee, Ie, Te) => {
|
|
730
|
+
const De = Ee === void 0 ? this.zoom : Ee, Qe = De - this.zoom, B = Ie === void 0 ? this.panX + this.panX * Qe : Ie, v = Ie === void 0 ? this.panY + this.panY * Qe : Te, n = this.panX, o = this.panY;
|
|
731
|
+
this.zoom = De, this.panX = B, this.panY = v;
|
|
732
732
|
const c = (this.el.parentElement || this.el).getBoundingClientRect(), T = this.imageEl.getBoundingClientRect(), R = T.right < c.right && B < n || T.left > c.left && B > n, O = T.bottom < c.bottom && v < o || T.top > c.top && v > o;
|
|
733
733
|
R && (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})`;
|
|
734
|
-
}, this.updateTransformOrigin = (
|
|
735
|
-
this.transformOriginX =
|
|
736
|
-
}, this.startPan = (
|
|
737
|
-
this.panning = !0, this.previousScreenX =
|
|
738
|
-
}, this.pan = (
|
|
734
|
+
}, this.updateTransformOrigin = (Ee, Ie) => {
|
|
735
|
+
this.transformOriginX = Ee, this.transformOriginY = Ie, this.imageEl.style.transformOrigin = `${this.transformOriginX}px ${this.transformOriginY}px`;
|
|
736
|
+
}, this.startPan = (Ee) => {
|
|
737
|
+
this.panning = !0, this.previousScreenX = Ee.screenX, this.previousScreenY = Ee.screenY;
|
|
738
|
+
}, this.pan = (Ee) => {
|
|
739
739
|
const Ie = this.previousScreenX || 0, Te = this.previousScreenY || 0;
|
|
740
|
-
if (this.previousScreenX =
|
|
740
|
+
if (this.previousScreenX = Ee.screenX, this.previousScreenY = Ee.screenY, !this.panning || this.pinching)
|
|
741
741
|
return;
|
|
742
|
-
|
|
743
|
-
const
|
|
744
|
-
this.updateZoomAndPan(this.zoom,
|
|
742
|
+
Ee.preventDefault();
|
|
743
|
+
const De = this.panX + Ee.screenX - Ie, Qe = this.panY + Ee.screenY - Te;
|
|
744
|
+
this.updateZoomAndPan(this.zoom, De, Qe);
|
|
745
745
|
}, this.endPan = () => {
|
|
746
746
|
this.panning = !1;
|
|
747
747
|
}, this.description = "", this.errorMessage = "File could not be loaded.", this.file = void 0, this.maxZoom = 3, this.error = void 0, this.loading = !0;
|
|
@@ -759,7 +759,7 @@ const da = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
759
759
|
return this.updateZoomAndPan(1);
|
|
760
760
|
}
|
|
761
761
|
render() {
|
|
762
|
-
return qe($t, { 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 && qe("swirl-inline-error", { class: "file-viewer-image__error", message: this.errorMessage }), qe("img", { alt: this.description, class: "file-viewer-image__image", onError: this.onError, onLoad: this.onLoad, ref: (
|
|
762
|
+
return qe($t, { 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 && qe("swirl-inline-error", { class: "file-viewer-image__error", message: this.errorMessage }), qe("img", { alt: this.description, class: "file-viewer-image__image", onError: this.onError, onLoad: this.onLoad, ref: (Le) => this.imageEl = Le, src: this.file }), this.loading && qe("div", { class: "file-viewer-image__spinner" }, qe("swirl-spinner", null)));
|
|
763
763
|
}
|
|
764
764
|
get el() {
|
|
765
765
|
return Qt(this);
|
|
@@ -771,14 +771,14 @@ const da = ":host{position:relative;display:inline-flex;max-height:100%;pointer-
|
|
|
771
771
|
}
|
|
772
772
|
};
|
|
773
773
|
ha.style = da;
|
|
774
|
-
var fa = cr(function(
|
|
774
|
+
var fa = cr(function(Le, Ee) {
|
|
775
775
|
/*!
|
|
776
776
|
* DOMMatrix v1.0.3 (https://thednp.github.io/dommatrix/)
|
|
777
777
|
* Copyright 2022 © thednp
|
|
778
778
|
* Licensed under MIT (https://github.com/thednp/DOMMatrix/blob/master/LICENSE)
|
|
779
779
|
*/
|
|
780
780
|
(function(Ie, Te) {
|
|
781
|
-
|
|
781
|
+
Le.exports = Te();
|
|
782
782
|
})(vt, function() {
|
|
783
783
|
function Ie(r) {
|
|
784
784
|
var l = new P(), A = Array.from(r);
|
|
@@ -823,7 +823,7 @@ var fa = cr(function(De, Ce) {
|
|
|
823
823
|
);
|
|
824
824
|
throw TypeError('CSSMatrix: "' + JSON.stringify(r) + '" is not a DOMMatrix / CSSMatrix / JSON compatible object.');
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function De(r) {
|
|
827
827
|
if (typeof r != "string")
|
|
828
828
|
throw TypeError('CSSMatrix: "' + r + '" is not a string.');
|
|
829
829
|
var l = String(r).replace(/\s/g, ""), A = new P(), h = 'CSSMatrix: invalid transform string "' + r + '"';
|
|
@@ -1001,7 +1001,7 @@ var fa = cr(function(De, Ce) {
|
|
|
1001
1001
|
return r.m31 === 0 && r.m32 === 0 && r.m33 === 1 && r.m34 === 0 && r.m43 === 0 && r.m44 === 1;
|
|
1002
1002
|
}, P.prototype.setMatrixValue = function(l) {
|
|
1003
1003
|
var A = this;
|
|
1004
|
-
return typeof l == "string" && l.length && l !== "none" ?
|
|
1004
|
+
return typeof l == "string" && l.length && l !== "none" ? De(l) : [Array, Float64Array, Float32Array].some(function(h) {
|
|
1005
1005
|
return l instanceof h;
|
|
1006
1006
|
}) ? Ie(l) : [P, DOMMatrix, Object].some(function(h) {
|
|
1007
1007
|
return l instanceof h;
|
|
@@ -1058,20 +1058,20 @@ var fa = cr(function(De, Ce) {
|
|
|
1058
1058
|
Multiply: O,
|
|
1059
1059
|
fromArray: Ie,
|
|
1060
1060
|
fromMatrix: Te,
|
|
1061
|
-
fromString:
|
|
1061
|
+
fromString: De,
|
|
1062
1062
|
toArray: Qe
|
|
1063
1063
|
});
|
|
1064
1064
|
var y = "1.0.3", D = y;
|
|
1065
1065
|
return Object.assign(P, { Version: D }), P;
|
|
1066
1066
|
});
|
|
1067
|
-
}), pa = cr(function(
|
|
1067
|
+
}), pa = cr(function(Le, Ee) {
|
|
1068
1068
|
(function(Ie, Te) {
|
|
1069
|
-
Te(
|
|
1069
|
+
Te(Ee);
|
|
1070
1070
|
})(vt, function(Ie) {
|
|
1071
1071
|
var Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol : function(e) {
|
|
1072
1072
|
return "Symbol(" + e + ")";
|
|
1073
1073
|
};
|
|
1074
|
-
function
|
|
1074
|
+
function De() {
|
|
1075
1075
|
}
|
|
1076
1076
|
function Qe() {
|
|
1077
1077
|
if (typeof self < "u")
|
|
@@ -1085,7 +1085,7 @@ var fa = cr(function(De, Ce) {
|
|
|
1085
1085
|
function v(e) {
|
|
1086
1086
|
return typeof e == "object" && e !== null || typeof e == "function";
|
|
1087
1087
|
}
|
|
1088
|
-
var n =
|
|
1088
|
+
var n = De, o = Promise, c = Promise.prototype.then, T = Promise.resolve.bind(o), R = Promise.reject.bind(o);
|
|
1089
1089
|
function O(e) {
|
|
1090
1090
|
return new o(e);
|
|
1091
1091
|
}
|
|
@@ -1328,10 +1328,10 @@ var fa = cr(function(De, Ce) {
|
|
|
1328
1328
|
function ve(e) {
|
|
1329
1329
|
return new TypeError("ReadableStreamDefaultReader.prototype." + e + " can only be used on a ReadableStreamDefaultReader");
|
|
1330
1330
|
}
|
|
1331
|
-
var we,
|
|
1332
|
-
typeof Te.asyncIterator == "symbol" && (
|
|
1331
|
+
var we, Ce;
|
|
1332
|
+
typeof Te.asyncIterator == "symbol" && (Ce = (we = {}, we[Te.asyncIterator] = function() {
|
|
1333
1333
|
return this;
|
|
1334
|
-
}, we), Object.defineProperty(
|
|
1334
|
+
}, we), Object.defineProperty(Ce, Te.asyncIterator, { enumerable: !1 }));
|
|
1335
1335
|
var Oe = function() {
|
|
1336
1336
|
function e(i, x) {
|
|
1337
1337
|
this._ongoingPromise = void 0, this._isFinished = !1, this._reader = i, this._preventCancel = x;
|
|
@@ -1392,7 +1392,7 @@ var fa = cr(function(De, Ce) {
|
|
|
1392
1392
|
return Pe(this) ? this._asyncIteratorImpl.return(e) : m(V("return"));
|
|
1393
1393
|
}
|
|
1394
1394
|
};
|
|
1395
|
-
|
|
1395
|
+
Ce !== void 0 && Object.setPrototypeOf(ze, Ce);
|
|
1396
1396
|
function Fe(e, i) {
|
|
1397
1397
|
var x = L(e), K = new Oe(x, i), pe = Object.create(ze);
|
|
1398
1398
|
return pe._asyncIteratorImpl = K, pe;
|
|
@@ -2556,7 +2556,7 @@ var fa = cr(function(De, Ce) {
|
|
|
2556
2556
|
return O(function(Ye, it) {
|
|
2557
2557
|
fe(Me, {
|
|
2558
2558
|
_chunkSteps: function(lt) {
|
|
2559
|
-
Je = y(un(Ue, lt), void 0,
|
|
2559
|
+
Je = y(un(Ue, lt), void 0, De), Ye(!1);
|
|
2560
2560
|
},
|
|
2561
2561
|
_closeSteps: function() {
|
|
2562
2562
|
return Ye(!0);
|
|
@@ -3103,7 +3103,7 @@ var fa = cr(function(De, Ce) {
|
|
|
3103
3103
|
pe._closeSteps(void 0);
|
|
3104
3104
|
}), x._readIntoRequests = new u());
|
|
3105
3105
|
var K = e._readableStreamController[$](i);
|
|
3106
|
-
return A(K,
|
|
3106
|
+
return A(K, De);
|
|
3107
3107
|
}
|
|
3108
3108
|
function sr(e) {
|
|
3109
3109
|
e._state = "closed";
|
|
@@ -3451,9 +3451,9 @@ const ga = {}, ma = /* @__PURE__ */ Object.freeze({
|
|
|
3451
3451
|
__proto__: null,
|
|
3452
3452
|
default: ga
|
|
3453
3453
|
}), zt = /* @__PURE__ */ Zi(ma);
|
|
3454
|
-
var Kr = cr(function(
|
|
3455
|
-
(function(Te,
|
|
3456
|
-
|
|
3454
|
+
var Kr = cr(function(Le, Ee) {
|
|
3455
|
+
(function(Te, De) {
|
|
3456
|
+
Le.exports = De();
|
|
3457
3457
|
})(globalThis, () => (() => {
|
|
3458
3458
|
var Ie = [
|
|
3459
3459
|
,
|
|
@@ -3995,7 +3995,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
3995
3995
|
const ge = new Uint8Array(4);
|
|
3996
3996
|
return ge[0] = 1, new Uint32Array(ge.buffer, 0, 1)[0] === 1;
|
|
3997
3997
|
}
|
|
3998
|
-
function
|
|
3998
|
+
function Ce() {
|
|
3999
3999
|
return !1;
|
|
4000
4000
|
}
|
|
4001
4001
|
class Oe {
|
|
@@ -4003,7 +4003,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
4003
4003
|
return S(this, "isLittleEndian", we());
|
|
4004
4004
|
}
|
|
4005
4005
|
static get isEvalSupported() {
|
|
4006
|
-
return S(this, "isEvalSupported",
|
|
4006
|
+
return S(this, "isEvalSupported", Ce());
|
|
4007
4007
|
}
|
|
4008
4008
|
static get isOffscreenCanvasSupported() {
|
|
4009
4009
|
return S(this, "isOffscreenCanvasSupported", typeof OffscreenCanvas < "u");
|
|
@@ -5588,7 +5588,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
5588
5588
|
}, c);
|
|
5589
5589
|
},
|
|
5590
5590
|
(B, v, n) => {
|
|
5591
|
-
var o = n(37), c = n(6), T = n(7), R = n(25), O = n(17), P = n(10), m = n(42), y = n(23), D = 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 = R("DOMException"), N = R("Set"), j = R("Map"), s = j.prototype, d = O(s.has), _ = O(s.get), M = O(s.set), L = O(N.prototype.add), X = R("Object", "keys"), J = O([].push), ie = O((!0).valueOf), se = O(1 .valueOf), he = O("".valueOf), le = O(q.prototype.getTime), fe = m("structuredClone"), ve = "DataCloneError", we = "Transferring",
|
|
5591
|
+
var o = n(37), c = n(6), T = n(7), R = n(25), O = n(17), P = n(10), m = n(42), y = n(23), D = 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 = R("DOMException"), N = R("Set"), j = R("Map"), s = j.prototype, d = O(s.has), _ = O(s.get), M = O(s.set), L = O(N.prototype.add), X = R("Object", "keys"), J = O([].push), ie = O((!0).valueOf), se = O(1 .valueOf), he = O("".valueOf), le = O(q.prototype.getTime), fe = m("structuredClone"), ve = "DataCloneError", we = "Transferring", Ce = function(ce) {
|
|
5592
5592
|
return !P(function() {
|
|
5593
5593
|
var Re = new T.Set([7]), Be = ce(Re), ge = ce(ne(7));
|
|
5594
5594
|
return Be == Re || !Be.has(7) || typeof ge != "object" || ge != 7;
|
|
@@ -5606,9 +5606,9 @@ var Kr = cr(function(De, Ce) {
|
|
|
5606
5606
|
var Re = ce(new T.AggregateError([1], fe, { cause: 3 }));
|
|
5607
5607
|
return Re.name != "AggregateError" || Re.errors[0] != 1 || Re.message != fe || Re.cause != 3;
|
|
5608
5608
|
});
|
|
5609
|
-
}, Fe = T.structuredClone, Pe = o || !Oe(Fe, re) || !Oe(Fe, S) || !ze(Fe), V = !Fe &&
|
|
5609
|
+
}, Fe = T.structuredClone, Pe = o || !Oe(Fe, re) || !Oe(Fe, S) || !ze(Fe), V = !Fe && Ce(function(ce) {
|
|
5610
5610
|
return new de(fe, { detail: ce }).detail;
|
|
5611
|
-
}), Q =
|
|
5611
|
+
}), Q = Ce(Fe) || V, G = function(ce) {
|
|
5612
5612
|
throw new S("Uncloneable type: " + ce, ve);
|
|
5613
5613
|
}, H = function(ce, Re) {
|
|
5614
5614
|
throw new S((Re || "Cloning") + " of " + ce + " cannot be properly polyfilled in this engine", ve);
|
|
@@ -6461,7 +6461,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
6461
6461
|
intentState: ue,
|
|
6462
6462
|
reason: Ve instanceof Error ? Ve : new Error(Ve)
|
|
6463
6463
|
})) : Ge.capability.resolve(), this._stats && (this._stats.timeEnd("Rendering"), this._stats.timeEnd("Overall"));
|
|
6464
|
-
}, Ge = new
|
|
6464
|
+
}, Ge = new Ce({
|
|
6465
6465
|
callback: $e,
|
|
6466
6466
|
params: {
|
|
6467
6467
|
canvasContext: oe,
|
|
@@ -7375,7 +7375,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
7375
7375
|
}
|
|
7376
7376
|
}
|
|
7377
7377
|
v.RenderTask = we;
|
|
7378
|
-
class
|
|
7378
|
+
class Ce {
|
|
7379
7379
|
constructor(V) {
|
|
7380
7380
|
let {
|
|
7381
7381
|
callback: Q,
|
|
@@ -7405,9 +7405,9 @@ var Kr = cr(function(De, Ce) {
|
|
|
7405
7405
|
if (this.cancelled)
|
|
7406
7406
|
return;
|
|
7407
7407
|
if (this._canvas) {
|
|
7408
|
-
if (g(
|
|
7408
|
+
if (g(Ce, Ce, Oe).has(this._canvas))
|
|
7409
7409
|
throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");
|
|
7410
|
-
g(
|
|
7410
|
+
g(Ce, Ce, Oe).add(this._canvas);
|
|
7411
7411
|
}
|
|
7412
7412
|
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());
|
|
7413
7413
|
const {
|
|
@@ -7426,7 +7426,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
7426
7426
|
}
|
|
7427
7427
|
cancel() {
|
|
7428
7428
|
let V = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
|
|
7429
|
-
this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(
|
|
7429
|
+
this.running = !1, this.cancelled = !0, this.gfx && this.gfx.endDrawing(), this._canvas && g(Ce, Ce, Oe).delete(this._canvas), this.callback(V || new T.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex + 1}`, "canvas"));
|
|
7430
7430
|
}
|
|
7431
7431
|
operatorListChanged() {
|
|
7432
7432
|
if (!this.graphicsReady) {
|
|
@@ -7444,7 +7444,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
7444
7444
|
}) : Promise.resolve().then(this._nextBound).catch(this._cancelBound);
|
|
7445
7445
|
}
|
|
7446
7446
|
async _next() {
|
|
7447
|
-
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(
|
|
7447
|
+
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(Ce, Ce, Oe).delete(this._canvas), this.callback())));
|
|
7448
7448
|
}
|
|
7449
7449
|
}
|
|
7450
7450
|
var Oe = {
|
|
@@ -8108,14 +8108,14 @@ var Kr = cr(function(De, Ce) {
|
|
|
8108
8108
|
["undo", "redo", "cut", "copy", "paste", "delete", "selectAll"].includes(H.name) && this[H.name]();
|
|
8109
8109
|
}
|
|
8110
8110
|
setEditingState(H) {
|
|
8111
|
-
H ? (O(this, _, ve).call(this), O(this, L,
|
|
8111
|
+
H ? (O(this, _, ve).call(this), O(this, L, Ce).call(this, {
|
|
8112
8112
|
isEditing: r(this, Y) !== o.AnnotationEditorType.NONE,
|
|
8113
8113
|
isEmpty: O(this, he, V).call(this),
|
|
8114
8114
|
hasSomethingToUndo: r(this, U).hasSomethingToUndo(),
|
|
8115
8115
|
hasSomethingToRedo: r(this, U).hasSomethingToRedo(),
|
|
8116
8116
|
hasSelectedEditor: !1,
|
|
8117
8117
|
hasEmptyClipboard: r(this, $).isEmpty()
|
|
8118
|
-
})) : (O(this, M, we).call(this), O(this, L,
|
|
8118
|
+
})) : (O(this, M, we).call(this), O(this, L, Ce).call(this, {
|
|
8119
8119
|
isEditing: !1
|
|
8120
8120
|
}));
|
|
8121
8121
|
}
|
|
@@ -8174,19 +8174,19 @@ var Kr = cr(function(De, Ce) {
|
|
|
8174
8174
|
}
|
|
8175
8175
|
toggleSelected(H) {
|
|
8176
8176
|
if (r(this, C).has(H)) {
|
|
8177
|
-
r(this, C).delete(H), H.unselect(), O(this, L,
|
|
8177
|
+
r(this, C).delete(H), H.unselect(), O(this, L, Ce).call(this, {
|
|
8178
8178
|
hasSelectedEditor: this.hasSelection
|
|
8179
8179
|
});
|
|
8180
8180
|
return;
|
|
8181
8181
|
}
|
|
8182
|
-
r(this, C).add(H), H.select(), O(this, X, Oe).call(this, H.propertiesToUpdate), O(this, L,
|
|
8182
|
+
r(this, C).add(H), H.select(), O(this, X, Oe).call(this, H.propertiesToUpdate), O(this, L, Ce).call(this, {
|
|
8183
8183
|
hasSelectedEditor: !0
|
|
8184
8184
|
});
|
|
8185
8185
|
}
|
|
8186
8186
|
setSelected(H) {
|
|
8187
8187
|
for (const oe of r(this, C))
|
|
8188
8188
|
oe !== H && oe.unselect();
|
|
8189
|
-
r(this, C).clear(), r(this, C).add(H), H.select(), O(this, X, Oe).call(this, H.propertiesToUpdate), O(this, L,
|
|
8189
|
+
r(this, C).clear(), r(this, C).add(H), H.select(), O(this, X, Oe).call(this, H.propertiesToUpdate), O(this, L, Ce).call(this, {
|
|
8190
8190
|
hasSelectedEditor: !0
|
|
8191
8191
|
});
|
|
8192
8192
|
}
|
|
@@ -8194,7 +8194,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
8194
8194
|
return r(this, C).has(H);
|
|
8195
8195
|
}
|
|
8196
8196
|
unselect(H) {
|
|
8197
|
-
H.unselect(), r(this, C).delete(H), O(this, L,
|
|
8197
|
+
H.unselect(), r(this, C).delete(H), O(this, L, Ce).call(this, {
|
|
8198
8198
|
hasSelectedEditor: this.hasSelection
|
|
8199
8199
|
});
|
|
8200
8200
|
}
|
|
@@ -8202,21 +8202,21 @@ var Kr = cr(function(De, Ce) {
|
|
|
8202
8202
|
return r(this, C).size !== 0;
|
|
8203
8203
|
}
|
|
8204
8204
|
undo() {
|
|
8205
|
-
r(this, U).undo(), O(this, L,
|
|
8205
|
+
r(this, U).undo(), O(this, L, Ce).call(this, {
|
|
8206
8206
|
hasSomethingToUndo: r(this, U).hasSomethingToUndo(),
|
|
8207
8207
|
hasSomethingToRedo: !0,
|
|
8208
8208
|
isEmpty: O(this, he, V).call(this)
|
|
8209
8209
|
});
|
|
8210
8210
|
}
|
|
8211
8211
|
redo() {
|
|
8212
|
-
r(this, U).redo(), O(this, L,
|
|
8212
|
+
r(this, U).redo(), O(this, L, Ce).call(this, {
|
|
8213
8213
|
hasSomethingToUndo: !0,
|
|
8214
8214
|
hasSomethingToRedo: r(this, U).hasSomethingToRedo(),
|
|
8215
8215
|
isEmpty: O(this, he, V).call(this)
|
|
8216
8216
|
});
|
|
8217
8217
|
}
|
|
8218
8218
|
addCommands(H) {
|
|
8219
|
-
r(this, U).add(H), O(this, L,
|
|
8219
|
+
r(this, U).add(H), O(this, L, Ce).call(this, {
|
|
8220
8220
|
hasSomethingToUndo: !0,
|
|
8221
8221
|
hasSomethingToRedo: !1,
|
|
8222
8222
|
isEmpty: O(this, he, V).call(this)
|
|
@@ -8245,7 +8245,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
8245
8245
|
oe.isEmpty() || H.push(oe);
|
|
8246
8246
|
if (H.length === 0)
|
|
8247
8247
|
return;
|
|
8248
|
-
r(this, $).copy(H), O(this, L,
|
|
8248
|
+
r(this, $).copy(H), O(this, L, Ce).call(this, {
|
|
8249
8249
|
hasEmptyClipboard: !1
|
|
8250
8250
|
});
|
|
8251
8251
|
}
|
|
@@ -8284,7 +8284,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
8284
8284
|
if (O(this, le, Q).size !== 0) {
|
|
8285
8285
|
for (const H of r(this, C))
|
|
8286
8286
|
H.unselect();
|
|
8287
|
-
r(this, C).clear(), O(this, L,
|
|
8287
|
+
r(this, C).clear(), O(this, L, Ce).call(this, {
|
|
8288
8288
|
hasSelectedEditor: !1
|
|
8289
8289
|
});
|
|
8290
8290
|
}
|
|
@@ -8306,7 +8306,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
8306
8306
|
function we() {
|
|
8307
8307
|
r(this, d).removeEventListener("keydown", r(this, S));
|
|
8308
8308
|
}
|
|
8309
|
-
function
|
|
8309
|
+
function Ce(G) {
|
|
8310
8310
|
Object.entries(G).some((oe) => {
|
|
8311
8311
|
let [_e, ke] = oe;
|
|
8312
8312
|
return r(this, s)[_e] !== ke;
|
|
@@ -8351,7 +8351,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
8351
8351
|
r(this, C).clear();
|
|
8352
8352
|
for (const H of G)
|
|
8353
8353
|
H.isEmpty() || (r(this, C).add(H), H.select());
|
|
8354
|
-
O(this, L,
|
|
8354
|
+
O(this, L, Ce).call(this, {
|
|
8355
8355
|
hasSelectedEditor: !0
|
|
8356
8356
|
});
|
|
8357
8357
|
}
|
|
@@ -9117,12 +9117,12 @@ var Kr = cr(function(De, Ce) {
|
|
|
9117
9117
|
function u(Y, C, S, N, j, s, d, _, M, L) {
|
|
9118
9118
|
const [X, J, ie, se, he, le] = (0, o.getCurrentTransform)(Y);
|
|
9119
9119
|
if (J === 0 && ie === 0) {
|
|
9120
|
-
const we = d * X + he,
|
|
9121
|
-
return Y.setTransform(Math.sign(X), 0, 0, Math.sign(se),
|
|
9120
|
+
const we = d * X + he, Ce = Math.round(we), Oe = _ * se + le, ze = Math.round(Oe), Fe = (d + M) * X + he, Pe = Math.abs(Math.round(Fe) - Ce) || 1, V = (_ + L) * se + le, Q = Math.abs(Math.round(V) - ze) || 1;
|
|
9121
|
+
return Y.setTransform(Math.sign(X), 0, 0, Math.sign(se), Ce, ze), Y.drawImage(C, S, N, j, s, 0, 0, Pe, Q), Y.setTransform(X, J, ie, se, he, le), [Pe, Q];
|
|
9122
9122
|
}
|
|
9123
9123
|
if (X === 0 && se === 0) {
|
|
9124
|
-
const we = _ * ie + he,
|
|
9125
|
-
return Y.setTransform(0, Math.sign(J), Math.sign(ie), 0,
|
|
9124
|
+
const we = _ * ie + he, Ce = Math.round(we), Oe = d * J + le, ze = Math.round(Oe), Fe = (_ + L) * ie + he, Pe = Math.abs(Math.round(Fe) - Ce) || 1, V = (d + M) * J + le, Q = Math.abs(Math.round(V) - ze) || 1;
|
|
9125
|
+
return Y.setTransform(0, Math.sign(J), Math.sign(ie), 0, Ce, ze), Y.drawImage(C, S, N, j, s, 0, 0, Q, Pe), Y.setTransform(X, J, ie, se, he, le), [Q, Pe];
|
|
9126
9126
|
}
|
|
9127
9127
|
Y.drawImage(C, S, N, j, s, d, _, M, L);
|
|
9128
9128
|
const fe = Math.hypot(X, J), ve = Math.hypot(ie, se);
|
|
@@ -9168,7 +9168,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
9168
9168
|
if (ve === we)
|
|
9169
9169
|
continue;
|
|
9170
9170
|
le.moveTo(ve % s, _);
|
|
9171
|
-
const
|
|
9171
|
+
const Ce = ve;
|
|
9172
9172
|
let Oe = d[ve];
|
|
9173
9173
|
do {
|
|
9174
9174
|
const ze = he[Oe];
|
|
@@ -9177,7 +9177,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
9177
9177
|
while (!d[ve]);
|
|
9178
9178
|
const Fe = d[ve];
|
|
9179
9179
|
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;
|
|
9180
|
-
} while (
|
|
9180
|
+
} while (Ce !== ve);
|
|
9181
9181
|
--_;
|
|
9182
9182
|
}
|
|
9183
9183
|
return J = null, d = null, function(ve) {
|
|
@@ -9247,14 +9247,14 @@ var Kr = cr(function(De, Ce) {
|
|
|
9247
9247
|
const N = C.height, j = C.width, s = N % F, d = (N - s) / F, _ = s === 0 ? d : d + 1, M = Y.createImageData(j, F);
|
|
9248
9248
|
let L = 0, X;
|
|
9249
9249
|
const J = C.data, ie = M.data;
|
|
9250
|
-
let se, he, le, fe, ve, we,
|
|
9250
|
+
let se, he, le, fe, ve, we, Ce, Oe;
|
|
9251
9251
|
if (S)
|
|
9252
9252
|
switch (S.length) {
|
|
9253
9253
|
case 1:
|
|
9254
|
-
ve = S[0], we = S[0],
|
|
9254
|
+
ve = S[0], we = S[0], Ce = S[0], Oe = S[0];
|
|
9255
9255
|
break;
|
|
9256
9256
|
case 4:
|
|
9257
|
-
ve = S[0], we = S[1],
|
|
9257
|
+
ve = S[0], we = S[1], Ce = S[2], Oe = S[3];
|
|
9258
9258
|
break;
|
|
9259
9259
|
}
|
|
9260
9260
|
if (C.kind === c.ImageKind.GRAYSCALE_1BPP) {
|
|
@@ -9276,27 +9276,27 @@ var Kr = cr(function(De, Ce) {
|
|
|
9276
9276
|
Y.putImageData(M, 0, se * F);
|
|
9277
9277
|
}
|
|
9278
9278
|
} else if (C.kind === c.ImageKind.RGBA_32BPP) {
|
|
9279
|
-
const ze = !!(ve || we ||
|
|
9279
|
+
const ze = !!(ve || we || Ce);
|
|
9280
9280
|
for (he = 0, fe = j * F * 4, se = 0; se < d; se++) {
|
|
9281
9281
|
if (ie.set(J.subarray(L, L + fe)), L += fe, ze)
|
|
9282
9282
|
for (let Fe = 0; Fe < fe; Fe += 4)
|
|
9283
|
-
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), we && (ie[Fe + 1] = we[ie[Fe + 1]]),
|
|
9283
|
+
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), we && (ie[Fe + 1] = we[ie[Fe + 1]]), Ce && (ie[Fe + 2] = Ce[ie[Fe + 2]]);
|
|
9284
9284
|
Y.putImageData(M, 0, he), he += F;
|
|
9285
9285
|
}
|
|
9286
9286
|
if (se < _) {
|
|
9287
9287
|
if (fe = j * s * 4, ie.set(J.subarray(L, L + fe)), ze)
|
|
9288
9288
|
for (let Fe = 0; Fe < fe; Fe += 4)
|
|
9289
|
-
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), we && (ie[Fe + 1] = we[ie[Fe + 1]]),
|
|
9289
|
+
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), we && (ie[Fe + 1] = we[ie[Fe + 1]]), Ce && (ie[Fe + 2] = Ce[ie[Fe + 2]]);
|
|
9290
9290
|
Y.putImageData(M, 0, he);
|
|
9291
9291
|
}
|
|
9292
9292
|
} else if (C.kind === c.ImageKind.RGB_24BPP) {
|
|
9293
|
-
const ze = !!(ve || we ||
|
|
9293
|
+
const ze = !!(ve || we || Ce);
|
|
9294
9294
|
for (le = F, fe = j * le, se = 0; se < _; se++) {
|
|
9295
9295
|
for (se >= d && (le = s, fe = j * le), X = 0, he = fe; he--; )
|
|
9296
9296
|
ie[X++] = J[L++], ie[X++] = J[L++], ie[X++] = J[L++], ie[X++] = 255;
|
|
9297
9297
|
if (ze)
|
|
9298
9298
|
for (let Fe = 0; Fe < X; Fe += 4)
|
|
9299
|
-
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), we && (ie[Fe + 1] = we[ie[Fe + 1]]),
|
|
9299
|
+
ve && (ie[Fe + 0] = ve[ie[Fe + 0]]), we && (ie[Fe + 1] = we[ie[Fe + 1]]), Ce && (ie[Fe + 2] = Ce[ie[Fe + 2]]);
|
|
9300
9300
|
Y.putImageData(M, 0, se * F);
|
|
9301
9301
|
}
|
|
9302
9302
|
} else
|
|
@@ -9366,7 +9366,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
9366
9366
|
j === "Luminosity" ? le = q : le = ne;
|
|
9367
9367
|
const ve = Math.min(N, Math.ceil(1048576 / S));
|
|
9368
9368
|
for (let we = 0; we < N; we += ve) {
|
|
9369
|
-
const
|
|
9369
|
+
const Ce = Math.min(ve, N - we), Oe = Y.getImageData(_ - L, we + (M - X), S, Ce), ze = C.getImageData(_, we + M, S, Ce);
|
|
9370
9370
|
J && k(Oe.data, ie, se, he), le(Oe.data, ze.data, d), C.putImageData(ze, _, we + M);
|
|
9371
9371
|
}
|
|
9372
9372
|
}
|
|
@@ -9408,8 +9408,8 @@ var Kr = cr(function(De, Ce) {
|
|
|
9408
9408
|
this.foregroundColor = this.backgroundColor = null;
|
|
9409
9409
|
else {
|
|
9410
9410
|
const [se, he, le] = (0, o.getRGB)(ie), fe = (we) => (we /= 255, we <= 0.03928 ? we / 12.92 : ((we + 0.055) / 1.055) ** 2.4), ve = Math.round(0.2126 * fe(se) + 0.7152 * fe(he) + 0.0722 * fe(le));
|
|
9411
|
-
this.selectColor = (we,
|
|
9412
|
-
const ze = 0.2126 * fe(we) + 0.7152 * fe(
|
|
9411
|
+
this.selectColor = (we, Ce, Oe) => {
|
|
9412
|
+
const ze = 0.2126 * fe(we) + 0.7152 * fe(Ce) + 0.0722 * fe(Oe);
|
|
9413
9413
|
return Math.round(ze) === ve ? X : L;
|
|
9414
9414
|
};
|
|
9415
9415
|
}
|
|
@@ -9495,10 +9495,10 @@ var Kr = cr(function(De, Ce) {
|
|
|
9495
9495
|
X || (J = this.cachedCanvases.getCanvas("maskCanvas", N, j), g(J.context, C));
|
|
9496
9496
|
let ie = c.Util.transform(_, [1 / N, 0, 0, -1 / j, 0, 0]);
|
|
9497
9497
|
ie = c.Util.transform(ie, [1, 0, 0, 1, 0, -j]);
|
|
9498
|
-
const se = c.Util.applyTransform([0, 0], ie), he = c.Util.applyTransform([N, 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, we = this.cachedCanvases.getCanvas("fillCanvas", fe, ve),
|
|
9499
|
-
|
|
9500
|
-
const Fe = c.Util.transform((0, o.getCurrentTransformInverse)(
|
|
9501
|
-
return
|
|
9498
|
+
const se = c.Util.applyTransform([0, 0], ie), he = c.Util.applyTransform([N, 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, we = this.cachedCanvases.getCanvas("fillCanvas", fe, ve), Ce = we.context, Oe = Math.min(se[0], he[0]), ze = Math.min(se[1], he[1]);
|
|
9499
|
+
Ce.translate(-Oe, -ze), Ce.transform(...ie), X || (X = this._scaleImage(J.canvas, (0, o.getCurrentTransformInverse)(Ce)), X = X.img, M && d && M.set(L, X)), Ce.imageSmoothingEnabled = z((0, o.getCurrentTransform)(Ce), C.interpolate), u(Ce, X, 0, 0, X.width, X.height, 0, 0, N, j), Ce.globalCompositeOperation = "source-in";
|
|
9500
|
+
const Fe = c.Util.transform((0, o.getCurrentTransformInverse)(Ce), [1, 0, 0, 1, -Oe, -ze]);
|
|
9501
|
+
return Ce.fillStyle = d ? s.getPattern(S, this, Fe, T.PathType.FILL) : s, Ce.fillRect(0, 0, N, j), M && !d && (this.cachedCanvases.delete("fillCanvas"), M.set(L, we.canvas)), {
|
|
9502
9502
|
canvas: we.canvas,
|
|
9503
9503
|
offsetX: Math.round(Oe),
|
|
9504
9504
|
offsetY: Math.round(ze)
|
|
@@ -9615,8 +9615,8 @@ var Kr = cr(function(De, Ce) {
|
|
|
9615
9615
|
switch (C[se] | 0) {
|
|
9616
9616
|
case c.OPS.rectangle:
|
|
9617
9617
|
d = S[he++], _ = S[he++];
|
|
9618
|
-
const fe = S[he++], ve = S[he++], we = d + fe,
|
|
9619
|
-
j.moveTo(d, _), fe === 0 || ve === 0 ? j.lineTo(we,
|
|
9618
|
+
const fe = S[he++], ve = S[he++], we = d + fe, Ce = _ + ve;
|
|
9619
|
+
j.moveTo(d, _), fe === 0 || ve === 0 ? j.lineTo(we, Ce) : (j.lineTo(we, _), j.lineTo(we, Ce), j.lineTo(d, Ce)), J || s.updateRectMinMax(X, [d, _, we, Ce]), j.closePath();
|
|
9620
9620
|
break;
|
|
9621
9621
|
case c.OPS.moveTo:
|
|
9622
9622
|
d = S[he++], _ = S[he++], j.moveTo(d, _), J || s.updatePathMinMax(X, d, _);
|
|
@@ -9780,12 +9780,12 @@ var Kr = cr(function(De, Ce) {
|
|
|
9780
9780
|
ve = (0, o.getCurrentTransform)(s), s.restore(), s.fillStyle = Fe;
|
|
9781
9781
|
}
|
|
9782
9782
|
let we = S.lineWidth;
|
|
9783
|
-
const
|
|
9784
|
-
if (
|
|
9783
|
+
const Ce = S.textMatrixScale;
|
|
9784
|
+
if (Ce === 0 || we === 0) {
|
|
9785
9785
|
const Fe = S.textRenderingMode & c.TextRenderingMode.FILL_STROKE_MASK;
|
|
9786
9786
|
(Fe === c.TextRenderingMode.STROKE || Fe === c.TextRenderingMode.FILL_STROKE) && (we = this.getSinglePixelWidth());
|
|
9787
9787
|
} else
|
|
9788
|
-
we /=
|
|
9788
|
+
we /= Ce;
|
|
9789
9789
|
d !== 1 && (s.scale(d, d), we /= d), s.lineWidth = we;
|
|
9790
9790
|
let Oe = 0, ze;
|
|
9791
9791
|
for (ze = 0; ze < J; ++ze) {
|
|
@@ -9832,12 +9832,12 @@ var Kr = cr(function(De, Ce) {
|
|
|
9832
9832
|
ve = _ * le * s / 1e3, this.ctx.translate(ve, 0), N.x += ve * X;
|
|
9833
9833
|
continue;
|
|
9834
9834
|
}
|
|
9835
|
-
const we = (le.isSpace ? L : 0) + M,
|
|
9836
|
-
if (!
|
|
9835
|
+
const we = (le.isSpace ? L : 0) + M, Ce = j.charProcOperatorList[le.operatorListId];
|
|
9836
|
+
if (!Ce) {
|
|
9837
9837
|
(0, c.warn)(`Type3 character "${le.operatorListId}" is not available.`);
|
|
9838
9838
|
continue;
|
|
9839
9839
|
}
|
|
9840
|
-
this.contentVisible && (this.processingType3 = le, this.save(), S.scale(s, s), S.transform(...J), this.executeOperatorList(
|
|
9840
|
+
this.contentVisible && (this.processingType3 = le, this.save(), S.scale(s, s), S.transform(...J), this.executeOperatorList(Ce), this.restore()), fe = c.Util.applyTransform([le.width, 0], J)[0] * s + we, S.translate(fe, 0), N.x += fe * X;
|
|
9841
9841
|
}
|
|
9842
9842
|
S.restore(), this.processingType3 = null;
|
|
9843
9843
|
}
|
|
@@ -10273,9 +10273,9 @@ var Kr = cr(function(De, Ce) {
|
|
|
10273
10273
|
let fe;
|
|
10274
10274
|
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 - N) * fe, he = ye - (ye - j) * fe;
|
|
10275
10275
|
const ve = Math.round(Math.min(_, J)), we = Math.round(Math.max(_, J));
|
|
10276
|
-
let
|
|
10276
|
+
let Ce = ne * le + ve * 4;
|
|
10277
10277
|
for (let Oe = ve; Oe <= we; Oe++)
|
|
10278
|
-
fe = (_ - Oe) / (_ - J), fe < 0 ? fe = 0 : fe > 1 && (fe = 1), k[
|
|
10278
|
+
fe = (_ - Oe) / (_ - J), fe < 0 ? fe = 0 : fe > 1 && (fe = 1), k[Ce++] = M - (M - ie) * fe | 0, k[Ce++] = L - (L - se) * fe | 0, k[Ce++] = X - (X - he) * fe | 0, k[Ce++] = 255;
|
|
10279
10279
|
}
|
|
10280
10280
|
}
|
|
10281
10281
|
function D(F, p, b) {
|
|
@@ -12016,7 +12016,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
12016
12016
|
p(this, I, we).call(this, xe);
|
|
12017
12017
|
break;
|
|
12018
12018
|
case o.AnnotationEditorParamsType.INK_OPACITY:
|
|
12019
|
-
p(this, ee,
|
|
12019
|
+
p(this, ee, Ce).call(this, xe);
|
|
12020
12020
|
break;
|
|
12021
12021
|
}
|
|
12022
12022
|
}
|
|
@@ -12155,7 +12155,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
12155
12155
|
keepUndo: !0
|
|
12156
12156
|
});
|
|
12157
12157
|
}
|
|
12158
|
-
function
|
|
12158
|
+
function Ce(me) {
|
|
12159
12159
|
me /= 100;
|
|
12160
12160
|
const ue = this.opacity;
|
|
12161
12161
|
this.parent.addCommands({
|
|
@@ -12621,9 +12621,9 @@ var Kr = cr(function(De, Ce) {
|
|
|
12621
12621
|
}
|
|
12622
12622
|
L.style.left = `${100 * (we[0] - ie) / fe}%`, L.style.top = `${100 * (we[1] - se) / ve}%`;
|
|
12623
12623
|
const {
|
|
12624
|
-
rotation:
|
|
12624
|
+
rotation: Ce
|
|
12625
12625
|
} = d;
|
|
12626
|
-
return d.hasOwnCanvas ||
|
|
12626
|
+
return d.hasOwnCanvas || Ce === 0 ? (L.style.width = `${100 * X / fe}%`, L.style.height = `${100 * J / ve}%`) : this.setRotation(Ce, L), L;
|
|
12627
12627
|
}
|
|
12628
12628
|
setRotation(s) {
|
|
12629
12629
|
let d = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.container;
|
|
@@ -13086,17 +13086,17 @@ var Kr = cr(function(De, Ce) {
|
|
|
13086
13086
|
charLimit: (ve) => {
|
|
13087
13087
|
var we;
|
|
13088
13088
|
const {
|
|
13089
|
-
charLimit:
|
|
13089
|
+
charLimit: Ce
|
|
13090
13090
|
} = ve.detail, {
|
|
13091
13091
|
target: Oe
|
|
13092
13092
|
} = ve;
|
|
13093
|
-
if (
|
|
13093
|
+
if (Ce === 0) {
|
|
13094
13094
|
Oe.removeAttribute("maxLength");
|
|
13095
13095
|
return;
|
|
13096
13096
|
}
|
|
13097
|
-
Oe.setAttribute("maxLength",
|
|
13097
|
+
Oe.setAttribute("maxLength", Ce);
|
|
13098
13098
|
let ze = ie.userValue;
|
|
13099
|
-
!ze || ze.length <=
|
|
13099
|
+
!ze || ze.length <= Ce || (ze = ze.slice(0, Ce), Oe.value = ie.userValue = ze, s.setValue(d, {
|
|
13100
13100
|
value: ze
|
|
13101
13101
|
}), (we = this.linkService.eventBus) === null || we === void 0 || we.dispatch("dispatcheventinsandbox", {
|
|
13102
13102
|
source: this,
|
|
@@ -13161,19 +13161,19 @@ var Kr = cr(function(De, Ce) {
|
|
|
13161
13161
|
data: ve,
|
|
13162
13162
|
target: we
|
|
13163
13163
|
} = le, {
|
|
13164
|
-
value:
|
|
13164
|
+
value: Ce,
|
|
13165
13165
|
selectionStart: Oe,
|
|
13166
13166
|
selectionEnd: ze
|
|
13167
13167
|
} = we;
|
|
13168
13168
|
let Fe = Oe, Pe = ze;
|
|
13169
13169
|
switch (le.inputType) {
|
|
13170
13170
|
case "deleteWordBackward": {
|
|
13171
|
-
const V =
|
|
13171
|
+
const V = Ce.substring(0, Oe).match(/\w*[^\w]*$/);
|
|
13172
13172
|
V && (Fe -= V[0].length);
|
|
13173
13173
|
break;
|
|
13174
13174
|
}
|
|
13175
13175
|
case "deleteWordForward": {
|
|
13176
|
-
const V =
|
|
13176
|
+
const V = Ce.substring(Oe).match(/^[^\w]*\w*/);
|
|
13177
13177
|
V && (Pe += V[0].length);
|
|
13178
13178
|
break;
|
|
13179
13179
|
}
|
|
@@ -13189,7 +13189,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
13189
13189
|
detail: {
|
|
13190
13190
|
id: d,
|
|
13191
13191
|
name: "Keystroke",
|
|
13192
|
-
value:
|
|
13192
|
+
value: Ce,
|
|
13193
13193
|
change: ve || "",
|
|
13194
13194
|
willCommit: !1,
|
|
13195
13195
|
selStart: Fe,
|
|
@@ -13362,8 +13362,8 @@ var Kr = cr(function(De, Ce) {
|
|
|
13362
13362
|
var fe;
|
|
13363
13363
|
(fe = X) === null || fe === void 0 || fe();
|
|
13364
13364
|
const ve = le.detail.value, we = new Set(Array.isArray(ve) ? ve : [ve]);
|
|
13365
|
-
for (const
|
|
13366
|
-
|
|
13365
|
+
for (const Ce of M.options)
|
|
13366
|
+
Ce.selected = we.has(Ce.value);
|
|
13367
13367
|
s.setValue(d, {
|
|
13368
13368
|
value: J(le, !0)
|
|
13369
13369
|
});
|
|
@@ -13373,7 +13373,7 @@ var Kr = cr(function(De, Ce) {
|
|
|
13373
13373
|
},
|
|
13374
13374
|
remove(le) {
|
|
13375
13375
|
const fe = M.options, ve = le.detail.remove;
|
|
13376
|
-
fe[ve].selected = !1, M.remove(ve), fe.length > 0 && Array.prototype.findIndex.call(fe, (
|
|
13376
|
+
fe[ve].selected = !1, M.remove(ve), fe.length > 0 && Array.prototype.findIndex.call(fe, (Ce) => Ce.selected) === -1 && (fe[0].selected = !0), s.setValue(d, {
|
|
13377
13377
|
value: J(le, !0),
|
|
13378
13378
|
items: ie(le)
|
|
13379
13379
|
});
|
|
@@ -13391,8 +13391,8 @@ var Kr = cr(function(De, Ce) {
|
|
|
13391
13391
|
index: fe,
|
|
13392
13392
|
displayValue: ve,
|
|
13393
13393
|
exportValue: we
|
|
13394
|
-
} = le.detail.insert,
|
|
13395
|
-
Oe.textContent = ve, Oe.value = we,
|
|
13394
|
+
} = le.detail.insert, Ce = M.children[fe], Oe = document.createElement("option");
|
|
13395
|
+
Oe.textContent = ve, Oe.value = we, Ce ? Ce.before(Oe) : M.append(Oe), s.setValue(d, {
|
|
13396
13396
|
value: J(le, !0),
|
|
13397
13397
|
items: ie(le)
|
|
13398
13398
|
});
|
|
@@ -13406,9 +13406,9 @@ var Kr = cr(function(De, Ce) {
|
|
|
13406
13406
|
for (const ve of fe) {
|
|
13407
13407
|
const {
|
|
13408
13408
|
displayValue: we,
|
|
13409
|
-
exportValue:
|
|
13409
|
+
exportValue: Ce
|
|
13410
13410
|
} = ve, Oe = document.createElement("option");
|
|
13411
|
-
Oe.textContent = we, Oe.value =
|
|
13411
|
+
Oe.textContent = we, Oe.value = Ce, M.append(Oe);
|
|
13412
13412
|
}
|
|
13413
13413
|
M.options.length > 0 && (M.options[0].selected = !0), s.setValue(d, {
|
|
13414
13414
|
value: J(le, !0),
|
|
@@ -15946,14 +15946,14 @@ var Kr = cr(function(De, Ce) {
|
|
|
15946
15946
|
}
|
|
15947
15947
|
}
|
|
15948
15948
|
], Te = {};
|
|
15949
|
-
function
|
|
15949
|
+
function De(B) {
|
|
15950
15950
|
var v = Te[B];
|
|
15951
15951
|
if (v !== void 0)
|
|
15952
15952
|
return v.exports;
|
|
15953
15953
|
var n = Te[B] = {
|
|
15954
15954
|
exports: {}
|
|
15955
15955
|
};
|
|
15956
|
-
return Ie[B](n, n.exports,
|
|
15956
|
+
return Ie[B](n, n.exports, De), n.exports;
|
|
15957
15957
|
}
|
|
15958
15958
|
var Qe = {};
|
|
15959
15959
|
return (() => {
|
|
@@ -16146,18 +16146,18 @@ var Kr = cr(function(De, Ce) {
|
|
|
16146
16146
|
return n.version;
|
|
16147
16147
|
}
|
|
16148
16148
|
});
|
|
16149
|
-
var v =
|
|
16149
|
+
var v = De(1), n = De(129), o = De(133), c = De(147), T = De(132), R = De(152), O = De(140), P = De(3), m = De(155), y = De(156), D = De(154);
|
|
16150
16150
|
if (P.isNodeJS) {
|
|
16151
16151
|
const {
|
|
16152
16152
|
PDFNodeStream: r
|
|
16153
|
-
} =
|
|
16153
|
+
} = De(157);
|
|
16154
16154
|
(0, n.setPDFNetworkStreamFactory)((l) => new r(l));
|
|
16155
16155
|
} else {
|
|
16156
16156
|
const {
|
|
16157
16157
|
PDFNetworkStream: r
|
|
16158
|
-
} =
|
|
16158
|
+
} = De(160), {
|
|
16159
16159
|
PDFFetchStream: l
|
|
16160
|
-
} =
|
|
16160
|
+
} = De(161);
|
|
16161
16161
|
(0, n.setPDFNetworkStreamFactory)((A) => (0, o.isValidFetchUrl)(A.url) ? new l(A) : new r(A));
|
|
16162
16162
|
}
|
|
16163
16163
|
})(), Qe;
|
|
@@ -16166,30 +16166,33 @@ var Kr = cr(function(De, Ce) {
|
|
|
16166
16166
|
const va = /* @__PURE__ */ Ji(Kr), ba = ":host{position:relative;display:inline-flex;width:100%;height:100%;pointer-events:auto}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__pages{display:grid;grid-template-columns:repeat(2, 1fr);grid-row-gap:var(--s-space-8);grid-column-gap:var(--s-space-8);grid-auto-rows:auto}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__page{margin:0}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__page:nth-child(odd){justify-self:end}:host(.file-viewer-pdf--view-mode-side-by-side) .file-viewer-pdf__page:nth-child(even){justify-self:start}:host *{box-sizing:border-box}.file-viewer-pdf__pages{overflow:auto;width:100%;height:100%}@media (min-width: 768px){.file-viewer-pdf__pages{padding:var(--s-space-16)}}.file-viewer-pdf__page{position:relative;margin-right:auto;margin-left:auto;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:#fff}@media (min-width: 768px){.file-viewer-pdf__page{border:var(--s-border-width-default) solid var(--s-border-default)}.file-viewer-pdf__page:not(:last-of-type){margin-bottom:var(--s-space-8)}}.file-viewer-pdf__page-spinner{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}.file-viewer-pdf__canvas{display:flex;width:100%;height:100%;margin-right:auto;margin-left:auto}.file-viewer-pdf__text-container{position:absolute;overflow:hidden;line-height:1;text-align:initial;-webkit-user-select:none;-moz-user-select:none;user-select:none;inset:0;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}.file-viewer-pdf__text-container>*{position:absolute;color:transparent;white-space:pre;cursor:text;transform-origin:0% 0%}.file-viewer-pdf__text-container>*.markedContent{top:0;height:0}.file-viewer-pdf__text-container>*.highlight{margin:-1px;padding:1px;border-radius:4px;background-color:rgba(180, 0, 170, 1)}.file-viewer-pdf__text-container>*.highlight.appended{position:initial}.file-viewer-pdf__text-container>*.highlight.begin{border-radius:4px 0 0 4px}.file-viewer-pdf__text-container>*.highlight.end{border-radius:0 4px 4px 0}.file-viewer-pdf__text-container>*.highlight.middle{border-radius:0}.file-viewer-pdf__text-container>*.highlight.selected{background-color:rgba(0, 100, 0, 1)}.file-viewer-pdf__text-container>*.endOfContent{position:absolute;z-index:-1;top:100%;right:0;bottom:0;left:0;display:block;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.file-viewer-pdf__text-container>*.endOfContent.active{top:0}.file-viewer-pdf__text-container>br::-moz-selection{background:transparent}.file-viewer-pdf__text-container>br::selection{background:transparent}@media (min-width: 768px){.file-viewer-pdf__text-container{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}}.file-viewer-pdf__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-pdf__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}.file-viewer-pdf__pagination{position:absolute;bottom:var(--s-space-16);left:50%;padding:var(--s-space-4) var(--s-space-12);border-radius:var(--s-border-radius-base);color:var(--s-text-on-image);background-color:rgba(0, 0, 0, 0.6);font-weight:var(--s-font-weight-medium);line-height:var(--s-line-height-base);transform:translateX(-50%);pointer-events:none}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-viewer-pdf__pagination{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}";
|
|
16167
16167
|
window.pdf = va;
|
|
16168
16168
|
const ya = class {
|
|
16169
|
-
constructor(
|
|
16170
|
-
jt(this,
|
|
16171
|
-
var Ie, Te,
|
|
16172
|
-
const
|
|
16173
|
-
|
|
16169
|
+
constructor(Le) {
|
|
16170
|
+
jt(this, Le), this.activate = Rt(this, "activate", 7), this.visiblePagesChange = Rt(this, "visiblePagesChange", 7), this.pages = [], this.renderingPageNumbers = [], this.recentScrollPosition = { x: 0, y: 0 }, this.determineScrollStatus = () => {
|
|
16171
|
+
var Ie, Te, De;
|
|
16172
|
+
const Ee = Math.ceil(((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollTop) + ((Te = this.scrollContainer) == null ? void 0 : Te.offsetHeight)) >= ((De = this.scrollContainer) == null ? void 0 : De.scrollHeight);
|
|
16173
|
+
Ee !== this.scrolledDown && (this.scrolledDown = Ee);
|
|
16174
16174
|
}, this.storeRecentScrollPosition = () => {
|
|
16175
|
-
var
|
|
16175
|
+
var Ee, Ie, Te, De;
|
|
16176
16176
|
this.recentScrollPosition = {
|
|
16177
|
-
x: Math.round(((
|
|
16178
|
-
y: Math.round(((Te = this.scrollContainer) == null ? void 0 : Te.scrollTop) / ((
|
|
16177
|
+
x: Math.round(((Ee = this.scrollContainer) == null ? void 0 : Ee.scrollLeft) / ((Ie = this.scrollContainer) == null ? void 0 : Ie.scrollWidth) * 100) / 100,
|
|
16178
|
+
y: Math.round(((Te = this.scrollContainer) == null ? void 0 : Te.scrollTop) / ((De = this.scrollContainer) == null ? void 0 : De.scrollHeight) * 100) / 100
|
|
16179
16179
|
};
|
|
16180
16180
|
}, this.onScroll = ea(() => {
|
|
16181
16181
|
this.updateVisiblePages(), this.determineScrollStatus(), this.storeRecentScrollPosition();
|
|
16182
16182
|
}, 60), this.errorMessage = "File could not be loaded.", this.file = void 0, this.singlePageMode = void 0, this.viewMode = "single", this.workerSrc = "/pdfjs/pdf.worker.min.js", this.zoom = 1, this.doc = void 0, this.error = void 0, this.loading = !0, this.renderedPages = [], this.scrolledDown = !1, this.singlePageModePage = 1, this.visiblePages = [];
|
|
16183
16183
|
}
|
|
16184
16184
|
async componentWillLoad() {
|
|
16185
|
-
window.pdf.GlobalWorkerOptions.workerSrc = this.workerSrc
|
|
16185
|
+
window.pdf.GlobalWorkerOptions.workerSrc = this.workerSrc;
|
|
16186
16186
|
}
|
|
16187
16187
|
async componentDidLoad() {
|
|
16188
|
-
await this.updateVisiblePages(), this.activate.emit(this.el)
|
|
16188
|
+
await this.getPages(), await this.updateVisiblePages(), this.activate.emit(this.el);
|
|
16189
|
+
}
|
|
16190
|
+
componentDidRender() {
|
|
16191
|
+
this.updateVisiblePages(), this.determineScrollStatus();
|
|
16189
16192
|
}
|
|
16190
16193
|
disconnectedCallback() {
|
|
16191
|
-
var
|
|
16192
|
-
(
|
|
16194
|
+
var Le;
|
|
16195
|
+
(Le = this.doc) == null || Le.destroy();
|
|
16193
16196
|
}
|
|
16194
16197
|
async onWindowResize() {
|
|
16195
16198
|
this.visiblePages = [], this.renderedPages = [], await this.updateVisiblePages(), this.determineScrollStatus();
|
|
@@ -16208,13 +16211,13 @@ const ya = class {
|
|
|
16208
16211
|
});
|
|
16209
16212
|
}
|
|
16210
16213
|
async getThumbnails() {
|
|
16211
|
-
return await Promise.all(this.pages.filter(Boolean).map((
|
|
16212
|
-
const
|
|
16213
|
-
Ie.width =
|
|
16214
|
-
const Te = Math.min(Ie.width /
|
|
16215
|
-
return
|
|
16214
|
+
return await Promise.all(this.pages.filter(Boolean).map((Le) => {
|
|
16215
|
+
const Ee = Le.getViewport({ scale: 1 }), Ie = document.createElement("canvas");
|
|
16216
|
+
Ie.width = Ee.width, Ie.height = Ee.height;
|
|
16217
|
+
const Te = Math.min(Ie.width / Ee.width, Ie.height / Ee.height);
|
|
16218
|
+
return Le.render({
|
|
16216
16219
|
canvasContext: Ie.getContext("2d"),
|
|
16217
|
-
viewport:
|
|
16220
|
+
viewport: Le.getViewport({ scale: Te })
|
|
16218
16221
|
}).promise.then(function() {
|
|
16219
16222
|
return Ie;
|
|
16220
16223
|
});
|
|
@@ -16229,80 +16232,79 @@ const ya = class {
|
|
|
16229
16232
|
async previousPage() {
|
|
16230
16233
|
await this.setPage(this.singlePageModePage - 1), await this.updateVisiblePages();
|
|
16231
16234
|
}
|
|
16232
|
-
async setPage(
|
|
16233
|
-
this.singlePageModePage = Math.min(Math.max(
|
|
16235
|
+
async setPage(Le) {
|
|
16236
|
+
this.singlePageModePage = Math.min(Math.max(Le, 1), this.pages.length - 1), await this.updateVisiblePages();
|
|
16234
16237
|
}
|
|
16235
16238
|
async getPages() {
|
|
16236
16239
|
this.error = !1, this.loading = !0;
|
|
16237
16240
|
try {
|
|
16238
16241
|
Boolean(this.doc) && this.doc.destroy(), this.doc = await Kr.getDocument(this.file).promise;
|
|
16239
|
-
|
|
16240
|
-
|
|
16241
|
-
this.
|
|
16242
|
-
|
|
16243
|
-
this.loading = !1;
|
|
16242
|
+
const Le = [];
|
|
16243
|
+
for (let Ee = 1; Ee <= this.doc.numPages; Ee++)
|
|
16244
|
+
Le.push(this.doc.getPage(Ee));
|
|
16245
|
+
this.pages = await Promise.all(Le), this.loading = !1;
|
|
16244
16246
|
} catch {
|
|
16245
16247
|
this.error = !0, this.loading = !1;
|
|
16246
16248
|
}
|
|
16247
16249
|
}
|
|
16248
|
-
async renderVisiblePages(
|
|
16249
|
-
const
|
|
16250
|
-
for (const Te of
|
|
16251
|
-
const
|
|
16250
|
+
async renderVisiblePages(Le) {
|
|
16251
|
+
const Ee = Array.from(this.el.shadowRoot.querySelectorAll("canvas")), Ie = [];
|
|
16252
|
+
for (const Te of Ee) {
|
|
16253
|
+
const De = Te.closest(".file-viewer-pdf__page"), Qe = this.pages.find((B) => (B == null ? void 0 : B.pageNumber) === +(De == null ? void 0 : De.dataset.pageNumber));
|
|
16252
16254
|
if (!(!Boolean(Qe) || this.renderingPageNumbers.includes(Qe.pageNumber))) {
|
|
16253
16255
|
if (!this.visiblePages.includes(Qe.pageNumber)) {
|
|
16254
16256
|
this.destroyPage(Qe);
|
|
16255
16257
|
continue;
|
|
16256
16258
|
}
|
|
16257
|
-
if (this.renderedPages.includes(Qe.pageNumber) && !
|
|
16259
|
+
if (this.renderedPages.includes(Qe.pageNumber) && !Le) {
|
|
16258
16260
|
Ie.push(Qe.pageNumber);
|
|
16259
16261
|
continue;
|
|
16260
16262
|
}
|
|
16261
|
-
await this.renderPage(Qe, Te,
|
|
16263
|
+
await this.renderPage(Qe, Te, Le), Ie.push(Qe.pageNumber);
|
|
16262
16264
|
}
|
|
16263
16265
|
}
|
|
16264
16266
|
this.renderedPages = Ie;
|
|
16265
16267
|
}
|
|
16266
|
-
async renderPage(
|
|
16267
|
-
const Te =
|
|
16268
|
-
this.renderingPageNumbers = [...this.renderingPageNumbers,
|
|
16269
|
-
const Qe = Ie ? 2 : this.getScale(
|
|
16270
|
-
|
|
16268
|
+
async renderPage(Le, Ee, Ie) {
|
|
16269
|
+
const Te = Ee.closest(".file-viewer-pdf__page"), De = Te == null ? void 0 : Te.querySelector(".file-viewer-pdf__text-container");
|
|
16270
|
+
this.renderingPageNumbers = [...this.renderingPageNumbers, Le.pageNumber];
|
|
16271
|
+
const Qe = Ie ? 2 : this.getScale(Le), B = window.devicePixelRatio || 1, v = B !== 1 ? [B, 0, 0, B, 0, 0] : null, n = Le.getViewport({ scale: Qe }), o = Ee.getContext("2d");
|
|
16272
|
+
Ee.height = Math.floor(n.height * B), Ee.width = Math.floor(n.width * B);
|
|
16271
16273
|
const c = {
|
|
16272
16274
|
canvasContext: o,
|
|
16273
16275
|
transform: v,
|
|
16274
16276
|
viewport: n
|
|
16275
16277
|
};
|
|
16276
16278
|
try {
|
|
16277
|
-
await
|
|
16279
|
+
await Le.render(c).promise, Le.cleanup(), De.innerHTML = "", this.renderTextLayer(Le, De).catch(), this.renderingPageNumbers = this.renderingPageNumbers.filter((T) => T !== Le.pageNumber);
|
|
16278
16280
|
} catch {
|
|
16279
16281
|
}
|
|
16280
16282
|
}
|
|
16281
|
-
destroyPage(
|
|
16282
|
-
const
|
|
16283
|
+
destroyPage(Le) {
|
|
16284
|
+
const Ee = this.el.shadowRoot.querySelector(`[data-page-number="${Le.pageNumber}"]`), Ie = Ee.querySelector("canvas"), Te = Ee.querySelector(".file-viewer-pdf__text-container");
|
|
16283
16285
|
Ie.width = 1, Ie.height = 1, Ie.getContext("2d").clearRect(0, 0, Ie.width, Ie.height), Te.innerHTML = "";
|
|
16284
16286
|
}
|
|
16285
|
-
async updateVisiblePages(
|
|
16286
|
-
const
|
|
16287
|
+
async updateVisiblePages(Le) {
|
|
16288
|
+
const Ee = Array.from(this.el.shadowRoot.querySelectorAll(".file-viewer-pdf__page"));
|
|
16287
16289
|
let Ie = [];
|
|
16288
16290
|
if (this.singlePageMode)
|
|
16289
16291
|
Ie = [this.singlePageModePage];
|
|
16290
|
-
else if (Ie =
|
|
16292
|
+
else if (Ie = Le ? Ee.map((De) => +De.dataset.pageNumber) : Ee.filter((De) => ta(De, this.scrollContainer) > 0).map((De) => +De.dataset.pageNumber), this.visiblePages.length === Ie.length && this.visiblePages.every((De) => Ie.includes(De)))
|
|
16291
16293
|
return;
|
|
16292
|
-
this.visiblePages = Ie, await this.renderVisiblePages(
|
|
16294
|
+
this.visiblePages = Ie, await this.renderVisiblePages(Le), this.visiblePagesChange.emit(this.visiblePages);
|
|
16293
16295
|
}
|
|
16294
|
-
async renderTextLayer(
|
|
16296
|
+
async renderTextLayer(Le, Ee) {
|
|
16295
16297
|
Kr.renderTextLayer({
|
|
16296
|
-
container:
|
|
16297
|
-
textContent: await
|
|
16298
|
-
viewport:
|
|
16299
|
-
scale: this.getScale(
|
|
16298
|
+
container: Ee,
|
|
16299
|
+
textContent: await Le.getTextContent(),
|
|
16300
|
+
viewport: Le.getViewport({
|
|
16301
|
+
scale: this.getScale(Le)
|
|
16300
16302
|
})
|
|
16301
16303
|
});
|
|
16302
16304
|
}
|
|
16303
16305
|
async openPrintDialog() {
|
|
16304
|
-
const
|
|
16305
|
-
let
|
|
16306
|
+
const Le = Array.from(this.scrollContainer.querySelectorAll("canvas"));
|
|
16307
|
+
let Ee = `
|
|
16306
16308
|
*, *:before, *:after {
|
|
16307
16309
|
margin: 0;
|
|
16308
16310
|
padding: 0;
|
|
@@ -16321,11 +16323,11 @@ const ya = class {
|
|
|
16321
16323
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
16322
16324
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
16323
16325
|
<title>${this.file}</title>
|
|
16324
|
-
<style>${
|
|
16326
|
+
<style>${Ee}</style>
|
|
16325
16327
|
</head>
|
|
16326
16328
|
<body>
|
|
16327
16329
|
`;
|
|
16328
|
-
for (const Qe of
|
|
16330
|
+
for (const Qe of Le)
|
|
16329
16331
|
Ie += `<img src="${Qe.toDataURL()}">`;
|
|
16330
16332
|
Ie += `
|
|
16331
16333
|
</body>
|
|
@@ -16333,29 +16335,29 @@ const ya = class {
|
|
|
16333
16335
|
`;
|
|
16334
16336
|
const Te = document.createElement("iframe");
|
|
16335
16337
|
this.el.append(Te);
|
|
16336
|
-
const
|
|
16337
|
-
|
|
16338
|
+
const De = Te.contentWindow;
|
|
16339
|
+
De.document.write(Ie), De.focus(), await new Promise((Qe) => setTimeout(Qe, 100)), De.print(), Te.remove();
|
|
16338
16340
|
}
|
|
16339
|
-
getScale(
|
|
16341
|
+
getScale(Le) {
|
|
16340
16342
|
var Ie;
|
|
16341
|
-
const
|
|
16342
|
-
return this.zoom === "auto" ? (((Ie = this.scrollContainer) == null ? void 0 : Ie.clientWidth) -
|
|
16343
|
+
const Ee = ra() ? 0 : 32;
|
|
16344
|
+
return this.zoom === "auto" ? (((Ie = this.scrollContainer) == null ? void 0 : Ie.clientWidth) - Ee) / Le.view[2] : isNaN(this.zoom) ? 1 : this.zoom;
|
|
16343
16345
|
}
|
|
16344
16346
|
restoreScrollPosition() {
|
|
16345
|
-
var
|
|
16346
|
-
this.scrollContainer.scrollTop = this.recentScrollPosition.y * ((
|
|
16347
|
+
var Le, Ee;
|
|
16348
|
+
this.scrollContainer.scrollTop = this.recentScrollPosition.y * ((Le = this.scrollContainer) == null ? void 0 : Le.scrollHeight), this.scrollContainer.scrollLeft = this.recentScrollPosition.x * ((Ee = this.scrollContainer) == null ? void 0 : Ee.scrollWidth);
|
|
16347
16349
|
}
|
|
16348
16350
|
render() {
|
|
16349
|
-
const
|
|
16350
|
-
return qe($t, { class: Te, exportparts: "file-viewer-pdf__pagination" }, this.error && qe("swirl-inline-error", { class: "file-viewer-pdf__error", message: this.errorMessage }), qe("div", { "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (
|
|
16351
|
-
const Qe =
|
|
16352
|
-
scale: this.getScale(
|
|
16353
|
-
}), B = Qe.height, v = Qe.width, n = this.renderedPages.includes(
|
|
16354
|
-
return qe("div", { "aria-label":
|
|
16351
|
+
const Le = !this.error && !this.loading && this.visiblePages.length > 0, Ee = this.scrolledDown && !this.singlePageMode ? this.pages.length - 1 : this.visiblePages[0], Ie = this.loading, Te = Qi("file-viewer-pdf", `file-viewer-pdf--view-mode-${this.viewMode}`);
|
|
16352
|
+
return qe($t, { class: Te, exportparts: "file-viewer-pdf__pagination" }, this.error && qe("swirl-inline-error", { class: "file-viewer-pdf__error", message: this.errorMessage }), qe("div", { "aria-describedby": "pagination", class: "file-viewer-pdf__pages", onScroll: this.onScroll, ref: (De) => this.scrollContainer = De }, this.pages.map((De) => {
|
|
16353
|
+
const Qe = De.getViewport({
|
|
16354
|
+
scale: this.getScale(De)
|
|
16355
|
+
}), B = Qe.height, v = Qe.width, n = this.renderedPages.includes(De.pageNumber);
|
|
16356
|
+
return qe("div", { "aria-label": De.pageNumber, class: "file-viewer-pdf__page", "data-page-number": De.pageNumber, hidden: !this.singlePageMode || De.pageNumber === this.singlePageModePage ? void 0 : !0, id: `page-${De.pageNumber}`, key: De.pageNumber, role: "region", style: {
|
|
16355
16357
|
width: `${v}px`,
|
|
16356
16358
|
height: `${B}px`
|
|
16357
16359
|
}, tabIndex: 0 }, !n && qe("swirl-spinner", { class: "file-viewer-pdf__page-spinner" }), qe("canvas", { class: "file-viewer-pdf__canvas", style: { opacity: n ? "1" : "0" } }), qe("div", { class: "file-viewer-pdf__text-container" }));
|
|
16358
|
-
})),
|
|
16360
|
+
})), Le && qe("span", { class: "file-viewer-pdf__pagination", id: "pagination", part: "file-viewer-pdf__pagination" }, qe("span", { "aria-current": "page" }, Ee), " / ", this.doc.numPages), Ie && qe("div", { class: "file-viewer-pdf__spinner" }, qe("swirl-spinner", null)));
|
|
16359
16361
|
}
|
|
16360
16362
|
get el() {
|
|
16361
16363
|
return Qt(this);
|
|
@@ -16370,8 +16372,8 @@ const ya = class {
|
|
|
16370
16372
|
};
|
|
16371
16373
|
ya.style = ba;
|
|
16372
16374
|
const Sa = ":host{position:relative;display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-text__text{overflow:auto;width:100%;max-height:100%;margin:0;padding:0;padding:var(--s-space-16);background-color:var(--s-background-default);font-family:var(--s-font-family-code)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.file-viewer-text__text{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.file-viewer-text__spinner{position:absolute;display:flex;justify-content:center;align-items:center;background-color:rgba(0, 0, 0, 0.2);inset:0}.file-viewer-text__error{position:absolute;top:50%;left:50%;transform:translate3d(-50%, -50%, 0)}", Aa = class {
|
|
16373
|
-
constructor(
|
|
16374
|
-
jt(this,
|
|
16375
|
+
constructor(Le) {
|
|
16376
|
+
jt(this, Le), this.activate = Rt(this, "activate", 7), this.errorMessage = "File could not be loaded.", this.file = void 0, this.error = void 0, this.loading = void 0, this.text = void 0;
|
|
16375
16377
|
}
|
|
16376
16378
|
componentWillLoad() {
|
|
16377
16379
|
this.updateText();
|
|
@@ -16382,8 +16384,8 @@ const Sa = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
16382
16384
|
async updateText() {
|
|
16383
16385
|
this.error = !1, this.loading = !0;
|
|
16384
16386
|
try {
|
|
16385
|
-
const
|
|
16386
|
-
this.text = await
|
|
16387
|
+
const Le = await fetch(this.file);
|
|
16388
|
+
this.text = await Le.text(), this.loading = !1;
|
|
16387
16389
|
} catch {
|
|
16388
16390
|
this.loading = !1, this.error = !0;
|
|
16389
16391
|
}
|
|
@@ -16402,8 +16404,8 @@ const Sa = ":host{position:relative;display:inline-flex;width:100%;max-height:10
|
|
|
16402
16404
|
};
|
|
16403
16405
|
Aa.style = Sa;
|
|
16404
16406
|
const wa = ":host{display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-video__video{width:100%;background-color:rgba(0, 0, 0, 1)}", _a = class {
|
|
16405
|
-
constructor(
|
|
16406
|
-
jt(this,
|
|
16407
|
+
constructor(Le) {
|
|
16408
|
+
jt(this, Le), this.activate = Rt(this, "activate", 7), this.autoplay = void 0, this.file = void 0, this.type = void 0;
|
|
16407
16409
|
}
|
|
16408
16410
|
componentDidLoad() {
|
|
16409
16411
|
this.activate.emit(this.el);
|